/*
 * Landing de trno. Sistema de diseño Oficio: tinta, papel y un solo color vivo.
 * Los tokens son los mismos de la app (src/theme/theme.ts); aquí van escritos porque la landing
 * vive aparte y no importa nada de ella.
 */

@font-face {
  font-family: "Archivo";
  src: url("fuentes/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Registrados como color para que el cambio de tema del último capítulo pueda fundirse. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #f1f1ee; }
@property --sheet { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --sunk { syntax: "<color>"; inherits: true; initial-value: #f6f6f3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #121212; }
@property --ink2 { syntax: "<color>"; inherits: true; initial-value: #4a4a47; }
@property --ink3 { syntax: "<color>"; inherits: true; initial-value: #686864; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e2e2de; }
@property --line2 { syntax: "<color>"; inherits: true; initial-value: #ededea; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #121212; }
@property --on-primary { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #1f5c45; }
@property --on-accent { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: #e4eee8; }
/* Los parámetros de cada animación no se heredan: una pieza animada dentro de otra usa los suyos. */
@property --a { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --l { syntax: "<time>"; inherits: false; initial-value: 0.14s; }
@property --k { syntax: "*"; inherits: false; }
@property --e { syntax: "*"; inherits: false; }

:root {
  color-scheme: light dark;
  --bg: #f1f1ee;
  --sheet: #ffffff;
  --sunk: #f6f6f3;
  --ink: #121212;
  --ink2: #4a4a47;
  --ink3: #686864;
  --line: #e2e2de;
  --line2: #ededea;
  --primary: #121212;
  --on-primary: #ffffff;
  --pend: #8a5300;
  --pend-bg: #fdf3e1;
  --miss: #b3261e;
  --miss-bg: #fcefec;
  --miss-line: rgba(179, 38, 30, 0.35);
  --bar-past: #cfcfca;
  --t-dia: #7a4b00;
  --t-dia-bg: #fff3d3;
  --t-tarde: #9a3412;
  --t-tarde-bg: #fde7dc;
  --t-noche: #3730a3;
  --t-noche-bg: #e7e7f8;
  --accent: #1f5c45;
  --on-accent: #ffffff;
  --accent-soft: #e4eee8;
  --accent-line: rgba(31, 92, 69, 0.35);
  --sombra: 0 1px 2px rgba(18, 18, 18, 0.06), 0 0 0 1px rgba(18, 18, 18, 0.04);
  --sombra-aparato: 0 44px 90px -30px rgba(18, 18, 18, 0.5), 0 14px 30px -12px rgba(18, 18, 18, 0.22);
  --borde-aparato: #c9c9c4;
  --aparato: #161615;
  --cab: 68px;
  --m: clamp(20px, 4vw, 64px);
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo oscuro de Oficio: grafito cálido. Se repite en tres lugares porque CSS no tiene mezclas:
   el sistema en oscuro, el modo forzado por el capítulo de apariencia y la sección de tinta. */
@media (prefers-color-scheme: dark) {
  :root:not([data-modo="claro"]) {
    --bg: #121110;
    --sheet: #1c1b19;
    --sunk: #161513;
    --ink: #eceae4;
    --ink2: #bab7ae;
    --ink3: #96938b;
    --line: #312f2b;
    --line2: #272522;
    --primary: #e2dfd7;
    --on-primary: #171614;
    --pend: #e3b062;
    --pend-bg: #2a2214;
    --miss: #ee8a7f;
    --miss-bg: #2b1816;
    --miss-line: rgba(238, 138, 127, 0.4);
    --bar-past: #3b3935;
    --t-dia: #eac66b;
    --t-dia-bg: #2a2414;
    --t-tarde: #f2a483;
    --t-tarde-bg: #2d1c15;
    --t-noche: #adb2f6;
    --t-noche-bg: #1e1f35;
    --accent: #62bd8f;
    --on-accent: #141311;
    --accent-soft: rgba(98, 189, 143, 0.12);
    --accent-line: rgba(98, 189, 143, 0.3);
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --sombra-aparato: 0 44px 90px -24px rgba(0, 0, 0, 0.9), 0 0 70px -10px rgba(255, 255, 255, 0.07);
    --borde-aparato: #4a4843;
    --aparato: #2b2a27;
  }
}
:root[data-modo="oscuro"],
.tinta {
  --bg: #121110;
  --sheet: #1c1b19;
  --sunk: #161513;
  --ink: #eceae4;
  --ink2: #bab7ae;
  --ink3: #96938b;
  --line: #312f2b;
  --line2: #272522;
  --primary: #e2dfd7;
  --on-primary: #171614;
  --pend: #e3b062;
  --pend-bg: #2a2214;
  --miss: #ee8a7f;
  --miss-bg: #2b1816;
  --miss-line: rgba(238, 138, 127, 0.4);
  --bar-past: #3b3935;
  --t-dia: #eac66b;
  --t-dia-bg: #2a2414;
  --t-tarde: #f2a483;
  --t-tarde-bg: #2d1c15;
  --t-noche: #adb2f6;
  --t-noche-bg: #1e1f35;
  --accent: #62bd8f;
  --on-accent: #141311;
  --accent-soft: rgba(98, 189, 143, 0.12);
  --accent-line: rgba(98, 189, 143, 0.3);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --sombra-aparato: 0 44px 90px -24px rgba(0, 0, 0, 0.9), 0 0 70px -10px rgba(255, 255, 255, 0.07);
    --borde-aparato: #4a4843;
  --aparato: #2b2a27;
}
html.tema-vivo {
  transition:
    --bg 0.5s, --sheet 0.5s, --sunk 0.5s, --ink 0.5s, --ink2 0.5s, --ink3 0.5s, --line 0.5s, --line2 0.5s,
    --primary 0.5s, --on-primary 0.5s, --accent 0.5s, --on-accent 0.5s, --accent-soft 0.5s;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--cab) + 16px);
  scrollbar-color: var(--ink3) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html:not(.js) .con-js {
  display: none !important;
}
.saltar {
  position: fixed;
  left: var(--m);
  top: 12px;
  z-index: 40;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}
.saltar:focus-visible {
  transform: none;
}

/* ---------- Botones (píldora negra de Oficio) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.1s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.16s,
    border-color 0.16s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-p {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-p:hover {
  background: color-mix(in srgb, var(--primary) 84%, var(--bg));
}
.btn-s {
  background: var(--sheet);
  border-color: var(--line);
}
.btn-s:hover {
  border-color: var(--ink3);
}
.btn-g {
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 1rem;
}
.btn-papel {
  background: var(--on-accent);
  color: var(--accent);
}
.btn-papel:hover {
  background: color-mix(in srgb, var(--on-accent) 90%, var(--accent));
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--cab);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--m);
  background: var(--bg);
}
.marca {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  min-height: 44px;
  padding-top: 0.35rem;
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  text-decoration: none;
}
/* El punto de la marca es el mismo que señala el ítem activo del menú en la app. */
.marca i {
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--accent);
}
.cabecera-nav {
  display: flex;
  gap: 0.125rem;
  margin-left: auto;
}
.cabecera-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: background-color 0.16s, color 0.16s;
}
.modo {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sheet);
  font-size: 1.125rem;
  transition: border-color 0.16s, transform 0.1s cubic-bezier(0.2, 0, 0, 1);
}
.modo:hover {
  border-color: var(--ink3);
}
.modo:active {
  transform: scale(0.96);
}
.modo .ic-sol,
.modo[data-oscuro="true"] .ic-luna {
  display: none;
}
.modo[data-oscuro="true"] .ic-sol {
  display: block;
}
.cabecera-nav a:hover {
  background: var(--sunk);
  color: var(--ink);
}

/* ---------- Recorrido ---------- */
.tour {
  padding-top: var(--cab);
}
.escenario {
  padding: 2rem var(--m) 4rem;
}
.textos {
  display: grid;
  gap: 3.5rem;
  max-width: 44rem;
  margin-bottom: 3rem;
}
.cap h1 {
  font-size: clamp(2rem, 2.5vw + 0.55rem, 3.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}
.cap h2 {
  font-size: clamp(1.625rem, 2.2vw + 0.45rem, 2.625rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}
.cap > p {
  margin-top: 1.25rem;
  max-width: 33rem;
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.1875rem);
  color: var(--ink2);
}
.cap > .nota {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink3);
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.puntos {
  display: grid;
}
.puntos li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}
.cap .puntos {
  max-width: 30rem;
  margin-top: 1.5rem;
}
.grupo {
  position: relative;
  width: min(100%, 60rem);
  aspect-ratio: 1000 / 640;
}
.riel {
  display: none;
}

/* Con JavaScript: el escenario queda fijo y el scroll hace avanzar la película. */
.js .tour {
  height: calc(var(--n) * 100vh + 100svh);
  padding: 0;
}
.js .escenario {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  --riel: 64px;
  --alto: calc(100svh - var(--cab) - var(--riel));
  --W: min(56vw, calc((var(--alto) - 40px) * 1.5625));
  --col: calc(var(--sw, 100vw) - var(--W) - var(--m) * 3);
}
.js .textos {
  display: block;
  max-width: none;
  margin: 0;
}
.js .cap {
  position: absolute;
  top: calc(var(--cab) + var(--alto) / 2);
  left: var(--m);
  width: min(var(--col), 34rem);
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.js .cap.der {
  left: calc(var(--m) * 2 + var(--W));
}
.js .cap-inicio {
  opacity: 1;
}
.js .cap.activo {
  pointer-events: auto;
}
.js .grupo {
  position: absolute;
  top: calc(var(--cab) + var(--alto) / 2);
  right: var(--m);
  width: var(--W);
  transform: translateY(-50%);
}
.js .escenario.listo .grupo {
  left: 0;
  right: auto;
}

/* Botón de reproducción: discreto, en la barra de la ventana. Toma color solo mientras reproduce. */
.auto {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink3);
  font-size: 11px;
  transition: color 0.16s;
}
.auto::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sheet);
  transition: border-color 0.16s, background-color 0.16s;
}
.auto .ic {
  position: relative;
  grid-area: 1 / 1;
  fill: currentColor;
}
.auto .ic-pausa,
.auto[aria-pressed="true"] .ic-play {
  display: none;
}
.auto[aria-pressed="true"] .ic-pausa {
  display: block;
}
.auto:hover,
.auto:focus-visible {
  color: var(--ink);
}
.auto:hover::before {
  border-color: var(--ink3);
}
.auto[aria-pressed="true"] {
  color: var(--on-accent);
}
.auto[aria-pressed="true"]::before {
  border-color: var(--accent);
  background: var(--accent);
}

.js .riel {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--riel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--m);
}
.riel::before,
.riel::after {
  content: "";
  position: absolute;
  left: var(--m);
  right: var(--m);
  top: 0;
  height: 1px;
  background: var(--line);
}
.riel::after {
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--av, 0));
}
.riel ol {
  display: flex;
  margin-left: -0.5rem;
}
.riel button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--ink3);
  white-space: nowrap;
  transition: color 0.2s;
}
.riel button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.2s, transform 0.2s;
}
.riel button:hover {
  color: var(--ink);
}
.riel button[aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.riel button[aria-current]::before {
  background: var(--accent);
  transform: scale(1.5);
}
.riel p {
  font-size: 0.75rem;
  color: var(--ink3);
  white-space: nowrap;
}

/* ---------- Aparatos ---------- */
.aparatos {
  position: absolute;
  inset: 0;
}
.ventana,
.telefono {
  position: absolute;
  left: 0;
  top: 0;
  container-type: inline-size;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-select: none;
}
/* El tamaño se cambia con el ancho, no con una escala: así el texto se vuelve a dibujar nítido. */
.ventana {
  width: 96%;
  transform: translate(4.17%, 0);
}
.telefono {
  width: 23%;
  z-index: 2;
  transform: translate(0, 36%);
  --sube: 4cqw;
}
.esc {
  display: none;
  position: absolute;
  inset: 0;
}
.e-cal,
.t-portal {
  display: block;
}
.js .esc {
  display: block;
  opacity: 0;
  visibility: hidden;
}
.js .e-cal,
.js .t-portal {
  opacity: 1;
  visibility: visible;
}
html:not(.js) :is(.relleno, .capa-silla, .aviso, .anillo, .toque) {
  display: none;
}

/* Animaciones atadas al scroll: cada escena recibe --p (0 a 1) y cada pieza dice cuándo empieza (--a)
   y cuánto dura (--l) dentro de ese segundo imaginario. Pausadas: solo avanzan si cambia --p. */
.js .an {
  animation: var(--k, k-sube) var(--l, 0.14s) var(--e, var(--salida)) both paused;
  animation-delay: calc((var(--a, 0) - var(--p, 0)) * 1s);
}
.js .esc.fin .an {
  animation: none;
}
.js .esc.fin .t-tira {
  transform: translateX(calc(-300% - 36cqw));
}
.js .esc.fin :is(.toque, .aviso, .cita .anillo, .cupon .anillo, [style*="k-sale"]) {
  opacity: 0;
}
@keyframes k-sube {
  from { opacity: 0; transform: translateY(var(--sube, 1.2cqw)); }
}
@keyframes k-entra {
  from { opacity: 0; }
}
@keyframes k-sale {
  to { opacity: 0; transform: translateY(calc(var(--sube, 1.2cqw) * -0.6)); }
}
@keyframes k-pop {
  from { opacity: 0; transform: scale(0.8); }
}
@keyframes k-cae {
  from { opacity: 0; transform: translateY(calc(var(--sube, 1.2cqw) * -1.6)) scale(0.96); }
}
@keyframes k-ancho {
  from { transform: scaleX(var(--de, 0)); }
}
@keyframes k-crece {
  from { transform: scaleY(0); }
}
@keyframes k-cajon {
  from { transform: translateX(104%); }
}
@keyframes k-hoja {
  from { transform: translateY(104%); }
}
@keyframes k-anillo {
  0% { opacity: 0; transform: scale(0.98); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.07); }
}
@keyframes k-toque {
  0% { opacity: 0; transform: scale(0.3); }
  30% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes k-aviso {
  0% { opacity: 0; transform: translateY(-1cqw); }
  12%, 84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-1cqw); }
}
@keyframes k-tira {
  0% { transform: translateX(0); }
  16% { transform: translateX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  26% { transform: translateX(calc(-100% - 12cqw)); }
  40% { transform: translateX(calc(-100% - 12cqw)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  50% { transform: translateX(calc(-200% - 24cqw)); }
  64% { transform: translateX(calc(-200% - 24cqw)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  74%, 100% { transform: translateX(calc(-300% - 36cqw)); }
}
@keyframes pulso {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 0; transform: scale(3.2); }
}
.toque {
  --k: k-toque;
  position: absolute;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.telefono .toque {
  width: 12cqw;
  height: 12cqw;
}
/* Dos versiones de un mismo dato, una encima de la otra, para pasar de la primera a la segunda. */
.cambia {
  display: inline-grid;
  position: relative;
  justify-items: start;
  align-items: center;
}
.cambia > * {
  grid-area: 1 / 1;
}

/* ---------- Ventana de computadora (1cqw = 1 % de su ancho) ---------- */
.v-marco {
  aspect-ratio: 1000 / 640;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6cqw;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--borde-aparato), var(--sombra-aparato);
  font-size: 1.16cqw;
  line-height: 1.35;
  color: var(--ink);
}
.v-marco i,
.v-marco em,
.t-marco i,
.t-marco em {
  font-style: normal;
}
.v-barra {
  flex: none;
  height: 3.2cqw;
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0 1.4cqw;
  border-bottom: 1px solid var(--line);
}
.v-barra i {
  width: 0.95cqw;
  height: 0.95cqw;
  border-radius: 50%;
  background: var(--line);
}
.v-app {
  flex: 1;
  display: flex;
  min-height: 0;
}
.v-lado {
  flex: none;
  width: 17cqw;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  padding: 1.5cqw 1.1cqw 1.2cqw;
}
.v-neg {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
}
.v-neg > b {
  flex: none;
  width: 3cqw;
  height: 3cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.3cqw;
  font-weight: 800;
  font-stretch: 125%;
}
.v-neg strong {
  display: block;
  font-size: 1.28cqw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.v-neg small {
  display: block;
  font-size: 0.92cqw;
  color: var(--ink3);
}
.v-sede {
  height: 3cqw;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1cqw;
  border: 1px solid var(--line);
  border-radius: 1cqw;
  background: var(--sunk);
  font-size: 1.02cqw;
  font-weight: 600;
}
.v-menu {
  position: relative;
  display: grid;
  margin-top: 0.4cqw;
}
.v-menu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.9cqw;
  border-radius: 1cqw;
  background: var(--sheet);
  box-shadow: var(--sombra);
  transform: translateY(calc(var(--mi) * 2.9cqw));
  transition: transform 0.5s var(--salida);
}
.v-menu li {
  position: relative;
  height: 2.9cqw;
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0 1cqw;
  font-size: 1.1cqw;
  color: var(--ink2);
}
.v-menu .ic {
  font-size: 1.35cqw;
}
.v-menu li.on {
  color: var(--ink);
  font-weight: 700;
}
.v-menu li.on::after {
  content: "";
  width: 0.55cqw;
  height: 0.55cqw;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
}
.v-nueva {
  height: 3.6cqw;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  border-radius: 99cqw;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.1cqw;
  font-weight: 700;
}
.v-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0.8cqw 0.8cqw 0.8cqw 0;
  overflow: hidden;
  border-radius: 1.8cqw;
  background: var(--sheet);
  box-shadow: var(--sombra);
}
.v-top {
  flex: none;
  height: 5cqw;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0 2.4cqw;
  border-bottom: 1px solid var(--line2);
}
.v-busca {
  flex: 0 1 26cqw;
  height: 2.9cqw;
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  margin-right: auto;
  padding: 0 1.1cqw;
  border: 1px solid var(--line2);
  border-radius: 99cqw;
  background: var(--sunk);
  color: var(--ink3);
}
.v-local {
  height: 2.6cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1cqw;
  border: 1px solid var(--accent-line);
  border-radius: 99cqw;
  background: var(--accent-soft);
  font-size: 1cqw;
  font-weight: 650;
}
.v-local i {
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: var(--accent);
}
.v-ico {
  display: grid;
  place-items: center;
  font-size: 1.5cqw;
  color: var(--ink2);
}
.m-av {
  flex: none;
  width: 2.6cqw;
  height: 2.6cqw;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sunk);
  font-size: 0.88cqw;
  font-weight: 700;
  color: var(--ink);
}
.v-escenas {
  flex: 1;
  position: relative;
  min-height: 0;
}
.ventana .esc {
  padding: 2cqw 2.4cqw 0;
}

/* Piezas comunes de las pantallas */
.m-cab {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2cqw;
  margin-bottom: 1.3cqw;
}
.m-cab small {
  display: block;
  font-size: 1.02cqw;
  font-weight: 500;
  color: var(--ink2);
}
.m-h1 {
  display: block;
  font-size: 3cqw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.m-acc {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.m-seg {
  display: inline-flex;
  padding: 0.3cqw;
  border: 1px solid var(--line2);
  border-radius: 99cqw;
  background: var(--sunk);
}
.m-seg i {
  display: inline-flex;
  align-items: center;
  gap: 0.4cqw;
  padding: 0.45cqw 1.1cqw;
  border-radius: 99cqw;
  font-size: 1cqw;
  color: var(--ink2);
}
.m-seg i.on {
  background: var(--sheet);
  box-shadow: var(--sombra);
  color: var(--ink);
  font-weight: 700;
}
.m-btn {
  position: relative;
  height: 3.1cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0 1.5cqw;
  border-radius: 99cqw;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.04cqw;
  font-weight: 700;
  white-space: nowrap;
}
.m-btn.chico {
  height: 2.7cqw;
  padding: 0 1.1cqw;
  font-size: 0.96cqw;
}
.m-pill {
  position: relative;
  height: 3.1cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1.3cqw;
  border: 1px solid var(--line);
  border-radius: 99cqw;
  background: var(--sheet);
  font-size: 1.02cqw;
  font-weight: 650;
  white-space: nowrap;
}
.m-chips {
  display: flex;
  gap: 0.6cqw;
  margin-bottom: 1.3cqw;
}
.m-chips > i {
  position: relative;
  height: 2.8cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0 1.2cqw;
  border: 1px solid var(--line);
  border-radius: 99cqw;
  font-size: 1cqw;
  font-weight: 600;
  white-space: nowrap;
}
.m-chips > i.on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.m-chips > i.cambia {
  display: inline-grid;
}
.m-card {
  border: 1px solid var(--line);
  border-radius: 1.6cqw;
  background: var(--sheet);
}

/* Estados de cita: siempre ícono y texto además del color */
.est {
  height: 1.7cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.3cqw;
  padding: 0 0.65cqw;
  border: 1px solid var(--ink);
  border-radius: 99cqw;
  background: var(--sheet);
  color: var(--ink);
  font-size: 0.84cqw;
  font-weight: 650;
  white-space: nowrap;
}
.c-pend .est,
.est.e-pend {
  border: 1px dashed var(--pend);
  background: var(--pend-bg);
  color: var(--pend);
}
.est.e-silla {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.c-comp .est,
.est.e-comp {
  border-color: var(--line);
  background: var(--sunk);
  color: var(--ink2);
}
.c-miss .est {
  border-color: var(--miss);
  color: var(--miss);
}

/* Calendario */
.cal {
  --hh: 7.2cqw;
  --tc: 5.2cqw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6cqw;
}
.cal-cab {
  display: grid;
  grid-template-columns: var(--tc) repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.cal-cab > span {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.8cqw 1cqw;
  border-left: 1px solid var(--line2);
}
.cal-cab > span:first-child {
  border-left: 0;
}
.cal-cab strong {
  display: block;
  font-size: 1.1cqw;
  line-height: 1.15;
}
.cal-cab small {
  display: block;
  font-size: 0.9cqw;
  color: var(--ink3);
}
.cal-cuerpo {
  position: relative;
  display: grid;
  grid-template-columns: var(--tc) repeat(4, 1fr);
  height: calc(var(--hh) * 5);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hh) - 1px), var(--line2) calc(var(--hh) - 1px) var(--hh));
}
.cal-horas {
  display: grid;
  grid-template-rows: repeat(5, var(--hh));
}
.cal-horas span {
  padding: 0.3cqw 0.7cqw 0 0;
  font-size: 0.9cqw;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink3);
}
.cal-carril {
  position: relative;
  border-left: 1px solid var(--line2);
}
.cita {
  position: absolute;
  left: 0.4cqw;
  right: 0.4cqw;
  top: calc((var(--i) - 9) * var(--hh) + 0.2cqw);
  height: calc(var(--t) * var(--hh) - 0.4cqw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55cqw 0.8cqw 0.55cqw 1.4cqw;
  border: 1px solid var(--line);
  border-radius: 0.9cqw;
  background: var(--sheet);
}
/* La barra de estado es una pieza aparte, no un borde, igual que en el calendario de la app. */
.cita::before {
  content: "";
  position: absolute;
  left: 0.5cqw;
  top: 0.55cqw;
  bottom: 0.55cqw;
  width: 0.3cqw;
  border-radius: 9cqw;
  background: var(--ink);
}
.cita b {
  overflow: hidden;
  font-size: 1.02cqw;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cita > span,
.cita .capa > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5cqw;
  font-size: 0.94cqw;
  color: var(--ink2);
}
.c-pend {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--pend) 60%, transparent);
}
.c-pend::before {
  background: repeating-linear-gradient(to bottom, var(--pend) 0 0.5cqw, transparent 0.5cqw 0.8cqw);
}
.c-comp {
  background: var(--sunk);
  color: var(--ink2);
}
.c-comp::before {
  background: var(--bar-past);
}
.c-silla,
.capa-silla {
  color: var(--on-accent);
}
.c-silla {
  border-color: var(--accent);
  background: var(--accent);
}
.c-silla::before {
  background: var(--on-accent);
  opacity: 0.75;
}
.c-silla > span,
.cita .capa-silla > span {
  color: inherit;
}
.c-silla .est,
.capa-silla .est {
  border-color: var(--on-accent);
  background: var(--on-accent);
  color: var(--accent);
}
.c-miss {
  border-color: var(--miss-line);
  background: repeating-linear-gradient(135deg, var(--miss-bg) 0 0.6cqw, var(--sheet) 0.6cqw 1.2cqw);
}
.c-miss::before {
  background: var(--miss);
}
.cita.cambia {
  display: grid;
  grid-template: 1fr / minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
}
.cita .capa {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.relleno {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--accent);
}
.cita .anillo {
  position: absolute;
  inset: -0.35cqw;
  border: 0.25cqw solid var(--accent);
  border-radius: 1.2cqw;
  pointer-events: none;
}
.cal-ahora {
  position: absolute;
  left: var(--tc);
  right: 0;
  top: calc(2.4 * var(--hh));
  z-index: 2;
  height: 1px;
  background: var(--miss);
}
.cal-ahora i {
  position: absolute;
  left: -0.4cqw;
  top: -0.4cqw;
  width: 0.85cqw;
  height: 0.85cqw;
  border-radius: 50%;
  background: var(--miss);
}
.cal-ahora i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--miss);
  animation: pulso 2.4s var(--salida) infinite;
}
.aviso {
  position: absolute;
  top: 1cqw;
  right: 2.4cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.9cqw 1.4cqw 0.9cqw 1.1cqw;
  border-radius: 1.3cqw;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1.4cqw 3cqw -1.2cqw rgba(0, 0, 0, 0.4);
}
.aviso .ic {
  font-size: 1.5cqw;
}
.aviso strong {
  display: block;
  font-size: 1.05cqw;
}
.aviso small {
  display: block;
  font-size: 0.92cqw;
  color: color-mix(in srgb, var(--bg) 78%, var(--ink));
}

