/* Vera · web. Tinta y hueso de Glifo; el ocaso de Señal como único color. Radio 0 en todo. */
/* Fuentes autoalojadas (Google Fonts, licencia OFL), subconjuntos latino y latino extendido. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fuentes/schibsted-grotesk-var-latin.woff2") format("woff2"); 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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fuentes/schibsted-grotesk-var-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/fragment-mono-400-latin.woff2") format("woff2"); 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: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/fragment-mono-400-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --tinta: #0E0E0D;
  --tinta-2: #161615;
  --hueso: #ECE8DF;
  --hueso-2: #ABA79E;
  --hueso-3: #8A867E;
  --filete: rgba(236, 232, 223, 0.18);
  --amarillo: #FFCF4A;
  --naranja: #F26A2E;
  --rosa: #E0457B;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --g: clamp(16px, 4.4vw, 64px);
  --nav-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root:not([data-theme="light"]) { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--tinta); color: var(--hueso); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--amarillo); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }
.sr, .saltar:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar:focus { position: fixed; z-index: 40; left: 12px; top: 12px; background: var(--hueso); color: var(--tinta); padding: 8px 12px; }
h1, h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.6rem); max-width: 15ch; }
h3 { font: 600 1.3rem/1.22 var(--sans); letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.acento { color: var(--amarillo); }

/* ---------- Marca de ocaso: tres líneas finas (de Señal) ---------- */
.marca { display: inline-block; width: 12px; height: 7px; position: relative; margin-left: 6px; vertical-align: 0.1em; }
.marca i { position: absolute; left: 0; width: 100%; height: 1.6px; }
.marca i:nth-child(1) { top: 0; background: var(--amarillo); }
.marca i:nth-child(2) { top: 2.7px; background: var(--naranja); }
.marca i:nth-child(3) { top: 5.4px; background: var(--rosa); }

/* ---------- Pie: el sistema de anotación (filete, marca de ocaso y dos datos) ---------- */
.pie { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-top: 12px; position: relative; font: 400 12.5px/1.45 var(--mono); color: var(--hueso-3); max-width: 100%; }
.pie::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 1px; background: var(--filete); }
.pie__a { color: var(--hueso); position: relative; padding-left: 19px; }
.pie__a::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 12px; height: 1.6px; background: var(--amarillo); box-shadow: 0 2.7px 0 var(--naranja), 0 5.4px 0 var(--rosa); }

/* ---------- Botón ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--hueso); color: var(--tinta); font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer; transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
.boton:hover { background: var(--amarillo); }
.boton:active { transform: translateY(1px); }
.boton:disabled { background: var(--hueso-3); cursor: progress; }
.boton--nav, .boton--fino { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 0 var(--g); background: transparent; border-bottom: 1px solid transparent; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.nav-solida .nav { background: var(--tinta); border-bottom-color: var(--filete); }
.nav__marca { font: 700 20px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; }
.nav__menu ul { display: flex; gap: 26px; }
.nav__menu a { font: 500 14.5px/1 var(--sans); color: var(--hueso-2); text-decoration: none; transition: color 0.2s; }
.nav__menu a:hover { color: var(--hueso); }
.nav__cesta { font: 400 12.5px/1 var(--mono); color: var(--hueso-3); white-space: nowrap; text-align: right; }
.nav__cesta.llena { color: var(--hueso); }
.nav__cesta.llena .nav__cesta-t::first-letter { color: var(--amarillo); }
.vuelo { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 25; pointer-events: none; }
.fps { position: fixed; left: 10px; bottom: 10px; z-index: 50; font: 400 12px/1 var(--mono); background: var(--hueso); color: var(--tinta); padding: 6px 8px; }

/* ---------- Hero: sol → frasco ---------- */
main, .pie-pagina { position: relative; z-index: 1; }
.hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: calc(var(--nav-h) + clamp(28px, 7vh, 72px)) var(--g) clamp(28px, 6vh, 64px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(2.2rem, 1rem + 2.7vw, 3.7rem); max-width: 16ch; }
.hero h1 .l { display: inline-block; }
.hero__sub { margin-top: 20px; max-width: 34ch; color: var(--hueso-2); font-size: 1.0625rem; }
.hero__frasco { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; align-content: end; gap: 24px 40px; padding: 0 var(--g) clamp(28px, 6vh, 64px); pointer-events: none; visibility: hidden; }
.hero__frasco h2 { font-size: clamp(2rem, 1.1rem + 2.4vw, 3.4rem); margin-bottom: 16px; max-width: 13ch; }
.hero__frasco-texto p { color: var(--hueso-2); max-width: 36ch; }
.hero__pie { justify-self: end; width: min(19.5rem, 25vw); }
.poster { margin: 0; font: 400 9px/1.1 var(--mono); color: var(--hueso-2); pointer-events: none; white-space: pre; }
.con-gl .poster { display: none; }
.poster--sol { position: absolute; left: 66%; top: 46%; transform: translate(-50%, -50%); color: var(--amarillo); }
.sin-gl .poster--sol, html:not(.js) .poster--sol { top: 50vh; }
.poster--frasco { display: none; }

