/* ======================================================
   TOKENS — alineado con landing-sprint
====================================================== */
:root {
  --blue:      #1B5EF7;
  --blue-h:    #1248d6;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-200:  #bfdbfe;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-900:  #0f172a;
  --white:     #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-blue: 0 8px 28px rgba(27,94,247,0.22);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max: 1200px;
}

/* ======================================================
   RESET
====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--blue); color: white; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ======================================================
   LAYOUT
====================================================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--gray-900); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.divider {
  display: inline-block;
  width: 36px; height: 3px; background: var(--blue);
  border-radius: 2px; margin: 16px 0 24px;
}

/* ======================================================
   NAV
====================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.nav__brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  height: 100%;
}
.nav__logo {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .nav { height: 56px; padding: 0 16px; }
  .nav__logo { height: 26px !important; max-height: 26px !important; max-width: 130px !important; }
}
.nav__meta {
  font-size: 13px; color: var(--gray-500); font-weight: 500;
}

/* ======================================================
   HERO
====================================================== */
.hero {
  padding: 128px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(27,94,247,0.07), transparent 70%),
    var(--white);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 100px; padding: 7px 16px;
  font-size: 12px; font-weight: 600; color: var(--blue);
  margin-bottom: 20px;
}
.badge__dot {
  width: 6px; height: 6px; background: var(--blue);
  border-radius: 50%; animation: dot-blink 2s infinite;
}
@keyframes dot-blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero__photo {
  display: block;
  width: clamp(180px, 22vw, 280px);
  height: auto;
  margin: 18px auto 6px;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 12px 28px rgba(15,23,42,0.18));
}
.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 14px;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.hero__title em { font-style: normal; color: var(--blue); }
.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ======================================================
   GRID
====================================================== */
.section-grid {
  padding: 32px 0 64px;
  background: var(--white);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.card__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--gray-100);
  transition: transform .5s ease;
}
.card:hover .card__poster { transform: scale(1.04); }

.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.78) 0%, rgba(15,23,42,0) 55%);
  pointer-events: none;
}

.card__title {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--shadow-blue);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.card:hover .card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card__play::before {
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.card__dur {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-900);
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-radius: 100px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card__index {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--white);
  padding: 4px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

/* Skeleton al cargar */
.card--skeleton {
  background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border: 1px solid var(--gray-200);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty {
  text-align: center;
  color: var(--gray-500);
  padding: 64px 0;
  font-size: 15px;
}

/* ======================================================
   PLAYER MODAL
====================================================== */
.player {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: player-fade .25s ease;
}
.player[hidden] { display: none; }
@keyframes player-fade { from { opacity: 0; } to { opacity: 1; } }

.player__stage {
  position: relative;
  /* Altura limitada al viewport real, respetando padding del modal */
  height: min(calc(100vh - 80px), 760px);
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 40px);
  background: #000;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: player-pop .3s cubic-bezier(.2,.8,.25,1);
}
@media (max-width: 600px) {
  .player__stage { height: min(calc(100vh - 60px), 90vh); border-radius: 16px; }
}
@keyframes player-pop {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
.player__stage video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}
/* Ocultar botón de descarga / overflow menu en navegadores que lo respeten */
.player__stage video::-webkit-media-controls-download-button,
.player__stage video::-internal-media-controls-download-button { display: none !important; }
.player__stage video::-webkit-media-controls-overflow-button { display: none !important; }
.player__stage video::-webkit-media-controls-enclosure { overflow: hidden; }
/* Tarjetas: tampoco permitir click derecho sobre la imagen */
.card__poster { -webkit-user-drag: none; user-select: none; pointer-events: none; }

.player__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: background .15s ease, transform .15s ease;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.player__close:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }
.player__close svg { width: 18px; height: 18px; }

.player__title {
  position: absolute;
  left: 50%; bottom: -52px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: .85;
}
@media (max-height: 800px) { .player__title { display: none; } }

/* ======================================================
   FOOTER
====================================================== */
.ftr {
  border-top: 1px solid var(--gray-200);
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  background: var(--gray-50);
}
.ftr a { color: var(--blue); font-weight: 600; }

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; border: none;
  transition: all 200ms ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue) !important; color: #ffffff !important;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover  { background: var(--blue-h); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(27,94,247,0.30); }
