/* Tailormation · maqueta visual (webs.desarrollo, 2026-11-25)
   Tokens y medidas: diseno/direccion-visual.md. Breakpoints: móvil < 768, tableta 768-1099, escritorio >= 1100. */

/* ---------- Fuentes alojadas en la propia web (fonts/, licencias en fonts/LICENCIAS.md) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: only dark;
  --ink: #0F0F0F; --ink-raised: #1A1A19; --ink-line: #2C2C2A; --ink-border: #6B6B66;
  --paper: #F2F2EE; --paper-sunk: #E6E6E0; --paper-line: #D6D6CF; --paper-border: #8A8A84;
  --ash: #8C8C86; --stone: #5C5C57;
  --volt: #FCB800; --volt-press: #E0A400;
  --danger-on-ink: #FF7A66; --danger-on-paper: #B42318;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --dur-fast: 120ms; --dur-switch: 220ms; --dur-section: 480ms;
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-switch: cubic-bezier(.65,0,.35,1);
  --hd: 64px;
  --arrow-volt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10 4.5 15.5 10 10 15.5' fill='none' stroke='%23FCB800' stroke-width='2.2'/%3E%3C/svg%3E");
  --arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10 4.5 15.5 10 10 15.5' fill='none' stroke='%230F0F0F' stroke-width='2.2'/%3E%3C/svg%3E");
}
@media (min-width: 1100px) { :root { --hd: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-stretch: 100%;
  font-size: clamp(1.0625rem, 1.04rem + .09vw, 1.125rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
p, h1, h2, h3, blockquote, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--volt); color: var(--ink); padding: 12px 18px; border-radius: 9999px; font-weight: 600; font-stretch: 125%; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid var(--paper); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Maquetación ---------- */
.w { max-width: 1416px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .w { padding-inline: 32px; } }
@media (min-width: 1100px) { .w { padding-inline: 48px; } }
.sec { position: relative; padding-block: 96px; }
@media (min-width: 1100px) { .sec { padding-block: 160px; } }
.sec.tight-top { padding-top: 0; }
.lt { background: var(--paper); color: var(--ink); }
.txt { max-width: 36rem; }
.stack > * + * { margin-top: 24px; }

/* ---------- Tipografía ---------- */
.disp { font-stretch: 125%; font-weight: 700; font-size: clamp(2.875rem, 1.07rem + 7.7vw, 8rem); line-height: .92; letter-spacing: -.02em; }
.h1 { font-stretch: 125%; font-weight: 700; font-size: clamp(2.5rem, 1.444rem + 4.51vw, 5.5rem); line-height: .95; letter-spacing: -.02em; }
.h2 { font-stretch: 125%; font-weight: 700; font-size: clamp(2rem, 1.472rem + 2.25vw, 3.5rem); line-height: 1; letter-spacing: -.015em; }
.h3 { font-stretch: 125%; font-weight: 600; font-size: clamp(1.375rem, 1.199rem + .75vw, 1.875rem); line-height: 1.1; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1875rem, 1.077rem + .47vw, 1.5rem); line-height: 1.4; }
.sm { font-size: .9375rem; line-height: 1.45; }
.lbl { font-family: var(--mono); font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 1100px) { .lbl { font-size: .8125rem; } }
.mut { color: var(--ash); }
.lt .mut { color: var(--stone); }
.kicker { display: block; margin-bottom: 24px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
/* Alemán: compuestos largos («Liegenschaftsverwaltungen») en titulares de 36 px a 375 px; se cortan con guion */
:lang(de) :is(h1, h2, h3, .sx-weekq) { hyphens: auto; hyphenate-limit-chars: 12 5 5; } /* solo compuestos largos, y nunca dejando menos de 5 letras a cada lado */
:is(h1, h2, h3, .sx-weekq, .lbl, summary) { overflow-wrap: anywhere; } /* red de seguridad: si el navegador no tiene diccionario de guiones (pasa con el alemán), el compuesto se corta antes que ensanchar la página */

/* Rótulo de pendiente (solo maqueta) */
.pend {
  display: inline-block; padding: 2px 8px; border: 1.5px dashed var(--volt); border-radius: 4px;
  font: 500 .8125rem/1.45 var(--mono); letter-spacing: .02em; color: var(--volt);
  font-stretch: 100%; text-transform: none; vertical-align: middle; max-width: 100%;
}
.lt .pend { border-color: var(--stone); color: var(--stone); }
.pend.box { display: grid; place-items: center; text-align: center; padding: 16px; }

/* ---------- Interruptor (pista 2:1, botón 62 %) ---------- */
.sw {
  --p: 0;
  position: relative; display: inline-block; flex: none; width: 2em; height: 1em; font-size: 26px;
  border-radius: 9999px; border: .08em solid var(--ash); vertical-align: middle; overflow: hidden;
  transition: border-color var(--dur-switch) var(--ease-switch);
}
.sw::before { content: ""; position: absolute; inset: 0; background: var(--volt); opacity: var(--p); transition: opacity var(--dur-switch) var(--ease-switch); }
.sw i {
  position: absolute; top: 50%; left: .11em; width: .62em; height: .62em; border-radius: 50%; background: var(--ash);
  transform: translate(calc(var(--p) * 1em), -50%);
  transition: transform var(--dur-switch) var(--ease-switch), background-color var(--dur-switch);
}
.sw.on { --p: 1; border-color: var(--volt); }
.sw.on i { background: var(--ink); }
.sw.dev { border-style: dashed; }
.sw.dev i { transform: translate(.5em, -50%); }
.lt .sw { border-color: var(--stone); }
.lt .sw i { background: var(--stone); }
.lt .sw::before { background: var(--ink); }
.lt .sw.on { border-color: var(--ink); }
.lt .sw.on i { background: var(--volt); }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; height: 56px; padding: 0 28px 0 60px;
  border: 0; border-radius: 9999px; background: var(--volt); color: var(--ink);
  font: 600 1.0625rem/1 var(--sans); font-stretch: 125%; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: padding var(--dur-switch) var(--ease-switch), background-color var(--dur-fast), transform var(--dur-fast);
}
.btn .k { position: absolute; left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink) var(--arrow-volt) center / 18px no-repeat; transition: left var(--dur-switch) var(--ease-switch); }
.btn:hover, .btn:focus-visible { padding: 0 60px 0 28px; }
.btn:hover .k, .btn:focus-visible .k { left: calc(100% - 48px); }
.btn:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.lt .btn:focus-visible, .final.lit .btn:focus-visible { outline-color: var(--ink); }
.btn:active { background: var(--volt-press); transform: scale(.98); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .k { animation: shuttle 1.2s var(--ease-switch) infinite; }
@keyframes shuttle { 0%, 100% { left: 8px; } 50% { left: calc(100% - 48px); } }
.btn.small { height: 44px; padding: 0 20px 0 48px; font-size: .9375rem; }
.btn.small .k { width: 32px; height: 32px; top: 6px; left: 6px; background-size: 15px; }
.btn.small:hover, .btn.small:focus-visible { padding: 0 48px 0 20px; }
.btn.small:hover .k, .btn.small:focus-visible .k { left: calc(100% - 38px); }
.btn.full { width: 100%; justify-content: center; }
@media (max-width: 767px) {
  /* En móvil el botón puede partirse en dos líneas: en FR y DE el texto largo ensanchaba la página más de 375 px */
  .btn { height: auto; min-height: 52px; max-width: 100%; padding: 8px 22px 8px 54px; font-size: 1rem; line-height: 1.2; white-space: normal; }
  .btn .k { width: 38px; height: 38px; top: calc(50% - 19px); left: 7px; }
  .btn:hover, .btn:focus-visible { padding: 8px 54px 8px 22px; }
  .btn:hover .k, .btn:focus-visible .k { left: calc(100% - 45px); }
  .btn.is-loading .k { animation-name: shuttle-m; }
  @keyframes shuttle-m { 0%, 100% { left: 7px; } 50% { left: calc(100% - 45px); } }
}
/* Sobre amarillo: pastilla negra, círculo amarillo */
.final.lit .btn { background: var(--ink); color: var(--paper); }
.final.lit .btn .k { background-color: var(--volt); background-image: var(--arrow-ink); }
.final.lit .btn:active { background: var(--ink-line); }

.btn2 {
  display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: 9999px;
  border: 1.5px solid var(--ink-border); background: transparent; color: var(--paper);
  font: 600 1.0625rem/1 var(--sans); font-stretch: 125%; text-decoration: none; cursor: pointer; transition: border-color var(--dur-fast);
}
.btn2:hover { border-color: var(--paper); }
.btn2:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
@media (max-width: 767px) { .btn2 { height: 48px; font-size: 1rem; } }

.lnk { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color var(--dur-fast); }
.lnk:hover { text-decoration-color: var(--volt); }
.lt .lnk:hover, .final.lit .lnk:hover { text-decoration-color: var(--ink); text-decoration-thickness: 3px; }
.lnk:focus-visible, .row-b:focus-visible, .card:focus-visible, summary:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 2px; }
.lt .lnk:focus-visible, .final.lit .lnk:focus-visible { outline-color: var(--ink); }
.arr::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .4em; vertical-align: -.1em; background: currentColor; -webkit-mask: var(--arrow-ink) center / contain no-repeat; mask: var(--arrow-ink) center / contain no-repeat; transition: transform var(--dur-fast); }
.arr:hover::after, .card:hover .arr::after { transform: translateX(4px); }

