/* ===========================================================================
   Loop WEB — plantilla premium estilo apple.com
   Hero con resplandor de marca, sección "fijada" interactiva, statement oscuro
   dramático, tipografía editorial. Tematizable por --accent. Sin emojis.
   =========================================================================== */

:root {
  --accent: #FF5C00;
  --accent-ink: #ffffff;
  --accent-2: color-mix(in srgb, var(--accent) 70%, #ff3b30);

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --hair: #e4e4e8;

  --ink-bg: #06070a;          /* secciones oscuras dramáticas */
  --ink-text: #f5f5f7;
  --ink-muted: #a1a1aa;

  --maxw: 1120px;
  --r-lg: 30px; --r-md: 20px; --r-sm: 12px;
  color-scheme: light;
}
:root[data-theme="dark"], :root:not([data-theme="light"]) {}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --bg-2: #0a0a0c; --surface: #131315; --text: #f5f5f7;
    --text-muted: #98989d; --hair: #232327; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --bg-2: #0a0a0c; --surface: #131315; --text: #f5f5f7;
  --text-muted: #98989d; --hair: #232327; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Tipografía editorial ---------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.04; }
.display { font-size: clamp(3rem, 8.5vw, 7rem); font-weight: 700; letter-spacing: -0.035em; }
h2.big { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--text-muted); font-weight: 400; line-height: 1.4; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.grad-text { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Nav --------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 54px; }
.nav-brand { display: flex; align-items: center; }
.nav-brand .nav-logo { height: 19px; width: auto; }
/* Wordmark de marca: versión clara (texto negro) y oscura (texto blanco). Se muestra una u
   otra según el tema, igual que los marcos de dispositivo. Por defecto (claro): la clara. */
.brand-wordmark { display: inline-block; }
.brand-wordmark.dark { display: none; }
:root[data-theme="dark"] .brand-wordmark.light { display: none; }
:root[data-theme="dark"] .brand-wordmark.dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-wordmark.light { display: none; }
  :root:not([data-theme="light"]) .brand-wordmark.dark { display: inline-block; }
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-tool { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1rem; }

/* ---- Botones ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 30px;
  border-radius: 999px; font-weight: 600; font-size: 1.05rem; transition: transform .2s, box-shadow .3s, background .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { text-decoration: underline; }
/* Badge oficial "Descargar en App Store" (Apple Marketing Resources): imagen tal cual, sin recolorear.
   Variante negra en tema claro, blanca en tema oscuro — mismo interruptor que .brand-wordmark. */
.btn-badge { display: inline-flex; align-items: center; height: 54px; transition: transform .2s; }
.btn-badge:hover { transform: translateY(-2px); }
.appstore-badge { display: block; height: 100%; width: auto; }
.appstore-badge.dark { display: none; }
:root[data-theme="dark"] .appstore-badge.light { display: none; }
:root[data-theme="dark"] .appstore-badge.dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .appstore-badge.light { display: none; }
  :root:not([data-theme="light"]) .appstore-badge.dark { display: block; }
}

/* ---- Hero -------------------------------------------------------------- */
/* Hero compacto: sin teléfono estático propio. El carrusel fijado (.walk) lo sigue de inmediato
   y "sube" al hero como primer y único dispositivo. */
.hero { position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: clamp(20px, 3vh, 48px) 0 clamp(4px, 1vh, 14px); overflow: hidden; }
/* Lockup horizontal: icono de la app a la IZQUIERDA del título. */
/* Título centrado (coincide con el subtítulo). El icono va INLINE pegado a la "T" de la 1ª línea
   y se centra con ella como una sola unidad (lockup). */
