/* ==========================================================================
   fuentes: alojadas en el propio servidor (sin Google Fonts: carga más rápida
   y sin enviar la IP del visitante a terceros). Fuentes variables, subset latin.
   ========================================================================== */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/archivo.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono.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;
}

/* ==========================================================================
   instantap — design tokens
   Dirección "Night Ops": la oficina de producción técnica de un festival,
   no un SaaS de escritorio. El acento de marca es el único color saturado;
   todo lo demás son neutros con un sesgo frío muy sutil, y las cifras reales
   del producto (importes, turnos, ventas) se leen en monoespaciada, como en
   un instrumento de control, no como decoración.
   ========================================================================== */
:root {
  /* canales RGB para transparencias que cambian con el tema */
  --fg-rgb: 245, 245, 247;
  --bg-rgb: 10, 10, 12;
  --surface-rgb: 23, 23, 27;
  --bg-darker: #0d0d10;

  /* surfaces — negro casi puro con un sesgo frío hacia el acento, no gris plano */
  --bg: #0a0a0c;
  --bg-elevated: #121215;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: rgba(var(--fg-rgb), 0.08);
  --border-strong: rgba(var(--fg-rgb), 0.16);
  --line: rgba(var(--fg-rgb), 0.18);

  /* text */
  --text: #f5f5f7;
  --text-muted: rgba(var(--fg-rgb), 0.64);
  --text-faint: rgba(var(--fg-rgb), 0.52); /* mínimo AA (4.5:1) sobre el fondo */

  /* brand — el mismo rojo/magenta del logo y la app. No se toca. */
  --brand: #f8024b;
  --brand-dim: #c4023c;
  --brand-glow: rgba(248, 2, 75, 0.45);
  --brand-soft: rgba(248, 2, 75, 0.12);
  --brand-soft-strong: rgba(248, 2, 75, 0.22);

  /* chart accents (mayormente neutros, el acento se usa con cuentagotas) */
  --chart-1: var(--brand);
  --chart-2: #f5f5f7;
  --chart-3: rgba(var(--fg-rgb), 0.45);
  --chart-4: rgba(var(--fg-rgb), 0.22);
  --ok: #2ee6a6;

  /* radii — una escala, aplicada por tipo de elemento, no al azar */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* spacing */
  --space-section: clamp(64px, 9vw, 140px);
  --space-section-sm: clamp(40px, 6vw, 80px);

  /* type — tres familias con un trabajo distinto cada una */
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* escala tipográfica */
  --fs-display: clamp(2.5rem, 4.9vw, 4.1rem);
  --fs-h2: clamp(2rem, 3.6vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.85rem;
  --fs-label: 0.72rem;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 500ms;

  /* sombras — tintadas hacia el negro azulado del fondo, no negro plano */
  --shadow-rgb: 3, 3, 8;
  --shadow-card: 0 1px 0 rgba(var(--fg-rgb), 0.04) inset, 0 20px 40px -24px rgba(var(--shadow-rgb), 0.7);
  --shadow-card-sm: 0 1px 0 rgba(var(--fg-rgb), 0.04) inset, 0 12px 24px -16px rgba(var(--shadow-rgb), 0.6);
  --shadow-glow: 0 0 0 1px rgba(248, 2, 75, 0.4), 0 8px 30px -6px var(--brand-glow);

  --wrap: 1180px;
}
/* ==========================================================================
   tema claro (botón en la cabecera; por defecto, oscuro)
   ========================================================================== */
:root[data-theme="light"] {
  --fg-rgb: 14, 14, 20;
  --bg-rgb: 247, 247, 249;
  --surface-rgb: 255, 255, 255;
  --bg: #f7f7f9;
  --bg-elevated: #ffffff;
  --bg-darker: #eeeef2;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --border: rgba(var(--fg-rgb), 0.1);
  --border-strong: rgba(var(--fg-rgb), 0.18);
  --line: rgba(var(--fg-rgb), 0.22);
  --text: #0e0e14;
  --text-muted: rgba(var(--fg-rgb), 0.72);
  --text-faint: rgba(var(--fg-rgb), 0.6);
  /* en fondo claro, el rojo de marca un punto más profundo para leerse bien (AA) */
  --brand: #cf0046;
  --brand-glow: rgba(207, 0, 70, 0.3);
  --brand-soft: rgba(224, 2, 74, 0.08);
  --brand-soft-strong: rgba(224, 2, 74, 0.16);
  --chart-2: #0e0e14;
  --chart-3: rgba(14, 14, 20, 0.45);
  --chart-4: rgba(14, 14, 20, 0.22);
  --ok: #0a8a5e;
  --shadow-rgb: 30, 30, 50;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 40px -28px rgba(var(--shadow-rgb), 0.35);
  --shadow-card-sm: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 24px -18px rgba(var(--shadow-rgb), 0.3);
}

/* Zonas con foto de fondo: siempre en oscuro, sea cual sea el tema
   (texto blanco sobre imagen). */
.hero, .photo-band, .cta-block, .bento-item--photo, .panel-shot-bar {
  /* canales RGB para transparencias que cambian con el tema */
  --fg-rgb: 245, 245, 247;
  --bg-rgb: 10, 10, 12;
  --surface-rgb: 23, 23, 27;
  --bg-darker: #0d0d10;

  /* surfaces — negro casi puro con un sesgo frío hacia el acento, no gris plano */
  --bg: #0a0a0c;
  --bg-elevated: #121215;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: rgba(var(--fg-rgb), 0.08);
  --border-strong: rgba(var(--fg-rgb), 0.16);
  --line: rgba(var(--fg-rgb), 0.18);

  /* text */
  --text: #f5f5f7;
  --text-muted: rgba(var(--fg-rgb), 0.64);
  --text-faint: rgba(var(--fg-rgb), 0.52); /* mínimo AA (4.5:1) sobre el fondo */

  /* brand — el mismo rojo/magenta del logo y la app. No se toca. */
  --brand: #f8024b;
  --brand-dim: #c4023c;
  --brand-glow: rgba(248, 2, 75, 0.45);
  --brand-soft: rgba(248, 2, 75, 0.12);
  --brand-soft-strong: rgba(248, 2, 75, 0.22);

  /* chart accents (mayormente neutros, el acento se usa con cuentagotas) */
  --chart-1: var(--brand);
  --chart-2: #f5f5f7;
  --chart-3: rgba(var(--fg-rgb), 0.45);
  --chart-4: rgba(var(--fg-rgb), 0.22);
  --ok: #2ee6a6;

  /* radii — una escala, aplicada por tipo de elemento, no al azar */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* spacing */
  --space-section: clamp(64px, 9vw, 140px);
  --space-section-sm: clamp(40px, 6vw, 80px);

  /* type — tres familias con un trabajo distinto cada una */
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* escala tipográfica */
  --fs-display: clamp(2.5rem, 4.9vw, 4.1rem);
  --fs-h2: clamp(2rem, 3.6vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.85rem;
  --fs-label: 0.72rem;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 500ms;

  /* sombras — tintadas hacia el negro azulado del fondo, no negro plano */
  --shadow-rgb: 3, 3, 8;
  --shadow-card: 0 1px 0 rgba(var(--fg-rgb), 0.04) inset, 0 20px 40px -24px rgba(var(--shadow-rgb), 0.7);
  --shadow-card-sm: 0 1px 0 rgba(var(--fg-rgb), 0.04) inset, 0 12px 24px -16px rgba(var(--shadow-rgb), 0.6);
  --shadow-glow: 0 0 0 1px rgba(248, 2, 75, 0.4), 0 8px 30px -6px var(--brand-glow);

  --wrap: 1180px;
  color: var(--text);
}


/* ==========================================================================
   reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
/* <picture> solo aporta el WebP: no debe crear caja propia en el layout */
picture { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 28px; height: 28px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

/* Cifras reales del producto: siempre monoespaciadas y con numerales
   tabulares, como un instrumento de lectura, nunca en la tipografía de
   marca. Un único selector compartido evita que cada componente reinvente
   la regla. */
.dash-stat-value,
.dt-amount,
.price-note strong,
.shift-meta span,
.activity-feed b,
.donut-hole span,
.step-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   reveal-on-scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 300ms ease; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   instrumentación: esquinas tipo flight-case
   Marco decorativo reutilizado en el hero y en el mockup del panel: los dos
   únicos sitios donde la idea de "producción técnica de un evento en vivo"
   tiene sentido literal, no una regla suelta puesta por toda la página.
   ========================================================================== */
.instrument-frame { position: relative; }
.instrument-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  opacity: 0.7;
  pointer-events: none;
}
.instrument-frame .corner--tl { top: 22px; left: 22px; border-right: none; border-bottom: none; }
.instrument-frame .corner--tr { top: 22px; right: 22px; border-left: none; border-bottom: none; }
.instrument-frame .corner--bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.instrument-frame .corner--br { bottom: 22px; right: 22px; border-left: none; border-top: none; }

.dashboard.instrument-frame .corner {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}
.dashboard.instrument-frame .corner--tl { top: 10px; left: 10px; }
.dashboard.instrument-frame .corner--tr { top: 10px; right: 10px; }
.dashboard.instrument-frame .corner--bl { bottom: 10px; left: 10px; }
.dashboard.instrument-frame .corner--br { bottom: 10px; right: 10px; }

/* Regla de marcas verticales, solo en el borde izquierdo del hero: el
   equivalente visual a la cinta métrica de una torre de sonido. Nunca lleva
   cifras inventadas encima, es puro trazo. */
.hero-ruler {
  position: absolute;
  left: 22px;
  top: 96px;
  bottom: 96px;
  width: 1px;
  z-index: 1;
  background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 18px);
  opacity: 0.5;
}
@media (max-width: 860px) {
  .hero-ruler, .instrument-frame .corner { display: none; }
}

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

/* El botón usa un tono del rojo de marca apenas más profundo: con el texto
   blanco llega al contraste mínimo AA (4.5:1), que el #f8024b puro no alcanza. */
.btn-primary {
  background: #e0024a;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(var(--fg-rgb), 0.06) inset, 0 10px 30px -8px var(--brand-glow);
}
.btn-primary:hover { background: #cc0243; box-shadow: 0 0 0 1px rgba(var(--fg-rgb), 0.1) inset, 0 14px 36px -6px var(--brand-glow); }
.btn-primary:focus-visible { outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(var(--fg-rgb), 0.05); border-color: rgba(var(--fg-rgb), 0.28); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 16px;
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(var(--bg-rgb), 0.76);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; transition: opacity var(--dur-base) var(--ease-out); }
.brand:hover { opacity: 0.85; }
.brand-logo { height: 55px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(var(--fg-rgb), 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius-full);
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(var(--fg-rgb), 0.07); }

.main-nav a { white-space: nowrap; }
/* "Demo" solo aparece dentro del menú desplegable: en escritorio ya está el CTA. */
.main-nav .nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Selector de idioma: catalán primero, castellano después. Mismo lenguaje
   que la píldora del menú, en mono y en pequeño para que no compita con el CTA. */
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(var(--fg-rgb), 0.03);
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--text); }
.lang-switch a[aria-current="page"] { color: var(--text); background: rgba(var(--fg-rgb), 0.08); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border-strong);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(820px, 92dvh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero-crowd.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.08) contrast(1.03);
}
@media (max-width: 640px) {
  .hero-media { background-image: url("assets/hero-crowd-sm.jpg"); background-position: center 25%; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7,7,9,0.86) 0%, rgba(7,7,9,0.22) 26%, rgba(7,7,9,0.42) 58%, rgba(5,5,6,0.97) 100%),
    linear-gradient(100deg, rgba(7,7,9,0.8) 0%, rgba(7,7,9,0.5) 34%, rgba(7,7,9,0.05) 62%, rgba(248,2,75,0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(52px, 7vw, 96px);
}

.hero-copy { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.hero-sub {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(var(--fg-rgb), 0.88);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* --------------------------------------------------------------------------
   hero rotativo: 3 fotos que se funden entre sí, cada una con su mensaje.
   Las fotos y los mensajes comparten índice; el JS solo mueve la clase
   .is-active. Sin JS (o con reduced motion) se queda el primer mensaje.
   -------------------------------------------------------------------------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  filter: saturate(1.08) contrast(1.03);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms var(--ease-in-out), transform 7500ms linear;
}
.hero-slide-img.is-active { opacity: 1; transform: scale(1); }

/* El h1 es fijo (lo lee Google y el lector de pantalla); lo que rota son
   los mensajes grandes de debajo. */
h1.eyebrow { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; }

.hero-messages { display: grid; }
.hero-msg {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out), visibility 0s linear 600ms;
}
.hero-msg.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 600ms var(--ease-out) 250ms, transform 700ms var(--ease-out) 250ms, visibility 0s;
}
.hero-msg .hero-title { max-width: 14ch; }

