/* ---------- BARRA DE ATENCIÓN ---------- */
.attention-bar {
  background: var(--yellow);
  color: var(--green-deep);
  text-align: center;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
}

.attention-tag {
  display: inline-block;
  background: var(--green-deep);
  color: var(--yellow);
  font-weight: 800;
  padding: 3px 12px;
  margin-right: 8px;
  animation: alert-pulse 1.6s ease-in-out infinite;
}

@keyframes alert-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .attention-tag { animation: none !important; }
}

/* ---------- HERO + VSL ---------- */
.hero {
  background: var(--green);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

/* Recuadro que envuelve el copy inicial y el VSL (como en el borrador) */
.hero-box {
  max-width: 880px;
  margin: 0 auto;
  background: var(--green-deep);
  border: 3px solid var(--yellow);
  border-radius: 24px;
  padding: 44px 48px 48px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  line-height: 1.6;
}

.hero-copy b { color: #fff; font-weight: 700; }
.hero-copy .hl { color: var(--yellow); font-weight: 700; }

.hero-bullets {
  list-style: none;
  max-width: 640px;
  margin: 32px auto 40px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.hero-bullets li { margin-bottom: 10px; padding-left: 30px; position: relative; }
.hero-bullets .star {
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 18px;
}

.video-frame {
  max-width: 820px;
  margin: 0 auto;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  cursor: pointer;
  background: rgba(255,255,255,.04);
}

/* El escenario agrupa el video y sus capas; los overlays se anclan a él
   (no al marco) para no cubrir la barra de progreso ni la oferta */
.video-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.vsl-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

#vsl-progress {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 3px;
  transition: width .5s linear;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  border-radius: 10px;
}

.play-btn {
  width: 72px;
  height: 72px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* La alerta anti-pausa cubre exactamente el video (dentro del escenario) */
.video-stage .pause-alert { inset: 0; }

/* ---------- VIDEO AMPLIADO (overlay sin cortar la reproducción) ---------- */
.vsl-expand-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: rgba(23,58,45,.75);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background .2s ease, transform .2s ease;
}

.vsl-expand-btn:hover { background: var(--teal); transform: scale(1.08); }

.vsl-close-btn {
  display: none;
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--green-deep);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

/* El fondo siempre existe (invisible); al ampliar solo se desvanece a
   visible — así no hay repintado brusco */
.vsl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* Reservar el espacio de la barra de scroll: al bloquearla la página
   ya no se reacomoda (ese era el tirón al expandir) */
html { scrollbar-gutter: stable; }

/* Bloquear la navegación por completo: el scroll vive en <html>, no
   solo en <body> (shared.css define overflow-x en html y eso impide
   que el overflow de body se propague al viewport) */
html.vsl-expanded, body.vsl-expanded { overflow: hidden; }
body.vsl-expanded .vsl-backdrop { opacity: 1; pointer-events: auto; }

/* Al ampliar se anulan el transform y will-change de .reveal (rompen el
   position:fixed y el apilamiento) Y TAMBIÉN su desvanecido de entrada:
   si el usuario da play en los primeros ~2 s, la caja aún está
   semi-transparente y el video se oye pero no se ve */
body.vsl-expanded .hero-box {
  transform: none !important;
  will-change: auto !important;
  opacity: 1 !important;
  transition: none !important;
}

body.vsl-expanded .video-frame {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, calc((100vh - 140px) * 16 / 9), 1100px);
  max-width: none;
  z-index: 9995;
  background: var(--green-deep);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: vsl-pop .25s ease;
}

/* Solo escala, sin opacidad: la imagen del video debe verse nítida
   desde el primer instante */
@keyframes vsl-pop {
  from { transform: translate(-50%, -50%) scale(.95); }
  to   { transform: translate(-50%, -50%) scale(1); }
}

body.vsl-expanded .vsl-expand-btn { display: none; }
body.vsl-expanded .vsl-close-btn { display: flex; }

/* ---------- OFERTA (aparece cerca del final del video) ---------- */
.vsl-oferta {
  max-width: 420px;
  margin: 18px auto 4px;
  padding: 20px 32px 8px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  display: none;               /* la muestra el JS cuando falta ~1 min para el final */
}

.vsl-oferta.visible {
  display: block;
  animation: oferta-in .5s ease;
}

/* La oferta solo se ve en la página: en el video expandido se oculta */
body.vsl-expanded .vsl-oferta { display: none; }

@keyframes oferta-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.oferta-titulo {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
}

.oferta-titulo b { font-weight: 700; }

.oferta-antes {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.oferta-antes .tachado {
  position: relative;
  display: inline-block;
}

.oferta-antes .tachado::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 3px;
  background: #e53935;
  transform: rotate(-8deg);
}

.oferta-hoy {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}

.hero-cta { margin-top: 40px; }

.cta-ingresar {
  display: inline-block;
  background: var(--yellow);
  color: var(--green-deep);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  padding: 18px 44px;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-ingresar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}

/* ---------- SITUACIONES ---------- */
.section-situaciones {
  background: var(--yellow);
  padding: 64px 0;
  text-align: center;
}

.situaciones-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.situaciones-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.5;
}

