/* ==========================================================================
   Zarpio — hoja de estilos del sitio
   --------------------------------------------------------------------------
   COLORES DE MARCA: cambiá estos cinco valores y todo el sitio (también el
   modo oscuro y las ilustraciones) se recalcula a partir de ellos.
   ========================================================================== */
:root {
  --vela: #2346E8;    /* azul vela   */
  --noche: #12324A;   /* azul noche  */
  --dorado: #F5C65F;  /* dorado: solo para detalles */
  --crema: #FFF8EC;   /* crema       */
  --texto: #1B2430;   /* texto       */
}

/* ---------- Letra (en el repositorio, sin servicios externos) ---------- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Letra de reemplazo con las mismas medidas, para que nada salte al cargar */
@font-face {
  font-family: "Fredoka respaldo";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 100%;
  ascent-override: 97.4%;
  descent-override: 23.6%;
  line-gap-override: 0%;
}

/* ---------- Tokens derivados (modo claro) ---------- */
:root {
  color-scheme: light dark;
  --bg: var(--crema);
  --bg-tint: color-mix(in oklab, var(--crema) 90%, var(--vela));
  --surface: color-mix(in oklab, var(--crema) 35%, #fff);
  --surface-2: color-mix(in oklab, var(--crema) 94%, var(--vela));
  --ink: var(--texto);
  --ink-soft: color-mix(in oklab, var(--texto) 80%, var(--crema));
  --accent: var(--vela);
  --accent-strong: color-mix(in oklab, var(--vela) 78%, var(--noche));
  --on-accent: #fff;
  --line: color-mix(in oklab, var(--texto) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--texto) 26%, transparent);
  --gold: var(--dorado);
  --logo-sym: var(--vela);
  --logo-word: var(--noche);
  --deep: var(--noche);
  --on-deep: var(--crema);

  /* escena del mar */
  --sky-top: color-mix(in oklab, var(--crema) 38%, #b9cdff);
  --sky-bottom: var(--crema);
  --haze: color-mix(in oklab, var(--crema) 70%, #fff);
  --isle-far: color-mix(in oklab, var(--vela) 16%, var(--crema));
  --isle-near: color-mix(in oklab, var(--noche) 30%, var(--crema));
  --sea-1: color-mix(in oklab, var(--vela) 28%, var(--crema));
  --sea-2: color-mix(in oklab, var(--vela) 50%, var(--crema));
  --sea-3: color-mix(in oklab, var(--vela) 78%, var(--crema));
  --sea-4: var(--vela);
  --sea-5: color-mix(in oklab, var(--vela) 62%, var(--noche));
  --hull: var(--noche);
  --sail: var(--vela);
  --sun: var(--dorado);
  --star-o: 0;
  --moon-o: 0;
  --sun-o: 1;
  --beam-o: 0;

  /* forma y movimiento */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(18 50 74 / .06), 0 18px 40px -18px rgb(18 50 74 / .28);
  --shadow-lift: 0 2px 4px rgb(18 50 74 / .08), 0 30px 60px -24px rgb(18 50 74 / .38);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: "Fredoka", "Fredoka respaldo", ui-rounded, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1160px;
}

/* ---------- Modo oscuro ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: color-mix(in oklab, var(--noche) 58%, #000);
    --bg-tint: color-mix(in oklab, var(--noche) 78%, #000);
    --surface: color-mix(in oklab, var(--noche) 90%, var(--crema));
    --surface-2: color-mix(in oklab, var(--noche) 80%, #000);
    --ink: var(--crema);
    --ink-soft: color-mix(in oklab, var(--crema) 80%, var(--noche));
    --accent: color-mix(in oklab, var(--vela) 42%, #fff);
    --accent-strong: color-mix(in oklab, var(--vela) 26%, #fff);
    --on-accent: var(--noche);
    --line: color-mix(in oklab, var(--crema) 14%, transparent);
    --line-strong: color-mix(in oklab, var(--crema) 28%, transparent);
    --logo-sym: color-mix(in oklab, var(--vela) 40%, #fff);
    --logo-word: var(--crema);
    --deep: color-mix(in oklab, var(--noche) 70%, #000);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -18px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -24px rgb(0 0 0 / .7);

    --sky-top: color-mix(in oklab, var(--noche) 55%, #000);
    --sky-bottom: color-mix(in oklab, var(--noche) 85%, var(--vela));
    --haze: color-mix(in oklab, var(--noche) 70%, var(--vela));
    --isle-far: color-mix(in oklab, var(--noche) 75%, var(--vela));
    --isle-near: color-mix(in oklab, var(--noche) 70%, #000);
    --sea-1: color-mix(in oklab, var(--noche) 52%, var(--vela));
    --sea-2: color-mix(in oklab, var(--noche) 62%, var(--vela));
    --sea-3: color-mix(in oklab, var(--noche) 72%, var(--vela));
    --sea-4: color-mix(in oklab, var(--noche) 84%, var(--vela));
    --sea-5: color-mix(in oklab, var(--noche) 60%, #000);
    --hull: color-mix(in oklab, var(--noche) 40%, #000);
    --sail: var(--crema);
    --star-o: 1;
    --moon-o: 1;
    --sun-o: 0;
    --beam-o: .5;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
 html.anim { scroll-behavior: smooth; } 
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
.i { width: 1.25em; height: 1.25em; flex: none; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); line-height: 1.2; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
strong { font-weight: 700; }
small { font-size: .875em; }
abbr[title] { text-decoration: none; }
::selection { background: color-mix(in oklab, var(--gold) 60%, transparent); color: var(--texto); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 4c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M1 4c3-4 5-4 8 0s5 4 8 0 5-4 8 0' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--on-accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em;
  border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 1rem/1.1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 24px -12px color-mix(in oklab, var(--b-bg) 80%, transparent);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--spring); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost {
  --b-bg: transparent; --b-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font: 600 1rem/1.2 var(--font-display); text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--spring); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Insignia de tienda (por ahora "Muy pronto") ---------- */
.store {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 9px 20px 9px 16px; margin: 0;
  border-radius: 16px;
  background: var(--texto); color: #fff;
  border: 1px solid color-mix(in oklab, #fff 18%, transparent);
  line-height: 1.1;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store__txt { display: grid; }
.store__txt small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store__txt b { font: 600 1.15rem/1.15 var(--font-display); }
.store.is-soon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%);
  transform: translateX(-100%);
}
@media (prefers-color-scheme: dark) {
  .store { background: #000; }
}

/* ==========================================================================
   Barra de travesía (progreso de lectura con un barquito)
   ========================================================================== */
.voyage {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  pointer-events: none;
}
.voyage__bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--gold)));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}
.voyage__boat {
  position: absolute; top: 1px; left: 0; width: 18px; height: 16px;
  color: var(--accent);
  transform: translateX(calc(var(--p, 0) * (100vw - 22px)));
}
@supports (animation-timeline: scroll()) {
  .voyage__bar { animation: voyage-bar linear both; animation-timeline: scroll(root); }
  .voyage__boat { animation: voyage-boat linear both; animation-timeline: scroll(root); }
}
@keyframes voyage-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes voyage-boat { from { transform: translateX(0); } to { transform: translateX(calc(100vw - 22px)); } }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
  position: relative; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 18px; padding-block: 12px;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
@media (min-width: 760px) {
  .site-header { position: sticky; top: 0; }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  border-radius: 10px;
}
.brand__sym { width: 40px; height: 36px; color: var(--logo-sym); overflow: visible; }
.brand__word { width: 92px; height: 30px; color: var(--logo-word); }
.brand__sym .s1, .brand__sym .s2 { transform-box: fill-box; transition: transform .6s var(--spring); }
.brand__sym .s1 { transform-origin: 0% 100%; }
.brand__sym .s2 { transform-origin: 100% 0%; }
.brand:hover .brand__sym .s1 { transform: translate(1px, -1px) scale(1.06); }
.brand:hover .brand__sym .s2 { transform: translate(-1px, 1px) scale(1.06); }

.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 10px 12px;
  font: 600 .98rem/1 var(--font-display); color: var(--ink); text-decoration: none;
  border-radius: 10px;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 6px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3c5-4 5-4 10 0s5 4 10 0 5-4 10 0 5 4 10 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0/40px 6px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3c5-4 5-4 10 0s5 4 10 0 5-4 10 0 5 4 10 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0/40px 6px repeat-x;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .anim .nav a:hover::after { animation: mask-flow 1.2s linear infinite; }
@keyframes mask-flow { to { -webkit-mask-position: 40px 0; mask-position: 40px 0; } }

