*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2270ab;
  --blue-dark: #1a5a8a;
  --blue-soft: #e8f2f9;
  --surface: #f5f6f8;
  --orange: #f5a623;
  --orange-d: #d4881a;
  --orange-soft: #fff8ec;
  --navy: #0d1b2a;
  --text: #3c4c54;
  --muted: #6b7a82;
  --border: #e2e6ea;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
video {
  height: auto;
}
a { text-decoration: none; color: inherit; }

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 96px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
nav.scrolled { box-shadow: 0 2px 12px rgba(13, 27, 42, 0.08); }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo-inner {
  position: relative;
  display: block;
  width: auto;
  line-height: 0;
  height: 92px;
  flex-shrink: 0;
}
.nav-logo-static {
  height: 92px;
  width: auto;
  max-width: 360px;
  max-width: min(360px, 56vw);
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.nav-logo-video {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.nav-logo:hover .nav-logo-static,
.nav-logo:focus-visible .nav-logo-static {
  opacity: 0;
}
.nav-logo:hover .nav-logo-video,
.nav-logo:focus-visible .nav-logo-video {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo:hover .nav-logo-static,
  .nav-logo:focus-visible .nav-logo-static {
    opacity: 1;
  }
  .nav-logo:hover .nav-logo-video,
  .nav-logo:focus-visible .nav-logo-video {
    opacity: 0;
  }
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-btn-outline {
  color: var(--blue);
  padding: 11px 20px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid #cddae3;
  background: var(--white);
  box-shadow: 0 3px 0 #cddae3;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  white-space: nowrap;
}
.nav-btn-outline:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.nav-btn-outline:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cddae3;
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 0 var(--orange-d);
  transition: transform 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--orange-d);
}
.nav-cta:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--orange-d);
}

/* ——— HERO ——— */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 48px 48px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
  align-items: center;
  width: 100%;
}
.hero-inner > * {
  min-width: 0;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--orange);
  margin-bottom: 20px;
  text-transform: lowercase;
}
.hero-copy h1 .line-lead {
  text-transform: none;
}
.hero-copy h1 .line-dark {
  display: block;
  color: var(--navy);
  text-transform: none;
  font-size: 0.92em;
  margin-top: 0.12em;
}
.hero-copy p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero-copy .highlight {
  color: var(--blue);
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 340px;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-left: 0;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 5px 0 var(--orange-d);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--orange-d);
}
.btn-primary:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--orange-d);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--blue);
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid #cddae3;
  box-shadow: 0 5px 0 #cddae3;
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.btn-secondary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #cddae3;
}

/* ——— Animation placeholders (white, for Lottie/video later) ——— */
.anim-slot {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  min-height: 200px;
  aspect-ratio: 1 / 1;
}
@supports not (aspect-ratio: 1) {
  .anim-slot::before {
    content: '';
    display: block;
    padding-bottom: 100%;
  }
}
.anim-slot.small {
  max-width: 280px;
  min-height: 160px;
  aspect-ratio: 4 / 3;
}
@supports not (aspect-ratio: 1) {
  .anim-slot.small::before {
    padding-bottom: 75%;
  }
}
.anim-slot.wide {
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
@supports not (aspect-ratio: 1) {
  .anim-slot.wide::before {
    padding-bottom: 56.25%;
  }
}

/* Todos los vídeos dentro de anim-slot usan posición absoluta para que
   Safari resuelva correctamente el tamaño (aspect-ratio no propaga height a hijos) */
.anim-slot {
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.anim-slot .anim-slot-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  max-width: none;
}

/* Racha: sin borde ni sombra, video con contain */
#slot-streaks {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
#slot-streaks .anim-slot-video {
  object-fit: contain;
  object-position: center;
}

/* Zorro: contain para que se vea completo y centrado */
#slot-fox {
  padding: 0;
}
#slot-fox .anim-slot-video {
  object-fit: contain;
  object-position: center center;
}

/* ——— FEATURES ——— */
.feature-section {
  padding: 88px 48px;
  position: relative;
  background: var(--white);
}
.feature-section.surface {
  background: var(--surface);
}
.feature-section--tint {
  background: #faf7fc;
}
.feature-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-inner > * {
  min-width: 0;
}
.feature-section.reverse .feature-inner .anim-slot {
  order: 2;
}

.feature-copy .eyebrow {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.feature-copy .eyebrow.orange {
  background: var(--orange);
}
.feature-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.feature-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 440px;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 2px 0 var(--blue-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}
.feature-list li:hover::before {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--blue-dark);
}
.feature-list li:active::before {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--blue-dark);
}
.feature-section .feature-list.orange-checks li::before {
  background: var(--orange);
  box-shadow: 0 2px 0 var(--orange-d);
}
.feature-section .feature-list.orange-checks li:hover::before {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--orange-d);
}
.feature-section .feature-list.orange-checks li:active::before {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--orange-d);
}

/* ——— FOX QUOTE ——— */
#fox-quote {
  padding: 0 48px 88px;
  background: var(--white);
}
.fox-quote-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--orange-soft);
  border: 2px solid #f5d394;
  box-shadow: 0 6px 0 #f5d394;
  border-radius: 18px;
  padding: 22px 26px;
  text-align: center;
}
.fox-quote-card p {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.5;
}

