/* La web de Cave Studios (Arnold, 16 de octubre de 2026: "mejora al máximo la
   web… que tenga animaciones, que se vea guapa, moderna y que se note que hay
   desarrollo de software"). Los mismos colores y letras que el logo y que My
   Cross: la noche cálida de la entrada de la app, la luz ámbar de la cueva, el
   vino y el crema. Todo sale de aquí: nada se pide a otro sitio (_headers).

   Las animaciones solo mueven opacidad y posición, y con "reducir
   movimiento" todo queda quieto.

   Lo que aparece al bajar lo hace una sola vez y en un tiempo fijo, cuando
   asoma en la pantalla (sitio.js le pone .visto). Antes iba atado a cuánto se
   bajaba, y en el teléfono lo de abajo de la pantalla se quedaba a medio
   aparecer, como desteñido (Arnold, 16 de octubre de 2026: "la web no se ve
   nada bien"). */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/letras/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/letras/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/letras/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-display: swap; src: url('/letras/lora-400.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-display: swap; src: url('/letras/lora-600.woff2') format('woff2'); }

:root {
  --noche: #12100E;
  --noche-2: #1E1916;
  --crema: #F3ECE3;
  --crema-suave: #B9ADA2;
  --luz: #E0A04B;
  --luz-clara: #EDB866;
  --vino: #9E2F2A;
  --vino-oscuro: #7E2420;

  --fondo: #FBF9F6;
  --fondo-suave: #F3EEE7;
  --tarjeta: #FFFFFF;
  --texto: #1D1916;
  --texto-suave: #6E655D;
  --borde: #E6DED4;
  --acento: #9E2F2A;
  --acento-suave: #F7E8E5;
  --sombra: 0 10px 30px rgba(74, 45, 30, 0.08), 0 1px 3px rgba(74, 45, 30, 0.06);
  --foco-tarjeta: rgba(158, 47, 42, 0.07);

  /* La app dentro del teléfono: los colores de My Cross en claro. */
  --app-fondo: #FBF9F6;
  --app-tarjeta: #FFFFFF;
  --app-texto: #1D1916;
  --app-suave: #6E655D;
  --app-borde: #ECE6DE;
  --app-chip: #F3EEE7;
  --app-acento: #9E2F2A;
  --app-acento-suave: #F7E8E5;
  --app-cielo: #FBE3D2;
  --app-sobre-acento: #FFFFFF;

  --letra: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --letra-libro: 'Lora', Georgia, 'Times New Roman', serif;

  --sale: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #171513;
    --fondo-suave: #1C1A17;
    --tarjeta: #221F1C;
    --texto: #EFE9E2;
    --texto-suave: #ADA398;
    --borde: #34302B;
    --acento: #E3907D;
    --acento-suave: #3F2924;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.35);
    --foco-tarjeta: rgba(227, 144, 125, 0.09);

    --app-fondo: #171513;
    --app-tarjeta: #221F1C;
    --app-texto: #EFE9E2;
    --app-suave: #ADA398;
    --app-borde: #312C28;
    --app-chip: #2A2623;
    --app-acento: #E3907D;
    --app-acento-suave: #3F2924;
    --app-cielo: #2E221D;
    --app-sobre-acento: #1A0E0B;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--letra);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Los dos idiomas viven en la página; se ve uno. Sin JavaScript, español. */
html:not([data-idioma="en"]) [lang="en"] { display: none; }
html[data-idioma="en"] [lang="es"] { display: none; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: var(--acento); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

.solo-lector {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--crema); color: var(--noche);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.saltar:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--luz); outline-offset: 3px; border-radius: 8px; }

.ancho { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── La marca: el arco con su luz y "cave STUDIOS" ─────────────────────── */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.arco-chico { width: 28px; height: 28px; }
.arco-chico path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }
.arco-chico circle { fill: var(--luz); }
.palabra { display: inline-flex; align-items: baseline; gap: 6px; }
.cave { font-family: var(--letra-libro); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.studios { font-family: var(--letra); font-weight: 500; font-size: 12px; letter-spacing: 0.32em; opacity: 0.8; }

/* ── Los botones ───────────────────────────────────────────────────────── */
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.acciones-izq { justify-content: flex-start; }

.boton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--letra); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .18s var(--sale), background-color .18s ease, box-shadow .25s ease;
}
.boton:active { transform: scale(.97); }
.boton .flecha { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--sale); }
.boton:hover .flecha { transform: translateX(3px); }
.boton-chico { min-height: 44px; padding: 0 18px; font-size: 15px; }
.boton-ancho { width: 100%; }