.hero-head { margin: 0 auto; max-width: 100%; }
.hero .hero-head .display { margin: 0; text-align: center; max-width: none; }
.hero-titleline { display: inline-flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.hero-titleline .hero-icon { flex: none; margin: 0; }
.hero-scrollcue { width: 22px; height: 22px; margin: clamp(18px, 3vh, 38px) auto 0;
  border-right: 2px solid var(--hair); border-bottom: 2px solid var(--hair);
  transform: rotate(45deg); opacity: .55; animation: cuebob 1.8s ease-in-out infinite; }
@keyframes cuebob { 0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); } }
@media (prefers-reduced-motion: reduce) { .hero-scrollcue { animation: none; } }
.hero-glow { position: absolute; inset: -20% 0 auto 0; height: 120%; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 50% 22%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
/* El mark del hero son los slashes naranja sobre transparente: encaja igual en claro y oscuro
   sin tile ni sombra (la sombra creaba una "tarjeta" que resaltaba en claro y desaparecía en oscuro). */
.hero-icon { width: 104px; height: 104px;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .display { margin: 30px auto 0; max-width: 15ch; animation: rise .9s .06s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { margin: 24px auto 0; max-width: 36ch; animation: rise .9s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap;
  animation: rise .9s .18s cubic-bezier(.2,.7,.2,1) both; }
.hero-stage { margin: clamp(40px, 7vw, 90px) auto 0; animation: rise 1s .24s cubic-bezier(.2,.7,.2,1) both; }
/* Hero ya enmarcado con bezel OFICIAL de Apple (Apple TV / iPhone / iPad): imagen plana, sin marco CSS */
.hero-shot-framed { display: block; width: auto; height: auto; max-width: min(960px, 96%); max-height: 74vh; margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.05)) drop-shadow(0 24px 44px rgba(0,0,0,.06)) drop-shadow(0 56px 88px rgba(0,0,0,.05)); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero *[style], .hero-icon, .hero .display, .hero .lead, .hero-cta, .hero-stage { animation: none !important; } }

/* ---- Marco de iPhone (CSS, sin imágenes de chrome) --------------------- */
.iphone { position: relative; width: 300px; aspect-ratio: 300/620;
  background: linear-gradient(155deg,#2c2c30,#050506 60%);
  border-radius: 58px; padding: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.32), 0 6px 18px rgba(0,0,0,.2); }
.iphone::before { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; background: #000; border-radius: 13px; z-index: 3; } /* Dynamic Island */
.iphone .screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: var(--bg-2); }
.iphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* En modo oscuro el bisel negro se funde con el fondo → aro fino claro para que el contorno del teléfono se vea */
:root[data-theme="dark"] .iphone {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 0 40px 90px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iphone {
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 0 40px 90px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4); } }

/* ---- Pantalla Apple TV (16:9). Apple no publica bezel de TV (Apple TV es una caja,
   no una pantalla) → panel limpio redondeado con sombra, sin marco "plástico". -------- */
.tv { position: relative; width: 640px; max-width: 94%; aspect-ratio: 16/9; border-radius: 16px;
  overflow: hidden; background: var(--bg-2); border: 1px solid var(--hair);
  box-shadow: 0 30px 80px rgba(0,0,0,.26), 0 2px 10px rgba(0,0,0,.12); }
.tv .screen { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; }
.tv .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage .tv, .walk-device .tv { margin: 0 auto; }
:root[data-theme="dark"] .tv { border-color: rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tv { border-color: rgba(255,255,255,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4); } }

/* ---- Marco de iPad (tablet 3:4; apps iOS universales) ------------------ */
.ipad { position: relative; width: 360px; max-width: 92%; aspect-ratio: 3/4; background: #0b0b0d;
  border-radius: 26px; padding: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.28), 0 6px 18px rgba(0,0,0,.18); }
.ipad .screen { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.ipad .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="dark"] .ipad { box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 40px 90px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ipad {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 40px 90px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4); } }

/* Wordmark: identidad textual cuando la app no tiene icono (fallback de marca) */
.wordmark { font-weight: 800; letter-spacing: -.01em; }
.hero-wordmark { display: block; margin: 0 auto; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--text-muted); text-transform: uppercase; }

/* ---- Banda "Disponible en…" (apps multiplataforma) -------------------- */
.platforms { text-align: center; }
.platforms h2.big { margin-bottom: clamp(40px, 6vw, 72px); }
.platform-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: clamp(32px, 6vw, 72px); }
.platform-item { display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* Marcos a menor escala dentro de la banda (no compiten con el hero) */
.platform-item .iphone { width: 188px; }
.platform-item .ipad   { width: 300px; }
.platform-item .tv     { width: 420px; }
/* Imagen ya enmarcada con el bezel OFICIAL de Apple (el marco va en el PNG) → sin marco CSS */
.platform-shot { display: block; height: clamp(340px, 40vw, 440px); width: auto; max-width: 100%;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.22)); }
/* Con varias plataformas en la banda, la altura común dispara el ancho de las apaisadas (el PNG del
   Apple TV es 1.55:1) y la fila se desborda. Escala cada aparato como en la realidad: el iPhone es
   el más pequeño y la tele la más grande. */
