/* ==========================================================================
   Norma · diseno.css · rediseño de marca (21-11-2026)
   Enfoque A con la paleta 3 «Lacre», aprobado por Paul el 21-11-2026 (página piloto
   Webs/informes/rediseno-marca-2026-11-20/piloto/comprar-inmueble.html y su sistema, marca.css).
   Guía: maqueta/pantallas/norma-portada-F.html y norma-articulo-F.html.

   SOLO viaja con el interruptor «diseno» encendido (data/diseno.json → activo; ver src/diseno.mjs).
   Reemplaza a styles.css en cada página: una página carga styles.css o diseno.css, NUNCA las dos.
   Viste el mismo marcado de siempre (las plantillas casi no cambian): por eso las reglas usan
   las clases de Norma (.top, .card, .herr-card, .linked…) y no las de la maqueta.

   Reglas
   - Ningún color escrito a mano fuera de los tokens: todo sale de var(--c-…), currentColor o
     color-mix() entre tokens. Única excepción: la piel de Arroyo Abogados (--aa-…, §17), que es
     la del estudio. Los iconos son máscaras (dibujo de Lucide, ISC): el «black» de sus SVG es solo
     el canal alfa de la máscara; el color lo pone currentColor.
   - El lacre (--c-primario) va en botones, enlaces y detalles, nunca en bloques ni tarjetas planas.
     El oro (--c-acento) marca: la cursiva del titular, antetítulos y filetes.
   - Playfair Display solo en titulares; Inter en el texto. Sin la letra monoespaciada de antes.
   - Movimiento sobrio: solo transform, opacity, sombras y colores, de 100 a 300 ms (el círculo del
     cambio de tema, 550 ms). Nada se mueve solo: fuera el trazo, la luz que sigue al cursor, las
     apariciones, los pulsos y la textura. Se quedan el cambio de tema en círculo y el fundido entre
     páginas. :hover solo con puntero fino; en táctil responde :active.
   - Objetivos táctiles de 44 px en el celular; foco visible en todo lo que se alcanza con Tab.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuentes de reserva (el texto no salta al llegar la fuente web) y tokens comunes
   -------------------------------------------------------------------------- */
@font-face { font-family: "Playfair reserva"; src: local("Georgia"), local("Times New Roman"); size-adjust: 87.3%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Inter reserva"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 106.1%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --f-titular: "Playfair Display", "Playfair reserva", Georgia, "Times New Roman", serif;
  --f-texto: "Inter", "Inter reserva", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(2.375rem, 1.55rem + 3.2vw, 3.5rem);   /* 38 → 56 px */
  --t-h1: clamp(2.125rem, 1.75rem + 1.5vw, 2.75rem);        /* 34 → 44 px */
  --t-h2: clamp(1.5rem, 1.33rem + .7vw, 1.75rem);           /* 24 → 28 px */
  --t-h3: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);       /* 19 → 22 px */
  --t-titulo: 1.125rem;
  --t-entrada: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --t-lectura: 1.125rem;                                    /* texto de un artículo o de una definición */
  --t-cuerpo: 1rem;
  --t-etiqueta: .875rem;
  --t-mini: .8125rem;
  --i-texto: 1.6;
  --i-lectura: 1.7;

  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px; --e-6: 32px; --e-7: 48px; --e-8: 64px; --e-9: 96px;
  --r-xs: 4px; --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 28px; --r-pildora: 999px;

  --dur-1: 100ms; --dur-2: 200ms; --dur-3: 300ms; --dur-presion: 120ms;
  --curva-estandar: cubic-bezier(.2, 0, 0, 1);
  --curva-entrada: cubic-bezier(.05, .7, .1, 1);

  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 32px);
  --alto-barra: 64px;
  --toque: 44px;

  /* iconos de máscara (Lucide, ISC; la «N» es la de Norma): el negro de cada SVG es solo el alfa de la máscara */
  --i-copiar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='13' height='13' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2'/%3E%3C/svg%3E");
  --i-bandera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cpath d='M4 22v-7'/%3E%3C/svg%3E");
  --i-pregunta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --i-der: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --i-nodos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98'/%3E%3C/svg%3E");
  --i-pluma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.4 3.6a2.1 2.1 0 0 1 3 3L7.4 18.6a2 2 0 0 1-.86.5l-2.87.84a.5.5 0 0 1-.62-.62l.84-2.87a2 2 0 0 1 .5-.86z'/%3E%3C/svg%3E");
  --i-calculadora: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cpath d='M8 6h8M16 14v4M16 10h.01M12 10h.01M8 10h.01M12 14h.01M8 14h.01M12 18h.01M8 18h.01'/%3E%3C/svg%3E");
  --i-maletin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3Crect width='20' height='14' x='2' y='6' rx='2'/%3E%3C/svg%3E");
  --i-documento: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
  --i-birrete: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 10.9a1 1 0 0 0 0-1.8L12.8 5.2a2 2 0 0 0-1.6 0L2.6 9.1a1 1 0 0 0 0 1.8l8.6 3.9a2 2 0 0 0 1.6 0z'/%3E%3Cpath d='M22 10v6'/%3E%3Cpath d='M6 12.5V16a6 3 0 0 0 12 0v-3.5'/%3E%3C/svg%3E");
  --i-libro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  --i-externo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --i-enlace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  --i-mas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' stroke='none' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E");
  --i-norma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='scale(.375)' stroke-width='4.6'%3E%3Cpath d='M18 45.5V18.5M20.6 17.4 29.4 28.6M34.6 35.4 43.4 46.6M46 45.5V18.5'/%3E%3Ccircle cx='18' cy='48' r='3.8'/%3E%3Ccircle cx='18' cy='16' r='3.8'/%3E%3Ccircle cx='46' cy='48' r='3.8'/%3E%3Ccircle cx='46' cy='16' r='3.8'/%3E%3Ccircle cx='32' cy='32' r='5.8' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Color · paleta 3 «Lacre» (los mismos valores que marca.css del piloto)
   Claro en :root; oscuro con html[data-theme="dark"] (el interruptor de Norma, app.js).
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --c-fondo: #f8f5f1;
  --c-superficie: #ffffff;
  --c-superficie-baja: #f3eeea;
  --c-superficie-alta: #ede6e2;
  --c-borde: #e5ddd8;
  --c-borde-fuerte: #877c78;
  --c-texto: #231b1a;
  --c-texto-2: #554846;
  --c-texto-3: #695c59;
  --c-primario: #7d2533;
  --c-sobre-primario: #ffffff;
  --c-primario-contenedor: #f5dfe0;
  --c-sobre-primario-contenedor: #3f0c16;
  --c-acento: #7d5f20;
  --c-acento-contenedor: #f4e9d0;
  --c-sobre-acento-contenedor: #4a3712;
  --c-acento-banda: #dcb76b;
  --c-banda: #1e1a17;
  --c-sobre-banda: #f6f1ea;
  --c-enlace: #7d2533;
  --c-foco: #7d2533;
  --c-exito: #2b6741;
  --c-exito-contenedor: #e3efe4;
  --c-aviso: #8a4b06;
  --c-aviso-contenedor: #fbe9d4;
  --c-error: #a12f28;
  --c-error-contenedor: #f9e2de;
  --sombra-1: 0 1px 2px rgb(60 36 38 / .26), 0 1px 3px 1px rgb(60 36 38 / .12);
  --sombra-2: 0 1px 2px rgb(60 36 38 / .26), 0 2px 6px 2px rgb(60 36 38 / .12);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-fondo: #161112;
  --c-superficie: #1f1819;
  --c-superficie-baja: #1a1415;
  --c-superficie-alta: #2e2426;
  --c-borde: #3b2f31;
  --c-borde-fuerte: #918384;
  --c-texto: #f3eaea;
  --c-texto-2: #d4c5c6;
  --c-texto-3: #ad9d9e;
  --c-primario: #eba7ae;
  --c-sobre-primario: #3d0a15;
  --c-primario-contenedor: #5c1f2b;
  --c-sobre-primario-contenedor: #fbdadd;
  --c-acento: #dcb76b;
  --c-acento-contenedor: #43351a;
  --c-sobre-acento-contenedor: #f2e0b5;
  --c-acento-banda: #dcb76b;
  --c-banda: #26221e;
  --c-sobre-banda: #f3ece4;
  --c-enlace: #f0b3b9;
  --c-foco: #f0b3b9;
  --c-exito: #8fd1a3;
  --c-exito-contenedor: #173322;
  --c-aviso: #f0b46e;
  --c-aviso-contenedor: #45290b;
  --c-error: #f4a198;
  --c-error-contenedor: #4a1916;
  --sombra-1: 0 1px 2px rgb(0 0 0 / .5), 0 1px 3px 1px rgb(0 0 0 / .28);
  --sombra-2: 0 1px 2px rgb(0 0 0 / .5), 0 2px 6px 2px rgb(0 0 0 / .28);
}
/* Puente: los nombres de la hoja de antes que aún usan algunos estilos en línea de las plantillas
   (style="color:var(--ink-soft)", var(--paper-2), var(--gold)). Apuntan a los tokens nuevos. */
:root {
  --ink: var(--c-texto); --ink-soft: var(--c-texto-2); --ink-mute: var(--c-texto-3);
  --paper: var(--c-fondo); --paper-2: var(--c-superficie-baja); --cream: var(--c-superficie);
  --gold: var(--c-acento); --line: var(--c-borde);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--c-fondo);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-barra) + var(--e-4));
}
body {
  margin: 0; min-height: 100vh;
  background: var(--c-fondo); color: var(--c-texto);
  font: 400 var(--t-cuerpo)/var(--i-texto) var(--f-texto);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-titular); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; color: var(--c-texto); }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-enlace); text-decoration: none; }