/* Sin movimiento, sin WebGL o sin JS: el hero se queda quieto y el frasco va debajo. */
.rm .hero, .sin-gl .hero, html:not(.js) .hero { height: auto; overflow: visible; }
.rm .hero__gl { position: relative; height: 100vh; height: 100dvh; }
.sin-gl .hero__gl, html:not(.js) .hero__gl { display: none; }
.sin-gl .hero__copy, html:not(.js) .hero__copy { position: relative; min-height: 100vh; min-height: 100dvh; }
.rm .hero__copy { height: 100vh; height: 100dvh; }
.rm .hero__frasco, .sin-gl .hero__frasco, html:not(.js) .hero__frasco { position: relative; visibility: visible; opacity: 1; padding-top: clamp(48px, 8vh, 96px); grid-template-columns: auto minmax(0, 1fr); align-items: end; }
.rm .poster--frasco, .sin-gl .poster--frasco, html:not(.js) .poster--frasco { display: block; grid-row: span 2; font-size: 8px; color: var(--hueso); }
.rm .hero__pie, .sin-gl .hero__pie, html:not(.js) .hero__pie { justify-self: start; width: auto; }

/* ---------- El momento de Señal ---------- */
.mos { position: relative; }
.mos__pin { position: relative; padding: calc(var(--nav-h) + 40px) var(--g) 64px; }
.mos__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mos__rotulo { position: relative; margin-bottom: 24px; }
.mos__titulo { position: relative; font-size: clamp(2rem, 3.6vw, 3.5rem); max-width: 15em; margin-bottom: 32px; }
.mos__consulta { position: relative; max-width: 620px; margin-bottom: 32px; }
.mos__quien { font: 400 12.5px/1.4 var(--mono); color: var(--hueso-3); margin-bottom: 8px; }
.mos__campo { min-height: 56px; display: flex; align-items: center; padding: 0 18px; background: var(--tinta-2); border-bottom: 1px solid var(--hueso-3); font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.3 var(--mono); }
.mos__texto.is-tecleando::after { content: ''; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--amarillo); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filtro {
  --on: 1; --fw: calc(var(--on) * 100%);
  --filete: linear-gradient(var(--amarillo), var(--amarillo)) 0 calc(100% - 5px) / var(--fw) 1.5px no-repeat, linear-gradient(var(--naranja), var(--naranja)) 0 calc(100% - 2.5px) / var(--fw) 1.5px no-repeat, linear-gradient(var(--rosa), var(--rosa)) 0 100% / var(--fw) 1.5px no-repeat;
  position: relative; display: inline-flex; align-items: baseline; gap: 10px; min-height: 36px; padding: 7px 12px 10px;
  font: 400 14px/1.3 var(--mono); background: var(--filete), var(--tinta-2); color: var(--hueso-2); transition: color .4s;
}
.filtro__n { color: var(--hueso-3); opacity: var(--on); }
.filtro.is-on { background: var(--filete), var(--hueso); color: var(--tinta); }
.filtro.is-on .filtro__n { color: #4A4844; }
.mos__cartas { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 236px)); gap: 28px; }
.mos__final { position: relative; max-width: 34ch; margin-top: 32px; font-size: 1.125rem; }
.mos__tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 6px 10px; background: var(--hueso); color: var(--tinta); font: 400 12.5px/1.3 var(--mono); white-space: nowrap; }
.carta { background: var(--tinta); position: relative; padding-top: 14px; }
.carta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filete); }
.carta__foto { margin: 0 0 12px; height: 150px; display: flex; font: 400 8.5px/1 var(--mono); white-space: pre; overflow: hidden; }
.carta[data-id="serum"] .carta__foto, .tarjeta__foto { color: #F6A83C; }
.carta[data-id="gel"] .carta__foto { color: #F2B7C6; }
.carta[data-id="solar"] .carta__foto { color: var(--amarillo); }
.carta__marca { font: 400 12px/1.4 var(--mono); color: var(--hueso-3); }
.carta__nombre { font: 600 1.1rem/1.2 var(--sans); letter-spacing: -0.015em; margin: 2px 0 8px; }
.carta__datos { display: flex; justify-content: space-between; gap: 12px; font: 400 13px/1.4 var(--mono); color: var(--hueso-2); }
.carta__precio { margin-top: 8px; font: 700 1.4rem/1.1 var(--sans); color: var(--amarillo); font-variant-numeric: tabular-nums; }
.carta__precio s { font-size: .9rem; font-weight: 400; color: var(--hueso-3); margin-left: 6px; }
html.js:not(.rm) .mos__pin { height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
html.js:not(.rm) .mos__rotulo { position: absolute; top: calc(var(--nav-h) + 14px); right: var(--g); margin: 0; z-index: 2; }
html.js:not(.rm) .mos__titulo { position: absolute; top: calc(var(--nav-h) + 6vh); left: var(--g); margin: 0; z-index: 2; }
html.js:not(.rm) .mos__consulta { max-width: none; position: absolute; top: calc(var(--nav-h) + 4.5vh); left: var(--g); width: min(780px, calc(100% - 2 * var(--g))); margin: 0; z-index: 2; opacity: 0; }
html.js:not(.rm) .mos__cartas { position: absolute; top: 33%; left: 50%; transform: translateX(-50%); z-index: 3; }
html.js:not(.rm) .carta { visibility: hidden; }
html.js:not(.rm) .mos__final { position: absolute; left: var(--g); bottom: 12%; margin: 0; z-index: 2; opacity: 0; }

/* ---------- Conversación: guion a dos voces ---------- */
.conv { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.conv__fondo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.conv__pie { position: relative; z-index: 1; justify-self: start; background: var(--tinta); padding-right: 14px; box-shadow: 0 0 0 10px var(--tinta); }
.conv__escena { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(16px, 3vh, 32px); padding: calc(var(--nav-h) + 4.5vh) var(--g) clamp(22px, 4.5vh, 48px); }
.conv__titulo { font-size: clamp(2rem, 1.1rem + 2.1vw, 3.1rem); max-width: 20ch; }
.chat { align-self: center; width: min(68rem, 100%); display: grid; row-gap: clamp(12px, 2.3vh, 24px); font: 400 clamp(15px, 0.5rem + 1.02vw, 23px)/1.36 var(--mono); }
.msg { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); column-gap: 1.1em; align-items: baseline; }
.msg .quien { font: 400 13px/1.4 var(--mono); color: var(--hueso-3); }
.msg--vera .quien { color: var(--hueso); }
.msg--vera .quien::after { content: ""; display: inline-block; width: 12px; height: 1.6px; margin-left: 8px; vertical-align: 0.3em; background: var(--amarillo); box-shadow: 0 2.7px 0 var(--naranja), 0 5.4px 0 var(--rosa); }
.msg .t { max-width: 54ch; }
.msg--clienta .t { color: var(--hueso-2); }
.msg.escribiendo .t { color: var(--hueso-3); }
.msg--tarjeta > .tarjeta { grid-column: 2; }
.msg--ok { display: block; padding-left: 7.5em; }
.tarjeta { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 1.2em; align-items: end; padding: 14px 0 2px; position: relative; max-width: 34em; }
.tarjeta::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--filete); }
.tarjeta__foto { margin: 0; font: 400 9px/1 var(--mono); min-width: 81px; min-height: 153px; white-space: pre; }
.tarjeta__datos p { line-height: 1.3; }
.tarjeta__marca { font-size: 13px; color: var(--hueso-3); margin-bottom: 4px; }
.tarjeta__formato { color: var(--hueso-2); font-size: max(0.72em, 12px); }
.tarjeta__precio { font-size: 1.2em; margin-top: 6px; }
.rm .conv, html:not(.js) .conv { height: auto; min-height: 100vh; }

/* ---------- Panorámica ---------- */
.pan { position: relative; overflow: hidden; border-top: 1px solid var(--filete); }
.pan__pista { display: flex; flex-direction: column; gap: 56px; padding: 96px var(--g); }
.pan__intro h2 { font-size: clamp(2rem, 3.8vw, 3.75rem); max-width: 11em; }
.pan__intro p { margin-top: 20px; max-width: 34ch; font-size: 1.125rem; color: var(--hueso-2); }
.cap { display: grid; gap: 22px; }
.cap__senal { display: block; width: 100%; height: 300px; }
.cap h3 { font-size: clamp(1.5rem, 2.2vw, 2.125rem); margin-bottom: 12px; letter-spacing: -0.025em; }
.cap p { max-width: 40ch; color: var(--hueso-2); }
@media (min-width: 900px) {
  html.js:not(.rm) .pan__pista { flex-direction: row; align-items: stretch; gap: 0; height: 100vh; height: 100svh; width: max-content; padding: calc(var(--nav-h) + 6vh) 0 8vh; }
  html.js:not(.rm) .pan__intro { width: 40vw; padding: 0 5vw 0 var(--g); display: flex; flex-direction: column; justify-content: center; }
  html.js:not(.rm) .cap { width: 40vw; grid-template-rows: 1fr auto; padding: 0 2.2vw; gap: 4vh; }
  html.js:not(.rm) .cap__senal { height: 100%; min-height: 320px; }
  html.js:not(.rm) .cap:nth-of-type(even) { grid-template-rows: auto 1fr; }
  html.js:not(.rm) .cap--b, html.js:not(.rm) .cap--e { width: 44vw; }
  html.js:not(.rm) .cap--d { width: 46vw; }
  html.js:not(.rm) .cap--g { width: 44vw; padding-right: var(--g); }
}

/* ---------- Pedidos ---------- */
.ped { padding: clamp(96px, 16vh, 180px) var(--g); border-top: 1px solid var(--filete); }
.ped h2 { max-width: 13ch; font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); margin-bottom: clamp(40px, 7vh, 72px); }
.ped__fila { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); margin-bottom: clamp(64px, 10vh, 120px); }
.ped__texto > p { max-width: 42ch; font-size: 1.0625rem; color: var(--hueso-2); }
.ped__texto > p + p { margin-top: 14px; }
.ped__llaves { width: 100%; height: clamp(180px, 30vh, 300px); }
.ped__form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-top: 28px; align-items: end; }
.ped__ejemplo { grid-column: 1 / -1; font: 400 12.5px/1.5 var(--mono); color: var(--hueso-3); }
.ped__form .boton { grid-column: 1 / -1; justify-self: start; }
.ped__res { grid-column: 1 / -1; min-height: 132px; }
.estado { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.estado li { position: relative; padding: 14px 12px 0 0; border-top: 3px solid var(--filete); font-weight: 600; }
.estado li.hecho { border-top-color: var(--hueso); }
.estado li.ahora { border-top-color: var(--amarillo); }
.estado small { display: block; font: 400 12.5px/1.4 var(--mono); color: var(--hueso-3); }
.ped__res .nada { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--filete); color: var(--hueso); }
.ped__res .cab { margin-top: 18px; color: var(--hueso-2); }
.ped__res .dato { color: var(--amarillo); }
#cv-tachado { width: 100%; height: clamp(320px, 74vh, 800px); }
.ped .ped__nunca { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.6rem); max-width: 16ch; margin-bottom: clamp(28px, 5vh, 56px); padding-top: clamp(24px, 4vh, 48px); border-top: 1px solid var(--filete); }
html.js:not(.rm) .lec { min-height: 100vh; min-height: 100dvh; padding-top: calc(var(--nav-h) + 3vh); padding-bottom: 3vh; display: flex; flex-direction: column; justify-content: center; }
html.js:not(.rm) .lec__fila { margin-bottom: clamp(24px, 4vh, 48px); }