.lang {
  display: inline-flex; padding: 3px; gap: 2px; margin: 0; list-style: none;
  border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang a {
  display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 10px;
  border-radius: 999px; font: 600 .85rem/1 var(--font-display); letter-spacing: .06em;
  color: var(--ink-soft); text-decoration: none;
  transition: background-color .3s, color .3s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }

@media (max-width: 759px) {
  .site-header__in { padding-block: 10px 6px; }
  .nav { order: 3; width: 100%; }
  .nav ul { justify-content: center; border-top: 1px solid var(--line); padding-top: 4px; }
  .nav a { padding: 10px 11px; font-size: .95rem; }
}

/* ==========================================================================
   Escena del mar (cabecera de Inicio y otras)
   ========================================================================== */
.hero {
  --sea-h: clamp(190px, 30vh, 330px);
  --isle-h: clamp(70px, 12vh, 150px);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
@media (min-width: 760px) { .hero { min-height: min(100svh - 64px, 920px); } }
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 62%); }
.scene__stars {
  position: absolute; inset: 0 0 40% 0; opacity: var(--star-o);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 41% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 69% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 76% 44%, #fff 50%, transparent 51%);
}
.scene__stars.s2 {
  background-image:
    radial-gradient(1px 1px at 18% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 33% 16%, var(--gold) 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 97% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 3% 12%, #fff 50%, transparent 51%);
}
.scene__sun {
  position: absolute; right: 16%; bottom: calc(var(--sea-h, 36%) - 46px); width: clamp(90px, 12vw, 170px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 52%, color-mix(in oklab, var(--sun) 40%, transparent) 53%, transparent 70%);
  opacity: var(--sun-o);
}
.scene__moon {
  position: absolute; right: 16%; top: 16%; width: clamp(54px, 6vw, 84px); aspect-ratio: 1;
  border-radius: 50%; opacity: var(--moon-o);
  background: radial-gradient(circle at 36% 36%, var(--crema) 0 60%, color-mix(in oklab, var(--crema) 70%, var(--gold)) 100%);
  box-shadow: 0 0 40px 10px color-mix(in oklab, var(--crema) 18%, transparent), 0 0 120px 40px color-mix(in oklab, var(--crema) 8%, transparent);
}
.scene__moon::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  left: 52%; top: 30%; background: color-mix(in oklab, var(--crema) 85%, var(--noche));
  box-shadow: -18px 14px 0 -3px color-mix(in oklab, var(--crema) 88%, var(--noche));
}
.scene__layer { position: absolute; left: -4%; right: -4%; will-change: transform; }
@media not (prefers-color-scheme: dark) { .scene .scene__stars, .scene .scene__moon, .scene .scene__beam { display: none; } }
@media (prefers-color-scheme: dark) { .scene .scene__sun, .scene .sea::before { display: none; } }
.scene__clouds { top: 6%; height: 30%; color: color-mix(in oklab, #fff 80%, var(--sky-top)); }
@media (prefers-color-scheme: dark) { .scene__clouds { color: color-mix(in oklab, var(--noche) 70%, var(--vela)); opacity: .55; } }
.cloud { position: absolute; left: 0; width: clamp(110px, 14vw, 220px); }
.cloud svg { width: 100%; height: auto; }
.cloud.c2 { width: clamp(80px, 10vw, 160px); }
.cloud.c3 { width: clamp(60px, 7vw, 120px); opacity: .8; }
.scene__isles { bottom: calc(var(--sea-h, 36%) * .8); height: var(--isle-h, 20%); }
.lighthouse-el { position: absolute; left: 85%; bottom: 33%; width: clamp(12px, 1.4vw, 20px); aspect-ratio: 1 / 3; translate: -50% 0; }
.lighthouse-el > svg { position: relative; width: 100%; height: 100%; }
.scene__isles svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.isle-far { fill: var(--isle-far); }
.isle-near { fill: var(--isle-near); }
.lighthouse { fill: var(--isle-near); }
.lighthouse .lamp { fill: var(--gold); }
.lighthouse .stripe { fill: color-mix(in oklab, var(--crema) 85%, var(--isle-near)); }
.scene__beam {
  position: absolute; width: 55vw; height: 56px; left: 50%; top: 21%; margin-top: -28px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, color-mix(in oklab, var(--gold) 70%, transparent), transparent 80%);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%);
  opacity: var(--beam-o);
  filter: blur(2px);
}
.scene__birds { position: absolute; left: 0; right: 0; top: 14%; height: 20%; color: color-mix(in oklab, var(--noche) 70%, transparent); }
@media (prefers-color-scheme: dark) { .scene__birds { display: none; } }
.bird { position: absolute; width: 26px; height: 12px; }
.bird svg { width: 100%; height: 100%; overflow: visible; }
.bird svg { transform-origin: 50% 70%; }