/* ——— STATS ——— */
#stats {
  padding: 72px 48px;
  background: linear-gradient(135deg, #1a4d6e 0%, var(--navy) 100%);
  color: var(--white);
}
.stats-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-item .num {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--blue-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-item.orange .num {
  color: var(--orange);
}
.stat-item .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  margin-top: 10px;
}

/* ——— HOW ——— */
#how {
  padding: 88px 48px;
  text-align: center;
  background: var(--white);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
}
.steps-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 10px 0 var(--blue-soft);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step-card.orange .step-num {
  background: var(--orange-soft);
  color: var(--orange-d);
}
.step-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-card p {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ——— CTA ——— */
#cta-banner {
  padding: 72px 48px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#cta-banner .cta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
}
#cta-banner .cta-inner > * {
  min-width: 0;
}
#cta-banner h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: left;
  line-height: 1.1;
}
#cta-banner p {
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0.95;
  margin-top: 10px;
  text-align: left;
  max-width: 360px;
}
.anim-slot.on-orange {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
#slot-cta {
  background: var(--white);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 196px;
  max-width: 196px;
  min-height: 196px;
  border-radius: 34px;
  -webkit-mask-image: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
#slot-cta .cta-once-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-transform: scale(1.17) translateZ(0);
  transform: scale(1.17) translateZ(0);
}

#cta-banner .btn-primary {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}
#cta-banner .btn-primary:hover {
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
#cta-banner .btn-primary:active {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.18);
}

/* ——— CONTACT ——— */
#contact {
  padding: 88px 48px;
  text-align: center;
  background: var(--surface);
}
.contact-card {
  background: var(--white);
  max-width: 520px;
  margin: 36px auto 0;
  padding: 44px 28px;
  border-radius: 20px;
  border: 2px solid var(--border);
  box-shadow: 0 6px 0 var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
}
.contact-email {
  color: var(--blue);
  font-weight: 900;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.contact-email:hover {
  color: var(--orange-d);
}
.contact-card small {
  color: var(--muted);
  font-weight: 600;
}

/* ——— FOOTER ——— */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 48px 28px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--orange);
}
.footer-store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  padding-top: 8px;
}
.footer-store-row .footer-brand-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
}
.footer-store-row .app-store-link {
  display: block;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-store-row .app-store-link:hover {
  opacity: 1;
  transform: scale(1.02);
}
.footer-store-row .app-store-link img {
  height: 40px;
  width: auto;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 600;
}
.footer-bottom a {
  color: var(--blue-soft);
  font-weight: 700;
}
.footer-bottom a:hover {
  color: var(--orange);
}

/* ——— Standalone legal documents ——— */
body.legal-doc {
  background: var(--white);
}
.legal-doc-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.legal-doc-nav a.logo-link img {
  height: 56px;
  width: auto;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.2s, color 0.2s;
  flex-shrink: 0;
}
.legal-back:hover {
  gap: 12px;
  color: var(--orange-d);
}
.legal-doc-main {
  padding: 32px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-doc-main h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-doc-main .legal-date {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 0.88rem;
}
.legal-doc-main h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  margin: 36px 0 10px;
}
.legal-doc-main h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-doc-main p {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.75;
}
.legal-doc-main ul {
  color: var(--text);
  padding-left: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-doc-main li {
  line-height: 1.65;
}
.legal-doc-main a {
  color: var(--blue);
  font-weight: 700;
}
.legal-doc-main a:hover {
  color: var(--orange-d);
}
.legal-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 36px 0;
}

@media (max-width: 960px) {
  .hero-inner,
  .feature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-section.reverse .feature-inner .anim-slot {
    order: 0;
  }

  /* Hero móvil: animación arriba (orden natural del DOM), copy abajo */
  #hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 108px;
    padding-bottom: 40px;
  }
  #slot-hero {
    max-width: 260px;
    min-height: 260px;
    margin: 0 auto;
  }
  .hero-copy {
    text-align: center;
    order: 2;
  }
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    max-width: 320px;
  }

  /* Animaciones de features: más pequeñas en móvil */
  .feature-inner .anim-slot {
    max-width: 300px;
    min-height: 300px;
    margin: 0 auto;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  #cta-banner .cta-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  #cta-banner h2,
  #cta-banner p {
    text-align: center;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 0 16px;
    height: 78px;
  }
  .nav-logo {
    margin-left: 2px;
  }
  .nav-logo-inner {
    height: 62px;
  }
  .nav-logo-static {
    height: 62px;
  }
  .nav-cta {
    font-size: 0.7rem;
    padding: 10px 12px;
    letter-spacing: 0.04em;
  }
  #hero,
  .feature-section,
  #fox-quote,
  #stats,
  #how,
  #cta-banner,
  #contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Animaciones aún más compactas en iPhone */
  #slot-hero {
    max-width: 220px;
    min-height: 220px;
  }
  .feature-inner .anim-slot {
    max-width: 260px;
    min-height: 260px;
  }
  footer {
    padding: 40px 20px 24px;
  }
  .footer-store-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-store-row .footer-brand-logo {
    height: 68px;
  }
}