.boton-luz { background: var(--luz); color: #241606; box-shadow: 0 8px 24px rgba(224, 160, 75, 0.22); overflow: hidden; }
.boton-luz:hover { background: var(--luz-clara); box-shadow: 0 10px 30px rgba(224, 160, 75, 0.32); }
/* Un brillo que cruza el botón de vez en cuando. */
.boton-luz::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: brillo 6s ease-in-out 2.5s infinite;
}
@keyframes brillo { 0%, 80% { transform: translateX(-120%); } 95%, 100% { transform: translateX(120%); } }

.boton-borde { color: var(--crema); border: 1px solid rgba(243, 236, 227, 0.3); background: rgba(243, 236, 227, 0.04); }
.boton-borde:hover { background: rgba(243, 236, 227, 0.1); }

.boton-vino { background: var(--vino); color: #FFF6EF; box-shadow: 0 10px 28px rgba(126, 36, 32, 0.28); }
.boton-vino:hover { background: var(--vino-oscuro); }
.boton-vino .flecha { width: 17px; height: 17px; }
.boton-vino:hover .flecha { transform: translate(2px, -2px); }

.boton-suave { color: var(--texto); background: var(--tarjeta); border: 1px solid var(--borde); }
.boton-suave:hover { border-color: var(--texto-suave); }

/* ── La barra de arriba ────────────────────────────────────────────────── */
.barra-sitio {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  color: var(--crema);
  background: rgba(18, 16, 14, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(243, 236, 227, 0.08);
  transition: background-color .3s ease, border-color .3s ease;
}
@media (hover: none) {
  .barra-sitio { background: rgba(18, 16, 14, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Arriba del todo se funde con la noche de la portada (sitio.js). */
.barra-sitio.arriba { background: rgba(18, 16, 14, 0); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.barra-dentro {
  max-width: 1120px; margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.barra-sitio .arco-chico { color: var(--crema-suave); }

.enlaces { display: none; gap: 4px; }
.enlaces a {
  color: var(--crema-suave); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s ease, background-color .2s ease;
}
.enlaces a:hover { color: var(--crema); background: rgba(243, 236, 227, 0.07); }
@media (min-width: 900px) { .enlaces { display: flex; } }

.barra-acciones { display: flex; align-items: center; gap: 8px; }
.idioma {
  font: 600 14px/1 var(--letra); letter-spacing: 0.04em;
  color: var(--crema);
  background: rgba(243, 236, 227, 0.06);
  border: 1px solid rgba(243, 236, 227, 0.22);
  border-radius: 999px;
  min-width: 48px; min-height: 44px; padding: 0 12px;
  cursor: pointer;
}
.idioma:hover { background: rgba(243, 236, 227, 0.12); }
@media (max-width: 359px) { .barra-acciones .boton-chico { display: none; } }

/* ── La portada: la noche de la cueva ──────────────────────────────────── */
.portada {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(224, 160, 75, 0.13), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(158, 47, 42, 0.22), transparent 70%),
    linear-gradient(180deg, var(--noche) 0%, var(--noche-2) 100%);
  color: var(--crema);
  padding: calc(96px + env(safe-area-inset-top)) 0 84px;
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
/* El horizonte: una línea de luz donde termina la noche. */
.portada::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 160, 75, 0.55), transparent);
}

.portada-dentro {
  position: relative; z-index: 1;
  width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.aviso-pastilla {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px 8px 14px; margin-bottom: 28px;
  border-radius: 999px;
  color: var(--crema); text-decoration: none; font-size: 14px; font-weight: 500;
  background: rgba(243, 236, 227, 0.06);
  border: 1px solid rgba(224, 160, 75, 0.35);
  transition: background-color .2s ease, border-color .2s ease;
  animation: sube .8s var(--sale) .2s both;
}
.aviso-pastilla:hover { background: rgba(243, 236, 227, 0.1); border-color: rgba(224, 160, 75, 0.6); }
.aviso-pastilla .flecha { width: 16px; height: 16px; fill: none; stroke: var(--luz); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--sale); }
.aviso-pastilla:hover .flecha { transform: translateX(3px); }

/* Un punto que late: algo está vivo. */
.punto-vivo { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5CC489; flex: none; }
.punto-vivo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: late 2.2s ease-out infinite;
}
@keyframes late { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

/* La cueva, con su luz. Sigue apenas al ratón (sitio.js pone --px y --py). */
.cueva {
  position: relative; width: 150px; height: 150px; margin-bottom: 26px;
  transform: translate(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px));
  transition: transform .6s var(--sale);
}
@media (min-width: 760px) { .cueva { width: 176px; height: 176px; } }
.resplandor {
  position: absolute; left: 50%; top: 66%;
  width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 160, 75, 0.45) 0%, rgba(224, 160, 75, 0.12) 38%, transparent 68%);
  animation: respira 5s ease-in-out 1.6s infinite;
}
.arco-grande { position: relative; width: 100%; height: 100%; overflow: visible; }
.arco-trazo {
  fill: none; stroke: var(--crema); stroke-width: 4.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  animation: levanta 1.4s var(--sale) both;
}
.luz { fill: var(--luz); animation: enciende 1.2s ease-out 1s both; }

@keyframes levanta { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes enciende {
  0% { opacity: 0; }
  30% { opacity: .9; }
  45% { opacity: .35; }
  70% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes respira {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.antetitulo {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--luz);
  margin-bottom: 16px;
  animation: sube .8s var(--sale) .5s both;
}

.portada h1 {
  font-family: var(--letra-libro); font-weight: 600;
  font-size: clamp(38px, 8vw, 72px); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 22px;
  animation: sube .9s var(--sale) .65s both;
}
.portada h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--crema) 0%, var(--luz-clara) 45%, var(--luz) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (forced-colors: active) { .portada h1 em { color: CanvasText; background: none; } }

.bajada {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--crema-suave); max-width: 640px;
  animation: sube .9s var(--sale) .8s both;
}
.portada .acciones { margin-top: 34px; animation: sube .9s var(--sale) .95s both; }

.capacidades {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 40px;
  animation: sube .9s var(--sale) 1.1s both;
}
.capacidades li {
  font-size: 13px; font-weight: 500; color: var(--crema-suave);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(243, 236, 227, 0.12);
  background: rgba(243, 236, 227, 0.03);
}

/* Las luciérnagas: suben despacio desde el suelo de la cueva. */
.luciernagas { position: absolute; inset: 0; pointer-events: none; }
.luciernagas span {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--luz-clara);
  box-shadow: 0 0 10px 2px rgba(237, 184, 102, 0.55);
  opacity: 0;
  animation: luciernaga var(--d) linear var(--r) infinite;
}
@keyframes luciernaga {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: .85; }
  50% { transform: translate(var(--m), -48vh); opacity: .6; }
  80% { opacity: .75; }
  100% { opacity: 0; transform: translate(calc(var(--m) * -0.6), -92vh); }
}
.luciernagas span:nth-child(1)  { --x: 6%;  --s: 4px; --d: 14s; --r: 0s;   --m: 22px; }
.luciernagas span:nth-child(2)  { --x: 14%; --s: 3px; --d: 18s; --r: 3s;   --m: -18px; }
.luciernagas span:nth-child(3)  { --x: 22%; --s: 5px; --d: 16s; --r: 7s;   --m: 30px; }
.luciernagas span:nth-child(4)  { --x: 30%; --s: 3px; --d: 20s; --r: 1.5s; --m: -26px; }
.luciernagas span:nth-child(5)  { --x: 38%; --s: 4px; --d: 15s; --r: 9s;   --m: 16px; }
.luciernagas span:nth-child(6)  { --x: 46%; --s: 3px; --d: 19s; --r: 4.5s; --m: -12px; }
.luciernagas span:nth-child(7)  { --x: 54%; --s: 5px; --d: 17s; --r: 11s;  --m: 24px; }
.luciernagas span:nth-child(8)  { --x: 61%; --s: 3px; --d: 21s; --r: 2s;   --m: -30px; }
.luciernagas span:nth-child(9)  { --x: 68%; --s: 4px; --d: 14s; --r: 6s;   --m: 18px; }
.luciernagas span:nth-child(10) { --x: 75%; --s: 3px; --d: 18s; --r: 10s;  --m: -16px; }
.luciernagas span:nth-child(11) { --x: 82%; --s: 5px; --d: 16s; --r: 3.5s; --m: 28px; }
.luciernagas span:nth-child(12) { --x: 89%; --s: 3px; --d: 20s; --r: 8s;   --m: -22px; }
.luciernagas span:nth-child(13) { --x: 94%; --s: 4px; --d: 15s; --r: 12s;  --m: 14px; }
.luciernagas span:nth-child(14) { --x: 50%; --s: 3px; --d: 22s; --r: 5s;   --m: -20px; }