.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
}
.hero-dot::before, .hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}
.hero-dot::before { right: 0; background: rgba(var(--fg-rgb), 0.28); transition: background var(--dur-base) var(--ease-out); }
.hero-dot:hover::before { background: rgba(var(--fg-rgb), 0.5); }
.hero-dot::after { width: 0; background: var(--brand); }
.hero-dot[aria-current="true"]::after { width: 100%; }
/* Mientras rota, la barra del punto activo se va llenando: el visitante ve
   cuándo cambiará el mensaje. */
.hero--playing .hero-dot[aria-current="true"]::after { animation: heroProgress var(--hero-dur, 6500ms) linear forwards; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

.hero-pause {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.hero-pause:hover { color: var(--text); border-color: rgba(var(--fg-rgb), 0.35); }
.hero-pause .icon { width: 14px; height: 14px; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }

/* ==========================================================================
   NFC card component
   ========================================================================== */
.nfc-card {
  width: 192px;
  aspect-ratio: 1.586;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(248,2,75,0.35) 0%, transparent 45%),
    linear-gradient(155deg, #232328 0%, #16161a 55%, #0d0d0f 100%);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.nfc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(var(--fg-rgb), 0.06) 50%, transparent 60%);
}
.nfc-card--big { width: 260px; }

.nfc-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-faint); }
.nfc-chip {
  width: 30px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(155deg, #d8d8de, #9a9aa2);
  position: relative;
}
.nfc-chip::before {
  content: "";
  position: absolute; inset: 3px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
}

.nfc-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.nfc-card-brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.nfc-card-brand b { color: var(--brand); font-weight: 700; }
.nfc-card-type { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }

/* ==========================================================================
   NFC wristband component
   ========================================================================== */
.nfc-band { position: relative; width: 190px; height: 74px; }
.nfc-band-strap {
  position: absolute;
  left: 0; top: 50%;
  width: 150px; height: 34px;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: repeating-linear-gradient(115deg, #1c1c21 0 8px, #16161a 8px 16px);
  border: 1px solid rgba(var(--fg-rgb), 0.08);
  box-shadow: var(--shadow-card);
}
.nfc-band-strap::after {
  content: "instantap";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(var(--fg-rgb), 0.5);
}
.nfc-band-tag {
  position: absolute;
  right: 0; top: 50%;
  width: 64px; height: 64px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(248,2,75,0.5), transparent 55%), linear-gradient(155deg, #232328, #0d0d0f);
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: var(--shadow-card);
}
.nfc-band--big { width: 260px; height: 96px; }
.nfc-band--big .nfc-band-strap { width: 200px; height: 44px; }
.nfc-band--big .nfc-band-tag { width: 84px; height: 84px; }

/* ==========================================================================
   terminal / device component
   ========================================================================== */
.device-terminal {
  width: 208px;
  border-radius: 30px;
  background: linear-gradient(180deg, #1a1a1f, #0c0c0e);
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  padding: 10px 12px 18px;
  box-shadow: var(--shadow-card), 0 30px 60px -20px rgba(var(--shadow-rgb), 0.8);
  position: relative;
}
.device-terminal--small { width: 176px; }

.dt-notch {
  width: 46px; height: 6px;
  background: #000;
  border-radius: var(--radius-full);
  margin: 0 auto 10px;
}

.dt-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}
.dt-status-icons { display: flex; gap: 5px; align-items: center; color: var(--text-faint); }

.dt-screen {
  background: linear-gradient(180deg, #131317, #0a0a0c);
  border-radius: 18px;
  padding: 20px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border: 1px solid rgba(var(--fg-rgb), 0.05);
}
.dt-label { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.dt-amount { font-size: 1.75rem; font-weight: 600; margin-bottom: 6px; }

.dt-tap-zone {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(248,2,75,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  position: relative;
  margin-block: 8px;
}
.dt-tap-zone--static { margin-block: 8px; }

.dt-hint { font-size: 0.72rem; color: var(--text-faint); transition: opacity var(--dur-base) var(--ease-out); }

/* ==========================================================================
   sections / typography
   ========================================================================== */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-section-sm); }
.section--dark { background: var(--bg-elevated); }
.section--darker { background: var(--bg-darker); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-head h2, .cta-block h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  font-weight: 700;
}
.section-sub { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; }

/* ==========================================================================
   proof strip
   ========================================================================== */
.proof-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  padding-block: 24px;
  /* 6 datos en rejilla 3×2: sin un elemento huérfano en la segunda fila */
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-items: start;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.proof-item svg { color: var(--brand); }

/* ==========================================================================
   steps (cómo funciona)
   ========================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps-line {
  position: absolute;
  top: 68px;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px);
  overflow: hidden;
}
.steps-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand);
  transition: width 900ms var(--ease-out) 150ms;
}
.steps-line.in-view .steps-line-fill { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .steps-line-fill { transition: none; width: 100%; }
}

.step { position: relative; z-index: 1; }
.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.step-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 20px;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .step:hover .step-icon { border-color: var(--brand-soft-strong); transform: translateY(-2px); }
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* ==========================================================================
   photo band (full-bleed editorial photo break)
   ========================================================================== */
.photo-band {
  position: relative;
  margin: 0;
  height: clamp(260px, 40vw, 460px);
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.02);
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,9,0.35) 0%, rgba(7,7,9,0.15) 40%, rgba(7,7,9,0.88) 100%),
              linear-gradient(90deg, rgba(7,7,9,0.65) 0%, transparent 40%);
}
.photo-band figcaption {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--text);
  max-width: 20ch;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ==========================================================================
   compare (problema/solución)
   ========================================================================== */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.compare-arrow { align-self: center; color: var(--text-faint); }