/* Panel */
.kpis {
  display: grid;
  gap: 1cqw;
  margin-bottom: 1.2cqw;
}
.k4 {
  grid-template-columns: repeat(4, 1fr);
}
.k3 {
  grid-template-columns: repeat(3, 1fr);
}
.kpi {
  position: relative;
  min-height: 8.6cqw;
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  padding: 1.2cqw 1.3cqw;
  border: 1px solid var(--line);
  border-radius: 1.6cqw;
}
.kpi small {
  font-size: 1cqw;
  font-weight: 600;
}
.kpi > b {
  margin-top: auto;
  font-size: 2.3cqw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi em {
  font-size: 0.9cqw;
  color: var(--ink2);
}
.kpi-ic {
  position: absolute;
  top: 1cqw;
  right: 1cqw;
  width: 2.6cqw;
  height: 2.6cqw;
  display: grid;
  place-items: center;
  border-radius: 0.8cqw;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3cqw;
}
.barra {
  position: relative;
  display: block;
  height: 0.5cqw;
  margin-top: 0.5cqw;
  overflow: hidden;
  border-radius: 9cqw;
  background: var(--line2);
}
.barra i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0 50%;
}
.rot {
  padding: 1.2cqw 1.4cqw;
}
.rot-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  margin-bottom: 0.9cqw;
  padding-bottom: 1cqw;
  border-bottom: 1px solid var(--line2);
}
.rot-cab strong {
  display: block;
  font-size: 1.25cqw;
}
.rot-cab small {
  font-size: 0.94cqw;
  color: var(--ink2);
}
.rot-fila {
  display: grid;
  grid-template-columns: 17cqw 1fr auto 13cqw;
  align-items: center;
  gap: 1cqw;
  padding: 0.8cqw 1cqw;
  border: 1px solid var(--line2);
  border-radius: 1.2cqw;
  background: var(--sunk);
}
.rot-fila + .rot-fila {
  margin-top: 0.7cqw;
}
.rot-area {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  font-size: 1.06cqw;
  font-weight: 700;
}
.rot-area i {
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: var(--accent);
}
.rot-area small {
  margin-left: auto;
  padding: 0.15cqw 0.6cqw;
  border-radius: 9cqw;
  background: var(--sheet);
  font-size: 0.82cqw;
  font-weight: 500;
  color: var(--ink2);
}
.rot-turno {
  display: grid;
  padding: 0.55cqw 0.8cqw;
  border: 1px solid var(--line2);
  border-radius: 1cqw;
  background: var(--sheet);
}
.rot-turno > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.rot-turno small {
  display: block;
  font-size: 0.84cqw;
  font-weight: 650;
  color: var(--accent);
}
.rot-turno strong {
  display: block;
  font-size: 1.04cqw;
}
.rot-espera {
  display: grid;
  justify-items: end;
  font-size: 0.9cqw;
  color: var(--ink2);
}
.rot-espera > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.4cqw;
}
.rot-espera .m-av {
  width: 2.1cqw;
  height: 2.1cqw;
  font-size: 0.72cqw;
}

