/* ============================= */
/* ===== SECCIÓN OFERTA ======== */
/* ============================= */

.oferta {
  padding: clamp(40px, 6vw, 80px) clamp(18px, 6vw, 90px);
}

.oferta__wrap {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */

.oferta__header {
  margin-bottom: 3rem;
}

.oferta__title {
  font-size: xx-large;
}

.oferta__intro {
  font-size: clamp(0.98rem, 0.3vw + 0.95rem, 1.08rem);
  line-height: 1.75;
  margin: 0 0 22px 0;
  text-align: justify;
  color: var(--text);
}


/* ============================= */
/* ===== CARDS ==== */
/* ============================= */

.oferta__cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ofertaCard {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  overflow: hidden;

  padding: 2rem;
  position: relative;

  transition: transform .18s ease,
              border-color .18s ease,
              background .18s ease,
              box-shadow .18s ease;
}


/* ===== HOVER EXACTO READITEM ===== */

.ofertaCard:hover:not(.ofertaCard--image) {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}



/* ===== CARD CON IMAGEN ===== */

.ofertaCard--image .card-img {
  flex: 0 1 clamp(220px, 28vw, 300px);
  width: clamp(220px, 28vw, 300px);
  width: 260px;
  aspect-ratio: 13 / 15;
  border-radius: 12px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ===== CONTENIDO ===== */

.ofertaCard__content {
  flex: 1;
  position: relative;
  padding-bottom: 2rem;
}

.ofertaCard h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.ofertaCard p {
  line-height: 1.7;
  margin-bottom: 0.9rem;
  text-align: justify;
}

.ofertaCard a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ofertaCard__content img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== DESTACADO ===== */

.ofertaCard__destacado {
  font-weight: 600;
}


/* ===== ATENCIÓN (AHORA CON PRIMARY) ===== */

.ofertaCard__alerta {
  font-weight: 800;
  color: #8B1E2D;
  margin-bottom: 1.2rem;
}


/* ============================= */
/* ===== TEXTO OCULTO HOVER ==== */
/* ============================= */

.ofertaCard__extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height .4s ease,
              opacity .3s ease,
              transform .3s ease;
}

.ofertaCard:hover .ofertaCard__extra {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}


/* ============================= */
/* ===== VER + (SOLO HOVER) ==== */
/* ============================= */

.ofertaCard__vermas {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  cursor: pointer;
}

.ofertaCard:hover .ofertaCard__vermas {
  opacity: 1;
  transform: translateY(0);
}


/* ============================= */
/* ===== RESPONSIVE ============ */
/* ============================= */

@media (max-width: 900px) {

  .ofertaCard {
    flex-direction: column;
    padding: 1.5rem;
  }

  .ofertaCard--image .card-img {
    width: 100%;
    flex: 0 0 auto;
  }

  .card-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .ofertaCard__extra {
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .ofertaCard__content {
    padding-bottom: 0;
  }

  .ofertaCard__vermas {
    position: static;
    margin-top: 0.8rem;
    transform: none;
  }

}

@media (hover: none) {
  .ofertaCard {
    transform: none;
  }

  .ofertaCard__extra,
  .ofertaCard:hover .ofertaCard__extra {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
  }

  .ofertaCard__vermas,
  .ofertaCard:hover .ofertaCard__vermas {
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== CARD CON IMAGEN: SIN EFECTO HOVER EN LA IMAGEN ===== */
.ofertaCard--image:hover .card-img img {
  transform: none;
  filter: none;
}