.compare-col {
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
}
.compare-col--old { background: var(--surface); }
.compare-col--new { background: linear-gradient(180deg, rgba(248,2,75,0.08), transparent 60%), var(--surface); border-color: rgba(248,2,75,0.28); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 20px; }
.compare-col--old h3 svg { color: var(--text-faint); }
.compare-col--new h3 svg { color: var(--brand); }
.compare-col li { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.compare-col li:first-of-type { border-top: none; }
.compare-col--old li svg { color: rgba(var(--fg-rgb), 0.32); }
.compare-col--new li { color: var(--text); }
.compare-col--new li svg { color: var(--brand); }

/* ==========================================================================
   bento grid (funcionalidades)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-item {
  grid-column: span 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-item:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-card-sm); }
}
.bento-item--lg { grid-column: span 2; }
.bento-item--full { grid-column: span 3; }

.bento-item--photo {
  position: relative;
  padding: 0;
  min-height: 280px;
  justify-content: flex-end;
  overflow: hidden;
}
.bento-item--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-item--photo:hover img { transform: scale(1.04); }
}
.bento-item--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,9,0.15) 0%, rgba(7,7,9,0.35) 45%, rgba(7,7,9,0.92) 100%),
    linear-gradient(100deg, rgba(248,2,75,0.28) 0%, transparent 55%);
}
.bento-item--photo-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-item--photo .bento-icon { background: rgba(var(--fg-rgb), 0.12); color: #fff; backdrop-filter: blur(6px); }
.bento-item--photo h3, .bento-item--photo p { color: #fff; }
.bento-item--photo p { color: rgba(var(--fg-rgb), 0.8); }

.bento-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.bento-item h3 { font-size: var(--fs-h3); }
.bento-item p { color: var(--text-muted); font-size: 0.94rem; }
.audience .bento-tags { flex-wrap: wrap; }

.bento-mock { margin-top: auto; padding-top: 10px; }
.mini-terminal {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.mini-amount { font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem; }
.mini-tap {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  animation: pulseSoft 2.4s var(--ease-in-out) infinite;
}
@keyframes pulseSoft { 0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); } 50% { box-shadow: 0 0 0 8px transparent; } }

.bento-tags { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.bento-tags span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 6px 12px;
}

.bento-mock--bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin-top: auto;
  padding-top: 10px;
}
.bento-mock--bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--brand), var(--brand-dim));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 700ms var(--ease-out);
}
.bento-item--full.in-view .bento-mock--bars span { transform: scaleY(1); }
.bento-mock--bars span:nth-child(1) { transition-delay: 0ms; }
.bento-mock--bars span:nth-child(2) { transition-delay: 30ms; }
.bento-mock--bars span:nth-child(3) { transition-delay: 60ms; }
.bento-mock--bars span:nth-child(4) { transition-delay: 90ms; }
.bento-mock--bars span:nth-child(5) { transition-delay: 120ms; }
.bento-mock--bars span:nth-child(6) { transition-delay: 150ms; }
.bento-mock--bars span:nth-child(7) { transition-delay: 180ms; }
.bento-mock--bars span:nth-child(8) { transition-delay: 210ms; }
.bento-mock--bars span:nth-child(9) { transition-delay: 240ms; }
.bento-mock--bars span:nth-child(10) { transition-delay: 270ms; }
.bento-mock--bars span:nth-child(11) { transition-delay: 300ms; }
.bento-mock--bars span:nth-child(12) { transition-delay: 330ms; }

/* ==========================================================================
   offline section
   ========================================================================== */
.offline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.offline-copy h2 { font-size: var(--fs-h2); line-height: 1.12; margin-bottom: 18px; }
.offline-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.offline-points li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.98rem; }
.offline-points svg { color: var(--brand); }