/* Selector de idioma */
.lang { display: inline-flex; border: 1.5px solid var(--ink-border); border-radius: 9999px; padding: 3px; }
.lang a { display: grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 9999px; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-decoration: none; color: var(--ash); position: relative; }
.lang a::after { content: ""; position: absolute; inset: -9px -2px; } /* área táctil de 48 px */
.lang a[aria-current] { background: var(--paper); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--paper); }
.lang a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.hd.solid { background: var(--ink); border-bottom-color: var(--ink-line); }
.hd .w { display: flex; align-items: center; gap: 24px; height: var(--hd); }
.logo { display: block; flex: none; }
.logo img { height: 13px; width: auto; }
.hd nav, .hd .lang, .hd .btn { display: none; }
.menu-b { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0 -16px 0 auto; padding: 0 16px; background: none; border: 0; color: var(--paper); font: 600 .9375rem/1 var(--sans); font-stretch: 125%; cursor: pointer; }
.menu-b .sw { font-size: 13px; }
.menu-b:focus-visible { outline: 3px solid var(--volt); outline-offset: -3px; border-radius: 9999px; }
@media (min-width: 1100px) {
  .logo img { height: 18px; }
  .hd nav { display: flex; gap: 36px; margin-left: auto; font-stretch: 125%; font-weight: 600; font-size: .9375rem; }
  .hd nav a { text-decoration: none; padding: 8px 0; white-space: nowrap; }
  .hd nav a:hover { text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .hd nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .hd nav a:focus-visible { outline: 3px solid var(--volt); outline-offset: 4px; }
  .hd .lang, .hd .btn { display: inline-flex; }
  .menu-b { display: none; }
}
/* Cuatro enlaces + EN · FR · DE + botón a 1100 px: con el alemán («Kostenlose Analyse») no cabe con las medidas de 1280.
   Medido con Archivo 125 % / 600: así quedan unos 35 px de margen en DE, 60 en EN y FR. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .hd .w { gap: 16px; }
  .hd nav { gap: 16px; }
  .hd .logo img { height: 16px; }
  .hd .lang a { min-width: 36px; padding: 0 6px; }
}
main { padding-top: var(--hd); }

/* Menú móvil: pantalla negra */
.mnav { position: fixed; inset: 0; z-index: 30; background: var(--ink); display: flex; flex-direction: column; padding: 0 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-top { display: flex; align-items: center; height: var(--hd); }
.mnav ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 8px; }
.mnav ul a { display: block; padding: 6px 0; text-decoration: none; }
.mnav ul a[aria-current] { color: var(--volt); }
.mnav ul a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.mnav-ft { margin-top: auto; padding-top: 40px; display: grid; gap: 24px; justify-items: start; }
.mnav-ft .btn { width: 100%; justify-content: center; }
body.menu-open { overflow: hidden; }

/* ---------- Home v3 (diseno/home-v3.html, 2026-11-26) ----------
   Sustituye al bloque «Hero» de site.css. Hero con hueco de vídeo (.hm), cinta de automatizaciones (.ab),
   «The problem» en tarjetas (.pb) y «How we work» en tres pasos (.hw).
   html.js lo pone el <head>: así la cinta ya nace en marcha y nada salta al cargar.
   Sin JS o con reducir movimiento: la cinta es una fila deslizable con las 18 tarjetas encendidas, el vídeo es solo su póster. */
:root { --fold: 100vh; --gate: .7; --dur-belt-on: 420ms; }
@supports (height: 100svh) { :root { --fold: 100svh; } }

/* ---------- Hero ----------
   Móvil y tableta: titular, cinta, texto y botón, vídeo. Escritorio: titular | vídeo; texto | botón; cinta abajo a todo el ancho.
   En escritorio el hero ocupa la primera pantalla y la cinta queda pegada a su borde inferior. */
.hero {
  --p: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "belt" "ft" "media"; gap: 32px; padding-block: 24px 56px;
}
@media (min-width: 768px) { .hero { gap: 40px; padding-block: 48px 72px; } }
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head media" "ft ft" "belt belt";
    align-content: space-between; gap: clamp(16px, calc(var(--fold) * .031), 28px) 48px; min-height: calc(var(--fold) - var(--hd));
    padding-block: clamp(16px, calc(var(--fold) * .035), 32px) 24px;
  }
}
.hero-h { grid-area: head; min-width: 0; }
.claim { font-size: clamp(2.875rem, 1.07rem + 7.7vw, 6.5rem); }
/* «d'administratif.» y «Administration.» miden unos 400 px a 46 px: más pequeño en móvil para que quepan en 335 */
:lang(fr) .claim, :lang(de) .claim { font-size: clamp(2.125rem, .55rem + 7vw, 6.5rem); }
@media (max-width: 767px) { :lang(fr) .claim, :lang(de) .claim { hyphens: auto; } }
@media (min-width: 768px) { :lang(fr) .claim, :lang(de) .claim { hyphens: manual; } }
/* Escritorio: el titular comparte fila con el vídeo; el tamaño también depende del alto de la pantalla para que la cinta quepa */
@media (min-width: 1100px) {
  .claim { font-size: clamp(3.5rem, min(5.6vw, calc(var(--fold) * .088)), 6rem); }
  :lang(fr) .claim, :lang(de) .claim { font-size: clamp(2.75rem, min(4.4vw, calc(var(--fold) * .066)), 4.75rem); }
}
.claim span { color: var(--ash); }
.claim .l2 { transition: color var(--dur-switch) var(--ease-switch); }
.hero.on .claim .l2 { color: var(--paper); }
.claim .sw { font-size: .7em; margin-left: .12em; vertical-align: .02em; --p: inherit; }
.hero.on .claim .sw { border-color: var(--volt); }
.hero.on .claim .sw i { background: var(--ink); }
.hero .sub { margin-top: 20px; max-width: 34ch; font-size: clamp(1.25rem, .9rem + 1.2vw, 1.875rem); line-height: 1.25; color: var(--paper); }
@media (min-width: 1100px) { .hero .sub { max-width: none; margin-top: 24px; font-size: clamp(1.25rem, min(2.1vw, calc(var(--fold) * .031)), 1.875rem); } }