@media (max-width: 760px) { .luciernagas span:nth-child(even) { display: none; } }

/* ── Las secciones ─────────────────────────────────────────────────────── */
.seccion { padding: 96px 0; scroll-margin-top: 64px; }
@media (max-width: 640px) { .seccion { padding: 72px 0; } }
.seccion-suave { background: var(--fondo-suave); }

.encabezado { max-width: 720px; margin-bottom: 48px; }
.ceja {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--acento); margin-bottom: 12px;
}
.seccion h2 {
  font-family: var(--letra-libro); font-weight: 600;
  font-size: clamp(30px, 4.8vw, 46px); line-height: 1.14; letter-spacing: -0.015em;
}
.intro { margin-top: 16px; font-size: 18px; color: var(--texto-suave); }

/* La luz que sigue al dedo o al ratón en las tarjetas (sitio.js pone --x y --y). */
.tarjeta-luz { position: relative; isolation: isolate; }
.tarjeta-luz::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), var(--foco-tarjeta), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.tarjeta-luz:hover::before { opacity: 1; }

.icono-caja {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--acento-suave); color: var(--acento);
  margin-bottom: 18px;
}
.icono-caja svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Qué hacemos */
.servicios { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.servicio {
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px;
  padding: 28px 24px; box-shadow: var(--sombra);
  transition: transform .3s var(--sale), border-color .3s ease;
}
.servicio:hover { transform: translateY(-4px); border-color: var(--borde); border-color: color-mix(in srgb, var(--acento) 30%, var(--borde)); }
.servicio h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.servicio p { color: var(--texto-suave); font-size: 16px; }

/* ── My Cross ──────────────────────────────────────────────────────────── */
.producto { display: grid; gap: 56px; align-items: center; }
@media (min-width: 940px) { .producto { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }

.chip-prueba {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--acento);
  background: var(--acento-suave);
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.producto-titulo { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.logo-my-cross { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 10px 26px rgba(116, 31, 28, 0.3); }
.lema { font-family: var(--letra-libro); font-size: 21px; color: var(--texto-suave); margin-bottom: 18px; }
.producto-texto > p:not(.chip-prueba):not(.lema):not(.pequeno) { font-size: 17px; }

.lista-producto { display: grid; gap: 12px; margin: 24px 0 30px; }
.lista-producto li { display: flex; gap: 12px; align-items: flex-start; }
.lista-producto svg {
  width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%;
  background: var(--acento-suave);
  fill: none; stroke: var(--acento); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.pequeno { margin-top: 16px; font-size: 14px; color: var(--texto-suave); }

/* La vitrina: un teléfono con la app adentro. */
.vitrina { position: relative; margin: 0 auto; display: flex; justify-content: center; padding: 20px 0; }
.vitrina::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 160, 75, 0.28), rgba(158, 47, 42, 0.12) 45%, transparent 70%);
}

.telefono {
  position: relative;
  width: 270px; height: 570px;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2B2622, #0D0B0A 60%);
  box-shadow:
    0 40px 80px rgba(40, 18, 10, 0.35),
    0 12px 24px rgba(40, 18, 10, 0.2),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  animation: flota 7s ease-in-out infinite;
}
@media (min-width: 760px) { .telefono { width: 300px; height: 633px; } }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(0.6deg); } }