.sync-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.sync-node { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.sync-node span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.sync-node-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.sync-node-icon--spin svg { transition: transform 400ms var(--ease-in-out); }
.sync-node-icon--spin.spinning svg { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sync-connector { color: var(--text-faint); padding-block: 2px; }

.sync-badge {
  font-family: var(--font-mono);
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out);
}
.sync-badge.is-synced { background: var(--ok); color: #06231a; }

.sync-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  width: 100%;
  justify-content: center;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.sync-dot.online { background: var(--ok); }
.sync-dot.pulsing { animation: dotPulse 1.4s var(--ease-in-out) infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ==========================================================================
   security
   ========================================================================== */
.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.security-copy h2 { font-size: var(--fs-h2); line-height: 1.12; margin-bottom: 18px; }

.security-points { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.security-points li { display: flex; gap: 16px; }
.security-points > li > svg {
  flex-shrink: 0;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.security-points h3 { font-size: 1.05rem; margin-bottom: 5px; }
.security-points p { color: var(--text-muted); font-size: 0.94rem; }

.security-footnote {
  margin-top: 30px;
  font-size: 0.84rem;
  color: var(--text-faint);
}

.security-visual { display: flex; align-items: center; justify-content: center; }
.shield-badge {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.shield-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(248,2,75,0.28);
}
.shield-ring.r2 { inset: 26px; border-color: rgba(248,2,75,0.4); }
.shield-core {
  position: relative;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(248,2,75,0.4), transparent 60%), linear-gradient(155deg, #201f24, #0c0c0e);
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  box-shadow: var(--shadow-card);
  animation: shieldPulse 3.2s var(--ease-in-out) infinite;
}
.icon-lg { width: 44px; height: 44px; }
@keyframes shieldPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.shield-label {
  position: absolute;
  bottom: -6px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
}
.shield-label svg { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .shield-core { animation: none; }
}

/* ==========================================================================
   dashboard mockup
   ========================================================================== */
.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}
.dash-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.dash-event { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.dash-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: dotPulse 1.6s var(--ease-in-out) infinite; }
.dash-live-label { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; color: var(--ok); background: rgba(46,230,166,0.1); padding: 3px 9px; border-radius: var(--radius-full); }
.dash-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.dash-stat-label { font-size: 0.76rem; color: var(--text-faint); }
.dash-stat-label em { font-style: normal; opacity: 0.7; }
.dash-stat-value { font-size: 1.5rem; font-weight: 600; }
.dash-stat-sub { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--text-faint); }

.dash-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dash-panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-panel-head h3 { font-size: 0.95rem; }
.dash-panel-head span { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--radius-full); }

.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.dash-bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand), var(--brand-dim)); border-radius: 4px 4px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform 800ms var(--ease-out); opacity: 0.9; }
.dashboard.in-view .dash-bars span { transform: scaleY(1); }
.dash-bars span:nth-child(1){transition-delay:0ms}.dash-bars span:nth-child(2){transition-delay:40ms}.dash-bars span:nth-child(3){transition-delay:80ms}.dash-bars span:nth-child(4){transition-delay:120ms}.dash-bars span:nth-child(5){transition-delay:160ms}.dash-bars span:nth-child(6){transition-delay:200ms}.dash-bars span:nth-child(7){transition-delay:240ms}.dash-bars span:nth-child(8){transition-delay:280ms}.dash-bars span:nth-child(9){transition-delay:320ms}.dash-bars span:nth-child(10){transition-delay:360ms}