.hero-ft { grid-area: ft; display: grid; gap: 24px; min-width: 0; }
.hero-ft .txt { max-width: 34rem; }
/* Escritorio: la frase ocupa su columna entera (menos líneas) y baja con el alto de pantalla */
@media (min-width: 1100px) {
  .hero-ft { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
  .hero-ft .txt { max-width: none; font-size: clamp(1.125rem, min(1.077rem + .47vw, calc(var(--fold) * .026)), 1.5rem); }
}
.hero-cta { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.hero-cta .sm { max-width: 30rem; }
.hero-cta .trust { font-weight: 600; color: var(--paper); }
@media (max-width: 767px) { .hero-cta { justify-items: stretch; } .hero-cta .btn { justify-content: center; } .hero-cta .sm { justify-self: start; } }

/* ---------- Vídeo del hero: 4:5 en móvil, 16:9 desde 768 px. La caja tiene su proporción desde el primer momento ----------
   Debajo, el póster (primer fotograma) en <picture>; encima, el vídeo transparente hasta que de verdad se reproduce. */
.hm { grid-area: media; position: relative; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; }
@media (min-width: 768px) { .hm { aspect-ratio: 16 / 9; } }
/* En pantallas bajas el vídeo se estrecha (y baja de alto) para dejar sitio a la cinta */
@media (min-width: 1100px) { .hm { align-self: start; justify-self: end; width: min(100%, calc(var(--fold) * .62)); } }
.hm-p, .hm-p img, .hm-v { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-p img, .hm-v { object-fit: cover; }
.hm-v { opacity: 0; transition: opacity var(--dur-section) var(--ease-out); }
.hm.is-playing .hm-v { opacity: 1; }
.hm > .pend { position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--ink); }
/* Interruptor para parar el vídeo (WCAG 2.2.2). Solo existe si hay vídeo y movimiento: lo enseña site.js */
.hm-tg { position: absolute; right: 8px; bottom: 8px; z-index: 1; margin: 0; padding: 0 14px 0 10px; background: var(--ink); border-radius: 9999px; }
.hm-tg:focus-visible { border-radius: 9999px; }

/* ---------- Cinta de automatizaciones (.ab) ----------
   A sangre: llega hasta el borde de .w. Las tarjetas entran por la derecha apagadas y torcidas; al cruzar la puerta
   (dos marcas amarillas al 70 % del ancho) se enderezan y su interruptor se enciende. */
.ab { grid-area: belt; min-width: 0; margin-inline: -20px; }
@media (min-width: 768px) { .ab { margin-inline: -32px; } }
@media (min-width: 1100px) { .ab { margin-inline: -48px; } }
.ab-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding-inline: 20px; margin-bottom: 8px; }
@media (min-width: 768px) { .ab-h { padding-inline: 32px; } }
@media (min-width: 1100px) { .ab-h { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-inline: 48px; } .ab-h .hv-auto { margin-left: auto; } }
.ab-t { color: var(--paper); }
.ab-b { grid-column: 1 / -1; grid-row: 2; color: var(--fog); }
.ab-h .hv-auto { grid-column: 2; grid-row: 1; }

.ab-v {
  position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  padding: 10px 20px 16px; scrollbar-width: thin; scrollbar-color: var(--ink-border) transparent;
}
@media (min-width: 768px) { .ab-v { padding-inline: 32px; scroll-padding-inline: 32px; } }
@media (min-width: 1100px) { .ab-v { padding-inline: 48px; scroll-padding-inline: 48px; } }
.ab-tr { position: relative; display: flex; gap: 8px; width: max-content; }
.ab-l { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ab-l > li { display: flex; flex: none; scroll-snap-align: start; }

/* Tarjeta: por defecto encendida (sin JS, reducir movimiento, lámina). Pictograma | sector o puesto; tarea; estado con interruptor */
.ab-c {
  --r: 0deg; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "pic sec" "task task" "st st";
  grid-template-rows: auto auto 1fr; align-items: center; gap: 12px; width: 256px; padding: 14px 16px 16px; overflow: hidden;
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; color: var(--paper); text-decoration: none;
  transform: rotate(var(--r)); transition: transform var(--dur-align) var(--ease-out), border-color var(--dur-fast);
  -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1100px) { .ab-c { width: 304px; padding: 16px 18px 18px; } }
.ab-c::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--volt); transform-origin: 0 50%; transition: transform var(--dur-belt-on) var(--ease-switch); }
.ab-c .sx-pic { grid-area: pic; width: 28px; height: 28px; color: var(--paper); transition: transform var(--dur-switch) var(--ease-switch), color var(--dur-belt-on); }
.ab-c .sx-pic .v { fill: var(--volt); }
.ab-s { grid-area: sec; min-width: 0; color: var(--fog); }
.ab-k { grid-area: task; min-width: 0; font-stretch: 125%; font-weight: 600; font-size: 1.0625rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.ab-st { grid-area: st; align-self: end; display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: .9375rem; line-height: 1.4; color: var(--paper); transition: color var(--dur-belt-on); }
.ab-st > span:last-child { min-width: 0; overflow-wrap: break-word; }
.ab-st .sw { --p: 1; font-size: 14px; margin-top: .25em; border-color: var(--volt); }
.ab-st .sw i { background: var(--ink); }
@media (hover: hover) {
  .ab-c:hover { border-color: var(--ash); }
  .ab-c:hover .sx-pic { transform: rotate(-6deg) scale(1.06); }
}
.ab-c:focus-visible { outline: 3px solid var(--volt); outline-offset: -3px; }

/* En marcha: lo que aún no ha cruzado la puerta está apagado y torcido. Con el ratón o el foco encima, se enciende */
html.js .ab:not(.ab-static) .ab-v { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
html.js .ab:not(.ab-static) .ab-tr { will-change: transform; }
html.js .ab:not(.ab-static) .ab-v::before, html.js .ab:not(.ab-static) .ab-v::after {
  content: ""; position: absolute; z-index: 1; left: calc(var(--gate) * 100%); width: 2px; background: var(--volt); pointer-events: none;
}
html.js .ab:not(.ab-static) .ab-v::before { top: 0; height: 8px; }
html.js .ab:not(.ab-static) .ab-v::after { bottom: 0; height: 12px; }
html.js .ab-drag .ab-v { cursor: grabbing; }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) { --r: var(--t); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible)::before { transform: scaleX(0); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) .sx-pic { color: var(--ash); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) .sx-pic .v { fill: var(--ink-border); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) .ab-st { color: var(--fog); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) .ab-st .sw { --p: 0; border-color: var(--ash); }
html.js .ab:not(.ab-static) .ab-c:not(.on):not(:hover):not(:focus-visible) .ab-st .sw i { background: var(--ash); }
/* Al dar la vuelta la cinta, el cambio de estado no se anima (sería un parpadeo) */
.ab-nt .ab-c, .ab-nt .ab-c *, .ab-nt .ab-c::before { transition: none !important; }
html:not(.js) .ab .hv-auto, .ab.ab-static .hv-auto { display: none; }

/* ---------- The problem: cuatro tarjetas (sobre claro). Apagadas y algo torcidas: es el trabajo hecho a mano ---------- */
.pb-l { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pb-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pb-l { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; } }
.pb-c {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "pic t" "pic d"; align-content: start; gap: 6px 16px;
  min-width: 0; padding: 20px 20px 22px; background: var(--paper-sunk); border: 1px solid var(--paper-line); border-radius: 4px; transform: rotate(var(--t));
}
.pb-c .sx-pic { --pic-bg: var(--paper-sunk); grid-area: pic; width: 40px; height: 40px; color: var(--ink); }
.pb-c .sx-pic .v { fill: var(--paper-border); }
.pb-c h3 { grid-area: t; min-width: 0; font-stretch: 125%; font-weight: 700; font-size: 1.25rem; line-height: 1.1; letter-spacing: -.01em; }
.pb-c p { grid-area: d; min-width: 0; color: var(--stone); }
@media (min-width: 1100px) {
  .pb-c { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "t" "d"; grid-template-rows: 1fr auto auto; gap: 0; min-height: 320px; padding: 24px 24px 28px; }
  .pb-c .sx-pic { align-self: start; width: 56px; height: 56px; }
  .pb-c h3 { margin-top: 40px; font-size: 1.625rem; }
  .pb-c p { margin-top: 12px; font-size: 1.0625rem; }
}
.pb-f { max-width: 30ch; margin-top: 40px; font-stretch: 125%; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.15; letter-spacing: -.01em; }
.pb-f span:first-child { color: var(--stone); }
@media (min-width: 1100px) { .pb-f { margin-top: 64px; } }
/* Entrada: llegan de una en una, rectas, y se tuercen al posarse */
html.motion .pb-wait .pb-c { opacity: 0; transform: translateY(32px); }
html.motion .pb-wait.pb-in .pb-c { opacity: 1; transform: rotate(var(--t)); transition: opacity var(--dur-step) var(--ease-out), transform var(--dur-align) var(--ease-out); transition-delay: calc(var(--o) * 110ms); }

/* ---------- How we work: tres pasos con interruptor y raíl (se encienden al cruzar el centro, como .flow) ---------- */
.hw-l { display: grid; gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; }
@media (min-width: 1100px) { .hw-l { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 80px; } }
@media (min-width: 1100px) { .hw-l.hw-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hw-s { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "sw n" ". t" ". d"; align-items: center; column-gap: 16px; min-width: 0; }
.hw-s > .sw { grid-area: sw; font-size: 22px; }
.hw-n { grid-area: n; color: var(--ash); transition: color var(--dur-switch); }
.hw-t { grid-area: t; margin-top: 10px; font-stretch: 125%; font-weight: 700; font-size: clamp(2rem, 1.472rem + 2.25vw, 3.5rem); line-height: 1; letter-spacing: -.015em; color: var(--ash); transition: color var(--dur-switch); }
.hw-d { grid-area: d; max-width: 26rem; margin-top: 12px; color: var(--fog); transition: color var(--dur-switch); }
.hw-s.on .hw-n, html:not(.js) .hw-s .hw-n { color: var(--volt); }
.hw-s.on .hw-t, .hw-s.on .hw-d, html:not(.js) .hw-s .hw-t, html:not(.js) .hw-s .hw-d { color: var(--paper); }
html:not(.js) .hw-s > .sw { --p: 1; border-color: var(--volt); }
html:not(.js) .hw-s > .sw i { background: var(--ink); }
.hw-s:not(:last-child)::before, .hw-s:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 30px; bottom: -34px; width: 2px; background: var(--ink-line); }
.hw-s:not(:last-child)::after { background: var(--volt); transform-origin: 50% 0; transform: scaleY(0); transition: transform var(--dur-align) var(--ease-out); }
.hw-s.on:not(:last-child)::after, html:not(.js) .hw-s:not(:last-child)::after { transform: none; }
@media (min-width: 1100px) {
  .hw-s { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sw" "n" "t" "d"; justify-items: start; }
  .hw-s > .sw { font-size: 28px; }
  .hw-n { margin-top: 24px; }
  .hw-s:not(:last-child)::before, .hw-s:not(:last-child)::after { left: 72px; right: -16px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .hw-s:not(:last-child)::after { transform-origin: 0 50%; transform: scaleX(0); }
}

/* Bloque del fundador (home y página de empresa): foto pequeña al lado del texto */
.who { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.who-ph { width: 132px; }
.who-ph .pend.box { aspect-ratio: 1 / 1; font-size: .75rem; }
@media (min-width: 1100px) { .who:has(> .who-ph) { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; } .who-ph { width: 200px; } }
/* Página de empresa: dos columnas (qué hacemos, para quién) y cuatro pasos */
.ab2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.ab2 .lead { margin-top: 20px; }
.ab2 .lnk { margin-top: 20px; }
@media (min-width: 1100px) { .ab2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6%; } }
.hw-in { margin-top: 24px; max-width: 46rem; }

/* ---------- Cómo trabajamos ---------- */
.flow { display: grid; gap: 28px; margin-top: 48px; }
.flow p { display: flex; gap: 18px; align-items: baseline; color: var(--ash); transition: color var(--dur-switch); }
.flow p.on { color: var(--paper); }
.lt .flow p { color: var(--stone); }
.lt .flow p.on { color: var(--ink); }
.flow .sw { font-size: 18px; transform: translateY(.12em); }
@media (min-width: 1100px) { .flow { gap: 40px; margin-top: 72px; } .flow p { gap: 28px; } .flow .sw { font-size: 24px; } }

/* ---------- Tarjetas de proyecto ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 48px -20px 0; padding: 0 20px 12px; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: var(--ink-border) transparent; list-style: none; }
.cards > li { flex: 0 0 86%; scroll-snap-align: start; display: flex; }
@media (min-width: 768px) { .cards { margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; } .cards > li { flex-basis: 60%; } }
@media (min-width: 1100px) { .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; overflow: visible; margin: 72px 0 0; padding: 0; } }
.card { flex: 1; display: flex; flex-direction: column; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; text-decoration: none; transition: border-color var(--dur-fast); }
.card:hover { border-color: var(--ash); }
.card-b { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 20px 24px; margin-top: auto; }
.card-b p { margin-top: 8px; }
@media (max-width: 767px) { .card-b { flex-direction: column; align-items: flex-start; } }

.shot { position: relative; aspect-ratio: 16 / 10; margin: 8px 8px 0; border: 1px solid var(--ink-line); border-radius: 4px; background: #141413; overflow: hidden; display: grid; place-items: center; }
.shot > .pend { margin: 24px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot img.left { object-position: left center; }
.shot .tag { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--ink); color: var(--paper); padding: 6px 8px; border-radius: 2px; font-size: .6875rem; }
.shot.dev { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; }
.shot.dev .sw { font-size: 44px; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ash); }
.chip .sw { font-size: 14px; }
.chip.on { color: var(--volt); }

/* ---------- Bloques partidos (quién hay detrás, sobre) ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 1100px) { .split { grid-template-columns: 5fr 6fr; gap: 24px 8.5%; align-items: center; } }
.photo { aspect-ratio: 4 / 5; }
.split .btn2, .split .lnk { margin-top: 32px; }
.lt .btn2 { border-color: var(--paper-border); color: var(--ink); }
.lt .btn2:hover { border-color: var(--ink); }
.lt .btn2:focus-visible { outline-color: var(--ink); }

/* ---------- Método ---------- */
.method { display: grid; gap: 56px; }
@media (min-width: 1100px) {
  .method { grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
  .method-h { position: sticky; top: calc(var(--hd) + 48px); }
}
.method-h .btn { margin-top: 36px; }
.steps { --p: 0; position: relative; }
.steps-l { display: grid; list-style: none; margin: 0; padding: 0; }
.rail { position: absolute; left: 12px; top: 0; bottom: 40px; width: 2px; background: var(--ink-line); }
.rail::after { content: ""; position: absolute; inset: 0; background: var(--volt); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; padding: 0 0 56px 44px; }
.step:last-child { padding-bottom: 0; }
.step > .sw { position: absolute; left: 13px; top: 0; font-size: 22px; transform: translateX(-50%) rotate(90deg) translateX(.5em); }
.step .num { color: var(--ash); transition: color var(--dur-switch); }
.step.on .num { color: var(--volt); }
.step h3 { margin-top: 14px; color: var(--ash); transition: color var(--dur-switch); }
.step.on h3 { color: var(--paper); }
.step p { margin-top: 12px; }
@media (min-width: 1100px) { .rail { left: 20px; } .step { padding: 0 0 120px 88px; } .step > .sw { left: 21px; font-size: 30px; } }

/* ---------- Llamada final: la página se enciende ---------- */
.final { --p: 0; position: relative; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--volt); opacity: var(--p); }
.final.lit { color: var(--ink); }
.final.lit .mut { color: var(--ink); }
.final .h1 { max-width: 16ch; }
.final-ft { display: grid; gap: 28px; margin-top: 48px; justify-items: start; }
@media (min-width: 1100px) { .final-ft { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; } }
.final-cta { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 767px) {
  .final-ft, .final-cta { justify-items: stretch; } .final-cta .btn { justify-content: center; } .final-cta .lnk { justify-self: start; }
  /* Textos largos en FR («Réserver l'analyse gratuite de 2 h»): a 375 px pasan a dos líneas en vez de salirse */
  .final-cta .btn { white-space: normal; height: auto; min-height: 52px; padding-block: 10px; line-height: 1.2; text-align: center; }
}

/* ---------- Pie ---------- */
.ft { padding-block: 64px 32px; border-top: 1px solid var(--ink-line); }
.ft-g { display: grid; gap: 36px; }
@media (min-width: 768px) { .ft-g { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ft-g { grid-template-columns: 4fr 2fr 2fr 3fr; gap: 24px; } }
.ft .logo img { height: 14px; }
.ft ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.ft ul li > a { display: inline-block; padding: 8px 0; text-decoration: none; }
.ft ul li > a:hover { text-decoration: underline; text-decoration-color: var(--volt); }
.ft ul li > a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.ft-b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.demo-note { margin-top: 20px; }

/* Barra fija de reserva (móvil) */
.stick { position: fixed; inset: auto 0 0; z-index: 15; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--ink-line); transform: translateY(110%); transition: transform var(--dur-section) var(--ease-out); }
.stick.show { transform: none; }
@media (min-width: 1100px) { .stick { display: none; } }

/* ---------- Páginas interiores ---------- */
.ph { padding-block: 64px 56px; }
@media (min-width: 1100px) { .ph { padding-block: 112px 96px; } }
.ph .lead { margin-top: 28px; }
.ph .lead + .lead, .ph p + p { margin-top: 16px; }
/* Projects: experiencia previa (más de 100 empresas asesoradas), entre la entradilla y los proyectos */
.xp { padding-bottom: 64px; }
.xp-fact { margin-top: 24px; padding-left: 20px; border-left: 4px solid var(--volt); max-width: 30ch; }
.xp .txt { margin-top: 16px; }
@media (min-width: 1100px) { .xp { padding-bottom: 96px; } }
.chap { display: grid; gap: 32px; padding-block: 64px; border-top: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .chap { grid-template-columns: 7fr 5fr; gap: 24px 6%; align-items: start; padding-block: 112px; } .chap.rev > :first-child { order: 2; } }
.chap .shot { margin: 0; }
.chap .shots { display: grid; gap: 16px; }
.chap h2 { margin-top: 16px; }
.chap .body { margin-top: 24px; }
.chap .body p + p { margin-top: 16px; }
.chap .chip { margin-top: 28px; }
.chap .why { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.chap .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.status-big { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 18px; border: 1.5px dashed var(--ash); border-radius: 4px; }
.status-big .sw { font-size: 22px; }

.tl { margin-top: 48px; border-top: 1px solid var(--ink-line); }
.tl-r { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .tl-r { grid-template-columns: 3fr 9fr; gap: 24px; padding: 40px 0; align-items: baseline; } }
.tl-r .lbl { color: var(--ash); }
.quote { margin-top: 48px; padding: 32px 0 0; border-top: 2px solid var(--volt); max-width: 52rem; }
.quote p { font-stretch: 125%; font-weight: 600; }
.quote footer { margin-top: 20px; }
.langs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 28px; }

/* ---------- Solutions v2 (diseno/sectores-v2.html, 2026-11-26). Prefijo sx- ---------- */
:root { --fog: #A8A8A2; --dur-step: 360ms; --dur-align: 520ms; --dur-draw: 1100ms; }

/* Grises legibles: en las páginas de Solutions todo texto secundario va en fog (8,02:1 sobre ink, 7,29:1 sobre ink-raised).
   ash queda para bordes, interruptores apagados y piezas de pictograma. ink-border nunca es texto. */
.sx-page .mut { color: var(--fog); }

/* Pictogramas: rejilla 64, trazo 2,5 recto; una sola pieza que se enciende (.v) */
.sx-pic { --pic-bg: var(--ink-raised); display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }
.sx-pic .v { fill: var(--ink-border); transition: fill var(--dur-switch) var(--ease-switch); }
.sx-pic .bg { fill: var(--pic-bg); }
.sx-pic .f { fill: currentColor; }
.lit .sx-pic .v, .sx-pic.lit .v { fill: var(--volt); }

/* Migas */
.sx-crumb { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--fog); }
.sx-crumb a { display: inline-block; padding: 6px 0; margin: -6px 0; text-decoration: none; }
.sx-crumb a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 4px; }
.sx-crumb a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.sx-crumb [aria-current] { color: var(--paper); }
.sx-badge { margin-top: 20px; max-width: 36rem; color: var(--fog); }

/* ================= ÍNDICE ================= */
.sx-ixh { padding-block: 32px 48px; }
@media (min-width: 1100px) { .sx-ixh { padding-block: 72px 80px; } }
.sx-ixh-g { display: grid; gap: 40px; margin-top: 28px; }
@media (min-width: 1100px) { .sx-ixh-g { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: end; margin-top: 48px; } }
.sx-disp { font-stretch: 125%; font-weight: 700; font-size: clamp(2.75rem, 1.2rem + 6.2vw, 7rem); line-height: .92; letter-spacing: -.025em; max-width: 14ch; }
.sx-ixh .lead { margin-top: 28px; max-width: 34rem; color: var(--fog); }

.sx-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 12px; border-top: 1px solid var(--ink-line); }
.sx-jump a { display: flex; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ink-line); font: 500 .75rem/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fog); text-decoration: none; transition: color var(--dur-fast); }
.sx-jump a b { font-weight: 500; color: var(--ash); transition: color var(--dur-fast); }
.sx-jump a:hover { color: var(--paper); }
.sx-jump a:hover b { color: var(--volt); }
.sx-jump a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }

/* Banda de confianza: la única franja clara del índice */
.sx-trust { background: var(--paper); color: var(--ink); padding-block: 36px 40px; }
@media (min-width: 1100px) { .sx-trust { padding-block: 56px 64px; } }
.sx-trust-g { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 768px) { .sx-trust-g { grid-template-columns: 1.25fr 1fr 1fr; gap: 32px; } }
.sx-trust li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 16px; border-top: 3px solid var(--ink); }
@media (min-width: 768px) { .sx-trust li { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 20px; } }
.sx-tn { display: block; font-stretch: 125%; font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 4vw, 6rem); line-height: .82; letter-spacing: -.035em; white-space: nowrap; }
.sx-tn .sw { font-size: 30px; vertical-align: top; }
@media (min-width: 1100px) { .sx-tn .sw { font-size: 48px; } }
.sx-trust p { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; max-width: 22rem; }
.sx-trust p small { display: block; margin-top: 4px; font-weight: 400; font-size: .9375rem; color: var(--stone); }

/* Tarjetas de sector: el número de automatizaciones manda */
.sx-cards { display: grid; gap: 16px; padding-block: 48px 96px; }
@media (min-width: 768px) { .sx-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .sx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 72px 160px; } }
.sx-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "pic cnt" "name name" "stars stars" "ft ft"; grid-template-rows: auto auto 1fr auto;
  align-items: start; column-gap: 16px; padding: 24px 20px 20px; overflow: hidden;
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px;
  color: var(--paper); text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-fast);
}
@media (min-width: 1100px) { .sx-card { padding: 32px 32px 28px; min-height: 560px; } }
.sx-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--volt); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-switch) var(--ease-switch); }
.sx-card .sx-pic { grid-area: pic; width: 64px; height: 64px; }
@media (min-width: 1100px) { .sx-card .sx-pic { width: 96px; height: 96px; } }
.sx-cnt { grid-area: cnt; display: grid; justify-items: end; text-align: right; }
.sx-cnt b { font-stretch: 125%; font-weight: 700; font-size: clamp(3.5rem, 2.6rem + 3vw, 6rem); line-height: .8; letter-spacing: -.04em; transition: color var(--dur-fast); }
.sx-cnt .lbl { margin-top: 10px; max-width: 13ch; color: var(--fog); }
.sx-card h2 { grid-area: name; margin-top: 28px; max-width: 16ch; }
@media (min-width: 1100px) { .sx-card h2 { margin-top: 56px; } }
.sx-no { display: block; margin-bottom: 10px; color: var(--ash); font-stretch: 100%; }
.sx-stars { grid-area: stars; list-style: none; margin: 24px 0 0; padding: 0; }
.sx-stars li { padding: 12px 0; border-top: 1px solid var(--ink-line); color: var(--fog); font-weight: 600; font-size: 1rem; line-height: 1.35; transition: color var(--dur-fast); }
.sx-card-ft { grid-area: ft; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sx-card-ft .lbl { color: var(--fog); }
.sx-knob { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink-border); background: var(--arrow-volt) center / 18px no-repeat; transition: transform var(--dur-switch) var(--ease-switch), background-color var(--dur-fast), border-color var(--dur-fast); }
/* Pasar por encima = encenderla: barra amarilla, número amarillo, pieza amarilla, botón amarillo */
.sx-card:hover, .sx-card:focus-visible { border-color: var(--paper); }
.sx-card:hover::before, .sx-card:focus-visible::before { transform: none; }
.sx-card:hover .sx-cnt b, .sx-card:focus-visible .sx-cnt b { color: var(--volt); }
.sx-card:hover .sx-stars li, .sx-card:focus-visible .sx-stars li { color: var(--paper); }
.sx-card:hover .v, .sx-card:focus-visible .v, .sx-mini:hover .v, .sx-mini:focus-visible .v { fill: var(--volt); }
.sx-card:hover .sx-knob, .sx-card:focus-visible .sx-knob, .sx-mini:hover .sx-knob, .sx-mini:focus-visible .sx-knob { transform: translateX(4px); background-color: var(--volt); background-image: var(--arrow-ink); border-color: var(--volt); }
.sx-card:active { transform: scale(.99); }
.sx-card:focus-visible, .sx-mini:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.sx-other { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sx-other::before { background: var(--ink); }
.sx-other .lbl { color: var(--stone); }
.sx-other .h3 { margin-top: 20px; }
.sx-other p { margin-top: 16px; color: var(--stone); max-width: 30rem; }
.sx-other .sx-card-ft { margin-top: auto; padding-top: 24px; }
.sx-other .sx-card-ft .lbl { color: var(--ink); }
.sx-other .sx-knob { border-color: var(--ink); background-image: var(--arrow-ink); }
.sx-other:hover, .sx-other:focus-visible { border-color: var(--paper); }
.sx-other:hover .sx-knob, .sx-other:focus-visible .sx-knob { background-color: var(--ink); background-image: var(--arrow-volt); border-color: var(--ink); }

/* ================= PÁGINA DE SECTOR ================= */
.sx-sph { padding-block: 24px 48px; }
@media (min-width: 1100px) { .sx-sph { padding-block: 40px 96px; } }
.sx-sph-g { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 1100px) { .sx-sph-g { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; margin-top: 48px; } }
.sx-ind { color: var(--fog); }
.sx-h { margin-top: 16px; max-width: 18ch; font-stretch: 125%; font-weight: 700; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 5rem); line-height: .98; letter-spacing: -.022em; }
.sx-big { --pic-bg: var(--ink); width: 120px; height: 120px; order: -1; }
@media (min-width: 1100px) { .sx-big { width: 360px; height: 360px; order: 0; stroke-width: 2; justify-self: end; } }