a, button, summary, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 2px; }
::selection { background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); }
mark { background: var(--c-acento-contenedor); color: var(--c-sobre-acento-contenedor); border-radius: 3px; padding: 0 1px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2 * max(var(--margen), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), var(--ancho)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* rótulos que antes iban en letra monoespaciada y versalitas: ahora Inter, como están escritos */
.mono { font: 500 var(--t-etiqueta)/1.45 var(--f-texto); letter-spacing: 0; text-transform: none; color: var(--c-texto-3); }
kbd { font: 500 .75rem/1 var(--f-texto); color: var(--c-texto-3); padding: 5px 7px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); background: transparent; }
@media (hover: none) and (pointer: coarse) { kbd, .palette .foot .tecla { display: none; } }
/* campo trampa para bots: invisible para personas y lectores de pantalla */
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* enlace para saltar al contenido (nuevo, data-nuevo="1") */
.saltar { position: absolute; left: var(--e-4); top: -120px; z-index: 100; padding: var(--e-3) var(--e-4); border-radius: var(--r-pildora); background: var(--c-superficie); color: var(--c-texto); box-shadow: var(--sombra-2); font-weight: 600; }
.saltar:focus { top: var(--e-2); }
/* el viejo pulso del antetítulo y las animaciones de entrada ya no existen */
.pulse { display: none; }

/* Icono de máscara: el dibujo lo da --i, el color currentColor */
.icono-m, .actions .btn::before, .preg-list a::before, .preg-list a::after, .foot-eco a::after, .ld-list a::before, .ld-btn::after, .foot-about::after {
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   4. Transiciones: fundido entre páginas y cambio de tema en círculo (se conservan)
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
header.top { view-transition-name: barra; }
::view-transition-old(root) { animation: vt-sale .16s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-entra .3s var(--curva-entrada) .04s both; }
::view-transition-group(barra) { animation-duration: 0s; }
@keyframes vt-sale { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(8px); } }
@keyframes vt-funde { from { opacity: 0; } }
html.tema-cambia::view-transition-old(root), html.tema-cambia::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.tema-cambia::view-transition-new(root) { animation: tema-circulo .55s var(--curva-entrada) both; }
html.tema-cambia header.top { view-transition-name: none; }
html.tema-cambia body, html.tema-cambia body * { transition: none !important; }
@keyframes tema-circulo {
  from { clip-path: circle(0 at var(--tema-x, 100%) var(--tema-y, 0)); }
  to { clip-path: circle(var(--tema-r, 150vmax) at var(--tema-x, 100%) var(--tema-y, 0)); }
}

/* --------------------------------------------------------------------------
   5. Barra · marca, apartados en píldora, búsqueda, tema y Asesoría al final
   -------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--c-fondo); border-bottom: 1px solid var(--c-borde); }
.top .shell { display: flex; align-items: center; gap: var(--e-3); min-height: var(--alto-barra); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--c-texto); }
.brand a { color: inherit; text-decoration: none; }
.brand .mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--c-banda); color: var(--c-acento-banda); }
:root[data-theme="dark"] .brand .mark { box-shadow: inset 0 0 0 1px var(--c-borde); }
.brand .mark svg { width: 24px; height: 24px; }
.brand .mark { position: relative; }
.brand .mark::after { content: ""; position: absolute; inset: -4px; }   /* área de toque de 44 px */
.brand .mark:focus-visible, .brand .brand-name:focus-visible { outline-offset: 3px; border-radius: var(--r-s); }
.brand b { display: block; font: 600 1.25rem/1 var(--f-titular); letter-spacing: -0.01em; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; font: 500 .75rem/1.2 var(--f-texto); color: var(--c-texto-3); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--e-1); margin-left: auto; }
.nav a, .nav .btn { position: relative; isolation: isolate; overflow: hidden; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pildora); font: 500 .9375rem/1 var(--f-texto); color: var(--c-texto-2); white-space: nowrap; transition: background-color var(--dur-2) var(--curva-estandar); }
.nav a::after, .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
.nav a[aria-current] { background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); font-weight: 600; }
/* en el índice A–Z, la plantilla marca también «Diccionario»: mientras «Índice A–Z» se vea, solo ese va en píldora */
@media (min-width: 70.0625em) { .nav:has(.nav-indice[aria-current]) a[aria-current]:not(.nav-indice) { background: none; color: var(--c-texto-2); font-weight: 500; } }
@media (hover: hover) and (pointer: fine) { .nav a:not([aria-current]):hover::after { opacity: .08; } }
.nav a:active::after { opacity: .1; }
.nav a.nav-volver { gap: 6px; padding: 0 14px 0 8px; margin-right: var(--e-2); box-shadow: inset 0 0 0 1px var(--c-borde); }
.nav a.nav-volver svg { width: 18px; height: 18px; flex: none; }
.nav a.nav-azar { width: var(--toque); height: var(--toque); padding: 0; justify-content: center; border-radius: 50%; }
.nav a.nav-azar svg { width: 20px; height: 20px; }
.nav a.nav-asesoria { min-height: 40px; margin-left: var(--e-1); background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); font-weight: 600; }
.search-trigger.btn { min-height: 40px; gap: var(--e-2); padding: 0 6px 0 14px; background: var(--c-superficie-alta); color: var(--c-texto-2); font-weight: 500; box-shadow: none; }
.search-trigger kbd { margin-left: 2px; }
.btn.icon { width: var(--toque); height: var(--toque); min-height: var(--toque); padding: 0; border-radius: 50%; color: var(--c-texto-2); box-shadow: none; }
.btn.icon svg { width: 20px; height: 20px; }
/* la barra cabe sin partirse: se van quitando etiquetas secundarias según el ancho (en em: también con la letra del navegador agrandada) */
@media (max-width: 77.5em) { .brand small { display: none; } }
@media (max-width: 73.75em) { .nav a.nav-volver span { display: none; } .nav a.nav-volver { width: var(--toque); height: var(--toque); padding: 0; margin-right: 0; justify-content: center; border-radius: 50%; } }
@media (max-width: 70em) { .nav .nav-indice { display: none; } }
@media (max-width: 64em) { .nav a.nav-inicio { display: none; } .search-trigger span, .search-trigger kbd { display: none; } .search-trigger.btn { width: var(--toque); height: var(--toque); padding: 0; justify-content: center; border-radius: 50%; background: transparent; } }
@media (max-width: 47.5em) { .nav a:not(.keep) { display: none; } .nav a.nav-volver { box-shadow: none; } }
@media (max-width: 22.5em) { .brand b { font-size: 1.125rem; } .top .shell { gap: 0; } }