/* ---------- Campos ---------- */
.campo { display: grid; gap: 6px; }
.campo label { font: 400 12.5px/1.4 var(--mono); color: var(--hueso); }
.campo input { width: 100%; min-height: 46px; background: transparent; color: var(--hueso); border: 0; border-bottom: 1px solid var(--hueso-3); border-radius: 0; font: 400 17px/1.3 var(--sans); padding: 8px 0; transition: border-color 0.2s; }
.campo input::placeholder { color: var(--hueso-3); }
.campo input:focus { outline: none; border-bottom: 2px solid var(--amarillo); }
.campo input:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 4px; }
.campo input[aria-invalid="true"] { border-bottom-color: var(--rosa); }
.campo__error { min-height: 1.3em; font: 400 13px/1.3 var(--mono); color: #F48FB1; }

/* ---------- Se lee sola ---------- */
.lec { padding: clamp(80px, 14vh, 160px) var(--g) clamp(56px, 10vh, 120px); border-top: 1px solid var(--filete); }
.lec__fila { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 7vh, 80px); }
.lec__cabeza { display: grid; gap: 18px; }
.lec__cabeza > p:not(.lec__reloj) { color: var(--hueso-2); max-width: 40ch; }
.lec__reloj { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--filete); min-height: 7.4em; font: 400 14px/1.45 var(--mono); color: var(--hueso); }
.lec__hora { font: 600 clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem)/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#cv-precio { display: block; width: 100%; height: clamp(200px, 25vw, 460px); }
.lec__banda canvas { display: block; width: 100%; }
.nota canvas { display: block; margin-bottom: 18px; }

