/* ============================================
   CARD
============================================ */

/* --- Contenedor principal de la card --- */
.card-custom {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* --- Imagen superior de la card --- */
.card-custom-img {
  height: 200px;
  min-height: 200px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-color: inherit;
}

/* Flecha decorativa */
.card-custom-img::after {
  position: absolute;
  content: "";
  top: 161px;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-top-width: 40px;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 545px;
  border-left-width: calc(575px - 5vw);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: inherit;
}

/* --- Avatar --- */
.card-custom-avatar img {
  position: absolute;
  top: 100px;
  left: 1.25rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
  transition: transform 0.4s ease;
}

.card-custom:hover .card-custom-avatar img {
  transform: scale(1.07);
}

/* --- Botón --- */
.card-custom .btn {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-custom:hover .btn {
  transform: translateY(-2px);
}

/* --- Descripción corta con altura uniforme --- */
.card-body .text-muted.small {
  min-height: 70px;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 576px) {
  .card-custom-img::after {
    border-left-width: 100vw !important;
  }
}