/* --------------------------------------------------------------------------
   6. Botones · píldoras; la capa ::after pinta currentColor al 8 % (cursor) y 10 % (presión)
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  min-height: var(--toque); padding: 0 var(--e-5); border: 0; border-radius: var(--r-pildora);
  font: 600 .9375rem/1.2 var(--f-texto); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--c-primario); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte);
  transition: transform var(--dur-presion) var(--curva-estandar), box-shadow var(--dur-2) var(--curva-estandar);
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 2px; }
.btn:focus-visible::after, .btn:active::after { opacity: .1; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover::after { opacity: .08; } }
.btn.gold { background: var(--c-primario); color: var(--c-sobre-primario); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn.gold:hover { box-shadow: var(--sombra-1); } }
.btn[disabled] { opacity: .5; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .linkbtn:hover { color: var(--c-texto); } }

/* --------------------------------------------------------------------------
   7. Portada · titular, selector Diccionario / Normas, buscador, sugerencias y cifras
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(var(--e-7), 7vw, var(--e-9)) 0 clamp(var(--e-6), 5vw, var(--e-8)); text-align: center; }
.hero .shell { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2); font: 600 var(--t-mini)/1.35 var(--f-texto); }
.hero h1 { margin: var(--e-5) 0 var(--e-4); font-size: var(--t-display); line-height: 1.08; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--c-acento); }
.hero .lead { max-width: 50ch; margin: 0 auto var(--e-5); font-size: var(--t-entrada); line-height: 1.6; color: var(--c-texto-2); text-wrap: pretty; }
.hero .lead b { color: var(--c-texto); font-weight: 600; }
.modos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-2); width: min(100%, 580px); margin: var(--e-1) auto var(--e-5); }
.modos button {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: var(--e-3); min-height: 64px; padding: var(--e-2) var(--e-4) var(--e-2) var(--e-2);
  border: 0; border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde);
  color: var(--c-texto); text-align: left;
  transition: background-color var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar);
}
.modos button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
.modos button svg { width: 40px; height: 40px; flex: none; padding: 10px; border-radius: var(--r-m); background: var(--c-superficie-alta); color: var(--c-texto-2); stroke-width: 1.75; }
.modos button b { display: block; font: 600 1rem/1.25 var(--f-texto); }
.modos button small { display: block; font: 400 var(--t-mini)/1.35 var(--f-texto); color: var(--c-texto-3); }
.modos button[aria-selected="true"] { background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); box-shadow: none; }
.modos button[aria-selected="true"] small { color: var(--c-sobre-primario-contenedor); }
.modos button[aria-selected="true"] svg { background: var(--c-superficie); color: var(--c-sobre-primario-contenedor); }
.modos button:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 2px; }
.modos button:active { transform: scale(.97); }
.modos button:active::after { opacity: .1; }
@media (hover: hover) and (pointer: fine) { .modos button:not([aria-selected="true"]):hover::after { opacity: .05; } }
@media (max-width: 26.25em) { .modos button { padding-left: var(--e-4); } .modos button svg { display: none; } }

.searchbox { position: relative; width: 100%; max-width: 640px; margin: 0 auto; text-align: left; }
.searchbox .field {
  display: flex; align-items: center; gap: var(--e-3); min-height: 56px; padding: 0 var(--e-2) 0 var(--e-5);
  border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2);
  transition: background-color var(--dur-2) var(--curva-estandar), box-shadow var(--dur-2) var(--curva-estandar);
}
.searchbox .field:focus-within { background: var(--c-superficie); box-shadow: var(--sombra-1); }
.searchbox .field:has(input:focus-visible) { outline: 2px solid var(--c-foco); outline-offset: 2px; }
.searchbox svg.i { width: 22px; height: 22px; flex: none; }
.searchbox input { flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent; font: 400 1.0625rem/1.3 var(--f-texto); color: var(--c-texto); }
.searchbox input::placeholder { color: var(--c-texto-3); opacity: 1; }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox kbd { margin-right: var(--e-2); }
@media (max-width: 32.5em) { .searchbox kbd { display: none; } .searchbox .field { padding-left: var(--e-4); } }
/* lista de sugerencias del buscador y de la búsqueda rápida */
.results { position: absolute; left: 0; right: 0; top: calc(100% + var(--e-2)); z-index: 30; display: none; max-height: min(64vh, 540px); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-l); background: var(--c-superficie); box-shadow: var(--sombra-2); text-align: left; }
.results.open { display: block; }
.results .r { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--e-3); min-height: 60px; padding: 10px var(--e-4); color: var(--c-texto); text-decoration: none; cursor: pointer; }
.results .r + .r { border-top: 1px solid var(--c-borde); }
.results .r:hover, .results .r.active { background: color-mix(in srgb, var(--c-texto) 6%, transparent); }
.results .r b { font: 600 1rem/1.35 var(--f-texto); overflow-wrap: anywhere; }
.results .r.art b { font-variant-numeric: tabular-nums; }
.results .r b mark { background: var(--c-acento-contenedor); color: var(--c-sobre-acento-contenedor); border-radius: 3px; padding: 0 1px; }
.results .r .chip { min-height: 0; background: var(--c-superficie-alta); color: var(--c-texto-2); }
.results .r .ex { grid-column: 1 / -1; font-size: var(--t-etiqueta); color: var(--c-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .empty { padding: var(--e-5); color: var(--c-texto-2); }
.results .empty a { color: var(--c-enlace); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 32.5em) { .results .r .chip { display: none; } }
/* «Prueba con …» */
.hero .hints { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--e-2); max-width: 780px; margin: var(--e-5) auto 0; font-size: var(--t-etiqueta); color: var(--c-texto-3); }
.hero .hints a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--e-4); border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2); font: 500 var(--t-etiqueta)/1.2 var(--f-texto); }
.hero .hints a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
@media (hover: hover) and (pointer: fine) { .hero .hints a:hover::after { opacity: .08; } }
.hero .hints a:active::after { opacity: .1; }
.hints.normas-lista { max-width: 900px; }
.hero .hints a.actualizadas { flex-basis: 100%; justify-content: center; gap: var(--e-2); min-height: 0; padding: 4px 0; background: none; color: var(--c-texto-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--c-borde-fuerte); text-underline-offset: .25em; }
.hints .actualizadas .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-exito); }
/* cifras */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-5); width: min(100%, 760px); margin: var(--e-6) auto 0; padding: var(--e-5) 0 0; border-top: 1px solid var(--c-borde); }
.stats div { display: grid; gap: 2px; text-align: center; }
.stats b { font: 600 clamp(1.625rem, 1.3rem + 1vw, 2rem)/1.15 var(--f-texto); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--c-texto); }
.stats span { font-size: var(--t-etiqueta); color: var(--c-texto-2); }
@media (max-width: 40em) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--e-4); } }

/* --------------------------------------------------------------------------
   8. Secciones de la portada
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(var(--e-6), 5vw, var(--e-8)); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--e-3) var(--e-5); margin-bottom: var(--e-5); }
.section-head > div { display: grid; gap: var(--e-2); max-width: 60ch; }
.section-head h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.15; }
.section-head p { margin: 0; color: var(--c-texto-2); }
.section-head a.more { display: inline-flex; align-items: center; min-height: var(--toque); padding: 0 var(--e-3); margin-right: calc(-1 * var(--e-3)); border-radius: var(--r-pildora); font: 600 .9375rem/1.2 var(--f-texto); color: var(--c-enlace); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .section-head a.more:hover { text-decoration: underline; text-underline-offset: .22em; } }

/* --------------------------------------------------------------------------
   9. Tarjetas · hojas planas con filete fino
   -------------------------------------------------------------------------- */
.card { position: relative; padding: clamp(var(--e-4), 2.2vw, var(--e-5)); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); }
a.card { display: flex; flex-direction: column; gap: var(--e-2); color: var(--c-texto); text-decoration: none; transition: box-shadow var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
a.card:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 3px; }
a.card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-1); }
  a.card:hover h3 { color: var(--c-enlace); }
}
.grid { display: grid; gap: var(--e-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 32.5em) { .grid { gap: var(--e-3); } }
.card h3 { font: 600 var(--t-titulo)/1.3 var(--f-texto); letter-spacing: -0.005em; text-wrap: pretty; transition: color var(--dur-2) var(--curva-estandar); }
/* Explora: término, primera frase y su rama · nivel en una línea */
.term-card p { margin: 0; color: var(--c-texto-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.term-card .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--e-1); margin-top: auto; padding-top: var(--e-2); min-width: 0; }
.term-card .meta .chip { min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; font: 400 var(--t-mini)/1.45 var(--f-texto); color: var(--c-texto-3); white-space: normal; overflow: visible; }
.term-card .meta .chip:not(:last-child)::after { content: "\00a0·"; }
/* ramas y normas */
.areas .card .n { font: 400 var(--t-mini)/1.4 var(--f-texto); color: var(--c-texto-3); }
.areas .card h3 { font-size: 1.0625rem; }
.areas .card .sample { font-size: var(--t-etiqueta); line-height: 1.5; color: var(--c-texto-2); }
/* Término del día */
.today { display: grid; gap: var(--e-4); grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 53.75em) { .today { grid-template-columns: minmax(0, 1fr); } }
.today .big { gap: var(--e-4); padding: clamp(var(--e-5), 3vw, var(--e-6)); box-shadow: inset 0 0 0 1px var(--c-borde), inset 0 3px 0 var(--c-acento); }
.today .big::before { content: "Hoy"; position: absolute; top: clamp(var(--e-5), 3vw, var(--e-6)); right: clamp(var(--e-5), 3vw, var(--e-6)); padding: 3px 10px; border-radius: var(--r-pildora); background: var(--c-acento-contenedor); color: var(--c-sobre-acento-contenedor); font: 600 var(--t-mini)/1.35 var(--f-texto); }
.today .big .mono { padding-right: 56px; font-size: var(--t-mini); }
.today .big h3 { font: 600 clamp(1.75rem, 1.45rem + 1vw, 2.25rem)/1.12 var(--f-titular); letter-spacing: -0.015em; margin: 0; }
@media (hover: hover) and (pointer: fine) { .today a.card.big:hover h3 { color: var(--c-texto); } }
.today .big p { margin: 0; max-width: 46ch; font-size: var(--t-entrada); line-height: 1.55; color: var(--c-texto-2); }
.today .big .chip { align-self: flex-start; min-height: var(--toque); padding: 0 var(--e-5); background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); box-shadow: none; font: 600 .9375rem/1.2 var(--f-texto); }
.today .side { display: flex; flex-direction: column; gap: var(--e-3); }
.today .side .card { flex: 1; display: flex; flex-direction: column; gap: var(--e-3); padding: clamp(var(--e-5), 3vw, var(--e-6)); background: var(--c-superficie-baja); box-shadow: none; }
.today .side .card h2 { margin: 0 !important; font: 600 var(--t-cuerpo)/1.3 var(--f-texto); color: var(--c-texto); letter-spacing: 0; }
.today .side .card:last-child::before { content: ""; width: 40px; height: 40px; flex: none; border-radius: var(--r-m); background: var(--c-superficie-alta); }
.today .side .card:last-child { position: relative; }
.today .side .card:last-child::after { content: ""; position: absolute; top: calc(clamp(var(--e-5), 3vw, var(--e-6)) + 10px); left: calc(clamp(var(--e-5), 3vw, var(--e-6)) + 10px); width: 20px; height: 20px; background: var(--c-texto-2); -webkit-mask: var(--i-nodos) center / contain no-repeat; mask: var(--i-nodos) center / contain no-repeat; }
.today .side .card p { line-height: 1.65 !important; color: var(--c-texto-2) !important; font-size: var(--t-cuerpo) !important; }
.today .side .card p a { color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-underline-offset: .22em; }