.platform-iphone .platform-shot { height: clamp(200px, 24vw, 260px); }
.platform-ipad   .platform-shot { height: clamp(230px, 27vw, 292px); }
.platform-tv     .platform-shot { height: clamp(210px, 25vw, 268px); }
.platform-mac    .platform-shot { height: clamp(190px, 23vw, 244px); }
.platform-label { font-weight: 600; font-size: 1.05rem; color: var(--text-muted); letter-spacing: -.01em; }
.platform-link { display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.platform-link:hover { transform: translateY(-6px); }
.platform-link:hover .platform-label { color: var(--accent); }
/* Plataforma aún no disponible dentro de una banda mixta: se ve, pero no compite con las que ya están */
.platform-item-coming { opacity: .72; }
.platform-note { margin-top: -8px; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-muted); border: 1px solid currentColor; border-radius: 999px;
  padding: 4px 12px; opacity: .8; }
.platform-note-store { color: var(--accent); opacity: 1; }
.platform-link:hover .platform-note-store { background: var(--accent); color: var(--bg); }

/* ---- Sección FIJADA interactiva (feature walk) ------------------------- */
.walk { position: relative; }
.walk-sticky { position: sticky; top: 0; min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; align-items: center; align-content: start; gap: 40px;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 9vh, 100px) 28px 0; }
.walk-copy { position: relative; display: flex; flex-direction: column; }
.walk-steps { position: relative; min-height: 300px; }   /* alberga el caption más largo, sin colapsar */
.walk-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; pointer-events: none; }
.walk-step.is-active { opacity: 1; transform: none; }
.walk-step .eyebrow { margin-bottom: 14px; }
.walk-step h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: 16px; }
.walk-step p { color: var(--text-muted); font-size: 1.18rem; max-width: 42ch; }
.walk-device { display: flex; justify-content: center; }
.walk-device .screen img { opacity: 0; transition: opacity .5s ease; }
.walk-device .screen img.is-active { opacity: 1; }
/* Walk con bezel OFICIAL (walk-framed): imágenes ya enmarcadas que se funden, sin marco CSS */
.walk-framed { position: relative; width: min(640px, 100%); margin: 0 auto; aspect-ratio: 4300 / 2780; }
.walk-framed .walk-fimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .5s ease; filter: drop-shadow(0 26px 50px rgba(0,0,0,.22)); }
.walk-framed .walk-fimg.is-active { opacity: 1; }
/* TV (landscape): la pantalla manda ARRIBA, grande y centrada; el texto del carrusel va DEBAJO,
   centrado. Una sola columna apilada. Solo desde 821px; por debajo se apila con la regla base. */
@media (min-width: 821px) {
  .walk-tv .walk-sticky { grid-template-columns: 1fr; gap: clamp(20px, 3vh, 40px);
    max-width: min(1100px, 94vw); }
  .walk-tv .walk-device { order: -1; }                       /* TV arriba */
  .walk-tv .walk-framed { width: 100%; max-width: min(1000px, 80vh); }
  .walk-tv .walk-copy { align-items: center; }
  .walk-tv .walk-steps { min-height: 150px; width: 100%; }
  .walk-tv .walk-step { align-items: center; text-align: center; }
  .walk-tv .walk-step p { max-width: 60ch; margin-inline: auto; }
  .walk-tv .walk-progress { justify-content: center; }
}
.walk-progress { margin-top: 30px; display: flex; gap: 8px; }   /* EN FLUJO, debajo de los captions → nunca solapa */
.walk-progress span { width: 26px; height: 4px; border-radius: 4px; background: var(--hair); transition: background .3s; }
.walk-progress span.is-active { background: var(--accent); }

/* ---- Statement oscuro dramático ---------------------------------------- */
.statement { position: relative; background: var(--ink-bg); color: var(--ink-text);
  padding: clamp(110px, 18vw, 220px) 0; text-align: center; overflow: hidden; }
.statement-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  animation: glow-breathe 7s ease-in-out infinite; }
@keyframes glow-breathe { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .statement-glow { animation: none; } }
.statement .wrap { position: relative; z-index: 1; }
.statement .eyebrow { color: var(--accent); }
.statement h2 { max-width: 18ch; margin: 16px auto 0; }
.statement p { color: var(--ink-muted); font-size: 1.25rem; max-width: 52ch; margin: 22px auto 0; }