.dash-panel--donut { display: flex; flex-direction: column; align-items: center; }
.donut {
  --p1: 38; --p2: 27; --p3: 20; --p4: 15;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    var(--chart-1) 0 calc(var(--p1) * 1%),
    var(--chart-2) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
    var(--chart-3) calc((var(--p1) + var(--p2)) * 1%) calc((var(--p1) + var(--p2) + var(--p3)) * 1%),
    var(--chart-4) calc((var(--p1) + var(--p2) + var(--p3)) * 1%) 100%
  );
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 18px;
  opacity: 0;
  transform: scale(0.85) rotate(-40deg);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.dashboard.in-view .donut { opacity: 1; transform: scale(1) rotate(0deg); }
.donut-hole {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.donut-hole span { font-size: 1.1rem; font-weight: 600; }
.donut-hole small { font-size: 0.6rem; color: var(--text-faint); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-1 { background: var(--chart-1); }
.dot-2 { background: var(--chart-2); }
.dot-3 { background: var(--chart-3); }
.dot-4 { background: var(--chart-4); }

.dash-list li { display: flex; align-items: center; gap: 10px; padding-block: 11px; border-top: 1px solid var(--border); font-size: 0.86rem; }
.dash-list li:first-child { border-top: none; }
.dash-list em { font-style: normal; color: var(--text-muted); margin-right: auto; }
.dash-list b { font-weight: 600; font-size: 0.72rem; color: var(--text-faint); }
.pv-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pv-on { background: var(--ok); }
.pv-off { background: var(--text-faint); }

.activity-feed li { display: flex; align-items: center; gap: 10px; padding-block: 11px; border-top: 1px solid var(--border); font-size: 0.85rem; }
.activity-feed li:first-child { border-top: none; }
.activity-feed svg { color: var(--brand); flex-shrink: 0; }
.activity-feed span { color: var(--text-muted); margin-right: auto; }
.activity-feed b { font-weight: 600; }

/* ==========================================================================
   shifts / operators
   ========================================================================== */
.shifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .shift-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
}
.shift-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shift-head h3 { font-size: 0.98rem; }
.shift-head p { font-size: 0.85rem; color: var(--text-muted); }
.shift-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--ok); white-space: nowrap; }
.shift-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: dotPulse 1.6s var(--ease-in-out) infinite; }
.shift-meta { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; }
.shift-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-faint); }
.shifts-note { margin-top: 18px; font-size: 0.78rem; color: var(--text-faint); text-align: center; }

/* ==========================================================================
   product showcase
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: clamp(32px, 6vw, 64px); align-items: start; }
.product-grid .product-copy { padding-top: clamp(8px, 4vw, 40px); }
.product-showcase { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; min-height: 260px; }
.showcase-card, .showcase-band, .showcase-terminal { transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover, .showcase-band:hover, .showcase-terminal:hover { transform: translateY(-6px); }
}

/* ==========================================================================
   CTA block
   ========================================================================== */
