@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/m-plus-rounded-1c-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/m-plus-rounded-1c-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(assets/fonts/m-plus-rounded-1c-latin-800-normal.woff2) format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 900; font-display: swap;
  src: url(assets/fonts/m-plus-rounded-1c-latin-900-normal.woff2) format("woff2");
}

:root {
  --ink: #1d3148;
  --ink-mid: #34506e;
  --ink-soft: #4b5d73;
  --link: #0a64d8;
  --link-hover: #0a3fb8;
  --line: #e1e7ee;
  --line-strong: #dbe2ea;
  --paper: #f4f6f9;
  /* Gravedad (brief) y acento del logo */
  --grav-low: linear-gradient(160deg, #00ffd8, #001cbf);
  --grav-high: linear-gradient(160deg, #ff7200, #bf8f00);
  --logo-magenta: #f072c4;
  --logo-violet: #8f6ef2;
  --stripes: repeating-linear-gradient(180deg, #f7f8fb 0 3px, #edf0f4 3px 4px);
  --card-bg: linear-gradient(180deg, #ffffff, #f6f8fb);
  --card-shadow: inset 0 1px 0 #fff, 0 18px 40px rgba(20, 50, 100, .1), 0 2px 6px rgba(20, 50, 100, .05);
  /* Radios: hoja > panel > marco > control, más la píldora */
  --r-sheet: 48px;
  --r-panel: 34px;
  --r-frame: 24px;
  --r-control: 15px;
  --bounce: cubic-bezier(.34, 1.9, .5, 1);
  --font: "M PLUS Rounded 1c", system-ui, sans-serif;
  --page: min(1120px, 100% - 2 * clamp(16px, 5vw, 40px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--stripes), var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: .18em; }
::selection { background: #bdf6ff; color: var(--ink); }
input { caret-color: var(--link); }
a:hover { color: var(--link-hover); }
p { margin: 0; }
img, video { display: block; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
input::placeholder { color: #5f7089; }

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

/* Cielo de Dracoco con mar y arena encima; se ve donde todavía falta un asset */
.sky {
  --sun: 80% 18%;
  --horizon: 52%;
  --sky-pos: center top;
  background:
    radial-gradient(circle at var(--sun), #fff 0 2.5%, rgba(255, 248, 220, .55) 6%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0 var(--horizon),
      #0b3fae var(--horizon),
      #0d6fd0 calc(var(--horizon) + 7%),
      #14b4d8 calc(var(--horizon) + 15%),
      #5ae6dc calc(var(--horizon) + 22%),
      #c9f7ec calc(var(--horizon) + 25%),
      #fbf6ea calc(var(--horizon) + 27%),
      #efe4c9 100%),
    url(assets/sky.jpg) var(--sky-pos) / cover no-repeat,
    linear-gradient(180deg, #1650c8 0%, #2f7fe6 30%, #8ccbff var(--horizon)),
    #1e6fe0;
}
.sky--left { --sun: 22% 20%; --horizon: 46%; --sky-pos: left top; }
.sky--mid { --sun: 60% 12%; --horizon: 54%; --sky-pos: right top; }
.sky--hero { --sun: 80% 16%; --horizon: 58%; }
/* En móvil el texto baja más: el mar empieza debajo del CTA */
@media (max-width: 480px) { .sky--hero { --horizon: 68%; } .world-stripes { top: 68%; } }

.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.memory {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(10, 40, 100, .22) 100%);
}

/* Etiquetas de archivo: solo visibles al probar (file://, localhost, *.pages.dev o ?dev) */
.slot-label { display: none; }
html.dev .slot-label {
  display: inline-block;
  position: absolute; left: 12px; bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: .75rem; color: var(--ink-soft);
}

/* Botones de sistema */
.sysbar {
  position: fixed; z-index: 10;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: flex; gap: 6px; padding: 6px;
  border-radius: 22px;
  background: rgba(250, 251, 253, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid #fff;
  box-shadow: 0 8px 22px rgba(20, 50, 100, .16);
}
.sysbtn {
  position: relative; overflow: hidden;
  min-width: 48px; height: 44px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: var(--r-control); cursor: pointer;
  font: 800 .95rem/1 var(--font); color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #dde4ee);
  box-shadow: inset 0 -3px 0 rgba(20, 50, 100, .1), 0 0 0 1px #d5dce6;
  transition: transform .4s var(--bounce);
}
.sysbtn:hover { background: linear-gradient(180deg, #ffffff, #cfe9ff); }
.sysbtn:active { transform: scale(.9); transition: transform .08s; }
.sysbtn--sound { background: linear-gradient(160deg, #c9d2de, #8d9bb0); box-shadow: inset 0 -3px 0 rgba(20, 50, 100, .14), 0 0 0 1px rgba(20, 50, 100, .12); }
.sysbtn--sound:hover { background: linear-gradient(160deg, #b9c4d3, #7d8ca3); }
.sysbtn--sound[aria-pressed="true"] { background: linear-gradient(160deg, #5fe8ff, #0a6cff); }
.sysbtn > * { position: relative; }

/* Switch de idioma: canal hundido, perilla blanca sobre el idioma activo, el otro en gris */
.lang-switch {
  grid-template-columns: 1fr 1fr; padding: 4px;
  background: linear-gradient(180deg, #d3dbe6, #e6ebf2);
  box-shadow: inset 0 2px 4px rgba(20, 50, 100, .18), 0 0 0 1px #d5dce6;
}
.lang-switch:hover { background: linear-gradient(180deg, #cbd9ea, #e1ebf6); }
.lang-switch .lang-knob {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: calc(var(--r-control) - 4px);
  background: linear-gradient(180deg, #ffffff 45%, #eef2f7);
  box-shadow: 0 1px 3px rgba(20, 50, 100, .28), inset 0 -2px 0 rgba(20, 50, 100, .08);
  transition: transform .35s var(--bounce);
}
.lang-switch[data-lang="es"] .lang-knob { transform: translateX(100%); }
.lang-opt { min-width: 36px; height: 100%; display: grid; place-items: center; color: #5f6d7f; transition: color .2s; }
.lang-switch[data-lang="en"] [data-opt="en"],
.lang-switch[data-lang="es"] [data-opt="es"] { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lang-switch .lang-knob { transition: none; } }

.gloss {
  position: absolute; left: 5px; right: 5px; top: 2px; height: 45%;
  border-radius: 12px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 96px clamp(16px, 5vw, 40px) 150px;
}
.world {
  position: absolute; inset: -10%; z-index: -2;
  transform-origin: 50% 55%;
  will-change: transform;
}
.world-base { position: absolute; inset: 0; }
.world-stripes {
  position: absolute; left: 0; right: 0; top: 58%; height: 26%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 6px, rgba(255, 255, 255, .16) 6px 7px);
}
.world .slot-label { left: 12%; bottom: 12%; }
.veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 48%, rgba(246, 248, 252, .86), rgba(246, 248, 252, .4) 62%, rgba(246, 248, 252, 0) 86%);
}
.hero-content { max-width: 44rem; display: grid; justify-items: center; }
.title { margin: 0 0 .3rem; line-height: 1; }
.logo { width: min(82vw, 520px); height: auto; filter: drop-shadow(0 10px 24px rgba(20, 50, 100, .2)); }
.wordmark { display: none; }
.title.no-logo .logo { display: none; }
.title.no-logo .wordmark {
  display: block;
  font-size: clamp(3.2rem, 11vw, 6.8rem); font-weight: 900; letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 0%, #e3f4ff 44%, #6fb8ff 50%, #1467d8 78%, #0a3fae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #0a3fae;
  filter: drop-shadow(0 4px 0 rgba(10, 63, 174, .25)) drop-shadow(0 12px 22px rgba(10, 63, 174, .25));
}
.tagline {
  margin-top: .6rem; max-width: 36rem;
  font-size: clamp(1.45rem, 3.4vw, 2.3rem); font-weight: 800;
  line-height: 1.22; letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .7), 0 0 26px rgba(255, 255, 255, .95);
}
/* Texto chico sobre el mundo: va en vidrio, así se lee sobre cualquier keyart o video */
/* Placa de vidrio sin borde ni sombra: se lee como leyenda, no como botón */
.platform {
  margin-top: 1rem; max-width: 30rem; padding: .4em .9em;
  border-radius: 14px; text-wrap: balance;
  font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink);
  background: rgba(246, 248, 252, .62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Botón principal: la bola, lo único saturado */
.cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 62px; padding: 0 2.4em;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.2rem/1 var(--font); color: #fff; text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 40, 120, .5);
  background: linear-gradient(180deg, #1c9bef 0%, #0a6ad6 52%, #0652bd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -5px 12px rgba(0, 40, 140, .3),
    0 0 0 1px rgba(0, 70, 170, .35),
    0 12px 28px rgba(10, 110, 230, .35);
  transition: transform .4s var(--bounce), filter .2s;
}
.cta:hover { color: #fff; filter: brightness(1.08) saturate(1.1); }
.cta:active { transform: scale(.94); transition: transform .08s; }
.cta .gloss { left: 8%; right: 8%; top: 3px; height: 40%; max-height: 26px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
.cta > span:not(.gloss) { position: relative; }
.hero .cta { margin-top: 2rem; max-width: 100%; text-align: center; }
/* Traducciones largas (wishlist en ES) caben en dos líneas sin aplastarse */
.cta > span:not(.gloss) { line-height: 1.15; padding-block: .55em; text-wrap: balance; }
.cta-secondary {
  position: relative; overflow: hidden;
  margin-top: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.2em;
  border-radius: 999px;
  font: 800 .95rem/1.2 var(--font); color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #e3e9f1);
  box-shadow: inset 0 -3px 0 rgba(20, 50, 100, .08), 0 0 0 1px #d5dce6, 0 6px 14px rgba(20, 50, 100, .1);
  transition: transform .4s var(--bounce);
}
.cta-secondary:hover { color: var(--ink); background: linear-gradient(180deg, #ffffff, #cfe9ff); }
.cta-secondary:active { transform: scale(.94); transition: transform .08s; }
@media (max-width: 480px) {
  .hero .cta { padding: 0 1.4em; font-size: 1.1rem; }
}

/* Hoja principal que sube sobre el hero */
.sheet {
  position: relative; margin-top: -72px;
  padding: clamp(48px, 7vw, 80px) 0 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--stripes);
  box-shadow: 0 -1px 0 #fff, 0 -14px 34px rgba(10, 40, 90, .14);
}
.section { width: var(--page); margin-inline: auto; }
.sheet > .section + .section { margin-top: clamp(72px, 12vw, 140px); }

.card {
  padding: 12px; border-radius: var(--r-panel);
  background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-frame);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.card-text { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* Menú de modos: tiles a la izquierda, pantalla a la derecha. Sin JS, paneles apilados. */
.menu { display: grid; gap: clamp(16px, 2.6vw, 28px); }
.menu-tiles { display: none; }
.menu-panel + .menu-panel { margin-top: 28px; }
.menu-panel-body { display: grid; gap: 12px; padding: 18px 14px 10px; }
.menu-panel-body h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.menu-panel-body .card-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-mid); max-width: 40rem; }

html.js .menu { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); align-items: center; }
html.js .menu-tiles { display: grid; gap: 12px; }
html.js .menu-screen { display: grid; }
html.js .menu-panel { grid-area: 1 / 1; margin: 0; transition: opacity .25s ease-out, visibility 0s; }
html.js .menu-panel[data-active="false"] { opacity: 0; visibility: hidden; transition: opacity .2s ease-out, visibility 0s .2s; }
html.js .menu-panel-body h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-panel:focus-visible { outline-offset: -3px; border-radius: var(--r-frame); }

.menu-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  min-height: 80px; padding: 12px 44px 12px 12px;
  border: 0; border-radius: var(--r-frame); cursor: pointer; text-align: left;
  font: 900 1.15rem/1.2 var(--font); color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #e6ebf2);
  box-shadow: inset 0 -4px 0 rgba(20, 50, 100, .08), 0 0 0 1px #d5dce6, 0 8px 18px rgba(20, 50, 100, .08);
  transition: transform .4s var(--bounce), box-shadow .2s;
}
.menu-tile > * { position: relative; }
.menu-tile .gloss { position: absolute; left: 10px; right: 10px; top: 3px; height: 42%; border-radius: 18px; }
.menu-tile:hover { background: linear-gradient(180deg, #ffffff, #cfe9ff); }
.menu-tile:active { transform: scale(.95); transition: transform .08s; }
.menu-tile-label { text-wrap: balance; }
/* El cursor de selección es una canica */
.menu-tile::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 22%, #d9f2ff 45%, #7cc4f0 100%);
  box-shadow: 0 3px 6px rgba(10, 60, 140, .35), inset 0 -2px 3px rgba(10, 60, 140, .25);
  transform: scale(0); transition: transform .4s var(--bounce);
}
.menu-tile[aria-selected="true"] {
  background: #fff;
  box-shadow: inset 0 -4px 0 rgba(20, 50, 100, .06), 0 0 0 3px #5fd0ff, 0 12px 26px rgba(10, 100, 230, .18);
}
.menu-tile[aria-selected="true"]::after { transform: scale(1); }

@media (max-width: 760px) {
  html.js .menu { grid-template-columns: minmax(0, 1fr); }
  html.js .menu-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .menu-tile { flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 12px 6px 30px; text-align: center; font-size: .88rem; }
  .menu-tile::after { right: auto; left: 50%; top: auto; bottom: 9px; margin: 0 0 0 -8px; width: 16px; height: 16px; }
}

/* Íconos: al pasar sobre su tarjeta, el degradado cambia */
.icon {
  flex: none; width: 52px; height: 52px; border-radius: 17px;
  display: grid; place-items: center;
  transition: background .3s;
}
.icon--xl { width: 64px; height: 64px; border-radius: 21px; margin: 0 auto 18px; }
.icon--tilt { background: linear-gradient(160deg, #5fe8ff, #0a6cff); box-shadow: 0 6px 14px rgba(10, 100, 230, .25); }
.icon--gravity { background: var(--grav-high); box-shadow: 0 6px 14px rgba(230, 110, 0, .25); }
.icon--secret { background: linear-gradient(160deg, var(--logo-magenta), var(--logo-violet)); box-shadow: 0 6px 14px rgba(143, 110, 242, .3); }
.icon--photo { background: linear-gradient(160deg, #6fd8ff, #1e6fe0); box-shadow: 0 6px 14px rgba(30, 111, 224, .25); }
.icon--mail { background: linear-gradient(160deg, #3cc8ff, #0655c4); box-shadow: 0 8px 18px rgba(10, 100, 230, .28); }
.menu-tile:hover .icon--tilt, .section-head:hover .icon--photo, .notify-panel:hover .icon--mail { background: var(--grav-low); }
.menu-tile:hover .icon--gravity { background: linear-gradient(160deg, #ffa24a, #ff7200); }
.menu-tile:hover .icon--secret { background: linear-gradient(160deg, #ffa3dc, #b05ae6); }

.states { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.state {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .35em .9em .35em .45em; border-radius: 999px;
  font-size: .92rem; font-weight: 800;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(20, 50, 100, .06);
}
.state::before { content: ""; width: 1.3em; height: 1.3em; border-radius: 50%; }
.state--low::before { background: var(--grav-low); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .6); }
.state--normal::before { background: #fff; box-shadow: inset 0 -2px 3px rgba(20, 50, 100, .18), 0 0 0 1px #cfd7e2; }
.state--high::before { background: var(--grav-high); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .5); }

/* Speed y Zen en la tipografía */
.paths-line { display: grid; gap: .15em; font-size: clamp(1.8rem, 6.4vw, 4.8rem); line-height: 1.08; }
.rush { justify-self: start; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
/* El destello de cuatro puntas del logo separa las dos formas de jugar */
.paths-spark { justify-self: center; width: clamp(28px, 4vw, 44px); height: auto; margin-block: .1em; filter: drop-shadow(0 4px 8px rgba(143, 110, 242, .35)); }
.wander { justify-self: end; text-align: right; font-weight: 400; letter-spacing: .05em; color: var(--ink-soft); }

/* Postales */
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-link { margin: 0 0 0 auto; gap: .5em; }
@media (max-width: 760px) { .section-link { margin-left: 0; } }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shots > li:first-child { grid-column: span 2; grid-row: span 2; }
.shots > li:first-child .shot { height: 100%; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shots > li:first-child { grid-row: auto; }
  .shot { border-width: 4px; border-radius: 18px; }
}
.shot {
  position: relative; overflow: hidden; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0;
  border: 6px solid #fff; border-radius: var(--r-frame); cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px rgba(20, 50, 100, .14);
  transition: transform .4s var(--bounce);
}
.shot:hover { transform: translateY(-3px); }
.shot:active { transform: scale(.95); transition: transform .08s; }

/* Correo */
.notify { text-align: center; }
.notify-panel {
  max-width: 44rem; margin-inline: auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, #ffffff, #f3f6fa); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(20, 50, 100, .14);
}
.notify-panel h2 { margin: 0 0 .5em; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; line-height: 1.15; }
.notify-copy { max-width: 36rem; margin-inline: auto; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); text-wrap: balance; }
.notify-form { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 12px; }
.notify-form input {
  flex: 1 1 260px; min-width: 0; min-height: 62px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: #eef2f7; color: var(--ink);
  font: 500 1.05rem var(--font);
  box-shadow: inset 0 2px 5px rgba(20, 50, 100, .12);
}
.notify-form .cta { flex: 1 1 auto; font-size: 1.15rem; padding: 0 2.2em; }
.fine { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.fine a { display: inline-block; padding-block: .6em; margin-block: -.6em; }
.form-status { margin-top: .8rem; font-weight: 800; }
.form-status:empty { display: none; }

/* Footer */
.footer {
  width: var(--page);
  margin: clamp(72px, 12vw, 140px) auto 0;
  padding: 36px 0 max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  display: grid; gap: 18px;
  font-size: .95rem; color: var(--ink-soft);
}
.footer-logo { width: 150px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 6px 14px rgba(20, 50, 100, .16)); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em;
  border-radius: var(--r-control);
  background: linear-gradient(180deg, #fff, #e6ebf2);
  box-shadow: inset 0 -3px 0 rgba(20, 50, 100, .08), 0 0 0 1px #d5dce6;
  color: var(--ink); font-weight: 800; text-decoration: none;
  transition: transform .4s var(--bounce);
}
.footer-links a:active { transform: scale(.93); transition: transform .08s; }
.footer-links .footer-icon { width: 44px; padding: 0; justify-content: center; }
.footer-links .footer-icon:hover { background: linear-gradient(180deg, #ffffff, #cfe9ff); }
.footer-icon svg { width: 20px; height: 20px; fill: currentColor; }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: .88rem; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer > p:not(.legal) { max-width: 65ch; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 30, 70, .62); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 82vh; border: 6px solid #fff; border-radius: var(--r-frame); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.lightbox .sysbtn { display: flex; margin: 14px auto 0; padding: 0 1.3em; }

/* Aviso de privacidad */
.doc { width: min(760px, 100% - 2 * clamp(16px, 5vw, 40px)); margin: 0 auto; padding: 96px 0 64px; }
.doc-panel { padding: clamp(24px, 5vw, 48px); border-radius: var(--r-panel); background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.doc-panel + .doc-panel { margin-top: 32px; }
.doc h1 { margin: 0 0 .3em; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; line-height: 1.15; }
.doc h2 { margin: 1.6em 0 .4em; font-size: 1.15rem; font-weight: 800; }
.doc p, .doc li { font-size: 1rem; line-height: 1.7; color: var(--ink-mid); }
.doc p + p { margin-top: .8em; }
.doc ul { padding-left: 1.2em; margin: .4em 0 0; }
.doc-meta { color: var(--ink-soft); font-size: .9rem; }
.doc-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 800; }
.doc p + .doc-back { margin: 1em 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