/* El pictograma se dibuja al cargar (pathLength="1" en cada trazo) y después se enciende su pieza */
.sx-draw * { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.sx-draw .v { fill: var(--volt); }
.js .sx-sph:not(.drawn) .sx-draw * { stroke-dashoffset: 1.02; }
.js .sx-sph:not(.drawn) .sx-draw .v, .js .sx-sph:not(.drawn) .sx-draw .f { fill: transparent; }
.sx-sph.drawn .sx-draw * { transition: stroke-dashoffset var(--dur-draw) var(--ease-out) calc(var(--d, 0) * 110ms), fill var(--dur-switch) var(--ease-switch) calc(var(--dur-draw) + 200ms); }

.sx-week { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .sx-week { margin-top: 64px; padding-top: 40px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.sx-week > .lbl { color: var(--fog); }
.sx-weekq { margin-top: 12px; font-stretch: 125%; font-weight: 600; font-size: clamp(1.625rem, 1.1rem + 2.1vw, 3.25rem); line-height: 1.12; letter-spacing: -.015em; color: var(--paper); max-width: 24ch; }
@media (min-width: 1100px) { .sx-weekq { margin-top: 0; } }
/* Palabras clave subrayadas en amarillo; el subrayado se traza después del pictograma */
.sx-k { color: inherit; background: linear-gradient(var(--volt), var(--volt)) 0 94% / var(--kw, 100%) .13em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 560ms var(--ease-out); }
.js .sx-sph:not(.drawn) .sx-k { --kw: 0%; }
.sx-sph.drawn .sx-k { transition-delay: calc(var(--dur-draw) + var(--k, 0) * 160ms); }
.sx-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 28px 0 0; padding: 0; }
.sx-facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.sx-facts b { font-stretch: 125%; font-weight: 700; font-size: 1.75rem; line-height: 1; }
.sx-facts .sw { font-size: 18px; }

.sx-spb { padding-bottom: 96px; }
@media (min-width: 1100px) { .sx-spb { padding-bottom: 160px; } }
.sx-spb-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1100px) { .sx-spb-g { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; } }
.sx-rail { display: none; }
@media (min-width: 1100px) { .sx-rail { display: block; position: sticky; top: calc(var(--hd) + 32px); } }
.sx-rail-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--fog); }
.sx-rail-c b { color: var(--paper); font-weight: 500; }
html:not(.js) .sx-rail-c { display: none; }
.sx-rail ol, .sx-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ink-line); }
.sx-rail ol a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--ink-line); text-decoration: none; color: var(--fog); font-weight: 600; font-size: .9375rem; line-height: 1.3; transition: color var(--dur-fast); }
.sx-rail ol a:hover, .sx-rail li.on a { color: var(--paper); }
.sx-rail ol a:focus-visible, .sx-toc a:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.sx-rail .sw { font-size: 13px; }
.sx-rail .btn { margin-top: 28px; }
.sx-toc { margin-bottom: 32px; }
.sx-toc a { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--ink-line); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.sx-toc a b { font: 500 .75rem/1 var(--mono); color: var(--fog); }
@media (min-width: 1100px) { .sx-toc { display: none; } }
.sx-legend { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0 16px; color: var(--fog); max-width: 44rem; }
.sx-legend .sw { font-size: 16px; margin-top: 3px; }

/* ---------- Automatización: antes (a mano) y después (encendida) ---------- */
/* Sin JS no hay clase .js: todo sale encendido. Con JS arranca apagado y .is-on lo enciende. */
.sx-autos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1100px) { .sx-autos { gap: 24px; } }
.sx-auto { --pic-bg: var(--ink-raised); position: relative; overflow: hidden; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; padding: 20px 20px 8px; transition: border-color var(--dur-switch); }
@media (min-width: 1100px) { .sx-auto { padding: 36px 48px 16px; } }
.sx-auto::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--volt); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-switch) var(--ease-switch); }
html:not(.js) .sx-auto::before, .sx-auto.is-on::before { transform: none; }
.sx-auto.is-on::before { transition: transform var(--dur-step) var(--ease-out) calc(var(--dur-align) + 3 * var(--dur-step)); }

.sx-auto-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n tg" "t t"; align-items: center; gap: 4px 16px; }
.sx-auto-n { grid-area: n; color: var(--fog); }
.sx-auto-t { grid-area: t; margin-top: 8px; font-stretch: 125%; font-weight: 700; font-size: clamp(1.6875rem, 1.1rem + 1.3vw, 2.625rem); line-height: 1.02; letter-spacing: -.015em; max-width: 18ch; }

/* El interruptor de cada automatización: role="switch" */
.sx-tg { grid-area: tg; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-right: -6px; padding: 0 6px 0 14px; border: 0; border-radius: 9999px; background: none; color: var(--fog); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color var(--dur-switch); }
@media (min-width: 1100px) { .sx-tg { font-size: .8125rem; gap: 16px; } }
.sx-tg .sw { font-size: 22px; }
@media (min-width: 1100px) { .sx-tg .sw { font-size: 30px; } }
.sx-tg:hover .sw { border-color: var(--paper); }
.sx-tg:hover .sw i { background: var(--paper); }
.sx-tg[aria-checked="true"] { color: var(--paper); }
.sx-tg[aria-checked="true"] .sw { --p: 1; border-color: var(--volt); }
.sx-tg[aria-checked="true"] .sw i { background: var(--ink); }
.sx-tg:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.sx-tg[aria-disabled="true"] { cursor: default; }
.sx-tg[aria-disabled="true"] .sw, .sx-tg[aria-disabled="true"]:hover .sw { border-color: var(--ash); }
.sx-tg[aria-disabled="true"]:hover .sw i { background: var(--ash); }
html:not(.js) .sx-tg { display: none; }

/* Hoy, a mano: ficha torcida con borde discontinuo */
.sx-today { --tilt: 0deg; margin-top: 20px; max-width: 40rem; padding: 14px 18px 16px; border: 1.5px solid var(--ink-line); border-radius: 4px; transform: rotate(var(--tilt)); transform-origin: 0 50%; transition: transform var(--dur-align) var(--ease-switch), border-color var(--dur-switch); }
.js .sx-auto:not(.is-on) .sx-today { --tilt: -1.4deg; border-style: dashed; border-color: var(--ash); }
.sx-today .lbl { color: var(--fog); text-decoration: line-through; text-decoration-color: var(--volt); text-decoration-thickness: 2px; }
.js .sx-auto:not(.is-on) .sx-today .lbl { text-decoration-color: transparent; }
.sx-today p { margin-top: 8px; color: var(--fog); }

/* Recorrido: entra -> la herramienta -> el equipo recibe -> quién lo comprueba (interruptor) */
.sx-flow { position: relative; display: grid; list-style: none; margin: 28px 0 0; padding: 0; }
@media (min-width: 900px) { .sx-flow { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; margin-top: 40px; } }
.sx-st { --r: 0deg; --x: 0px; --y: 0px; position: relative; padding: 0 0 28px 72px; min-height: 54px; transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform var(--dur-align) var(--ease-switch) calc(var(--i) * 70ms); }
.sx-st:last-child { padding-bottom: 4px; }
/* Apagado: cada estación descolocada (móvil, en x; escritorio, en y) */
.js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(1) { --r: -1.4deg; --x: 6px; }
.js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(2) { --r: 1.2deg; --x: -4px; }
.js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(3) { --r: -.8deg; --x: 10px; }
.js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(4) { --r: 1.8deg; --x: 2px; }
@media (min-width: 900px) {
  .js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(1) { --r: -2deg; --x: 0px; --y: 8px; }
  .js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(2) { --r: 1.6deg; --x: 0px; --y: -6px; }
  .js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(3) { --r: -1deg; --x: 0px; --y: 12px; }
  .js .sx-auto:not(.is-on):not(.sx-dev) .sx-st:nth-child(4) { --r: 2.4deg; --x: 0px; --y: -2px; }
}
.sx-nd { position: absolute; left: 13px; top: 0; width: 26px; height: 26px; display: grid; place-items: center; }
.sx-nd > i { display: block; width: 16px; height: 16px; border: 2px solid var(--volt); background: var(--volt); transition: background-color var(--dur-switch) var(--ease-switch), border-color var(--dur-switch) var(--ease-switch); }
.js .sx-auto:not(.is-on) .sx-nd > i { border-color: var(--ash); background: transparent; }
.sx-chk .sx-nd { left: 0; width: 52px; }
.sx-chk .sw { --p: 1; border-color: var(--volt); }
.sx-chk .sw i { background: var(--ink); }
.js .sx-auto:not(.is-on) .sx-chk .sw { --p: 0; border-color: var(--ash); }
.js .sx-auto:not(.is-on) .sx-chk .sw i { background: var(--ash); }
.sx-dev .sx-chk .sw { border-style: dashed; }
.sx-seg { position: absolute; left: 25px; top: 30px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, var(--ash) 0 5px, transparent 5px 10px); }
.sx-seg::after { content: ""; position: absolute; inset: 0; background: var(--volt); transform-origin: 0 0; transition: transform var(--dur-fast); }
.js .sx-auto:not(.is-on) .sx-seg::after { transform: scaleY(0); }
.sx-st .lbl { display: block; padding-top: 5px; color: var(--volt); transition: color var(--dur-switch); }
.sx-st p { margin-top: 8px; font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--paper); transition: color var(--dur-switch); }
.js .sx-auto:not(.is-on) .sx-st .lbl, .js .sx-auto:not(.is-on) .sx-st p { color: var(--fog); }
/* Secuencia al encender: primero se alinean, luego la línea corre de estación en estación y al final la persona enciende */
.sx-auto.is-on .sx-nd > i, .sx-auto.is-on .sx-st .lbl, .sx-auto.is-on .sx-st p { transition-delay: calc(var(--dur-align) + var(--i) * var(--dur-step)); }
.sx-auto.is-on .sx-seg::after { transition: transform var(--dur-step) var(--ease-out) calc(var(--dur-align) + var(--i) * var(--dur-step)); }
.sx-auto.is-on .sx-chk .sw, .sx-auto.is-on .sx-chk .sw::before, .sx-auto.is-on .sx-chk .sw i { transition-delay: calc(var(--dur-align) + var(--i) * var(--dur-step) + 80ms); }
@media (min-width: 900px) {
  .sx-st { padding: 46px 0 0; }
  .sx-st:last-child { padding-bottom: 0; }
  .sx-nd, .sx-chk .sx-nd { left: 0; }
  .sx-seg { left: 28px; right: -20px; top: 12px; bottom: auto; width: auto; height: 2px; background-image: repeating-linear-gradient(90deg, var(--ash) 0 5px, transparent 5px 10px); }
  .js .sx-auto:not(.is-on) .sx-seg::after { transform: scaleX(0); }
  .sx-st .lbl { padding-top: 0; }
}
@media (min-width: 1100px) { .sx-st p { font-size: 1.0625rem; } }
.sx-rel { margin-top: 20px; color: var(--fog); }
/* En desarrollo: no se puede encender; la ficha y las estaciones quedan rectas y en gris */
.js .sx-auto.sx-dev .sx-today { --tilt: 0deg; }