.btn--primary:active { transform: translateY(0); }
.btn--pulse { animation: btn-pulse 2.8s ease-in-out infinite; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: var(--shadow-blue); }
  50%       { box-shadow: 0 0 0 8px rgba(27,94,247,0.12), var(--shadow-blue); }
}
.btn--white {
  background: white !important; color: var(--blue) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14); font-weight: 800;
}
.btn--white:hover { background: #f0f9ff !important; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.btn--outline {
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg   { padding: 17px 36px; font-size: 16px; }
.btn--xl   { padding: 19px 44px; font-size: 17px; border-radius: var(--r-md); }
.btn--full { width: 100%; }

/* Botón en el nav (compacto) */
.nav__btn { padding: 10px 22px !important; font-size: 14px !important; min-height: 0 !important; }
@media (max-width: 600px) {
  .nav__btn { padding: 8px 14px !important; font-size: 13px !important; }
}

/* ======================================================
   CTA FINAL
====================================================== */
.cta-final {
  padding: 84px 0;
  background: var(--blue);
  text-align: center;
  color: #fff;
}
.cta-final__urgency {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px; padding: 7px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; margin-bottom: 22px;
}
.cta-final__title {
  font-size: clamp(26px, 4.2vw, 50px);
  color: #fff; max-width: 620px; margin: 0 auto 16px; line-height: 1.2;
  font-weight: 800; letter-spacing: -0.025em;
}
.cta-final__sub {
  font-size: 16px; color: rgba(255,255,255,0.78);
  max-width: 460px; margin: 0 auto 36px; line-height: 1.6;
}
.cta-final__note {
  margin: 36px auto 0;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md);
  padding: 20px 24px;
  text-align: left;
}
.cta-final__note strong { color: #fff; font-weight: 700; }
@media (max-width: 600px) {
  .cta-final__note { font-size: 13.5px; padding: 16px 18px; margin-top: 28px; }
}
@media (max-width: 600px) {
  .cta-final { padding: 64px 0; }
  .cta-final .btn--xl { width: 100%; font-size: 16px; padding: 16px 28px; }
}


/* ======================================================
   STICKY MOBILE CTA
====================================================== */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  /* Igualado al Sprint: pegado abajo, sin safe-area extra */
  padding: 10px 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
  /* Animación sutil: solo fade, sin slide */
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
}

/* ======================================================
   MULTI-STEP MODAL
====================================================== */
.smodal {
  display: none; position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
}
.smodal.open { display: flex; }
.smodal__overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.70);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: overlayIn 200ms ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.smodal__box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  margin: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.30);
  animation: boxIn 250ms cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: none;
}
.smodal__box::-webkit-scrollbar { display: none; }
@keyframes boxIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: none; } }
.smodal__close {
  position: absolute !important; top: 14px !important; right: 14px !important; z-index: 10 !important;
  width: 36px !important; height: 36px !important; border-radius: 50% !important;
  background: #475569 !important; border: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important; color: #ffffff !important;
  opacity: 1 !important; visibility: visible !important;
  transition: background 200ms, transform 200ms;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}
.smodal__close svg { width: 16px !important; height: 16px !important; stroke: #ffffff !important; }
.smodal__close:hover { background: #1e293b !important; transform: scale(1.05); }
.smodal__progress {
  height: 4px; background: var(--gray-100);
  border-radius: 2px; margin: 0;
  overflow: hidden;
}
.smodal__progress-bar {
  height: 100%; background: var(--blue);
  border-radius: 2px;
  transition: width 400ms ease;
}
.smodal__inner { padding: 28px 32px 32px; }
.smodal__back-bar { padding: 10px 32px 0; min-height: 36px; }
.smodal__back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--gray-400); cursor: pointer;
  padding: 4px 0;
  transition: color 180ms;
}
.smodal__back-btn:hover { color: var(--gray-700); }

.mstep { display: none; }
.mstep.active { display: block; animation: stepIn 250ms ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mstep__num { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.mstep__q { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; color: var(--gray-900); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 24px; }
.mstep__options { display: flex; flex-direction: column; gap: 10px; }
.mopt {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding: 16px 18px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md); background: var(--white);
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--gray-700);
  cursor: pointer; text-align: left;
  transition: all 180ms ease;
  width: 100%;
  white-space: normal; word-break: break-word;
}
.mopt > span:first-child { flex: 1; min-width: 0; line-height: 1.5; }
.mopt:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.mopt__radio {
  width: 20px; height: 20px; border: 2px solid var(--gray-300);
  border-radius: 50%; flex-shrink: 0; transition: all 180ms;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.mopt:hover .mopt__radio { border-color: var(--blue); }

.mstep--disq { text-align: center; padding: 20px 0; }
.mstep--disq__icon {
  width: 56px; height: 56px; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: #ea580c;
}
.mstep--disq__title { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.mstep--disq__text  { font-size: 15px; color: var(--gray-500); line-height: 1.65; }

.mstep__form-row  { margin-bottom: 16px; }
.mstep__form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.mstep__form-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--gray-900);
  background: var(--white); outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.mstep__form-input::placeholder { color: var(--gray-400); }
.mstep__form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,94,247,0.10); }
.mstep__form-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin-top: 8px;
}
.mstep__form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--blue); cursor: pointer;
}
.mstep__form-check span { font-size: 13px; color: var(--gray-600); line-height: 1.55; }
.mstep__form-check a { color: var(--blue); text-decoration: underline; }
.mstep__submit-msg { display: none; margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; }