.pantalla {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--app-fondo); color: var(--app-texto);
  font-family: var(--letra);
}
.isla { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 999px; background: #0D0B0A; z-index: 3; }

.cielo-app {
  position: absolute; inset: 0 0 auto 0; height: 46%;
  background: linear-gradient(180deg, var(--app-cielo), transparent);
  z-index: -1;
}

.escena { position: absolute; inset: 0; padding: 52px 16px 70px; display: flex; flex-direction: column; isolation: isolate; }

/* Quietas (sin animación o con "reducir movimiento") se ve la palabra del día. */
.escena-animo, .escena-carga { opacity: 0; }

.app-saludo { display: flex; align-items: center; gap: 8px; font-family: var(--letra-libro); font-weight: 600; font-size: 22px; margin: 8px 0 14px; }
.app-saludo svg { width: 20px; height: 20px; fill: none; stroke: #D9892E; stroke-width: 2; stroke-linecap: round; }
.app-tarjeta {
  background: var(--app-tarjeta); border: 1px solid var(--app-borde); border-radius: 18px;
  padding: 14px; box-shadow: 0 6px 18px rgba(74, 45, 30, 0.07);
}
.app-pregunta { font-family: var(--letra-libro); font-weight: 600; font-size: 16px; }
.app-sub { font-size: 10.5px; color: var(--app-suave); margin: 2px 0 10px; line-height: 1.35; }
.app-campo {
  height: 48px; border-radius: 12px; border: 1px solid var(--app-borde); background: var(--app-fondo);
  padding: 8px 10px; font-size: 11.5px; color: var(--app-texto); margin-bottom: 10px;
}
.escribe { display: inline-block; white-space: nowrap; }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.app-chips span { font-size: 10.5px; font-weight: 500; padding: 5px 9px; border-radius: 999px; background: var(--app-chip); color: var(--app-texto); border: 1px solid transparent; }
.app-chips .chip-elegido { background: var(--app-acento-suave); border-color: var(--app-acento); color: var(--app-acento); }
.app-boton {
  display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 999px;
  background: var(--app-acento); color: var(--app-sobre-acento); font-size: 12px; font-weight: 600;
}

.escena-carga { align-items: center; justify-content: center; gap: 22px; }
.medallon { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.medallon img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 24px rgba(116, 31, 28, 0.3); position: relative; }
.onda { position: absolute; inset: 0; border-radius: 26px; border: 1.5px solid var(--app-acento); opacity: 0; }
.app-espera { font-family: var(--letra-libro); font-size: 14px; color: var(--app-suave); }

.app-ceja { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--app-suave); margin-top: 10px; }
.app-titulo { font-family: var(--letra-libro); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 6px 0 8px; }
.app-idea { font-family: var(--letra-libro); font-size: 12.5px; color: var(--app-suave); line-height: 1.45; margin-bottom: 12px; }
.app-cita {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--app-acento);
  background: var(--app-acento-suave); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px;
}
.app-cita svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.app-lineas { display: grid; gap: 8px; margin-bottom: 14px; }
.app-lineas span { height: 7px; border-radius: 999px; background: var(--app-chip); transform-origin: left center; }
.app-lineas span:nth-child(2) { width: 94%; }
.app-lineas span:nth-child(3) { width: 98%; }
.app-lineas span:nth-child(4) { width: 88%; }
.app-lineas span:nth-child(5) { width: 62%; }
.app-ia { font-size: 9.5px; color: var(--app-suave); margin-bottom: 10px; }
.app-sirvio { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.app-sirvio .pill { font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--app-borde); background: var(--app-tarjeta); }