/* ---------- Instalación propia ---------- */
.propia { position: relative; padding: clamp(72px, 12vh, 140px) var(--g) clamp(56px, 9vh, 100px); border-top: 1px solid var(--filete); }
.propia__lienzo { display: block; width: 100%; height: clamp(380px, 76vh, 760px); }
.propia__texto { position: absolute; top: clamp(72px, 12vh, 140px); left: var(--g); max-width: 31rem; }
.propia__texto h2 { margin-bottom: 18px; max-width: 13ch; }
.propia__texto p { color: var(--hueso-2); max-width: 42ch; }
.propia__rotulos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
.propia__rotulos .pie { justify-content: center; }
.propia__rotulos .pie::before { left: 50%; transform: translateX(-50%); }

/* ---------- Panel ---------- */
.pnl { padding: clamp(80px, 14vh, 160px) var(--g); border-top: 1px solid var(--filete); }
.pnl__cabeza { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(32px, 6vh, 64px); }
.pnl__lista { display: grid; gap: 12px; }
.pnl__lista li { position: relative; padding-left: 24px; color: var(--hueso-2); }
.pnl__lista li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 1.6px; background: var(--amarillo); box-shadow: 0 2.7px 0 var(--naranja), 0 5.4px 0 var(--rosa); }
.pnl__carta { padding-top: 24px; border-top: 1px solid var(--filete); }
.pnl__correo { font: 400 14px/1.75 var(--mono); color: var(--hueso); margin-bottom: 12px; }
.pnl__correo span { display: inline-block; width: 6.5em; color: var(--hueso-3); }
#cv-clave { width: 100%; height: clamp(240px, 52vh, 580px); }