/* ---- Grid de features (tarjetas refinadas, sin emojis) ----------------- */
.section { padding: clamp(90px, 13vw, 160px) 0; }
.section-head { text-align: center; max-width: 30ch; margin: 0 auto clamp(50px, 7vw, 80px); }
.section-head p { color: var(--text-muted); font-size: 1.15rem; margin-top: 16px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gcard { background: var(--bg-2); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 34px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s; cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; -webkit-appearance: none; appearance: none; display: block; }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hair)); }
.gcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gcard .mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); display: grid; place-items: center; }
.gcard .mark svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.gcard h3 { font-size: 1.3rem; margin-bottom: 8px; }
.gcard p { color: var(--text-muted); font-size: 1rem; }
.gcard .more { margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.gcard:hover .more { gap: 11px; }

/* ---- Modal de detalle de feature (clic en tarjeta → explicación + casos de uso) ---- */
.fmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, #000 55%, transparent); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.fmodal.open { opacity: 1; visibility: visible; }
.fmodal-card { position: relative; background: var(--surface); color: var(--text); border-radius: var(--r-lg);
  max-width: 660px; width: 100%; max-height: 86vh; overflow: auto; padding: 44px clamp(28px,5vw,48px);
  box-shadow: 0 40px 120px rgba(0,0,0,.45); transform: translateY(28px) scale(.97);
  transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.fmodal.open .fmodal-card { transform: none; }
.fmodal .close { position: absolute; top: 18px; right: 18px; background: var(--bg-2); border: 0; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
.fmodal .close:hover { color: var(--text); }
.fmodal .mark { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); display: grid; place-items: center; }
.fmodal .mark svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.fmodal h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 14px; }
.fmodal .lede { color: var(--text-muted); font-size: 1.12rem; line-height: 1.5; margin-bottom: 30px; }
.fmodal .uc-title { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700;
  color: var(--accent); margin: 0 0 16px; }
.fmodal ul.uc { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fmodal ul.uc li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.02rem; line-height: 1.45; }
.fmodal ul.uc li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: var(--accent); }
.fmodal ul.uc b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .fmodal, .fmodal-card { transition: opacity .2s; } .fmodal-card { transform: none; } }

/* ---- CTA final --------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 16ch; margin: 0 auto 30px; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--hair); padding: 64px 0 54px; color: var(--text-muted); font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; margin-bottom: 44px; }
.footer-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: var(--text-muted); transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-brand .footer-logo { height: 20px; width: auto; margin-bottom: 12px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--hair); }

/* ---- Reveal (JS lo arma; visible por defecto si no hay JS) -------------- */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .anim .reveal { opacity: 1; transform: none; } }

/* ---- Refinos tipográficos + pulido del modal --------------------------- */
.display { letter-spacing: -.04em; }
h2.big { letter-spacing: -.03em; }
.lead { letter-spacing: -.005em; }
.fmodal-card { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.fmodal-card > * { opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.fmodal.open .fmodal-card > * { opacity: 1; transform: none; }
.fmodal.open .fmodal-card > *:nth-child(2) { transition-delay: .05s; }
.fmodal.open .fmodal-card > *:nth-child(3) { transition-delay: .10s; }
.fmodal.open .fmodal-card > *:nth-child(4) { transition-delay: .15s; }
.fmodal.open .fmodal-card > *:nth-child(5) { transition-delay: .20s; }
@media (prefers-reduced-motion: reduce) { .fmodal-card, .fmodal-card > * { transition: opacity .2s; transform: none; } }

/* ---- FAQ (acordeón nativo <details>, animado con grid-rows) ------------- */
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.faq h2.big { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 26px 4px; font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: -.01em;
  transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 11px; width: 11px; height: 11px; margin-top: -5px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .3s, border-color .3s; }
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-muted); font-size: 1.06rem; line-height: 1.55; max-width: 62ch; margin: 0 0 26px; }
.faq-a ul { color: var(--text-muted); font-size: 1.06rem; line-height: 1.55; max-width: 62ch; margin: 0 0 26px; padding-left: 1.2em; }
.faq-a ul li { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---- CTA final reforzada (momento "descarga") -------------------------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 64% at 50% 38%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.cta-final .wrap { position: relative; z-index: 1; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 820px) {
  .walk-sticky { grid-template-columns: 1fr; gap: 24px; padding-top: 80px; text-align: center; }
  .walk-steps { min-height: 210px; }
  .walk-step p { margin-inline: auto; }
  .walk-progress { justify-content: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .hero-titleline { gap: 12px; }
  .hero-titleline .hero-icon { width: 64px; height: 64px; }
}

/* ---- Banner de consentimiento de cookies (solo webs con analítica) ------ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 660px; margin: 0 auto; display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap; justify-content: space-between; background: var(--surface); color: var(--text);
  border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.cookie-banner[hidden] { display: none; }
.cookie-text strong { font-size: 1rem; }
.cookie-text p { margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { border: 1px solid var(--hair); background: transparent; color: var(--text);
  border-radius: 999px; padding: 9px 18px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cookie-btn:hover { border-color: var(--accent); color: var(--accent); }
.cookie-accept { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cookie-accept:hover { color: var(--accent-ink); filter: brightness(1.05); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
