/* ==========================================================================
   kwadrant.es — hoja de estilos única
   --------------------------------------------------------------------------
   Sistema visual documentado en docs/diseno-web.md. Paleta y tipografías de
   la identidad (Kwadrant-Systems, docs/diseno/identidad.md).

   Reglas de la casa:

   1. Esta hoja es el ÚNICO sitio donde hay CSS. Ni bloques <style> ni
      atributos style= en el HTML: la CSP va con style-src 'self' y
      style-src-attr 'none'. Un style= en línea se rompe en producción, y es
      intencionado.
   2. Dos tipografías, servidas desde este dominio (FONTS.md): DM Sans para el
      texto y las etiquetas de sección, IBM Plex Mono para datos y dibujos.
   3. Todo sale de los tokens de :root: paleta, espaciado, radios (4/6/8 px) y
      dos niveles de sombra. Bordes de 1 px.
   4. Cada página lleva un tema (<body data-tema>, sección 18) que cambia de
      valor los tokens: blanco en la empresa y Microsoft 365, azul profundo en
      el hero de Azure y página oscura en ciberseguridad y aplicaciones. Las
      secciones se separan con el filete de .sec.
   5. Movimiento solo como mejora: el contenido se ve completo sin JS y con
      prefers-reduced-motion: reduce (secciones 15c y 17).
   6. Las etiquetas de sección llevan delante el cuadrante de la marca (sección 5).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tipografías locales
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-var.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400-latin1.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400-latin2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500-latin1.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500-latin2.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Color (sistema visual del 3 de noviembre de 2026). Contraste medido con la
     fórmula de WCAG 2.1: ink sobre blanco 18,0 · ink-2 8,2 · ink-3 5,6 y sobre
     paper-2 5,2 · accent 8,7 · vivo 4,9 · ok 5,5 · aviso 5,9 · pend 7,7 ·
     field-rule 3,4 (bordes de campo y líneas de los dibujos) · blanco sobre
     action 8,7 · focus 5,3. */
  --paper:        #ffffff;   /* blanco: un solo fondo (2 de noviembre de 2026) */
  --paper-2:      #f5f7fa;   /* gris frío, solo para superficies dentro de un bloque */
  --white:        #ffffff;
  --panel:        #ffffff;   /* tarjetas y paneles */
  --ink:          #15171a;
  --ink-2:        #4a4f57;
  --ink-3:        #63686f;
  --rule:         #e3e7ec;
  --rule-2:       #c8cfd8;
  --field-rule:   #848b95;
  --accent:       #1f4e79;   /* azul de la marca: enlaces, etiquetas, iconos */
  --accent-ink:   #163a5a;
  --accent-soft:  #eaf1f7;
  --accent-line:  #c3d6e6;
  --vivo:         #1a6fd8;   /* azul vivo: acento del titular y marcas (4,9:1) */
  --action:       #1f4e79;   /* fondo del botón principal */
  --action-hover: #163a5a;
  --on-action:    #ffffff;
  --focus:        #2f6fa8;   /* anillo de foco */
  --ok:           #0f766e;   /* «hecho», siempre con la palabra */
  --ok-soft:      #e3f3f1;
  --aviso:        #8a5a00;   /* «revisar» */
  --aviso-soft:   #fbf1da;
  --pend:         #8c3a1d;   /* «pendiente» y errores */
  --pend-soft:    #f7e4dc;

  /* Tema noche: el hero de la portada y el pie. Los mismos papeles con otros
     valores; .hero-oscuro y .site-foot los toman con los nombres de arriba
     (sección «Tema noche», más abajo). Contraste: noche-ink sobre noche-paper
     18,0 · ink-2 12,2 · ink-3 7,0 · accent 8,7 · ok 10,5; sobre noche-paper-2
     (el pie) 16,5 · 11,2 · 6,4 · 8,0 · blanco sobre noche-action 4,9 y sobre
     noche-action-hover 6,5 · noche-field-rule 4,45. */
  --noche-paper:        #070d17;
  --noche-paper-2:      #0e1826;
  --noche-panel:        rgba(9, 16, 28, 0.84);
  --noche-ink:          #f3f6fa;
  --noche-ink-2:        #c3cedb;
  --noche-ink-3:        #8d9cb0;
  --noche-rule:         rgba(255, 255, 255, 0.12);
  --noche-rule-2:       rgba(255, 255, 255, 0.2);
  --noche-field-rule:   #6b7a8f;
  --noche-accent:       #6fb1ff;
  --noche-accent-ink:   #8cc4ff;
  --noche-accent-soft:  #12243a;
  --noche-accent-line:  #1d3550;
  --noche-action:       #1a6fd8;
  --noche-action-hover: #155cb5;
  --noche-focus:        #ffffff;
  --noche-ok:           #5fd0c3;
  --noche-aviso:        #e8b44a;
  --noche-pend:         #f0a07a;
  /* La marca sobre noche: los colores de la variante oscura del favicon. */
  --noche-mark:         #f1efe9;
  --noche-mark-accent:  #4a86c5;

  /* Tipografía. */
  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --t-xs:   12px;                        /* etiquetas técnicas en mayúsculas */
  --t-s:    14px;                        /* notas, pie */
  --t-m:    17px;                        /* cuerpo */
  --t-l:    19px;                        /* entradillas y h3 */
  --t-xl:   clamp(28px, 3.5vw, 42px);    /* h2 */
  --t-xxl:  clamp(34px, 4.6vw, 54px);    /* h1 */
  --track-label: 0.08em;

  /* Espaciado: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96. */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;

  /* Radios y sombras (dos niveles). */
  --r-1: 4px;  --r-2: 6px;  --r-3: 8px;
  --radius: var(--r-1);
  --shadow-1: 0 1px 2px rgba(14, 24, 38, 0.06), 0 1px 1px rgba(14, 24, 38, 0.04);
  --shadow-2: 0 1px 2px rgba(14, 24, 38, 0.05), 0 6px 16px -10px rgba(14, 24, 38, 0.16);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head-h: 72px;
  --wrap:    1160px;
  --measure: 66ch;
}

/* Tema noche. El hero de la portada y el pie usan los mismos nombres que el
   cuerpo; aquí cambian de valor. Lo que va dentro (botón, foco, estados) se
   escribe una sola vez. */
.hero-oscuro, .site-foot, .banda-noche, body[data-tema="casa"] .subnav {
  --paper:        var(--noche-paper);
  --paper-2:      var(--noche-paper-2);
  --panel:        var(--noche-panel);
  --ink:          var(--noche-ink);
  --ink-2:        var(--noche-ink-2);
  --ink-3:        var(--noche-ink-3);
  --rule:         var(--noche-rule);
  --rule-2:       var(--noche-rule-2);
  --field-rule:   var(--noche-field-rule);
  --accent:       var(--noche-accent);
  --accent-ink:   var(--noche-accent-ink);
  --accent-soft:  var(--noche-accent-soft);
  --accent-line:  var(--noche-accent-line);
  --vivo:         var(--noche-accent);
  --action:       var(--noche-action);
  --action-hover: var(--noche-action-hover);
  --focus:        var(--noche-focus);
  --ok:           var(--noche-ok);
  --aviso:        var(--noche-aviso);
  --pend:         var(--noche-pend);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* La cabecera es fija: sin esto, #contacto quedaría tapado por ella. */
  scroll-padding-top: calc(var(--head-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--t-xxl); line-height: 1.08; letter-spacing: -0.022em; font-weight: 500; }
h2 { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.016em; }
h3 { font-size: var(--t-l); font-weight: 600; }
h4 { font-size: var(--t-m); font-weight: 600; }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}

a:hover { text-decoration-color: currentColor; }

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

strong { font-weight: 600; }

code, .t-mono { font-family: var(--f-mono); font-size: 0.9em; }

img, svg { max-width: 100%; }
img { height: auto; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .solid { fill: currentColor; stroke: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { left: var(--s-2); }

/* --------------------------------------------------------------------------
   4. Estructura
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.sec { padding: var(--s-9) 0; border-top: 1px solid var(--rule); }
.sec-first { border-top: 0; padding: var(--s-8) 0 var(--s-9); }
.sec-tight { padding: var(--s-6) 0 var(--s-8); }
.sec-alt { background: var(--white); }
.sec-join { border-top: 0; padding-top: 0; }

/* Un solo color de fondo en todo el cuerpo, el blanco (Albert, 2 de noviembre de
   2026: «un color sólido en toda la página»). Las secciones se separan con el
   filete de .sec, no con fondos alternos. Las clases de fondo (.sec-alt,
   .sec-white, .sec-grid, .sec-dots y la antigua banda .sec-night) se quedan en
   los cuerpos y aquí no cambian nada: el navy vive solo en la cabecera y el pie. */
.sec-white, .sec-dots, .sec-night { background: var(--white); }

/* Cabecera de bloque: etiqueta, titular y, si hace falta, una entradilla. */
.sec-head { margin-bottom: var(--s-7); max-width: 760px; }
.sec-head > p { margin-top: var(--s-3); color: var(--ink-2); }

/* Dos columnas asimétricas: el titular a la izquierda, el contenido a la
   derecha. La columna izquierda es ancha para que el titular no se parta en
   cuatro líneas. */
.split {
  display: grid;
  gap: var(--s-5) var(--s-7);
}

@media (min-width: 760px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split > :first-child { position: sticky; top: calc(var(--head-h) + var(--s-5)); align-self: start; }
}

.cols-2 { display: grid; gap: var(--s-6); }

@media (min-width: 760px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   5. Texto
   -------------------------------------------------------------------------- */

/* Etiqueta: la mono, en minúscula con inicial, con el cuadrante azul de la
   marca delante. Sustituye a las mayúsculas sostenidas de la versión anterior. */
/* La etiqueta de sección lleva delante el cuadrante de Kwadrant, en pequeño: es
   la firma visual del sitio (2 de noviembre de 2026). Va en la sans y en caja
   normal; la mono queda para datos y dibujos. El dibujo es un SVG en data: (la CSP
   admite img-src data:). */
.eyebrow, .num {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-family: var(--f-sans);
  font-size: var(--t-s);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.eyebrow::before, .num::before {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='45' height='45' fill='%2315171a'/%3E%3Crect y='55' width='45' height='45' fill='%2315171a'/%3E%3Crect x='55' y='55' width='45' height='45' fill='%2315171a'/%3E%3Cpath d='M55 0h30l15 15v30H55z' fill='%231a6fd8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sv-row .eyebrow::before, .sv-row .num::before { display: none; }

.eyebrow-flag { color: var(--pend); }

.lede {
  margin-top: var(--s-5);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.note { font-size: var(--t-s); color: var(--ink-2); }
h1 + .note, h2 + .note { margin-top: var(--s-3); }
.fine { font-size: var(--t-s); color: var(--ink-3); line-height: 1.5; }

/* El número de la línea de negocio: «01», «02». */

/* --------------------------------------------------------------------------
   6. Cabecera y pie
   -------------------------------------------------------------------------- */

/* Cabecera (2 de noviembre de 2026, encargo de Albert: «la cabecera sigue
   teniendo un aspecto mediocre en comparación con la primera pantalla»). Toma
   el registro del hero: el mismo blanco, la tinta y el azul vivo del titular, y
   un filete en lugar de una banda de color. Fija y opaca, sin desenfoque. Tres
   zonas: la marca, la navegación en el centro y, a la derecha, el idioma y el
   botón. Las cinco entradas caben desde 1.080 px; por debajo, el menú del móvil. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.brand svg { width: 30px; height: 30px; flex: none; }
.site-head .brand .marca-acento { fill: var(--vivo); }

.brand-text { display: inline-flex; align-items: baseline; gap: var(--s-2); }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.09em;
  /* El logotipo, no un texto: la marca se escribe en mayúsculas. */
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* Navegación de escritorio: una lista centrada entre la marca y las acciones.
   Cada enlace ocupa todo el alto de la barra; la raya del azul vivo se apoya en
   el filete de abajo, como una pestaña. */
.site-nav { flex: 1; display: flex; justify-content: center; align-self: stretch; }

.nav-list { display: flex; align-items: stretch; gap: var(--s-1); list-style: none; }

.nav-item { position: relative; display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* 8 px a cada lado desde que la cabecera lleva el comprobador del correo (22 de
     noviembre de 2026): con 12, la barra catalana pasaba de los 1.160 px. */
  padding: 0 var(--s-2);
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: var(--s-2);
  right: var(--s-2);
  bottom: -1px;
  height: 2px;
  background: var(--vivo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover,
.nav-item:focus-within > .nav-link,
.nav-link[aria-current="page"],
.nav-activo > .nav-link { color: var(--ink); }

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-activo > .nav-link::after { transform: scaleX(1); }

.nav-link:focus-visible { outline-offset: -3px; }

.nav-chev {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.nav-grupo:hover .nav-chev,
.nav-grupo:focus-within .nav-chev { transform: rotate(180deg); }

/* Submenú. Siempre está en el HTML (un lector de pantalla lo lee como una lista
   anidada y el tabulador entra en él); se ve al pasar el ratón por el grupo o al
   llegar a él con el teclado. Sin JavaScript funciona igual; ui.js añade el
   cierre con Escape (.nav-cerrado), que pide la WCAG 1.4.13. */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 41;
  display: grid;
  gap: 2px;
  min-width: 360px;
  padding: var(--s-2);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  box-shadow: 0 1px 2px rgba(14, 24, 38, 0.06), 0 18px 40px -18px rgba(14, 24, 38, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.18s var(--ease);
}

.nav-grupo:hover > .nav-sub,
.nav-grupo:focus-within > .nav-sub { opacity: 1; pointer-events: auto; transform: none; }

.nav-grupo.nav-cerrado > .nav-sub { opacity: 0; pointer-events: none; transform: translateY(6px); }
.nav-grupo.nav-cerrado .nav-chev { transform: none; }

.nav-sub a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  border-radius: var(--r-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--paper-2); }
.nav-sub a:focus-visible { outline-offset: -2px; }
.nav-sub a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--vivo); }
.nav-sub .sv { width: 38px; height: 38px; }
.nav-sub .sv .icon { width: 21px; height: 21px; }
.nav-sub-t { display: grid; }
.nav-sub small { font-size: var(--t-s); font-weight: 400; color: var(--ink-3); }

/* A la derecha: el comprobador del correo, la bandera del otro idioma y el botón. */
.head-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.btn-sm { min-height: 42px; padding: var(--s-2) var(--s-4); font-size: 15px; }
.head-cta { white-space: nowrap; }

/* El comprobador del correo, a la vista en todas las páginas (Albert, 22 de noviembre de
   2026): el sobre con la marca, en un botón con borde de 44 × 44 px a la izquierda de la
   bandera. El texto no cabe: con seis entradas, la barra catalana ya llena los 1.160 px.
   El nombre va en texto oculto (lector de pantalla) y en el title (al pasar el ratón); en
   el menú del móvil, con el texto a la vista. */
.head-comp {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.head-comp:hover { background: var(--paper-2); border-color: var(--accent); }
.head-comp[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); }

/* En el menú del móvil, una fila con el icono y el texto, encima del botón. */
.menu-comp {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.menu-comp:hover { background: var(--paper-2); }
.menu-comp[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); }

/* Selector de idioma: la bandera del otro idioma, sin la palabra. El área de
   pulsación es de 44 × 44 px (WCAG 2.5.8 pide 24; 44, la medida del pulgar). */
.lang {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-2);
  text-decoration: none;
  transition: background 0.15s;
}

.lang:hover { background: var(--paper-2); }

.bandera { display: block; width: 27px; height: 18px; border-radius: 2px; }

/* Texto solo para lectores de pantalla. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Menú del móvil: un <details>, sin JavaScript. Abre una hoja a todo el ancho
   bajo la barra, con los grupos y sus páginas a la vista. Funciona con teclado:
   Tab llega al resumen, Intro o Espacio lo abren, y Escape lo cierra si ui.js
   está cargado. */
.menu-m { display: none; }

.menu-m summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.menu-m summary::-webkit-details-marker { display: none; }
.menu-m[open] summary { border-color: var(--ink); }

.menu-ico, .menu-ico::before, .menu-ico::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.menu-ico { position: relative; }
.menu-ico::before, .menu-ico::after { content: ''; position: absolute; left: 0; }
.menu-ico::before { top: -6px; }
.menu-ico::after  { top: 6px; }

.menu-m[open] .menu-ico { background: transparent; }
.menu-m[open] .menu-ico::before { transform: translateY(6px) rotate(45deg); }
.menu-m[open] .menu-ico::after  { transform: translateY(-6px) rotate(-45deg); }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--head-h));
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-2) var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  box-shadow: 0 18px 32px -20px rgba(14, 24, 38, 0.3);
  display: grid;
  gap: var(--s-5);
}

.menu-lista, .menu-lista ul { list-style: none; }

.menu-lista > li { border-bottom: 1px solid var(--rule); }

.menu-lista a {
  display: block;
  padding: var(--s-3) 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.menu-lista ul { margin: 0 0 var(--s-3); padding-left: var(--s-4); border-left: 2px solid var(--rule); }
.menu-lista ul a { padding: 10px 0; font-size: 16px; font-weight: 500; color: var(--ink-2); } /* 44 px de alto */
.menu-lista a[aria-current="page"] { color: var(--accent); }
.menu-panel .btn { width: 100%; }

/* «Systems» se esconde hasta 1.259 px (1.199 hasta que llegó el comprobador a la
   cabecera, el 22 de noviembre de 2026): entre 1.200 y 1.260 px la barra catalana, con
   «Systems», pasaba del ancho de la ventana. */
@media (max-width: 1259px) {
  .site-head .brand-sub { display: none; }
}

/* Por debajo de 1.160 px, o en una pantalla sin ratón (una tableta en horizontal,
   donde tocar el grupo navega sin abrir el submenú), el menú del móvil. Era 1.080
   hasta que «Contacto» volvió al menú: con seis entradas, la barra catalana no
   cabía a 1.080 px. */
@media (max-width: 1159px), (hover: none) {
  :root { --head-h: 64px; }
  .site-nav, .head-actions .head-cta { display: none; }
  .head-actions { margin-left: auto; gap: var(--s-2); }
  .menu-m { display: block; }
  /* Con la hoja abierta, la página de fondo no se desplaza. */
  html:has(.menu-m[open]) { overflow: hidden; }
}

/* Con el comprobador del correo en la barra (22 de noviembre de 2026), por debajo de
   410 px (los móviles de 360 a 390 px) no caben la marca, el sobre, la bandera y «Menú»: el
   botón se queda con el icono y la palabra sigue para el lector de pantalla. Era solo en
   los de 320 px. */
@media (max-width: 409px) {
  .menu-m summary { min-width: 44px; justify-content: center; padding: 0 var(--s-2); }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* En los más estrechos (320 px) tampoco cabe el sobre: el comprobador queda dentro del
   menú, con su texto. */
@media (max-width: 359px) {
  .site-head-inner { gap: var(--s-3); }
  .head-actions .head-comp { display: none; }
}

/* El filete de arriba separa el pie de las páginas que acaban en una banda
   oscura: sin él harían costura. */
.site-foot {
  padding: var(--s-8) 0 var(--s-6);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: var(--t-s);
  color: var(--ink-2);
}

/* El pie va en el tema noche (sección «Tema noche»): el foco es blanco y .fine
   va en --ink-2 (11,2:1). La marca, con los colores de la variante oscura del
   favicon. */
.site-foot .fine { color: var(--ink-2); }
.site-foot .brand { color: var(--ink); }
.site-foot .brand .marca-tinta  { fill: var(--noche-mark); }
.site-foot .brand .marca-acento { fill: var(--noche-mark-accent); }
.site-foot .brand-sub { color: var(--ink-2); }

.site-foot-grid {
  display: grid;
  gap: var(--s-7) var(--s-6);
  margin-bottom: var(--s-7);
}

@media (min-width: 760px) {
  .site-foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.foot-brand .brand { margin-bottom: var(--s-4); }
.foot-brand p { max-width: 38ch; }

.foot-loc {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-foot h2 {
  margin-bottom: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: var(--s-3); }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot li a { color: var(--ink-2); transition: color 0.2s; }
.site-foot li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* Con el dedo, cada enlace del pie ocupa 44 px de alto; el margen entre filas lo
   pone ya esa altura (auditoría móvil, 3 de noviembre de 2026). */
@media (pointer: coarse) {
  .site-foot li { margin-bottom: 0; }
  .site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
}
.site-foot p { margin-bottom: var(--s-2); }

.foot-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}

.foot-bottom .fine { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   7. Acciones
   -------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
}

.actions + .fine { margin-top: var(--s-3); }

/* El botón principal: uno por pantalla. En el cuerpo, azul de la marca con
   texto blanco (8,7:1); en noche, azul vivo (4,9:1). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--action);
  border-radius: var(--r-1);
  background: var(--action);
  color: var(--on-action);
  font: 500 16px/1.2 var(--f-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; }

/* Estado de carga: el JS del formulario deja el botón en disabled y cambia su
   texto a «Enviando…»; la rueda la dibuja la hoja de estilos. */
.btn[disabled]::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: giro 0.8s linear infinite;
}

@keyframes giro { to { transform: rotate(360deg); } }

/* Enlace secundario: dice adónde lleva y no compite con el botón. La flecha
   la pone la hoja de estilos, así no cuenta como palabra ni la lee dos veces
   un lector de pantalla. */
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;               /* zona para el pulgar (auditoría móvil, 3/11/2026) */
  font-weight: 500;
  text-decoration: none;
}

.more::after { content: '\00a0\2192'; }
.more:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. Hero, diagrama de la migración y franja de orígenes
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); }
}