/* Clientes */
.tabla {
  overflow: hidden;
}
.tabla-cab,
.tabla-fila {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.5fr 0.8fr;
  align-items: center;
  gap: 1cqw;
  padding: 0 1.5cqw;
}
.tabla-cab {
  height: 3.2cqw;
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
  font-size: 0.9cqw;
  font-weight: 600;
  color: var(--ink2);
}
.tabla-cab span:last-child {
  text-align: right;
}
.tabla-fila {
  position: relative;
  isolation: isolate;
  height: 6.6cqw;
  border-bottom: 1px solid var(--line2);
  font-size: 1cqw;
}
.tabla-fila:last-child {
  border-bottom: 0;
}
.tabla-fila > span:first-of-type {
  display: flex;
  align-items: center;
  gap: 1cqw;
}
.tabla-fila > span:last-of-type {
  justify-self: end;
}
.tabla-fila strong {
  display: block;
  font-size: 1.06cqw;
}
.tabla-fila small {
  display: block;
  font-size: 0.88cqw;
  color: var(--ink2);
}
.tabla-fila .anillo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-soft);
}
.tag {
  height: 1.9cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.3cqw;
  padding: 0 0.8cqw;
  border: 1px solid var(--line);
  border-radius: 9cqw;
  background: var(--sheet);
  font-size: 0.88cqw;
  font-weight: 650;
  color: var(--ink);
}
.t-vip {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.t-nuevo {
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.t-pend {
  border: 1px dashed var(--pend);
  background: var(--pend-bg);
  color: var(--pend);
}
.cajon {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  width: 31cqw;
  display: flex;
  flex-direction: column;
  gap: 1.1cqw;
  padding: 2cqw 1.8cqw;
  border-left: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: -2cqw 0 4cqw -2.4cqw rgba(18, 18, 18, 0.22);
}
.cajon-cab {
  display: flex;
  align-items: center;
  gap: 1cqw;
}
.cajon-cab .m-av {
  width: 4cqw;
  height: 4cqw;
  font-size: 1.3cqw;
}
.cajon-cab strong {
  display: block;
  margin-bottom: 0.3cqw;
  font-size: 1.5cqw;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cajon dl {
  display: grid;
  margin: 0;
}
.cajon dl div {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  padding: 0.7cqw 0;
  border-bottom: 1px solid var(--line2);
  font-size: 1cqw;
}
.cajon dt {
  color: var(--ink2);
}
.cajon dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cajon > strong {
  font-size: 1.1cqw;
}
.cajon ul {
  display: grid;
  gap: 0.6cqw;
}
.cajon li {
  display: grid;
  grid-template-columns: 4.2cqw 1fr auto;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.7cqw 0.9cqw;
  border: 1px solid var(--line2);
  border-radius: 1cqw;
  font-size: 0.96cqw;
}
.cajon li span {
  font-size: 0.88cqw;
  color: var(--ink2);
}

/* Servicios y productos: listas del catálogo */
.lista {
  overflow: hidden;
}
.item {
  display: grid;
  grid-template-columns: 1fr 9cqw 9cqw;
  align-items: center;
  gap: 1cqw;
  height: 5.9cqw;
  padding: 0 1.5cqw;
  border-bottom: 1px solid var(--line2);
  font-size: 1cqw;
}
.con-icono .item {
  grid-template-columns: auto 1fr 9cqw 9cqw;
}
.item:last-child {
  border-bottom: 0;
}
.item strong {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  font-size: 1.1cqw;
}
.item small {
  display: block;
  font-size: 0.9cqw;
  color: var(--ink2);
}
.item .dur {
  font-variant-numeric: tabular-nums;
  color: var(--ink2);
}
.item > b {
  justify-self: end;
  font-size: 1.3cqw;
  font-weight: 800;
  font-stretch: 122%;
  font-variant-numeric: tabular-nums;
}
.item .p-ic {
  background: var(--sunk);
  color: var(--ink2);
}
.kpi.bajo {
  min-height: 6.4cqw;
}
.kpi.bajo > b {
  font-size: 1.9cqw;
}
/* Personal */
.equipo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
}
.persona {
  display: flex;
  gap: 1.1cqw;
  min-height: 11.6cqw;
  padding: 1.3cqw 1.4cqw;
}
.persona .m-av {
  width: 3.8cqw;
  height: 3.8cqw;
  font-size: 1.15cqw;
}
.persona > span {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.35cqw;
}
.persona strong {
  font-size: 1.12cqw;
}
.persona small {
  font-size: 0.9cqw;
  color: var(--ink2);
}
.persona.invitada {
  border-style: dashed;
  border-color: var(--accent-line);
}
/* Cupones: el código manda */
.cupon strong {
  font-stretch: 122%;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cupon {
  min-height: 11.4cqw;
}
.cupon .anillo {
  position: absolute;
  inset: -0.35cqw;
  border: 0.25cqw solid var(--accent);
  border-radius: 1.9cqw;
  pointer-events: none;
}

/* Promociones */
.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
}
.promo {
  position: relative;
  min-height: 13.6cqw;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 1cqw;
  row-gap: 0.15cqw;
  padding: 1.2cqw 1.3cqw 1.1cqw;
}
.p-ic {
  grid-row: span 2;
  width: 3cqw;
  height: 3cqw;
  display: grid;
  place-items: center;
  border-radius: 0.9cqw;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.45cqw;
}
.promo strong {
  font-size: 1.06cqw;
  line-height: 1.25;
}
.promo b {
  font-size: 1cqw;
  font-weight: 700;
  color: var(--accent);
}
.promo p {
  grid-column: 1 / -1;
  margin-top: 0.6cqw;
  font-size: 0.94cqw;
  line-height: 1.4;
  color: var(--ink2);
}
.promo small {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 0.5cqw;
  font-size: 0.84cqw;
  color: var(--ink3);
}
.promo.nueva {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25cqw var(--accent-soft);
}

/* Comentarios */
.resenas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1cqw;
}
.resena {
  display: grid;
  gap: 0.6cqw;
  padding: 1.3cqw 1.5cqw;
}
.resena > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.resena > div:first-child strong {
  font-size: 1.15cqw;
}
.resena > div:first-child .tag {
  margin-left: auto;
}
.resena small {
  font-size: 0.88cqw;
  color: var(--ink2);
}
.resena p {
  font-size: 1.04cqw;
  line-height: 1.45;
}
.estrellas {
  display: inline-flex;
  gap: 0.15cqw;
  font-size: 1.2cqw;
  color: var(--bar-past);
}
.estrellas[data-n="2"] svg:nth-child(-n + 2),
.estrellas[data-n="5"] svg {
  color: var(--accent);
  fill: currentColor;
}
.etiquetas {
  display: flex;
  gap: 0.5cqw;
}
.etiquetas i {
  padding: 0.25cqw 0.8cqw;
  border-radius: 9cqw;
  background: var(--sunk);
  font-size: 0.86cqw;
  color: var(--ink2);
}
.respuesta {
  display: flex;
  gap: 0.8cqw;
  margin-top: 0.3cqw;
  padding: 0.9cqw 1cqw;
  border-radius: 1cqw;
  background: var(--accent-soft);
  font-size: 0.96cqw;
}
.respuesta strong {
  display: block;
  font-size: 0.88cqw;
  color: var(--accent);
}
.respuesta .ic {
  margin-top: 0.2cqw;
  font-size: 1.2cqw;
  color: var(--accent);
}

/* Analíticas */
.anal-fila {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1cqw;
}
.grafico {
  padding: 1.3cqw 1.5cqw 1cqw;
}
.grafico strong,
.dicen strong {
  display: block;
  font-size: 1.15cqw;
}
.barras {
  height: 13cqw;
  display: flex;
  align-items: flex-end;
  gap: 0.9cqw;
  margin-top: 1cqw;
  border-bottom: 1px solid var(--line);
}
.barras i {
  --k: k-crece;
  --l: 0.22s;
  flex: 1;
  height: var(--h);
  border-radius: 0.5cqw 0.5cqw 0 0;
  background: var(--bar-past);
  transform-origin: 50% 100%;
}
.barras i.hoy {
  background: var(--accent);
}
.eje {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5cqw;
  font-size: 0.84cqw;
  color: var(--ink3);
}
.dicen {
  display: grid;
  align-content: start;
  gap: 0.8cqw;
  padding: 1.3cqw 1.5cqw;
}
.dicen p {
  display: grid;
  grid-template-columns: 5.2cqw 1fr;
  gap: 0.6cqw;
  font-size: 1cqw;
  line-height: 1.4;
}
.dicen p b {
  font-size: 0.86cqw;
  font-weight: 700;
  line-height: 1.6;
  color: var(--accent);
}
.dicen p b.ojo {
  color: var(--miss);
}
.menu {
  position: absolute;
  top: calc(100% + 0.6cqw);
  right: 0;
  z-index: 3;
  display: grid;
  gap: 0.2cqw;
  padding: 0.6cqw;
  border: 1px solid var(--line);
  border-radius: 1.2cqw;
  background: var(--sheet);
  box-shadow: 0 1.4cqw 3cqw -1.2cqw rgba(18, 18, 18, 0.3);
  transform-origin: 100% 0;
}
.menu i {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.6cqw 1cqw;
  border-radius: 0.8cqw;
  font-size: 1cqw;
  font-weight: 600;
  white-space: nowrap;
}
.menu i:first-child {
  background: var(--sunk);
}

/* Horarios */
.h-dia {
  background: var(--t-dia-bg);
  color: var(--t-dia);
}
.h-tarde {
  background: var(--t-tarde-bg);
  color: var(--t-tarde);
}
.h-noche {
  background: var(--t-noche-bg);
  color: var(--t-noche);
}
.h-libre {
  outline: 1px dashed var(--line);
  outline-offset: -1px;
  background: var(--sheet);
  color: var(--ink2);
}
.m-chips.leyenda > i {
  height: 2.3cqw;
  border: 0;
  font-size: 0.9cqw;
}
.rol {
  overflow: hidden;
}
.rol-cab,
.rol-fila {
  display: grid;
  grid-template-columns: 15cqw repeat(7, 1fr);
  align-items: center;
  gap: 0.5cqw;
  padding: 0 1.2cqw;
}
.rol-cab {
  height: 4.4cqw;
  border-bottom: 1px solid var(--line);
  font-size: 0.9cqw;
  text-align: center;
  color: var(--ink2);
}
.rol-cab span:first-child {
  font-weight: 600;
  text-align: left;
}
.rol-cab b {
  display: block;
  font-size: 1.1cqw;
  color: var(--ink);
}
.rol-fila {
  height: 5.4cqw;
  border-bottom: 1px solid var(--line2);
}
.rol-fila:last-child {
  border: 0;
}
.rol-fila > span {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.rol-fila strong {
  display: block;
  font-size: 1cqw;
  white-space: nowrap;
}
.rol-fila small {
  display: block;
  font-size: 0.84cqw;
  color: var(--ink2);
}
.rol-fila > i {
  --k: k-pop;
  --l: 0.1s;
  --a: calc(0.04 + var(--c) * 0.07 + var(--r) * 0.025);
  height: 4.2cqw;
  display: grid;
  place-content: center;
  border-radius: 0.8cqw;
  font-size: 0.9cqw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rol-fila > i small {
  font-size: 0.78cqw;
  font-weight: 500;
  color: inherit;
}

/* Ajustes › Apariencia */
.apar {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1cqw;
}
.apar .m-card {
  display: grid;
  align-content: start;
  gap: 0.5cqw;
  padding: 1.5cqw 1.6cqw;
}
.apar strong {
  font-size: 1.2cqw;
}
.apar small {
  font-size: 0.94cqw;
  color: var(--ink2);
}
.temas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8cqw;
  margin-top: 0.8cqw;
}
.temas span {
  display: grid;
  gap: 0.8cqw;
  padding: 1cqw 1.1cqw;
  border: 1px solid var(--line);
  border-radius: 1.2cqw;
  font-size: 1cqw;
  font-weight: 600;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.temas span i {
  height: 4.2cqw;
  border-radius: 0.8cqw;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.temas span.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 0.15cqw var(--ink);
}
.modos {
  justify-self: start;
  margin-top: 0.8cqw;
}
.muestra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8cqw;
  margin-top: 1.2cqw;
  padding: 1.2cqw;
  border-radius: 1.2cqw;
  background: var(--sunk);
}
.muestra .barra {
  flex-basis: 100%;
}
.muestra .est {
  height: 2.2cqw;
  padding: 0 0.9cqw;
  font-size: 0.94cqw;
}

/* ---------- Celular (1cqw = 1 % de su ancho) ---------- */
.t-marco {
  aspect-ratio: 300 / 620;
  padding: 3cqw;
  border-radius: 14cqw;
  background: var(--aparato);
  box-shadow: var(--sombra-aparato);
}
.t-pant {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 11.2cqw;
  background: var(--bg);
  font-size: 4cqw;
  line-height: 1.35;
  color: var(--ink);
}
.t-pant::before {
  content: "";
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  z-index: 5;
  width: 24cqw;
  height: 6.4cqw;
  margin-left: -12cqw;
  border-radius: 9cqw;
  background: var(--aparato);
}
.telefono .esc {
  padding: 13cqw 5.5cqw 5cqw;
}
.telefono .m-av {
  width: 9cqw;
  height: 9cqw;
  font-size: 3.1cqw;
}
.telefono .esc > p {
  margin-bottom: 4cqw;
  font-size: 4.1cqw;
  line-height: 1.4;
  color: var(--ink2);
}
.t-neg {
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin-bottom: 5cqw;
}
.t-neg > b {
  flex: none;
  width: 13cqw;
  height: 13cqw;
  display: grid;
  place-items: center;
  border-radius: 3.6cqw;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 4.6cqw;
  font-weight: 800;
}
.t-neg strong {
  display: block;
  font-size: 5cqw;
  font-weight: 800;
  line-height: 1.15;
}
.t-neg small {
  display: block;
  font-size: 3.6cqw;
  color: var(--ink2);
}
.t-neg.chico {
  margin-bottom: 3.5cqw;
}
.t-neg.chico > b {
  width: 9cqw;
  height: 9cqw;
  border-radius: 2.6cqw;
  font-size: 3.3cqw;
}
.t-neg.chico strong {
  font-size: 4.2cqw;
}
.t-h1 {
  display: block;
  margin-bottom: 2.5cqw;
  font-size: 9cqw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.t-h2 {
  display: block;
  margin-bottom: 3cqw;
  font-size: 6cqw;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.t-btn {
  position: relative;
  height: 13cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  border-radius: 99cqw;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 4.4cqw;
  font-weight: 700;
}
.t-btn.claro {
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
}
.t-btn.cambia {
  display: grid;
  justify-items: center;
}
.t-btn.cambia > span {
  display: inline-flex;
  align-items: center;
  gap: 2cqw;
}
.t-card {
  display: grid;
  gap: 0.6cqw;
  padding: 3.6cqw 4cqw;
  border: 1px solid var(--line);
  border-radius: 5cqw;
  background: var(--sheet);
}
.t-card + .t-card {
  margin-top: 2.4cqw;
}
.t-card strong {
  font-size: 4.3cqw;
}
.t-card small {
  font-size: 3.6cqw;
  color: var(--ink2);
}
.t-sec {
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin: 5cqw 0 2.5cqw;
  font-size: 4.8cqw;
  font-weight: 700;
}
.t-horas {
  grid-template-columns: auto 1fr;
  gap: 2.5cqw;
  margin-top: 4cqw;
  font-size: 3.6cqw;
}
.t-horas .ic {
  margin-top: 0.6cqw;
  font-size: 4.4cqw;
  color: var(--ink2);
}
.t-promo {
  display: grid;
  gap: 1.2cqw;
  padding: 4cqw;
  border: 1px solid var(--accent-line);
  border-radius: 5cqw;
  background: var(--accent-soft);
}
.t-promo > b {
  font-size: 9cqw;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  color: var(--accent);
}
.t-promo strong {
  font-size: 4.3cqw;
}
.t-promo small {
  margin-bottom: 2cqw;
  font-size: 3.6cqw;
  color: color-mix(in srgb, var(--ink) 72%, var(--accent));
}
/* Reservar */
.t-pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5cqw;
  margin-bottom: 5cqw;
}
.t-pasos i {
  height: 1.4cqw;
  overflow: hidden;
  border-radius: 9cqw;
  background: var(--line);
}
.t-pasos b {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
}
.t-tira {
  display: flex;
  gap: 12cqw;
}
.t-tira > div {
  flex: 0 0 100%;
  min-width: 0;
}
.t-op {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  margin-bottom: 2.2cqw;
  padding: 3.2cqw 4cqw;
  border: 1px solid var(--line);
  border-radius: 4.5cqw;
  background: var(--sheet);
}
.t-op strong {
  display: block;
  font-size: 4.2cqw;
}
.t-op small {
  display: block;
  font-size: 3.5cqw;
  color: var(--ink2);
}
.t-op > b {
  font-size: 4.2cqw;
  font-variant-numeric: tabular-nums;
}
.con-av {
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.t-op .sel {
  position: absolute;
  inset: -1px;
  border: 0.7cqw solid var(--ink);
  border-radius: inherit;
  pointer-events: none;
}
.t-dias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2cqw;
  margin-bottom: 4cqw;
}
.t-dias i {
  display: grid;
  justify-items: center;
  padding: 2.4cqw 0;
  border: 1px solid var(--line);
  border-radius: 4cqw;
  background: var(--sheet);
  font-size: 3.5cqw;
  color: var(--ink2);
}
.t-dias b {
  font-size: 5.2cqw;
  color: var(--ink);
}
.t-dias i.on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.t-dias i.on b {
  color: inherit;
}
.t-rot {
  display: block;
  margin-bottom: 2cqw;
  font-size: 3.6cqw;
  color: var(--ink2);
}
.t-horas-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
}
.t-horas-g > i {
  position: relative;
  height: 11cqw;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 99cqw;
  background: var(--sheet);
  font-size: 4.2cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.t-horas-g .sel,
.t-etq .sel {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--primary);
  color: var(--on-primary);
}
.t-hecho {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3cqw;
  padding-top: 12cqw;
  text-align: center;
}
.t-check {
  width: 22cqw;
  height: 22cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11cqw;
}
.t-hecho .t-h2 {
  margin: 0;
}
.t-hecho .t-card {
  width: 100%;
  text-align: left;
}
.t-hecho .t-card span {
  margin-top: 1cqw;
  font-size: 3.8cqw;
  font-weight: 600;
}
.t-hecho .t-btn {
  width: 100%;
}
/* App en el celular */
.t-top {
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  margin-bottom: 4cqw;
}
.t-top .v-local {
  height: 8.5cqw;
  gap: 2cqw;
  margin-left: auto;
  padding: 0 3.5cqw;
  font-size: 3.6cqw;
}
.t-top .v-local i {
  width: 2cqw;
  height: 2cqw;
}
.t-mas {
  width: 10cqw;
  height: 10cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 5cqw;
}
.t-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4cqw;
  margin-bottom: 2.4cqw;
}
.t-kpis .t-card {
  gap: 0.4cqw;
  margin: 0;
  padding: 3cqw 3.4cqw;
}
.t-kpis small {
  font-size: 3.3cqw;
  font-weight: 600;
  color: var(--ink);
}
.t-kpis b {
  font-size: 5.8cqw;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.t-kpis em {
  font-size: 3.2cqw;
  color: var(--ink2);
}
.telefono .barra {
  height: 1.6cqw;
  margin-top: 1.5cqw;
}
.t-rot-c > div {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding-top: 2cqw;
  font-size: 3.8cqw;
  font-weight: 600;
}
.t-rot-c > div span {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  margin-left: auto;
  font-weight: 500;
}
.punto {
  width: 2cqw;
  height: 2cqw;
  border-radius: 50%;
  background: var(--accent);
}
.t-rot-c .m-av {
  width: 7cqw;
  height: 7cqw;
  font-size: 2.5cqw;
}
.t-tabs {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 2.5cqw 2cqw 5cqw;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.t-tabs i {
  display: grid;
  justify-items: center;
  gap: 0.8cqw;
  font-size: 2.8cqw;
  color: var(--ink2);
}
.t-tabs .ic {
  font-size: 5.4cqw;
}
.t-tabs i.on {
  color: var(--ink);
  font-weight: 700;
}
.t-tabs i.on .ic {
  color: var(--accent);
}
/* Puntos y niveles */
.t-fidel .t-h1 {
  font-size: 7.6cqw;
}
.t-fidel .t-sec {
  margin-top: 3.5cqw;
  font-size: 4.2cqw;
}
.t-puntos {
  gap: 2.5cqw;
}
.t-puntos > span {
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  font-size: 3.8cqw;
  color: var(--ink2);
}
.t-puntos > span b {
  font-size: 9cqw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.t-nivel {
  position: relative;
  height: 8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2cqw;
}
.t-nivel > i {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1cqw;
  margin-top: -0.5cqw;
  border-radius: 9cqw;
  background: var(--line);
}
.t-nivel > i b {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0 50%;
}
.t-nivel > span {
  position: relative;
  width: 5cqw;
  height: 5cqw;
  display: grid;
  place-items: center;
  border: 0.6cqw solid var(--line);
  border-radius: 50%;
  background: var(--sheet);
}
.t-nivel > span.ok {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.t-nivel > span.ahora {
  width: 7.6cqw;
  height: 7.6cqw;
  box-shadow: 0 0 0 1cqw var(--accent-soft);
  font-size: 4cqw;
}
.t-niveles {
  display: flex;
  justify-content: space-between;
  font-size: 3.2cqw;
  color: var(--ink2);
}
.t-niveles strong {
  font-size: inherit;
  color: var(--ink);
}
.t-puntos small strong {
  font-size: inherit;
}
.t-hist {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3cqw;
}
.t-hist > span:first-child {
  display: grid;
  justify-items: center;
  padding: 1.5cqw 2.5cqw;
  border-radius: 3cqw;
  background: var(--sunk);
  font-size: 3cqw;
  color: var(--ink2);
}
.t-hist > span:first-child b {
  font-size: 5cqw;
  color: var(--ink);
}
.t-hist > span:last-child {
  display: grid;
}
/* Cobro */
.t-velo {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
}
.t-hoja {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2.2cqw;
  padding: 3cqw 5.5cqw 8cqw;
  border-radius: 8cqw 8cqw 0 0;
  background: var(--sheet);
}
.asa {
  justify-self: center;
  width: 12cqw;
  height: 1.4cqw;
  margin-bottom: 1.5cqw;
  border-radius: 9cqw;
  background: var(--line);
}
.t-hoja .t-h2 {
  margin: 0;
}
.t-hoja > small {
  font-size: 3.6cqw;
  color: var(--ink2);
}
.t-linea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding: 2.4cqw 0;
  border-top: 1px solid var(--line2);
  font-size: 3.9cqw;
}
.t-linea > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2cqw;
}
.t-linea b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.t-linea.marca b {
  color: var(--accent);
}
.caja {
  flex: none;
  width: 5.4cqw;
  height: 5.4cqw;
  display: grid;
  place-items: center;
  border: 0.5cqw solid var(--ink);
  border-radius: 1.6cqw;
  font-size: 3.8cqw;
}
.t-linea.total {
  font-size: 4.3cqw;
  font-weight: 700;
}
.t-linea.total b span {
  font-size: 5.6cqw;
  font-weight: 800;
}
.t-listo {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2.5cqw;
  border-radius: inherit;
  background: var(--sheet);
  text-align: center;
}
.t-listo .t-h2 {
  margin: 0;
  padding: 0 6cqw;
}
.t-listo small {
  font-size: 3.8cqw;
  color: var(--ink2);
}
/* Comentar */
.t-valorar .t-h1 {
  font-size: 7.6cqw;
}
.t-estrellas {
  display: flex;
  gap: 2cqw;
  margin-bottom: 5cqw;
}
.t-estrellas span {
  display: grid;
  font-size: 12cqw;
  color: var(--bar-past);
}
.t-estrellas svg {
  grid-area: 1 / 1;
}
.t-estrellas .llena {
  color: var(--accent);
  fill: currentColor;
}
.t-etq {
  display: flex;
  flex-wrap: wrap;
  gap: 2cqw;
  margin-bottom: 4cqw;
}
.t-etq > i {
  position: relative;
  padding: 2cqw 3.4cqw;
  border: 1px solid var(--line);
  border-radius: 9cqw;
  background: var(--sheet);
  font-size: 3.6cqw;
  font-weight: 600;
}
.t-texto {
  min-height: 22cqw;
  align-content: start;
  margin-bottom: 4cqw;
  font-size: 4cqw;
  line-height: 1.4;
}
/* Servicios, venta, invitación y cupón en el celular */
.t-combo {
  border-color: var(--ink);
  box-shadow: 0 0 0 0.5cqw var(--accent-soft);
}
.t-inv {
  position: relative;
  gap: 2.4cqw;
  overflow: hidden;
}
.t-inv .t-btn {
  height: 11.5cqw;
}
.t-codigo {
  margin-top: 3cqw;
  justify-items: center;
  text-align: center;
  border-style: dashed;
}
.t-codigo strong {
  font-size: 6.4cqw;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: 0.03em;
}
.t-cupon .t-promo strong {
  font-size: 4.1cqw;
}
/* Mi horario */
.t-sem {
  display: grid;
  gap: 2cqw;
}
.t-sem > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4cqw 3.6cqw;
  border: 1px solid var(--line);
  border-radius: 4cqw;
  background: var(--sheet);
  font-size: 4cqw;
  font-weight: 600;
}
.t-sem > div.hoy {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.6cqw var(--accent-soft);
}
.t-sem i {
  padding: 1.4cqw 3cqw;
  border-radius: 9cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Secciones ---------- */
.ancho {
  width: min(100% - var(--m) * 2, 76rem);
  margin-inline: auto;
}
.seccion {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7.5rem);
}
.seccion.hoja {
  background: var(--sheet);
}
.tinta {
  background: var(--bg);
  color: var(--ink);
}
.seccion-cab {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.seccion h2,
.cierre h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.032em;
  line-height: 1;
  text-wrap: balance;
}
.seccion-cab p {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--ink2);
}

.oficios li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.25rem, 2.6vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
}
.oficios li:last-child {
  border-bottom: 1px solid var(--line);
}
.oficio {
  font-size: clamp(2.25rem, 6.4vw, 5.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.oficios h3 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.oficios p {
  max-width: 34rem;
  color: var(--ink2);
}

.dos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.dos article {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-top: 2.25rem;
}
.dos article:first-child {
  padding-right: clamp(1.5rem, 4vw, 4rem);
  border-right: 1px solid var(--line);
}
.dos article:last-child {
  padding-left: clamp(1.5rem, 4vw, 4rem);
}
.dos .ic {
  font-size: 1.75rem;
  color: var(--accent);
}
.dos h3 {
  font-size: clamp(1.375rem, 1.6vw + 0.8rem, 1.875rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dos p {
  max-width: 32rem;
  color: var(--ink2);
}
.crece {
  max-width: 40rem;
  margin-top: 3rem;
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
  counter-reset: paso;
}
.pasos li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
  counter-increment: paso;
}
/* Tres pasos reales y en orden; el primero lleva el color porque es el que toca ahora. */
.pasos li::before {
  content: counter(paso);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.pasos li:first-child::before {
  color: var(--accent);
}
.pasos h3 {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.pasos p {
  color: var(--ink2);
}

.preguntas {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.preguntas h2 {
  position: sticky;
  top: calc(var(--cab) + 2rem);
}
.pregunta {
  border-top: 1px solid var(--line);
}
.pregunta:last-child {
  border-bottom: 1px solid var(--line);
}
.pregunta summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.0625rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.pregunta summary::-webkit-details-marker {
  display: none;
}
.pregunta summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s var(--salida);
}
.pregunta[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}
.pregunta p {
  max-width: 40rem;
  padding: 0 2.5rem 1.4rem 0;
  color: var(--ink2);
}

.cierre {
  padding: clamp(5rem, 12vw, 9.5rem) 0;
  background: var(--accent);
  color: var(--on-accent);
}
.cierre .ancho {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}
.cierre h2 {
  font-size: clamp(2.75rem, 8.4vw, 6rem);
  line-height: 0.96;
}
.cierre p {
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem);
  color: color-mix(in srgb, var(--on-accent) 86%, var(--accent));
}
.cierre :focus-visible {
  outline-color: var(--on-accent);
}

.pie {
  padding: 3rem 0 2.5rem;
  font-size: 0.9375rem;
}
.pie .ancho {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}
.pie p {
  max-width: 24rem;
  margin-top: 0.25rem;
  color: var(--ink2);
}
.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.pie nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink2);
  text-decoration: none;
}
.pie nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.pie small {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink3);
}

/* ---------- Página de descarga: las formas de usar trno, con la gramática de los oficios ---------- */
.descarga {
  padding: calc(var(--cab) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 9vw, 7rem);
}
.descarga-cab {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.descarga h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
.descarga-cab p {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--ink2);
}
.opciones {
  container-type: inline-size;
  border-top: 1px solid var(--ink);
}
.opcion {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.op-nombre {
  grid-row: span 2;
  align-self: center;
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-size: clamp(2.5rem, 7.4cqi, 5.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
/* El punto de la marca señala la opción recomendada, como señala el ítem activo del menú en la app. */
.op-nombre i {
  display: none;
  flex: none;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
}
.recomendada .op-nombre i {
  display: block;
}
.opcion[data-estado="pronto"] .op-nombre {
  color: var(--ink3);
}
.op-texto {
  display: grid;
  gap: 0.4rem;
}
.op-texto p {
  max-width: 34rem;
  color: var(--ink2);
}
.op-texto .op-lema {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.op-texto .op-meta {
  font-size: 0.9375rem;
  color: var(--ink3);
}
.op-texto .op-motivo {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--accent);
}
.op-motivo:empty {
  display: none;
}
.op-accion {
  grid-column: 2;
}
.pronto {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink3);
}
.descarga-nota {
  max-width: 40rem;
  margin-top: 3rem;
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}
.descarga + .pie {
  border-top: 1px solid var(--line);
}

/* ---------- Teléfono y tablet vertical: texto arriba, aparatos abajo ---------- */
@media (max-width: 959px) {
  :root {
    --cab: 60px;
  }
  .descarga {
    padding-top: calc(var(--cab) + 1.75rem);
  }
  .descarga-cab {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
  /* En el teléfono el título cabe en dos líneas también a 320 px. */
  .descarga h1 {
    font-size: clamp(2rem, 9.2vw, 3.5rem);
  }
  .opcion {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    padding: 1.75rem 0 2rem;
  }
  .op-nombre {
    grid-row: auto;
    font-size: clamp(2.5rem, 12cqi, 4.25rem);
  }
  .op-accion {
    grid-column: auto;
    margin-top: 0.25rem;
  }
  .cabecera-nav,
  .solo-ancho {
    display: none;
  }
  .cabecera .modo {
    margin-left: auto;
  }
  .js .escenario {
    --riel: 40px;
    --W: min(calc(100vw - var(--m) * 2), calc((48svh - 16px) * 1.5625));
  }
  .js .cap,
  .js .cap.der {
    top: calc(var(--cab) + 0.75rem);
    left: var(--m);
    right: var(--m);
    width: auto;
    transform: none;
  }
  .cap h1 {
    font-size: clamp(1.75rem, 7.6vw, 2.75rem);
  }
  .cap > p {
    margin-top: 0.875rem;
  }
  .acciones {
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .acciones .btn-g {
    min-height: 48px;
    padding: 0 1.15rem;
    font-size: 0.9375rem;
  }
  .cap .puntos {
    margin-top: 1rem;
  }
  .cap .puntos li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
  .js .grupo {
    top: auto;
    bottom: calc(var(--riel) + 12px);
    left: 0;
    right: auto;
    transform: translateX(calc((100vw - var(--W)) / 2));
  }
  .js .riel {
    justify-content: center;
    background: var(--bg);
  }
  .riel ol {
    display: none;
  }
  .oficios li,
  .dos,
  .pasos,
  .preguntas,
  .pie .ancho {
    grid-template-columns: minmax(0, 1fr);
  }
  .dos article:first-child {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dos article:last-child {
    padding-left: 0;
  }
  .preguntas h2 {
    position: static;
  }
  .pregunta p {
    padding-right: 0;
  }
}
/* En pantallas bajas los puntos de cada función ceden el lugar a las pantallas. */
@media (max-width: 959px) and (max-height: 739px) {
  .js .cap .puntos {
    display: none;
  }
}
@media (max-width: 1339px) {
  .riel button:not([aria-current]) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .riel button {
    min-width: 44px;
    justify-content: center;
  }
}
@media (max-width: 959px) {
  .riel p {
    display: block;
  }
}
@media (max-width: 599px) {
  .op-accion .btn {
    width: 100%;
  }
  /* En el teléfono, el motivo de la recomendación ya habla del equipo: la lista de equipos cede su lugar. */
  .op-texto:has(.op-motivo:not(:empty)) .op-equipos {
    display: none;
  }
}

@media (pointer: coarse) {
  .pie nav a,
  .cabecera-nav a {
    min-width: 44px;
  }
}

/* Movimiento reducido: las escenas cambian de golpe (lo decide tour.js) y nada late ni se desliza. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .cal-ahora i::after {
    animation: none;
  }
  .js .auto,
  .js [data-auto] {
    display: none;
  }
}