.app-barra {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; justify-content: space-around;
  padding: 8px 4px; border-radius: 22px;
  background: var(--app-tarjeta);
  background: color-mix(in srgb, var(--app-tarjeta) 88%, transparent);
  border: 1px solid var(--app-borde);
  box-shadow: 0 6px 18px rgba(74, 45, 30, 0.08);
}
.app-barra span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; color: var(--app-suave); }
/* Los íconos de la app; la pestaña elegida lleva su píldora, como en barra-abajo.tsx. */
.icono-app { display: grid; place-items: center; width: 36px; height: 20px; border-radius: 10px; }
.icono-app svg { width: 15px; height: 15px; }
.app-barra .activa { color: var(--app-acento); font-weight: 600; }
.app-barra .activa .icono-app { background: var(--app-acento-suave); }

/* Las etiquetas que flotan junto al teléfono. */
.flotante {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 10px 14px; border-radius: 14px;
  background: var(--tarjeta); color: var(--texto);
  border: 1px solid var(--borde); box-shadow: var(--sombra);
  animation: flota-chico 6s ease-in-out infinite;
}
.flotante svg { width: 18px; height: 18px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flotante-1 { top: 66%; left: -12%; }
.flotante-2 { top: 77%; right: -12%; animation-delay: -3s; }
@keyframes flota-chico { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* En el teléfono no hay espacio a los lados: van debajo, sin tapar la pantalla. */
@media (max-width: 760px) {
  .vitrina { flex-wrap: wrap; gap: 10px; }
  .telefono { flex: none; margin-bottom: 16px; }
  .flotante { position: static; font-size: 12.5px; padding: 9px 12px; }
  .vitrina > .telefono { width: 100%; max-width: 270px; }
  .vitrina { justify-content: center; }
}

/* ── Por dentro (la noche) ─────────────────────────────────────────────── */
.seccion-noche {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(224, 160, 75, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(158, 47, 42, 0.16), transparent 70%),
    var(--noche);
  color: var(--crema);
}
.seccion-noche .ceja { color: var(--luz); }
.seccion-noche .intro { color: var(--crema-suave); }
.seccion-noche .tarjeta-luz::before { background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(224, 160, 75, 0.14), transparent 65%); }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } .bloque-ancho { grid-column: span 2; } }

.bloque {
  border-radius: 24px; padding: 28px 26px;
  background: linear-gradient(180deg, rgba(243, 236, 227, 0.055), rgba(243, 236, 227, 0.025));
  border: 1px solid rgba(243, 236, 227, 0.1);
  transition: border-color .3s ease, transform .3s var(--sale);
}
.bloque:hover { border-color: rgba(224, 160, 75, 0.35); transform: translateY(-3px); }
.bloque h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.bloque p { color: var(--crema-suave); font-size: 16px; }
.bloque .icono-caja { background: rgba(224, 160, 75, 0.12); color: var(--luz); }