.hero-copy h1 { max-width: 13em; }

/* Chips de confianza: lo que el texto ya promete, a la vista. */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--t-s);
  font-weight: 500;
}

.icon-sm { width: 18px; height: 18px; }
/* Nombre heredado: desde el registro sobrio, las marcas de comprobado van en el azul
   de la marca. El teal queda para los estados «hecho» de las maquetas. */
.icon-teal { stroke: var(--accent); }

.hero-fig-wrap {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

@media (max-width: 1099px) {
  .hero-fig-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
}

.hero-fig { display: block; width: 100%; height: auto; margin: 0 auto; }

.hero-fig text { font-family: var(--f-sans); fill: var(--ink); }
.hero-fig .fig-t  { font-size: 14px; font-weight: 600; }
.hero-fig .fig-s  { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-3); }
.hero-fig .fig-s2 { font-size: 12px; font-weight: 600; fill: var(--ok); }
.hero-fig .fig-s3 { font-size: 12.5px; fill: var(--ink-3); }
.hero-fig .fig-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  fill: var(--ink-3);
}
.hero-fig .fig-dest { font-size: 15px; font-weight: 600; fill: var(--accent-ink); }

.hero-fig .fig-box   { fill: var(--paper); stroke: var(--rule-2); }
.hero-fig .fig-cloud { fill: var(--accent-soft); stroke: var(--accent-line); }
.hero-fig .fig-row   { fill: var(--white); stroke: var(--accent-line); }
.hero-fig .fig-badge { fill: var(--white); stroke: var(--accent-line); }
.hero-fig .fig-ico   { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-fig .fig-big   { stroke: var(--accent); }
.hero-fig .fig-ok    { stroke: var(--ok); }

/* Líneas finas: las de los orígenes en gris (3,4:1 sobre blanco, WCAG 1.4.11), la
   que entra en Microsoft 365 en el azul de la marca. En la portada se trazan al
   cargar (sección 15c). */
.hero-fig .fig-line  { fill: none; stroke: var(--field-rule); stroke-width: 1.25; }   /* 3,4:1 */
.hero-fig .fig-head  { fill: var(--accent); }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-1);
  background: var(--paper);
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.chip .icon { stroke: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--ink); }

/* Un flujo en chips: una flecha entre paso y paso. */
.chips-flujo { margin: var(--s-5) 0; }
.chips-flujo li + li::before {
  content: '→';
  margin-right: var(--s-3);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   9. Componentes
   -------------------------------------------------------------------------- */

/* Panel: un bloque con filete, sin sombra. */
.panel {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.sec-alt .panel { background: var(--white); }

.panel h3 { margin-bottom: var(--s-3); }
.panel > p { color: var(--ink-2); }
.panel .more { margin-top: var(--s-4); }

/* Pasos numerados. El número lo pone el contador, en la mono. */
.steps {
  list-style: none;
  counter-reset: paso;
  display: grid;
  gap: var(--s-5);
}

.steps > li {
  counter-increment: paso;
  position: relative;
  padding-left: 44px;
}

.steps > li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--f-mono);
  font-size: var(--t-s);
  color: var(--accent);
}

.steps h3 { font-size: var(--t-m); margin-bottom: var(--s-1); }
/* «Cómo trabajamos» cierra con el botón: en el móvil, entre el del hero y el
   formulario había siete pantallas sin ninguno (auditoría móvil, 3 de noviembre
   de 2026). Es el único botón de esa pantalla. */
.pasos-cta { margin-top: var(--s-7); }
.steps p { color: var(--ink-2); }

@media (min-width: 760px) {
  /* Tantas columnas como pasos: tres en /demo, cuatro en el resto. */
  .steps-row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-6); }
  .steps-row > li { padding: var(--s-7) 0 0; border-top: 1px solid var(--rule-2); }
  .steps-row > li::before { top: var(--s-4); }
}

.tl-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-1);
  background: var(--accent-soft);
}

.tl-ico .icon { width: 20px; height: 20px; }

/* Integración con el ERP: el texto, la tarjeta de Origen, el esquema y las marcas. */
.apps-top { display: grid; gap: var(--s-7); align-items: end; margin-bottom: var(--s-8); }

@media (min-width: 1100px) {
  .apps-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); }
}

.apps-copy .lede { margin-top: var(--s-4); color: var(--ink-2); }

.apps-flow {
  margin-bottom: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--paper-2);
}

@media (max-width: 759px) {
  .apps-flow { padding: var(--s-5) var(--s-4); }
}

/* Maquetas ilustrativas, en HTML y CSS. Van con aria-hidden: la figura lleva su
   propia descripción. */
.mock-wrap { margin: 0; }

.mock {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--white);
  box-shadow: var(--shadow-2);
  color: var(--ink);
  font-size: var(--t-s);
  line-height: 1.4;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.mock-name { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }

.mock-body { padding: var(--s-5); }

.mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.mock .mock-head strong { font-size: var(--t-l); color: var(--ink); }
.mock-head span { font-size: var(--t-s); color: var(--ink-3); }

.mock-rows { list-style: none; }

.mock-rows li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
}

.mock-rows .mock-cols {
  padding: 0 0 var(--s-2);
  border-top: 0;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.mock-id { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); }