/* --------------------------------------------------------------------------
   10. Chips y etiquetas
   -------------------------------------------------------------------------- */
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2); font: 600 var(--t-mini)/1.35 var(--f-texto); text-transform: none; letter-spacing: 0; white-space: nowrap; text-decoration: none; }
a.chip { background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); }
a.chip:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 2px; }
.chip.lvl-basico { background: var(--c-exito-contenedor); color: var(--c-exito); }
.chip.lvl-intermedio { background: var(--c-aviso-contenedor); color: var(--c-aviso); }
.chip.lvl-avanzado { background: var(--c-superficie-alta); color: var(--c-texto-2); }
/* en un artículo, «Vigente» lleva su punto (el estado siempre con su palabra) */
article[data-articulo] .term-head .chip.lvl-basico::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   11. Ficha de un término, de un artículo y de una pregunta
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-1); margin: var(--e-4) 0 var(--e-2); font-size: var(--t-etiqueta); color: var(--c-texto-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--toque); color: var(--c-texto-2); }
.crumbs a:focus-visible { border-radius: var(--r-xs); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--c-texto); text-decoration: underline; text-underline-offset: .22em; } }
.crumbs .sep { color: var(--c-texto-3); }   /* control del 21-11: con --c-borde-fuerte la «/» quedaba en 3,7:1 en claro */
.crumbs > span:last-child { color: var(--c-texto); font-weight: 500; }
.term-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 20rem); justify-content: space-between; gap: var(--e-7); align-items: start; margin-top: var(--e-3); padding-bottom: clamp(var(--e-7), 6vw, var(--e-9)); }
@media (max-width: 65em) { .term-layout { grid-template-columns: minmax(0, 1fr); } }
.term-head { display: grid; gap: var(--e-3); margin-bottom: var(--e-6); }
.term-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); }
.term-head .meta a.chip::after, .term-head .meta a.fechas-texto::after { content: ""; position: absolute; inset: -10px -4px; }
.term-head .meta .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.term-head .meta .fechas-texto { position: relative; font-size: var(--t-mini); color: var(--c-texto-3); text-decoration: underline; text-decoration-color: var(--c-borde-fuerte); text-underline-offset: .25em; }
@media (hover: hover) and (pointer: fine) { .term-head .meta .fechas-texto:hover { color: var(--c-texto); } }
@media (pointer: coarse) { .term-head .meta { row-gap: var(--e-5); } .term-head .meta a.fechas-texto::after { inset: -12px -4px; } }
.term-head h1 { margin-top: var(--e-2); font-size: var(--t-h1); line-height: 1.1; }
.preg .term-head h1 { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); }
.term-head .syn { margin: 0; font: italic 500 var(--t-h3)/1.35 var(--f-titular); color: var(--c-texto-2); }
.term-head .byline, .byline { margin: 0; font-size: var(--t-mini); line-height: 1.55; color: var(--c-texto-3); }
.byline a { color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.term-head .actions, article > .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); margin: var(--e-3) 0 0; }
article > .actions { margin: var(--e-5) 0 0; }
.actions .btn { min-height: var(--toque); padding: 0 var(--e-3); box-shadow: none; font-size: .875rem; }
.actions .btn:first-child { padding: 0 var(--e-4); background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); }
.actions .btn::before { content: none; width: 18px; height: 18px; flex: none; background: currentColor; }
.actions .btn[data-copy]:not(:has(svg))::before { content: ""; --i: var(--i-copiar); }
.actions a.btn[href^="https://wa.me/"]::before { content: ""; --i: var(--i-wa); }
.actions .btn[data-open-suggest]::before { content: ""; --i: var(--i-bandera); }
.def { max-width: 42rem; font-size: var(--t-lectura); line-height: var(--i-lectura); color: var(--c-texto); }
.def p { margin: 0 0 var(--e-4); }
.def a, .def a.al { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--dur-1) var(--curva-estandar); }
@media (hover: hover) and (pointer: fine) { .def a:hover { color: var(--c-enlace); text-decoration-color: currentColor; } }
.block { margin: var(--e-7) 0 0; }
.block h2 { margin: 0 0 var(--e-4); font: 500 1.5rem/1.2 var(--f-titular); letter-spacing: -0.01em; color: var(--c-texto); }
.eco-intro { max-width: 58ch; margin: 0 0 var(--e-4); color: var(--c-texto-2); }
.eco-intro a { color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-underline-offset: .22em; }
.example { margin: 0; padding: var(--e-4) var(--e-5); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--c-superficie-baja); box-shadow: inset 3px 0 0 var(--c-acento); font: italic 500 var(--t-lectura)/1.6 var(--f-titular); color: var(--c-texto); }
.legal { display: inline-flex; align-items: center; gap: var(--e-2); padding: 10px var(--e-4); border-radius: var(--r-m); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); font: 500 var(--t-etiqueta)/1.45 var(--f-texto); color: var(--c-texto); }
.legal svg { width: 18px; height: 18px; flex: none; color: var(--c-acento); }
.fuente { margin: var(--e-3) 0 0; font-size: var(--t-mini); line-height: 1.55; color: var(--c-texto-3); }
.fuente a { color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.base-legal-links { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-3); }
.base-legal-links a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px var(--e-4); border-radius: var(--r-pildora); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); color: var(--c-texto-2); font: 500 var(--t-etiqueta)/1.35 var(--f-texto); }
.base-legal-links a b { font-weight: 600; color: var(--c-texto); }
/* tarjetas enlazadas (términos vinculados, guías del blog, hazlo.pe, términos que citan un artículo) */
.linked { display: grid; gap: var(--e-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.linked a { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: clamp(var(--e-4), 2.2vw, var(--e-5)); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); transition: box-shadow var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
.linked a:focus-visible { outline-offset: 3px; }
.linked a:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .linked a:hover { box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-1); } .linked a:hover b { color: var(--c-enlace); } }
.linked .area-tag { font: 400 var(--t-mini)/1.4 var(--f-texto); color: var(--c-texto-3); }
.linked b { font: 600 1.0625rem/1.3 var(--f-texto); overflow-wrap: anywhere; transition: color var(--dur-2) var(--curva-estandar); }
.linked small { font-size: var(--t-etiqueta); line-height: 1.5; color: var(--c-texto-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* chips de conceptos y de términos */
.tags { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.tags a, .tags button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px var(--e-4); border: 0; border-radius: var(--r-pildora); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); color: var(--c-texto-2); font: 500 var(--t-etiqueta)/1.3 var(--f-texto); text-align: left; cursor: pointer; }
.tags a small, .temas-nav a small { font-size: var(--t-mini); color: var(--c-texto-3); }
.tags .pend { box-shadow: none; outline: 1px dashed var(--c-borde-fuerte); outline-offset: -1px; color: var(--c-texto-3); }
.tags .pend:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 2px; }
.tags a::after, .tags button::after, .base-legal-links a::after, .trail a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
@media (hover: hover) and (pointer: fine) { .tags a:hover::after, .tags button:hover::after, .base-legal-links a:hover::after, .trail a:hover::after { opacity: .08; } }
.tags a:active::after, .tags button:active::after, .base-legal-links a:active::after { opacity: .1; }
.block > p[style] { color: var(--c-texto-3) !important; }
/* anterior / siguiente */
.prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3); margin-top: var(--e-7); }
@media (max-width: 35em) { .prevnext { grid-template-columns: minmax(0, 1fr); } }
.prevnext a { display: flex; flex-direction: column; gap: var(--e-1); padding: clamp(var(--e-4), 2.2vw, var(--e-5)); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); transition: box-shadow var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
.prevnext a:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .prevnext a:hover { box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-1); } .prevnext a:hover b { color: var(--c-enlace); } }
.prevnext a small { font-size: var(--t-mini); color: var(--c-texto-3); }
.prevnext a b { font: 600 1.0625rem/1.3 var(--f-texto); }
.prevnext a.next { text-align: right; align-items: flex-end; }
.prevnext .fin { display: block; align-self: center; text-align: right; font-size: var(--t-etiqueta); color: var(--c-texto-3); padding: var(--e-4); }

/* --------------------------------------------------------------------------
   12. Ficha lateral (un solo panel tonal) y constelación de conceptos
   -------------------------------------------------------------------------- */
.aside { position: sticky; top: calc(var(--alto-barra) + var(--e-4)); display: grid; padding: var(--e-2) var(--e-5); border-radius: var(--r-l); background: var(--c-superficie-baja); }
@media (max-width: 65em) { .aside { position: static; } }
.aside > .card { padding: var(--e-5) 0; border-radius: 0; background: none; box-shadow: none; }
.aside > .card:not([hidden]) ~ .card { border-top: 1px solid var(--c-borde); }
.aside .card h2 { display: flex; align-items: center; gap: var(--e-2); margin: 0 0 var(--e-3) !important; font: 600 var(--t-cuerpo)/1.3 var(--f-texto); letter-spacing: 0; text-transform: none; color: var(--c-texto); }
.aside .card h2 svg { width: 16px; height: 16px; flex: none; color: var(--c-acento); }
.aside .card > p { color: var(--c-texto-2) !important; line-height: 1.6; }
.aside .card > p a { color: var(--c-enlace); font-weight: 600; }
.aside .card > p a[href*="spij"] { font-weight: 400; text-decoration: underline; text-underline-offset: .22em; }
/* «Ver los 56 términos →», «Normas de … →», «Ver el índice →»: enlaces sueltos con área de toque de 44 px */
.aside .card > p > a:only-child:not([href*="spij"]), .aside .card > a, .tabla-casos td > a:only-child, .block > p[style] > a:only-child, p.fuente > a:only-child { display: inline-flex; align-items: center; min-height: var(--toque); }
.aside .card > a { color: var(--c-enlace); font-weight: 600; font-size: var(--t-etiqueta); }
.mini-list { list-style: none; margin: 0 calc(-1 * var(--e-3)); padding: 0; display: grid; }
.mini-list a { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); min-height: var(--toque); padding: 10px var(--e-3); border-radius: var(--r-s); color: var(--c-texto); font-size: var(--t-etiqueta); line-height: 1.4; }
.mini-list a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
.mini-list a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .mini-list a:hover::after { opacity: .06; } }
.mini-list a.cur { background: var(--c-superficie-alta); font-weight: 600; }
.mini-list small { flex: none; font-size: var(--t-mini); color: var(--c-texto-3); }
/* «En el mismo capítulo»: número del artículo y su sumilla en una línea */
[data-art-aside] .mini-list:not(.apilada) a { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: baseline; gap: var(--e-2); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-art-aside] .mini-list:not(.apilada) small { font-size: var(--t-etiqueta); font-weight: 400; color: var(--c-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list.apilada a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-weight: 500; }
.mini-list.apilada small { flex: initial; }
.ruta { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-3); font-size: var(--t-etiqueta); line-height: 1.45; }
.ruta small { display: block; margin-bottom: 2px; font-size: var(--t-mini); color: var(--c-texto-3); }
/* ruta de estudio */
.trail { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.trail a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; min-height: 36px; padding: 4px var(--e-3); border-radius: var(--r-pildora); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto-2); font: 500 var(--t-etiqueta)/1.3 var(--f-texto); }
/* constelación (queda quieta: sin deriva ni brillo) */
.graph { position: relative; }
.graph svg { display: block; width: 100%; height: auto; }
.graph [data-graph-svg] { padding: var(--e-1) 0 var(--e-2); }
.graph .node { cursor: pointer; }
.graph .node, .graph line { transition: opacity var(--dur-2) var(--curva-estandar); }
.graph .node circle { fill: var(--c-superficie); stroke: var(--c-acento); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transition: transform var(--dur-2) var(--curva-estandar), stroke-width var(--dur-2) var(--curva-estandar); }
.graph .node.c circle { fill: var(--c-acento); stroke: var(--c-acento); }
.graph .node.r2 circle { stroke: var(--c-texto-3); stroke-dasharray: 2 2; }
.graph .node text { font: 500 10.5px var(--f-texto); fill: var(--c-texto); pointer-events: none; }
.graph .node.c text { font: 600 11px var(--f-texto); }
.graph .node.r2 text { fill: var(--c-texto-2); font-size: 9.5px; }
.graph line { stroke: var(--c-borde-fuerte); stroke-width: 1; stroke-opacity: .55; }
.graph line.l2 { stroke-dasharray: 3 3; stroke-opacity: .4; }
.graph .orbit { fill: none; stroke: var(--c-borde); stroke-dasharray: 2 5; }
.graph.focus .node:not(.on):not(.c) { opacity: .22; }
.graph.focus line:not(.on) { opacity: .15; }
.graph line.on { stroke: var(--c-primario); stroke-width: 1.6; stroke-opacity: 1; stroke-dasharray: none; }
.graph .node.on circle { stroke: var(--c-primario); stroke-width: 2.2; }
.graph .node.on text { fill: var(--c-primario); font-weight: 600; }
.graph .node:focus-visible { outline: none; }
.graph .node:focus-visible circle { stroke: var(--c-foco); stroke-width: 3; }
@media (hover: hover) and (pointer: fine) { .graph .node:hover circle { transform: scale(1.3); } }
.graph .hint { margin-top: var(--e-1); text-align: center; font-size: var(--t-mini); color: var(--c-texto-3); }
.graph .tip { position: absolute; left: 0; right: 0; bottom: var(--e-3); padding: 10px var(--e-3); border-radius: var(--r-m); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-2); font-size: var(--t-mini); line-height: 1.45; color: var(--c-texto-2); pointer-events: none; }
.graph .tip small { display: block; font-size: var(--t-mini); color: var(--c-texto-3); }
.graph .tip b { display: block; font: 600 var(--t-etiqueta)/1.35 var(--f-texto); color: var(--c-texto); }