/* La tubería: elige el pasaje → escribe → revisa → pule → llega. */
.tuberia {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; counter-reset: paso;
}
.tuberia li {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--crema); white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  background: #1B1714;
  border: 1px solid rgba(243, 236, 227, 0.16);
}
.tuberia li::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(224, 160, 75, 0.8);
  box-shadow: 0 0 0 4px rgba(224, 160, 75, 0.12), 0 0 22px rgba(224, 160, 75, 0.25);
  opacity: 0;
  animation: paso-vivo 7.5s ease-in-out infinite;
}
.tuberia li::before {
  counter-increment: paso; content: counter(paso);
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; background: rgba(224, 160, 75, 0.16); color: var(--luz);
}
.tuberia li:nth-child(2)::after { animation-delay: 1.5s; }
.tuberia li:nth-child(3)::after { animation-delay: 3s; }
.tuberia li:nth-child(4)::after { animation-delay: 4.5s; }
.tuberia li:nth-child(5)::after { animation-delay: 6s; }
@keyframes paso-vivo {
  0%, 22%, 100% { opacity: 0; }
  6%, 14% { opacity: 1; }
}
/* En pantallas anchas, la línea que las une y una chispa que la recorre. */
@media (min-width: 1200px) {
  .tuberia { flex-wrap: nowrap; justify-content: space-between; }
  .tuberia::before {
    content: ''; position: absolute; left: 24px; right: 24px; top: 50%; height: 1px;
    background: linear-gradient(90deg, rgba(224, 160, 75, 0.1), rgba(224, 160, 75, 0.5), rgba(224, 160, 75, 0.1));
  }
  .tuberia::after {
    content: ''; position: absolute; left: 24px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
    background: var(--luz-clara); box-shadow: 0 0 14px 3px rgba(237, 184, 102, 0.7);
    animation: chispa 7.5s linear infinite;
  }
}
@keyframes chispa { from { left: 24px; opacity: 0; } 5% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 32px); opacity: 0; } }

/* Lo que llega a la IA: nunca quién es. */
.privacidad { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.dato-oculto {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px dashed rgba(243, 236, 227, 0.25);
  font-size: 14px; color: var(--crema-suave);
}
.dato-oculto svg { width: 16px; height: 16px; fill: none; stroke: var(--luz); stroke-width: 2; stroke-linecap: round; }
.borroso { filter: blur(4px); user-select: none; animation: borra 5s ease-in-out infinite; }
@keyframes borra { 0%, 15% { opacity: .9; } 35%, 85% { opacity: .45; } 100% { opacity: .9; } }
.privacidad > .flecha { width: 20px; height: 20px; fill: none; stroke: var(--crema-suave); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dato-ia {
  font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px;
  background: rgba(224, 160, 75, 0.12); color: var(--luz-clara); border: 1px solid rgba(224, 160, 75, 0.28);
}

/* La consola: cada cambio pasa por sus pruebas y sale. */
.consola {
  margin-top: 22px; padding: 16px 18px; border-radius: 16px;
  background: #0B0A09; border: 1px solid rgba(243, 236, 227, 0.08);
  font: 500 14px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--crema-suave);
  display: grid; gap: 6px;
}
.consola p { display: flex; align-items: center; gap: 10px; animation: linea-consola 8s ease-out infinite; }
.consola svg { width: 16px; height: 16px; fill: none; stroke: #5CC489; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.consola p:nth-child(2) { animation-delay: .7s; }
.consola p:nth-child(3) { animation-delay: 1.4s; }
.consola p:nth-child(4) { animation-delay: 2.1s; color: var(--crema); }
@keyframes linea-consola { 0% { opacity: .25; } 8%, 85% { opacity: 1; } 100% { opacity: .25; } }

/* La marquesina: con qué está hecha. */
.marquesina {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pista { display: flex; width: max-content; animation: desliza 36s linear infinite; }
.pista ul { display: flex; gap: 12px; padding-right: 12px; }
.pista li {
  white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--crema-suave);
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(243, 236, 227, 0.12);
}
@keyframes desliza { to { transform: translateX(-50%); } }

/* ── Cómo trabajamos ───────────────────────────────────────────────────── */
.pasos-caja { position: relative; }
.pasos { display: grid; gap: 28px; position: relative; }
@media (min-width: 900px) { .pasos { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.paso { position: relative; padding-left: 64px; }
@media (min-width: 900px) { .paso { padding-left: 0; padding-top: 70px; } }
.numero {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: 600 15px/1 var(--letra); color: var(--acento);
  background: var(--fondo); border: 1.5px solid var(--borde); border-color: color-mix(in srgb, var(--acento) 45%, var(--borde));
  box-shadow: 0 0 0 6px var(--fondo);
}
.paso h3 { font-size: 19px; font-weight: 600; margin: 10px 0 6px; }
@media (min-width: 900px) { .paso h3 { margin-top: 0; } }
.paso p { color: var(--texto-suave); font-size: 16px; }

/* La línea que une los pasos; se llena al bajar. */
.pasos-linea { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--borde); }
.pasos-linea span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--acento), var(--luz)); transform-origin: top; }
@media (min-width: 900px) {
  .pasos-linea { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .pasos-linea span { background: linear-gradient(90deg, var(--acento), var(--luz)); transform-origin: left; }
}

.subtitulo { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); margin: 72px 0 20px; }
.valores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.valor {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 20px; padding: 22px;
}
.valor h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.valor p { color: var(--texto-suave); font-size: 15px; }
.icono { width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Contacto ──────────────────────────────────────────────────────────── */
.seccion-contacto { padding-top: 24px; }
.contacto-tarjeta {
  position: relative; overflow: hidden;
  display: grid; gap: 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  color: var(--crema);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(224, 160, 75, 0.2), transparent 65%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(158, 47, 42, 0.28), transparent 65%),
    var(--noche-2);
  border: 1px solid rgba(243, 236, 227, 0.08);
  box-shadow: 0 30px 60px rgba(40, 18, 10, 0.22);
}
@media (min-width: 940px) { .contacto-tarjeta { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.contacto-tarjeta .ceja { color: var(--luz); }
.contacto-tarjeta h2 { color: var(--crema); margin-bottom: 14px; }
.contacto-texto > p { color: var(--crema-suave); font-size: 18px; }

.directo { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(243, 236, 227, 0.12); }
.directo-titulo { font-size: 14px; font-weight: 600; color: var(--crema-suave); margin-bottom: 10px; }
.directo-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.correo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--letra-libro); font-size: clamp(20px, 3.4vw, 26px);
  color: var(--crema); text-decoration: none;
  border-bottom: 2px solid rgba(224, 160, 75, 0.4);
  overflow-wrap: anywhere;
}
.correo:hover { border-bottom-color: var(--luz); }
.correo svg { width: 22px; height: 22px; fill: none; stroke: var(--luz); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copiar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  font: 600 14px/1 var(--letra); color: var(--crema);
  background: rgba(243, 236, 227, 0.06); border: 1px solid rgba(243, 236, 227, 0.2); border-radius: 999px;
  cursor: pointer;
}
.copiar:hover { background: rgba(243, 236, 227, 0.12); }
.copiar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.copiar-despues { display: none; }
.copiar.copiado .copiar-antes { display: none; }
.copiar.copiado .copiar-despues { display: inline; color: #7FD6A3; }
.directo-otro { margin-top: 14px; font-size: 15px; color: var(--crema-suave); }
.directo-otro a { color: var(--luz-clara); margin-left: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* El formulario: arma el correo, no manda nada a ningún lado. */
.formulario {
  display: grid; gap: 18px;
  padding: 24px; border-radius: 22px;
  background: rgba(243, 236, 227, 0.04);
  border: 1px solid rgba(243, 236, 227, 0.1);
}
.tipos { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tipos legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--crema); }
.tipo span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--crema-suave);
  border: 1px solid rgba(243, 236, 227, 0.2); background: rgba(243, 236, 227, 0.03);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tipo span span { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: inherit; }