.mock-st {
  display: inline-block;
  padding: 2px var(--s-3);
  border-radius: var(--r-1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.mock-ok    { background: var(--ok-soft); color: var(--ok); }
.mock-aviso { background: var(--aviso-soft); color: var(--aviso); }
.mock-pend  { background: var(--pend-soft); color: var(--pend); }

.mock-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

.mock-btn {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-1);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.mock-fine { font-size: 13px; color: var(--ink-3); }

.mock-wrap figcaption { margin-top: var(--s-3); }

.tag-ej {
  display: inline-block;
  padding: 2px var(--s-3);
  border: 1px solid currentColor;
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* El semáforo del informe: un punto de color con su palabra al lado. */
.sem { width: 10px; height: 10px; border-radius: 50%; }
.sem-ok { background: var(--ok); }
.sem-aviso { background: #c98a12; }
.sem-pend { background: var(--pend); }

.mock-rows-2 li { grid-template-columns: 14px minmax(0, 1fr) auto; }
.mock-rows-2 li:first-child { border-top: 0; padding-top: 0; }
.mock-head { flex-wrap: wrap; }

@media (max-width: 559px) {
  .mock-rows-2 li { grid-template-columns: 14px minmax(0, 1fr); row-gap: var(--s-1); }
  .mock-rows-2 .mock-st { grid-column: 2; justify-self: start; }
  .mock-body { padding: var(--s-4); }
}

/* «Integramos con»: una rejilla de marcas con el mismo tratamiento. Hoy todas
   son wordmarks de texto (docs/assets-marcas.md); con un logo propio se pintaría
   en gris y a color al pasar el ratón, a la misma altura. */
.integra-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-5);
}

.integra-head h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.integra-head p { margin: 0; color: var(--ink-2); }

.integra-g { margin-top: var(--s-6); }

.integra-gt {
  margin-bottom: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.marcas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--s-3);
}

.marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.marca:hover { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

.marca-nom {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.15s;
}

.marca:hover .marca-nom { color: var(--ink); }

.marca-pre {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.marca img { display: block; height: 28px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.marca:hover img { filter: none; opacity: 1; }

/* En el móvil, las marcas van en fila, como etiquetas: en dos columnas de tarjetas
   ocupaban 456 px de los 1.949 de la sección; así, 278 (auditoría móvil, 3 de
   noviembre de 2026). */
@media (max-width: 559px) {
  .marcas { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .marca { flex: 1 1 auto; flex-direction: row; gap: 6px; min-height: 44px; padding: var(--s-2) 14px; }
  .marca-nom { font-size: 15px; }
}

.aviso-marcas { margin: var(--s-6) 0 0; max-width: none; font-size: 13px; color: var(--ink-3); }

/* Ficha: etiqueta a la izquierda, dato a la derecha. */
.spec { margin: 0; border-top: 1px solid var(--rule); }

.spec > div {
  display: grid;
  gap: var(--s-1) var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 560px) {
  .spec > div { grid-template-columns: 180px 1fr; }
}

.spec dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}

.spec dd { margin: 0; }

.sec h3 { margin-bottom: var(--s-3); }
.spec + h3 { margin-top: var(--s-7); }

/* Lista con marca de comprobado: lo que se incluye o se entrega. */
.ticks { list-style: none; display: grid; gap: var(--s-3); }

.ticks > li { position: relative; padding-left: 28px; }

.ticks > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Lista con guion: enumeraciones neutras. */
.dashed { list-style: none; display: grid; gap: var(--s-2); }
.dashed > li { position: relative; padding-left: 22px; }
.dashed > li::before { content: '\2014'; position: absolute; left: 0; color: var(--ink-3); }

/* Datos clave: tres tarjetas con su icono (plazo, acceso, garantía). */
.facts {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  margin: var(--s-5) 0 var(--s-6);
}

@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.facts li {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.facts .icon { display: block; margin-bottom: var(--s-3); stroke: var(--accent); }
.facts strong { display: block; margin-bottom: var(--s-1); }
.facts span { display: block; font-size: var(--t-s); color: var(--ink-2); }

/* Aviso enmarcado: límites y lo que no se promete. */
.callout {
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--pend);
  background: var(--paper-2);
}

/* Estado de una medida: texto y color, nunca solo color. */
.st {
  display: inline-block;
  padding: 1px var(--s-2);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.st-ok { color: var(--ok); }
.st-pend { color: var(--pend); }

/* --------------------------------------------------------------------------
   10. Tablas
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  caption-side: bottom;
  padding-top: var(--s-3);
  text-align: left;
  font-size: var(--t-s);
  color: var(--ink-3);
}

th, td {
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom-color: var(--rule-2);
}

/* Tabla de servicios de /azure: la primera columna es el nombre del área, en la
   sans y en la tinta, no una etiqueta; la del servicio de Azure (.tec), en gris. */
.tabla-servicios tbody th {
  min-width: 150px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.tabla-servicios td.tec { color: var(--ink-2); font-size: var(--t-s); }

/* En el móvil, cada fila es un bloque y cada celda lleva el nombre de su
   columna (data-th). */
@media (max-width: 759px) {
  /* El caption también pasa a bloque: si se queda en table-caption dentro de una
     tabla que ya es un bloque, se encoge a una columna de 80 px. Con flex y order
     sigue debajo, como manda caption-side. */
  table, thead, tbody, tr, th, td, caption { display: block; }
  table { display: flex; flex-direction: column; }
  caption { order: 1; }
  thead { position: absolute; left: -9999px; }
  tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule-2); }
  td { padding: var(--s-1) 0; border: 0; }
  .tabla-servicios tbody th { padding: var(--s-1) 0 var(--s-2); border: 0; font-size: 17px; }
  td[data-th]::before {
    content: attr(data-th);
    display: block;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--ink-3);
  }
}

/* --------------------------------------------------------------------------
   11. Preguntas: <details> nativo
   -------------------------------------------------------------------------- */

.qa { display: grid; gap: var(--s-3); max-width: 820px; }

.qa details {
  border: 1px solid var(--rule-2);
  border-radius: var(--r-2);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qa details:hover { border-color: var(--accent-line); }
.qa details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-1); }

.qa summary {
  position: relative;
  padding: var(--s-4) var(--s-7) var(--s-4) var(--s-5);
  border-radius: var(--r-2);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

/* El icono +/−: dos barras; la vertical gira y desaparece al abrir. */
.qa summary::before,
.qa summary::after {
  content: '';
  position: absolute;
  right: var(--s-5);
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0); opacity: 0; }

.qa details > p {
  padding: 0 var(--s-5) var(--s-4);
  color: var(--ink-2);
  animation: aparece 0.35s var(--ease);
}

@keyframes aparece { from { opacity: 0; transform: translateY(-4px); } }

/* Donde el navegador lo admite (::details-content), la respuesta también se
   despliega en altura en lugar de aparecer de golpe. */
@supports selector(::details-content) {
  .qa details { interpolate-size: allow-keywords; }

  .qa details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .qa details[open]::details-content { block-size: auto; }
}

/* --------------------------------------------------------------------------
   12. Formulario
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--s-4); }

#form-campos { display: grid; gap: var(--s-4); }
#form-campos[hidden] { display: none; }

.field { display: grid; gap: var(--s-1); }

.field-row { display: grid; gap: var(--s-4); }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink-2);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--field-rule);
  border-radius: var(--r-1);
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 var(--f-sans);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }

.field textarea { min-height: 112px; resize: vertical; }

/* Los selects conservan el control nativo (teclado, lectores de pantalla y
   móvil funcionan solos); solo cambian su flecha, con un SVG en data: (la CSP
   admite img-src data:). */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2363686f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  cursor: pointer;
}

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* Error: solo después de que el visitante haya tocado el campo (:user-invalid).
   El mensaje lo da el formulario; aquí, el borde, el fondo y la etiqueta. */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: var(--pend);
  background-color: #fdf6f3;
}

.field:has(:user-invalid) label { color: var(--pend); }

/* Honeypot: fuera de la pantalla y fuera del recorrido del teclado. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* El widget de Turnstile no ocupa sitio hasta que se carga. */
.turnstile-contenedor:empty { display: none; }

.form .actions { margin-top: var(--s-2); }
.form .actions + .fine { margin-top: 0; }

/* Primera capa de protección de datos: el texto no cambia; solo la forma. Cada
   epígrafe en negrita pasa a subtítulo, en la mono y pequeño. */
.form-aviso {
  margin-top: var(--s-2);
  padding: var(--s-4);
  border-radius: var(--r-1);
  background: var(--paper-2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: none;
}

.form-aviso strong {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

.form-aviso strong:first-child { margin-top: 0; }

.form-estado:empty { display: none; }

.form-estado {
  padding: var(--s-4);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--r-1);
  background: var(--paper-2);
}

.form-estado.ok { border-left-color: var(--ok); }
.form-estado.error { border-left-color: var(--pend); }

.contact-panel {
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

@media (max-width: 559px) {
  .contact-panel { padding: var(--s-5) var(--s-4); }
}

/* --------------------------------------------------------------------------
   13. Textos legales
   -------------------------------------------------------------------------- */

.legal-body, .guia-body { max-width: 760px; }

/* Guías (4 de noviembre de 2026): el texto largo comparte la medida de los
   legales; la lista de guías es una columna de enlaces con su descripción. */
.guia-body h2 { margin: var(--s-7) 0 var(--s-3); font-size: 24px; }
.guia-body h2:first-child { margin-top: 0; }
.guia-body h3 { margin: var(--s-5) 0 var(--s-2); }
.guia-body p { margin-bottom: var(--s-4); }
.guia-body ul, .guia-body ol { margin: 0 0 var(--s-4) var(--s-5); }
.guia-body li { margin-bottom: var(--s-2); }
.guia-body table { margin-bottom: var(--s-5); }
/* Los valores de los registros DNS (guía de SPF, DKIM y DMARC) se parten en el móvil. */
.guia-body code { overflow-wrap: anywhere; }
.guia-body .fuentes { font-size: 15px; color: var(--ink-2); }
.guia-body .fuentes a { overflow-wrap: anywhere; }

.guias-lista { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.guias-lista li { border-top: 1px solid var(--rule); }
.guias-lista li:last-child { border-bottom: 1px solid var(--rule); }
.guias-lista a {
  display: block;
  padding: var(--s-4) 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.guias-lista a:hover strong, .guias-lista a:focus-visible strong { color: var(--accent); }
.guias-lista strong { display: block; font-size: 18px; }
.guias-lista span { display: block; margin-top: var(--s-1); color: var(--ink-2); }

.legal-body h2 {
  margin: var(--s-7) 0 var(--s-3);
  font-size: 22px;
}

.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { margin: 0 0 var(--s-4) var(--s-5); }
.legal-body li { margin-bottom: var(--s-2); }

.legal-info {
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.legal-info ul { list-style: none; margin: 0; }

.legal-table { margin: var(--s-4) 0 var(--s-5); font-size: 15px; }

.muted-2 { font-size: var(--t-s); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   14. WhatsApp
   Decisión de Albert del 18 de octubre de 2026: enlace fijo abajo a la
   derecha. Desde el 11 de noviembre de 2026 va en el verde de WhatsApp («se
   tiene que ver más, de manera que la gente pique»): una píldora verde con el
   texto en tinta oscura (contraste medido: 7,5 sobre #25d366 y 8,6 al pasar el ratón).
   Al cargar, un anillo sale de él dos veces y se queda quieto. El pie deja
   sitio debajo para que no tape el último texto de la página.
   -------------------------------------------------------------------------- */

.wa-flotante {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5) 0 var(--s-4);
  border: 0;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 1px 2px rgba(4, 30, 14, 0.25), 0 12px 26px -10px rgba(18, 140, 70, 0.75);
  color: #052e16;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.25s, opacity 0.25s,
              transform 0.25s var(--ease), visibility 0s;
}

.wa-flotante::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .wa-flotante::after { animation: wa-anillo 1.6s 2.5s var(--ease) 2; }
}

@keyframes wa-anillo { to { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

.wa-flotante:active { transform: scale(0.97); }

@media (hover: hover) {
  .wa-flotante:hover {
    background: #3ae07a;
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(4, 30, 14, 0.25), 0 18px 32px -10px rgba(18, 140, 70, 0.85);
  }
}

.wa-flotante:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wa-icon { display: block; flex: none; width: 24px; height: 24px; }

/* ui.js lo aparta mientras el botón de enviar del formulario o el pie están a
   la vista: así no tapa el CTA. Sin JS, simplemente se queda donde está. */
body:has(.menu-m[open]) .wa-flotante { visibility: hidden; opacity: 0; }

.wa-flotante.wa-aparte {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
}

@media (max-width: 559px) {
  .wa-flotante { justify-content: center; width: 54px; height: 54px; padding: 0; }
  .wa-icon { width: 28px; height: 28px; }
  .wa-texto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   15. Pantalla estrecha
   -------------------------------------------------------------------------- */

@media (max-width: 559px) {
  :root { --t-m: 16px; --t-l: 18px; }
  .hero-fig-wrap { padding: var(--s-3); }
  .marcas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marca { min-height: 60px; padding: var(--s-2) var(--s-3); }
  .marca-nom { font-size: 15px; }
  .chips { gap: var(--s-2); }
  .wrap { padding: 0 var(--s-4); }
  .sec { padding: var(--s-8) 0; }
  .sec-first { padding: var(--s-7) 0 var(--s-8); }
  .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   15b. De un vistazo: símbolos de servicio, tarjetas de oferta y producto
   Lo que se entiende sin leer (rama feat/web-de-un-vistazo). Cada servicio
   tiene un símbolo propio con forma de icono de aplicación (tools/visuales.py,
   SERVICIOS), y es el mismo en la portada, en /servicios y en la cabecera de su
   página. El color va por clase: la CSP no admite style= en el HTML.
   -------------------------------------------------------------------------- */

.sv {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-3);
  background: var(--accent-soft);
}

.sv .icon { width: 24px; height: 24px; stroke: var(--accent); stroke-width: 1.7; }

.sv-lg { width: 56px; height: 56px; border-radius: var(--r-3); }
.sv-lg .icon { width: 30px; height: 30px; }

/* Los servicios se distinguen por el dibujo, no por el color: todos en la tinta
   de la marca. Solo Kwadrant Origen, que es un producto, va en macizo, con su
   logotipo en blanco y el cuadrante en el azul claro de la marca (currentColor). */
.sv-origen { border-color: var(--accent); background: var(--accent); }
.sv-origen .icon { stroke: #fff; stroke-width: 2.2; color: var(--accent-line); }

/* Cabecera de página: el símbolo delante de la etiqueta. */
.sv-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.sv-row .eyebrow, .sv-row .num { margin: 0; }

/* Un índice compacto, al principio de /servicios: los mismos símbolos. */
.indice {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
  list-style: none;
}

@media (min-width: 760px) { .indice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.indice a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s;
}

.indice a:hover { border-color: var(--accent); }
.indice small { display: block; font-weight: 400; font-size: var(--t-s); color: var(--ink-3); }

/* Rejilla de iconos: una idea por celda (qué revisamos, qué cambia). */
.iconos {
  display: grid;
  gap: var(--s-3);
  list-style: none;
}

@media (min-width: 560px) { .iconos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .iconos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.iconos li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--white);
  font-size: var(--t-s);
  line-height: 1.45;
  color: var(--ink-2);
}

.iconos strong { display: block; margin-bottom: 2px; font-size: var(--t-m); color: var(--ink); }

.iconos .gl-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-3);
  background: var(--accent-soft);
}

.iconos .gl-ico .icon { width: 22px; height: 22px; }

.sub-h { margin: var(--s-6) 0 var(--s-4); }
.sub-b { margin-top: var(--s-6); }
.sub-b h3 { margin-bottom: var(--s-3); }
.sub-b + .note, .iconos + .note, .actions + .note { margin-top: var(--s-5); }

/* Kwadrant Origen: tarjeta de producto. */
.producto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.producto-txt { flex: 1 1 220px; }
.producto p { margin: 0; }
.producto-nom { font-weight: 600; font-size: var(--t-l); color: var(--ink); }
.producto-lin { font-size: var(--t-s); color: var(--ink-2); }

.producto-tag {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 0 6px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  vertical-align: 3px;
  color: var(--ink-3);
}

/* Del móvil al programa de gestión (/aplicaciones). */
.fig-app .fig-phone { fill: var(--noche-paper-2); }
.fig-app .fig-notch { fill: var(--noche-accent-line); }
.fig-app .fig-hr    { fill: var(--rule-2); }
.fig-app .fig-screen { fill: var(--paper); }
.fig-app-v { display: none; max-width: 340px; margin: 0 auto; }

@media (max-width: 559px) {
  .hero-fig-wrap .fig-app:not(.fig-app-v) { display: none; }
  .hero-fig-wrap .fig-app-v { display: block; }
}
.fig-app .fig-btn   { fill: var(--accent); }
.fig-app .fig-btn-t { font-size: 13px; font-weight: 600; fill: #fff; }
.fig-app .fig-head  { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-app .fig-line  { stroke: var(--accent); stroke-width: 1.5; }
.fig-app .fig-t-s   { font-size: 12.5px; }
.fig-app .fig-r     { font-size: 13px; }

/* Kwadrant Origen por dentro (/demo). */
.mo-body { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }

.mo-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: var(--s-3);
  border-right: 1px solid var(--rule);
  background: var(--paper);
  list-style: none;
}

.mo-nav li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-1);
  color: var(--ink-2);
}

.mo-nav .icon { stroke: var(--ink-3); }
.mo-nav .on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mo-nav .on .icon { stroke: var(--accent); }

.mo-main { padding: var(--s-5); }

.mo-q {
  margin: 0 0 var(--s-4) auto;
  max-width: 30ch;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-3) var(--r-3) var(--r-1) var(--r-3);
  background: var(--accent);
  color: #fff;
}

.mo-tabla li { grid-template-columns: minmax(0, 1fr) auto; }

.mo-sql {
  padding: 2px var(--s-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
}

@media (max-width: 559px) {
  .mo-body { grid-template-columns: minmax(0, 1fr); }
  .mo-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--rule); }
  .mo-nav li:nth-child(n+4) { display: none; }
}

/* --------------------------------------------------------------------------
   15c. Portada con impacto (2 de noviembre de 2026)
   Albert: blanco en todo, esquinas casi rectas, más interactiva y más
   llamativa. El impacto sale de la escala, del azul de la marca, de las escenas
   isométricas (15d) y de que las cosas responden al ratón y al teclado.
   -------------------------------------------------------------------------- */

/* El hero de la portada (3 de noviembre de 2026). Albert: «fondo oscuro,
   imágenes de servidores en vídeo, algo moderno que haría un dev de verdad».
   Ocupa la primera pantalla: el vídeo de fondo (build.hero_video, lo arranca
   ui.js) y dos columnas centradas en vertical: el texto a la izquierda y, desde
   1.100 px, el panel de estado de una empresa de ejemplo a la derecha
   (visuales.hero_panel). Un velo oscurece solo lo que hay detrás del texto; el
   resto del vídeo se ve. Es el único degradado de la web: sin él, el titular no se
   leería sobre las luces. */
.hero-oscuro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--head-h));
  padding: clamp(40px, 8vh, 96px) 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.hero-fondo { position: absolute; inset: 0; z-index: -1; }
/* El póster (<picture>, vertical en el móvil) y, encima, el vídeo, que aparece
   cuando ya se mueve: hasta entonces, y sin JS, se ve el póster. */
.hero-poster img,
.hero-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 0.4s; }
.hero-video.en-marcha { opacity: 1; }
.hero-fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 13, 23, 0.7) 0%, rgba(7, 13, 23, 0) 18%),
    linear-gradient(90deg, rgba(7, 13, 23, 0.88) 0%, rgba(7, 13, 23, 0.7) 34%, rgba(7, 13, 23, 0.12) 62%, rgba(7, 13, 23, 0) 100%);
}

