/* ════════════════════════════════
   HERO
════════════════════════════════ */

.hero {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 24px 24px;
}
/* z-index: 100 garantiza que el .vsl-iframe (z-index:50 dentro de .hero)
   pinte ENCIMA de las otras secciones (todas con z-index:5) cuando esta
   en modo floating. Sin esto, el mini-player queda detras de stats/cases. */
.hero-inner { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(192,18,40,0.08);
  border: 1px solid rgba(192,18,40,0.28);
  border-radius: 100px;
  padding: 7px 16px 7px 11px;
  margin-bottom: 22px;
  animation: fadeUp 500ms var(--ease-out) both;
}
.badge-pulse { position: relative; width: 7px; height: 7px; flex-shrink: 0; }
.badge-pulse::before,
.badge-pulse::after { content: ''; position: absolute; border-radius: 50%; }
.badge-pulse::before { inset: 0; background: var(--red); }
.badge-pulse::after { inset: -3px; border: 1px solid rgba(192,18,40,0.5); animation: ripple 2s ease-out infinite; }

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-text { font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(255,255,255,0.36); }
.badge-highlight { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--red); }

.headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
  animation: fadeUp 600ms 80ms var(--ease-out) both;
  opacity: 0;
}
.headline .em { font-style: italic; font-weight: 500; color: var(--red-m); letter-spacing: -0.02em; }

.subline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin: 0 auto 26px;
  animation: fadeUp 600ms 150ms var(--ease-out) both;
  opacity: 0;
}

.step-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 14px;
  animation: fadeUp 500ms 200ms var(--ease-out) both;
  opacity: 0;
}
.step-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.step-divider-label { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.step-num { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(192,18,40,0.5); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--red); }
.step-copy { font-size: 9.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(255,255,255,0.25); }

/* NOTE: .vsl-wrap NO usa transform en su animación porque es ancestor del
   .vsl-iframe que va a position:fixed cuando flota. Cualquier transform
   ancestor crea un containing block que rompe el fixed. */
.vsl-wrap { width: 100%; max-width: 600px; margin: 0 auto 18px; animation: vslEnter 700ms 240ms ease-out both; opacity: 0; }

@keyframes vslEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vsl {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.055),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(192,18,40,0.08);
}
.vsl-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  transition: width 380ms var(--ease-out), height 380ms var(--ease-out),
              top 380ms var(--ease-out), right 380ms var(--ease-out),
              bottom 380ms var(--ease-out), left 380ms var(--ease-out),
              border-radius 220ms ease-out, box-shadow 220ms ease-out,
              opacity 200ms ease-out;
}

/* Floating mini-player: se activa cuando el usuario scrolleó pasado el VSL.
   El iframe NO se desmonta — solo cambia su position a fixed, mantiene
   el playback state y el audio. */
.vsl-iframe.is-floating {
  position: fixed;
  inset: auto 24px 24px auto;
  width: 320px;
  height: 180px;
  border-radius: 8px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 18, 46, 0.35),
    0 0 32px rgba(192, 18, 40, 0.18);
  z-index: 50;
}
.vsl-iframe.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Corner brackets cinematográficos sobre el iframe */
.vsl-tick { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; }
.vsl-tick.tl { top: 12px; left: 12px; border-top: 1.5px solid rgba(192,18,40,0.65); border-left: 1.5px solid rgba(192,18,40,0.65); }
.vsl-tick.tr { top: 12px; right: 12px; border-top: 1.5px solid rgba(192,18,40,0.65); border-right: 1.5px solid rgba(192,18,40,0.65); }
.vsl-tick.bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid rgba(192,18,40,0.65); border-left: 1.5px solid rgba(192,18,40,0.65); }
.vsl-tick.br { bottom: 12px; right: 12px; border-bottom: 1.5px solid rgba(192,18,40,0.65); border-right: 1.5px solid rgba(192,18,40,0.65); }

.cta-section { width: 100%; max-width: 600px; margin: 0 auto; animation: fadeUp 600ms 300ms var(--ease-out) both; opacity: 0; }
.step2-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step2-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: 7px;
  padding: 16px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 160ms ease-out, transform 160ms var(--ease-snap), box-shadow 200ms ease-out;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(192,18,40,0.38),
    0 4px 22px rgba(192,18,40,0.38);
  margin-bottom: 12px;
}
.cta-btn::before { content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent); transition: left 500ms var(--ease-shine); }
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: ctaHalo 2.2s var(--ease-out) infinite;
}
.cta-btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.8); stroke-width: 2.5; fill: none; flex-shrink: 0; transition: transform 200ms var(--ease-snap); }
.cta-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cta-btn:hover { background: #d41430; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(192,18,40,0.6), 0 8px 30px rgba(192,18,40,0.48); }
  .cta-btn:hover::before { left: 140%; }
  .cta-btn:hover::after { animation: none; }
  .cta-btn:hover svg { transform: translateX(2px); }
  .cta-btn:active { transform: scale(0.97) translateY(0); }
}

@keyframes ctaHalo {
  0%   { box-shadow: 0 0 0 0 rgba(212, 18, 46, 0.55); }
  60%  { box-shadow: 0 0 0 16px rgba(212, 18, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 18, 46, 0); }
}

.scarcity { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.18); letter-spacing: 0.03em; text-align: center; }
.scarcity::before,
.scarcity::after { content: ''; display: block; height: 1px; width: 28px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

@media (max-width: 600px) {
  .hero { padding: 16px 20px 18px; min-height: 100vh; }
  .badge { margin-bottom: 16px; padding: 7px 14px 7px 11px; gap: 8px; }
  .badge-text { display: none; }
  .badge-highlight { font-size: 10.5px; letter-spacing: 0.07em; }
  .headline { font-size: clamp(24px, 6.8vw, 30px); margin-bottom: 12px; }
  .subline { font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
  .step-divider { margin-bottom: 10px; }
  .vsl-wrap { margin-bottom: 14px; max-width: 100%; }
  .step2-row { margin-bottom: 10px; }
  .cta-section { max-width: 100%; }
  .cta-btn { font-size: 12.5px; padding: 14px 20px; margin-bottom: 10px; }
  .scarcity { font-size: 10.5px; }

  .vsl-iframe.is-floating {
    width: 180px;
    height: 101px;
    inset: auto 14px 14px auto;
    border-radius: 6px;
  }
}
