/* Easy Stock — landing.
   Estructura y scroll de la plantilla «App Landing» de Framer (app-landing.framer.website).
   Piel: la de Easy Stock 0.43 (repositorio, 21-09-2026), que sustituye a la crema de Lumio:
     · página gris frío #F6F8FB, tarjetas blancas, tinta azul marino #1A1F36
     · botón sólido #101828; violeta #635BFF solo para «lo que te toca a ti»
     · Inter para interfaz y texto, Plus Jakarta Sans para titulares, IBM Plex Mono para datos
     · radios de 10 px y sombras de 1 px, como la maqueta aprobada del Panel
   El logo sigue siendo el isotipo de los tres bloques, igual que en la app.

   Capítulos: 1 portada fijada · 2 el problema · 3 la cadena (cinco pasos sobre el Panel)
   · 4 cinco agencias · 5 todo en una pantalla · 6 un lote de verdad · 7 reparto
   · 8 lo que no hace · 9 preguntas · 10 acceso. */

:root {
  --fondo: #F6F8FB;
  --tarjeta: #FFFFFF;
  --hundido: #F0F2F6;
  --linea: #E6E9EF;
  --borde: #E6E9EF;
  --tinta: #1A1F36;
  --texto: #697386;
  --texto-2: #8C95A6;
  --suave: #C5CBD6;
  --boton: #101828;
  --violeta: #635BFF;
  --violeta-b: #EFEDFF;
  --ok: #0E9F6E;
  --noche: #0B0C0E;
  --noche-texto: #EDEFF2;
  --noche-mut: #98A0AC;

  --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --sombra-2: 0 4px 12px rgba(16, 24, 40, .07);

  --titular: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  --fuente: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violeta); outline-offset: 3px; }
::selection { background: var(--violeta-b); color: var(--tinta); }
main { display: flex; flex-direction: column; align-items: center; overflow-x: clip; }

/* ---------- Texto ---------- */

.t-hero { font-family: var(--titular); font-size: 76px; font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; text-align: center; text-wrap: balance; }
.t-h2 { font-family: var(--titular); font-size: 52px; font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.t-h2 .gris { color: var(--suave); }
.t-entradilla { font-size: 20px; line-height: 1.45; letter-spacing: -0.012em; color: var(--texto); text-wrap: pretty; }
.t-tarjeta { font-family: var(--titular); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.t-cuerpo { font-size: 16px; line-height: 1.55; letter-spacing: -0.006em; color: var(--texto); }
.t-grande { font-family: var(--titular); font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.etiqueta { font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--violeta); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }

/* ---------- Botones (los de la maqueta del Panel) ---------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  background: var(--boton); color: #FFFFFF;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: var(--sombra);
  transition: background-color .25s, transform .3s var(--curva), box-shadow .25s;
}
.boton:hover { background: #26304A; box-shadow: var(--sombra-2); }
.boton:active { transform: scale(0.97); }
.boton--claro { background: var(--tarjeta); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra); }
.boton--claro:hover { background: var(--hundido); }
.boton--pequeno { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }


.isotipo { flex: none; }
.isotipo img { width: 100%; height: 100%; }

/* ---------- Aparición al entrar ---------- */

.aparece { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--curva), transform 1.1s var(--curva); transition-delay: var(--r, 0s); }
.aparece.visible { opacity: 1; transform: none; }

/* ---------- MacBook ----------
   Tapa con marco negro y borde de aluminio, pantalla 16:10 (la de las capturas, a 2880 px:
   nada se estira ni se recorta) y base de aluminio con su muesca. Todo en CSS. */

.mac { position: relative; width: 100%; }
.mac__tapa {
  position: relative;
  padding: 2.6% 2.6% 3.4%;
  border-radius: 3.4% 3.4% 1.2% 1.2% / 5.2% 5.2% 1.8% 1.8%;
  background: #0C0C0E;
  box-shadow:
    0 0 0 1.5px #C9CBD0,
    0 0 0 2.5px #9EA1A7,
    0 30px 60px -30px rgba(16, 24, 40, .35);
}
.mac__tapa::before {             /* cámara */
  content: ""; position: absolute; top: 1.15%; left: 50%;
  width: .55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #3A3F4A, #121316 70%);
  transform: translateX(-50%);
}
.mac__pantalla {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: .5%;
  background: var(--fondo);
}
.mac__pantalla--noche { background: var(--noche); }
.mac__img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto;
  transform: translateY(var(--desliza, 0%));
  transition: transform 1.2s var(--curva);
  will-change: transform;
  image-rendering: auto;
}
/* Reflejo muy suave del cristal */
.mac__pantalla::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 38%);
}
.mac__base {
  position: relative;
  width: 116%; margin-left: -8%;
  aspect-ratio: 100 / 3.1;
  border-radius: 0 0 48% 48% / 0 0 100% 100%;
  background: linear-gradient(#E4E5E8 0%, #D3D5D9 38%, #A9ACB2 100%);
  box-shadow: inset 0 1px 0 #F4F5F7, 0 18px 30px -18px rgba(16, 24, 40, .45);
}
.mac__base::before {             /* muesca para abrir la tapa */
  content: ""; position: absolute; top: 0; left: 50%;
  width: 13%; height: 42%;
  border-radius: 0 0 10px 10px / 0 0 100% 100%;
  background: linear-gradient(#B7BABF, #CFD1D5);
  transform: translateX(-50%);
}

/* Marco de foco sobre la zona que explica cada paso */
.foco {
  position: absolute; z-index: 2; top: 0; left: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--violeta), 0 0 0 7px rgba(99, 91, 255, .16);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;           /* no estorba: se hace clic a través del marco */
}
es-panel { position: absolute; inset: 0; display: block; }
.foco.on { opacity: 1; }

.nota-ejemplo { font-size: 12px; color: var(--texto-2); text-align: center; }
.nota-prueba { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--texto); }
.nota-prueba__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--violeta); box-shadow: 0 0 0 0 rgba(99, 91, 255, .5); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgba(99, 91, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); } }