/* --------------------------------------------------------------------------
   13. Índices: ramas, normas, A–Z, una rama, búsqueda, 404
   -------------------------------------------------------------------------- */
.page-head { display: grid; gap: var(--e-3); padding: var(--e-6) 0 var(--e-5); }
.page-head h1 { font-size: var(--t-h1); line-height: 1.1; }
.page-head p { max-width: 64ch; margin: 0; color: var(--c-texto-2); }
.page-head .mono a.fechas-link { color: inherit; text-decoration: underline; text-decoration-color: var(--c-borde-fuerte); text-underline-offset: .25em; }
.page-head .fechas-nota { font-size: var(--t-etiqueta); }
.page-head .fechas-nota b { color: var(--c-texto); font-weight: 600; }
.page-head p a { color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-underline-offset: .22em; }
.page-head[style*="text-align:center"] { justify-items: center; }
.page-head[style*="text-align:center"] .mono { font: 600 var(--t-etiqueta)/1 var(--f-texto); color: var(--c-acento); }
.rama-intro { max-width: 62ch; margin: 0; color: var(--c-texto-2); }
.list-title { display: block; margin: var(--e-6) 0 var(--e-3); font: 500 1.375rem/1.25 var(--f-titular); letter-spacing: -0.01em; color: var(--c-texto); }
.letters { position: sticky; top: var(--alto-barra); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--e-3) 0 var(--e-6); padding: var(--e-2) 0; background: var(--c-fondo); }
.letters a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto-2); font: 600 var(--t-etiqueta)/1 var(--f-texto); }
@media (hover: hover) and (pointer: fine) { .letters a:hover { color: var(--c-enlace); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); } }
.letter-group { margin-bottom: var(--e-6); scroll-margin-top: calc(var(--alto-barra) + 120px); }
.letter-group h2 { display: flex; align-items: center; gap: var(--e-4); margin-bottom: var(--e-3); font: 600 2.25rem/1 var(--f-titular); color: var(--c-acento); }
.letter-group h2::after { content: ""; flex: 1; height: 1px; background: var(--c-borde); }
.cols { columns: 3; column-gap: var(--e-6); }
@media (max-width: 53.75em) { .cols { columns: 2; } }
@media (max-width: 35em) { .cols { columns: 1; } }
.cols a { display: block; padding: 6px 0; break-inside: avoid; color: var(--c-texto); font-size: .9375rem; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .cols a:hover { color: var(--c-enlace); text-decoration: underline; text-underline-offset: .22em; } }
.cols a small { margin-left: 6px; font-size: var(--t-mini); color: var(--c-texto-3); }
/* filtro por nivel y selector del diálogo de sugerencias: control segmentado */
.filters { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: 0 0 var(--e-5); }
.filters button { min-height: 40px; padding: 0 var(--e-4); border: 0; border-radius: var(--r-pildora); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); color: var(--c-texto-2); font: 500 var(--t-etiqueta)/1.2 var(--f-texto); transition: background-color var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: var(--c-primario-contenedor); color: var(--c-sobre-primario-contenedor); box-shadow: none; font-weight: 600; }
/* lista de términos de una rama, resultados de búsqueda e índice de preguntas */
.list-item { display: block; padding: var(--e-4) 0; border-bottom: 1px solid var(--c-borde); color: var(--c-texto); }
.list-item h3 { margin-bottom: var(--e-1); font: 600 var(--t-titulo)/1.3 var(--f-texto); transition: color var(--dur-2) var(--curva-estandar); }
@media (hover: hover) and (pointer: fine) { .list-item:hover h3 { color: var(--c-enlace); } }
.list-item:focus-visible { outline-offset: 2px; border-radius: var(--r-xs); }
.list-item p { margin: 0 0 var(--e-2); color: var(--c-texto-2); font-size: .9375rem; }
.list-item .tags .chip, .list-item > .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.list-item .tags .chip[style] { background: var(--c-superficie-alta) !important; color: var(--c-texto-2) !important; font-weight: 500; }
[data-search-page-results] > p.mono { margin-bottom: var(--e-2); }

/* --------------------------------------------------------------------------
   14. Diálogos: búsqueda rápida (⌘K), «Ayuda a mejorar Norma» y registro
   -------------------------------------------------------------------------- */
.palette { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 10vh var(--e-4) var(--e-4); background: color-mix(in srgb, var(--c-banda) 48%, transparent); }
.palette.open { display: flex; }
.palette .box { width: min(720px, 100%); max-height: 100%; overflow: auto; border-radius: var(--r-xl); background: var(--c-superficie); color: var(--c-texto); box-shadow: var(--sombra-2); }
.palette .field { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-2) var(--e-5); border-bottom: 1px solid var(--c-borde); }
.palette .field svg { width: 22px; height: 22px; flex: none; color: var(--c-texto-2); }
.palette input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font: 400 1.0625rem/1.3 var(--f-texto); color: var(--c-texto); }
.palette input::placeholder { color: var(--c-texto-3); opacity: 1; }
.palette input::-webkit-search-cancel-button { -webkit-appearance: none; }
.palette .field:has(input:focus-visible) { box-shadow: inset 0 -2px 0 var(--c-foco); }
.palette .results { position: static; display: block; max-height: 56vh; border-radius: 0; box-shadow: none; }
.palette .foot { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); padding: 10px var(--e-5); border-top: 1px solid var(--c-borde); font-size: var(--t-mini); color: var(--c-texto-3); }
.suggest-box { display: grid; gap: var(--e-4); padding: clamp(var(--e-5), 4vw, var(--e-6)); }
.suggest-box h2 { font-size: 1.5rem; line-height: 1.2; }
.suggest-box p { margin: 0; color: var(--c-texto-2); }
.suggest-box .filters { margin: 0; }
.suggest-box label, .gate-box label { display: grid; gap: 6px; font: 500 .9375rem/1.3 var(--f-texto); color: var(--c-texto); }
.suggest-box label em, .gate-box label em { font-style: normal; font-weight: 400; color: var(--c-texto-3); }
.suggest-box input, .suggest-box textarea, .gate-box input[type="text"], .gate-box input[type="email"] {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--c-borde-fuerte); border-radius: var(--r-s);
  background: var(--c-superficie); color: var(--c-texto); font: 400 1rem/1.4 var(--f-texto); outline: 0; resize: vertical;
  transition: border-color var(--dur-2) var(--curva-estandar), box-shadow var(--dur-2) var(--curva-estandar);
}
.suggest-box input::placeholder, .suggest-box textarea::placeholder, .gate-box input::placeholder { color: var(--c-texto-3); opacity: 1; }
/* foco de los campos: borde de 2 px en el color de foco (control del piloto, 21-11) */
.suggest-box input:focus-visible, .suggest-box textarea:focus-visible, .gate-box input[type="text"]:focus-visible, .gate-box input[type="email"]:focus-visible { border-color: var(--c-foco); box-shadow: 0 0 0 1px var(--c-foco), 0 0 0 4px color-mix(in srgb, var(--c-foco) 22%, transparent); }
@media (pointer: coarse) { .suggest-box input, .suggest-box textarea, .gate-box input { font-size: 1.0625rem; } }
.suggest-box > div:last-child .btn:not(.gold) { box-shadow: none; }
.suggest-box .err, .gate-box .err { margin: 0; color: var(--c-error); font-size: var(--t-etiqueta); }
.gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--e-4); background: color-mix(in srgb, var(--c-banda) 55%, transparent); }
.gate-box { display: grid; gap: var(--e-3); width: min(460px, 100%); max-height: 100%; overflow: auto; padding: clamp(var(--e-5), 4vw, var(--e-6)); border-radius: var(--r-xl); background: var(--c-superficie); color: var(--c-texto); box-shadow: var(--sombra-2); }
.gate-box .mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--e-1); border-radius: var(--r-m); background: var(--c-banda); color: var(--c-acento-banda); }
.gate-box .mark svg { width: 26px; height: 26px; }
.gate-box .mono { font-weight: 600; color: var(--c-acento) !important; }
.gate-box h2 { font-size: 1.75rem; }
.gate-box p { margin: 0; color: var(--c-texto-2); }
.gate-box label.check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--e-3); font-weight: 400; color: var(--c-texto-2); }
.gate-box label.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-primario); }
.gate-box label.check a { color: var(--c-enlace); text-decoration: underline; text-underline-offset: .22em; }
.gate-box .btn { width: 100%; margin-top: var(--e-1); }
.gate-box small { text-align: center; font-size: var(--t-mini); color: var(--c-texto-3); }
body.gated { overflow: hidden; }
/* barra de términos gratis */
.free-slot { min-height: 57px; }
html.registrado .free-slot { display: none; }
.free-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--e-2) var(--e-4); padding: var(--e-2) var(--e-4); background: var(--c-superficie-alta); color: var(--c-texto); font-size: var(--t-etiqueta); border-bottom: 1px solid var(--c-borde); }
.free-bar b { font-weight: 700; }
.free-bar button { min-height: 40px; padding: 0 var(--e-4); border: 0; border-radius: var(--r-pildora); background: var(--c-superficie); color: var(--c-primario); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); font: 600 var(--t-etiqueta)/1.2 var(--f-texto); transition: transform var(--dur-presion) var(--curva-estandar); }
.free-bar button:active { transform: scale(.97); }
@media (max-width: 35em) { .free-slot { min-height: 101px; } .free-bar { text-align: center; } }

