/* MIRROR — sistema visual.
   Fuente de verdad: referencia de marca MIRROR (fondo negro con dunas de partículas, logotipo de dos círculos
   —relleno y anillo— en crema, wordmark MIRЯOR, tarjetas de resultados en colores pastel sólidos).
   Todos los valores visuales viven en los tokens de :root; el resto de la hoja solo los usa. */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Color base */
  --black: #050505;          /* fondo de la referencia */
  --surface: #0f0f0f;        /* paneles */
  --surface-2: #181817;      /* controles, filas */
  --line: #2b2a28;           /* bordes y divisores */
  --line-strong: #4a4844;
  --cream: #ece8de;          /* logotipo, titulares, botón principal */
  --text: #dedad1;           /* texto corrido */
  --text-2: #a6a299;         /* texto secundario (contraste ≥ 7:1 sobre --black) */
  --ink: #0b0b0b;            /* texto sobre tarjetas pastel y botón crema */

  /* Paleta de tarjetas (pastel sólidos de la referencia) */
  --t-yellow: #f8dd7c;
  --t-pink: #f4a7a6;
  --t-cyan: #7fd3ef;
  --t-paper: #f4f2ee;
  --t-blush: #f2c4d2;
  --t-mint: #9ddfc2;
  --t-coral: #ef6f6c;
  --t-amber: #f9cf5a;

  /* Tres perspectivas: las del logotipo + la tercera */
  --self: var(--cream);      /* círculo relleno */
  --meta: var(--cream);      /* anillo */
  --others: var(--t-mint);   /* rombo + banda de confianza */

  --warn: var(--t-amber);
  --error: var(--t-coral);
  --focus: var(--t-cyan);

  /* Tipografía (Inter variable, autoalojada) */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-label: 0.6875rem;     /* 11px: etiquetas de tarjeta en mayúsculas */
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lede: clamp(1.1rem, 2vw, 1.25rem);
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.35rem, 2.6vw, 1.75rem);
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-display: clamp(2.4rem, 6.4vw, 4.6rem);
  --fs-value: 2.25rem;       /* cifra grande de tarjeta */
  --track-label: 0.08em;

  /* Espaciado (escala de 4 px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;

  /* Radios, bordes, elevación */
  --r-tile: 10px;
  --r-panel: 16px;
  --r-control: 10px;
  --r-pill: 999px;
  --r-device: 46px;
  --shadow-device: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px #3a3936 inset;

  --dur: 180ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--black); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--cream); text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--cream); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
::selection { background: var(--cream); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 0; padding: var(--s-2) var(--s-3); background: var(--cream); color: var(--ink); border-radius: var(--r-control); }
.skip:focus { left: var(--s-3); top: var(--s-3); z-index: 20; }

/* ── Marca: logotipo (dos círculos) + wordmark MIRЯOR ───────────────────────── */
.logo { display: inline-flex; gap: 0.18em; align-items: center; font-size: 1rem; }
.logo i { display: block; width: 1em; height: 1em; border-radius: 50%; }
.logo i:first-child { background: var(--cream); }
.logo i:last-child { border: 0.12em solid var(--cream); }
.wordmark { font: 500 1rem/1 var(--sans); letter-spacing: 0.06em; color: var(--cream); white-space: nowrap; }
.wordmark .flip { display: inline-block; transform: scaleX(-1); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand .logo { font-size: 14px; }
.brand .wordmark { font-size: 1.05rem; }

/* ── Estructura ─────────────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--gutter); }
.site-header nav { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: var(--fs-small); }
.site-header nav a { color: var(--text-2); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--cream); }
.site-header nav .tab-icon { display: none; }
main { padding: var(--s-2) var(--gutter) var(--s-8); }
.col { max-width: 720px; margin: 0 auto; }
.col-wide { max-width: 1120px; margin: 0 auto; }
.col-left { margin-left: 0; }
.site-footer { border-top: 1px solid var(--line); padding: var(--s-6) var(--gutter); color: var(--text-2); font-size: var(--fs-small); }
.site-footer .col-wide { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

/* ── Tipografía ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--cream); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: 1.7em; }
h3 { font-size: var(--fs-h3); margin-top: 1.3em; letter-spacing: -0.01em; }
p, li { max-width: var(--measure); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; }
.sr-num { color: var(--text-2); font-size: 0.8em; }

/* ── Portada: dunas, marca centrada y dispositivo ───────────────────────────── */
.landing { margin: calc(-1 * var(--s-2)) calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); position: relative;
  background: var(--black) url("/static/img/dunes.webp") center bottom / 100% auto no-repeat; }