.cta-block {
  position: relative;
  padding-block: clamp(90px, 14vw, 160px);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(248,2,75,0.28) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,5,6,0.88) 0%, rgba(5,5,6,0.55) 45%, rgba(5,5,6,0.9) 100%);
}
.cta-block .wrap { position: relative; z-index: 1; }
.cta-block h2 { max-width: 720px; margin-inline: auto; text-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.cta-block p { margin: 18px auto 32px; color: rgba(var(--fg-rgb), 0.85); font-size: 1.05rem; max-width: 52ch; }
.cta-block .kicker { margin: 0 auto 14px; color: var(--brand); font-size: var(--fs-label); }

/* ==========================================================================
   form
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.form-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; margin-block: 4px 16px; }
.price-note {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
.price-note span { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.price-note strong { font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.price-note small { font-size: 0.86rem; color: var(--text-muted); }

.demo-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  box-shadow: var(--shadow-card-sm);
}
.form-row { display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }
.form-row--half { grid-column: span 1; }
.form-row label { font-size: 0.84rem; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: 44px;
  color: var(--text);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: rgba(var(--fg-rgb), 0.28); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23f5f5f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M6.5 9l5.5 5.5L17.5 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }

.form-submit { grid-column: span 2; margin-top: 6px; width: 100%; min-height: 48px; }

.form-success {
  grid-column: span 2;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 0.9rem;
  background: rgba(46,230,166,0.1);
  border: 1px solid rgba(46,230,166,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.form-success.show { display: flex; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.brand-logo--footer { height: 40px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-self: end; }
.footer-links a { font-size: 0.86rem; color: var(--text-muted); transition: color var(--dur-base) var(--ease-out); }
.footer-links a:hover { color: var(--text); }
.footer-contact, .footer-copy { grid-column: 1 / -1; font-size: 0.78rem; color: var(--text-faint); }
.footer-contact span { color: var(--text-faint); }

/* ==========================================================================
   textos v14: rejilla de 4, tarjetas numeradas, destacado, recarga móvil
   ========================================================================== */
.section-head h2 em, .split-copy h2 em, .cta-block h2 em { font-style: normal; color: var(--brand); }
.section-sub + .section-sub { margin-top: 12px; }

.feature-grid { grid-template-columns: repeat(4, 1fr); }

/* Taquilla / barra: dónde hay efectivo y tarjeta y dónde solo la pulsera */
.pay-split { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
.pay-split .card-label { margin: 0; }
.pay-split h3 { margin: 0; }
.pay-split-icons { display: flex; gap: 10px; }
.feature-grid .bento-item { padding: 24px; }
.feature-grid .bento-item h3 { font-size: 1.05rem; }

/* Etiqueta mono sobre el título de la tarjeta (01, ANTES…) */
.card-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.bento-item--accent {
  background: linear-gradient(180deg, rgba(248,2,75,0.1), transparent 65%), var(--surface);
  border-color: rgba(248,2,75,0.32);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split-copy h2 { font-size: var(--fs-h2); line-height: 1.12; }

.recharge-card {
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.recharge-card h3 { font-size: 1.35rem; margin: 10px 0 18px; }
.recharge-card dl { margin: 0; }
.recharge-card dl div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 13px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.recharge-card dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.recharge-card .is-total dd { color: var(--brand); }
.recharge-card .btn { margin-top: 18px; width: 100%; pointer-events: none; }

/* ==========================================================================
   preguntas frecuentes
   Página de lectura tranquila: columna estrecha, acordeones nativos
   (<details>) que funcionan sin JS, y el índice de temas fijo al lado.
   ========================================================================== */
.faq-hero { padding-top: clamp(48px, 7vw, 96px); }
.faq-hero h1 {
  font-size: var(--fs-display);
  line-height: 1.06;
  max-width: 16ch;
}
.faq-hero h1 em { font-style: normal; color: var(--brand); }
.faq-reassure { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.faq-reassure .proof-item { color: var(--text); }

.faq-body { padding-top: clamp(40px, 5vw, 64px); }
.faq-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.faq-toc a {
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.faq-toc a:hover, .faq-toc a:focus-visible { color: var(--text); border-left-color: var(--brand); }

.faq-groups { max-width: 780px; }
.faq-group { scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 72px); }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: rgba(248, 2, 75, 0.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  color: var(--brand);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 64ch;
}

.faq-end { text-align: center; }
.faq-end h2 { font-size: var(--fs-h2); line-height: 1.12; }
.faq-end .section-sub { margin: 16px auto 32px; }

/* Enlace a las FAQ desde el formulario de la home */
.faq-hint { margin-top: 20px; font-size: 0.94rem; color: var(--text-muted); }
.faq-hint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.faq-hint a:hover { color: var(--brand); }

/* ==========================================================================
   páginas interiores (SEO): hero con miga de pan, bloques de texto,
   tabla comparativa, tarjeta de precio, relacionadas y pie con columnas
   ========================================================================== */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--text-faint); margin-bottom: 22px; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero-grid--noimg { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.06; }
.page-hero .section-sub { font-size: 1.12rem; }
.page-hero-media { margin: 0; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.page-content { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.page-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; max-width: 26ch; margin-bottom: 18px; }
.prose { max-width: 70ch; }
.prose p { color: var(--text-muted); font-size: 1.06rem; line-height: 1.75; }
.prose p + p { margin-top: 16px; }
.prose a, .faq-answer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.prose a:hover, .faq-answer a:hover { color: var(--brand); }
.page-block .faq-list { max-width: 820px; }
.page-block .steps { margin-top: 28px; }
.page-block .bento { margin-top: 28px; }

.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; background: var(--surface); }
.compare-table tbody th { color: var(--text); font-weight: 600; width: 24%; }
.compare-table td { color: var(--text-muted); }
.compare-table .is-us { color: var(--text); background: rgba(248, 2, 75, 0.06); }
.compare-table thead .is-us { color: var(--brand); background: rgba(248, 2, 75, 0.1); }

.price-card { max-width: 520px; padding: 32px; border-radius: var(--radius-xl); border: 1px solid rgba(248, 2, 75, 0.35); background: linear-gradient(180deg, rgba(248,2,75,0.1), transparent 70%), var(--surface); box-shadow: var(--shadow-card); }
.price-card .card-label { display: block; }
.price-amount { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; margin: 10px 0 6px; letter-spacing: -0.03em; }
.price-unit { color: var(--text-muted); }
.price-card ul { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li .icon { color: var(--brand); margin-top: 2px; }

.related { border-top: 1px solid var(--border); }
a.bento-item { color: inherit; }
.link-card .link-arrow { margin-top: auto; color: var(--brand); display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.link-card:hover h3 { color: var(--brand); }
.hub .bento-item h3 { transition: color var(--dur-base) var(--ease-out); }

.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 0.95rem; color: var(--text); border-bottom: 1px solid var(--brand); padding-bottom: 2px; }
.more-link:hover { color: var(--brand); }
.more-link .icon { width: 16px; height: 16px; color: var(--brand); }

.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.faq-end .page-cta { justify-content: center; }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-grid .footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 0.9rem; max-width: 30ch; }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--dur-base) var(--ease-out); }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; font-size: 0.78rem; color: var(--text-faint); }

/* Caja "En resum": datos clave al inicio de cada página. Pensada para que
   una persona con prisa (o un buscador con IA) capte lo esencial de un vistazo. */
.key-facts {
  max-width: 820px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.key-facts h2 { font-family: var(--font-mono); font-size: var(--fs-label) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px !important; max-width: none !important; }
.key-facts ul { display: flex; flex-direction: column; gap: 10px; }
.key-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); line-height: 1.55; }
.key-facts li .icon { color: var(--brand); margin-top: 3px; }
.page-updated { margin-top: 18px; font-size: 0.82rem; color: var(--text-faint); }

.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 24px 0 0; max-width: 900px; }
.glossary div { padding: 16px 0; border-top: 1px solid var(--border); }
.glossary dt { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   revisión visual: cada sección con su propio lenguaje, no todo tarjetas
   ========================================================================== */
/* El precio es un precio, no código */
.price-note strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }

/* El problema: lista numerada editorial, sin cajas */
.numbered-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.numbered-item { border-top: 1px solid var(--border-strong); padding-top: 22px; }
.numbered-item .card-label {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}
.numbered-item h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.numbered-item p { color: var(--text-muted); max-width: 34ch; }

/* Servicio portátil: línea de tiempo antes → durante → después */
.phase-list { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.phase-list::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--brand), var(--border-strong) 70%); }
.phase-item { position: relative; padding: 36px clamp(16px, 3vw, 36px) 0 0; }
.phase-item::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.phase-item h3 { font-size: var(--fs-h3); margin: 10px 0; }
.phase-item p { color: var(--text-muted); max-width: 32ch; }

/* Del talonari al tap: lo de antes, apagado; InstanTap, protagonista */
.talonari-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 16px; align-items: stretch; }
.talonari-grid .bento-item:not(.bento-item--accent) { background: transparent; border-style: dashed; }
.talonari-grid .bento-item:not(.bento-item--accent) .bento-icon { background: rgba(var(--fg-rgb), 0.05); color: var(--text-faint); }
.talonari-grid .bento-item:not(.bento-item--accent) h3 { color: var(--text-muted); }
.talonari-grid .bento-item--accent { padding: 32px; }
.talonari-grid .bento-item--accent h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.talonari-grid .bento-item--accent p { color: var(--text); font-size: 1rem; }