/* Mismo ancho que la cabecera: el titular arranca en la línea del logotipo. */
.hero-dentro {
  flex: 1;
  display: grid;
  align-content: center;
  align-items: center;
  gap: var(--s-7) clamp(var(--s-7), 5vw, 88px);
}

@media (min-width: 1100px) {
  .hero-dentro { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr); }
}

/* En el móvil el texto ocupa todo el ancho: el velo, parejo. */
@media (max-width: 1099px) {
  .hero-fondo::after { background: rgba(7, 13, 23, 0.68); }
}

.hero-home h1 {
  max-width: 13em;
  font-size: clamp(42px, min(4.6vw, 8.5vh), 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.038em;
}

.acento { color: var(--vivo); }
.hero-home .acento { display: block; }

/* «ciberseguridad» y «ciberseguretat» son una sola palabra larga: en 320 px, a 42 px,
   quedaban justas contra el margen. */
@media (max-width: 359px) { .hero-home h1 { font-size: 36px; } }

.hero-oscuro .lede { max-width: 34em; margin-top: var(--s-5); color: var(--ink-2); }
.hero-cta { margin-top: var(--s-6); }
.hero-cta .fine { margin-top: var(--s-3); color: var(--ink-3); }

/* El panel: una maqueta oscura, como un panel de Grafana. Entra una vez. */
.hero-panel { display: none; margin: 0; }
@media (min-width: 1100px) { .hero-panel { display: block; } }
.hpn {
  padding: var(--s-5);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.hpn-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); }
.hpn-head strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.hpn-head span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }
.hpn-filas { margin: 0; padding: 0; list-style: none; }
.hpn-fila {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hpn-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 208, 195, 0.16); }
.hpn-que { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.hpn-que strong { display: block; font-weight: 600; color: var(--ink); }
.hpn-st { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; color: var(--ok); }
.hpn-graf { padding-top: var(--s-4); }
.hpn-graf span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }
.hpn-graf svg { display: block; width: 100%; height: 52px; margin-top: var(--s-2); }
.hpn-area { fill: rgba(111, 177, 255, 0.12); }
.hpn-linea { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  .hpn-fila { animation: hpn-entra 0.6s var(--ease) backwards; }
  .hpn-f1 { animation-delay: 0.5s; }
  .hpn-f2 { animation-delay: 0.65s; }
  .hpn-f3 { animation-delay: 0.8s; }
  .hpn-f4 { animation-delay: 0.95s; }
  .hpn-graf svg { animation: hpn-dibuja 1.4s 1.1s var(--ease) backwards; }
}
@keyframes hpn-entra { from { opacity: 0; transform: translateY(8px); } }
@keyframes hpn-dibuja { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* La cabecera de la portada toma el fondo del hero. */
/* Con los tokens de noche uno a uno, no con el tema entero: los submenús que
   cuelgan de la cabecera siguen siendo tarjetas blancas. */
body:has(.hero-oscuro) .site-head { background: var(--noche-paper); border-bottom-color: rgba(255, 255, 255, 0.08); }
body:has(.hero-oscuro) .site-head .marca-tinta { fill: var(--noche-ink); }
body:has(.hero-oscuro) .site-head .marca-acento { fill: var(--noche-accent); }
body:has(.hero-oscuro) .brand { color: #fff; }
body:has(.hero-oscuro) .brand-sub { color: var(--noche-ink-3); }
body:has(.hero-oscuro) .nav-list > .nav-item > .nav-link { color: var(--noche-ink-2); }
body:has(.hero-oscuro) .nav-list > .nav-item > .nav-link:hover,
body:has(.hero-oscuro) .nav-list > .nav-activo > .nav-link { color: #fff; }
body:has(.hero-oscuro) .lang:hover { background: rgba(255, 255, 255, 0.08); }
body:has(.hero-oscuro) .head-comp { border-color: rgba(255, 255, 255, 0.28); }
body:has(.hero-oscuro) .head-comp:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
body:has(.hero-oscuro) .head-comp .icon { stroke: var(--noche-accent); }
body:has(.hero-oscuro) .head-cta { background: var(--noche-action); border-color: var(--noche-action); }
body:has(.hero-oscuro) .head-cta:hover { background: var(--noche-action-hover); border-color: var(--noche-action-hover); }
body:has(.hero-oscuro) .menu-m summary { color: #fff; border-color: rgba(255, 255, 255, 0.28); }


/* Explorador de servicios. Sin JS es un índice y cuatro bloques uno debajo de
   otro; ui.js lo convierte en pestañas (.ex-js) con su ARIA y las flechas. */
.explorer { display: grid; gap: var(--s-6); }

@media (min-width: 1100px) {
  .explorer { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
  .ex-js .ex-tabs { position: sticky; top: calc(var(--head-h) + var(--s-5)); }
}

.ex-tabs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }

.ex-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s;
}

.ex-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: transparent;
  transition: background 0.15s;
}

.ex-tab small { display: block; margin-top: 2px; font-weight: 400; font-size: var(--t-s); color: var(--ink-3); }
.ex-tab:hover { background: var(--paper-2); }
.ex-tab:hover::before { background: var(--rule-2); }
.ex-tab[aria-selected="true"] { background: var(--paper-2); }
.ex-tab[aria-selected="true"]::before { background: var(--accent); }
.ex-tab:focus-visible { outline-offset: -3px; }

.ex-panel {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--white);
}

.explorer:not(.ex-js) .ex-panel + .ex-panel { margin-top: var(--s-5); }
.ex-panel { scroll-margin-top: calc(var(--head-h) + var(--s-4)); }

@media (min-width: 1100px) {
  .ex-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}

.ex-panel[hidden] { display: none; }

@media (forced-colors: active) {
  .ex-tab[aria-selected="true"]::before { forced-color-adjust: none; background: Highlight; }
  .ex-tab[aria-selected="true"] { text-decoration: underline; }
}
.ex-copy h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-bottom: var(--s-4); }
.ex-copy .ticks { margin: var(--s-4) 0 var(--s-5); }

.ex-pasos {
  list-style: none;
  counter-reset: paso;
  display: grid;
  gap: var(--s-3);
}

.ex-pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-weight: 600;
}

.ex-pasos li::after {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--ink-3);
}

/* Con JS, el panel entra con un fundido corto; sin JS o con movimiento
   reducido, no. */