/* --------------------------------------------------------------------------
   15. Pie · el proyecto a la izquierda y «Más de Paul Arroyo» en tarjetas
   -------------------------------------------------------------------------- */
.foot-site { margin-top: var(--e-8); padding: clamp(var(--e-7), 6vw, 72px) 0 var(--e-5); border-top: 1px solid var(--c-borde); background: var(--c-superficie-baja); color: var(--c-texto-2); font-size: var(--t-etiqueta); line-height: 1.6; }
.foot-site .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--e-7); align-items: start; }
@media (max-width: 56.25em) { .foot-site .shell { grid-template-columns: minmax(0, 1fr); gap: var(--e-6); } }
.foot-about { position: relative; max-width: 52ch; }
/* el isotipo de Norma encima del texto: una caja de tinta con la «N» de nodos en oro (dos capas, sin texto nuevo) */
.foot-about::before { content: ""; display: block; width: 36px; height: 36px; margin-bottom: var(--e-4); border-radius: 10px; background: var(--c-banda); }
:root[data-theme="dark"] .foot-about::before { box-shadow: inset 0 0 0 1px var(--c-borde); }
.foot-about::after { content: ""; position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; background: var(--c-acento-banda); --i: var(--i-norma); }
.foot-about b { font: 600 var(--t-etiqueta)/1.6 var(--f-texto); color: var(--c-texto); }
.foot-about a { color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-underline-offset: .22em; }
.foot-about .mono { display: block; margin-top: var(--e-3); font: 400 var(--t-etiqueta)/1.6 var(--f-texto); color: var(--c-texto-2); }
.foot-about .mono time { color: inherit; }
.foot-eco { display: grid; gap: var(--e-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-content: start; }
.foot-eco h2 { grid-column: 1 / -1; margin: 0 0 var(--e-1); font: 600 var(--t-cuerpo)/1.3 var(--f-texto) !important; letter-spacing: 0; text-transform: none; color: var(--c-texto) !important; }
.foot-eco a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: var(--e-3); min-height: 64px; padding: var(--e-3); border-radius: var(--r-m); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); transition: box-shadow var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
.foot-eco a:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .foot-eco a:hover { box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-1); } }
.foot-eco a b { grid-column: 2; display: block; font: 600 .9375rem/1.3 var(--f-texto); color: var(--c-texto); }
.foot-eco a span { grid-column: 2; display: block; font-size: var(--t-mini); line-height: 1.4; color: var(--c-texto-2); }
/* logo o icono de cada tarjeta, según a dónde lleva: ::before es la caja (o el logo) y ::after el icono de máscara */
.foot-eco a::before { content: ""; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 10px; background: var(--c-superficie-alta); }
.foot-eco a::after { content: ""; position: absolute; left: calc(var(--e-3) + 7px); top: calc(50% - 9px); width: 18px; height: 18px; background: var(--c-texto-2); --i: var(--i-enlace); }
.foot-eco a[href$="/blog"]::after { --i: var(--i-pluma); }
.foot-eco a[href$="/herramientas"]::after { --i: var(--i-calculadora); }
.foot-eco a[href*="/contacto"]::after { --i: var(--i-maletin); }
/* los que tienen logo propio: la imagen en la caja, con un borde fino que la separa de la hoja (también en oscuro) */
.foot-eco a[href*="arroyoabogados.pe"]::before, .foot-eco a[href*="legaria.com.pe"]::before, .foot-eco a[href*="legaldemy.pe"]::before { background: center / cover no-repeat; box-shadow: 0 0 0 1px var(--c-borde); }
.foot-eco a[href*="arroyoabogados.pe"]::before { background-image: url(arroyo-abogados-sello-claro.svg); border-radius: var(--r-s); }
.foot-eco a[href*="legaria.com.pe"]::before { background-image: url(legaria-logo.webp); }
.foot-eco a[href*="legaldemy.pe"]::before { background-image: url(legaldemy-isotipo.svg); }
.foot-eco a[href*="arroyoabogados.pe"]::after, .foot-eco a[href*="legaria.com.pe"]::after, .foot-eco a[href*="legaldemy.pe"]::after { content: none; }
.foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-5); margin-top: var(--e-2); padding-top: var(--e-3); border-top: 1px solid var(--c-borde); font-size: 0; line-height: 0; }
.foot-links a, .foot-links .linkbtn { display: inline-flex; align-items: center; min-height: var(--toque); font: 500 var(--t-etiqueta)/1.2 var(--f-texto); color: var(--c-texto-2); text-decoration: none; }
.foot-links a:focus-visible, .foot-links .linkbtn:focus-visible { border-radius: var(--r-xs); }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover, .foot-links .linkbtn:hover { color: var(--c-texto); text-decoration: underline; text-underline-offset: .22em; } }

/* --------------------------------------------------------------------------
   16. Normas: índice de una norma, texto del artículo, notas y lectura continua
   -------------------------------------------------------------------------- */
.est { display: flex; align-items: center; gap: var(--e-3); margin: var(--e-6) 0 var(--e-2); }
.est::after { content: ""; flex: 1; height: 1px; background: var(--c-borde); }
.est.libro { margin-top: var(--e-7); font: 600 1.625rem/1.2 var(--f-titular); }
.est.seccion { font: 500 1.25rem/1.25 var(--f-titular); }
.est.titulo, .est.capitulo, .est.subcapitulo { font: 600 var(--t-etiqueta)/1.4 var(--f-texto); letter-spacing: 0; color: var(--c-texto-2); }
.art-list { display: grid; gap: 2px var(--e-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.art-list a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; gap: var(--e-2); min-height: var(--toque); padding: 10px var(--e-3); border-radius: var(--r-s); color: var(--c-texto); font-size: var(--t-etiqueta); line-height: 1.45; }
.art-list a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--dur-1) var(--curva-estandar); }
.art-list a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .art-list a:hover::after { opacity: .06; } }
.art-list a b { font-weight: 600; font-variant-numeric: tabular-nums; }
.art-list a span { color: var(--c-texto-2); }
.art-list a.der b, .art-list a.der span { color: var(--c-texto-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--c-error) 55%, transparent); }
.art-list a[hidden] { display: none; }
.art-text { margin-top: calc(-1 * var(--e-3)); }
.art-text p.inc { padding-left: 22px; }
.art-text.derogado p { color: var(--c-texto-2); }
.art-text .inc-derogado { color: var(--c-texto-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--c-error) 55%, transparent); text-decoration-thickness: 1px; }
.nota-inc { display: inline-block; margin-left: var(--e-2); padding: 1px 8px; border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2); font-size: .75rem; line-height: 1.5; vertical-align: 1px; text-decoration: none; white-space: normal; }
.inc-derogado .nota-inc { text-decoration: none; }
.nota-inc b { font-weight: 600; }
.nota-inc.derogado { background: var(--c-error-contenedor); color: var(--c-error); }
.nota-inc.modificado { background: var(--c-aviso-contenedor); color: var(--c-aviso); }
.nota-inc.incorporado { background: var(--c-exito-contenedor); color: var(--c-exito); }
.aviso-norma { margin: var(--e-1) 0 var(--e-5); padding: var(--e-3) var(--e-4) var(--e-3) var(--e-5); border-radius: var(--r-m); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-texto-3); }
.aviso-norma strong { display: block; margin-bottom: 2px; font-weight: 600; }
.aviso-norma p { margin: 0; font-size: var(--t-etiqueta); color: var(--c-texto-2); }
.aviso-norma a { color: var(--c-enlace); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.aviso-norma.derogado { box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-error); }
.aviso-norma.derogado strong { color: var(--c-error); }
.aviso-norma.modificado { box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-aviso); }
.aviso-norma.modificado strong { color: var(--c-aviso); }
.aviso-norma.incorporado { box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-exito); }
.aviso-norma.diferida { box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-acento); }
.term-head .aviso-norma { margin: 0; }
/* Historial y notas: un desplegable con el «+» al costado */
.hist { border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); }
.hist summary { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); min-height: 56px; padding: var(--e-3) var(--e-5); font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r-l); }
.hist summary::-webkit-details-marker { display: none; }
.hist summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c-superficie-alta); color: var(--c-texto-2); font: 500 1.125rem/1 var(--f-texto); transition: transform var(--dur-2) var(--curva-estandar); }
.hist[open] summary::after { transform: rotate(45deg); }
.hist summary:focus-visible { outline-offset: -2px; }
.hist > :not(summary) { margin-inline: var(--e-5); }
.hist > :last-child { margin-bottom: var(--e-5); }
.notas { margin: 0; padding-left: 18px; font-size: var(--t-etiqueta); line-height: 1.65; color: var(--c-texto-2); }
.notas li { margin-bottom: 6px; }
.version { margin-top: var(--e-4); padding: var(--e-3) var(--e-4); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--c-superficie-baja); box-shadow: inset 3px 0 0 var(--c-borde-fuerte); font-size: .9375rem; color: var(--c-texto-2); }
.version .mono { display: block; margin-bottom: 6px; font-weight: 600; color: var(--c-texto-2); }
.version p { margin: 0 0 var(--e-2); }
/* lectura continua: al llegar al final se carga el artículo siguiente */
.art-stream article + article { position: relative; margin-top: var(--e-8); padding-top: var(--e-7); border-top: 1px solid var(--c-borde); }
.art-stream article + article::before { content: "continúa"; text-transform: capitalize; position: absolute; top: -.75em; left: 0; padding-right: var(--e-3); background: var(--c-fondo); font-size: var(--t-etiqueta); line-height: 1.5; color: var(--c-texto-3); }
.art-stream.streaming .prevnext .next { display: none; }
.art-sentinel { height: 1px; }
.art-loading { padding: var(--e-5) 0; text-align: center; font-size: var(--t-etiqueta); color: var(--c-texto-3); }
.art-loading::first-letter { text-transform: uppercase; }
.art-more { margin: var(--e-3) 0 var(--e-6); }
.art-stream:not(.streaming) .art-more { display: none; }