/* Índice de páginas: lista en dos columnas, sin cajas */
.index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--border); }
.index-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.index-row h3 { font-size: 1.1rem; transition: color var(--dur-base) var(--ease-out); }
.index-row p { grid-column: 1; color: var(--text-muted); font-size: 0.92rem; }
.index-row .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--brand); transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .index-row:hover { padding-left: 12px; background: rgba(var(--fg-rgb), 0.02); }
  .index-row:hover h3 { color: var(--brand); }
  .index-row:hover .icon { transform: translateX(4px); }
}

/* ==========================================================================
   páginas legales, consentimiento del formulario y pie legal
   ========================================================================== */
.legal-content { max-width: 780px; }
.legal-content h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.08; }
.legal-content > .page-updated { margin: 12px 0 28px; }
.legal-intro { font-size: 1.1rem; color: var(--text); line-height: 1.7; }
.legal-section { margin-top: 44px; }
.legal-section h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; margin-bottom: 14px; }
.legal-section p, .legal-section li { color: var(--text-muted); line-height: 1.75; }
.legal-section p + p, .legal-section p + ul, .legal-section ul + p, .legal-section .table-wrap + p { margin-top: 12px; }
.legal-section ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-section li::marker { color: var(--brand); }
.legal-section a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.legal-section .table-wrap { margin-top: 14px; }
.legal-section .compare-table { min-width: 0; }

/* Dato de empresa pendiente de rellenar: visible a propósito */
mark.ph {
  background: rgba(255, 196, 0, 0.14);
  color: #ffd166;
  border: 1px dashed rgba(255, 209, 102, 0.5);
  border-radius: 4px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.form-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; }
.form-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.form-consent label { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.form-consent a, .form-legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.form-legal { grid-column: 1 / -1; font-size: 0.78rem; line-height: 1.55; color: var(--text-faint); }
.form-legal strong { color: var(--text-muted); font-weight: 600; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--text); }

/* ==========================================================================
   aviso de cookies (consent.js)
   Panel inferior que no bloquea la web. "Aceptar" y "Rechazar" tienen el
   mismo peso visual (exigencia de la AEPD); "Configurar" va como enlace.
   ========================================================================== */
.cc-banner {
  position: fixed;
  z-index: 200;
  left: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 40px));
  padding: 22px 22px 18px;
  background: rgba(var(--surface-rgb), 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.cc-banner.is-visible { opacity: 1; transform: none; }
.cc-title { font-size: 1.05rem; margin-bottom: 8px; }
.cc-text { font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }
.cc-text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cc-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.cc-btn:active { transform: scale(0.97); }
.cc-btn--choice { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.cc-btn--choice:hover { opacity: 0.88; }
.cc-btn--link { grid-column: 1 / -1; min-height: 36px; color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }

.cc-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.cc-dialog::backdrop { background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(4px); }
.cc-dialog-inner { padding: 24px; }
.cc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cc-dialog-head h2 { font-size: 1.3rem; }
.cc-close { width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--text-muted); border: 1px solid var(--border-strong); }
.cc-close:hover { color: var(--text); }
.cc-cat { padding: 16px 0; border-top: 1px solid var(--border); }
.cc-cat:first-of-type { margin-top: 16px; }
.cc-cat-head { display: flex; align-items: center; gap: 12px; }
.cc-cat-name { font-weight: 700; margin-right: auto; }
.cc-always { font-size: 0.78rem; color: var(--ok); font-weight: 600; }
.cc-cat-desc { margin-top: 6px; font-size: 0.86rem; line-height: 1.55; color: var(--text-muted); }
.cc-note { display: block; margin-top: 4px; color: var(--text-faint); font-style: italic; }
.cc-actions--dialog { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.cc-actions--dialog .cc-btn--link { order: 3; }

/* Interruptor accesible (checkbox nativo con aspecto de switch) */
.cc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.14);
  border: 1px solid var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform var(--dur-base) var(--ease-out);
}
.cc-switch:checked { background: var(--brand); border-color: var(--brand); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:disabled { opacity: 0.55; cursor: not-allowed; }
.cc-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* "Configurar cookies" en el pie y en la política: botón con aspecto de enlace */
.link-button { color: var(--text-muted); font: inherit; padding: 0; text-decoration: none; }
.link-button:hover { color: var(--text); }
.legal-section .link-button { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; font-weight: 600; }

@media (max-width: 640px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
}

/* ==========================================================================
   capturas reales del panel, en un marco de navegador
   ========================================================================== */
.panel-shot { margin: 0; max-width: 1100px; }
.panel-shot img,
.panel-shot-bar {
  display: block;
  width: 100%;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}
.panel-shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.panel-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.16); }
.panel-shot-bar em {
  margin-left: 14px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--text-muted);
}
.panel-shot img {
  height: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(var(--fg-rgb), 0.02);
}
.panel-shot figcaption { margin-top: 14px; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); max-width: 70ch; }
.panel-shot figcaption span { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--text-faint); }
#control .panel-shot { margin-inline: auto; }
.panel-shot-link { display: block; cursor: zoom-in; }
.panel-shot-link:focus-visible { outline-offset: 4px; }

/* Apartados de texto de las páginas interiores: titular a la izquierda
   (fijo al hacer scroll) y texto a la derecha, separados por una línea.
   Aprovecha el ancho sin alargar las líneas de lectura. */
.page-block--split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--border);
}
.page-block--split + .page-block--split { margin-top: calc(-1 * clamp(16px, 3vw, 40px)); }
.page-block--split > h2 { margin-bottom: 0; max-width: 18ch; position: sticky; top: 104px; }
.page-block--split .prose { max-width: 66ch; }
.page-block--split .prose p:first-child { color: var(--text); }
.page-block--split .faq-list { max-width: none; }

/* ==========================================================================
   contacto directo: WhatsApp y teléfono (solo aparecen si hay número)
   ========================================================================== */
.optional { color: var(--text-faint); font-weight: 400; }