.sea { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sea-h, 36%); }
.sea::before { /* brillo del horizonte */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 14px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--sun) 55%, transparent) 70%, transparent);
  filter: blur(6px); opacity: calc(var(--sun-o) * .9);
}
.wave { position: absolute; left: 0; width: 200%; will-change: transform; }
.wave svg { width: 100%; height: 100%; }
.wave path { fill: currentColor; }
.wave.w1 { top: 0; height: 100%; color: var(--sea-1); }
.wave.w2 { top: 16%; height: 84%; color: var(--sea-2); }
.wave.w3 { top: 38%; height: 62%; color: var(--sea-3); }
.wave.w4 { top: 60%; height: 40%; color: var(--sea-4); }
.wave.w5 { top: 80%; height: 20%; color: var(--sea-5); }
.glints {
  position: absolute; inset: 22% 0 10% 0;
  background-image:
    radial-gradient(2px 1px at 70% 20%, #fff 60%, transparent 61%),
    radial-gradient(3px 1px at 76% 34%, var(--gold) 60%, transparent 61%),
    radial-gradient(2px 1px at 64% 48%, #fff 60%, transparent 61%),
    radial-gradient(3px 1px at 82% 58%, #fff 60%, transparent 61%),
    radial-gradient(2px 1px at 22% 40%, #fff 60%, transparent 61%),
    radial-gradient(3px 1px at 40% 70%, var(--gold) 60%, transparent 61%);
  opacity: .8;
}
.boat-track {
  position: absolute; left: 10%; bottom: 50%; width: clamp(96px, 13vw, 168px); aspect-ratio: 1 / 1.05;
  transform: translate3d(calc(var(--hero-p, 0) * 55vw), 0, 0);
  will-change: transform;
}
.boat { width: 100%; height: 100%; transform-origin: 50% 92%; }
.boat svg { width: 100%; height: 100%; overflow: visible; }
.boat .hull { fill: var(--hull); }
.boat .sail { fill: var(--sail); }
.boat .mast { stroke: var(--hull); }
.boat .flag { fill: var(--gold); transform-box: fill-box; transform-origin: 0 50%; }
.boat .sails { transform-box: fill-box; transform-origin: 30% 100%; transform: scaleX(calc(1 + var(--wind, 0) * .06)) skewX(calc(var(--wind, 0) * -4deg)); transition: transform 1.2s var(--ease-out); }
.boat-wake {
  position: absolute; left: -30%; right: 40%; bottom: 0; height: 10%;
  background: radial-gradient(ellipse at 100% 50%, color-mix(in oklab, #fff 60%, transparent), transparent 70%);
  opacity: .5;
}
.ripples { position: absolute; inset: 0; }
.ripple {
  position: absolute; width: 140px; height: 36px; margin: -18px 0 0 -70px;
  border-radius: 50%; border: 2px solid color-mix(in oklab, #fff 85%, transparent);
  animation: ripple 1.6s var(--ease-out) forwards;
}
.ripple.r2 { animation-delay: .18s; opacity: 0; }
@keyframes ripple {
  0% { transform: scale(.05); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.sea-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 600 .78rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in oklab, #fff 88%, transparent);
  display: none;
}
.js .sea-hint { display: block; }

/* Contenido de la cabecera */
.hero__content { position: relative; padding-top: clamp(32px, 7vh, 88px); padding-bottom: calc(var(--sea-h) + 28px); }
.hero__logo { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); margin: 0 0 clamp(18px, 3vw, 28px); line-height: 0; }
.hero__sym { width: clamp(64px, 9.4vw, 112px); height: auto; color: var(--logo-sym); overflow: visible; transform-origin: 30% 90%; }
.hero__word { width: clamp(146px, 21.5vw, 256px); height: auto; color: var(--logo-word); transform-origin: 0 70%; }
.hero__lema {
  font: 600 clamp(2.3rem, 1.2rem + 5vw, 5.2rem)/1.02 var(--font-display);
  letter-spacing: -.02em; margin: 0 0 .35em; max-width: 13ch; text-wrap: balance;
  color: var(--ink);
}
.hero__lema .lw { display: inline-block; }
.hero__lema em {
  font-style: normal; position: relative; white-space: nowrap; color: var(--accent);
}
.hero__lema em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.08em; height: .2em;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-7 60-7 97-3s70 4 97-2' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-7 60-7 97-3s70 4 97-2' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform-origin: left; z-index: -1;
}
.hero__intro { font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.6em; }

@media (max-width: 599px) { .sea-hint { left: var(--gutter); transform: none; } }

/* ==========================================================================
   Animaciones (solo si la persona no pidió reducir movimiento)
   ========================================================================== */
  .anim .wave.w1 { animation: drift 46s linear infinite; }
  .anim .wave.w2 { animation: drift 34s linear infinite reverse; }
  .anim .wave.w3 { animation: drift 26s linear infinite; }
  .anim .wave.w4 { animation: drift 19s linear infinite reverse; }
  .anim .wave.w5 { animation: drift 14s linear infinite; }
  .anim .boat { animation: bob 5.2s var(--ease-in-out) infinite; }
  .anim.is-ready .boat .flag { animation: flutter .9s ease-in-out infinite alternate; }
  .anim .boat-wake { animation: wake 5.2s ease-in-out infinite; }
  .anim .scene__sun { animation: breathe 7s ease-in-out infinite; }
  .anim .scene__stars { animation: twinkle 4s ease-in-out infinite alternate; }
  .anim .scene__stars.s2 { animation-duration: 5.5s; animation-delay: -2s; }
  .anim .scene__beam { animation: sweep 9s var(--ease-in-out) infinite; }
  .anim .cloud.c1 { animation: cloud 70s linear infinite; animation-delay: -24s; }
  .anim .cloud.c2 { animation: cloud 95s linear infinite; animation-delay: -64s; }
  .anim .cloud.c3 { animation: cloud 120s linear infinite; animation-delay: -20s; }
  .anim .bird { animation: glide 26s linear infinite; }
  .anim .bird.b2 { animation-duration: 31s; animation-delay: -9s; }
  .anim .bird.b3 { animation-duration: 38s; animation-delay: -20s; }
  .anim .bird svg { animation: flap .7s ease-in-out infinite alternate; }
  .anim .bird.b2 svg { animation-duration: .8s; }
  .anim .glints { animation: glint 3.2s ease-in-out infinite alternate; }

  .anim .hero__sym { animation: sym-in 1.2s var(--spring) .1s both; }
  .anim .hero__word { animation: word-in 1s var(--ease-out) .35s both; }
  .anim .hero__lema .lw { animation: word-up .9s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 90ms); }
  .anim .hero__lema em::after { animation: underline 1s var(--ease-out) 1.2s both; }
  .anim .store.is-soon::after { animation: shimmer 4.8s var(--ease-in-out) 1.5s infinite; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(6%) rotate(3deg); }
}
@keyframes wake { 50% { opacity: .2; transform: scaleX(.8); } }
@keyframes flutter { from { transform: skewY(-8deg) scaleX(.9); } to { transform: skewY(10deg) scaleX(1.05); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes twinkle { from { opacity: calc(var(--star-o) * .35); } to { opacity: var(--star-o); } }
@keyframes sweep {
  0%, 100% { transform: rotate(-178deg) scaleX(.6); }
  50% { transform: rotate(-200deg) scaleX(1); }
}
@keyframes cloud { from { transform: translateX(-24vw); } to { transform: translateX(112vw); } }
@keyframes glide {
  from { transform: translate(-10vw, 0); }
  50% { transform: translate(50vw, -20px); }
  to { transform: translate(110vw, 10px); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.4); } }
@keyframes glint { from { opacity: .25; } to { opacity: .9; } }
@keyframes sym-in {
  from { transform: translate(-18%, 22%) scale(.35) rotate(-16deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes word-in { from { transform: translateX(-14px) scaleX(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word-up { from { transform: translateY(.45em) rotate(2deg); } to { transform: none; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Pausa (WCAG 2.2.2): el botón de la portada congela todo */
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }

/* Las secciones de más abajo se dibujan recién cuando te acercás */
main > .section, main > .lq > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.prose > section { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* Lo que está fuera de pantalla no se anima (ahorra batería y CPU) */
.js .is-off *, .js .is-off *::before, .js .is-off *::after { animation-play-state: paused !important; }

/* Aparición al desplazarse (solo con JS: sin JS todo se ve igual) */
  .anim [data-reveal] {
    opacity: 0; transform: translate3d(0, 28px, 0);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .anim [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
  .anim [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
  .anim [data-reveal="zoom"] { transform: scale(.92); }
  .anim [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Inicio: quiénes somos
   ========================================================================== */
.about { text-align: left; }
.statement {
  font: 600 clamp(1.8rem, 1rem + 3.4vw, 3.7rem)/1.14 var(--font-display);
  letter-spacing: -.015em; max-width: 20ch; margin: 0 0 .6em; text-wrap: balance;
}
.statement .w { transition: opacity .35s linear, color .35s linear; }
.js .statement.is-live .w { opacity: var(--o, .66); }
.statement .hl { color: var(--accent); }
.about__meta { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.about__meta li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.about__meta svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* Brújula decorativa */
.compass {
  position: absolute; right: max(var(--gutter), calc(50% - var(--max) / 2)); top: 50%;
  width: clamp(120px, 18vw, 230px); aspect-ratio: 1; translate: 0 -50%;
  color: var(--line-strong); pointer-events: none;
}
.compass .needle { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(var(--needle, 20deg)); transition: transform 1.6s var(--spring); }
.compass .needle .n { fill: var(--accent); }
.compass .needle .s { fill: var(--gold); }
@media (max-width: 899px) { .compass { display: none; } }

/* ==========================================================================
   Inicio: nuestras apps
   ========================================================================== */
.apps-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .apps-grid { grid-template-columns: 1.65fr 1fr; align-items: stretch; } }
.app-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 22px; align-content: start;
  padding: clamp(22px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, #6D33E6 26%, transparent), transparent 60%),
    linear-gradient(160deg, #2B3FE0, #3b1f9e 70%, #241363);
  color: #fff;
  box-shadow: var(--shadow-lift);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out);
}
.app-card.is-tilting { transition: transform .12s linear; }
.app-card::after { /* reflejo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgb(255 255 255 / .16), transparent 40%);
}
.app-card__grid { /* letras de fondo */
  position: absolute; inset: 0; z-index: -1; opacity: .16; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, 1fr); align-content: start;
  font: 600 1.2rem/2.6 var(--font-display); text-align: center; letter-spacing: 0;
  -webkit-mask: linear-gradient(200deg, #000 10%, transparent 70%); mask: linear-gradient(200deg, #000 10%, transparent 70%);
}
.app-card__grid span.on { color: var(--gold); opacity: 1; }
.app-card__top { display: flex; align-items: center; gap: 18px; }
.app-icon {
  position: relative; flex: none; width: clamp(84px, 14vw, 116px); aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 18px 34px -12px rgb(0 0 0 / .55);
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 .15em; }
.app-card .tag { margin: 0; font: 600 .82rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .82); }
.app-card p.sum { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); max-width: 34ch; margin: 0; color: rgb(255 255 255 / .94); }
.app-card .btn-row { margin-top: 6px; }
.app-card .link-arrow { color: #fff; }
.app-card .store { background: rgb(0 0 0 / .45); }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
@media (max-width: 699px) { .floaters { display: none; } }
.floaters span {
  position: absolute; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: color-mix(in oklab, var(--crema) 92%, #fff); color: var(--texto);
  font: 600 1.15rem/1 var(--font-display);
  box-shadow: 0 8px 18px -8px rgb(0 0 0 / .5);
  opacity: .9;
}
.floaters span.g { background: var(--gold); }
  .anim .floaters span { animation: float 6s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * -1.3s); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, -6deg) * -1)); }
}

.soon-card {
  position: relative; overflow: hidden;
  display: grid; align-content: space-between; gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: calc(var(--radius) + 6px);
  border: 2px dashed var(--line-strong);
  background: var(--surface);
  min-height: 280px;
}
.soon-card h3 { margin-bottom: .3em; }
.soon-card p { color: var(--ink-soft); margin: 0; }
.shipyard { width: 100%; max-width: 300px; height: auto; justify-self: center; color: var(--ink); overflow: visible; }
.shipyard .ground { stroke: var(--line-strong); }
.shipyard .hull { fill: color-mix(in oklab, var(--accent) 14%, transparent); stroke: var(--ink); }
.shipyard .rib { stroke: var(--accent); }
.shipyard .mast { stroke: var(--ink); transform-box: fill-box; transform-origin: 50% 100%; }
.shipyard .sails { fill: var(--accent); transform-box: fill-box; transform-origin: 30% 100%; }
.shipyard .flag { fill: var(--gold); }
.shipyard .hammer { transform-box: fill-box; transform-origin: 90% 90%; }
.shipyard .spark { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
  .anim .shipyard .rib { stroke-dasharray: 40; animation: build 8s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * .25s); }
  .anim .shipyard .mast { animation: mast 8s var(--spring) infinite; }
  .anim .shipyard .sails { animation: sails 8s var(--spring) infinite; }
  .anim .shipyard .hammer { animation: hammer 1.1s var(--ease-in-out) infinite; }
  .anim .shipyard .spark { animation: spark 1.1s ease-out infinite; }
@keyframes hammer { 0%, 100% { transform: rotate(-30deg); } 42% { transform: rotate(8deg); } 52% { transform: rotate(4deg); } }
@keyframes spark { 0%, 38% { opacity: 0; transform: scale(.3); } 46% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes build { 0% { stroke-dashoffset: 40; } 18%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
@keyframes mast { 0%, 30% { transform: scaleY(0); } 40%, 88% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes sails { 0%, 40% { transform: scale(0) rotate(-20deg); } 52%, 86% { transform: none; } 94%, 100% { transform: scale(0); } }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--radius) + 10px);
  background: var(--deep); color: var(--on-deep);
}
@media (min-width: 860px) { .contact { grid-template-columns: 1.3fr 1fr; } }
.contact h2 { color: var(--on-deep); }
.contact p { color: color-mix(in oklab, var(--on-deep) 86%, transparent); max-width: 46ch; }
.contact .eyebrow { color: color-mix(in oklab, var(--on-deep) 80%, transparent); }
.mail {
  display: inline-flex; align-items: center; gap: .4em; flex-wrap: wrap;
  font: 600 clamp(1.35rem, 1rem + 2vw, 2.2rem)/1.15 var(--font-display);
  color: var(--on-deep); text-decoration-color: var(--gold); text-decoration-thickness: .1em;
  word-break: break-word;
}
.mail:hover { color: var(--gold); }
.mail .i { width: .9em; height: .9em; }
.copy-btn {
  display: none; align-items: center; gap: 8px; margin-top: 14px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: 600 .92rem/1 var(--font-display); color: var(--on-deep);
  background: transparent; border: 2px solid color-mix(in oklab, var(--on-deep) 35%, transparent);
  transition: background-color .3s, border-color .3s;
}
.js .copy-btn { display: inline-flex; }
.copy-btn:hover { border-color: var(--on-deep); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.is-done { background: var(--gold); color: var(--texto); border-color: var(--gold); }
.contact__sea { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1; opacity: .9; }
.contact__sea .wave { color: color-mix(in oklab, var(--vela) 38%, var(--deep)); }
.contact__sea .wave.w2 { color: color-mix(in oklab, var(--vela) 22%, var(--deep)); }
.bottle { width: min(260px, 70%); justify-self: center; overflow: visible; }
.bottle .glass { fill: color-mix(in oklab, var(--crema) 18%, transparent); stroke: color-mix(in oklab, var(--crema) 70%, transparent); }
.bottle .paper { fill: var(--crema); }
.bottle .cork { fill: color-mix(in oklab, var(--gold) 70%, #8a5a2b); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--spring); }
.bottle .shine { stroke: rgb(255 255 255 / .7); }
.contact:hover .bottle .cork { transform: translate(6px, -10px) rotate(24deg); }
  .anim .bottle { animation: bottle 6s var(--ease-in-out) infinite; transform-origin: 50% 70%; }
@keyframes bottle {
  0%, 100% { transform: translateY(0) rotate(-9deg); }
  50% { transform: translateY(10px) rotate(-3deg); }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
  position: relative; margin-top: clamp(60px, 8vw, 110px);
  background: var(--deep); color: var(--on-deep);
  padding-block: 28px 40px;
}
.footer-wave { position: absolute; left: 0; right: 0; bottom: 100%; height: 46px; overflow: hidden; pointer-events: none; }
.footer-wave .wave { height: 100%; top: 0; color: var(--deep); }
.footer-wave .wave.w1 { color: color-mix(in oklab, var(--deep) 45%, transparent); top: -8px; height: calc(100% + 8px); }
.site-footer a { color: var(--on-deep); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.footer-brand { display: grid; gap: 12px; }
.footer-brand .brand { color: var(--on-deep); --logo-sym: color-mix(in oklab, var(--vela) 40%, #fff); --logo-word: var(--crema); }
.footer-brand p { margin: 0; font: 600 1.15rem/1.3 var(--font-display); color: color-mix(in oklab, var(--on-deep) 88%, transparent); }
.site-footer h2 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--on-deep) 75%, transparent); margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--on-deep) 16%, transparent);
  font-size: .92rem; color: color-mix(in oklab, var(--on-deep) 80%, transparent);
}
.footer-bottom p { margin: 0; }
.site-footer .lang { display: inline-flex; background: color-mix(in oklab, var(--on-deep) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--on-deep) 18%, transparent); }
.site-footer .lang a { display: grid; padding: 0 10px; color: color-mix(in oklab, var(--on-deep) 82%, transparent); }
.site-footer .lang a[aria-current="true"] { background: var(--crema); color: var(--noche); }

/* ==========================================================================
   LetraQuest
   ========================================================================== */
.lq {
  --lq-1: #2B3FE0;
  --lq-2: #5B2BD9;
  --lq-3: #1A1060;
  --tile: color-mix(in oklab, var(--crema) 90%, #fff);
  --tile-ink: var(--texto);
}
.lq-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 70% at 50% -10%, color-mix(in oklab, #47C4FF 45%, transparent), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, color-mix(in oklab, #A04BFF 55%, transparent), transparent 70%),
    linear-gradient(180deg, var(--lq-1), var(--lq-2) 60%, var(--lq-3));
  padding-block: clamp(40px, 7vw, 96px) clamp(80px, 10vw, 140px);
}
.lq-hero .scene__stars { inset: 0; opacity: .9; }
.lq-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .lq-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.lq-hero h1 { color: #fff; margin-bottom: .1em; font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); }
.lq-hero .kicker { font: 600 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.2 var(--font-display); color: var(--gold); margin: 0 0 .9em; }
.lq-hero p { color: rgb(255 255 255 / .92); max-width: 52ch; }
.lq-hero .eyebrow { color: rgb(255 255 255 / .85); }
.lq-hero .btn--ghost { --b-fg: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .45); }
.lq-hero .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.lq-hero .store { background: rgb(0 0 0 / .4); }
.lq-hero__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; padding: 0; list-style: none; }
.lq-hero__links a { color: #fff; font-weight: 600; }
.lq-hero__links a:hover { color: var(--gold); }
.lq-hero__icon { width: 84px; border-radius: 22%; margin-bottom: 18px; box-shadow: 0 16px 30px -12px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .25); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; pointer-events: none; z-index: 1; }
.hero-wave .wave { top: 0; height: 100%; color: var(--bg); }
.hero-wave .wave.w1 { color: color-mix(in oklab, var(--bg) 40%, transparent); top: -10px; height: calc(100% + 10px); }

/* Sopa de letras jugable */
.ws-wrap { justify-self: center; width: min(100%, 460px); }
.ws {
  position: relative; touch-action: none; user-select: none; -webkit-user-select: none;
  padding: clamp(10px, 2.4vw, 16px);
  border-radius: 26px;
  background: linear-gradient(160deg, rgb(255 255 255 / .2), rgb(255 255 255 / .06));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 30px 60px -28px rgb(0 0 0 / .7);
}
.ws__grid { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(4px, 1vw, 7px); }
.ws__cell {
  position: relative; z-index: 1;
  display: grid; place-items: center; aspect-ratio: 1;
  border-radius: 22%;
  background: var(--tile); color: var(--tile-ink);
  font: 600 clamp(1rem, .7rem + 2vw, 1.5rem)/1 var(--font-display);
  box-shadow: 0 3px 0 color-mix(in oklab, var(--tile) 60%, #6b5a3a), 0 6px 10px -6px rgb(0 0 0 / .5);
  transition: transform .3s var(--spring), background-color .3s, color .3s;
}
.ws__cell.f { background: color-mix(in oklab, var(--gold) 80%, #fff); }
.js .ws__cell.f { background: var(--tile); }
.js .ws__cell.f.found { background: color-mix(in oklab, var(--gold) 85%, #fff); }
.ws__cell.sel { transform: scale(1.08); background: #fff; }
.ws__cell.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.22) rotate(-4deg); } }
.ws__marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ws__mark {
  position: absolute; height: var(--h); left: 0; top: 0;
  border-radius: 999px;
  border: 3px solid color-mix(in oklab, var(--m, #8B5CF6) 90%, #fff);
  background: color-mix(in oklab, var(--m, #8B5CF6) 22%, transparent);
  transform-origin: calc(var(--h) / 2) 50%;
  box-shadow: 0 0 18px color-mix(in oklab, var(--m, #8B5CF6) 55%, transparent);
}
.ws__mark.draw { animation: draw .55s var(--ease-out) both; }
@keyframes draw { from { clip-path: inset(0 calc(100% - var(--h)) 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
.ws__mark.live { border-style: dashed; box-shadow: none; }
.ws__words {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none;
}
.ws__words li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font: 600 .9rem/1 var(--font-display); letter-spacing: .06em;
  background: rgb(255 255 255 / .14); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
  transition: background-color .4s, color .4s;
}
.ws__words li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.ws__words li.found { background: var(--gold); color: var(--texto); }
.ws__words li.found::before { opacity: 1; background: var(--texto); }
.ws__hint { text-align: center; margin: 10px 0 0; font-size: .92rem; color: rgb(255 255 255 / .85); }
.ws__hint .nojs { display: inline; }
.ws__hint .yesjs { display: none; }
.js .ws__hint .nojs { display: none; }
.js .ws__hint .yesjs { display: inline; }
.burst { position: absolute; z-index: 3; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--gold); pointer-events: none; animation: burst .8s var(--ease-out) forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)) rotate(220deg) scale(.3); opacity: 0; } }
  .anim .ws.is-intro .ws__cell { animation: fall .7s var(--spring) both; animation-delay: calc(var(--c) * 55ms + var(--r) * 30ms); }
@keyframes fall { from { transform: translateY(-260%) rotate(var(--rot, 8deg)); opacity: 0; } 60% { opacity: 1; } }

/* Tarjetas de funciones */
.features { display: grid; gap: 20px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feat {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; gap: 6px;
  padding: 0 0 22px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease-out);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feat__art {
  position: relative; height: 170px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in oklab, var(--c1, #2B3FE0) 92%, #fff), var(--c2, #5B2BD9));
  margin-bottom: 14px;
}
.feat__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat h3, .feat p { padding-inline: 22px; }
.feat h3 { margin-bottom: .35em; }
.feat p { margin: 0; color: var(--ink-soft); }
.feat .num {
  position: absolute; top: 12px; right: 14px; z-index: 1;
  font: 600 .8rem/1 var(--font-display); letter-spacing: .1em; color: rgb(255 255 255 / .9);
  background: rgb(0 0 0 / .2); padding: 6px 9px; border-radius: 999px;
}
/* Ilustraciones de cada función */
.art-tile rect { fill: var(--tile); }
.art-tile text { font: 600 15px var(--font-display); fill: var(--tile-ink); text-anchor: middle; dominant-baseline: central; }
.art-mark { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.art-gold { fill: var(--gold); }
.art-white { fill: #fff; }
.art-soft { fill: rgb(255 255 255 / .22); }
.art-line { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
  .anim .feat .a-mark { stroke-dasharray: 200; animation: a-mark 4s var(--ease-in-out) infinite; }
  .anim .feat .a-fall { animation: a-fall 3.2s var(--spring) infinite; animation-delay: calc(var(--i) * .22s); }
  .anim .feat .a-hop { animation: a-hop 6s var(--ease-in-out) infinite; }
  .anim .feat .a-pulse { transform-box: fill-box; transform-origin: 50% 50%; animation: a-pulse 1.8s ease-in-out infinite; }
  .anim .feat .a-stick { transform-box: fill-box; transform-origin: 50% 50%; animation: a-stick 5s var(--spring) infinite; animation-delay: calc(var(--i) * .5s); }
  .anim .feat .a-day { transform-box: fill-box; transform-origin: 50% 50%; animation: a-day 7s ease-out infinite; animation-delay: calc(var(--i) * .7s); }
  .anim .feat .a-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: a-flame .6s ease-in-out infinite alternate; }
  .anim .feat .a-swing { transform-box: fill-box; transform-origin: 50% 0%; animation: a-swing 2.4s var(--ease-in-out) infinite; }
  .anim .feat .a-shine { animation: a-shine 3s ease-in-out infinite; }
  .anim .feat .a-flow { stroke-dasharray: 10 8; animation: a-flow 1.6s linear infinite; }
@keyframes a-mark { 0% { stroke-dashoffset: 200; } 35%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
@keyframes a-fall { 0% { transform: translateY(-120px); } 18%, 82% { transform: none; } 100% { transform: translateY(160px); } }
@keyframes a-hop {
  0%, 8% { transform: translate(0, 0); } 18% { transform: translate(52px, -8px); } 28%, 34% { transform: translate(92px, -24px); }
  46% { transform: translate(140px, -14px); } 58%, 100% { transform: translate(196px, -38px); }
}
@keyframes a-pulse { 50% { transform: scale(1.18); } }
@keyframes a-stick { 0% { transform: scale(0) rotate(-30deg); } 12% { transform: scale(1.15) rotate(6deg); } 18%, 86% { transform: scale(1) rotate(var(--rot, -4deg)); } 100% { transform: scale(0); } }
@keyframes a-day { 0%, 10% { opacity: .25; transform: scale(.8); } 16%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: .25; } }
@keyframes a-flame { from { transform: scaleY(.9) rotate(-4deg); } to { transform: scaleY(1.08) rotate(4deg); } }
@keyframes a-swing { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes a-shine { 0%, 60% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-flow { to { stroke-dashoffset: -36; } }

/* Cinta de extras */
.ticker {
  position: relative; overflow: hidden; margin-top: clamp(36px, 5vw, 56px);
  border-block: 1px solid var(--line); padding-block: 16px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 0; list-style: none; }
.ticker li { display: inline-flex; align-items: center; gap: 10px; font: 600 1.1rem/1.2 var(--font-display); white-space: nowrap; }
.ticker li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }
.ticker [aria-hidden="true"] { display: none; }
  .anim .ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
  .anim .ticker ul { flex-wrap: nowrap; padding-right: 34px; }
  .anim .ticker [aria-hidden="true"] { display: flex; }
  .anim .ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Capturas (marcadores) */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; }
.phone {
  position: relative; aspect-ratio: 9 / 19; border-radius: 28px; overflow: hidden;
  padding: 8px; background: #0d0f1a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, var(--shadow-lift);
  transition: transform .6s var(--spring);
}
.phone::before { /* cámara */
  content: ""; position: absolute; top: 14px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #000; z-index: 2; box-shadow: 0 0 0 2px #1d2030;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 21px; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 18px;
  background:
    radial-gradient(80% 50% at 50% 0%, color-mix(in oklab, #47C4FF 40%, transparent), transparent),
    linear-gradient(180deg, #2B3FE0, #5B2BD9);
  color: #fff;
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__ph { display: grid; gap: 8px; justify-items: center; font: 600 1rem/1.2 var(--font-display); }
.phone__ph svg { width: 40px; height: 40px; opacity: .8; }
.phone__ph small { font-family: var(--font-body); font-weight: 400; opacity: .8; font-size: .8rem; }
.phone__screen::after { /* barrido de luz */
  content: ""; position: absolute; inset: -40% -60%;
  background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / .14) 50%, transparent 58%);
  transform: translateX(-60%);
}
  .anim .phone__screen::after { animation: sweep-light 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .6s); }
  .anim .shot:hover .phone { transform: translateY(-10px) rotate(-1.5deg); }
@media (min-width: 900px) {
  .anim .shots .shot[data-reveal] { transform: translate3d(0, 60px, 0) rotate(calc((var(--d) - 1.5) * 4deg)); }
  .anim .shots .shot[data-reveal].is-in { transform: none; }
}
@keyframes sweep-light { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.shot figcaption { margin-top: 12px; font: 600 .98rem/1.3 var(--font-display); text-align: center; }

/* Tarjetas de enlace (privacidad y soporte) */
.cards-2 { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.link-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .45s var(--spring), box-shadow .45s var(--ease-out);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; }
.link-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); }
.link-card .ic svg { width: 28px; height: 28px; }
.link-card b { display: block; font: 600 1.2rem/1.2 var(--font-display); margin-bottom: 2px; }
.link-card span { color: var(--ink-soft); font-size: .98rem; }
.link-card > svg { width: 22px; height: 22px; color: var(--accent); transition: transform .45s var(--spring); }
.link-card:hover > svg { transform: translateX(5px); }

.cta-band {
  display: grid; gap: 20px; justify-items: center; text-align: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(160deg, #2B3FE0, #5B2BD9);
  color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .9); }
.cta-band .scene__stars { inset: 0; opacity: .8; z-index: -1; }
.cta-band .store { background: rgb(0 0 0 / .4); }

/* ==========================================================================
   Documentos (privacidad, soporte)
   ========================================================================== */
.doc-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 7vw, 88px) clamp(70px, 9vw, 110px); background: var(--bg-tint); }
.doc-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.8rem); max-width: 18ch; }
.doc-hero .lead { margin-bottom: 0; }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.doc-hero .meta li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 500;
}
.doc-hero .meta svg { width: 18px; height: 18px; color: var(--accent); }
.doc-hero .hero-wave .wave { color: var(--bg); }
.doc-hero__art { position: absolute; right: max(var(--gutter), calc(50% - var(--max) / 2)); top: 50%; translate: 0 -50%; width: clamp(160px, 22vw, 280px); z-index: -1; opacity: .95; }
@media (max-width: 899px) { .doc-hero__art { display: none; } }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: clamp(40px, 6vw, 72px) 0; }
@media (min-width: 1000px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.toc { align-self: start; font-size: .95rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; } }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8em; }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; line-height: 1.35; transition: color .25s, background-color .25s; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a[aria-current="true"] { color: var(--accent); font-weight: 600; background: color-mix(in oklab, var(--accent) 9%, transparent); }
.toc__boat { position: absolute; left: -11px; top: 0; width: 20px; height: 18px; color: var(--accent); transform: translateY(var(--ty, 0)); transition: transform .6s var(--spring); display: none; }
.js .toc__boat { display: block; }
@media (max-width: 999px) {
  .toc { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .toc__boat { display: none !important; }
}

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.2em; padding-top: .2em; position: relative; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { display: inline-block; min-width: 1.8em; color: var(--accent); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose .path, .answer .path { font-weight: 600; }
.prose .path::before { content: none; }
.note {
  position: relative; padding: 18px 20px 18px 56px; margin: 1.4em 0; border-radius: var(--radius-sm);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.note svg { position: absolute; left: 18px; top: 19px; width: 24px; height: 24px; color: var(--accent); }
.note p:last-child { margin-bottom: 0; }

.summary {
  display: grid; gap: 14px; margin: 0 0 2.5em; padding: clamp(20px, 3vw, 30px);
  border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow);
}
.summary h2 { margin: 0 0 .2em; font-size: 1.4rem; }
.summary ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .summary ul { grid-template-columns: 1fr 1fr; } }
.summary li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin: 0; }
.summary li .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.summary li .ic svg { width: 22px; height: 22px; }
.summary li b { display: block; font-family: var(--font-display); font-weight: 600; }
.summary li span { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }

/* Preguntas frecuentes */
.faq-tools { display: grid; gap: 12px; margin-bottom: 26px; }
.search { position: relative; display: none; }
.js .search { display: block; }
.search input {
  width: 100%; min-height: 54px; padding: 12px 18px 12px 50px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1.05rem;
  transition: border-color .3s, box-shadow .3s;
}
.search input::placeholder { color: color-mix(in oklab, var(--ink-soft) 85%, transparent); }
.search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-soft); }
.faq-empty { display: none; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); }
.faq-empty.show { display: block; }
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: var(--shadow-lift); }
.faq details[hidden] { display: none; }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 42px 1fr 28px; gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius);
  font: 600 clamp(1.08rem, 1rem + .35vw, 1.22rem)/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.faq summary .ic svg { width: 22px; height: 22px; }
.faq summary .chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: transform .45s var(--spring), background-color .3s; }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--accent); color: var(--on-accent); }
.faq .answer { padding: 0 22px 22px 76px; }
@media (max-width: 599px) { .faq .answer { padding: 0 18px 20px; } .faq summary { grid-template-columns: 36px 1fr 28px; padding: 16px; gap: 12px; } .faq summary .ic { width: 36px; height: 36px; } }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { padding-left: 1.2em; }
.faq .answer li { margin-bottom: .4em; }
@supports (interpolate-size: allow-keywords) {
      .anim .faq details { interpolate-size: allow-keywords; }
    .anim .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
    .anim .faq details[open]::details-content { height: auto; }
  
}
.faq mark { background: color-mix(in oklab, var(--gold) 55%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

.template {
  display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px);
  border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow);
}
.template label { font: 600 1rem/1.3 var(--font-display); }
.template textarea {
  width: 100%; min-height: 220px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font: .98rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; resize: vertical;
}
.template textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.template .copy-btn { color: var(--ink); border-color: var(--line-strong); margin: 0; }
.template .copy-btn:hover { border-color: var(--ink); }

.support-grid { display: grid; gap: 36px; padding-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) { .support-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; } .support-grid aside { position: sticky; top: 96px; } }
.mail-card {
  display: grid; gap: 12px; padding: clamp(22px, 3vw, 30px); margin-bottom: 22px;
  border-radius: calc(var(--radius) + 4px); background: var(--deep); color: var(--on-deep);
  position: relative; overflow: hidden; isolation: isolate;
}
.mail-card h2 { color: var(--on-deep); font-size: 1.5rem; margin: 0; }
.mail-card p { margin: 0; color: color-mix(in oklab, var(--on-deep) 85%, transparent); }
.mail-card .mail { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); }
.mail-card .copy-btn { margin: 0; justify-self: start; }
.mail-card .wave-mini { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; z-index: -1; opacity: .7; }
.mail-card .wave-mini .wave { color: color-mix(in oklab, var(--vela) 35%, var(--deep)); top: 0; height: 100%; }

.spin-slow { transform-origin: 50% 50%; }
 .anim .spin-slow { animation: spin 26s linear infinite; } 
@keyframes spin { to { transform: rotate(360deg); } }

/* Privacidad del sitio: huellas que borra el mar */
.shore { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 240; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
.shore svg { position: absolute; left: 0; width: 100%; }
.shore .shore__sand { top: 0; height: 100%; }
.shore .shore__tide { top: 72%; height: 60%; will-change: transform; }
.shore .sand { fill: color-mix(in oklab, var(--gold) 30%, var(--crema)); }
.shore .foot { fill: color-mix(in oklab, var(--gold) 55%, #9c7a45); }
.shore .tide { fill: color-mix(in oklab, var(--vela) 55%, var(--crema)); }
.shore .foam { fill: #fff; opacity: .85; }
@media (prefers-color-scheme: dark) {
  .shore .sand { fill: color-mix(in oklab, var(--noche) 70%, var(--gold)); }
  .shore .foot { fill: color-mix(in oklab, var(--noche) 70%, #000); }
  .shore .tide { fill: color-mix(in oklab, var(--vela) 40%, var(--noche)); }
  .shore .foam { opacity: .4; }
}
  .anim .shore .shore__tide { animation: tide 7s var(--ease-in-out) infinite; }
  .anim .shore .foot { animation: foot 7s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes tide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-46%); } }
@keyframes foot { 0%, 10% { opacity: 0; } 22%, 42% { opacity: 1; } 56%, 100% { opacity: 0; } }

.checks { display: grid; gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; margin: 0; }
.checks li svg { width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }

/* ==========================================================================
   404
   ========================================================================== */
.lost .scene__sun { display: none; }
@media (max-width: 859px) { .lost .scene__moon { display: none; } }
.lost { min-height: 100svh; padding-block: 40px calc(var(--sea-h) + 24px); }
.fog { position: absolute; left: -10%; width: 120%; height: 80px; border-radius: 50%; background: color-mix(in oklab, var(--haze) 80%, transparent); filter: blur(18px); opacity: .7; }
.fog.f1 { bottom: calc(var(--sea-h) - 40px); }
.fog.f2 { bottom: calc(var(--sea-h) + 10px); height: 50px; opacity: .5; }
  .anim .fog.f1 { animation: fog 16s ease-in-out infinite alternate; }
  .anim .fog.f2 { animation: fog 22s ease-in-out infinite alternate-reverse; }
  .anim .lost .boat-track { animation: lost-drift 30s ease-in-out infinite alternate; }
@keyframes fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes lost-drift { from { transform: translateX(0); } to { transform: translateX(40vw); } }
.lost__card { display: grid; gap: 26px; }
@media (min-width: 860px) { .lost__card { grid-template-columns: 1fr 1fr; gap: 48px; } }
.lost__lang h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.lost__lang p { color: var(--ink-soft); }
.lost__lang + .lost__lang { padding-top: 26px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .lost__lang + .lost__lang { padding-top: 0; border-top: 0; padding-left: 48px; border-left: 1px solid var(--line); } }
.big404 { font: 700 clamp(4rem, 2rem + 10vw, 9rem)/1 var(--font-display); color: var(--accent); margin: 0 0 8px; letter-spacing: -.04em; }
.en-first .lost__lang[lang="en"] { order: -1; }
@media (min-width: 860px) {
  .en-first .lost__lang[lang="en"] { padding-left: 0; border-left: 0; }
  .en-first .lost__lang[lang="es"] { padding-left: 48px; border-left: 1px solid var(--line); }
}


/* ==========================================================================
   v2 — La travesía (portada con el mundo en canvas) y piezas interactivas
   ========================================================================== */

/* ---------- Controles flotantes: movimiento y sonido ---------- */
.ctl-bar {
  position: fixed; right: 14px; bottom: 14px; z-index: 70;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  pointer-events: none;
}
.ctl {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .82rem/1 var(--font-display); color: var(--crema);
  background: color-mix(in oklab, var(--noche) 78%, transparent);
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5), inset 0 0 0 1px color-mix(in oklab, var(--crema) 18%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--spring), background-color .3s;
}
.ctl:hover { transform: translateY(-2px); }
.ctl[hidden] { display: none; }
.ctl__ico { position: relative; width: 18px; height: 18px; flex: none; }
.ctl__ico--motion::before, .ctl__ico--motion::after { content: ""; position: absolute; top: 3px; width: 4px; height: 12px; border-radius: 2px; background: currentColor; }
.ctl__ico--motion::before { left: 4px; } .ctl__ico--motion::after { right: 4px; }
.ctl.is-off .ctl__ico--motion::before { left: 5px; top: 2px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.ctl.is-off .ctl__ico--motion::after { display: none; }
.ctl__ico--sound { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='%23000'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='%23000'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; opacity: .55; }
.ctl.is-on .ctl__ico--sound { opacity: 1; }
.ctl.is-on { background: color-mix(in oklab, var(--vela) 85%, transparent); }
@media (max-width: 599px) { .ctl { min-height: 36px; padding: 6px 11px 6px 8px; font-size: .76rem; } .ctl-bar { right: 10px; bottom: 10px; } }
@media print { .ctl-bar { display: none !important; } }

/* ---------- El mundo (canvas fijo detrás de la portada) ---------- */
.world { display: none; }
.world-ready .world {
  display: block; position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--crema) 38%, #b9cdff) 0%, var(--crema) 60%, color-mix(in oklab, var(--vela) 45%, var(--crema)) 60.2%, var(--vela) 100%);
}
@media (prefers-color-scheme: dark) {
  .world-ready .world { background: linear-gradient(180deg, color-mix(in oklab, var(--noche) 50%, #000) 0%, color-mix(in oklab, var(--noche) 85%, var(--vela)) 60%, color-mix(in oklab, var(--noche) 60%, var(--vela)) 60.2%, color-mix(in oklab, var(--noche) 70%, #000) 100%); }
}
.world canvas { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .9s ease; }
.world::after { /* grano de papel impreso sobre todo el mundo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .world::after { mix-blend-mode: screen; opacity: .06; } }
.world.is-live canvas { opacity: 1; }
.world-ready main { position: relative; }
.world-ready main > section { position: relative; z-index: 1; background: transparent; }
.world-ready .hero .scene { display: none; }
.world-ready .hero { min-height: 100vh; min-height: 100svh; justify-content: flex-start; }
.world-ready .hero__content { padding-bottom: 0; padding-top: clamp(28px, 6vh, 72px); }
.world-ready .about { min-height: 120vh; display: flex; align-items: center; }
.world-ready .apps { padding-top: 30vh; }
.world-ready .contact-sec { min-height: 140vh; display: flex; align-items: center; }
.world-ready .voyage-end { height: 80vh; }
.world-ready main { cursor: default; }
.world-ready .site-footer { margin-top: 0; }
.voyage-end { height: 0; }

.world-hint { display: none; margin: 18px 0 0; font: 600 .9rem/1.3 var(--font-display); color: var(--ink-soft); }
.world-hint::before { content: "✦ "; color: var(--gold); }
.world-on .world-hint { display: block; }
.world-hint--dark { color: color-mix(in oklab, var(--on-deep) 80%, transparent); margin-top: 14px; }
.sky-night .hero__lema, .sky-night .hero .world-hint { color: var(--crema); }
.sky-night .hero__lema em { color: color-mix(in oklab, var(--vela) 40%, #fff); }
.sky-night .hero .btn--ghost { --b-fg: var(--crema); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--crema) 50%, transparent); }
.sky-night .hero .hero__word { color: var(--crema); }

.scroll-cue { display: none; }
.world-on .scroll-cue { display: block; position: absolute; left: 50%; bottom: 74px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid color-mix(in oklab, var(--ink) 55%, transparent); }
.world-on .scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 70%, transparent); }
.anim.world-on .scroll-cue span { animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.sky-night .scroll-cue { border-color: color-mix(in oklab, var(--crema) 60%, transparent); }
.sky-night .scroll-cue span { background: var(--crema); }

/* ---------- Tarjetas de papel sobre el mar ---------- */
.panel {
  position: relative; max-width: 640px;
  padding: clamp(20px, 3.4vw, 36px);
  border-radius: calc(var(--radius) + 6px);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  box-shadow: var(--shadow-lift);
}
.panel--wide { max-width: 760px; }
@supports (backdrop-filter: blur(1px)) {
  .panel { background: color-mix(in oklab, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.panel::before { /* textura de papel muy suave */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(0deg, color-mix(in oklab, var(--ink) 4%, transparent) 0 1px, transparent 1px 4px);
  -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%);
}
.panel .statement { margin-bottom: .5em; }
.section__head.panel { margin-bottom: 26px; }
.section__head.panel .lead { margin-bottom: 0; }
.apps .board, .apps .app-card { max-width: 860px; }
.apps .board { margin-bottom: 22px; }
.contact-sec .contact { margin-left: auto; max-width: 620px; grid-template-columns: 1fr; }
.contact-sec .contact .bottle, .contact-sec .contact .contact__sea { display: none; }
.world-ready .contact-sec .contact { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); background: color-mix(in oklab, var(--deep) 92%, transparent); }

/* ---------- Tablero de zarpes ---------- */
.board {
  --flap-w: clamp(13px, 1.55vw, 21px);
  position: relative; overflow: hidden;
  padding: 16px clamp(12px, 2vw, 22px) 12px; border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .05), transparent 30%),
    linear-gradient(160deg, #1b2733, #0d151d);
  color: #f3f0e6;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 0 0 6px #2b3a48, 0 0 0 7px #0b1218, var(--shadow-lift);
}
.board__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board__title { font: 600 .9rem/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.board__clock { display: inline-flex; gap: 2px; font: 600 .95rem/1 ui-monospace, Consolas, monospace; color: #f3f0e6; }
.board__table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board__table th { text-align: left; font: 600 .66rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: rgb(243 240 230 / .6); padding: 0 8px 4px 0; }
.board__table td { padding: 0 10px 0 0; white-space: nowrap; font: 600 1rem/1 ui-monospace, Consolas, monospace; }
.board__table a { color: inherit; text-decoration: none; display: inline-block; border-radius: 6px; }
.board__table a:hover .flap { background: linear-gradient(#3a4d5f 0 49%, #26343f 51%); }
.board__table tbody tr { cursor: default; }
.flaps { display: inline-flex; gap: 2px; }
.flap {
  position: relative; display: inline-grid; place-items: center;
  width: var(--flap-w); height: calc(var(--flap-w) * 1.45);
  border-radius: 3px;
  font: 700 calc(var(--flap-w) * .9)/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #f8f4e8;
  background: linear-gradient(#2c3b49 0 49%, #1d2832 51%);
  box-shadow: 0 1px 0 rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .08);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .65); }
.flap.tick { animation: flip .09s linear; }
@keyframes flip { 0% { transform: scaleY(1); filter: brightness(1); } 50% { transform: scaleY(.2); filter: brightness(.6); } 100% { transform: scaleY(1); filter: brightness(1); } }
.flap--sm { --flap-w: 13px; }
td.c3 .flap { color: var(--gold); }
.board__crawl { margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid rgb(255 255 255 / .08); overflow: hidden; white-space: nowrap; font: 600 .74rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: #ffcf6a; text-shadow: 0 0 6px rgb(255 190 80 / .55); }
.board__crawl span { display: inline-block; }
.anim .board__crawl span { animation: crawl 38s linear infinite; }
@keyframes crawl { to { transform: translateX(-33.33%); } }
@media (max-width: 699px) {
  .board { --flap-w: clamp(10px, 2.9vw, 14px); }
  .board__table .c1, .board__table .c2 { display: none; }
}

/* ---------- Sopa de letras de LetraQuest (versión jugable) ---------- */
.ws__score { display: none; justify-content: center; gap: 18px; margin: 12px 0 0; font: 600 .95rem/1 var(--font-display); color: #fff; }
.ws.is-game .ws__score { display: flex; }
.ws__score b { color: var(--gold); font-size: 1.15rem; }
.ws__combo { opacity: 0; transform: scale(.6); transition: transform .3s var(--spring), opacity .3s; }
.ws__combo.show { opacity: 1; transform: none; }
.ws.is-game .ws__grid { display: block; position: relative; aspect-ratio: 1; }
.ws.is-game .ws__cell { position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell); transition: transform .55s var(--spring), background-color .3s, opacity .3s; will-change: transform; }
.ws.is-game .ws__cell.gone { opacity: 0; transform: var(--pos) scale(.2) rotate(30deg) !important; transition: transform .35s ease-in, opacity .35s; }
.ws.is-game .ws__cell.cursor { box-shadow: 0 0 0 3px var(--gold), 0 6px 10px -6px rgb(0 0 0 / .5); }
.ws.is-game .ws__cell.anchor { background: #fff; box-shadow: 0 0 0 3px #8B5CF6; }
.ws.is-game .ws__cell.sel { scale: 1.08; background: #fff; }
.ws.is-game .ws__cell.found { background: color-mix(in oklab, var(--gold) 85%, #fff); }
.ws.is-game .ws__cell.pop { animation: pop2 .5s var(--spring); }
.ws.is-game .ws__cell.flipc { animation: flipc .3s ease-in-out; }
@keyframes pop2 { 40% { scale: 1.22; rotate: -5deg; } }
@keyframes flipc { 50% { scale: 1 .08; filter: brightness(1.4); } }
.ws__grid:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.ws__words li.lost { opacity: .45; text-decoration: line-through; }
.ws__words li.new { animation: chip-in .5s var(--spring); }
@keyframes chip-in { from { transform: scale(.4); opacity: 0; } }

/* ---------- Recorrido con el teléfono fijo (LetraQuest, escritorio) ---------- */
.tour__phone { display: none; }
@media (min-width: 1000px) {
  .js .tour { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
  .js .tour .features { display: block; }
  .js .tour .feat { position: relative; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 22px 0 22px 28px; background: none; box-shadow: none; transition: transform .6s var(--spring); }
  .js .tour .feat::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 0; border-radius: 3px; background: var(--accent); transform: translateY(-50%); transition: height .6s var(--spring); }
  .js .tour .feat.is-active::before { height: 60%; }
  .js .tour .feat:not(.is-active) h3 { color: var(--ink-soft); }
  .js .tour .feat.is-active h3 { color: var(--accent); }
  .js .tour .feat.is-active { transform: translateX(6px); }
  .js .tour .feat:hover { transform: none; box-shadow: none; }
  .js .tour .feat__art { display: none; }
  .js .tour .feat h3 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); padding: 0; }
  .js .tour .feat p { font-size: 1.15rem; padding: 0; max-width: 34ch; }
  .js .tour .feat .step-n { display: block; }
  .js .tour__phone { display: block; position: sticky; top: max(84px, calc(50vh - 300px)); }
  .tour__screens { position: absolute; inset: 0; }
  .tour__screen { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 10px; padding: 40px 16px 22px; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .55s var(--ease-out), transform .7s var(--spring); background: linear-gradient(170deg, var(--c1), var(--c2)); color: #fff; }
  .tour__screen.is-active { opacity: 1; transform: none; }
  .tour__screen .ts-top { display: flex; justify-content: space-between; font: 600 .78rem/1 var(--font-display); opacity: .9; }
  .tour__screen .ts-art { align-self: center; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 30px -18px rgb(0 0 0 / .6); background: rgb(255 255 255 / .08); }
  .tour__screen .ts-art svg { display: block; width: 100%; height: auto; }
  .tour__screen .ts-title { font: 600 1.35rem/1.15 var(--font-display); margin: 0; text-align: center; }
  .tour__dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
  .tour__dots { gap: 2px; }
  .tour__dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
  .tour__dots button::before { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: transform .3s var(--spring), background-color .3s; }
  .tour__dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.4); }
  .tour__phone .phone { width: 262px; margin: 0 auto; aspect-ratio: 9 / 19; }
  .tour__screen .ts-hud { display: flex; gap: 6px; justify-content: center; }
  .ts-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgb(0 0 0 / .22); font: 600 .72rem/1 var(--font-display); }
  .ts-pill i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  .ts-pill .coin { background: radial-gradient(circle at 35% 35%, #ffe7a0, #e8a93a); }
  .ts-pill .gem { border-radius: 2px; transform: rotate(45deg) scale(.8); background: linear-gradient(135deg, #9ff3ff, #3aa0e8); }
  .tour__screen .ts-art { transform: scale(1.12); }
  .ts-btn { justify-self: center; padding: 10px 34px; border-radius: 14px; font: 600 1rem/1 var(--font-display); color: #1B2430; background: linear-gradient(#ffe08a, var(--gold)); box-shadow: 0 4px 0 #c08b2c, 0 10px 18px -8px rgb(0 0 0 / .5); }
  .anim .tour__screen.is-active .ts-btn { animation: btn-breathe 2.4s var(--ease-in-out) infinite; }
  @keyframes btn-breathe { 50% { transform: scale(1.06); } }
}
.feat .step-n { display: none; font: 600 .8rem/1 var(--font-display); letter-spacing: .2em; color: var(--accent-strong); margin-bottom: 12px; padding: 0; }

/* ---------- Mapa de tus datos (privacidad de LetraQuest) ---------- */
.dmap { margin: 0 0 2.5em; padding: clamp(18px, 3vw, 28px); border-radius: calc(var(--radius) + 4px); background: var(--surface); box-shadow: var(--shadow); }
.dmap h2 { font-size: 1.4rem; margin: 0 0 .3em; }
.dmap > p { color: var(--ink-soft); margin: 0 0 1em; }
.dmap__stage { position: relative; aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 55%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%), var(--bg-tint); }
.dmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.dmap__lines path { fill: none; stroke: var(--line-strong); stroke-width: .5; stroke-dasharray: 1.2 1.6; }
.dmap__lines path.no { stroke: #c0392b; stroke-dasharray: .8 1.4; opacity: .7; }
.anim .dmap__lines path:not(.no) { animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11.2; } }
.dmap[data-active="admob"] .dmap__lines .l-admob, .dmap[data-hover="admob"] .dmap__lines .l-admob,
.dmap[data-active="play"] .dmap__lines .l-play, .dmap[data-hover="play"] .dmap__lines .l-play,
.dmap[data-active="juegos"] .dmap__lines .l-juegos, .dmap[data-hover="juegos"] .dmap__lines .l-juegos,
.dmap[data-active="copia"] .dmap__lines .l-copia, .dmap[data-hover="copia"] .dmap__lines .l-copia { stroke: var(--accent); stroke-width: 1; }
.dmap[data-active="zarpio"] .dmap__lines .l-zarpio { stroke-width: 1; opacity: 1; }
.dmap__node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 4px; width: clamp(84px, 16vw, 120px);
  padding: 8px 6px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font: 600 clamp(.66rem, .55rem + .4vw, .84rem)/1.15 var(--font-display); text-align: center;
  transition: transform .35s var(--spring), box-shadow .35s;
}
.dmap__node .i { width: 26px; height: 26px; color: var(--accent); }
.dmap__node:hover { transform: translate(-50%, -50%) scale(1.06); }
.dmap__node[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lift); }
.dmap__node--center { width: clamp(96px, 18vw, 140px); background: var(--deep); color: var(--on-deep); }
.dmap__node--center .i { color: var(--gold); width: 34px; height: 34px; }
.dmap__node--no .i { color: #c0392b; }
.dmap__info { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.dmap__info h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.dmap__info p { margin: 0; color: var(--ink-soft); }
.dmap__info + .dmap__info { margin-top: 8px; }
.dmap.is-live .dmap__info { animation: chip-in .45s var(--spring); }
.dmap__packet { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); pointer-events: none; }

/* ---------- Soporte: completar con el teléfono, salvavidas que gira ---------- */
.fill-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fill-msg { margin: 0; font-size: .9rem; color: var(--ink-soft); }
[data-spin] { cursor: grab; touch-action: none; pointer-events: auto; z-index: 1; }
[data-spin].is-grabbed { cursor: grabbing; }

/* ---------- Privacidad del sitio: huellas en la arena (canvas) ---------- */
.shore canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.shore.is-live svg { display: none; }
.shore-hint { display: none; text-align: center; margin: 8px 0 0; font: 600 .9rem/1.3 var(--font-display); color: var(--accent); }
.shore.is-live + figcaption .shore-hint, .shore-hint.show { display: block; }

/* ---------- 404 con niebla y faro ---------- */
.world-ready .lost .scene { display: none; }
.world-ready .lost .fog { display: none; }
.lost .world { position: absolute; inset: 0; margin: 0; height: auto; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #0b1a2a, #12324a 60%, #0d2236 60.2%, #08131f); }
.sky-night .lost, .world-ready .lost.sky-night { color: var(--crema); }
.lost.sky-night .lost__lang p, .lost.sky-night .big404 { color: var(--crema); }
.lost.sky-night .big404 { color: color-mix(in oklab, var(--vela) 40%, #fff); }
.lost.sky-night .btn--ghost { --b-fg: var(--crema); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--crema) 45%, transparent); }
.lost.sky-night .lost__lang + .lost__lang { border-color: color-mix(in oklab, var(--crema) 20%, transparent); }
.found-msg { margin: 0 0 18px; font: 600 1rem/1.3 var(--font-display); color: var(--gold); }


/* ==========================================================================
   Arte de LetraQuest (ilustraciones de la app)
   ========================================================================== */
/* La anfitriona junto a la sopa */
.ws-wrap { position: relative; }
.host { position: absolute; left: -132px; bottom: 4px; width: 150px; z-index: 2; pointer-events: none; }
.host__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 16px rgb(0 0 0 / .35)); transform-origin: 50% 100%; }
.anim .host__img { animation: host-idle 3.6s var(--ease-in-out) infinite; }
.anim .host.cheer .host__img { animation: host-cheer .75s var(--spring); }
@keyframes host-idle { 50% { transform: translateY(-4px) rotate(-1.5deg); } }
@keyframes host-cheer { 30% { transform: translateY(-28px) rotate(-7deg) scale(1.05); } 62% { transform: translateY(0) scaleY(.93); } }
.host__bubble {
  position: absolute; left: 58%; top: 0; padding: 8px 12px; border-radius: 14px 14px 14px 4px;
  background: #fff; color: var(--texto); font: 600 .92rem/1 var(--font-display); white-space: nowrap;
  box-shadow: 0 10px 20px -10px rgb(0 0 0 / .5);
  opacity: 0; transform: translateY(8px) scale(.8); transform-origin: 0 100%;
  transition: opacity .25s, transform .35s var(--spring);
}
.host.talk .host__bubble { opacity: 1; transform: none; }
@media (max-width: 1159px) { .host { left: -78px; width: 112px; } }
@media (max-width: 939px) {
  .host { left: auto; right: -6px; bottom: auto; top: -78px; width: 70px; }
  .host__bubble { left: auto; right: 86%; top: 6px; border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }
}

/* Composiciones: fondo real de la app + objeto */
.media { position: absolute; inset: 0; overflow: hidden; }
.media__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .28)); }
.media__objs { position: absolute; inset: 8% 0 6%; z-index: 1; display: grid; place-items: center; }
.media__objs > * { grid-area: 1 / 1; }
.obj { width: auto; height: 78%; max-width: 72%; object-fit: contain; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .45)); }
.obj--card { height: 66%; max-width: none; border-radius: 14px; border: 3px solid #fff; filter: none; box-shadow: 0 12px 18px -8px rgb(0 0 0 / .55); transition: transform .5s var(--spring); }
.obj--card.c0 { transform: translateX(-52%) rotate(-12deg); }
.obj--card.c1 { transform: translateY(-4%); z-index: 2; }
.obj--card.c2 { transform: translateX(52%) rotate(12deg); }
.feat:hover .obj--card.c0 { transform: translateX(-66%) rotate(-18deg); }
.feat:hover .obj--card.c2 { transform: translateX(66%) rotate(18deg); }
.feat:hover .obj--card.c1 { transform: translateY(-10%) scale(1.04); }
.obj--medal { height: 56%; }
.obj--medal.m1 { height: 74%; z-index: 2; }
.obj--medal.m2 { transform: translate(-64%, 10%) rotate(-10deg); }
.obj--medal.m3 { transform: translate(64%, 10%) rotate(10deg); }
.anim .obj--float { animation: obj-float 4s var(--ease-in-out) infinite; }
.anim .obj--wave { animation: obj-wave 2.6s var(--ease-in-out) infinite; transform-origin: 50% 100%; }
.anim .obj--medal.m1 { animation: obj-swing 3s var(--ease-in-out) infinite; transform-origin: 50% 0; }
@keyframes obj-float { 50% { transform: translateY(-8px); } }
@keyframes obj-wave { 50% { transform: rotate(-5deg); } }
@keyframes obj-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.feat__art .num { z-index: 3; }

/* Pantallas del teléfono: el fondo ocupa toda la pantalla */
@media (min-width: 1000px) {
  .tour__screen { grid-template-rows: auto auto 1fr auto; }
  .tour__screen > :not(.ts-art) { position: relative; z-index: 1; }
  .tour__screen .ts-art { position: absolute; inset: 0; z-index: 0; align-self: stretch; justify-self: stretch; border-radius: 0; box-shadow: none; background: none; transform: none; overflow: hidden; }
  .tour__screen .ts-art .media::after { background: linear-gradient(180deg, rgb(0 0 0 / .4), transparent 26%, transparent 52%, rgb(0 0 0 / .7)); }
  .tour__screen .ts-art .media__objs { inset: 22% 6% 34%; }
  .tour__screen .ts-title { align-self: end; text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
  .tour__screen.is-active .media__bg { animation: kenburns 9s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: none; } }

/* Franja de mundos del álbum */
.worlds { margin-top: clamp(28px, 4vw, 44px); overflow: hidden; }
.worlds__title { font-size: 1.05rem; margin: 0 0 14px; color: var(--ink-soft); text-align: center; }
.worlds__track { display: flex; flex-wrap: wrap; justify-content: center; padding: 8px 0 12px; }
.worlds ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.worlds ul[aria-hidden="true"] { display: none; }
.worlds li { display: grid; gap: 6px; justify-items: center; width: 112px; font: 600 .9rem/1.2 var(--font-display); text-align: center; }
.world__img { width: 112px; height: 112px; border-radius: 20px; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow); transition: transform .45s var(--spring); }
.worlds li:hover .world__img { transform: translateY(-6px) rotate(-3deg) scale(1.06); }
.anim .worlds { -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.anim .worlds__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: ticker 70s linear infinite; }
.anim .worlds ul { flex-wrap: nowrap; padding-right: 14px; }
.anim .worlds ul[aria-hidden="true"] { display: flex; }
.anim .worlds:hover .worlds__track { animation-play-state: paused; }

/* Impresión: solo el texto */
@media print {
  .site-header, .site-footer, .scene, .voyage, .motion-toggle, .toc, .hero-wave, .copy-btn, .search { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