/* ---------- Escenario fijado ---------- */

.capitulo { position: relative; width: 100%; }
.escenario { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* =================== NAVEGACIÓN =================== */

.nav { position: fixed; top: 28px; left: 50%; z-index: 20; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); white-space: nowrap; }
.nav__capsula {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 18px 0 14px; border-radius: 10000px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(230, 233, 239, .9), 0 1px 2px rgba(16,24,40,.05), 0 10px 30px -8px rgba(16,24,40,.12);
  transition: padding .5s var(--curva), background-color .4s, color .4s;
}
.nav__marca { display: flex; align-items: center; gap: 8px; font-family: var(--titular); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.nav__marca .isotipo { width: 22px; height: 22px; }
.nav__separador { width: 1px; height: 20px; background: var(--linea); }
.nav__enlaces { display: flex; align-items: center; gap: 14px; }
.nav__enlaces a { font-size: 14px; font-weight: 500; color: var(--texto); transition: color .2s; }
.nav__enlaces a:hover { color: var(--tinta); }
.nav__cta { display: flex; align-items: center; gap: 14px; max-width: 0; margin-left: -14px; overflow: hidden; opacity: 0; transition: max-width .5s var(--curva), opacity .3s, margin-left .5s var(--curva); }
.nav--cta .nav__cta { max-width: 220px; margin-left: 0; opacity: 1; }
.nav--cta .nav__capsula { padding-right: 8px; }
.nav__menu-boton { display: none; }
.nav__solo-movil { display: none; }

.nav--oscuro .nav__capsula { background: rgba(24, 26, 31, .8); color: var(--noche-texto); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -8px rgba(0,0,0,.5); }
.nav--oscuro .nav__separador { background: rgba(255,255,255,.12); }
.nav--oscuro .nav__enlaces a { color: var(--noche-mut); }
.nav--oscuro .nav__enlaces a:hover { color: var(--noche-texto); }
.nav--oscuro .nav__marca img { content: url("../img/svg/isotipo-inverso.svg"); }
.nav--oscuro .boton { background: #FFFFFF; color: var(--noche); }

/* =================== 1 · PORTADA =================== */

.portada { height: calc(100vh + 900px); height: calc(100svh + 900px); }
.portada .escenario { display: flex; flex-direction: column; align-items: center; }
.portada__texto {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  width: 100%; padding: 132px 24px 0;
  will-change: transform, opacity;
}
.portada__texto .t-hero { max-width: 900px; }
.portada__texto .t-entradilla { max-width: 560px; text-align: center; }
.portada__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.portada__agencias { font-size: 13px; color: var(--texto-2); text-align: center; }
.portada__agencias b { font-weight: 500; color: var(--texto); }

/* Va justo debajo del texto (56 px), no pegado al fondo de la pantalla:
   así el hueco no crece en pantallas altas. */
.portada__mac {
  position: relative; z-index: 1; flex: none;
  width: min(1060px, 84vw);
  margin-top: 56px;
  transform-origin: 50% 0;
  opacity: 0;
  will-change: transform, opacity;
}
.portada__pista {
  position: absolute; bottom: 24px; left: 50%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateX(-50%);
}
.portada__pista span { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--tinta) 50%, var(--linea) 50%); background-size: 100% 200%; animation: pista 1.8s var(--curva) infinite; }
@keyframes pista { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* =================== 2 · EL PROBLEMA =================== */

.problema { height: 260vh; }
.problema .escenario { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.problema__caja { display: flex; flex-direction: column; gap: 40px; width: 1000px; max-width: 100%; }
.problema__texto { font-family: var(--titular); font-size: 50px; font-weight: 800; line-height: 1.14; letter-spacing: -0.035em; }
.p { color: var(--suave); transition: color .35s linear; }
.p.on { color: var(--tinta); }
.problema__dato { display: flex; align-items: center; gap: 14px; }
.problema__dato .mono { color: var(--tinta); white-space: nowrap; }
.problema__barra { position: relative; flex: 1; max-width: 320px; height: 4px; border-radius: 4px; background: var(--linea); overflow: hidden; }
.problema__barra i { position: absolute; inset: 0; background: var(--violeta); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* =================== 3 · LA CADENA =================== */

.cadena { height: 620vh; }
.cadena .escenario { display: flex; align-items: center; justify-content: center; padding: 104px 32px 40px; }
.cadena__rejilla { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 72px; width: 1340px; max-width: 100%; }

.cadena__riel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 40px; }
.cadena__riel span { position: relative; height: 4px; border-radius: 4px; background: var(--linea); overflow: hidden; }
.cadena__riel span i { position: absolute; inset: 0; background: var(--violeta); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

.cadena__pasos { position: relative; min-height: 300px; }
.paso {
  position: absolute; inset: 0 0 auto 0;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--curva), transform .8s var(--curva);
  pointer-events: none;
}
.paso.activo { opacity: 1; transform: none; pointer-events: auto; }
.paso.pasado { transform: translateY(-24px); }
.paso__num { font-family: var(--mono); font-size: 13px; color: var(--texto-2); }
.paso .t-h2 { font-size: 42px; }
.paso .t-entradilla { font-size: 18px; }

.cadena__mac { position: relative; width: 100%; }
.cadena__mac .nota-ejemplo { margin-top: 26px; }

/* =================== 4 · CINCO AGENCIAS =================== */

.cinco { height: 230vh; }
.cinco .escenario { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.cinco__contenido { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 90px; width: 1000px; max-width: 100%; }
.cinco .t-h2 { max-width: 660px; }
.cinco__apps { position: relative; display: flex; gap: 30px; }
.cinco__linea { position: absolute; top: 56px; left: 0; z-index: 0; width: 1140px; height: 6px; border-radius: 6px; background: var(--linea); overflow: hidden; }
.cinco__linea i { position: absolute; inset: 0; background: var(--tinta); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.cinco__lista { position: relative; z-index: 1; display: flex; gap: 30px; }
.agencia {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 120px; height: 120px; padding: 14px;
  border-radius: 24px; background: var(--tarjeta);
  box-shadow: inset 0 0 0 1px var(--linea), var(--sombra);
  color: var(--texto-2);
  font-family: var(--titular); font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  transform: scale(.88);
  transition: background-color .5s var(--curva), color .5s, box-shadow .5s, transform .9s var(--curva);
}
.agencia small { font-family: var(--mono); font-size: 11px; font-weight: 400; }
.agencia.on { background: var(--tinta); color: #FFFFFF; box-shadow: 0 10px 24px -12px rgba(26, 31, 54, .6); transform: scale(1); }
.agencia.on small { color: #8C95A6; }
.cinco__grande {
  position: absolute; top: 50%; left: calc(50% + 280px); z-index: 2;
  width: min(400px, calc(50vw - 300px)); height: auto; aspect-ratio: 1; margin-top: -120px;
  transform: translateX(calc((1 - var(--g, 0)) * 60px)) scale(calc(.9 + var(--g, 0) * .1));
  opacity: calc(.12 + var(--g, 0) * .88);
}

/* =================== 5 · TODO EN UNA PANTALLA =================== */

.seccion { display: flex; flex-direction: column; align-items: center; gap: 56px; width: 100%; padding: 130px 24px; }
.cabecera { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cabecera__titulos { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cabecera .t-h2 { max-width: 720px; }
.cabecera .t-entradilla { max-width: 560px; }

.ventanas { position: relative; width: 100%; max-width: 1384px; height: 470px; }
/* Las tres enteras: las laterales, más pequeñas y detrás, nunca salen del contenedor */
.ventanas__centro { position: absolute; z-index: 2; top: 0; left: 50%; width: 660px; margin-left: -330px; }
.ventanas__lado { position: absolute; z-index: 1; top: 56px; left: 50%; width: 440px; margin-left: -220px; will-change: transform; }
.ventanas__lado .mac__tapa { box-shadow: 0 0 0 1.5px #C9CBD0, 0 0 0 2.5px #9EA1A7, 0 20px 40px -24px rgba(16,24,40,.35); }

/* =================== 6 · UN LOTE DE VERDAD (banda de noche) =================== */

.lote { height: 440vh; background: var(--noche); color: var(--noche-texto); }
.lote .escenario { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 100px 24px 90px; text-align: center; }
.lote__etiqueta { color: #A9A3FF; }
.lote__cifra { font-family: var(--titular); font-size: clamp(140px, 24vw, 320px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.lote__textos { position: relative; width: 660px; max-width: 100%; min-height: 120px; }
.lote__texto { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--curva), transform .8s var(--curva); }
.lote__texto.activo { opacity: 1; transform: none; }
.lote__texto .t-tarjeta { font-size: 28px; }
.lote__texto p + p { margin-top: 10px; color: var(--noche-mut); font-size: 18px; line-height: 1.45; }
.lote__puntos { display: flex; gap: 8px; }
.lote__puntos span { width: 28px; height: 4px; border-radius: 4px; background: #272B32; transition: background-color .4s; }
.lote__puntos span.on { background: #8B85FF; }
.lote__fuente { position: absolute; bottom: 28px; left: 20px; right: 20px; color: #6A7280; }

/* =================== 7 · REPARTO =================== */

.reparto { position: relative; display: flex; width: 820px; max-width: 100%; padding: 20px; border-radius: 28px; background: var(--hundido); box-shadow: inset 0 0 0 1px var(--linea); }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: 375px; }
.plan--app { padding: 36px 24px 36px 26px; }
.plan--tu { width: 405px; padding: 36px; border-radius: 22px; background: var(--tarjeta); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-2); transform: translate(150px, 60px) rotate(5deg); will-change: transform; }
.plan__contenido { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.plan__icono { width: 40px; height: 40px; }
.plan__titulos { display: flex; flex-direction: column; gap: 8px; }
.plan__cifra { display: flex; align-items: baseline; gap: 10px; }
.plan__divisor { width: 100%; height: 1px; background: var(--linea); }
.plan__lista { display: flex; flex-direction: column; gap: 10px; }
.plan__lista li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--texto); }
.plan__lista li::before { content: "✓"; flex: none; font-weight: 700; color: var(--ok); }
.plan--tu .plan__lista li::before { content: "●"; font-size: 9px; line-height: 2.3; color: var(--violeta); }
.glifo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--violeta-b); color: var(--violeta); font-size: 18px; font-weight: 700; }

/* =================== 8 · LO QUE NO HACE =================== */

.columnas { display: flex; align-items: flex-start; gap: 12px; width: 820px; max-width: 100%; }
.columna { display: flex; flex: 1 1 0; flex-direction: column; gap: 12px; min-width: 0; }
.tarjeta { position: relative; padding: 28px; border-radius: 20px; background: var(--tarjeta); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra); }
.tarjeta__dentro { display: flex; flex-direction: column; gap: 18px; }
.tarjeta__texto { display: flex; flex-direction: column; gap: 8px; }
.tarjeta__divisor { height: 1px; background: var(--linea); }
.tarjeta__pie { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.tarjeta__glifo { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hundido); color: var(--tinta); font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--linea); }

/* =================== 9 · PREGUNTAS =================== */

.preguntas { display: flex; flex-direction: column; gap: 10px; width: 640px; max-width: 100%; }
.pregunta { position: relative; border-radius: 14px; background: var(--tarjeta); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra); }
.pregunta__boton { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 20px 22px; border: 0; background: none; font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; }
.pregunta__mas { position: relative; flex: none; width: 14px; height: 14px; }
.pregunta__mas::before, .pregunta__mas::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 2px; background: var(--tinta); transition: transform .4s var(--curva); }
.pregunta__mas::after { transform: rotate(90deg); }
.pregunta.abierta .pregunta__mas::after { transform: rotate(0deg); }
.pregunta__respuesta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--curva); }
.pregunta.abierta .pregunta__respuesta { grid-template-rows: 1fr; }
.pregunta__respuesta > div { min-height: 0; overflow: hidden; }
.pregunta__respuesta p { padding: 0 22px 22px; }

/* =================== 10 · ACCESO =================== */

.acceso { display: flex; flex-direction: column; align-items: center; gap: 56px; width: 100%; padding-top: 130px; overflow: clip; }
.acceso__cabecera { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px; text-align: center; }
.acceso__icono { width: 104px; height: 104px; }
.acceso__escena { position: relative; display: flex; justify-content: center; width: 100%; height: 640px; will-change: transform; }
.acceso__mac { position: absolute; top: 40px; width: min(980px, 84%); }

/* =================== PIE =================== */

.pie { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; border-top: 1px solid var(--linea); background: var(--tarjeta); }
.pie__dentro { display: flex; flex-direction: column; gap: 110px; width: 1100px; max-width: 100%; padding: 50px 24px 28px; }
.pie__fila { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.pie__marca { display: flex; flex-direction: column; gap: 10px; width: 280px; }
.pie__logo { display: flex; align-items: center; gap: 8px; font-family: var(--titular); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.pie__logo .isotipo { width: 22px; height: 22px; }
.pie__marca p, .pie__col a, .pie__col p, .pie__legal { font-size: 14px; line-height: 1.4; color: var(--texto); }
.pie__cols { display: flex; gap: 70px; }
.pie__col { display: flex; flex-direction: column; gap: 10px; }
.pie__col h3 { font-size: 14px; font-weight: 600; }
.pie__col a:hover { color: var(--tinta); }
.pie__legal { padding-top: 24px; border-top: 1px solid var(--linea); }

/* =================== PORTÁTIL Y TABLETA =================== */

@media (max-width: 1199.98px) {
  .t-hero { font-size: 62px; }
  .t-h2, .problema__texto { font-size: 44px; }
  .paso .t-h2 { font-size: 36px; }
  .cadena__rejilla { grid-template-columns: 300px minmax(0, 1fr); gap: 44px; }
  .cinco__grande { left: calc(100% - 24px - 290px); width: 290px; margin-top: -80px; }
  .ventanas { height: 400px; }
  .ventanas__centro { width: 560px; margin-left: -280px; }
  .ventanas__lado { top: 48px; width: 360px; margin-left: -180px; }
}

@media (min-width: 810px) and (max-width: 999.98px) {
  .cinco .escenario { flex-direction: column; }
  .cinco__contenido { gap: 50px; }
  .cinco__apps { flex-direction: column; align-items: center; }
  .cinco__linea { top: auto; bottom: -56px; left: 50%; width: 4px !important; height: 56px; margin-left: -2px; }
  .cinco__linea i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .cinco__grande { position: relative; top: auto; left: auto; width: 220px; margin: 56px auto 0; transform: scale(calc(.9 + var(--g, 0) * .1)); }
}

@media (max-width: 899.98px) {
  .cadena .escenario { align-items: flex-start; padding: 86px 20px 20px; }
  .cadena__rejilla { grid-template-columns: 1fr; gap: 24px; }
  .cadena__texto { order: 2; }
  .cadena__mac { order: 1; }
  .cadena__mac .nota-ejemplo { margin-top: 14px; }
  .cadena__riel { margin-bottom: 20px; }
  .cadena__pasos { min-height: 230px; }
}

/* =================== MÓVIL =================== */

@media (max-width: 809.98px) {
  .t-hero { font-size: 44px; }
  .t-h2 { font-size: 34px; }
  .problema__texto { font-size: 30px; }
  .paso .t-h2 { font-size: 28px; }
  .paso .t-entradilla, .t-entradilla { font-size: 17px; }
  .t-grande { font-size: 34px; }

  .nav { top: 0; left: 0; width: 100%; max-width: none; transform: none; }
  .nav__capsula { justify-content: space-between; height: 58px; padding: 0 20px; border-radius: 0; background: rgba(255,255,255,.9); box-shadow: 0 1px 0 var(--linea); }
  .nav--oscuro .nav__capsula { background: rgba(11,12,14,.9); box-shadow: 0 1px 0 #272B32; }
  .nav__separador, .nav__cta { display: none; }
  .nav__enlaces {
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px;
    background: #FFFFFF; border-bottom: 1px solid var(--linea); box-shadow: 0 16px 32px -16px rgba(16, 24, 40, .18);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--curva);
  }
  .nav__enlaces a, .nav--oscuro .nav__enlaces a { font-size: 17px; color: var(--tinta); }
  .nav--abierta .nav__enlaces { opacity: 1; pointer-events: auto; transform: none; }
  .nav__enlaces a.nav__solo-movil { display: inline-flex; margin-top: 4px; color: #FFFFFF; }
  .nav__menu-boton { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 0 7px; border: 0; background: none; cursor: pointer; }
  .nav__menu-boton span { height: 1.5px; background: currentColor; transition: transform .3s var(--curva); }
  .nav--abierta .nav__menu-boton span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav--abierta .nav__menu-boton span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .portada { height: calc(100svh + 520px); }
  .portada__texto { padding: 92px 20px 0; gap: 16px; }
  .portada__mac { width: calc(100vw - 48px); margin-top: 32px; }
  .portada__pista { display: none; }

  .problema { height: 230vh; }
  .problema .escenario { padding: 0 20px; }
  .cadena { height: 560vh; }
  /* En el móvil el Panel no va en un Mac (se leería a 3 px): va en su propia ventana,
     maquetado en modo compacto por js/panel.js, y se puede tocar */
  .cadena .escenario { padding: 72px 16px 16px; }
  .cadena__rejilla { gap: 16px; }
  .cadena__mac .mac__tapa { padding: 0; border-radius: 16px; background: var(--fondo); box-shadow: 0 0 0 1px var(--linea), 0 12px 32px -12px rgba(16, 24, 40, .25); }
  .cadena__mac .mac__tapa::before, .cadena__mac .mac__base { display: none; }
  .cadena__mac .mac__pantalla { aspect-ratio: auto; height: min(54svh, 470px); border-radius: 16px; }
  .cadena__mac .mac__pantalla::after { display: none; }
  .cadena__mac .nota-prueba { margin-top: 10px; font-size: 12px; text-align: left; justify-content: flex-start; }
  .cadena__riel { margin-bottom: 14px; }
  .paso { gap: 8px; }
  .paso .t-h2 { font-size: 26px; }
  .paso .t-entradilla { font-size: 15px; }
  .cadena__pasos { min-height: 190px; }

  .cinco { height: 210vh; }
  .cinco .escenario { flex-direction: column; padding: 0 20px; }
  .cinco__contenido { gap: 40px; }
  .cinco__apps { flex-direction: column; align-items: center; }
  .cinco__lista { gap: 8px; }
  .agencia { width: 62px; height: 62px; padding: 8px 7px; border-radius: 15px; font-size: 9.5px; justify-content: flex-end; }
  .agencia small { display: none; }
  .cinco__linea { top: auto; bottom: -50px; left: 50%; width: 3px; height: 50px; margin-left: -1.5px; }
  .cinco__linea i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .cinco__grande { position: relative; top: auto; left: auto; width: 150px; height: 150px; margin: 50px auto 0; transform: scale(calc(.9 + var(--g, 0) * .1)); }

  .seccion { padding: 90px 20px; gap: 36px; }
  .ventanas { height: auto; }
  .ventanas__lado { display: none; }
  .ventanas__centro { position: relative; left: 0; width: 100%; margin-left: 0; }

  .lote { height: 400vh; }
  .lote__textos { min-height: 170px; }

  .reparto { flex-direction: column; gap: 10px; padding: 10px; border-radius: 24px; }
  .plan, .plan--tu { width: 100%; }
  .plan--app { padding: 28px 20px; }
  .plan--tu { padding: 28px 22px; }

  .columnas { flex-direction: column; }
  .columna { width: 100%; }

  .acceso { padding-top: 90px; }
  .acceso__escena { height: 300px; }
  .acceso__mac { top: 10px; width: calc(100% - 40px); }
  .acceso__escena { height: 260px; }

  .pie__dentro { gap: 60px; padding: 40px 20px 24px; }
  .pie__fila { flex-direction: column; }
  .pie__cols { flex-direction: column; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .aparece { opacity: 1; transform: none; transition: none; }
  .mac__img, .foco, .paso, .lote__texto, .agencia { transition: none !important; }
  .portada__pista span, .nota-prueba__punto { animation: none; }
}