.contact-btns { margin-top: 28px; }
.contact-btns p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.contact-btns-row { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-end .contact-btns-row { justify-content: center; }
.contact-btn .icon { color: var(--text); }
.contact-btn--wa .icon { color: #25d366; }

/* Botón flotante: verde WhatsApp, reconocible de un vistazo */
.wa-float {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1faa55;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--fg-rgb), 0.08) inset;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: #179447; transform: translateY(-2px); }
.wa-float:active { transform: scale(0.95); }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ==========================================================================
   formulario: captcha propio, campo trampa y errores
   ========================================================================== */
/* Campo trampa para bots: fuera de la vista y del teclado */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-captcha { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.captcha-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.captcha-btn:hover:not(:disabled) { border-color: rgba(var(--fg-rgb), 0.32); }
.captcha-btn:disabled { cursor: default; }
.captcha-check {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.captcha-btn[data-state="working"] .captcha-check {
  border-color: var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: captchaSpin 0.8s linear infinite;
}
@keyframes captchaSpin { to { transform: rotate(360deg); } }
.captcha-btn[data-state="done"] { border-color: rgba(46, 230, 166, 0.45); }
.captcha-btn[data-state="done"] .captcha-check { background: var(--ok); border-color: var(--ok); }
.captcha-btn[data-state="done"] .captcha-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid var(--bg);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.captcha-btn[data-state="error"] { border-color: rgba(248, 2, 75, 0.6); }
.form-captcha[aria-invalid="true"] .captcha-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.captcha-note { font-size: 0.78rem; color: var(--text-faint); }

.form-error {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 2, 75, 0.45);
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-noscript { grid-column: 1 / -1; font-size: 0.88rem; color: var(--text); padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.form-row input[aria-invalid="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-submit:disabled { opacity: 0.7; cursor: progress; }

/* ==========================================================================
   botón de tema y logo según el tema
   ========================================================================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.03);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

img.logo-v-light { display: none; }
:root[data-theme="light"] img.logo-v-dark { display: none; }
:root[data-theme="light"] img.logo-v-light { display: block; }

/* Cambio de tema suave (solo colores, y solo mientras se cambia) */
:root.theme-switching *, :root.theme-switching *::before, :root.theme-switching *::after {
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, fill 240ms ease !important;
}

/* Ajustes puntuales del tema claro */
:root[data-theme="light"] mark.ph { background: rgba(255, 196, 0, 0.22); color: #7a5600; border-color: rgba(160, 110, 0, 0.45); }
:root[data-theme="light"] .panel-shot img { box-shadow: 0 30px 60px -30px rgba(20, 20, 40, 0.45); }

/* ==========================================================================
   lightbox (imágenes ampliadas)
   Siempre sobre fondo oscuro, sea cual sea el tema: la imagen es la protagonista.
   ========================================================================== */
a[data-lightbox] { display: block; cursor: zoom-in; }
.page-hero-media a[data-lightbox] { height: 100%; }
.page-hero-media a[data-lightbox] img { transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .page-hero-media a[data-lightbox]:hover img { transform: scale(1.03); }
}
:root.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 5, 7, 0.92); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn 220ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(56px, 7vh, 80px) clamp(12px, 6vw, 88px) 24px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out);
}
.lightbox-img.is-loaded { opacity: 1; transform: none; }
.lightbox-caption { max-width: 72ch; text-align: center; font-size: 0.92rem; line-height: 1.5; color: rgba(245, 245, 247, 0.8); }
.lightbox-count { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(245, 245, 247, 0.55); }
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background var(--dur-base) var(--ease-out);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; margin-top: 0; }
  .lightbox-figure { padding-bottom: 84px; }
}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .brand-logo { height: 42px; }
  .main-nav { position: fixed; inset: 68px 16px auto 16px; background: rgba(var(--bg-rgb), 0.98); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-lg); flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.98); transform-origin: top right; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .main-nav a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; }
  .main-nav a:hover { background: rgba(var(--fg-rgb), 0.05); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .main-nav .nav-mobile-only { display: block; }
}

@media (max-width: 980px) {
  .offline-grid, .product-grid, .form-grid, .split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .talonari-grid { grid-template-columns: 1fr 1fr; }
  .talonari-grid .bento-item--accent { grid-column: 1 / -1; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-block--split { grid-template-columns: 1fr; gap: 16px; }
  .page-block--split > h2 { position: static; max-width: 26ch; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: none; }
  .faq-toc a { padding: 8px 14px; margin-left: 0; border: 1px solid var(--border); border-radius: var(--radius-full); }
  .faq-toc a:hover, .faq-toc a:focus-visible { border-color: var(--brand); }
  .dash-body { grid-template-columns: 1fr 1fr; }
  .dash-panel--chart { grid-column: span 2; }
  .dash-panel--list, .dash-panel--activity { grid-column: span 1; }
}

@media (max-width: 860px) {

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps-line { display: none; }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "icon num"
      "icon title"
      "icon desc";
    column-gap: 16px;
    row-gap: 2px;
    align-items: start;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .step-icon { grid-area: icon; width: 56px; height: 56px; margin-bottom: 0; }
  .step-num { grid-area: num; margin-bottom: 0; align-self: end; }
  .step h3 { grid-area: title; margin-bottom: 0; font-size: 1.15rem; }
  .step p { grid-area: desc; }

  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); margin-inline: auto; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item, .bento-item--lg, .bento-item--full { grid-column: span 2; }
  .feature-grid .bento-item { grid-column: span 1; }
  .talonari-grid .bento-item { grid-column: auto; }
  .talonari-grid .bento-item--accent { grid-column: 1 / -1; }

  .security-layout { grid-template-columns: 1fr; }
  .security-visual { order: -1; }
  .shield-badge { width: 180px; height: 180px; }
  .shield-core { width: 104px; height: 104px; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .dash-panel--chart, .dash-panel--list, .dash-panel--activity { grid-column: span 1; }

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

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-links { justify-self: start; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .hero { min-height: min(640px, 94dvh); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; min-height: 48px; }
  .hero-controls { margin-top: 26px; }

  .dashboard { padding: 16px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat { padding: 14px; }
  .dash-stat-value { font-size: 1.2rem; }
  .demo-form { grid-template-columns: 1fr; }
  .form-row, .form-row--half, .form-submit, .form-success, .form-consent, .form-legal, .form-captcha, .form-error, .form-noscript { grid-column: span 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .numbered-list, .index-list, .talonari-grid { grid-template-columns: 1fr; }
  .numbered-item .card-label { font-size: 2rem; margin-bottom: 12px; }
  .phase-list { grid-template-columns: 1fr; gap: 28px; padding-left: 28px; }
  .phase-list::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--brand), var(--border-strong) 80%); }
  .phase-item { padding: 0; }
  .phase-item::before { left: -28px; top: 2px; }
  .bento-item { padding: 22px; }
  .proof-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; justify-items: start; }
  .proof-item { white-space: normal; font-size: 0.84rem; }
  .glossary { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-card { padding: 24px; }
}