.tipo:hover > span { border-color: rgba(243, 236, 227, 0.4); }
.tipo input:checked + span { background: var(--luz); color: #241606; border-color: var(--luz); font-weight: 600; }
.tipo input:focus-visible + span { outline: 3px solid var(--luz); outline-offset: 3px; }

.campo { display: grid; gap: 8px; }
.campo label { font-size: 15px; font-weight: 600; color: var(--crema); }
.opcional { font-weight: 400; color: var(--crema-suave); }
.campo input, .campo textarea {
  width: 100%; font: 400 16px/1.5 var(--letra); color: var(--crema);
  background: rgba(10, 9, 8, 0.45); border: 1px solid rgba(243, 236, 227, 0.2); border-radius: 14px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(185, 173, 162, 0.75); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--luz); box-shadow: 0 0 0 4px rgba(224, 160, 75, 0.18); }
.campo [aria-invalid="true"] { border-color: #F08C7A; }
.error { font-size: 14px; color: #F5A797; }
.ayuda { font-size: 13px; color: var(--crema-suave); line-height: 1.5; }
.estado { display: grid; gap: 8px; justify-items: start; font-size: 14px; color: #8FDDB0; }
.estado[hidden] { display: none; }
.estado-titulo { font-size: 16px; font-weight: 600; }
.estado-respaldo { color: #F5C59B; }
.respaldo-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.respaldo-botones a.copiar { text-decoration: none; }
/* Correo y teléfono, uno al lado del otro cuando hay espacio. */
.campos-dos { display: grid; gap: 18px; }
@media (min-width: 560px) { .campos-dos { grid-template-columns: 1fr 1fr; } }
/* El botón mientras se envía. */
.enviar-durante { display: none; }
[data-enviar][aria-busy="true"] .enviar-antes { display: none; }
[data-enviar][aria-busy="true"] .enviar-durante { display: inline; }
[data-enviar][disabled] { opacity: .8; cursor: progress; }
/* El campo para robots: fuera de la vista y del lector de pantalla. */
.trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Pie ───────────────────────────────────────────────────────────────── */
.pie { background: var(--noche); color: var(--crema-suave); padding: 48px 0 max(48px, env(safe-area-inset-bottom)); font-size: 14px; }
.pie-dentro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.marca-pie { color: var(--crema); margin-bottom: 4px; }
.marca-pie .arco-chico { color: var(--crema-suave); }
.pie-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pie-enlaces a { color: var(--crema-suave); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.pie-enlaces a:hover { color: var(--crema); background: rgba(243, 236, 227, 0.06); }
.pie-suave { opacity: .75; }

/* ── Lo que se mueve solo con movimiento permitido ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* El teléfono cuenta la historia en 12 segundos: cómo te sientes, se
     prepara tu palabra y llega. */
  .escena-animo { animation: ver-animo 12s ease-in-out infinite; }
  .escena-carga { animation: ver-carga 12s ease-in-out infinite; }
  .escena-palabra { animation: ver-palabra 12s ease-in-out infinite; }
  .app-chips .chip-elegido { animation: elige 12s ease-in-out infinite; }
  .escribe { animation: escribe 12s steps(30, end) infinite; }
  .app-boton { animation: pulsa 12s ease-in-out infinite; }
  .onda { animation: onda 2s ease-out infinite; }
  .onda + .onda { animation-delay: 1s; }
  .medallon img { animation: flota-chico 3s ease-in-out infinite; }
  .app-lineas span { animation: linea 12s var(--sale) infinite; }
  .app-lineas span:nth-child(2) { animation-delay: .15s; }
  .app-lineas span:nth-child(3) { animation-delay: .3s; }
  .app-lineas span:nth-child(4) { animation-delay: .45s; }
  .app-lineas span:nth-child(5) { animation-delay: .6s; }

  /* Lo que aparece al bajar: escondido solo si hay JavaScript (inicio.js pone
     .js), y aparece entero en 0.7 s cuando asoma (sitio.js pone .visto). Si
     sitio.js no llega en 3 s, todo se muestra igual (.vivo lo pone sitio.js). */
  .js .aparece {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s var(--sale), transform .7s var(--sale);
  }
  .js .aparece.visto { opacity: 1; transform: none; }
  .js:not(.vivo) .aparece { animation: muestra 0s linear 3s forwards; }
  .servicios .aparece:nth-child(2), .bento .aparece:nth-child(2), .pasos .aparece:nth-child(2), .valores .aparece:nth-child(2) { transition-delay: .08s; }
  .servicios .aparece:nth-child(3), .bento .aparece:nth-child(3), .pasos .aparece:nth-child(3), .valores .aparece:nth-child(3) { transition-delay: .16s; }
  .servicios .aparece:nth-child(4), .pasos .aparece:nth-child(4) { transition-delay: .24s; }

  /* La línea de los pasos se dibuja una vez, cuando asoma. */
  .js .pasos-linea span { transform: scaleY(0); transition: transform 1.6s var(--sale) .2s; }
  .js .pasos-caja.visto .pasos-linea span { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .pasos-linea span { transform: scaleX(0); }
}
@keyframes muestra { to { opacity: 1; transform: none; } }

/* Lo que no está en pantalla se queda quieto (sitio.js pone .dormido): en un
   teléfono sencillo, así no se trabaja de más al bajar. */
.dormido, .dormido *, .dormido *::before, .dormido *::after { animation-play-state: paused !important; }

@keyframes ver-animo {
  0% { opacity: 0; transform: translateY(10px); }
  3%, 41% { opacity: 1; transform: none; }
  44%, 100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes ver-carga {
  0%, 44% { opacity: 0; transform: scale(.96); }
  47%, 55% { opacity: 1; transform: none; }
  58%, 100% { opacity: 0; transform: scale(1.03); }
}
@keyframes ver-palabra {
  0%, 58% { opacity: 0; transform: translateY(14px); }
  62%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes elige {
  0%, 9% { background: var(--app-chip); border-color: transparent; color: var(--app-texto); }
  12%, 46% { background: var(--app-acento-suave); border-color: var(--app-acento); color: var(--app-acento); }
  50%, 100% { background: var(--app-chip); border-color: transparent; color: var(--app-texto); }
}
@keyframes escribe {
  0%, 13% { clip-path: inset(0 100% 0 0); }
  30%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes pulsa {
  0%, 35% { transform: scale(1); }
  37.5% { transform: scale(.95); }
  40%, 100% { transform: scale(1); }
}
@keyframes onda { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
@keyframes linea {
  0%, 63% { transform: scaleX(0); }
  72%, 100% { transform: scaleX(1); }
}

/* Con "reducir movimiento", todo quieto: la luz encendida y la palabra del día a la vista. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .luciernagas { display: none; }
  .borroso { filter: blur(4px); }
}

/* La página de "no encontrada": solo la noche y la cueva. */
.portada-sola { min-height: 100vh; min-height: 100dvh; padding: 48px 0; }
.portada-sola h1 { font-size: clamp(30px, 6vw, 48px); }