/* Desplegable nativo */
.sx-more { margin-top: 28px; border-top: 1px solid var(--ink-line); }
.sx-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; font-weight: 600; font-stretch: 125%; font-size: 1rem; }
.sx-more summary::-webkit-details-marker { display: none; }
.sx-more summary:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 2px; }
.sx-more summary:hover .sx-pm::before, .sx-more summary:hover .sx-pm::after { background: var(--paper); }
.sx-pm { position: relative; width: 20px; height: 20px; flex: none; }
.sx-pm::before, .sx-pm::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--volt); transition: transform var(--dur-switch) var(--ease-switch), background-color var(--dur-fast); }
.sx-pm::after { transform: rotate(90deg); }
.sx-more[open] .sx-pm::after { transform: rotate(0); }
.sx-more-g { display: grid; gap: 24px; padding: 4px 0 24px; }
@media (min-width: 900px) { .sx-more-g { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.sx-more-g .lbl { display: block; color: var(--fog); margin-bottom: 10px; }
.sx-fn { margin-top: 12px; color: var(--fog); }

/* Datos sensibles */
.sx-sens { padding-block: 88px; }
@media (min-width: 1100px) { .sx-sens { padding-block: 140px; } }
.sx-sens .h2 { max-width: 17ch; }
.sx-sens .lead { margin-top: 28px; }

/* Otros sectores */
.sx-oth { padding-block: 88px 96px; border-top: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .sx-oth { padding-block: 120px 140px; } }
.sx-oth-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.sx-oth-g { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .sx-oth-g { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.sx-mini { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; text-decoration: none; font-weight: 600; font-stretch: 125%; font-size: 1.0625rem; line-height: 1.2; min-height: 88px; transition: border-color var(--dur-fast); }
.sx-mini:hover, .sx-mini:focus-visible { border-color: var(--paper); }
.sx-mini .sx-pic { width: 48px; height: 48px; }
.sx-mini .sx-knob { margin-left: auto; width: 40px; height: 40px; }
.sx-sph-g > *, .sx-oth-g > * { min-width: 0; } /* sin esto, un compuesto alemán sin guion ensancha la rejilla y la página en móvil */
.sx-mini > span:not(.sx-knob) { min-width: 0; overflow-wrap: break-word; hyphens: auto; }

/* ---------- Contacto ---------- */
.proc { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.proc li { display: flex; gap: 16px; align-items: baseline; }
.proc .sw { font-size: 16px; transform: translateY(.12em); }
.ct { display: grid; gap: 64px; padding-bottom: 96px; }
@media (min-width: 1100px) { .ct { grid-template-columns: 5fr 7fr; gap: 24px 6%; padding-bottom: 128px; } .ct:not(:has(.cal)) { grid-template-columns: 7fr 5fr; } }
/* Sin la columna del calendario (RESERVA_ABIERTA = False en build.py) el formulario va en la columna ancha, alineado a la izquierda como el texto de arriba */
.cal { display: grid; gap: 24px; justify-items: start; margin-top: 24px; padding: 28px 24px; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; }
@media (max-width: 767px) { .cal .btn { width: 100%; justify-content: center; white-space: normal; height: auto; min-height: 52px; padding-block: 10px; line-height: 1.2; text-align: center; } }
/* Campo trampa del formulario (antispam del CRM): fuera de pantalla, no lo ve ni lo enfoca nadie */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { display: grid; gap: 22px; margin-top: 24px; }
.fld { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fl { font-weight: 600; font-size: .9375rem; padding: 0; }
.fl .opt { font-weight: 400; color: var(--ash); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; height: 56px; padding: 0 16px; background: var(--ink-raised); color: var(--paper);
  border: 1.5px solid var(--ink-border); border-radius: 4px; font: 400 17px/1.4 var(--sans); transition: border-color var(--dur-fast);
}
.form textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: var(--ash); }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(252,184,0,.35); outline-offset: 0; border: 2px solid var(--volt); }
.fld.err input, .fld.err textarea { border-color: var(--danger-on-ink); }
.msg { font-size: .9375rem; color: var(--danger-on-ink); }
.msg:empty { display: none; }
.hint { font-size: .9375rem; color: var(--ash); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--ink-border); border-radius: 9999px; padding: 3px; width: max-content; max-width: 100%; }
/* Cuatro idiomas de respuesta no caben en una fila a 375 px: el fieldset no puede ensanchar la página y las opciones pasan a dos filas */
fieldset.fld { min-width: 0; }
@media (max-width: 520px) { .seg { width: auto; max-width: max-content; border-radius: 26px; } }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 42px; padding: 0 18px; border-radius: 9999px; font-weight: 600; font-stretch: 125%; font-size: .9375rem; color: var(--ash); cursor: pointer; }
.seg input:checked + span { background: var(--paper); color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.chk { display: flex; gap: 14px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--ink-border); border-radius: 4px; background: var(--ink-raised); cursor: pointer; display: grid; place-items: center; }
.chk input:checked { background: var(--volt); border-color: var(--volt); }
.chk input:checked::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(-45deg); }
.chk input:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.fld.err .chk input { border-color: var(--danger-on-ink); }
.alert { border: 1.5px solid var(--danger-on-ink); border-radius: 4px; padding: 16px 18px; color: var(--danger-on-ink); font-size: .9375rem; }
.done { display: grid; gap: 18px; justify-items: start; margin-top: 24px; background: var(--ink-raised); border-radius: 4px; padding: 32px; }
.done .sw { font-size: 40px; }
.done:focus { outline: 3px solid var(--volt); outline-offset: 3px; }

.faq { margin-top: 48px; border-top: 1px solid var(--ink-line); max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sw { font-size: 18px; }
.faq details[open] summary .sw { --p: 1; border-color: var(--volt); }
.faq details[open] summary .sw i { background: var(--ink); }
.faq details p { padding: 0 0 28px; max-width: 44rem; color: var(--ash); }

/* ---------- Legales ---------- */
.legal { max-width: 44rem; padding-bottom: 128px; }
.legal h2 { margin: 56px 0 16px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 16px; }
.legal ul { padding-left: 1.2em; margin: 16px 0 0; }
.legal li + li { margin-top: 8px; }
.legal .lnk { font-weight: 400; }
.legal-banner { margin-top: 28px; }

/* ---------- Home v2, segunda vuelta (diseno/home-v2.html, 2026-11-26). Prefijo hv- ----------
   Bloque A: los 14 sectores (.hv-a). Bloque B: agentes por puesto con el parte de la mañana (.hv-b).
   .hv-off (sin ordenar, apagado), .hv-wait (línea que aún no ha llegado), .hv-dim, .hv-wip y .hv-undrawn solo los pone
   site.js cuando hay movimiento e IntersectionObserver: sin JS, con reducir movimiento o sin IO todo sale ordenado y encendido. */
:root { --dur-sort: 640ms; }
.hv-nt, .hv-nt * { transition: none !important; }

/* Interruptor «Auto»: los paneles pasan solos mientras está encendido. Lo esconde site.js si no hay movimiento */
.hv-auto {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; margin: -10px 0;
  background: none; border: 0; color: var(--fog); font: 500 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
@media (min-width: 1100px) { .hv-auto { font-size: .8125rem; } }
.hv-auto .sw { font-size: 14px; }
.hv-auto[aria-checked="true"] { color: var(--paper); }
.hv-auto[aria-checked="true"] .sw { --p: 1; border-color: var(--volt); }
.hv-auto[aria-checked="true"] .sw i { background: var(--ink); }
.hv-auto:hover { color: var(--paper); }
.hv-auto:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; border-radius: 2px; }
html:not(.js) .hv-auto, .hv-auto[hidden] { display: none; }

/* Titulares que se encienden por palabras con el scroll (de gris a su color) */
.hv-w { display: inline-block; color: var(--ash); transform: translateY(.1em); transition: color var(--dur-switch) var(--ease-switch), transform var(--dur-step) var(--ease-out); }
.hv-w.on { color: inherit; transform: none; }
.lt .hv-w:not(.on) { color: var(--paper-border); }

/* ================= BLOQUE A · sectores ================= */
.hv-a-h { display: grid; gap: 24px; }
@media (min-width: 1100px) { .hv-a-h { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 6%; align-items: end; } }
.hv-a-h .h2 { max-width: 22ch; }
.hv-a-h .lead { color: var(--fog); max-width: 34rem; }

/* Selector: 14 fichas con su pictograma. Móvil y tableta: dos filas que se deslizan con el pulgar. Escritorio: 7 x 2 */
.hv-pick { margin-top: 40px; }
@media (min-width: 1100px) { .hv-pick { margin-top: 64px; } }
.hv-pick-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.hv-pick-h .lbl { color: var(--fog); }
.hv-tiles {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 184px; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: -20px; padding: 6px 20px 14px; scroll-padding-inline: 20px;
  scrollbar-width: thin; scrollbar-color: var(--ink-border) transparent;
}
@media (min-width: 768px) { .hv-tiles { margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; grid-auto-columns: 208px; } }
@media (min-width: 1100px) { .hv-tiles { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: none; overflow: visible; margin: 0; padding: 6px 0 0; } }

.hv-tile {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "pic name";
  align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; overflow: hidden; scroll-snap-align: start;
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 4px; color: var(--fog);
  font: 600 .875rem/1.25 var(--sans); text-align: left; cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.hv-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--volt); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-switch) var(--ease-switch); }