.landing::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(transparent, var(--black)); pointer-events: none; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-7); align-items: center;
  min-height: min(84vh, 820px); padding: var(--s-6) 0 clamp(140px, 22vw, 300px); }
.hero-brand { display: grid; justify-items: center; text-align: center; gap: var(--s-5); }
.hero-brand .logo { font-size: clamp(36px, 4.4vw, 52px); }
.hero-brand .wordmark { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: 0.04em; }
.hero-title { font-size: var(--fs-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; margin: var(--s-5) 0 0; color: var(--cream); }
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { color: var(--text-2); }
.hero-title .line:nth-child(3) { color: var(--t-mint); }
.hero .lede { margin: 0 auto; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.hero .fineprint { color: var(--text-2); font-size: var(--fs-small); margin: 0; }
.landing-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-6) var(--s-7); padding: var(--s-7) 0 var(--s-5); }
.landing-more h2 { margin-top: 0; font-size: var(--fs-h3); }
.landing-more p { color: var(--text-2); }

/* Dispositivo (vista previa con datos de ejemplo, claramente rotulada) */
.device { justify-self: center; margin: 0; width: min(340px, 100%); aspect-ratio: 9 / 19; border-radius: var(--r-device); padding: 12px;
  background: linear-gradient(145deg, #3b3a37, #121212 38%, #262523); box-shadow: var(--shadow-device); }
.device-screen { height: 100%; border-radius: calc(var(--r-device) - 10px); background: #080808; overflow: hidden; display: flex; flex-direction: column; padding: 40px 14px 14px; gap: 10px; position: relative; }
.device-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.device-top { display: flex; align-items: center; justify-content: space-between; color: var(--cream); }
.device-top .logo { font-size: 8px; }
.device-who { display: flex; align-items: center; gap: 10px; }
.device-who b { display: block; color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.device-who span { color: var(--text-2); font-size: 0.68rem; }
.device-avatar { width: 30px; height: 30px; border: 1.5px solid var(--cream); border-radius: 6px; display: grid; place-items: center; }
.device-avatar .logo { font-size: 7px; }
.device-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; line-height: 1; }
.device-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); font-size: 0.58rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); }
.device-tabs span { padding: 0 0 6px; }
.device-tabs span:first-child { color: #fff; border-bottom: 1.5px solid #fff; }
.device .tiles { gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.device .tile { padding: 7px 7px 8px; border-radius: 7px; min-height: 0; }
.device .tiles { margin: 0; flex: 1; grid-auto-rows: 1fr; }
.device .tile .label { font-size: 0.42rem; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.device .tile .value { font-size: 1.05rem; margin-top: 3px; }
.device .tile .sub { font-size: 0.5rem; line-height: 1.25; }
.device .tile .rows { font-size: 0.46rem; margin-top: auto; gap: 1px; }
.device .tile .rows span { align-items: flex-end; }
.device .tile-wide { grid-column: span 2; }
.device .tile-full { grid-column: 1 / -1; }
.device-note { margin: 0; text-align: center; font-size: 0.6rem; color: var(--text-2); }
.device-bar { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; color: var(--text-2); font-size: 0.46rem; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; }
.device-bar span { display: grid; justify-items: center; gap: 3px; }
.device-bar span:first-child { color: #fff; }
.device-bar svg { width: 12px; height: 12px; fill: currentColor; }

/* ── Tarjetas de resultados (pastel sólido, texto negro) ────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-5) 0; padding: 0; list-style: none; }
.tile { background: var(--tile, var(--t-paper)); color: var(--ink); border-radius: var(--r-tile); padding: var(--s-3) var(--s-4) var(--s-4); min-height: 132px; display: flex; flex-direction: column; max-width: none; }
.tile .label { color: rgba(11, 11, 11, 0.72); }
.tile .value { font-size: var(--fs-value); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: var(--s-3); }
.tile .sub { font-size: 0.8rem; line-height: 1.3; margin-top: var(--s-1); color: rgba(11, 11, 11, 0.78); }
.tile .rows { display: grid; gap: 2px; margin-top: var(--s-2); font-size: 0.85rem; line-height: 1.3; }
.tile .rows span { display: flex; justify-content: space-between; gap: var(--s-2); }
.tile .rows b { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-yellow { --tile: var(--t-yellow); } .t-pink { --tile: var(--t-pink); } .t-cyan { --tile: var(--t-cyan); }
.t-paper { --tile: var(--t-paper); } .t-blush { --tile: var(--t-blush); } .t-mint { --tile: var(--t-mint); }
.t-coral { --tile: var(--t-coral); } .t-amber { --tile: var(--t-amber); }

/* ── Botones y formularios ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  border: 1.5px solid var(--cream); background: var(--cream); color: var(--ink); font: 600 0.975rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur); }
.btn:hover { background: #fff; border-color: #fff; }
.btn-quiet { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--surface-2); color: var(--cream); border-color: var(--cream); }
.btn-danger { background: var(--t-coral); border-color: var(--t-coral); color: var(--ink); }
.btn-danger:hover { background: #f58b88; border-color: #f58b88; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
label { font-weight: 600; color: var(--cream); }
input[type="text"], input[type="password"], textarea {
  width: 100%; max-width: 32rem; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--surface); color: var(--cream); font: 400 1rem var(--sans); }
input::placeholder { color: #7d7a73; }
input:focus { border-color: var(--cream); outline: none; }
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field { display: grid; gap: var(--s-2); margin: var(--s-5) 0; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; color: var(--text); margin: var(--s-3) 0; max-width: var(--measure); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--cream); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ── Avisos y paneles ───────────────────────────────────────────────────────── */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--cream); background: var(--surface); padding: var(--s-4) var(--s-5); border-radius: var(--r-control); margin: var(--s-5) 0; max-width: var(--measure); }
.notice.warn { border-left-color: var(--warn); }
.notice.error { border-left-color: var(--error); }
.notice p { margin: 0.3em 0; }
.keybox { font: 500 clamp(1.1rem, 4vw, 1.55rem)/1.35 var(--mono); letter-spacing: 0.06em; color: var(--cream); padding: var(--s-5); background: var(--surface);
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); word-break: break-all; user-select: all; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(18px, 4vw, 32px); }

/* ── Pasos de la evaluación ─────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-2); }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-tile); max-width: none; }
.steps .n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--cream); font-weight: 600; font-size: 0.9rem; }
.steps .t strong { display: block; font-weight: 600; color: var(--cream); }
.steps .t span { color: var(--text-2); font-size: 0.925rem; }
.steps .t a { text-decoration: none; }
.steps .t a:hover strong { text-decoration: underline; }
.state { font-size: var(--fs-small); color: var(--text-2); white-space: nowrap; }
.state.done { color: var(--t-mint); font-weight: 600; }

/* ── Cuestionario ───────────────────────────────────────────────────────────── */
.q-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: var(--s-2) 0 var(--s-6); }
.q-progress span { display: block; width: 0; height: 100%; background: var(--cream); transition: width 0.25s ease; }
.q-item { border: 0; padding: var(--s-5) 0; margin: 0; border-bottom: 1px solid var(--line); }
.q-item legend { font-size: clamp(1.3rem, 3.2vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--cream); padding: 0; margin-bottom: var(--s-5); }
.q-item legend .stem { display: block; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-bottom: var(--s-2); }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); max-width: 600px; }
.scale.with-unknown { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.1fr); max-width: 700px; }
.scale label { position: relative; font-weight: 500; color: var(--text); }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: var(--s-2) 2px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-tile); background: var(--surface); text-align: center; font-size: 0.8rem; line-height: 1.15; cursor: pointer;
  transition: background var(--dur), border-color var(--dur), color var(--dur); }