/* ---------- Cierre ---------- */
.cie { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; align-items: end; padding: clamp(80px, 12vh, 140px) var(--g) clamp(48px, 8vh, 96px); border-top: 1px solid var(--filete); overflow: hidden; }
.cie__sol { position: absolute; inset: 0; width: 100%; height: 100%; }
.cie__caja { position: relative; z-index: 1; width: min(32rem, 100%); background: var(--tinta); padding: 28px 28px 8px 0; }
.cie h2 { margin-bottom: 14px; max-width: 14ch; }
.cie__caja > p { color: var(--hueso-2); margin-bottom: 24px; max-width: 40ch; }
.form { display: grid; gap: 10px; }
.form .boton { justify-self: start; margin-top: 8px; }
.form__estado:empty { display: none; }
.form.enviado { display: none; }

/* ---------- Pie de página ---------- */
.pie-pagina { padding: clamp(56px, 10vh, 110px) var(--g) 36px; border-top: 1px solid var(--filete); }
#cv-firma { display: block; width: 100%; height: clamp(150px, 34vw, 500px); margin-bottom: 36px; }
.pie-pagina__fila { display: grid; grid-template-columns: 1.3fr 1.3fr auto; gap: 24px 40px; font: 400 12.5px/1.5 var(--mono); color: var(--hueso-3); align-items: start; }
.pie-pagina__links { display: grid; gap: 6px; }
.pie-pagina__links a { color: var(--hueso); }