/* Barra de progreso fina abajo: cuánto falta para pasar al siguiente sector (solo con «Auto» encendido) */
.hv-tile::after { content: ""; display: none; position: absolute; inset: auto 0 0; height: 2px; background: var(--volt); transform: scaleX(var(--pr, 0)); transform-origin: 0 50%; }
.hv-auto-on .hv-tile::after { display: block; }
.hv-tile .sx-pic { grid-area: pic; width: 28px; height: 28px; }
.hv-tno { display: none; }
.hv-tn { grid-area: name; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
@media (min-width: 1100px) {
  .hv-tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pic no" "name name"; grid-template-rows: auto 1fr; align-items: start; gap: 20px 8px; min-height: 152px; padding: 18px 14px 16px; font-size: .9375rem; }
  .hv-tile .sx-pic { width: 40px; height: 40px; }
  .hv-tno { display: block; grid-area: no; color: var(--ash); transition: color var(--dur-fast); }
  .hv-tn { align-self: end; }
}
.hv-tile[aria-selected="true"] { color: var(--paper); border-color: var(--paper); }
.hv-tile[aria-selected="true"]::before { transform: none; }
.hv-tile[aria-selected="true"] .v { fill: var(--volt); }
.hv-tile[aria-selected="true"] .hv-tno { color: var(--volt); }
.hv-tile:active { transform: scale(.98); }
.hv-tile:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
html:not(.js) .hv-pick { display: none; }

/* Pictogramas: se dibujan al entrar en pantalla (trazo con pathLength=1, una ficha tras otra) y la pieza se rellena al final */
.hv-tile .sx-pic { transition: transform var(--dur-switch) var(--ease-switch); }
.hv-tile .sx-pic path {
  stroke-dasharray: 1 2; stroke-dashoffset: 0; transform-box: fill-box; transform-origin: 50% 100%;
  transition: stroke-dashoffset 700ms var(--ease-out), fill-opacity var(--dur-step) var(--ease-out), fill var(--dur-switch) var(--ease-switch), transform var(--dur-switch) var(--ease-switch);
  transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms + 520ms), 0s, 0s;
}
.hv-undrawn .sx-pic path { stroke-dashoffset: 1; fill-opacity: 0; }
/* Ratón encima: el pictograma se inclina y su pieza sube, como un interruptor a punto de pulsarse */
@media (hover: hover) {
  .hv-tile:hover { color: var(--paper); border-color: var(--ash); }
  .hv-tile:hover .hv-tno { color: var(--paper); }
  .hv-tile:hover .sx-pic { transform: rotate(-6deg) scale(1.06); }
  .hv-tile:hover .sx-pic .v { transform: translateY(-3px); }
  .hv-tile[aria-selected="true"]:hover .hv-tno { color: var(--volt); }
}

/* Panel del sector elegido: cabecera con su interruptor, las tres estrellas y el enlace.
   Con JS los 14 paneles ocupan la misma celda: la caja mide lo que el más alto y cambiar de sector no mueve lo de abajo */
.hv-pn[hidden] { display: none; }
html.js .hv-panes { display: grid; }
html.js .hv-panes > .hv-pn { grid-area: 1 / 1; }
html.js .hv-panes > .hv-pn[hidden] { display: grid; visibility: hidden; }
.hv-pane { display: grid; grid-template-areas: "hd" "cards" "ft"; grid-template-rows: auto auto 1fr; gap: 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .hv-pane { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "hd cards" "ft cards"; grid-template-rows: auto 1fr; gap: 24px 48px; margin-top: 40px; padding-top: 40px; } }
.hv-pane-h { grid-area: hd; }
.hv-pane-h > * { transition: opacity var(--dur-step) var(--ease-out), transform var(--dur-step) var(--ease-out); }
.hv-pane-h > :nth-child(2) { transition-delay: 60ms; }
.hv-pane-h > :nth-child(3) { transition-delay: 120ms; }
.hv-pane-n { display: block; color: var(--fog); }
.hv-pane-t { display: flex; align-items: flex-start; gap: 14px; margin-top: 12px; font-stretch: 125%; font-weight: 700; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.75rem); line-height: 1.02; letter-spacing: -.015em; }
/* El interruptor del panel se enciende cuando ya han entrado las tres estrellas */
.hv-pane-t .sw { font-size: 20px; margin-top: .2em; --p: 1; border-color: var(--volt); }
.hv-pane-t .sw, .hv-pane-t .sw::before, .hv-pane-t .sw i { transition-delay: 820ms; }
.hv-pane-t .sw i { background: var(--ink); }
@media (min-width: 1100px) { .hv-pane-t .sw { font-size: 26px; margin-top: .14em; } }
.hv-pane-l { margin-top: 14px; max-width: 30rem; color: var(--fog); }
.hv-pane-ft { grid-area: ft; display: grid; gap: 14px; justify-items: start; align-self: end; }
@media (max-width: 1099px) { .hv-pane-ft { align-self: start; } }
.hv-pane-ft .sm { color: var(--fog); }

.hv-cards { grid-area: cards; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .hv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.hv-card {
  position: relative; overflow: hidden; padding: 22px 20px 24px; background: var(--ink-raised);
  border: 1px solid var(--ink-line); border-radius: 4px; transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  transition: transform var(--dur-align) var(--ease-switch), opacity var(--dur-step) var(--ease-out), border-color var(--dur-switch);
  transition-delay: calc(var(--o) * 140ms);
}
@media (min-width: 1100px) { .hv-card { padding: 28px 24px 32px; } }
.hv-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--volt); transform-origin: 0 50%; transition: transform var(--dur-step) var(--ease-out) calc(var(--dur-align) + var(--o) * 140ms); }
.hv-card-n { display: block; color: var(--volt); transition: color var(--dur-switch) var(--ease-switch) calc(var(--dur-align) + var(--o) * 140ms); }
.hv-card h4 { margin: 14px 0 0; font-stretch: 125%; font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; color: var(--paper); transition: color var(--dur-switch) var(--ease-switch) calc(var(--dur-align) + var(--o) * 140ms); }
@media (min-width: 1100px) { .hv-card h4 { font-size: 1.375rem; } }
.hv-card p { margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--fog); }
/* Apagado: el sector se acaba de elegir. Cabecera abajo y transparente, interruptor apagado,
   estrellas fuera (abajo, transparentes), torcidas y discontinuas: entran de una en una y se enderezan */
.hv-off .hv-pane-h > * { opacity: 0; transform: translateY(10px); }
.hv-off .hv-pane-t .sw { --p: 0; border-color: var(--ash); }
.hv-off .hv-pane-t .sw i { background: var(--ash); }
.hv-off .hv-card { --r: var(--t); --y: 18px; opacity: 0; border-style: dashed; border-color: var(--ash); }
.hv-off .hv-card::before { transform: scaleX(0); }
.hv-off .hv-card-n { color: var(--ash); }
.hv-off .hv-card h4 { color: var(--fog); }

/* ¿No está tu sector? y enlace a todos */
.hv-a-ft { display: grid; gap: 16px; justify-items: start; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .hv-a-ft { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 48px; margin-top: 72px; } }
.hv-a-ft p { max-width: 52rem; color: var(--fog); }
.hv-a-ft p .lnk { color: var(--paper); }

/* ================= BLOQUE B · agentes por puesto ================= */
.hv-b-h { display: grid; gap: 24px; }
@media (min-width: 1100px) { .hv-b-h { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 6%; align-items: end; } }
.hv-b-h .h1 { max-width: 15ch; }
.hv-b-h .lead { max-width: 34rem; }

/* La pantalla: negra sobre la sección clara. Es lo único oscuro del bloque */
.hv-app { margin-top: 40px; background: var(--ink); color: var(--paper); border-radius: 4px; overflow: hidden; }
@media (min-width: 1100px) { .hv-app { margin-top: 72px; } }
.hv-app .sw { border-color: var(--ash); }
.hv-app .sw i { background: var(--ash); }
.hv-app .sw::before { background: var(--volt); }
.hv-app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 56px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); }
@media (min-width: 1100px) { .hv-app-bar { min-height: 64px; padding: 12px 24px; } }
.hv-app-t { display: flex; align-items: center; gap: 12px; font-stretch: 125%; font-weight: 600; font-size: 1rem; line-height: 1.2; }
@media (min-width: 1100px) { .hv-app-t { font-size: 1.125rem; } }
.hv-app .hv-app-t .sw { font-size: 16px; --p: 1; border-color: var(--volt); }
.hv-app .hv-app-t .sw i { background: var(--ink); }
.hv-app.hv-wip .hv-app-t .sw { --p: 0; border-color: var(--ash); }
.hv-app.hv-wip .hv-app-t .sw i { background: var(--ash); }
/* Estado de la pantalla: contador de lo que ha llegado y la marca «listo para revisar» (mismo ancho en los dos estados) */
.hv-app-st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hv-cnt { display: inline-flex; gap: 8px; padding: 6px 8px; color: var(--fog); font-size: .6875rem; }
.hv-cnt b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.hv-rdy { padding: 5px 7px; border: 1px solid var(--volt); border-radius: 2px; background: var(--volt); color: var(--ink); font-size: .6875rem; transition: background-color var(--dur-switch) var(--ease-switch), color var(--dur-switch) var(--ease-switch), border-color var(--dur-switch); }
.hv-wip .hv-rdy { background: transparent; color: var(--ash); border-color: var(--ash); border-style: dashed; }
.hv-app .hv-tag { padding: 6px 8px; border-radius: 2px; background: var(--paper); color: var(--ink); font-size: .6875rem; }
.hv-app-g { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .hv-app-g { grid-template-columns: 296px minmax(0, 1fr); } }