.scale span b { font-size: 1.15rem; font-weight: 700; color: var(--cream); }
.scale label:hover span { border-color: var(--cream); }
.scale input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.scale input:checked + span b { color: var(--ink); }
.scale input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-nav { display: none; }
.js .q-stepper .q-item { display: none; border-bottom: 0; }
.js .q-stepper .q-item.current { display: block; }
.js .q-stepper .q-nav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-4); }
.js .q-stepper .q-submit { display: none; }
.js .q-stepper.at-end .q-submit { display: flex; }
.js .q-stepper.at-end .q-nav [data-next] { display: none; }

/* ── Informe: leyenda y pistas por rasgo ────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 var(--s-2); font-size: 0.925rem; color: var(--text); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.track { margin: var(--s-4) 0 var(--s-2); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.track-head { display: flex; align-items: center; gap: var(--s-3); }
.track-head h3 { margin: 0; }
.track-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--tile, var(--t-paper)); flex: none; }
.track .poles { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 0.8rem; color: var(--text-2); max-width: none; margin-top: var(--s-2); }
.track svg { display: block; width: 100%; height: auto; overflow: visible; margin: var(--s-2) 0; }
.track .axis { stroke: var(--line-strong); stroke-width: 2; }
.track .tick { stroke: var(--line-strong); stroke-width: 1; }
.track .band { fill: var(--others); opacity: 0.22; }
.mk-self { fill: var(--self); }
.mk-meta { fill: var(--black); stroke: var(--meta); stroke-width: 3; }
.mk-others { fill: var(--others); }
.track .vals { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: var(--fs-small); color: var(--text-2); }
.track .vals b { color: var(--cream); font-weight: 600; }
.track p { margin: var(--s-4) 0 0; }
.prose-section { margin: var(--s-5) 0; }
.prose-section h3 { margin-bottom: 0.4em; }
.report-meta { color: var(--text-2); font-size: var(--fs-small); }
.premium-box { border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: clamp(20px, 4vw, 32px); margin: var(--s-7) 0; background: var(--surface); }
.premium-box h2 { margin-top: 0; }
.premium-box ul { padding-left: 1.2em; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--cream); }
table.items { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
table.items th, table.items td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.items th { color: var(--text-2); font-weight: 600; font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; }
table.items td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--cream); }
.table-wrap { overflow-x: auto; }

/* ── Aviso legal: datos del titular ─────────────────────────────────────────── */
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); max-width: var(--measure); }
.legal-data dt { color: var(--text-2); font-size: var(--fs-small); }
.legal-data dd { margin: 0; color: var(--cream); }
@media (max-width: 560px) { .legal-data { grid-template-columns: 1fr; gap: 0; } .legal-data dd { margin-bottom: var(--s-3); } }