/* --------------------------------------------------------------------------
   17. Herramientas gratuitas (con su logo), hazlo.pe y preguntas
   -------------------------------------------------------------------------- */
.herr-list { display: grid; gap: var(--e-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.herr-block .herr-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.herr-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: center; gap: var(--e-3); min-width: 0; padding: clamp(var(--e-4), 2.2vw, var(--e-5)); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); text-decoration: none; transition: box-shadow var(--dur-2) var(--curva-estandar), transform var(--dur-presion) var(--curva-estandar); }
.herr-block .herr-card:not(.aa-card) { box-shadow: inset 0 0 0 1px var(--c-borde), inset 0 3px 0 var(--c-acento); }
.herr-card .herr-logo { display: block; width: 48px; height: 48px; border-radius: var(--r-m); }
.herr-card .herr-tag { font: 400 var(--t-mini)/1.4 var(--f-texto); letter-spacing: 0; text-transform: none; color: var(--c-texto-3); }
.herr-card > .herr-tag:first-child { grid-column: 1 / -1; }
.herr-card b { grid-column: 1 / -1; align-self: start; font: 600 var(--t-titulo)/1.3 var(--f-texto); overflow-wrap: anywhere; transition: color var(--dur-2) var(--curva-estandar); }
.herr-card small { grid-column: 1 / -1; align-self: start; font-size: .9375rem; line-height: 1.6; color: var(--c-texto-2); }
.herr-card .herr-cta { grid-column: 1 / -1; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding-top: var(--e-1); font: 600 .9375rem/1.2 var(--f-texto); color: var(--c-enlace); }
.herr-card .herr-cta svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--curva-estandar); }
a.herr-card:focus-visible { outline: 2px solid var(--c-foco); outline-offset: 3px; }
a.herr-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  a.herr-card:hover { box-shadow: inset 0 0 0 1px var(--c-borde), var(--sombra-1); }
  .herr-block a.herr-card:hover { box-shadow: inset 0 0 0 1px var(--c-borde), inset 0 3px 0 var(--c-acento), var(--sombra-1); }
  a.herr-card:hover b { color: var(--c-enlace); }
  a.herr-card:hover .herr-cta svg { transform: translateX(3px); }
}
.code-index + .herr-block, .page-head + .herr-block { margin-top: var(--e-2); }
/* preguntas frecuentes: filas con el «?» y la flecha */
.preg-list { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); overflow: hidden; }
.preg-list li + li { border-top: 1px solid var(--c-borde); }
.preg-list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: center; gap: var(--e-4); min-height: 56px; padding: var(--e-3) var(--e-4); color: var(--c-texto); font: 500 1rem/1.4 var(--f-texto); }
.preg-list a::before { content: ""; width: 32px; height: 32px; border-radius: var(--r-s); background: var(--c-texto-2); --i: var(--i-pregunta); -webkit-mask-size: 18px; mask-size: 18px; }
.preg-list a::after { content: ""; width: 20px; height: 20px; background: var(--c-texto-3); --i: var(--i-der); }
.preg-list a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .preg-list a:hover { background: color-mix(in srgb, var(--c-texto) 6%, transparent); } }
.preg-list a:active { background: color-mix(in srgb, var(--c-texto) 10%, transparent); }
/* en la portada, dos columnas de filas sueltas */
.preg-cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--e-2) var(--e-4); background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.preg-cols li { border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); overflow: hidden; }
.preg-cols li + li { border-top: 0; }
/* la caja tonal del «?» va detrás de la máscara */
.preg-list li { position: relative; }
.preg-list li::before { content: ""; position: absolute; left: var(--e-4); top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: var(--r-s); background: var(--c-superficie-alta); pointer-events: none; }
.preg-list a::before { position: relative; z-index: 1; }
/* página de una pregunta */
.respuesta { margin: 0 0 var(--e-6); padding: var(--e-5); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde), inset 3px 0 0 var(--c-acento); }
.respuesta > .mono { display: block; margin-bottom: var(--e-2); font: 600 var(--t-etiqueta)/1.4 var(--f-texto); color: var(--c-acento); }
.respuesta > p { margin: 0; font-size: var(--t-lectura); line-height: 1.65; }
.respuesta-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-3) var(--e-4); margin-top: var(--e-4); padding-top: var(--e-4); border-top: 1px solid var(--c-borde); font-size: .9375rem; color: var(--c-texto-2); }
.respuesta-cta b { color: var(--c-texto); font-weight: 600; }
@media (max-width: 35em) { .respuesta { padding: var(--e-4); } .respuesta-cta .btn { width: 100%; } }
.tabla-casos { overflow-x: auto; border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); }
.tabla-casos table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.tabla-casos th { padding: var(--e-3) var(--e-4); text-align: left; font: 600 var(--t-mini)/1.4 var(--f-texto); color: var(--c-texto-2); background: var(--c-superficie-baja); border-bottom: 1px solid var(--c-borde); }
.tabla-casos th:first-child { border-top-left-radius: var(--r-l); }
.tabla-casos th:last-child { border-top-right-radius: var(--r-l); }
.tabla-casos td { padding: var(--e-3) var(--e-4); vertical-align: top; border-bottom: 1px solid var(--c-borde); }
.tabla-casos tr:last-child td { border-bottom: 0; }
.tabla-casos td:nth-child(2) b { font-weight: 600; }
.tabla-casos td:nth-child(3) { font-size: var(--t-etiqueta); color: var(--c-texto-2); }
.tabla-casos td a, .citas a { color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 60%, transparent); text-underline-offset: .22em; }
@media (max-width: 40em) {
  .tabla-casos { overflow: visible; background: none; box-shadow: none; }
  .tabla-casos thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabla-casos tr { display: block; margin-bottom: var(--e-2); padding: 6px 0; border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); }
  .tabla-casos td { display: block; padding: 6px var(--e-4); border: 0; }
  .tabla-casos td::before { content: attr(data-th); display: block; margin-bottom: 2px; font: 600 var(--t-mini)/1.4 var(--f-texto); color: var(--c-texto-3); }
}
.citas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-2); }
.citas li { padding: 10px var(--e-4); border-radius: var(--r-m); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); font-size: var(--t-etiqueta); line-height: 1.5; overflow-wrap: anywhere; }
.citas li:has(> a:only-child) { padding: 0; }
.citas li > a:only-child { display: flex; align-items: center; min-height: var(--toque); padding: 10px var(--e-4); }
.cita-arts { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.cita-arts a { position: relative; padding: 0 8px; border-radius: var(--r-pildora); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); font-size: .75rem; text-decoration: none; }
.cita-arts a::after { content: ""; position: absolute; inset: -10px -2px; }
.consultas { margin: var(--e-6) 0 0; font-size: var(--t-etiqueta); line-height: 1.6; color: var(--c-texto-2); }
.consultas .mono { display: block; margin-bottom: 4px; font-weight: 600; }
.aviso-orientacion { margin: var(--e-6) 0 0; padding-top: var(--e-4); border-top: 1px solid var(--c-borde); font-size: var(--t-etiqueta); line-height: 1.55; color: var(--c-texto-2); }
.fuentes { margin: 0; padding-left: 18px; font-size: var(--t-etiqueta); color: var(--c-texto-2); }
.fuentes li { margin-bottom: 4px; overflow-wrap: anywhere; }
.fuentes a { color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.temas-nav { margin: var(--e-1) 0 var(--e-6); }
.preg-grupo { margin-bottom: var(--e-6); scroll-margin-top: calc(var(--alto-barra) + var(--e-5)); }
.mini-list.apilada a small { color: var(--c-texto-3); }

/* --------------------------------------------------------------------------
   18. Arroyo Abogados · la tarjeta del estudio con su piel (única excepción a los tokens)
   Es una tarjeta de esta página (radio, relleno, tipografía y botón en píldora de 44 px) y solo
   cambia la piel: degradado azul medianoche, texto marfil, filete de oro a la izquierda, oro en un
   único botón y el símbolo en oro como marca de agua muy tenue. Colores del kit del estudio
   (src/estudio.css). Contraste sobre el azul más claro del degradado (#1d3157): marfil 11,5:1 ·
   secundario 6,8:1 · oro 5,0:1 · tinta sobre oro 7,0:1. Iguales en claro y en oscuro.
   -------------------------------------------------------------------------- */
.aa-block .herr-list { grid-template-columns: minmax(0, 1fr); }
.herr-card.aa-card {
  --aa-azul-luz: #1d3157; --aa-azul: #13233f; --aa-azul-hondo: #0a1426;
  --aa-marfil: #f6f1e7; --aa-tenue: #b4bdd0; --aa-oro: #c79a45; --aa-tinta: #14161b;
  --aa-borde: color-mix(in srgb, var(--aa-oro) 38%, transparent);
  isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: var(--e-3);
  color: var(--aa-marfil);
  background: radial-gradient(120% 90% at 85% 0%, var(--aa-azul-luz) 0%, var(--aa-azul) 45%, var(--aa-azul-hondo) 100%);
  box-shadow: inset 3px 0 0 var(--aa-oro), inset 0 0 0 1px var(--aa-borde);
}
:root[data-theme="dark"] .herr-card.aa-card { --aa-borde: color-mix(in srgb, var(--aa-oro) 60%, transparent); }
.herr-card.aa-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .08; background: url(arroyo-abogados-simbolo-oro.svg) no-repeat right -46px bottom -54px / 190px 190px; }
.aa-card .aa-marca { display: flex; align-items: center; gap: var(--e-3); min-width: 0; margin-bottom: var(--e-1); }
.aa-card .aa-marca img { display: block; width: 42px; height: 42px; flex: none; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--aa-oro); }
.aa-card .herr-tag { color: var(--aa-marfil); font-weight: 600; letter-spacing: .01em; }
.aa-card b { font: 600 var(--t-titulo)/1.3 var(--f-texto); color: var(--aa-marfil); }
.aa-card small { font-size: .9375rem; color: var(--aa-tenue); }
.aa-card .aa-nombre { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.aa-card .aa-nombre::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.aa-card .aa-nombre:focus-visible { outline: 2px solid var(--aa-oro); outline-offset: 3px; border-radius: 2px; }
@supports selector(:has(*)) {
  .aa-card .aa-nombre:focus-visible { outline: none; }
  .herr-card.aa-card:has(.aa-nombre:focus-visible) { outline: 2px solid var(--c-foco); outline-offset: 3px; }
}
.herr-card.aa-card:has(.aa-nombre:active) { transform: scale(.985); }
.aa-card .aa-pie { display: flex; margin-top: auto; padding-top: var(--e-2); }
.aa-card .aa-boton { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: var(--toque); padding: 0 var(--e-5); border-radius: var(--r-pildora); background: var(--aa-oro); color: var(--aa-tinta); font: 600 .9375rem/1.2 var(--f-texto); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-presion) var(--curva-estandar); }
.aa-card span.aa-boton { z-index: 0; }
.aa-card .aa-boton svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--curva-estandar); }
.aa-card a.aa-boton:focus-visible { outline: 2px solid var(--aa-marfil); outline-offset: 3px; }
.aa-card a.aa-boton:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .herr-card.aa-card:hover { box-shadow: inset 3px 0 0 var(--aa-oro), inset 0 0 0 1px var(--aa-oro), var(--sombra-1); }
  .aa-card a.aa-boton:hover svg, .herr-card.aa-card:hover .aa-boton svg { transform: translateX(3px); }
}
@media (max-width: 35em) { .aa-card .aa-boton { width: 100%; } }
/* enlace discreto a la página de Paul, bajo la tarjeta y dentro del mismo bloque (no es una segunda tarjeta) */
.aa-block .aa-paul { margin: var(--e-3) 0 0; font-size: var(--t-etiqueta); line-height: 1.6; color: var(--c-texto-2); }
.aa-block .aa-paul a { padding-block: 14px; color: var(--c-enlace); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-acento) 70%, transparent); text-underline-offset: .22em; }
.aa-block .aa-paul a:focus-visible { border-radius: var(--r-xs); }