/* Puestos: fila deslizable arriba (móvil) o columna a la izquierda (escritorio) */
.hv-side { border-bottom: 1px solid var(--ink-line); }
.hv-side-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px 0; }
.hv-side-h .lbl { color: var(--fog); }
.hv-roles { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 14px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; scrollbar-color: var(--ink-border) transparent; overscroll-behavior-x: contain; }
.hv-role {
  position: relative; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 232px; min-height: 48px;
  padding: 8px 12px; scroll-snap-align: start; background: none; border: 1px solid var(--ink-line); border-radius: 4px;
  color: var(--fog); font: 600 .9375rem/1.25 var(--sans); text-align: left; cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast);
}
.hv-role::after { content: ""; display: none; position: absolute; inset: auto 0 0; height: 2px; background: var(--volt); transform: scaleX(var(--pr, 0)); transform-origin: 0 50%; }
.hv-auto-on .hv-role::after { display: block; }
.hv-role .sw { font-size: 13px; }
.hv-role:hover { color: var(--paper); border-color: var(--ash); }
.hv-app .hv-role[aria-selected="true"] { color: var(--paper); background: var(--ink-raised); border-color: var(--paper); }
.hv-app .hv-role[aria-selected="true"] .sw { --p: 1; border-color: var(--volt); }
.hv-app .hv-role[aria-selected="true"] .sw i { background: var(--ink); }
.hv-role:focus-visible { outline: 3px solid var(--volt); outline-offset: -3px; }
@media (min-width: 1100px) {
  .hv-side { padding: 28px 16px; border-bottom: 0; border-right: 1px solid var(--ink-line); }
  .hv-side-h { padding: 0 12px 12px; }
  .hv-roles { flex-direction: column; gap: 4px; overflow: visible; padding: 0; }
  .hv-role { max-width: none; min-height: 56px; padding: 12px; border-color: transparent; }
  .hv-role:hover { border-color: var(--ink-line); }
}
html:not(.js) .hv-side { display: none; }

/* El parte: cabecera del puesto, líneas por grupos y lo que el agente deja preparado.
   Con JS los seis partes ocupan la misma celda: cambiar de puesto no mueve la página */
html.js .hv-rps { display: grid; }
html.js .hv-rps > .hv-rp { grid-area: 1 / 1; }
html.js .hv-rps > .hv-rp[hidden] { display: block; visibility: hidden; }
.hv-rp { padding: 24px 16px 28px; }
@media (min-width: 768px) { .hv-rp { padding: 32px 28px 36px; } }
@media (min-width: 1100px) { .hv-rp { padding: 40px 48px 48px; } }
html:not(.js) .hv-rp + .hv-rp { border-top: 1px solid var(--ink-line); }
.hv-rp h3 { font-stretch: 125%; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); line-height: 1.05; letter-spacing: -.015em; }
.hv-rp-d { margin-top: 10px; max-width: 46rem; font-size: .9375rem; line-height: 1.45; color: var(--fog); }
@media (min-width: 1100px) { .hv-rp-d { font-size: 1rem; } }

.hv-feed { display: flex; flex-direction: column; margin-top: 28px; }
.hv-it { order: var(--o); }
.hv-gh {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 20px 0 2px; padding-top: 16px;
  border-top: 1px solid var(--ink-line); font: 500 .75rem/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--fog); transition: opacity var(--dur-switch) var(--ease-out) var(--dur-sort);
}
@media (min-width: 1100px) { .hv-gh { font-size: .8125rem; } }
.hv-gh.g1 { margin-top: 0; color: var(--volt); }
.hv-gh.g3 { color: var(--paper); }
.hv-gc { color: var(--fog); }
/* Cada línea: --dy (FLIP), --in (entrada desde arriba) y su giro mientras está sin ordenar.
   Al ordenar, cada una sale 70 ms después de la anterior, en el orden en que llegó: el agente las coloca de una en una */
.hv-ln {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 9px 0;
  transform: translateY(calc(var(--dy, 0px) + var(--in, 0px))) rotate(var(--r, 0deg));
  transition: transform var(--dur-sort) var(--ease-switch), opacity var(--dur-step) var(--ease-out);
  transition-delay: calc(var(--a) * 70ms), 0s;
}
.hv-nd { width: 12px; height: 12px; margin-top: .42em; border: 2px solid var(--ash); transition: background-color var(--dur-switch) var(--ease-switch), border-color var(--dur-switch) var(--ease-switch); transition-delay: calc(var(--dur-sort) + var(--o) * 70ms); }
.hv-tx { font-size: .9375rem; line-height: 1.45; color: var(--fog); transition: color var(--dur-switch) var(--ease-switch) calc(var(--dur-sort) + var(--o) * 70ms); }
@media (min-width: 1100px) { .hv-tx { font-size: 1.0625rem; } }
/* Encendido: lo de hoy en volt y paper; lo que puede esperar se queda gris; los borradores, con el borde volt (esperan tu visto bueno) */
.g1 .hv-nd { background: var(--volt); border-color: var(--volt); }
.g1 .hv-tx { font-weight: 600; color: var(--paper); }
.g3 .hv-nd { border-color: var(--volt); }
.g3 .hv-tx { color: var(--paper); }
/* Sin ordenar: las líneas en el orden en que van llegando (--q, la última arriba), torcidas (--t), todo gris y sin rótulos */
.hv-off .hv-it { order: var(--q, var(--a)); }
.hv-off .hv-ln { --r: var(--t); transition-delay: 0s, 0s; }
.hv-off .hv-gh { opacity: 0; transition: none; }
.hv-off .hv-nd { background: transparent; border-color: var(--ash); transition-delay: 0s; }
.hv-off .hv-tx { color: var(--fog); transition-delay: 0s; }
/* Aún no ha llegado (o el borrador aún no se ha escrito): ocupa su sitio, invisible y un poco más arriba */
.hv-ln.hv-wait { --in: -14px; opacity: 0; }
/* Borrador escribiéndose: lo que falta ocupa su sitio en transparente. El cursor es un bloque volt cuadrado
   que no ocupa sitio (margen negativo igual a su ancho): la línea no cambia de forma mientras se escribe */
.hv-ty .hv-rest { color: transparent; }
.hv-typing .hv-ty > span:first-child::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-right: -.5em; vertical-align: -.14em; background: var(--volt); }
.hv-ln.hv-dr { transition-delay: 0s, 0s; }
.hv-dr .hv-tx, .hv-dr .hv-nd { transition-delay: 0s; }

.hv-prep { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.hv-prep > .lbl { display: block; color: var(--fog); }
.hv-prep ul { display: grid; gap: 2px; list-style: none; margin: 12px 0 0; padding: 0; }
@media (min-width: 1100px) { .hv-rp:not(.solo) .hv-prep ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.hv-prep li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 8px 0; }
.hv-prep .hv-nd { background: var(--volt); border-color: var(--volt); transition-delay: calc(var(--o) * 140ms); }
.hv-prep .hv-tx { color: var(--paper); transition-delay: calc(var(--o) * 140ms); }
/* Lo que deja preparado se enciende al final, cuando el parte ya está escrito */
.hv-dim .hv-prep .hv-nd { background: transparent; border-color: var(--ash); transition-delay: 0s; }
.hv-dim .hv-prep .hv-tx { color: var(--fog); transition-delay: 0s; }
/* Puesto sin parte escrito: lo que deja preparado pasa a ser el contenido de la pantalla */
.solo .hv-prep { margin-top: 32px; }
.solo .hv-prep li { padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.solo .hv-prep .hv-tx { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
@media (min-width: 1100px) { .solo .hv-prep .hv-tx { font-size: 1.25rem; } .solo .hv-prep li { padding: 16px 0; } }

/* Reglas y botón */
.hv-b-ft { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1100px) { .hv-b-ft { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 48px; margin-top: 56px; } }
.hv-rules { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .hv-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.hv-rules li { padding-top: 14px; border-top: 3px solid var(--ink); font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.hv-rules .lbl { display: block; margin-bottom: 8px; color: var(--stone); }
.hv-b-cta { display: grid; gap: 14px; justify-items: start; }
/* Sobre claro: pastilla negra con el círculo amarillo (como la llamada final encendida) */
.hv-b .btn { background: var(--ink); color: var(--paper); }
.hv-b .btn .k { background-color: var(--volt); background-image: var(--arrow-ink); }
.hv-b .btn:active { background: var(--ink-line); }
@media (max-width: 767px) {
  .hv-b-cta { justify-items: stretch; }
  .hv-b-cta .btn { justify-content: center; white-space: normal; height: auto; min-height: 52px; padding-block: 10px; line-height: 1.2; text-align: center; }
  .hv-b-cta .lnk { justify-self: start; }
}

/* El botón de la auditoría junto a las reglas del bloque B es estrecho: en alemán el texto no cabe en una línea */
.hv-b-cta .btn { max-width: 100%; height: auto; min-height: 56px; padding-block: 8px; line-height: 1.2; white-space: normal; }
.hv-b-cta .btn .k { top: calc(50% - 20px); }
@media (max-width: 767px) { .hv-b-cta .btn .k { top: calc(50% - 19px); } }

/* ---------- Movimiento reducido: todo encendido, sin transiciones ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  /* Excepción (Morgan, 2026-11-27): la cinta de automatizaciones se mueve y enciende igual para todos */
  html.js .ab:not(.ab-static) .ab-c { transition: transform var(--dur-align) var(--ease-out), border-color var(--dur-fast) !important; }
  html.js .ab:not(.ab-static) .ab-c::before { transition: transform var(--dur-belt-on) var(--ease-switch) !important; }
  html.js .ab:not(.ab-static) .ab-c .sx-pic { transition: transform var(--dur-switch) var(--ease-switch), color var(--dur-belt-on) !important; }
  html.js .ab:not(.ab-static) .ab-st { transition: color var(--dur-belt-on) !important; }
  html.js .ab:not(.ab-static) .ab-c .sw::before { transition: opacity var(--dur-switch) var(--ease-switch) !important; }
  html.js .ab:not(.ab-static) .ab-c .sw i { transition: transform var(--dur-switch) var(--ease-switch), background-color var(--dur-switch) !important; }
  html.js .ab.ab-nt:not(.ab-static) .ab-c, html.js .ab.ab-nt:not(.ab-static) .ab-c *, html.js .ab.ab-nt:not(.ab-static) .ab-c::before, html.js .ab.ab-nt:not(.ab-static) .ab-c *::before { transition: none !important; }
}