/* ── Administración ─────────────────────────────────────────────────────────── */
.metrics { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.metrics th, .metrics td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; }
.metrics th:first-child, .metrics td:first-child { text-align: left; }

/* ── Móvil: composición propia, barra inferior como en la app de la referencia ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); min-height: 0; padding-top: var(--s-5); }
  .landing { background-image: url("/static/img/dunes-sm.webp"); background-position: center bottom; background-size: 260% auto; }
  .hero { padding-bottom: clamp(140px, 42vw, 220px); }
  .device { width: min(300px, 86vw); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .tile { min-height: 116px; padding: var(--s-3); }
  .tile .value { font-size: 1.9rem; }
  .scale.with-unknown { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scale.with-unknown label:last-child { grid-column: 1 / -1; }
  .scale span { min-height: 58px; padding: 6px 0; font-size: 0.7rem; letter-spacing: -0.01em; }
  .scale { gap: 5px; }
  .steps li { grid-template-columns: 2.4rem 1fr; }
  .steps .state { grid-column: 2; }
  .track { padding: var(--s-4); }
  .site-header { padding-top: var(--s-4); padding-bottom: var(--s-3); }
  .site-header { flex-wrap: wrap; row-gap: var(--s-3); }
  .site-header nav { gap: var(--s-4); width: 100%; }
  /* Con sesión: navegación fija abajo, iconos + etiqueta en mayúsculas */
  .has-tabbar main { padding-bottom: 104px; }
  .has-tabbar .site-header nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0;
    padding: var(--s-2) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom)); background: rgba(5, 5, 5, 0.94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .has-tabbar .site-header nav a { display: grid; justify-items: center; gap: 4px; min-width: 72px; padding: 6px 4px; font-size: 0.625rem; font-weight: 600;
    letter-spacing: var(--track-label); text-transform: uppercase; }
  .has-tabbar .site-header nav .tab-icon { display: block; width: 20px; height: 20px; fill: currentColor; }
}

/* ── Impresión y movimiento reducido ────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  html, body { background: #fff; color: #000; }
  h1, h2, h3, .track .vals b, table.items td.num, .price { color: #000; }
  .track, .premium-box, .panel { background: #fff; border-color: #bbb; }
  .mk-self { fill: #000; } .mk-meta { fill: #fff; stroke: #000; } .mk-others, .track .band { fill: #2f7a5c; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