/* --------------------------------------------------------------------------
   19. Legaldemy · «¿Quieres aprender más?», en tarjeta neutra (como la maqueta), con su logo
   -------------------------------------------------------------------------- */
.ld-card { display: grid; gap: var(--e-4); margin: var(--e-7) 0 0; padding: clamp(var(--e-4), 2.2vw, var(--e-5)); border-radius: var(--r-l); background: var(--c-superficie); box-shadow: inset 0 0 0 1px var(--c-borde); color: var(--c-texto); }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); }
.ld-logo { display: block; height: 26px; width: auto; }
.ld-logo-oscuro { display: none; }
:root[data-theme="dark"] .ld-logo-claro { display: none; }
:root[data-theme="dark"] .ld-logo-oscuro { display: block; }
.ld-kicker { font-size: var(--t-mini); color: var(--c-texto-3); }
.ld-title { margin: 0; font: 600 var(--t-h3)/1.3 var(--f-texto); color: var(--c-texto); }
.ld-intro { margin: 0; max-width: 60ch; color: var(--c-texto-2); }
.ld-intro mark { background: none; color: inherit; padding: 0; }
.ld-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--c-borde); overflow: hidden; }
.ld-list li + li { border-top: 1px solid var(--c-borde); }
.ld-list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "ico tit tag" "ico det tag"; align-items: center; column-gap: var(--e-4); row-gap: 2px; min-height: 64px; padding: var(--e-3) var(--e-4); color: var(--c-texto); }
.ld-list a::before { content: ""; grid-area: ico; width: 32px; height: 32px; background: var(--c-texto-2); --i: var(--i-documento); -webkit-mask-size: 18px; mask-size: 18px; position: relative; z-index: 1; }
.ld-list li { position: relative; }
.ld-list li::before { content: ""; position: absolute; left: var(--e-4); top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: var(--r-s); background: var(--c-superficie-alta); pointer-events: none; }
.ld-list a[href*="/cursos"]::before { --i: var(--i-birrete); }
.ld-list a[href*="/blog"]::before { --i: var(--i-libro); }
.ld-list a:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .ld-list a:hover { background: color-mix(in srgb, var(--c-texto) 6%, transparent); } }
.ld-list .ld-tag { grid-area: tag; padding: 3px 10px; border-radius: var(--r-pildora); background: var(--c-superficie-alta); color: var(--c-texto-2); font: 600 var(--t-mini)/1.35 var(--f-texto); white-space: nowrap; }
.ld-list .ld-tag-pago { background: transparent; box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); }
.ld-list b { grid-area: tit; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ld-list small { grid-area: det; font-size: var(--t-etiqueta); line-height: 1.45; color: var(--c-texto-2); }
@media (max-width: 32.5em) { .ld-list a { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "ico tit" "ico det" "ico tag"; } .ld-list .ld-tag { justify-self: start; margin-top: 4px; } }
.ld-kit { margin: 0; font-size: var(--t-etiqueta); color: var(--c-texto-2); }
.ld-kit a { color: var(--c-enlace); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.ld-btn { position: relative; isolation: isolate; overflow: hidden; justify-self: start; display: inline-flex; align-items: center; gap: var(--e-2); min-height: var(--toque); padding: 0 var(--e-5); border-radius: var(--r-pildora); box-shadow: inset 0 0 0 1px var(--c-borde-fuerte); color: var(--c-primario); font: 600 .9375rem/1.2 var(--f-texto); transition: transform var(--dur-presion) var(--curva-estandar); }
.ld-btn::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; --i: var(--i-externo); }
.ld-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .ld-btn:hover { background: color-mix(in srgb, var(--c-primario) 8%, transparent); } }
@media (max-width: 35em) { .ld-btn { justify-self: stretch; justify-content: center; } }

/* --------------------------------------------------------------------------
   20. Celular: objetivos táctiles de 44 px
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 47.5em) {
  .nav a, .hero .hints a, .tags a, .tags button, .base-legal-links a, .trail a, .filters button, .free-bar button, .nav a.nav-asesoria, .search-trigger.btn { min-height: var(--toque); }
  .letters a { width: var(--toque); height: var(--toque); }
  .cols a { padding: 12px 0; }
  .art-list a { padding-block: 12px; }
}
/* --------------------------------------------------------------------------
   21. Movimiento reducido: solo color y opacidad
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: color, background-color, opacity, box-shadow !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:active, a.card:active, .linked a:active, .prevnext a:active, a.herr-card:active, .modos button:active, .filters button:active, .foot-eco a:active, .ld-btn:active, .aa-card a.aa-boton:active, .herr-card.aa-card:has(.aa-nombre:active) { transform: none; }
  a.herr-card:hover .herr-cta svg, .herr-card.aa-card:hover .aa-boton svg { transform: none !important; }
  ::view-transition-old(root) { animation: vt-sale .12s ease both !important; }
  ::view-transition-new(root) { animation: vt-funde .18s ease both !important; }
}

/* --------------------------------------------------------------------------
   22. Impresión
   -------------------------------------------------------------------------- */
@media print {
  .top, .foot-site, .aside, .actions, .free-bar, .free-slot, .ld-card, .aa-block, .herr-block, .palette, .gate, .art-more, .saltar { display: none !important; }
  body { background: none; }
  .term-layout { display: block; }
}