/* ---------- Formulario: casilla, información y estados ---------- */
.campo--casilla { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; margin-top: 6px; }
.campo--casilla input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--amarillo); border: 0; padding: 0; }
.campo--casilla label { font: 400 14px/1.5 var(--sans); color: var(--hueso-2); }
.campo--casilla .campo__error { grid-column: 2; }
.campo--casilla a, .form__info a, .form__estado a { color: var(--hueso); }
.form__info { margin-top: 14px; font: 400 12px/1.55 var(--mono); color: var(--hueso-3); max-width: 60ch; }
.form__info strong { color: var(--hueso-2); font-weight: 400; }
.form__estado { font: 400 15px/1.5 var(--mono); color: var(--hueso); max-width: 44ch; margin-top: 18px; }
.form__estado:empty { display: none; }
.form__estado::before { content: none; }
.form__estado.ok::before { content: "✓ "; color: var(--amarillo); }
.form__estado.error { color: #F48FB1; }
.form__estado.error::before { content: "× "; }
.form.enviando .boton { background: var(--hueso-3); cursor: progress; }

/* ---------- Pie: enlaces legales ---------- */
.pie-pagina__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--filete); font: 400 12.5px/1.5 var(--mono); color: var(--hueso-3); }
.pie-pagina__legal a { color: var(--hueso-2); }
.pie-pagina__legal a:hover { color: var(--hueso); }
.pie-pagina__legal span { margin-left: auto; }

/* ---------- Banner de cookies: Rechazar y Aceptar con el mismo peso ---------- */
.cookies { position: fixed; z-index: 30; left: var(--g); right: var(--g); bottom: 16px; max-width: 46rem; margin-left: auto; padding: 20px 22px; background: var(--tinta-2); border: 1px solid var(--filete); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.cookies[hidden] { display: none; }
.cookies__t { font: 600 1.15rem/1.2 var(--sans); letter-spacing: -0.01em; margin-bottom: 8px; max-width: none; }
.cookies__d { font-size: 14.5px; color: var(--hueso-2); max-width: 62ch; }
.cookies__d a { color: var(--hueso); }
.cookies__ajustes { display: grid; gap: 10px; margin-top: 14px; }
.cookies__ajustes[hidden] { display: none; }
.cookies__op { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 14px; color: var(--hueso-2); align-items: start; }
.cookies__op input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amarillo); }
.cookies__op strong { color: var(--hueso); font-weight: 600; }
.cookies__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.boton--cookie { min-height: 42px; padding: 0 18px; font-size: 14px; flex: 1 1 auto; }
.boton--cookie[hidden] { display: none; }

