/* ============================================================
   Myland — landing pública · «Amanecer atlántico»
   Mismo lenguaje que el panel de inicio del eco-game: noche azul que clarea,
   cristal oscuro, oro cálido, acción esmeralda con canto y paisaje plano por capas.
   ============================================================ */

@font-face {
  font-family: "Fjalla One";
  src: url("/myland/assets/fonts/FjallaOne-Regular.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/myland/assets/fonts/Roboto-Regular.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/myland/assets/fonts/Roboto-Medium.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/myland/assets/fonts/Roboto-Bold.subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ── Paletas de bioma (las mismas del juego) ──
   Colores registrados: al cambiar data-biome se interpolan en el contenedor y todo lo que los usa
   (cielo, capas del SVG, miniaturas) funde a la vez, sin transiciones por elemento. */
@property --scene-sky-top { syntax: "<color>"; inherits: true; initial-value: #0b3447; }
@property --scene-sky-mid { syntax: "<color>"; inherits: true; initial-value: #1b5f78; }
@property --scene-sky-low { syntax: "<color>"; inherits: true; initial-value: #f2b27e; }
@property --scene-cloud { syntax: "<color>"; inherits: true; initial-value: #ffd9b3; }
@property --scene-sun { syntax: "<color>"; inherits: true; initial-value: #f7bd3a; }
@property --scene-far { syntax: "<color>"; inherits: true; initial-value: #3d6f8e; }
@property --scene-water { syntax: "<color>"; inherits: true; initial-value: #1a86b8; }
@property --scene-water-hi { syntax: "<color>"; inherits: true; initial-value: #86d6f5; }
@property --scene-mid { syntax: "<color>"; inherits: true; initial-value: #23945f; }
@property --scene-near { syntax: "<color>"; inherits: true; initial-value: #136b4b; }
@property --scene-accent { syntax: "<color>"; inherits: true; initial-value: #0d4d37; }

[data-biome="nuevo"] {
  --scene-sky-top: #0b3447; --scene-sky-mid: #1b5f78; --scene-sky-low: #f2b27e; --scene-cloud: #ffd9b3;
  --scene-sun: #f7bd3a; --scene-far: #3d6f8e; --scene-water: #1a86b8; --scene-water-hi: #86d6f5;
  --scene-mid: #23945f; --scene-near: #136b4b; --scene-accent: #0d4d37;
}

[data-biome="bosque"] {
  --scene-sky-top: #0b3447; --scene-sky-mid: #1c5c5a; --scene-sky-low: #efc27a; --scene-cloud: #fde2b0;
  --scene-sun: #f9c846; --scene-far: #3f7768; --scene-water: #3a8a86; --scene-water-hi: #a4dccd;
  --scene-mid: #2b8a52; --scene-near: #17643f; --scene-accent: #0c4730;
}

[data-biome="desierto"] {
  --scene-sky-top: #1b2346; --scene-sky-mid: #6e3a58; --scene-sky-low: #f7a85e; --scene-cloud: #ffc79a;
  --scene-sun: #ffd166; --scene-far: #a65a45; --scene-water: #d99257; --scene-water-hi: #f7cb95;
  --scene-mid: #e0a15f; --scene-near: #bf7a44; --scene-accent: #6b3a24;
}

[data-biome="montana"] {
  --scene-sky-top: #0d2a48; --scene-sky-mid: #35577f; --scene-sky-low: #f1b9a4; --scene-cloud: #ffe1d6;
  --scene-sun: #f9d27a; --scene-far: #577a9f; --scene-water: #dce7f1; --scene-water-hi: #ffffff;
  --scene-mid: #3b6e6a; --scene-near: #244f52; --scene-accent: #173a3d;
}

[data-biome="playa"] {
  --scene-sky-top: #0b3447; --scene-sky-mid: #13698c; --scene-sky-low: #ffc78c; --scene-cloud: #ffe0ba;
  --scene-sun: #f8b93a; --scene-far: #2f7890; --scene-water: #0e8fca; --scene-water-hi: #8be0fb;
  --scene-mid: #e6c486; --scene-near: #1c7a57; --scene-accent: #135040;
}

[data-biome="rio"] {
  --scene-sky-top: #0b3447; --scene-sky-mid: #1a6470; --scene-sky-low: #f3c08a; --scene-cloud: #ffdcb5;
  --scene-sun: #f7c33e; --scene-far: #3e7f7e; --scene-water: #2aa6d9; --scene-water-hi: #9ae3f8;
  --scene-mid: #2e9460; --scene-near: #186b49; --scene-accent: #0e4b33;
}

:root {
  --navy: #0b3447;
  --navy-deep: #082836;
  --navy-night: #082b3b;
  --navy-abyss: #051c26;
  --sky: #1b5f78;
  --surface: rgb(255 255 255 / 5.5%);
  --surface-strong: rgb(255 255 255 / 9%);
  --line: rgb(255 255 255 / 10%);
  --line-strong: rgb(255 255 255 / 18%);
  --chip: rgb(5 24 33 / 42%);
  --chip-line: rgb(255 255 255 / 16%);
  --text: #f3f8f7;
  --text-2: #b8cdd4;
  --text-3: #8fb0bb;
  --gold: #f5c542;
  --gold-soft: #f7d57a;
  --emerald: #2ec37e;
  --emerald-edge: #0a4a44;
  --teal: #4fd1e4;
  --paper: #f4efe4;
  --paper-line: #ddd3bf;
  --paper-ink: #0b3447;
  --paper-text: #2b4a55;
  --paper-gold: #8a5c00;
  --focus: var(--gold-soft);
  --gutter: 32px;
  --shell: min(1200px, 100% - 2 * var(--gutter));
  --header-height: 72px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 2px 6px rgb(3 20 28 / 30%), 0 22px 48px rgb(3 20 28 / 45%);
  --scene-fade: 2.4s ease-in-out;
  --section-space: clamp(80px, 6vw + 48px, 136px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--navy);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

picture {
  display: block;
}

/* Recorte horizontal por sección: sombras y tarjetas giradas no ensanchan la página en móvil.
   clip (no hidden) no crea contenedor de scroll y mantiene el sticky del atlas. */
main > section {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

p,
h1,
h2,
h3,
ol,
ul {
  margin-top: 0;
}

/* El navegador añade margin: 1em 40px a figure: provocaba scroll horizontal en móvil. */
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Antetítulo: oro suave con barrita ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  flex-shrink: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.eyebrow--ink {
  color: var(--paper-gold);
}

/* ── Titulares ── */
h1,
h2,
h3 {
  font-family: "Fjalla One", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.25rem);
  /* Las mayúsculas acentuadas (MÁS, TÚ, ESTÁ) chocaban con la línea anterior por debajo de 1. */
  line-height: 1.06;
  letter-spacing: 0.005em;
}

h1 em,
h2 em {
  color: var(--gold);
  font-style: normal;
}

/* ── Moneda dorada: contenedor del icono de las acciones principales ── */
.coin {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe28a, var(--gold) 58%, #e0a321);
  color: var(--navy);
  font-size: 20px;
  box-shadow: 0 0 0 4px rgb(245 197 66 / 20%), inset 0 -2px 0 rgb(160 110 10 / 35%);
  transition: transform 220ms var(--ease-out);
}

.coin .icon {
  stroke-width: 2.2;
}

.coin--sm {
  width: 26px;
  height: 26px;
  font-size: 14px;
  box-shadow: 0 0 0 3px rgb(245 197 66 / 16%), inset 0 -1.5px 0 rgb(160 110 10 / 35%);
}

/* ── Botón de juego esmeralda con canto: se hunde al pulsar ── */
.btn-start {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-lg);
  /* Degradado del botón de juego con el arranque un punto más oscuro: el blanco pasa AA (≥ 4,9:1)
     también en el borde claro. */
  background: linear-gradient(120deg, #158056 0%, #137450 48%, #0d5f58 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 4px 0 var(--emerald-edge),
    0 14px 28px rgb(3 20 28 / 45%);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn-start:focus-visible {
  outline-offset: 5px;
}

.btn-start__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.btn-start__action {
  font-family: "Fjalla One", sans-serif;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

.btn-start__note {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.btn-start__chevron {
  font-size: 22px;
  color: rgb(255 255 255 / 80%);
  transition: transform 220ms var(--ease-out);
}

.btn-start:hover .coin {
  transform: scale(1.06);
}

.btn-start:hover .btn-start__chevron {
  transform: translateX(3px);
}

.btn-start:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 1px 0 var(--emerald-edge),
    0 8px 18px rgb(3 20 28 / 40%);
}

/* El JS cambia el icono a flecha externa cuando apunta a la tienda del dispositivo. */
[data-store-cta-icon] .icon--external,
[data-store-cta-icon][data-icon="external"] .icon--download {
  display: none;
}

[data-store-cta-icon][data-icon="external"] .icon--external {
  display: block;
}

/* ── Botón de cristal ── */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 22px;
  border: 1px solid var(--chip-line);
  border-radius: var(--radius-md);
  /* Cristal oscuro: en el hero puede quedar sobre la cumbre clara de la montaña (AA). */
  background: rgb(5 24 33 / 50%);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 200ms ease, border-color 200ms ease, transform 140ms ease;
}

.btn-glass .icon {
  font-size: 18px;
  color: var(--gold-soft);
  transition: transform 220ms var(--ease-out);
}

.btn-glass:hover {
  border-color: rgb(247 213 122 / 55%);
  background: rgb(5 24 33 / 72%);
}

.btn-glass:hover .icon {
  transform: translate(2px, -2px);
}

.btn-glass:active {
  transform: translateY(1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(247 213 122 / 45%);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 200ms ease, gap 220ms var(--ease-out);
}

.text-link:hover {
  gap: 14px;
  text-decoration-color: var(--gold-soft);
}

/* Icono en azulejo con el tono de cada pilar (feature-list del panel de inicio). */
.tone-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--tone) 15%, transparent);
  color: var(--tone);
  font-size: 21px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
}

.tone-icon--round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
}

/* ── Cabecera: barra de utilidades de la app ── */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
.site-header:focus-within,
.nav-open .site-header {
  border-color: var(--line);
  background: rgb(8 40 54 / 96%);
  box-shadow: 0 12px 32px rgb(3 20 28 / 32%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-family: "Fjalla One", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.brand img {
  width: 30px;
  height: 35px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav > a:not(.site-nav__cta) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background-color 200ms ease, color 200ms ease;
}

.site-nav > a:not(.site-nav__cta):hover {
  background: rgb(255 255 255 / 7%);
  color: var(--text);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-left: 12px;
  padding: 0 16px 0 9px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: rgb(5 24 33 / 55%);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.site-nav__cta:hover {
  border-color: rgb(245 197 66 / 55%);
  background: rgb(5 24 33 / 80%);
}

.site-nav__cta:hover .coin {
  transform: rotate(-12deg) scale(1.06);
}

.nav-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--chip-line);
  border-radius: 50%;
  background: rgb(5 24 33 / 55%);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO — el escenario del panel de inicio a tamaño web
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  transition:
    --scene-sky-top var(--scene-fade), --scene-sky-mid var(--scene-fade), --scene-sky-low var(--scene-fade),
    --scene-cloud var(--scene-fade), --scene-sun var(--scene-fade), --scene-far var(--scene-fade),
    --scene-water var(--scene-fade), --scene-water-hi var(--scene-fade), --scene-mid var(--scene-fade),
    --scene-near var(--scene-fade), --scene-accent var(--scene-fade);
}

.hero__stage {
  /* Geometría compartida por el paisaje y las tarjetas (ver media queries).
     --scene-s es la escala del dibujo: píxeles por unidad del viewBox (332 × 230). */
  --shell-w: min(1200px, 100cqw - 2 * var(--gutter));
  --scene-h: 300px;
  --scene-w: min(max(100cqw, var(--scene-h) * 1.4435), 110cqw);
  --scene-s: min(var(--scene-w) / 332, var(--scene-h) / 230);
  --scene-shift: 0px;
  --plant: calc(var(--scene-s) * 24);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(var(--scene-sky-top) 12%, var(--scene-sky-mid));
}

/* Últimas estrellas en lo alto del cielo */
.hero__stage::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 46%;
  background:
    radial-gradient(1.4px 1.4px at 8% 22%, rgb(255 255 255 / 70%), transparent 70%),
    radial-gradient(1.2px 1.2px at 19% 48%, rgb(255 255 255 / 50%), transparent 70%),
    radial-gradient(1.6px 1.6px at 33% 16%, rgb(255 255 255 / 60%), transparent 70%),
    radial-gradient(1.2px 1.2px at 47% 38%, rgb(255 255 255 / 45%), transparent 70%),
    radial-gradient(1.5px 1.5px at 58% 13%, rgb(255 255 255 / 65%), transparent 70%),
    radial-gradient(1.2px 1.2px at 71% 30%, rgb(255 255 255 / 50%), transparent 70%),
    radial-gradient(1.6px 1.6px at 83% 18%, rgb(255 255 255 / 60%), transparent 70%),
    radial-gradient(1.2px 1.2px at 93% 42%, rgb(255 255 255 / 45%), transparent 70%);
  content: "";
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  pointer-events: none;
}

.hero__scene {
  position: absolute;
  z-index: 0;
  bottom: -1px;
  left: calc(50% + var(--scene-shift));
  width: calc(var(--scene-w) + 2px);
  max-width: none;
  height: calc(var(--scene-h) + 1px);
  translate: -50% 0;
  pointer-events: none;
}

.hero__scene--front {
  z-index: 3;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__copy {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 14px rgb(5 24 33 / 40%);
  animation: sheetRise 0.8s var(--ease-out) both;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(2.6rem, 1.6rem + 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
}

.hero__lede {
  max-width: 34ch;
  margin-bottom: 28px;
  color: rgb(243 248 247 / 90%);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  text-shadow: none;
}

.hero__actions .btn-start {
  min-width: min(100%, 318px);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 22px 0 0;
  padding: 4px 14px 4px 7px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  /* Más opaco que el chip de la app: puede quedar sobre el agua clara de la montaña. */
  background: rgb(5 24 33 / 60%);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: none;
}

/* Medio sol sobre medio terreno: el bioma en un punto. */
.hero-chip__dot,
.biome-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(var(--scene-sun) 0 48%, var(--scene-mid) 48%);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 50%);
}

.hero__visual {
  position: relative;
  z-index: 1;
  animation: stageFade 1s ease 0.15s both;
}

.hero-card {
  position: absolute;
  width: var(--card-w);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* Mientras se decodifica la creatividad: un cielo tenue en lugar de una losa plana */
  background: linear-gradient(170deg, var(--scene-sky-mid), var(--navy-deep) 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), var(--shadow-card);
}

.hero-card picture,
.hero-card img {
  width: 100%;
  height: 100%;
}

.hero-card img {
  object-fit: cover;
}

/* El borde claro por encima de la imagen */
.hero-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
  content: "";
  pointer-events: none;
}

.hero-card--front {
  --card-w: var(--front-w);

  z-index: 2;
  bottom: var(--plant);
  left: var(--front-left);
  rotate: 3deg;
}

.hero-card--back {
  --card-w: calc(var(--front-w) * 0.84);

  z-index: 1;
  bottom: calc(var(--plant) + 2px);
  left: var(--back-left);
  rotate: -6deg;
}

/* Sello postal: borde dentado de papel, interior con el degradado turquesa del sello de Upload */
.hero-stamp {
  position: absolute;
  z-index: 3;
  bottom: var(--stamp-bottom);
  left: var(--stamp-left);
  width: var(--stamp-w);
  aspect-ratio: 5 / 6;
  padding: 5px;
  background: radial-gradient(circle, transparent 0 3px, var(--paper) 3.6px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 4px 8px rgb(3 20 28 / 40%));
  rotate: 8deg;
}

.hero-stamp__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px;
  background: linear-gradient(160deg, #1f7a85, #13506a);
  color: var(--gold);
  font-size: calc(var(--stamp-w) * 0.075);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-stamp__art .icon {
  margin-bottom: 3px;
  font-size: calc(var(--stamp-w) * 0.2);
  fill: var(--gold);
  stroke: #13506a;
  stroke-width: 1.4;
}

.hero-stamp__art strong {
  color: var(--gold);
  font-family: "Fjalla One", sans-serif;
  font-size: calc(var(--stamp-w) * 0.22);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.postmark {
  overflow: visible;
}

.postmark circle,
.postmark path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.postmark text {
  font-family: "Fjalla One", sans-serif;
  font-size: 10px;
}

.hero-stamp .postmark {
  position: absolute;
  bottom: -14%;
  left: -58%;
  width: 92%;
  rotate: -14deg;
}

.hero-stamp .postmark circle,
.hero-stamp .postmark path {
  stroke: rgb(247 213 122 / 70%);
}

.hero-stamp .postmark text {
  fill: rgb(247 213 122 / 85%);
}

/* ── Base navy: pilares como la lista del panel de inicio ── */
.hero__base {
  position: relative;
  z-index: 1;
  padding: 6px 0 clamp(44px, 5vw, 64px);
}

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  list-style: none;
}

.pillar-strip li {
  --tone: #5fd39a;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ── Paisaje (hero y tarjeta de bioma) ── */
.scene-art path,
.scene-art .peak {
  transition: opacity var(--scene-fade), transform var(--scene-fade);
}

.scene-art .glow-stop {
  stop-color: var(--scene-sky-low);
}

.scene-art .l-cloud {
  fill: var(--scene-cloud);
  opacity: 0.5;
}

.scene-art .l-birds {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.scene-art .sun-glow {
  fill: var(--scene-sun);
  transform-box: fill-box;
  transform-origin: center;
  animation: sunBreathe 7s ease-in-out infinite alternate;
}

.scene-art .sun-glow circle {
  fill-opacity: 0.11;
}

.scene-art .sun-glow circle + circle {
  fill-opacity: 0.17;
}

.scene-art .l-sun { fill: var(--scene-sun); }
.scene-art .l-water { fill: var(--scene-water); }
.scene-art .l-far { fill: var(--scene-far); }
.scene-art .l-far-side { opacity: 0.72; }
.scene-art .l-mid { fill: var(--scene-mid); }
.scene-art .l-near { fill: var(--scene-near); }
.scene-art .l-accent { fill: var(--scene-accent); }
.scene-art .l-ground { fill: var(--navy); }
.scene-art .l-turbine { fill: #eef6f3; }

.scene-art .l-water-hi,
.scene-art .l-sun-trail,
.scene-art .l-palm {
  fill: none;
  stroke-linecap: round;
}

.scene-art .l-water-hi {
  stroke: var(--scene-water-hi);
  stroke-width: 2.4;
  opacity: 0.75;
}

.scene-art .l-sun-trail {
  stroke: var(--scene-sun);
  stroke-width: 2.6;
  opacity: 0.85;
}

.scene-art .l-palm {
  stroke: var(--scene-accent);
  stroke-width: 2.6;
}

.scene-art .turbine-blades {
  transform-box: view-box;
  transform-origin: 334px 196px;
  animation: turbineSpin 10s linear infinite;
}

.scene-art .peak {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.scene-art .l-snow {
  fill: #eef5fa;
}

/* Capas propias de cada bioma: ocultas salvo en su escena. */
.scene-art .l-snow,
.scene-art .l-river,
.scene-art .l-forest,
.scene-art .l-palm {
  opacity: 0;
}

.scene-art .l-river { fill: var(--scene-water); }
.scene-art .l-forest { fill: var(--scene-accent); }

[data-biome="montana"] .scene-art .peak { transform: scaleY(1.24); }
[data-biome="montana"] .scene-art .l-snow { opacity: 1; }
[data-biome="montana"] .scene-art .l-sun-trail,
[data-biome="desierto"] .scene-art .l-sun-trail { opacity: 0; }
[data-biome="playa"] .scene-art .l-trees,
[data-biome="desierto"] .scene-art .l-trees { opacity: 0; }
[data-biome="bosque"] .scene-art .l-forest { opacity: 1; }
[data-biome="rio"] .scene-art .l-river { opacity: 1; }
[data-biome="playa"] .scene-art .l-palm,
[data-biome="desierto"] .scene-art .l-palm { opacity: 1; }

/* Fuera de pantalla no se anima el sol ni la turbina. */
.is-idle .scene-art .sun-glow,
.is-idle .scene-art .turbine-blades {
  animation-play-state: paused;
}

/* ============================================================
   01 · MANIFIESTO — una postal sobre el suelo navy
   ============================================================ */
.manifesto {
  padding: clamp(24px, 3vw, 40px) 0 var(--section-space);
  background: var(--navy);
}

.postcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-width: 1080px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / 55%), transparent 55%),
    var(--paper);
  color: var(--paper-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 60%),
    0 2px 6px rgb(3 20 28 / 30%),
    0 28px 60px rgb(3 20 28 / 50%);
  rotate: -0.8deg;
}

/* Segunda postal asomando por detrás: la pila de Upload */
.postcard::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #e7dfcd;
  box-shadow: 0 18px 40px rgb(3 20 28 / 40%);
  content: "";
  rotate: 2.6deg;
  translate: 10px 8px;
}

.postcard__message {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4.2vw, 60px);
}

.postcard h2 {
  max-width: 13ch;
  color: var(--paper-ink);
  font-size: clamp(2.25rem, 1.3rem + 3vw, 4rem);
}

.postcard h2 em {
  color: var(--paper-gold);
}

/* La línea divisoria no toca los bordes de la postal: margen vertical en lugar de relleno. */
.postcard__address {
  position: relative;
  margin-block: clamp(24px, 3vw, 40px);
  padding: 0 clamp(28px, 4.2vw, 60px);
  border-left: 1.5px solid var(--paper-line);
}

.postcard__marks {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.postcard__label {
  padding-top: 6px;
  color: #5b6b6e;
  font-family: "Fjalla One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.postmark--ink {
  width: 92px;
  margin-top: 18px;
  margin-left: auto;
  rotate: -8deg;
}

.postmark--ink circle,
.postmark--ink path {
  stroke: rgb(11 52 71 / 40%);
}

.postmark--ink text {
  fill: rgb(11 52 71 / 55%);
}

/* Sello con borde dentado: los huecos del fondo solo asoman por el margen del sello. */
.stamp {
  display: block;
  flex-shrink: 0;
  width: 64px;
  aspect-ratio: 5 / 6;
  padding: 4px;
  background: radial-gradient(circle, transparent 0 2.4px, #fbf8f1 2.9px) -4px -4px / 8px 8px;
  filter: drop-shadow(0 3px 5px rgb(3 20 28 / 30%));
  rotate: 7deg;
}

.stamp .icon {
  width: 100%;
  height: 100%;
  padding: 18%;
  background: linear-gradient(160deg, #1f7a85, #13506a);
  fill: var(--gold);
  stroke: none;
}

/* Texto escrito sobre las líneas de la dirección */
.postcard__lines p {
  margin-bottom: 0;
  background-image: linear-gradient(transparent calc(100% - 1px), var(--paper-line) 0);
  background-size: 100% 1.9em;
  color: var(--paper-text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.9;
}

.postcard__lines p + p {
  margin-top: 1.9em;
}

/* ============================================================
   02 · EXPERIENCIAS
   ============================================================ */
.experiences {
  position: relative;
  padding-block: var(--section-space);
  background:
    radial-gradient(120% 45% at 50% -8%, rgb(242 178 126 / 8%), transparent 60%),
    linear-gradient(180deg, var(--navy), #0f4058 30%, var(--navy) 62%, var(--navy-deep));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.6fr);
  gap: 32px 72px;
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-head h2 {
  max-width: 16ch;
}

.section-head__intro {
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.experiences__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.atlas-window {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--navy-deep);
  box-shadow: var(--shadow-card);
}

/* Marco interior dorado de la ventana del atlas */
.atlas-window::before {
  position: absolute;
  z-index: 2;
  inset: 14px 14px 64px;
  border: 1px solid rgb(247 213 122 / 45%);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.atlas-window img {
  width: 100%;
  aspect-ratio: 9 / 13.4;
  object-fit: cover;
  object-position: top;
}

.atlas-window figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.8rem;
}

.atlas-window figcaption span:first-child {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 70% at 0% 0%, color-mix(in srgb, var(--tone) 11%, transparent), transparent 62%),
    var(--surface);
  transition: background-color 240ms ease, border-color 240ms ease;
}

/* Escalonado: la columna derecha baja un poco */
.pillar:nth-child(even) {
  translate: 0 44px;
}

.pillar:hover {
  border-color: color-mix(in srgb, var(--tone) 40%, transparent);
  background-color: var(--surface-strong);
}

.pillar .tone-icon {
  margin-bottom: 8px;
  transition: transform 300ms var(--ease-out);
}

.pillar:hover .tone-icon {
  transform: rotate(-8deg) scale(1.06);
}

.pillar__number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-3);
  font-family: "Fjalla One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.pillar h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.pillar p {
  margin-bottom: 0;
  color: var(--text-2);
}

.pillar .text-link {
  align-self: flex-start;
  margin-top: 4px;
}

/* ============================================================
   03 · LUGARES REALES
   ============================================================ */
.story {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background: var(--navy-deep);
}

/* Retícula de puntos del mapa, difuminada hacia los bordes */
.story::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgb(143 176 187 / 22%) 1px, transparent 1.6px),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgb(143 176 187 / 8%) 0 calc(50% + 0.5px), transparent 0);
  background-size: 24px 24px, 100% 100%;
  content: "";
  -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.story__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(48px, 8vw, 120px);
  /* Arriba y no centrado: centrar el texto junto a la creatividad alta abría un hueco con Experiencias. */
  align-items: start;
}

.story__copy h2 {
  max-width: 12ch;
}

.story__lede {
  max-width: 34rem;
  margin: 26px 0 32px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.story__facts {
  display: grid;
  gap: 10px;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story__facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

.story__fact-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(245 197 66 / 12%);
  color: var(--gold-soft);
  font-family: "Fjalla One", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgb(245 197 66 / 28%);
}

.story__image {
  position: relative;
  width: min(100%, 400px);
  justify-self: center;
}

.story__image picture {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card);
  rotate: 2deg;
}

.story__image img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: top;
}

.story__route {
  position: absolute;
  z-index: -1;
  top: 2%;
  right: -30%;
  width: 46%;
  overflow: visible;
}

.story__route path {
  fill: none;
  stroke: rgb(247 213 122 / 55%);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe28a, var(--gold) 58%, #e0a321);
  color: var(--navy);
  font-size: 22px;
  box-shadow: 0 0 0 6px rgb(245 197 66 / 18%), 0 10px 22px rgb(3 20 28 / 45%);
}

.map-pin .icon {
  fill: rgb(11 52 71 / 18%);
  stroke-width: 2;
}

.map-pin--one {
  top: -18px;
  right: -16px;
}

.map-pin--two {
  bottom: 22%;
  left: -22px;
  width: 36px;
  height: 36px;
  font-size: 18px;
}

/* ============================================================
   04 · ECOSISTEMA — selector de bioma
   ============================================================ */
.eco {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background:
    radial-gradient(70% 55% at 22% 38%, color-mix(in srgb, var(--scene-sky-low) 13%, transparent), transparent 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 38%, var(--navy-night));
  transition:
    --scene-sky-top var(--scene-fade), --scene-sky-mid var(--scene-fade), --scene-sky-low var(--scene-fade),
    --scene-cloud var(--scene-fade), --scene-sun var(--scene-fade), --scene-far var(--scene-fade),
    --scene-water var(--scene-fade), --scene-water-hi var(--scene-fade), --scene-mid var(--scene-fade),
    --scene-near var(--scene-fade), --scene-accent var(--scene-fade);
  --scene-fade: 0.9s ease;
}

.eco__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.eco__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.eco__poster {
  grid-area: 1 / 1 / 2 / 7;
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card);
  rotate: -3deg;
}

.eco__poster img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.biome-card {
  --card-ground: #0c3244;

  position: relative;
  z-index: 1;
  grid-area: 1 / 4 / 2 / 13;
  margin-top: 38%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--card-ground);
  box-shadow: 0 30px 60px rgb(3 20 28 / 55%);
}

.biome-card__window {
  aspect-ratio: 16 / 9;
  background: linear-gradient(var(--scene-sky-top) 12%, var(--scene-sky-mid));
}

.biome-card__scene {
  width: 100%;
  height: 100%;
}

.biome-card__scene .l-ground--card {
  fill: var(--card-ground);
}

.biome-card__body {
  display: grid;
  gap: 14px;
  padding: 4px 16px 16px;
}

.biome-card__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 3.2em;
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.4;
}

.biome-card__status .biome-dot {
  margin-top: 2px;
}

.biome-card__status strong {
  margin-right: 6px;
  color: var(--text);
  font-family: "Fjalla One", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pestañas segmentadas del panel de inicio */
.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(5 24 33 / 45%);
}

.segmented__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 60px;
  padding: 6px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.segmented__option:focus-visible {
  outline-offset: -2px;
}

.segmented__option:hover:not([aria-pressed="true"]) {
  background: rgb(255 255 255 / 6%);
  color: var(--text);
}

.segmented__option[aria-pressed="true"] {
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 2px 8px rgb(0 0 0 / 20%);
}

.segmented__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Miniatura del paisaje: sol tras dos colinas sobre cielo y agua del bioma. */
.segmented__swatch,
.store-row__thumb {
  background:
    radial-gradient(130% 62% at 10% 108%, var(--scene-near) 0 55%, transparent 56%),
    radial-gradient(120% 56% at 94% 104%, var(--scene-mid) 0 56%, transparent 57%),
    radial-gradient(circle at 64% 58%, var(--scene-sun) 0 16%, transparent 17%),
    linear-gradient(var(--scene-sky-mid), var(--scene-sky-low) 60%, var(--scene-water) 60%);
}

.segmented__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 30%);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.segmented__option[aria-pressed="true"] .segmented__swatch {
  box-shadow: 0 0 0 2px var(--gold);
  transform: scale(1.08);
}

.eco__copy h2 {
  max-width: 13ch;
}

.eco__lede {
  max-width: 36rem;
  margin: 26px 0 22px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.eco__note {
  max-width: 32rem;
  margin-bottom: 30px;
  padding: 14px 18px;
  border: 1px solid rgb(46 195 126 / 32%);
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, rgb(46 195 126 / 14%), rgb(255 255 255 / 4%) 70%);
  color: #bdf0d4;
  font-weight: 500;
}

/* ============================================================
   05 · GALERÍA
   ============================================================ */
.gallery {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background:
    radial-gradient(60% 40% at 88% 100%, rgb(79 209 228 / 9%), transparent 70%),
    var(--navy-night);
}

.section-head--gallery {
  grid-template-columns: minmax(0, 1fr) auto;
}

.gallery__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery__count {
  min-width: 78px;
  margin-right: 6px;
  color: var(--gold-soft);
  font-family: "Fjalla One", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.gallery__controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--chip-line);
  border-radius: 50%;
  background: rgb(5 24 33 / 45%);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.gallery__controls button:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.gallery__controls button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.gallery__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  padding: 8px max(var(--gutter), calc((100% - 1200px) / 2)) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100% - 1200px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: rgb(247 213 122 / 70%) rgb(255 255 255 / 8%);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.gallery__track:focus-visible {
  outline-offset: -2px;
}

.gallery__track::-webkit-scrollbar {
  height: 6px;
}

.gallery__track::-webkit-scrollbar-track {
  border-radius: 3px;
  background: rgb(255 255 255 / 8%);
}

.gallery__track::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgb(247 213 122 / 70%);
}

.gallery-card {
  flex: 0 0 clamp(250px, 26vw, 340px);
  scroll-snap-align: start;
}

.gallery-card picture {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 34px rgb(3 20 28 / 40%);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease-out);
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card figcaption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 14px;
  padding: 4px 14px 4px 5px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-card figcaption span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   06 · DESCARGA — filas como la lista de terrenos
   ============================================================ */
.download {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background:
    radial-gradient(46% 38% at 72% 100%, rgb(242 178 126 / 16%), transparent 72%),
    radial-gradient(80% 60% at 20% 0%, rgb(242 178 126 / 6%), transparent 65%),
    linear-gradient(180deg, var(--navy-night), var(--navy) 55%, #0d3a4f);
}

.download__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.app-tile {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: linear-gradient(160deg, #13506a, var(--navy-deep));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 14px 30px rgb(3 20 28 / 45%);
}

.app-tile img {
  width: 46px;
}

.download h2 {
  max-width: 13ch;
}

.download__lede {
  max-width: 30rem;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 1.08rem;
}

.download__panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgb(5 24 33 / 35%);
  box-shadow: 0 30px 60px rgb(3 20 28 / 35%);
}

.download__group {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 4px 12px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download__group .icon {
  font-size: 15px;
  color: var(--emerald);
}

.download__links {
  display: grid;
  gap: 10px;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.store-row:hover {
  border-color: rgb(255 255 255 / 18%);
  background: var(--surface-strong);
}

.store-row__thumb {
  display: grid;
  flex-shrink: 0;
  place-items: end;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
}

.store-row__thumb .icon {
  width: 22px;
  height: 22px;
  margin: 0 -6px -6px 0;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
  stroke-width: 2;
}

.store-row__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-row__main strong {
  font-family: "Fjalla One", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.store-row__main small {
  color: var(--text-3);
  font-size: 0.85rem;
}

.store-row__arrow {
  font-size: 20px;
  color: var(--text-3);
  transition: transform 200ms var(--ease-out), color 200ms ease;
}

.store-row:hover .store-row__arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* script.js marca la tienda del dispositivo del visitante. */
.store-row.is-suggested {
  border-color: rgb(46 195 126 / 50%);
  background: linear-gradient(100deg, rgb(46 195 126 / 14%), rgb(255 255 255 / 4%) 70%);
}

.store-row.is-suggested small::after {
  color: #7ee2b0;
  font-weight: 700;
  content: " · Tu dispositivo";
}

.btn-start--row {
  margin-top: 6px;
}

.btn-start--row .btn-start__action {
  font-size: 1.25rem;
}

/* ── Pie ── */
.site-footer {
  position: relative;
  padding-block: 44px 28px;
  background: var(--navy-abyss);
}

.site-footer__ridge {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  height: clamp(20px, 3vw, 44px);
}

.site-footer__ridge path {
  fill: var(--navy-abyss);
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__top {
  padding-bottom: 32px;
}

.site-footer__motto {
  margin: 0;
  color: var(--gold);
  font-family: "Fjalla One", sans-serif;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand--footer img {
  width: 36px;
  height: auto;
}

.site-footer__bottom {
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  transition: color 180ms ease;
}

.site-footer__bottom a:hover {
  color: var(--gold-soft);
}

/* Sin JS el selector de bioma no puede funcionar: queda el paisaje del bosque con su texto. */
.no-js .segmented {
  display: none;
}

/* ── Revelado progresivo ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .pillar[data-reveal]:nth-child(2),
.js .pillar[data-reveal]:nth-child(4) {
  transition-delay: 90ms;
}

@keyframes stageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sunBreathe {
  from {
    opacity: 0.75;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes turbineSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Composición del hero por tamaño
   ============================================================ */

/* Escritorio: texto a la izquierda en el cielo; tarjetas plantadas a la derecha.
   El paisaje se refleja para que el sol salga entre el texto y las tarjetas. */
@media (min-width: 1024px) {
  .hero__stage {
    --scene-h: clamp(340px, 16vw + 190px, 480px);
    --scene-s: calc(var(--scene-h) / 230);
    --scene-shift: calc(var(--scene-s) * 76 + var(--shell-w) * 0.03);
    --scene-w: calc(100cqw + 2 * var(--scene-shift));
    --front-w: clamp(250px, 22.5vw, 320px);
    --front-left: calc(50cqw + var(--shell-w) / 2 - var(--front-w) - 8px);
    --back-left: calc(var(--front-left) - var(--front-w) * 0.74);
    --stamp-w: clamp(92px, 7.5vw, 112px);
    --stamp-left: calc(var(--front-left) - var(--stamp-w) * 1.02);
    --stamp-bottom: calc(var(--plant) + var(--front-w) * 16 / 9 * 0.93);

    min-height: max(100svh, 720px);
  }

  .hero__scene {
    scale: -1 1;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    min-height: max(100svh, 720px);
    padding-top: calc(var(--header-height) + clamp(28px, 5svh, 64px));
  }

  .hero__copy {
    align-self: center;
    padding-bottom: calc(var(--scene-h) * 0.5);
  }

  .hero h1 {
    font-size: clamp(3.6rem, min(1.5rem + 4.9vw, 11svh), 6rem);
  }

  /* Las tarjetas se sitúan respecto al escenario completo, no a la columna. */
  .hero__visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 100cqw) / 2);
    width: 100cqw;
    pointer-events: none;
  }

  .hero-card {
    pointer-events: auto;
  }
}

/* Tableta y móvil: texto arriba y, debajo, las tarjetas plantadas en el paisaje. */
@media (max-width: 1023px) {
  .hero__stage {
    --front-w: clamp(150px, 38cqw, 250px);
    --scene-h: calc(var(--front-w) * 1.5 + 50px);
    --front-left: max(
      calc(8px + var(--front-w) * 0.66),
      calc(50cqw + var(--scene-s) * 64 - var(--front-w))
    );
    --back-left: max(12px, calc(var(--front-left) - var(--front-w) * 0.72));
    /* El sello queda a la derecha de la tarjeta, en el cielo sobre el sol: encima de la tarjeta
       tapaba el titular de la creatividad 02. */
    --stamp-w: clamp(58px, 15cqw, 96px);
    --stamp-left: min(
      calc(var(--front-left) + var(--front-w) + 18px),
      calc(100cqw - var(--stamp-w) - 10px)
    );
    --stamp-bottom: calc(var(--plant) + var(--front-w) * 16 / 9 + 10px - var(--stamp-w) * 1.2);
  }

  /* Matasellos debajo del sello, sobre el cielo y no sobre las creatividades. */
  .hero-stamp .postmark {
    bottom: -50%;
    left: 8%;
    width: 92%;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__visual {
    height: calc(var(--front-w) * 16 / 9 + var(--plant) + 24px);
    margin-top: 20px;
  }

  /* Las tarjetas se miden desde el borde del escenario, no desde page-shell. */
  .hero__visual {
    width: 100cqw;
    margin-left: calc((100% - 100cqw) / 2);
  }
}

/* ============================================================
   Resto de secciones por tamaño
   ============================================================ */
@media (max-width: 1100px) {
  .experiences__layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar:nth-child(even) {
    translate: none;
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: 24px;
  }

  .js .nav-toggle {
    display: grid;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px var(--gutter) 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background: var(--navy-deep);
    box-shadow: 0 26px 54px rgb(0 7 12 / 45%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .js .site-nav > a:not(.site-nav__cta) {
    min-height: 54px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .js .site-nav__cta {
    justify-content: center;
    min-height: 52px;
    margin: 18px 0 0;
    font-size: 1rem;
  }

  .no-js .site-header {
    position: relative;
    height: auto;
    background: var(--navy-deep);
  }

  .no-js .site-header__inner,
  .no-js .site-nav {
    flex-wrap: wrap;
  }

  .no-js .site-header__inner {
    padding-block: 12px;
  }

  .no-js .site-nav {
    width: 100%;
  }

  .section-head,
  .section-head--gallery,
  .experiences__layout,
  .story__grid,
  .eco__grid,
  .download__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head--gallery {
    align-items: start;
  }

  .experiences__layout {
    gap: 40px;
  }

  .atlas-window {
    position: relative;
    top: auto;
    width: min(440px, 100%);
    justify-self: center;
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story__grid {
    gap: 64px;
  }

  .story__image {
    width: min(380px, calc(100% - 40px));
  }

  .eco__visual {
    order: 2;
    width: min(620px, 100%);
    justify-self: center;
  }

  .eco__copy {
    order: 1;
  }

  .download__panel {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .postcard {
    grid-template-columns: minmax(0, 1fr);
    rotate: -0.6deg;
  }

  .postcard__message {
    padding-bottom: 8px;
  }

  .postcard__address {
    position: static;
    margin: 0 clamp(20px, 5vw, 32px);
    padding: 22px 0 30px;
    border-top: 1.5px solid var(--paper-line);
    border-left: 0;
  }

  /* Sello arriba a la derecha, como en una postal de verdad */
  .postcard__marks {
    position: absolute;
    top: 16px;
    right: 16px;
    margin: 0;
    pointer-events: none;
  }

  .postcard__message {
    padding-right: 108px;
  }

  .postcard__label {
    display: none;
  }

  .postmark--ink {
    width: 70px;
    margin: 0 -12px 0 0;
  }

  .stamp {
    width: 56px;
  }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
    --header-height: 64px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand img {
    width: 26px;
    height: 30px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .btn-start,
  .hero__actions .btn-glass {
    width: 100%;
    min-width: 0;
  }

  .btn-start__action {
    font-size: 1.15rem;
  }

  .hero-chip {
    font-size: 0.8rem;
  }

  /* Sello pequeño: solo el pin y «VIVO»; las líneas menudas no se leerían. */
  .hero-stamp__art span {
    display: none;
  }

  .hero-stamp__art strong {
    font-size: calc(var(--stamp-w) * 0.26);
  }

  .pillar-strip {
    gap: 4px;
    padding: 10px 4px;
  }

  .pillar-strip li {
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .pillar-strip .tone-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .postcard__message {
    padding: 26px 96px 6px 22px;
  }

  .postcard__address {
    margin-inline: 22px;
  }

  .pillar {
    padding: 22px 20px 24px;
  }

  .story__facts li {
    font-size: 0.95rem;
  }

  .eco__visual {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .eco__poster {
    grid-area: 1 / 1 / 2 / 9;
  }

  .biome-card {
    grid-area: 1 / 1 / 2 / 13;
    margin-top: 72%;
  }

  .segmented__option {
    font-size: 0.72rem;
  }

  .gallery__controls {
    justify-content: space-between;
  }

  .gallery-card {
    flex-basis: min(76vw, 300px);
  }

  .download__panel {
    padding: 10px;
    border-radius: var(--radius-lg);
  }

  .store-row {
    gap: 12px;
    padding-right: 12px;
  }

  .store-row__main strong {
    font-size: 1.15rem;
  }

  .btn-start--row .btn-start__action {
    font-size: 1.1rem;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-footer__bottom a {
    width: 100%;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 360px) {
  .btn-start {
    gap: 12px;
  }

  .btn-start .coin {
    width: 40px;
    height: 40px;
  }

  /* «Descargar en Google Play» (etiqueta de la tienda detectada) debe caber en una línea:
     la moneda ya lleva el icono, así que el chevrón sobra en este ancho. */
  .btn-start__action {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .btn-start__chevron {
    display: none;
  }

  /* Cinco nombres no caben en una fila: 3 + 2 */
  .segmented {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .segmented__option {
    grid-column: span 2;
    min-height: 52px;
  }

  .segmented__option:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* ── Movimiento reducido: paisaje fijo en «nuevo», sin fundidos ni revelados ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero,
  .eco {
    --scene-fade: 0s;
  }

  .hero__copy,
  .hero__visual,
  .scene-art .sun-glow,
  .scene-art .turbine-blades {
    animation: none;
  }

  .scene-art path,
  .scene-art .peak {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-start,
  .btn-start:active,
  .btn-glass:active {
    transform: none;
    transition: none;
  }

  .coin,
  .btn-start__chevron,
  .btn-glass .icon,
  .gallery-card img,
  .pillar .tone-icon,
  .store-row__arrow,
  .text-link {
    transition: none;
  }
}