.situaciones-sub .hl-teal {
  background: var(--teal);
  color: #fff;
  padding: 2px 12px;
}

.situaciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 900px;
  margin: 48px auto 0;
}

.situaciones-grid img { width: 100%; height: auto; }

/* ---------- QUIÉN SOY ---------- */
.section-quien {
  background: var(--green);
  padding: 64px 0;
}

.section-quien .container {
  max-width: 1000px;
  display: flex;
  align-items: stretch;
  gap: 56px;
}

/* La foto se estira a la misma altura que el bloque de texto */
.quien-foto { flex-shrink: 0; width: 420px; display: flex; }
.quien-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.quien-texto {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #ffffff;
}

.quien-texto p + p { margin-top: 18px; }
.quien-texto b { font-weight: 700; color: #ffffff; }
.quien-texto em { font-style: italic; font-weight: 500; }

/* ---------- GARANTÍA ---------- */
.section-garantia {
  background: var(--green-deep);
  color: #fff;
  padding: 64px 0;
}

.section-garantia .container {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.garantia-badge { flex-shrink: 0; width: 242px; }
.garantia-badge img { width: 100%; height: auto; }

.garantia-texto h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--yellow);
  margin-bottom: 16px;
  letter-spacing: .02em;
}

.garantia-texto p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.garantia-texto p + p { margin-top: 14px; }

/* ---------- TESTIMONIOS ---------- */
.section-testimonios {
  background: var(--yellow);
  padding: 64px 0;
  text-align: center;
}

.testimonios-titulo {
  max-width: 480px;
  width: 100%;
  display: block;
  margin: 0 auto 40px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.testimonios-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ---------- PREGUNTAS FRECUENTES ---------- */
.section-faq {
  background: var(--gray);
  padding: 64px 0 72px;
  text-align: center;
}

.faq-icono {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.faq-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 40px;
}

.faq-titulo span {
  background: var(--teal);
  color: #fff;
  padding: 4px 18px;
}

.faq-lista {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--green-deep);
  letter-spacing: .02em;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  padding: 0 24px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.faq-cta { margin-top: 48px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 32px 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

footer a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; }

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
  .attention-bar { font-size: 12px; padding: 8px 12px; }

  .hero { padding: 32px 0 40px; }
  .hero .container { padding: 0 16px; }
  .hero-box { padding: 24px 18px 26px; border-radius: 16px; border-width: 2px; }
  .hero-copy { font-size: 16px; }
  .hero-bullets { font-size: 15px; margin: 24px auto 28px; }
  .video-frame { padding: 6px; border-width: 2px; }
  .video-play-overlay { inset: 0; }
  .video-stage .pause-alert { inset: 0; }
  .vsl-expand-btn { top: 12px; right: 12px; width: 32px; height: 32px; }
  body.vsl-expanded .video-frame { width: 94vw; }
  .vsl-close-btn { top: -14px; right: -4px; width: 34px; height: 34px; font-size: 15px; }
  .play-btn { width: 56px; height: 56px; }
  .hero-cta { margin-top: 28px; }
  .cta-ingresar { font-size: 16px; padding: 16px 32px; }

  .vsl-oferta { padding: 16px 18px 6px; }
  .oferta-titulo { font-size: 15px; margin-bottom: 12px; }
  .oferta-antes { font-size: 17px; }
  .oferta-hoy { font-size: 40px; }

  .section-situaciones { padding: 40px 0; }
  .section-situaciones .container { padding: 0 16px; }
  .situaciones-intro { font-size: 16px; }
  .situaciones-sub { font-size: 19px; }
  .situaciones-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }

  .section-quien { padding: 40px 0; }
  .section-quien .container { flex-direction: column; align-items: center; gap: 28px; padding: 0 16px; }
  .quien-foto { width: 100%; max-width: 340px; }
  .quien-foto img { height: auto; object-fit: unset; }
  .quien-texto { font-size: 15px; }

  .section-garantia { padding: 40px 0; }
  .section-garantia .container { flex-direction: column; gap: 28px; padding: 0 16px; text-align: center; }
  .garantia-badge { width: 187px; }
  .garantia-texto h2 { font-size: 20px; }

  .section-testimonios { padding: 40px 0; }
  .section-testimonios .container { padding: 0 16px; }
  .testimonios-titulo { max-width: 320px; margin-bottom: 28px; }
  .testimonios-grid { grid-template-columns: 1fr; gap: 18px; }

  .section-faq { padding: 40px 0 48px; }
  .section-faq .container { padding: 0 16px; }
  .faq-icono { width: 96px; }
  .faq-titulo { font-size: 20px; margin-bottom: 28px; }
  .faq-item summary { font-size: 14px; padding: 16px 44px 16px 18px; }
  .faq-item summary::after { right: 18px; }
  .faq-item p { font-size: 14px; padding: 0 18px 18px; }
  .faq-cta { margin-top: 36px; }

  footer { flex-direction: column; gap: 12px; padding: 24px 16px; }
}