/* ---------- Páginas legales y 404 ---------- */
.legal { max-width: 46rem; padding: calc(var(--nav-h) + clamp(48px, 10vh, 110px)) var(--g) clamp(64px, 12vh, 140px); margin: 0 auto; box-sizing: content-box; }
.legal h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); margin-bottom: 14px; max-width: 16ch; }
.legal__fecha { font: 400 12.5px/1.5 var(--mono); color: var(--hueso-3); margin-bottom: clamp(32px, 6vh, 56px); }
.legal h2 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.8rem); max-width: none; margin: 40px 0 12px; letter-spacing: -0.02em; line-height: 1.15; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--hueso-2); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 12px; height: 1.6px; background: var(--amarillo); box-shadow: 0 2.7px 0 var(--naranja), 0 5.4px 0 var(--rosa); }
.legal a { color: var(--hueso); }
.legal strong { color: var(--hueso); font-weight: 600; }
.legal .tabla { width: 100%; overflow-x: auto; margin: 14px 0; }
.legal table { border-collapse: collapse; width: 100%; font: 400 13.5px/1.5 var(--sans); color: var(--hueso-2); }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filete); vertical-align: top; }
.legal th { font: 400 12px/1.4 var(--mono); color: var(--hueso); }
.legal td code, .legal code { font: 400 13px/1.4 var(--mono); color: var(--hueso); }
.legal .pendiente { color: var(--amarillo); }
.nav--simple { grid-template-columns: auto 1fr auto; background: var(--tinta); border-bottom-color: var(--filete); }
.e404 { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding: calc(var(--nav-h) + 40px) var(--g) 60px; }
.e404 pre { margin: 0; font: 400 7px/1.05 var(--mono); color: var(--amarillo); white-space: pre; overflow: hidden; max-width: 100%; }
.e404 h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); max-width: 18ch; }
.e404 p { color: var(--hueso-2); max-width: 46ch; }
.e404__botones { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) { .nav__menu { display: none; } .nav { grid-template-columns: auto 1fr auto; } }
@media (max-width: 359px) { .nav__cesta { visibility: hidden; } }
/* Qué hace, en vertical (móvil y tableta): siempre el título y su texto primero y la animación debajo. */
@media (max-width: 899px) { .cap { display: flex; flex-direction: column; } .cap__texto { order: -1; } }
@media (max-width: 759px) {
  :root { --nav-h: 54px; }
  body { font-size: 16px; }
  /* En móvil el formulario queda muy abajo: la cabecera lleva siempre el botón, más compacto. */
  .nav, .nav--simple { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .nav__cesta { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .boton--nav { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
  /* El dibujo de la 404 (131 columnas) cabe entero en el ancho de la pantalla. */
  .e404 pre { font-size: calc((100vw - 2 * var(--g)) / 80); }
  .hero h1 { font-size: clamp(2rem, 9.2vw, 2.7rem); }
  .hero__sub { font-size: 1rem; margin-top: 14px; }
  .hero__frasco { grid-template-columns: 1fr; padding-bottom: 22px; gap: 14px; }
  .hero__frasco h2 { font-size: 1.9rem; margin-bottom: 10px; }
  .hero__pie { justify-self: start; width: 100%; }
  .hero__pie .pie__b { display: none; }
  .poster--sol { left: 50%; top: 56%; font-size: 5px; }
  .sin-gl .poster--sol, html:not(.js) .poster--sol { top: 64vh; }
  .mos__cartas { grid-template-columns: 1fr; gap: 8px; }
  .carta { display: grid; grid-template-columns: 1fr 80px; gap: 12px; }
  .carta__foto { grid-column: 2; grid-row: 1; height: 64px; font-size: 4px; margin: 0; }
  .carta { padding-top: 8px; }
  .carta__marca { display: none; }
  .carta__cuerpo { grid-column: 1; grid-row: 1; }
  .carta__nombre { font-size: 1rem; margin: 0 0 4px; }
  .carta__precio { margin-top: 4px; font-size: 1.1rem; }
  html.js:not(.rm) .mos__rotulo { top: calc(var(--nav-h) + 6px); left: var(--g); right: var(--g); }
  html.js:not(.rm) .mos__titulo { top: calc(var(--nav-h) + 56px); font-size: 2rem; }
  html.js:not(.rm) .mos__consulta { top: calc(var(--nav-h) + 54px); }
  html.js:not(.rm) .mos__cartas { top: 36%; left: var(--g); right: var(--g); transform: none; }
  html.js:not(.rm) .mos__final { bottom: 6%; max-width: none; right: var(--g); font-size: 0.9375rem; line-height: 1.45; background: var(--tinta); padding: 6px 0 8px; }
  .filtro { min-height: 32px; padding: 5px 9px 8px; font-size: 12.5px; gap: 6px; }
  .filtro__q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filtros { gap: 6px; }
  .mos__campo { min-height: 48px; font-size: 1rem; }
  .conv__escena { padding-top: calc(var(--nav-h) + 14px); padding-bottom: 18px; gap: 14px; }
  .conv__titulo { font-size: 1.7rem; }
  .chat { align-self: start; font-size: 14.5px; row-gap: 12px; }
  .msg { grid-template-columns: minmax(0, 1fr); }
  .msg .quien { font-size: 12px; margin-bottom: 2px; }
  .msg--tarjeta > .tarjeta { grid-column: 1; }
  .msg--ok { padding-left: 0; }
  .tarjeta__foto { font-size: 7px; min-width: 63px; min-height: 119px; }
  .ped__fila { grid-template-columns: 1fr; }
  .ped__form { grid-template-columns: 1fr; }
  #cv-tachado { height: 96vw; }
  .lec__fila { grid-template-columns: 1fr; }
  #cv-precio { height: 40vw; }
  html.js:not(.rm) .lec__cabeza > p:not(.lec__reloj) { font-size: 0.95rem; }
  html.js:not(.rm) .lec__reloj { min-height: 5.6em; }
  .propia__texto { position: static; margin-bottom: 20px; }
  .propia__lienzo { height: 92vw; }
  .propia__rotulos { gap: 8px; }
  .propia__rotulos .pie { font-size: 12px; gap: 2px 8px; }
  .pnl__cabeza { grid-template-columns: 1fr; }
  #cv-clave { height: 70vw; }
  .cie { align-items: end; }
  .cie__sol { height: 60%; }
  .cie__caja { padding: 20px 0 0; }
  .pie-pagina__fila { grid-template-columns: 1fr; }
  .pie-pagina__legal span { margin-left: 0; width: 100%; }
  .cookies { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  #cv-firma { height: 60vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