.ex-js .ex-panel:not([hidden]) { animation: panel-in 0.25s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* La sección de integración: texto y Origen a la par. */
.apps-top .producto { margin-top: 0; }

/* Tarjetas e índices: un filete de color que aparece, en lugar de levantar. */
.indice a:hover, .iconos li:hover { border-color: var(--accent); }
.iconos li { transition: border-color 0.15s; }

/* --------------------------------------------------------------------------
   15d. Escenas isométricas (tools/escena.py)
   El hero de la portada y el esquema ERP ↔ aplicación, en perspectiva, con
   volúmenes de tres caras, una pared translúcida para el firewall, haces y
   paquetes de datos (Albert, 2 de noviembre de 2026: «espacial, con efecto»;
   y por la noche, «que no sean simples, que llamen la atención»). Entran una
   vez en menos de 3 s (.es-entra), cada pieza tiene su vida (LEDs, wifi,
   sonar, barrido, satélites, discos que leen) y lo que mueve SMIL va
   sincronizado con cada paquete (.es-pulso). El 3 de noviembre de 2026 Albert
   pidió quitar el interruptor «Detener la animación» («no es un juego, es una
   página web»): queda prefers-reduced-motion: reduce, con el que no se mueve
   nada y la escena sale entera. En la portada, desde 1.100 px, la escena va de
   borde a borde y es una película con mandos (ver más abajo).
   -------------------------------------------------------------------------- */

.escena { display: block; width: 100%; height: auto; overflow: visible; }
.escena text { font-family: var(--f-sans); }

/* Suelo y sombras */
.escena .rejilla { fill: none; stroke: var(--rule); stroke-width: 0.8; }
.escena .st-niebla-0 { stop-color: #fff; stop-opacity: 1; }
.escena .st-niebla-1 { stop-color: #fff; stop-opacity: 0; }

/* Volúmenes: arriba la cara más clara, a la derecha la más oscura. */
.escena polygon, .escena .ca-izq, .escena .ca-top { stroke-linejoin: round; }
/* Paleta de las escenas isométricas: las caras de un volumen necesitan tres
   tonos de un mismo azul (arriba, izquierda y derecha) además de los del sitio. */
.escena {
  --es-azul-luz:   #6fb1ff;
  --es-azul-claro: #8cc4ff;
  --es-azul-gris:  #6d9bc7;
  --es-azul-medio: #3a7fbf;
  --es-azul-hondo: #1458ad;
  --es-halo:       #4b9bff;
  --es-vuelta:     #2f6fa8;
}

.escena .es-losa .ca-top { fill: #f4f7fb; stroke: var(--rule-2); stroke-width: 0.8; }
.escena .es-losa .ca-izq { fill: #e1e8f0; stroke: var(--rule-2); stroke-width: 0.8; }
.escena .es-losa .ca-der { fill: #cfd9e5; stroke: var(--rule-2); stroke-width: 0.8; }



/* Los paquetes: un cometa con estela (tres trazos del más ancho y tenue al más
   fino) y la cabeza con halo. */
.escena .st-halo-0 { stop-color: var(--es-halo); stop-opacity: 0.9; }
.escena .st-halo-1 { stop-color: var(--es-halo); stop-opacity: 0; }
.escena .es-cola { fill: none; stroke: var(--vivo); stroke-linecap: round; }
.escena .es-cola-1 { stroke-width: 7; stroke-opacity: 0.12; }
.escena .es-cola-2 { stroke-width: 3.6; stroke-opacity: 0.4; }
.escena .es-cola-3 { stroke: var(--es-halo); stroke-width: 2.2; }

/* Etiquetas, planas */
.escena .es-et-t { font-size: 15px; font-weight: 600; fill: var(--ink); }
.escena .es-et-s { font-size: 13px; fill: var(--ink-3); }
.escena-movil .es-et-t { font-size: 16px; }
.escena-movil .es-et-s { font-size: 14px; }

/* Lo que pasa al paso de cada paquete (SMIL, sincronizado con él). */
.escena .es-onda { fill: none; stroke: var(--vivo); stroke-width: 1.6; }
.escena .es-onda-2 { stroke: var(--es-vuelta); }
.escena .es-llega { fill: var(--es-azul-luz); }

/* Vida de cada pieza */

/* Nada se mueve en bucle (Albert, 3 de noviembre de 2026: «la animación no deja
   pensar ni leer»). Después de la entrada, solo los viajes de SMIL (.es-pulso),
   uno detrás de otro, y la escena se queda quieta. */

/* Entrada: una sola vez y en menos de 3 s (WCAG 2.2.2 no pide detenerla). Cada
   pieza sube, cae o se levanta a su sitio; los carriles y las etiquetas se
   funden al final. ui.js marca .es-espera en la escena que todavía no se ve y
   la quita cuando asoma; sin JS, entra al cargar. */
.escena .es-entra { animation: es-sube 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.escena .es-entra.es-cae { animation-name: es-cae; }
.escena .es-entra.es-funde { animation-name: es-funde; animation-duration: 0.8s; }
.escena .es-d1 { animation-delay: 0.05s; }
.escena .es-d2 { animation-delay: 0.3s; }
.escena .es-d3 { animation-delay: 0.55s; }
.escena .es-d4 { animation-delay: 0.8s; }
.escena .es-d5 { animation-delay: 1.15s; }
.escena .es-d6 { animation-delay: 1.4s; }
.escena.es-espera .es-entra { animation-play-state: paused; }

@keyframes es-sube { from { opacity: 0; transform: translateY(28px); } }
@keyframes es-cae { from { opacity: 0; transform: translateY(-44px); } }
@keyframes es-alza { from { opacity: 0; transform: scaleY(0.04); } }
@keyframes es-funde { from { opacity: 0; } }

/* Al pasar el ratón por una pieza, las demás se apagan y su etiqueta se resalta. */
.escena .es-g, .escena .es-l, .escena .es-haces { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.escena .es-l text { transition: fill 0.3s var(--ease); }

@media (hover: hover) {
  .escena .es-g:hover { transform: translateY(-4px); }
  .escena:has(.es-g:hover) .es-g:not(:hover),
  .escena:has(.es-g:hover) .es-haces,
  .escena:has(.es-g:hover) .es-l { opacity: 0.3; }
  .escena:has(.es-g-erp:hover) .es-l-erp, .escena:has(.es-g-app:hover) .es-l-app { opacity: 1; }
  .escena:has(.es-g-erp:hover) .es-l-erp .es-et-t, .escena:has(.es-g-app:hover) .es-l-app .es-et-t { fill: var(--vivo); }
}

@media (prefers-reduced-motion: reduce) {
  .escena .es-pulso { display: none; }
}

/* La escena ancha del ERP: rejilla y estelas a su escala. */
.escena-ancha .rejilla { stroke: #e6ebf1; stroke-width: 1; }
.escena-ancha .es-cola-1 { stroke-width: 11; }
.escena-ancha .es-cola-2 { stroke-width: 5; }
.escena-ancha .es-cola-3 { stroke-width: 2.6; }

/* El esquema ERP ↔ aplicación */
.escena .es-disco .ca-izq { fill: #1f4e79; stroke: #163a5a; stroke-width: 0.8; }
.escena .es-disco .ca-top { fill: var(--es-azul-medio); stroke: #163a5a; stroke-width: 0.8; }
.escena .es-tableta .ca-top { fill: #2b3a4d; }
.escena .es-tableta .ca-izq { fill: #1d2b3b; }
.escena .es-tableta .ca-der { fill: #0e1826; }
.escena .ui-barra { fill: var(--accent); }
.escena .ui-fila { fill: #fff; opacity: 0.92; }
.escena .ui-boton { fill: var(--vivo); }
.escena .es-arco { fill: none; stroke: var(--vivo); stroke-width: 1.4; stroke-opacity: 0.4; stroke-dasharray: 2 6; }
.escena .es-arco-2 { stroke: var(--accent); }
.escena .es-cola-vuelta { stroke: var(--es-vuelta); }
.escena .es-cola-vuelta.es-cola-3 { stroke: var(--accent); }
.escena .es-bloque .ca-top { fill: var(--es-azul-claro); }
.escena .es-bloque .ca-izq { fill: var(--vivo); }
.escena .es-bloque .ca-der { fill: var(--es-azul-hondo); }
.escena .es-bloque-vuelta .ca-top { fill: var(--es-azul-gris); }
.escena .es-bloque-vuelta .ca-izq { fill: var(--es-vuelta); }
.escena .es-bloque-vuelta .ca-der { fill: var(--accent); }
.escena .ui-carga { fill: var(--accent-line); }
.escena .ui-ok { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.escena .es-flujo-t { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-2); }
.escena-erp.escena-movil { max-width: 360px; }

/* Escena ancha desde 1.100 px; por debajo, la del móvil. */
.escena-movil { display: none; max-width: 440px; margin: 0 auto; }

@media (max-width: 1099px) {
  .escena-ancha { display: none; }
  .escena-movil { display: block; }
}

/* --------------------------------------------------------------------------
   16. Impresión: una página se imprime y se lleva a una reunión
   -------------------------------------------------------------------------- */

@media print {
  .site-nav, .head-actions, .menu-m, .wa-flotante, .skip, .actions, .form { display: none; }
  .site-head { position: static; }
  body { background: #fff; font-size: 11pt; }
  .sec { padding: 18pt 0; }
  a { color: var(--ink); text-decoration: none; }
}

/* ==========================================================================
   18. Temas: cada línea de servicio, con su propio registro
   --------------------------------------------------------------------------
   Albert, 10 de noviembre de 2026: «parte las páginas como si fueran
   aplicaciones propias por temática»; la de aplicaciones a medida, «potente»;
   la de ciberseguridad, «una web de ciberseguridad»; y fluidez, colores y
   tacto. Sustituye a «un solo fondo, blanco» en las páginas de servicio.

   build.py pone el tema en <body data-tema> (tools/tematica.py, TEMA):
     marca   la empresa, la zona, las guías y los legales: blanco y azul de marca
     casa    la portada: hero oscuro con vídeo y, en el explorador, cada panel
             con el tema de su página
     m365    migración, servicios y qué entregamos: claro, con el azul de marca
     azure   hero y barras en azul profundo, cuerpo claro con azul de Azure
     ciber   página oscura, verde de señal y mono: una consola
     apps    página oscura, violeta: aplicaciones, integraciones, Origen y demo

   Un tema solo cambia de valor los tokens de :root (como el tema noche): los
   componentes se escriben una vez. [data-tema] vale también en un bloque
   suelto (un panel del explorador, una tarjeta de «También hacemos»).
   ========================================================================== */

/* --------------------------------------------------------------------------
   18a. Paletas
   Contraste medido con la fórmula de WCAG 2.1, sobre el fondo de cada tema:
   ciber  ink 17,0 · ink-2 10,7 · ink-3 6,3 (5,8 sobre panel) · accent 12,2 ·
          aviso 11,5 · pend 8,9 · texto del botón 10,7 · borde de campo 4,4
   apps   ink 18,0 · ink-2 10,8 · ink-3 6,3 (5,9 sobre panel) · accent 8,4 ·
          blanco sobre el botón 5,0 y 6,4 al pasar el ratón · borde de campo 4,2
   azure  hero (sobre el tramo más claro del degradado, #0a3f7c): ink 9,7 ·
          ink-2 7,0 · ink-3 4,9 · accent 5,6 · botón blanco 15,7;
          cuerpo: accent 6,7 · blanco sobre el botón 6,7
   -------------------------------------------------------------------------- */

[data-tema="ciber"] {
  --paper:        #070b10;
  --paper-2:      #0c131b;
  --white:        #0a1017;
  --panel:        #0e161f;
  --ink:          #e8eff3;
  --ink-2:        #b3c1cb;
  --ink-3:        #8394a1;
  --rule:         rgba(160, 205, 210, 0.14);
  --rule-2:       rgba(160, 205, 210, 0.26);
  --field-rule:   #6a7f8e;
  --accent:       #4fe3b4;
  --accent-ink:   #8af0cf;
  --accent-soft:  rgba(79, 227, 180, 0.1);
  --accent-line:  rgba(79, 227, 180, 0.32);
  --vivo:         #4fe3b4;
  --action:       #3ddba6;
  --action-hover: #6cebc0;
  --on-action:    #04140e;
  --focus:        #ffffff;
  --ok:           #4fe3b4;
  --ok-soft:      rgba(79, 227, 180, 0.12);
  --aviso:        #f2bd57;
  --aviso-soft:   rgba(242, 189, 87, 0.12);
  --pend:         #ff9076;
  --pend-soft:    rgba(255, 144, 118, 0.12);
  --brillo:       rgba(79, 227, 180, 0.28);
  color: var(--ink);
  color-scheme: dark;
}

[data-tema="apps"] {
  --paper:        #08080e;
  --paper-2:      #0f0f18;
  --white:        #0c0c14;
  --panel:        #12121c;
  --ink:          #f3f2fa;
  --ink-2:        #bfbcd0;
  --ink-3:        #918ea6;
  --rule:         rgba(180, 170, 255, 0.14);
  --rule-2:       rgba(180, 170, 255, 0.26);
  --field-rule:   #77749a;
  --accent:       #a99bff;
  --accent-ink:   #c9c0ff;
  --accent-soft:  rgba(140, 120, 255, 0.13);
  --accent-line:  rgba(160, 145, 255, 0.36);
  --vivo:         #8f7dff;
  --action:       #6a56f0;
  --action-hover: #5847d6;
  --on-action:    #ffffff;
  --focus:        #ffffff;
  --ok:           #5ee0c0;
  --ok-soft:      rgba(94, 224, 192, 0.13);
  --aviso:        #f2bd57;
  --aviso-soft:   rgba(242, 189, 87, 0.13);
  --pend:         #ff9a8a;
  --pend-soft:    rgba(255, 154, 138, 0.13);
  --cian:         #5bd5ff;
  --brillo:       rgba(143, 125, 255, 0.4);
  color: var(--ink);
  color-scheme: dark;
}

[data-tema="azure"] {
  --paper-2:      #f1f6fc;
  --accent:       #0b5cab;
  --accent-ink:   #084a8c;
  --accent-soft:  #e6f1fb;
  --accent-line:  #b5d4f1;
  --vivo:         #0a78d6;
  --action:       #0b5cab;
  --action-hover: #084a8c;
  --focus:        #0a78d6;
  --brillo:       rgba(10, 120, 214, 0.3);
}

[data-tema="m365"], [data-tema="marca"], [data-tema="casa"] {
  --paper-2:      #f3f6fb;
  --brillo:       rgba(26, 111, 216, 0.28);
}

/* El hero y las barras de Azure: azul profundo. */
body[data-tema="azure"] .site-head,
body[data-tema="azure"] .subnav,
body[data-tema="azure"] main > .sec-first {
  --paper:        #04142b;
  --paper-2:      #0a2547;
  --white:        #04142b;
  --panel:        rgba(255, 255, 255, 0.06);
  --ink:          #f2f7fd;
  --ink-2:        #c5d6ea;
  --ink-3:        #9db4cf;
  --rule:         rgba(160, 205, 255, 0.16);
  --rule-2:       rgba(160, 205, 255, 0.3);
  --field-rule:   #6f8db0;
  --accent:       #7cc4ff;
  --accent-ink:   #a9d8ff;
  --accent-soft:  rgba(124, 196, 255, 0.12);
  --accent-line:  rgba(124, 196, 255, 0.36);
  --vivo:         #7cc4ff;
  --action:       #ffffff;
  --action-hover: #dcecff;
  --on-action:    #06224a;
  --focus:        #ffffff;
  --ok:           #6fe0c6;
  --ok-soft:      rgba(111, 224, 198, 0.14);
  --brillo:       rgba(124, 196, 255, 0.35);
  color: var(--ink);
  color-scheme: dark;
}

/* Un bloque claro dentro de una página oscura: la escena del ERP está dibujada
   sobre blanco. */
.claro, [data-tema] .apps-flow {
  --paper: #ffffff; --paper-2: #f5f7fa; --white: #ffffff; --panel: #ffffff;
  --ink: #15171a; --ink-2: #4a4f57; --ink-3: #63686f;
  --rule: #e3e7ec; --rule-2: #c8cfd8; --field-rule: #848b95;
  --accent: #1f4e79; --accent-ink: #163a5a; --accent-soft: #eaf1f7; --accent-line: #c3d6e6;
  --vivo: #1a6fd8;
  color: var(--ink);
  color-scheme: light;
}

/* En oscuro, el cuadrante de las etiquetas va de un solo color (la máscara es
   el mismo dibujo). */
[data-tema="ciber"] .eyebrow::before, [data-tema="ciber"] .num::before,
[data-tema="apps"] .eyebrow::before, [data-tema="apps"] .num::before,
body[data-tema="azure"] main > .sec-first .eyebrow::before {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-tema="ciber"] .field input:user-invalid, [data-tema="ciber"] .field select:user-invalid,
[data-tema="ciber"] .field textarea:user-invalid, [data-tema="apps"] .field input:user-invalid,
[data-tema="apps"] .field select:user-invalid, [data-tema="apps"] .field textarea:user-invalid {
  background-color: var(--pend-soft);
}

/* En oscuro, los rellenos macizos de las maquetas van en el color del botón:
   el acento es claro y el blanco encima no se leería. */
[data-tema="ciber"] .mo-q, [data-tema="ciber"] .mock-btn,
[data-tema="apps"] .mo-q, [data-tema="apps"] .mock-btn { background: var(--action); color: var(--on-action); }

/* Kwadrant Origen conserva su azul en cualquier tema: es su logotipo. */
.sv-origen { border-color: #1f4e79; background: #1f4e79; }
.sv-origen .icon { color: #c3d6e6; }

/* En las páginas oscuras, la marca de la cabecera va en claro. */
body[data-tema="ciber"] .site-head .marca-tinta,
body[data-tema="apps"] .site-head .marca-tinta,
body[data-tema="azure"] .site-head .marca-tinta { fill: var(--ink); }
body[data-tema="azure"] .site-head { background: #04142b; border-bottom-color: var(--rule); }
body[data-tema="azure"] .site-head .head-cta { --action: #1a6fd8; --action-hover: #155cb5; --on-action: #fff; }

/* --------------------------------------------------------------------------
   18b. Tacto: lo que responde al ratón y al dedo
   -------------------------------------------------------------------------- */

.btn {
  transition: background 0.18s, border-color 0.18s, color 0.18s,
              transform 0.18s var(--ease), box-shadow 0.18s;
}

a.btn::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px var(--brillo, rgba(31, 78, 121, 0.5)); }
  .btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
  a.btn:hover::after { transform: translateX(3px); }
}


/* Tarjetas: al pasar el ratón suben dos píxeles y toman el color del tema. */
.iconos li, .panel, .facts li, .indice a, .producto, .ex-panel {
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
}

@media (hover: hover) {
  .iconos li:hover, .facts li:hover, .indice a:hover, .producto:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    box-shadow: 0 14px 28px -20px var(--brillo, rgba(14, 24, 38, 0.4));
  }
}

.qa summary { transition: color 0.15s; }
.qa summary:hover { color: var(--accent); }

.field input, .field select, .field textarea { border-radius: var(--r-2); }

/* Paso de una página a otra: un fundido corto en lugar del corte en seco. La
   cabecera se queda en su sitio. Solo donde el navegador lo admite. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  .site-head { view-transition-name: cabecera; }
  ::view-transition-old(root) { animation: vt-sale 0.16s ease-in both; }
  ::view-transition-new(root) { animation: vt-entra 0.3s var(--ease) both; }
}

@keyframes vt-sale { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(10px); } }

/* Los bloques entran al asomar, una vez, ligados al desplazamiento (sin JS).
   Sin animation-timeline (Firefox) o con movimiento reducido, están a la vista
   desde el principio. */
@keyframes revela { from { opacity: 0; transform: translateY(22px); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec:not(.sec-first) .sec-head,
    .sec:not(.sec-first) .split > *,
    .sec:not(.sec-first) .iconos > li,
    .sec:not(.sec-first) .steps > li,
    .sec:not(.sec-first) .cols-2 > *,
    .sec:not(.sec-first) .facts > li,
    .sec:not(.sec-first) .table-scroll,
    .franja > div,
    .ia-demo,
    .apps-top > *,
    .apps-flow,
    .explorer,
    .mundos-lista > li {
      animation: revela linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 170px;
    }
  }
}

/* --------------------------------------------------------------------------
   18c. La barra propia de cada página (tematica.subnav)
   La cabecera del sitio se queda arriba y esta barra es la que acompaña al
   bajar: nombre de la página, sus secciones y el botón. ui.js marca la sección
   que se está leyendo y enseña el botón cuando la cabecera ya no se ve.
   -------------------------------------------------------------------------- */

body:has(.subnav) .site-head { position: relative; }

.subnav {
  position: sticky;
  top: 0;
  z-index: 39;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.subnav-in { display: flex; align-items: center; gap: var(--s-4); min-height: 54px; }

.subnav-marca {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.subnav-ico {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  background: var(--accent-soft);
}

.subnav-ico .icon { width: 18px; height: 18px; }

.subnav-lista {
  position: relative;
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.subnav-lista::-webkit-scrollbar { display: none; }

.subnav-lista a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: var(--r-2);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.subnav-lista a::after {
  content: '';
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--vivo);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.subnav-lista a:hover { color: var(--ink); background: var(--accent-soft); }
.subnav-lista a[aria-current] { color: var(--ink); }
.subnav-lista a[aria-current]::after { transform: scaleX(1); }
.subnav-lista a:focus-visible { outline-offset: -3px; }

.subnav-cta {
  flex: none;
  min-height: 38px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s,
              background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.subnav-fija .subnav-cta { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.subnav-fija { box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.55); }

/* Cuánto se ha leído: una línea que crece con el desplazamiento. */
@supports (animation-timeline: scroll()) {
  .subnav::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--vivo);
    transform-origin: 0 50%;
    animation: progreso linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 759px) {
  .subnav-marca { display: none; }
  .subnav-in { gap: var(--s-2); }
  .subnav-lista { margin-left: calc(var(--s-3) * -1); }
}

@media (max-width: 559px) {
  .subnav-cta { display: none; }
  .subnav-lista { margin-right: calc(var(--s-4) * -1); padding-right: var(--s-4); }
}

/* --------------------------------------------------------------------------
   18d. Hero de las páginas interiores, por tema
   -------------------------------------------------------------------------- */

main > .sec-first { position: relative; isolation: isolate; }

/* Claro (marca y Microsoft 365): un fondo frío que se funde con el blanco. */
body[data-tema="m365"] main > .sec-first,
body[data-tema="marca"] main > .sec-first {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(26, 111, 216, 0.09), transparent 70%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}

/* Azure: azul profundo con la retícula de un plano. */
body[data-tema="azure"] main > .sec-first {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(60, 150, 255, 0.34), transparent 70%),
    linear-gradient(160deg, #04142b 0%, #07254d 60%, #0a3f7c 100%);
}

body[data-tema="azure"] main > .sec-first::before,
body[data-tema="ciber"] main > .sec-first::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(90% 100% at 70% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 100% at 70% 0%, #000 0%, transparent 78%);
}

/* Ciberseguridad: negro azulado, retícula y un resplandor del verde de señal. */
body[data-tema="ciber"] main > .sec-first {
  background:
    radial-gradient(50% 70% at 85% 10%, rgba(79, 227, 180, 0.13), transparent 70%),
    var(--paper);
}

/* Aplicaciones: dos luces, violeta y cian, detrás de la demostración. */
body[data-tema="apps"] main > .sec-first {
  background:
    radial-gradient(46% 60% at 82% 28%, rgba(106, 86, 240, 0.42), transparent 70%),
    radial-gradient(34% 46% at 60% 88%, rgba(91, 213, 255, 0.14), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(143, 125, 255, 0.16), transparent 70%),
    var(--paper);
}

body[data-tema="apps"] main > .sec-first h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff 20%, #c9c0ff 62%, #8fdcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-tema="ciber"] main > .sec-first h1 { font-weight: 600; letter-spacing: -0.028em; }

/* Los datos del hero, en una franja debajo: una columna por dato. */
.spec.franja { display: grid; gap: 0 var(--s-6); margin-top: var(--s-7); border-top: 0; }

.spec.franja > div {
  display: block;
  padding: var(--s-4) 0 var(--s-5);
  border-bottom: 0;
  border-top: 2px solid var(--accent-line);
}

.spec.franja dt { margin-bottom: var(--s-2); padding: 0; color: var(--accent); }
.spec.franja dd { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

@media (min-width: 760px) {
  .spec.franja { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

.hero-demo { min-width: 0; }

/* --------------------------------------------------------------------------
   18e. Ciberseguridad: una consola
   -------------------------------------------------------------------------- */

[data-tema="ciber"] .eyebrow, [data-tema="ciber"] .num,
[data-tema="ciber"] .spec dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cada bloque (problema, qué hacemos, qué incluye, qué obtiene), en una ficha;
   la última, lo que el cliente obtiene, en el verde de señal. */
body[data-tema="ciber"] .split > .spec { display: grid; gap: var(--s-3); border-top: 0; }

body[data-tema="ciber"] .split > .spec > div {
  display: block;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--panel);
  transition: border-color 0.2s;
}

body[data-tema="ciber"] .split > .spec dt { margin-bottom: var(--s-2); padding: 0; color: var(--ink-3); }
body[data-tema="ciber"] .split > .spec dd { color: var(--ink-2); }
body[data-tema="ciber"] .split > .spec > div:hover { border-color: var(--rule-2); }

body[data-tema="ciber"] .split > .spec > div:last-child {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

body[data-tema="ciber"] .split > .spec > div:last-child dt { color: var(--accent); }
body[data-tema="ciber"] .split > .spec > div:last-child dd { color: var(--ink); }

@media (min-width: 1100px) {
  body[data-tema="ciber"] .split > .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body[data-tema="ciber"] .panel { border-radius: var(--r-3); background: var(--panel); }
body[data-tema="ciber"] .cols-2 > .panel:first-child { border-top: 2px solid var(--ok); }
body[data-tema="ciber"] .cols-2 > .panel:last-child { border-top: 2px solid var(--aviso); }

/* La consola del hero. */
.consola-wrap { min-width: 0; }

.consola {
  overflow: hidden;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: linear-gradient(180deg, #0e1720, #0a1118);
  box-shadow: 0 40px 80px -40px #000, 0 0 70px -24px var(--brillo);
  font-size: 13.5px;
  line-height: 1.4;
}

.con-barra {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.con-barra .mock-dots i { background: var(--rule-2); }
.con-nom { flex: 1; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }
.con-mapa { padding: var(--s-4) var(--s-4) var(--s-2); }

.cz { display: block; width: 100%; height: auto; }
.cz text { font-family: var(--f-sans); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.cz-nodo circle { fill: rgba(255, 255, 255, 0.03); stroke: var(--rule-2); }
.cz-globo { fill: none; stroke: var(--ink-3); stroke-width: 1.3; }
.cz-fw rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.cz-fw path { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0.6; }
.cz-fw text { fill: var(--accent); font-weight: 600; }
.cz-linea { fill: none; stroke: var(--field-rule); stroke-width: 1.3; transition: stroke 0.2s; }
.cz-zona rect { fill: rgba(255, 255, 255, 0.03); stroke: var(--rule-2); transition: stroke 0.2s, fill 0.2s; }
.cz-zona circle { fill: var(--accent); }
.cz-zona text { fill: var(--ink); font-size: 14px; }
.cz-paquete { fill: var(--pend); opacity: 0; }
.cz-rebote { fill: none; stroke: var(--pend); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }

@media (hover: hover) {
  .cz-zona:hover rect { stroke: var(--accent); fill: var(--accent-soft); }
  .cz:has(.cz-z1:hover) .cz-l1, .cz:has(.cz-z2:hover) .cz-l2,
  .cz:has(.cz-z3:hover) .cz-l3, .cz:has(.cz-z4:hover) .cz-l4 { stroke: var(--accent); }
}

.con-fichas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--rule); }
.con-fichas li { padding: 10px 14px; border-left: 1px solid var(--rule); }
.con-fichas li:first-child { border-left: 0; }
.con-fichas span { display: block; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }
.con-fichas strong { display: block; margin-top: 2px; font-size: 15px; color: var(--ok); }

.con-avisos { list-style: none; }

.con-avisos li {
  display: grid;
  grid-template-columns: 42px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 9px 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.con-avisos time, .con-avisos b {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-3);
}

.con-avisos b { color: var(--accent); }

.con-st {
  display: inline-block;
  padding: 1px var(--s-2);
  border: 1px solid currentColor;
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-style: normal;
  white-space: nowrap;
}

.con-ok { color: var(--ok); }
.con-aviso { color: var(--aviso); }
.con-pend { color: var(--pend); }

@media (max-width: 559px) {
  .con-avisos li { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 2px; }
  .con-avisos li span { grid-column: 1 / -1; grid-row: 2; }
  .con-fichas li { padding: 10px; }
}

/* Entra una vez: las líneas se trazan, un intento de acceso llega al firewall
   y rebota, y los avisos aparecen uno a uno. Menos de 4 s, y quieta. */
@media (prefers-reduced-motion: no-preference) {
  .cz-linea { stroke-dasharray: 420; animation: cz-traza 1.1s var(--ease) 0.2s backwards; }
  .cz-zona { animation: con-entra 0.5s var(--ease) backwards; }
  .cz-z1 { animation-delay: 0.7s; } .cz-z2 { animation-delay: 0.8s; }
  .cz-z3 { animation-delay: 0.9s; } .cz-z4 { animation-delay: 1s; }
  .cz-paquete { animation: cz-ataca 0.9s ease-in 1.4s both; }
  .cz-rebote { animation: cz-onda 0.7s ease-out 2.25s both; }
  .con-a { animation: con-entra 0.5s var(--ease) backwards; }
  .con-a1 { animation-delay: 2.4s; } .con-a2 { animation-delay: 2.7s; }
  .con-a3 { animation-delay: 3s; } .con-a4 { animation-delay: 3.3s; }
}

@keyframes cz-traza { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes con-entra { from { opacity: 0; transform: translateY(6px); } }
@keyframes cz-ataca { 0% { opacity: 0; transform: translateX(-10px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(72px); } }
@keyframes cz-onda { 0% { opacity: 1; transform: scale(0.5); } 100% { opacity: 0; transform: scale(2.6); } }

/* Una figura por bloque: reglas, equipos y panel. */
.cf-wrap { margin-top: var(--s-6); }

.cf {
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.cf-cols, .cf-t {
  margin: 0 0 var(--s-2);
  max-width: none;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.cf-cols, .cf-reglas li { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.6fr); align-items: center; }
.cf-cols span:last-child { grid-column: 3; }
.cf ul { list-style: none; }
.cf-reglas li, .cf-equipos li { padding: 9px 0; border-top: 1px solid var(--rule); }
.cf-reglas b { font-weight: 600; }
.cf-reglas span { color: var(--ink-2); }
.cf-reglas i { position: relative; height: 1px; margin-right: 10px; background: var(--accent); }

.cf-reglas i::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

.cf-pie { margin: var(--s-3) 0 0; }
.cf-equipos li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.cf-equipos b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.cf-equipos small { display: block; font-family: var(--f-sans); font-size: var(--t-xs); color: var(--ink-3); }
.cf-tablero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.cf-tablero li { padding: var(--s-3); border: 1px solid var(--rule); border-radius: var(--r-3); }
.cf-tablero span { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.cf-tablero strong { display: block; margin: 2px 0 var(--s-2); font-family: var(--f-mono); font-size: 19px; font-weight: 500; }
.cf-barra, .cf-ok { display: block; height: 4px; border-radius: 2px; background: var(--rule-2); }
.cf-barra i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.cf-b62 i { width: 62%; }
.cf-b48 i { width: 48%; }
.cf-ok { background: var(--ok); }

/* --------------------------------------------------------------------------
   18f. Aplicaciones a medida: lo que hacemos, funcionando
   -------------------------------------------------------------------------- */

/* Demostraciones (tematica.apps_demo y apps_ia). El estado va en data-estado y
   lo cambia ui.js; aquí, lo que se ve en cada uno. */
.demo { position: relative; min-width: 0; }

.demo[data-estado="0"] [data-ver]:not([data-ver="0"]),
.demo[data-estado="1"] [data-ver]:not([data-ver="1"]),
.demo[data-estado="2"] [data-ver]:not([data-ver="2"]) { display: none; }

.demo-dice {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* El parte de trabajo: del móvil al programa de gestión. */
.demo-parte {
  display: grid;
  grid-template-columns: 218px 44px minmax(0, 1fr);
  align-items: center;
}

.tel {
  padding: 9px;
  border: 1px solid var(--rule-2);
  border-radius: 32px;
  background: linear-gradient(160deg, #2c2a45, #15151f);
  box-shadow: 0 40px 70px -34px #000, 0 0 80px -30px var(--brillo);
}

.tel-pant {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 372px;
  padding: 18px 13px 12px;
  border-radius: 24px;
  background: #f7f7fb;
  color: #15171a;
  font-size: 13px;
  line-height: 1.35;
}

.tel-t { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: 16px; font-weight: 700; }
.tel-t span { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 400; color: #63686f; }
.tel-campos { display: grid; gap: 6px; margin: 0; }
.tel-campos div { padding: 6px 9px; border: 1px solid #e3e7ec; border-radius: 8px; background: #fff; }
.tel-campos dt { font-size: var(--t-xs); color: #63686f; }
.tel-campos dd { margin: 0; font-weight: 600; }
.tel-firma { padding: 5px 9px 2px; border: 1px dashed #c8cfd8; border-radius: 8px; }
.tel-firma span { display: block; font-size: var(--t-xs); color: #63686f; }
.tel-firma svg { display: block; width: 110px; height: 26px; }
.tel-firma path { fill: none; stroke: #15171a; stroke-width: 1.6; stroke-linecap: round; }

.tel-boton, .tel-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  font: 600 14px/1.2 var(--f-sans);
}

.tel-boton {
  background: #6a56f0;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px #6a56f0;
  transition: transform 0.15s var(--ease), background 0.15s;
}

.tel-boton:hover { background: #5847d6; }
.tel-boton:active { transform: scale(0.97); }
.tel-boton:focus-visible, .tel-otro:focus-visible { outline: 3px solid #1a6fd8; outline-offset: 2px; }
.tel-ok { background: #e3f3f1; color: #0f766e; }
.tel-ok .icon { stroke: #0f766e; }

.tel-otro {
  min-height: 44px;
  border: 0;
  background: none;
  color: #4a4f57;
  font: 500 13px/1.2 var(--f-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cable { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--rule-2) 0 6px, transparent 6px 12px); }

.cable i {
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--cian);
  box-shadow: 0 0 16px 2px var(--cian);
  opacity: 0;
}

.erp {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 30px 60px -36px #000;
  font-size: 13px;
  line-height: 1.35;
}

.erp .mock-bar { background: rgba(255, 255, 255, 0.03); }
.erp .mock-bar { flex-wrap: wrap; row-gap: 6px; }
.erp .mock-name { flex: 1; white-space: nowrap; }
.erp .tag-ej { white-space: nowrap; }
.erp-filas { list-style: none; }

.erp-filas li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
  min-height: 42px;
  padding: 6px 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.erp-filas li > span:first-child { font-family: var(--f-mono); font-size: var(--t-xs); }
.erp-filas li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erp-filas .erp-cols { min-height: 0; border-top: 0; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }
.erp-filas .mock-st { font-style: normal; font-size: var(--t-xs); background: rgba(255, 255, 255, 0.06); color: var(--ink-3); }
.erp-filas .mock-ok { background: var(--ok-soft); color: var(--ok); }

/* La fila nueva ocupa su sitio desde el principio (nada salta al llegar): vacía
   y punteada hasta que entra el parte. */
.erp-nueva { position: relative; color: var(--ink); }
.erp-nueva > * { opacity: 0; }

.erp-nueva::before {
  content: '';
  position: absolute;
  inset: 5px 8px;
  border: 1px dashed var(--rule-2);
  border-radius: 6px;
}

.erp-stock {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: none;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
}

.erp-stock b { display: inline-grid; font-family: var(--f-mono); font-size: 17px; font-weight: 500; color: var(--ink); }
.erp-stock i { grid-area: 1 / 1; font-style: normal; }
.erp-stock .n1 { opacity: 0; color: var(--ok); }

/* Enviado: el dato viaja, la fila entra y las existencias bajan. */
.demo-parte[data-estado="1"] .cable i { animation: viaja 0.9s var(--ease) 0.1s both; }
.demo-parte[data-estado="1"] .erp-nueva > * { opacity: 1; transition: opacity 0.35s 0.95s; }
.demo-parte[data-estado="1"] .erp-nueva::before { opacity: 0; transition: opacity 0.2s 0.9s; }
.demo-parte[data-estado="1"] .erp-nueva { animation: destaca 1.8s 0.95s both; }
.demo-parte[data-estado="1"] .erp-stock .n0 { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s 1.3s, transform 0.3s 1.3s; }
.demo-parte[data-estado="1"] .erp-stock .n1 { opacity: 1; transition: opacity 0.3s 1.4s; }

@keyframes viaja {
  0% { opacity: 0; left: 0; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; left: calc(100% - 12px); }
}

@keyframes destaca { 0%, 35% { background: var(--accent-soft); } 100% { background: transparent; } }

@media (max-width: 559px) {
  .demo-parte { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tel { width: 236px; }
  .cable { width: 2px; height: 44px; background: repeating-linear-gradient(180deg, var(--rule-2) 0 6px, transparent 6px 12px); }
  .cable i { left: -5px; top: 0; }
  .erp { width: 100%; }
  .demo-parte[data-estado="1"] .cable i { animation-name: viaja-v; }
}

@keyframes viaja-v {
  0% { opacity: 0; top: 0; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 12px); }
}

/* El albarán en PDF: leído, revisado y dentro del programa. */
.ia-demo { margin-top: var(--s-7); }

.demo-ia {
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(106, 86, 240, 0.2), transparent 70%),
    var(--panel);
}

.demo-ia .demo-esc { display: grid; gap: var(--s-6); align-items: center; }

@media (min-width: 760px) {
  .demo-ia .demo-esc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.pdf {
  position: relative;
  overflow: hidden;
  max-width: 360px;
  padding: 18px 18px 14px;
  border-radius: 6px;
  background: #fdfdfb;
  color: #15171a;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 30px 60px -30px #000;
  transform: rotate(-1.2deg);
}

.pdf-t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #15171a;
  font-size: 17px;
  font-weight: 700;
}

.pdf-t span { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; color: #8c3a1d; }
.pdf-l { margin: 0 0 4px; padding: 1px 4px; }
.pdf-l b { display: inline-block; min-width: 5.6em; font-weight: 500; color: #63686f; }
.pdf-it { list-style: none; margin-top: 10px; padding: 1px 4px; border-top: 1px solid #e3e7ec; }
.pdf-it li { padding: 5px 0; border-bottom: 1px solid #e3e7ec; font-family: var(--f-mono); font-size: var(--t-xs); }
.pdf-l, .pdf-it { border-radius: 3px; transition: background 0.3s, box-shadow 0.3s; }

.pdf-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  border-bottom: 2px solid #8f7dff;
  background: linear-gradient(180deg, rgba(143, 125, 255, 0), rgba(143, 125, 255, 0.32));
  opacity: 0;
  transform: translateY(-64px);
}

.leido {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 14px;
  transition: border-color 0.3s;
}

.leido-t { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; color: var(--ink-3); }
.leido dl { display: grid; gap: var(--s-2); margin: 0; }

.leido dl div {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.leido dt { font-size: var(--t-xs); color: var(--ink-3); }
.leido dd { margin: 0; font-weight: 600; opacity: 0; transform: translateY(4px); }
.leido-st { margin: 0; min-height: 26px; }
.leido-st .mock-st { display: none; font-size: var(--t-xs); }
.leido-st .le-s0 { background: rgba(255, 255, 255, 0.06); color: var(--ink-3); }
.demo-ia[data-estado="0"] .le-s0, .demo-ia[data-estado="1"] .le-s1, .demo-ia[data-estado="2"] .le-s2 { display: inline-block; }

.demo-ia:not([data-estado="0"]) .pdf-l, .demo-ia:not([data-estado="0"]) .pdf-it {
  background: rgba(143, 125, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(143, 125, 255, 0.2);
}

.demo-ia:not([data-estado="0"]) .leido dd { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.3s; }
.demo-ia[data-estado="1"] .pdf-scan { animation: escanea 1.3s ease-in-out both; }
.demo-ia[data-estado="1"] .pdf-c1, .demo-ia[data-estado="1"] .le-c1 dd { transition-delay: 0.3s; }
.demo-ia[data-estado="1"] .pdf-c2, .demo-ia[data-estado="1"] .le-c2 dd { transition-delay: 0.5s; }
.demo-ia[data-estado="1"] .pdf-c3, .demo-ia[data-estado="1"] .le-c3 dd { transition-delay: 0.7s; }
.demo-ia[data-estado="1"] .pdf-c4, .demo-ia[data-estado="1"] .le-c4 dd { transition-delay: 0.95s; }
.demo-ia[data-estado="2"] .leido, .demo-ia[data-estado="2"] .leido dl div { border-color: var(--ok); }

@keyframes escanea {
  0% { opacity: 0; transform: translateY(-64px); }
  10%, 88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(250px); }
}

.demo-mandos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }

.btn-demo {
  min-height: 46px;
  padding: 0 var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--ink);
  font: 600 15px/1.2 var(--f-sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}

.btn-demo:hover { border-color: var(--accent); background: rgba(140, 120, 255, 0.22); }
.btn-demo:active { transform: scale(0.98); }
.btn-demo-2 { background: transparent; }

/* Sin JavaScript: las dos demostraciones, en su estado final y sin botones. */
@media (scripting: none) {
  .demo button { display: none; }
  .demo .tel-ok { display: flex !important; }
  .demo-parte .erp-nueva > *, .demo-parte .erp-stock .n1 { opacity: 1; }
  .demo-parte .erp-nueva::before, .demo-parte .erp-stock .n0 { opacity: 0; }
  .demo-ia .leido dd { opacity: 1; transform: none; }
  .demo-ia .leido-st .le-s0 { display: none; }
  .demo-ia .leido-st .le-s2 { display: inline-block; }
}

/* «Qué cambia»: cuatro tarjetas grandes, cada una con su miniatura. */
[data-tema="apps"] .iconos.bento li {
  position: relative;
  grid-template-columns: 40px minmax(0, 1fr);
  overflow: hidden;
  padding: var(--s-5);
  border-color: var(--rule);
  border-radius: 14px;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(106, 86, 240, 0.16), transparent 70%),
    var(--panel);
}

.mini {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin-bottom: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.mini i { display: block; }
.mini-1 { align-items: center; justify-content: center; gap: 12px; }
.mv { display: grid; gap: 5px; width: 74px; padding: 8px; border: 1px solid var(--rule-2); border-radius: 6px; }
.mv i { height: 6px; border-radius: 3px; background: var(--rule-2); }
.mv .on { background: var(--vivo); }
.mini-flecha { width: 26px; height: 2px; background: var(--cian); box-shadow: 0 0 10px var(--cian); }
.mini-2 { position: relative; }
.mb { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--vivo), rgba(143, 125, 255, 0.25)); transform-origin: bottom; }
.mb-1 { height: 46%; } .mb-2 { height: 78%; } .mb-3 { height: 58%; } .mb-4 { height: 92%; background: linear-gradient(180deg, var(--cian), rgba(91, 213, 255, 0.2)); }
.mini-ahora { position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.mini-3 { padding: 0; overflow: hidden; align-items: stretch; }
.mini-3 svg { display: block; width: 100%; height: 100%; }
.m3-area { fill: rgba(143, 125, 255, 0.16); }
.m3-linea { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mini-4 { align-items: center; justify-content: center; gap: 0; }
.mn { width: 26px; height: 26px; border: 2px solid var(--ok); border-radius: 50%; background: var(--ok-soft); }
.mn-3 { border-color: var(--accent); background: var(--accent-soft); }
.mn-l { width: 44px; height: 2px; background: var(--rule-2); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mb, .mv, .mn { transition: transform 0.35s var(--ease); }
  .bento li:hover .mb-1 { transform: scaleY(1.5); }
  .bento li:hover .mb-3 { transform: scaleY(1.3); }
  .bento li:hover .mv-b { transform: translateX(-4px); }
  .bento li:hover .mv-a { transform: translateX(4px); }
  .bento li:hover .mn-3 { transform: scale(1.15); }
}

/* Los pasos, unidos por una línea con el degradado del tema. */
@media (min-width: 760px) {
  [data-tema="apps"] .steps-row > li { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--vivo), var(--cian)) 1; }
}

[data-tema="apps"] .chip { border-color: var(--rule-2); background: rgba(255, 255, 255, 0.04); }
[data-tema="apps"] .producto { border-color: var(--accent-line); background: linear-gradient(120deg, rgba(106, 86, 240, 0.16), transparent 60%), var(--panel); }
[data-tema="apps"] .apps-flow { border-color: transparent; background: #ffffff; }
[data-tema="apps"] .hero-copy h1 { max-width: 14em; }

@media (min-width: 1100px) {
  body[data-tema="apps"] .hero:has(.hero-demo) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); }
}

/* --------------------------------------------------------------------------
   18g. Azure: el plano
   -------------------------------------------------------------------------- */

.azm-wrap { min-width: 0; }
.azm { display: grid; font-size: 14px; line-height: 1.35; color: var(--ink); }
.azm b { display: block; font-weight: 600; }
.azm small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.azm .icon { width: 22px; height: 22px; stroke: var(--accent); }
.azm ul { list-style: none; }
.azm-lado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }

.azm-caja, .azm-vms li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--s-3);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--panel);
}

.azm-tunel { position: relative; display: grid; place-items: center; height: 60px; }

.azm-tunel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--accent);
  opacity: 0.7;
}

.azm-tunel span {
  position: relative;
  padding: 2px var(--s-3);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-1);
  background: #06203f;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--accent);
}

.azm-tunel i {
  position: absolute;
  left: calc(50% - 4px);
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px var(--accent);
  opacity: 0;
}

.azm-nube {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(60, 150, 255, 0.2), rgba(60, 150, 255, 0.05));
  box-shadow: 0 40px 70px -40px #000;
}

.azm-nube-t { display: flex; align-items: center; gap: 10px; max-width: none; margin: 0; }
.azm-nube-t b { font-size: 17px; }
.azm-red { position: relative; padding: var(--s-4) var(--s-3) var(--s-3); border: 1px dashed var(--rule-2); border-radius: 10px; }

.azm-red-t {
  position: absolute;
  top: -10px;
  left: var(--s-3);
  padding: 0 6px;
  border-radius: 3px;
  background: #0b2d59;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
}

.azm-vms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.azm-fichas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.azm-fichas li { display: grid; gap: 6px; align-content: start; padding: var(--s-3); border: 1px solid var(--rule); border-radius: 10px; }
.azm-pie { margin: var(--s-3) 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .azm-caja { animation: con-entra 0.5s var(--ease) 0.1s backwards; }
  .azm-nube { animation: con-entra 0.6s var(--ease) 0.45s backwards; }
  .azm-tunel i { animation: azm-baja 1.1s ease-in-out 1s 2 both; }
}

@keyframes azm-baja { 0% { opacity: 0; top: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 10px); } }

@media (max-width: 419px) {
  .azm-caja, .azm-vms li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .azm-fichas { grid-template-columns: minmax(0, 1fr); }
  .azm-fichas li { grid-template-columns: 22px minmax(0, 1fr); align-items: center; }
}

/* La tabla de servicios: cada fila responde, y el servicio de Azure va en mono. */
[data-tema="azure"] .tabla-servicios tbody tr { transition: background 0.15s; }
[data-tema="azure"] .tabla-servicios tbody th { color: var(--accent); }
[data-tema="azure"] .tabla-servicios td.tec { font-family: var(--f-mono); font-size: 13px; }

@media (min-width: 760px) {
  [data-tema="azure"] .tabla-servicios th, [data-tema="azure"] .tabla-servicios td { padding: var(--s-4) var(--s-5) var(--s-4) var(--s-3); }
  [data-tema="azure"] .tabla-servicios tbody tr:hover { background: var(--paper-2); }
}

/* --------------------------------------------------------------------------
   18h. Microsoft 365: el tablero de la migración por grupos
   -------------------------------------------------------------------------- */

.tb-wrap { min-width: 0; }
.tb { border-radius: var(--r-3); box-shadow: 0 30px 60px -36px rgba(14, 24, 38, 0.35), var(--shadow-1); }
.tb ul { list-style: none; }
.tb-grupos { display: grid; gap: var(--s-3); }

.tb-g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
}

.tb-g b { display: block; font-size: 15px; font-weight: 600; }
.tb-g small { font-size: 13px; color: var(--ink-3); }
.tb-g .mock-st { font-style: normal; }
.mock-cita { background: var(--accent-soft); color: var(--accent); }
.tb-barra { grid-column: 1 / -1; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.tb-barra i { display: block; height: 100%; border-radius: 3px; background: var(--ok); transform-origin: 0 50%; }
.tb-b100 i { width: 100%; }
.tb-b60 i { width: 60%; background: var(--vivo); }
.tb-b0 i { width: 0; }

.tb-hecho {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}

.tb-hecho li { display: inline-flex; align-items: center; gap: 6px; }
.tb-hecho .icon { stroke: var(--ok); }

@media (prefers-reduced-motion: no-preference) {
  .tb-g { animation: con-entra 0.5s var(--ease) backwards; }
  .tb-g1 { animation-delay: 0.15s; } .tb-g2 { animation-delay: 0.3s; } .tb-g3 { animation-delay: 0.45s; }
  .tb-barra i { animation: tb-crece 0.9s var(--ease) 0.6s backwards; }
}

@keyframes tb-crece { from { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   18i. El explorador de la portada: cada panel, con el tema de su página
   -------------------------------------------------------------------------- */

.ex-panel[data-tema] { border-radius: var(--r-3); }
.ex-panel[data-tema="m365"] { background: linear-gradient(140deg, #eef4fb, #ffffff 60%); border-color: #c3d6e6; }
.ex-panel[data-tema="azure"] { background: linear-gradient(140deg, #e6f1fb, #ffffff 60%); border-color: var(--accent-line); }

.ex-panel[data-tema="ciber"] {
  border-color: var(--accent-line);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(79, 227, 180, 0.12), transparent 70%),
    var(--paper);
}

.ex-panel[data-tema="apps"] {
  border-color: var(--accent-line);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(106, 86, 240, 0.4), transparent 70%),
    var(--paper);
}

.ex-panel[data-tema="ciber"] .mock, .ex-panel[data-tema="apps"] .mock { box-shadow: 0 30px 60px -36px #000; }
.ex-panel[data-tema] .ex-pasos li { background: var(--white); }

/* --------------------------------------------------------------------------
   18j. Contacto en la propia página y «También hacemos»
   -------------------------------------------------------------------------- */

.sec-contacto { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.sec-contacto .contact-panel { border-color: var(--accent-line); box-shadow: 0 30px 60px -40px var(--brillo, rgba(14, 24, 38, 0.3)), var(--shadow-1); }
[data-tema="ciber"] .sec-contacto .contact-panel, [data-tema="apps"] .sec-contacto .contact-panel { background: var(--panel); }

.mundos { padding: var(--s-8) 0; border-top: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.mundos-t { margin-bottom: var(--s-5); font-size: var(--t-l); font-weight: 600; color: var(--ink); }
.mundos-lista { display: grid; gap: var(--s-4); list-style: none; }

@media (min-width: 760px) {
  .mundos-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mundo {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 108px;
  padding: var(--s-5);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.mundo strong { display: block; font-size: 18px; line-height: 1.25; }
.mundo small { display: block; margin-top: 2px; font-size: 14px; opacity: 0.82; }

.mundo-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.mundo-ico .icon { stroke: currentColor; }
.mundo-t { flex: 1; min-width: 0; }
.mundo-ir::after { content: '\2192'; display: inline-block; font-size: 20px; transition: transform 0.25s var(--ease); }

.mundo[data-tema="m365"] { border-color: #c3d6e6; background: linear-gradient(135deg, #e8f1fb, #ffffff); color: #15171a; }
.mundo[data-tema="m365"] .mundo-ico { background: #ffffff; color: #1f4e79; box-shadow: var(--shadow-1); }
.mundo[data-tema="azure"] { background: linear-gradient(135deg, #04142b, #0b4f96); color: #ffffff; }
.mundo[data-tema="azure"] .mundo-ico { color: #7cc4ff; }
.mundo[data-tema="ciber"] { border-color: rgba(79, 227, 180, 0.4); background: radial-gradient(80% 120% at 100% 0%, rgba(79, 227, 180, 0.2), transparent 70%), #070b10; color: #e8eff3; }
.mundo[data-tema="ciber"] .mundo-ico { color: #4fe3b4; }
.mundo[data-tema="apps"] { border-color: rgba(160, 145, 255, 0.4); background: radial-gradient(90% 130% at 0% 0%, #34268a 0%, transparent 70%), #0b0b14; color: #f3f2fa; }
.mundo[data-tema="apps"] .mundo-ico { color: #c9c0ff; }

@media (hover: hover) {
  .mundo:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.6); }
  .mundo:hover .mundo-ir::after { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   18k. La portada: el mismo trato que las páginas de servicio
   Albert, 11 de noviembre de 2026: «haz lo mismo con la página principal,
   mejórala notablemente». La portada pasa de un hero y seis bloques blancos
   iguales a un recorrido con ritmo: barra propia (en noche, sigue a la
   cabecera), el explorador a todo el ancho con el dibujo de cada página, una
   banda de noche con lo que queda hecho, los pasos unidos por una línea, la
   integración con el color de aplicaciones y dos tarjetas con lo que se puede
   ver antes de contratar.
   -------------------------------------------------------------------------- */

/* La barra de la portada va en noche, como la cabecera y el hero. */
body[data-tema="casa"] .subnav { background: var(--paper); border-bottom-color: var(--rule); }

/* En la portada la barra no se ve arriba del todo (allí ya está la cabecera):
   baja cuando la cabecera sale de la pantalla (ui.js pone .subnav-fija). Sin
   JavaScript se queda en su sitio, debajo de la cabecera. */
@media (scripting: enabled) {
  body[data-tema="casa"] .subnav {
    position: fixed;
    left: 0;
    right: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  body[data-tema="casa"] .subnav.subnav-fija { visibility: visible; transform: none; transition-delay: 0s; }
}

@media (scripting: none) {
  body[data-tema="casa"] .hero-oscuro { min-height: calc(100svh - var(--head-h) - 55px); }
}

.subnav-cuadrante {
  border: 0;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Bandas: un tramo de la página con otro fondo. El filete de .sec sobra entre
   un fondo y otro. */
.banda { border-top: 0; background: var(--paper); color: var(--ink); }
.banda + .sec { border-top: 0; }

/* El explorador a todo el ancho: las cuatro líneas arriba, cada una con su
   color, y debajo el panel con el dibujo de su página. */
.ex-t-m365  { --tono: #1a6fd8; --tono-suave: #eaf2fc; }
.ex-t-azure { --tono: #0b5cab; --tono-suave: #e6f1fb; }
.ex-t-ciber { --tono: #0c8f6c; --tono-suave: #e4f6f0; }
.ex-t-apps  { --tono: #6a56f0; --tono-suave: #efecff; }

.ex-ancho { gap: var(--s-5); }
.ex-ancho .ex-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); border-top: 0; }

.ex-ancho .ex-tab {
  height: 100%;
  padding: var(--s-3);
  gap: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.ex-ancho .ex-tab::before {
  left: var(--s-4);
  right: var(--s-4);
  top: auto;
  bottom: -1px;
  width: auto;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--tono);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.ex-ancho .ex-tab .sv { transition: background 0.2s, border-color 0.2s; }
.ex-ancho .ex-tab:hover { background: var(--tono-suave); border-color: var(--tono); }
.ex-ancho .ex-tab:hover::before { background: var(--tono); }
.ex-ancho .ex-tab[aria-selected="true"] {
  background: var(--tono-suave);
  border-color: var(--tono);
  box-shadow: 0 16px 30px -24px var(--tono);
}
.ex-ancho .ex-tab[aria-selected="true"]::before { background: var(--tono); transform: scaleX(1); }
.ex-ancho .ex-tab[aria-selected="true"] .sv { border-color: var(--tono); background: var(--white); }
.ex-ancho .ex-tab[aria-selected="true"] .sv .icon { stroke: var(--tono); }

@media (max-width: 559px) {
  .ex-ancho .ex-tab { flex-direction: column; align-items: flex-start; gap: var(--s-2); font-size: 15px; }
  .ex-ancho .ex-tab small { display: none; }
}

@media (min-width: 900px) {
  .ex-ancho .ex-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
  .ex-ancho .ex-tab { padding: var(--s-4); }
}

@media (min-width: 1100px) {
  .explorer.ex-ancho { grid-template-columns: minmax(0, 1fr); }
  .ex-ancho.ex-js .ex-tabs { position: static; }
  .ex-ancho .ex-panel {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--s-8);
    min-height: 620px;
    padding: var(--s-7) var(--s-8);
  }
}

.ex-ancho .ex-panel { border-radius: 14px; overflow: hidden; }
.ex-ancho .ex-copy h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.02em; }
.ex-ancho .ex-copy .more { font-weight: 600; }

/* Qué queda hecho: banda de noche, cuatro resultados con su señal en verde. */
.banda-noche { background:
    radial-gradient(70% 90% at 85% 0%, rgba(26, 111, 216, 0.22), transparent 70%),
    var(--paper); }
.banda-noche .eyebrow { color: var(--accent); }
.banda-noche .eyebrow::before {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h45v45H0zM0 55h45v45H0zM55 55h45v45H55zM55 0h30l15 15v30H55z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.banda-noche h2 { color: var(--ink); }

.hechos { gap: var(--s-4); }
@media (min-width: 1100px) { .hechos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hechos li {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-5);
  border-color: var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  line-height: 1.5;
}

.hechos li::after {
  content: '';
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(95, 208, 195, 0.16);
}

.hechos .gl-ico { width: 48px; height: 48px; border: 1px solid var(--accent-line); border-radius: 10px; }
.hechos .gl-ico .icon { width: 24px; height: 24px; stroke: var(--accent); }
.hechos strong { margin-bottom: var(--s-2); font-size: 18px; line-height: 1.3; }

@media (hover: hover) {
  .hechos li:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--rule-2); }
}

/* Cómo trabajamos: los pasos, unidos por una línea. */
.steps-via > li { padding-left: 60px; padding-bottom: var(--s-2); }

.steps-via > li::before {
  top: -6px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.steps-via > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 42px;
  bottom: calc(var(--s-5) * -1 - 2px);
  width: 2px;
  background: linear-gradient(var(--accent-line), var(--rule));
}

@media (min-width: 760px) {
  .steps-via.steps-row > li { padding: 68px var(--s-5) 0 0; border-top: 0; }
  .steps-via.steps-row > li::before { top: 0; }
  .steps-via.steps-row > li:not(:last-child)::after {
    left: 54px;
    right: calc(var(--s-6) * -1 + 12px);
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-line), var(--rule));
  }
  .steps-via h3 { font-size: 20px; }
}

/* Integración con el ERP: con el color de la página de aplicaciones. */
.banda[data-tema="apps"] {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(106, 86, 240, 0.28), transparent 70%),
    var(--paper);
}

/* Antes de contratar: dos tarjetas, cada una con lo que se puede ver. */
.pruebas { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .pruebas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prueba {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.prueba[data-tema="m365"] { border-color: #c3d6e6; background: linear-gradient(160deg, #e8f1fb, #ffffff 55%); }
.prueba[data-tema="apps"] {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(106, 86, 240, 0.42), transparent 70%),
    var(--paper);
}

.prueba > .mock-wrap {
  display: grid;
  align-content: start;
  height: 300px;
  padding: var(--s-6) var(--s-6) 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 78%, transparent);
  mask: linear-gradient(#000 78%, transparent);
}

.prueba > .mock-wrap figcaption { display: none; }
.prueba-t { padding: var(--s-5) var(--s-6) var(--s-6); }
.prueba-t h3 { margin-bottom: var(--s-2); font-size: 22px; letter-spacing: -0.015em; }
.prueba-t p { margin-bottom: var(--s-4); color: var(--ink-2); }
.prueba-t .more { font-weight: 600; }
.pruebas-nota { margin-top: var(--s-5); }

@media (hover: hover) {
  .prueba:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -30px var(--brillo, rgba(14, 24, 38, 0.5)); }
}

@media (max-width: 559px) {
  .prueba > .mock-wrap { height: 240px; padding: var(--s-4) var(--s-4) 0; }
  .prueba-t { padding: var(--s-4); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pruebas > *, .hechos > li {
      animation: revela linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 170px;
    }
  }
}

@media print {
  .subnav, .mundos, .demo-mandos { display: none; }
  * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   17. Movimiento
   Cambios de color al pasar el ratón, el menú del móvil, el fundido de las
   pestañas y las escenas isométricas (15d), que se mueven un rato y se quedan
   quietas; la de la portada ancha es una película con mandos. No hay aparición
   por scroll. Con prefers-reduced-motion: reduce se apaga todo.
   Los enlaces a otra parte de la misma página (Pedir una reunión → #contacto,
   Saltar al contenido) llevan hasta allí con un desplazamiento suave (Albert,
   3 de noviembre de 2026). Las pestañas del explorador no se desplazan: ui.js
   anula su salto.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comprobador del correo (/comprobar-correo, 21 de noviembre de 2026). El atributo hidden
   tiene que ganar a cualquier display de las clases: el resultado nace oculto y lo enseña
   tools/assets/comprobador.js. Los estados son clases y data-estado: con style-src-attr 'none',
   el JS no puede poner estilos por atributo. Tema «ciber» (tools/tematica.py). */
[hidden] { display: none !important; }

.comp-rejilla { display: grid; gap: var(--s-6); align-items: start; }
.comp-form { margin-top: var(--s-5); }

#comp-email-ayuda { margin-top: var(--s-2); }

/* El escáner: cuatro registros que se leen uno tras otro. */
.comp-escaner {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: var(--f-mono);
  box-shadow: var(--shadow-2);
}
.comp-escaner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
}
.comp-escaner-cabeza {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-s);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.comp-luz { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.comp-escaner[data-estado="leyendo"] .comp-luz { background: var(--accent); }
.comp-escaner[data-estado="ok"] .comp-luz { background: var(--ok); }
.comp-escaner[data-estado="aviso"] .comp-luz { background: var(--aviso); }
.comp-escaner[data-estado="pend"] .comp-luz { background: var(--pend); }
.comp-escaner[data-estado="ok"] { border-color: var(--ok); }
.comp-escaner[data-estado="aviso"] { border-color: var(--aviso); }
.comp-escaner[data-estado="pend"] { border-color: var(--pend); }

.comp-pasos { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.comp-paso {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-size: var(--t-s);
}
.comp-paso-nombre { color: var(--ink); }
.comp-paso-estado {
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-align: right;
}
.comp-paso.leyendo .comp-paso-estado { color: var(--accent); }
.comp-paso.info { border-color: var(--accent-line); }
.comp-paso.info .comp-paso-estado { color: var(--accent-ink); }
.comp-paso.ok { border-color: var(--ok); background: var(--ok-soft); }
.comp-paso.ok .comp-paso-estado { color: var(--ok); }
.comp-paso.aviso { border-color: var(--aviso); background: var(--aviso-soft); }
.comp-paso.aviso .comp-paso-estado { color: var(--aviso); }
.comp-paso.pend { border-color: var(--pend); background: var(--pend-soft); }
.comp-paso.pend .comp-paso-estado { color: var(--pend); }

.comp-escaner-veredicto {
  margin: var(--s-4) 0 0;
  font-family: var(--f-sans);
  font-size: var(--t-l);
  font-weight: 600;
  color: var(--ink-2);
}
.comp-escaner-veredicto.ok { color: var(--ok); }
.comp-escaner-veredicto.aviso { color: var(--aviso); }
.comp-escaner-veredicto.pend { color: var(--pend); }

/* El resultado. */
.comp-veredicto {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-3);
  border-radius: var(--r-1);
  background: var(--panel);
}
.comp-veredicto.ok { border-left-color: var(--ok); }
.comp-veredicto.aviso { border-left-color: var(--aviso); }
.comp-veredicto.pend { border-left-color: var(--pend); }
.comp-veredicto.ok .comp-nivel strong { color: var(--ok); }
.comp-veredicto.aviso .comp-nivel strong { color: var(--aviso); }
.comp-veredicto.pend .comp-nivel strong { color: var(--pend); }
.comp-nivel { margin-top: var(--s-3); font-size: var(--t-m); }
.comp-informe-estado { margin-top: var(--s-3); font-size: var(--t-s); color: var(--ink-2); }
.comp-informe-estado:empty { display: none; }

/* La casilla de avisos, debajo del resultado: aparte, opcional y sin marcar. */
.comp-permiso {
  margin-top: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-1);
  background: var(--panel);
  display: grid;
  gap: var(--s-4);
}
.comp-permiso h3 { margin: 0; }

.comp-detalle { display: grid; gap: var(--s-6); margin-top: var(--s-6); align-items: start; }

/* El correo falso: cómo le llegaría a un cliente. */
.comp-falso { margin: 0; }
.comp-falso figcaption {
  margin-bottom: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.comp-correo {
  padding: var(--s-5);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.comp-correo-cabeza {
  margin: 0;
  display: grid;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-s);
}
.comp-correo-cabeza div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: var(--s-2); }
.comp-correo-cabeza dt { color: var(--ink-3); }
.comp-correo-cabeza dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.comp-correo-cuerpo { margin-top: var(--s-4); color: var(--ink-2); }
.comp-sello {
  display: inline-block;
  margin-top: var(--s-4);
  padding: var(--s-2) var(--s-3);
  border: 2px solid currentColor;
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.comp-sello.ok { color: var(--ok); }
.comp-sello.aviso { color: var(--aviso); }
.comp-sello.pend { color: var(--pend); }

/* La marca de estado va siempre con la palabra, nunca solo el color. */
.comp-marca {
  display: inline-block;
  padding: 0 var(--s-2);
  border: 1px solid currentColor;
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.comp-marca.ok { color: var(--ok); }
.comp-marca.aviso { color: var(--aviso); }
.comp-marca.pend { color: var(--pend); }
.comp-lista { margin-top: 0; }

.comp-baja { display: grid; gap: var(--s-4); max-width: 40em; margin-top: var(--s-5); }

@media (min-width: 900px) {
  .comp-rejilla { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .comp-escaner { position: sticky; top: var(--s-6); }
  .comp-detalle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .comp-paso { transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
  .comp-escaner[data-estado="leyendo"]::after { opacity: 1; animation: comp-barrido 1.6s linear infinite; }
  .comp-escaner[data-estado="leyendo"] .comp-luz { animation: comp-latido 0.9s ease-in-out infinite; }
  .comp-paso.leyendo .comp-paso-estado { animation: comp-latido 0.9s ease-in-out infinite; }
  .comp-sello { animation: comp-sello 0.5s var(--ease) both; }
}
@keyframes comp-barrido { from { top: 0; } to { top: 100%; } }
@keyframes comp-latido { 50% { opacity: 0.35; } }
@keyframes comp-sello { from { opacity: 0; transform: rotate(-2deg) scale(1.4); } }

.casilla { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.casilla input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.casilla label { font-size: var(--t-s); color: var(--ink-2); }
