/* ==========================================================================
   Tekmia — Repositorio técnico de manuales de minería
   Hoja de estilos única. Tokens = Design System (brief UX, nov 2026)
   Lenguaje visual = maqueta ganadora 06 «Turno de Noche»
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --brand-navy: #1A2A44;
  --brand-orange: #FF4F00;          /* acento: líneas, números, foco de marca */
  --orange-cta: #D93C00;            /* fondo de botón con texto blanco (AA 4.6:1) */
  --orange-cta-hover: #C23A00;      /* Naranja 700 */
  --orange-text: #C23A00;           /* naranja como texto sobre fondo claro */
  --orange-soft: rgba(255, 79, 0, .14);

  /* Noche (superficies oscuras de la maqueta 06) */
  --night-950: #0B1420;
  --night-900: #0D1826;
  --night-850: #0F1E2E;
  --night-800: #132135;
  --night-700: #1A2A44;
  --night-600: #24375A;
  --night-line: rgba(255, 255, 255, .12);
  --night-line-strong: rgba(255, 255, 255, .22);
  --on-night: #F5F7FA;
  --on-night-2: #C5CDD8;
  --on-night-3: #93A0B2;

  /* Papel (superficies claras) */
  --paper: #F4F1ED;
  --paper-2: #EBE7E1;
  --white: #FFFFFF;

  /* Azul acero / enlace técnico */
  --steel-900: #0F2A44;
  --steel-800: #173A5C;
  --steel-50: #EEF3F8;
  --link-700: #155A94;
  --link-600: #1F6FB2;
  --link-100: #D6E6F5;
  --link-50: #EBF3FA;

  /* Grafito */
  --g-900: #1C1F22;
  --g-700: #3A3F44;
  --g-500: #6B7178;
  --g-300: #B4BAC0;
  --g-200: #D6DADE;
  --g-100: #EDEFF1;

  /* Cobre (tipo de manual) */
  --copper-700: #8A5420;
  --copper-600: #B87333;
  --copper-100: #F2E2D0;
  --copper-50: #FAF3EC;

  /* Semánticos */
  --ok-700: #1E5C42;  --ok-600: #2E7D5B;  --ok-100: #D9EDE3;  --ok-50: #EFF8F3;
  --warn-700: #8F5500; --warn-600: #C77700; --warn-100: #FCEBD2; --warn-50: #FEF7EC;
  --err-700: #8C1D17; --err-600: #B3261E; --err-100: #F5D9D7; --err-50: #FDF0EF;
  --info-700: #155A94; --info-600: #1F6FB2; --info-100: #D6E6F5; --info-50: #EBF3FA;

  /* Tipografía */
  --f-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Espaciado (escala DS) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --s-11: 96px; --s-12: 128px;

  /* Radios */
  --r-1: 2px; --r-2: 4px; --r-3: 6px; --r-4: 8px; --r-5: 12px; --r-6: 20px; --r-7: 32px; --r-full: 999px;

  /* Elevación */
  --e-sm: 0 1px 2px rgba(15,42,68,.08), 0 1px 1px rgba(15,42,68,.04);
  --e-md: 0 2px 4px rgba(15,42,68,.08), 0 4px 8px rgba(15,42,68,.06);
  --e-lg: 0 4px 8px rgba(15,42,68,.08), 0 8px 16px rgba(15,42,68,.08);
  --e-xl: 0 8px 16px rgba(15,42,68,.10), 0 16px 32px rgba(15,42,68,.10);
  --e-night: 0 24px 60px rgba(0,0,0,.45);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
  --focus: #155A94;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--g-900);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link-700); text-underline-offset: 3px; }
a:hover { color: var(--link-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--g-200); margin: var(--s-6) 0; }
::selection { background: var(--brand-orange); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-night, .night, .site-header, .site-footer { --focus: #FF7A3D; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--white); color: var(--g-900); padding: 12px 16px; border-radius: var(--r-4); font-weight: 600; box-shadow: var(--e-lg); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.stack > * + * { margin-top: var(--s-4); }
.mono, code, .code { font-family: var(--f-mono); letter-spacing: .02em; }
.muted { color: var(--g-500); }
.night .muted { color: var(--on-night-3); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }
.i--xl { width: 40px; height: 40px; stroke-width: 1.5; }

/* ---------- 3. Superficies ---------- */
.night { background: var(--night-800); color: var(--on-night); }
.night--deep { background: var(--night-850); }
.night--black { background: var(--night-900); }
.paper { background: var(--paper); color: var(--g-900); }
.white { background: var(--white); }
.night a:not(.btn) { color: var(--on-night); }

/* Retícula técnica 4–6 % — solo zonas no textuales */
.grid-motif { position: relative; isolation: isolate; }
.grid-motif::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
}

/* ---------- 4. Tipografía utilitaria ---------- */
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.01em; }
.h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.15; }
.h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.12; }
.h3 { font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem); line-height: 1.35; font-weight: 500; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--g-700); max-width: 62ch; }
.night .lead { color: var(--on-night-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); font-weight: 500; }
.night .eyebrow { color: var(--brand-orange); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.small { font-size: .875rem; line-height: 1.43; }
.caption { font-size: .75rem; line-height: 1.33; font-weight: 500; letter-spacing: .01em; }
.num-orange { font-family: var(--f-mono); color: var(--brand-orange); font-weight: 500; letter-spacing: .02em; }
.paper .num-orange, .white .num-orange { color: var(--orange-text); }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--orange-cta); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-4); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { --btn-bg: var(--orange-cta-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--steel-900); --btn-bd: var(--g-300); }
.btn--secondary:hover { --btn-bg: var(--white); --btn-bd: var(--steel-900); }
.night .btn--secondary, .btn--secondary.on-night { --btn-fg: var(--on-night); --btn-bd: var(--night-line-strong); }
.night .btn--secondary:hover { --btn-bg: rgba(255,255,255,.06); --btn-bd: var(--on-night); }
.btn--navy { --btn-bg: var(--steel-900); --btn-fg: #fff; }
.btn--navy:hover { --btn-bg: var(--steel-800); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--link-700); padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: var(--link-50); }
.btn--ok { --btn-bg: var(--ok-600); }
.btn--ok:hover { --btn-bg: var(--ok-700); }
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--g-200); --btn-fg: var(--g-500); --btn-bd: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--secondary.is-loading::after { border-color: var(--g-300); border-top-color: var(--steel-900); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 0; color: var(--link-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--link-600); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-full); border: 1.5px solid var(--g-300); background: var(--white); color: var(--steel-900); }
.icon-btn:hover { border-color: var(--steel-900); }
.icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.night .icon-btn { background: transparent; color: var(--on-night); border-color: var(--night-line-strong); }

/* ---------- 6. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,24,38,.94); color: var(--on-night); border-bottom: 1px solid var(--night-line); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.site-header.is-over-hero { background: linear-gradient(rgba(11,20,32,.92), rgba(11,20,32,.55)); border-bottom-color: transparent; }
.site-header.is-scrolled { background: rgba(13,24,38,.96); border-bottom-color: var(--night-line); }
.hdr { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.hdr__logo { display: inline-flex; align-items: center; padding: 6px 0; flex: none; }
.hdr__logo img { height: 32px; width: auto; }
.hdr__sep { width: 1px; height: 32px; background: var(--night-line-strong); flex: none; }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.hdr__nav > li { list-style: none; position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-4); color: var(--on-night); text-decoration: none; font-weight: 500; font-size: .9375rem; background: none; border: 0; position: relative; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(255,255,255,.07); color: #fff; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand-orange); border-radius: 2px; }
.nav-link .i { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg); }
.hdr__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.hdr__icon { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; color: var(--on-night); text-decoration: none; border-radius: var(--r-4); font-size: .875rem; font-weight: 500; background: none; border: 0; }
.hdr__icon:hover { background: rgba(255,255,255,.07); color: #fff; }
.hdr__badge { position: absolute; top: 2px; left: 24px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange-cta); color: #fff; font-size: .75rem; font-weight: 600; display: grid; place-items: center; line-height: 1; border: 2px solid var(--night-900); }
.hdr__menu-btn { display: none; }

/* Indicador persistente de suscripción */
.sub-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-full); border: 1px solid var(--night-line-strong); font-size: .8125rem; font-weight: 500; color: var(--on-night); text-decoration: none; white-space: nowrap; }
.sub-pill:hover { border-color: var(--on-night-2); color: #fff; }
.sub-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #3FBF86; box-shadow: 0 0 0 3px rgba(63,191,134,.2); flex: none; }
.sub-pill--warn .sub-pill__dot { background: #F2A33A; box-shadow: 0 0 0 3px rgba(242,163,58,.2); }
.sub-pill--err .sub-pill__dot { background: #F0645A; box-shadow: 0 0 0 3px rgba(240,100,90,.22); }
.sub-pill .mono { font-size: .8125rem; color: var(--on-night-2); }

/* Mega menú */
.mega { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 560px; background: var(--white); color: var(--g-900); border-radius: var(--r-5); box-shadow: var(--e-xl), 0 0 0 1px rgba(15,42,68,.06); padding: var(--s-5); display: none; z-index: 120; }
.mega.is-open { display: grid; animation: drop .18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega--cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px var(--s-5); }
.mega__title { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-500); margin-bottom: 8px; }
.mega a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-4); color: var(--g-900); text-decoration: none; font-weight: 500; }
.mega a:hover { background: var(--steel-50); }
.mega a .i { color: var(--orange-text); }
.mega a small { display: block; color: var(--g-500); font-weight: 400; font-size: .8125rem; }
.mega__foot { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--g-200); }
.mega__foot a { color: var(--link-700); }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6,12,20,.6); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--night-900); color: var(--on-night); padding: var(--s-5); overflow-y: auto; animation: slidein .22s var(--ease); display: flex; flex-direction: column; gap: var(--s-4); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer__panel a { color: var(--on-night); }
.drawer__group { border-top: 1px solid var(--night-line); padding-top: var(--s-3); }
.drawer__group h2 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-3); font-weight: 500; margin-bottom: 4px; }
.drawer__group a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 1.0625rem; }

/* ---------- 7. Buscador ---------- */
.search { position: relative; display: flex; align-items: stretch; background: var(--white); border-radius: var(--r-5); box-shadow: var(--e-night); padding: 6px; gap: 0; color: var(--g-900); }
.search:focus-within { box-shadow: var(--e-night), 0 0 0 3px rgba(255,79,0,.55); }
.search__scope { position: relative; display: flex; align-items: center; border-right: 1px solid var(--g-200); flex: none; }
.search__scope select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%; min-height: 52px; padding: 0 44px 0 18px; font-weight: 500; font-size: 1rem; color: var(--g-900); border-radius: var(--r-4); cursor: pointer; max-width: 230px; }
.search__scope .i { position: absolute; right: 16px; pointer-events: none; color: var(--g-700); }
.search__field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.search__field > .i { position: absolute; left: 18px; color: var(--g-500); pointer-events: none; }
.search__field input { width: 100%; height: 100%; min-height: 52px; border: 0; background: transparent; padding: 0 16px 0 52px; font-size: 1rem; font-family: var(--f-mono); letter-spacing: .01em; color: var(--g-900); border-radius: var(--r-4); }
.search__field input::placeholder { color: var(--g-500); font-family: var(--f-mono); }
.search__field input:focus-visible { outline: none; }
.search__btn { flex: none; }
.search--lg .search__btn { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.search--compact { box-shadow: none; border: 1.5px solid var(--g-300); padding: 4px; }
.search--compact:focus-within { border-color: var(--link-700); box-shadow: 0 0 0 3px var(--link-100); }
.search--compact .search__scope select, .search--compact .search__field input { min-height: 44px; }
.search--compact .search__btn { min-height: 44px; }
.night .search--compact { border-color: transparent; }

/* Autocompletado */
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); border-radius: var(--r-5); box-shadow: var(--e-xl), 0 0 0 1px rgba(15,42,68,.06); padding: 8px; z-index: 50; display: none; max-height: 420px; overflow-y: auto; color: var(--g-900); }
.ac.is-open { display: block; }
.ac__label { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-500); padding: 8px 12px 4px; }
.ac__opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-4); cursor: pointer; min-height: 48px; }
.ac__opt[aria-selected="true"], .ac__opt:hover { background: var(--steel-50); }
.ac__opt .i { color: var(--g-500); }
.ac__code { font-family: var(--f-mono); font-size: .9375rem; letter-spacing: .02em; }
.ac__code mark { background: var(--link-100); color: var(--steel-900); border-radius: 2px; padding: 0 1px; }
.ac__meta { margin-left: auto; font-size: .8125rem; color: var(--g-500); text-align: right; }
.ac__hint { padding: 10px 12px; font-size: .875rem; color: var(--g-700); border-top: 1px solid var(--g-100); margin-top: 6px; }

.trends { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: var(--s-4); }
.trends__label { font-weight: 600; font-size: .9375rem; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-4); border: 1.5px solid var(--night-line-strong); color: var(--on-night); background: rgba(13,24,38,.35); font-family: var(--f-mono); font-size: .875rem; letter-spacing: .03em; text-decoration: none; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand-orange); background: rgba(255,79,0,.12); color: #fff; }
.chip--light { color: var(--steel-900); border-color: var(--g-300); background: var(--white); }
.chip--light:hover { color: var(--steel-900); border-color: var(--steel-900); background: var(--white); }

/* ---------- 8. Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px)); padding-bottom: clamp(220px, 34vh, 380px); background: var(--night-950); color: var(--on-night); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,15,26,.78) 0%, rgba(8,15,26,.35) 38%, rgba(8,15,26,0) 60%, rgba(13,24,38,.0) 82%, var(--night-800) 100%),
  linear-gradient(90deg, rgba(8,15,26,.55) 0%, rgba(8,15,26,0) 55%); }
.hero__title { max-width: 13.5ch; font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__title em { font-style: normal; color: var(--brand-orange); }
.hero__sub { margin-top: var(--s-4); font-size: 1.125rem; color: var(--on-night-2); max-width: 54ch; }
.hero__search { margin-top: var(--s-7); max-width: 1120px; }
.hero__meta { position: absolute; right: var(--gutter); bottom: 40px; display: flex; gap: var(--s-6); font-size: .8125rem; color: var(--on-night-2); }
.hero__meta strong { display: block; font-family: var(--f-mono); font-size: 1.25rem; color: #fff; font-weight: 500; letter-spacing: .02em; }

/* ---------- 9. Trail (línea de luz que guía la página) ---------- */
.trail-host { position: relative; }
.trail { position: absolute; inset: 0; width: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.trail__road { fill: none; stroke: rgba(255,79,0,.16); stroke-width: 2; }
.trail__lit { fill: none; stroke: var(--brand-orange); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255,90,20,.85)) drop-shadow(0 0 14px rgba(255,79,0,.45)); }
.trail__head { fill: #FFE0C7; filter: drop-shadow(0 0 6px #FF7A2E) drop-shadow(0 0 16px #FF4F00); }
@media (prefers-reduced-motion: reduce) { .trail__head { display: none; } }

/* ---------- 10. Secciones ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section__head p { margin-top: var(--s-3); }
.section__head .h2 { max-width: 26ch; }

/* Disciplinas */
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: end; }
.disc { display: block; text-decoration: none; color: var(--on-night); }
.disc__photo { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 5; background: var(--night-700); box-shadow: 0 0 0 1px var(--night-line); transition: box-shadow .25s var(--ease), transform .35s var(--ease); }
.disc:nth-child(2) .disc__photo { aspect-ratio: 1 / 1.08; }
.disc:nth-child(3) .disc__photo { aspect-ratio: 1 / 1.14; }
.disc:nth-child(4) .disc__photo { aspect-ratio: 4 / 5.4; }
.disc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.disc__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,20,32,.55)); }
.disc__icon { position: absolute; left: 14px; top: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(11,20,32,.7); color: var(--brand-orange); backdrop-filter: blur(6px); }
.disc:hover .disc__photo { box-shadow: 0 0 0 3px var(--brand-orange), 0 0 30px rgba(255,79,0,.35); transform: translateY(-4px); }
.disc:hover .disc__photo img { transform: scale(1.05); }
.disc__name { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-4); font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; }
.disc__name .i { color: var(--brand-orange); transition: transform .2s; }
.disc:hover .disc__name .i { transform: translateX(4px); }
.disc__count { font-family: var(--f-mono); color: var(--brand-orange); font-size: 1.125rem; letter-spacing: .02em; }
.disc__count span { color: var(--on-night-3); font-family: var(--f-body); font-size: .8125rem; margin-left: 6px; }

/* Marcas */
.brands { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s-6); border-top: 1px solid var(--night-line); }
.brands__label { font-size: .9375rem; font-weight: 600; color: var(--on-night); padding-right: var(--s-6); border-right: 1px solid var(--night-line-strong); }
.brands__list { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: var(--s-5) var(--s-6); flex-wrap: wrap; list-style: none; }
.brand-mark { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-decoration: none; opacity: .82; transition: opacity .15s, color .15s; font-weight: 700; letter-spacing: .02em; font-size: 1.25rem; font-family: var(--f-body); }
.brand-mark:hover { opacity: 1; color: #fff; }
.brand-mark--siemens { letter-spacing: .06em; font-weight: 700; }
.brand-mark--abb { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; font-style: italic; }
.brand-mark--eh { font-weight: 500; font-size: 1.0625rem; }
.brand-mark--eh b { margin-left: 6px; padding: 0 4px; border: 2px solid currentColor; font-style: italic; font-weight: 800; font-size: .9rem; }
.brand-mark--metso { font-weight: 500; font-size: 1.375rem; }
.brand-mark--rockwell { font-size: .8125rem; line-height: 1.05; font-weight: 700; }
.brand-mark--rockwell i { font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: currentColor; margin-right: 8px; }
.brand-mark--rockwell i::after { content: "RA"; color: var(--night-800); font-size: .75rem; font-weight: 800; }
.brand-mark--weg { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; border: 2.5px solid currentColor; padding: 0 6px; line-height: 1.25; min-height: 0; }

/* Tarjeta de manual */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcard { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.mcard:hover { box-shadow: 0 0 0 1px var(--g-300), var(--e-lg); }
.mcard.is-selected { box-shadow: 0 0 0 2px var(--steel-800), var(--e-md); }
.mcard__cover { display: block; padding: 14px 14px 0; text-decoration: none; }
.mcard__cover .cover { border-radius: var(--r-3); }
.mcard__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mcard__brand { font-weight: 600; font-size: .875rem; color: var(--g-700); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mcard__title { font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.mcard__title a { color: var(--g-900); text-decoration: none; }
.mcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mcard__title a:focus-visible { outline: none; }
.mcard:has(.mcard__title a:focus-visible) { box-shadow: 0 0 0 3px var(--focus); }
.code-chip { display: inline-flex; align-self: flex-start; max-width: 100%; font-family: var(--f-mono); font-size: .875rem; letter-spacing: .03em; padding: 4px 10px; border-radius: var(--r-3); background: var(--g-100); border: 1px solid var(--g-200); color: var(--g-900); overflow-wrap: anywhere; }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .875rem; color: var(--g-700); }
.meta-line span + span::before { content: "·"; margin-right: 10px; color: var(--g-300); }
.mcard__foot { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 12px var(--s-4); border-top: 1px solid var(--g-100); margin-top: auto; position: relative; z-index: 1; }
.mcard__foot .link-btn { font-size: .875rem; }
.mcard__plan { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--orange-text); font-weight: 500; }
.mcard__cmp { position: relative; z-index: 2; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--g-700); min-height: 44px; cursor: pointer; }
.mcard__cmp input { width: 18px; height: 18px; accent-color: var(--steel-900); }
.mcard--row { flex-direction: row; }
.mcard--row .mcard__cover { width: 150px; flex: none; padding: 14px 0 14px 14px; }
.mcard--retired { opacity: .85; }

/* Portada de documento (CSS) */
.cover { position: relative; aspect-ratio: 424 / 520; overflow: hidden; background: #FBFBFA; border-radius: var(--r-3); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); color: #1c1f22; display: block; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--gen { padding: 14% 10% 8% 16%; display: flex; flex-direction: column; }
.cover--gen::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5%; background: var(--cv, var(--steel-800)); }
.cover__brand { font-weight: 800; font-size: clamp(.7rem, 1.5vw, .95rem); color: var(--cv, var(--steel-800)); letter-spacing: .03em; }
.cover__title { margin-top: 10%; font-family: var(--f-display); font-weight: 500; font-size: clamp(.85rem, 1.7vw, 1.15rem); line-height: 1.15; color: #1c1f22; }
.cover__kind { margin-top: 4%; font-size: clamp(.6rem, 1.05vw, .75rem); color: #3a3f44; }
.cover__art { flex: 1; display: grid; place-items: center; color: #3a3f44; opacity: .85; }
.cover__art .i { width: 46%; height: auto; aspect-ratio: 1; stroke-width: 1.1; }
.cover__foot { display: flex; justify-content: space-between; font-size: clamp(.45rem, .8vw, .58rem); color: #3a3f44; gap: 6px; }
.cover__foot span:last-child { font-family: var(--f-mono); }
.cover__ribbon { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: var(--err-600); color: #fff; font-size: .6875rem; font-weight: 600; padding: 4px 40px; letter-spacing: .06em; text-transform: uppercase; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 28px; padding: 2px 10px 2px 8px; border-radius: var(--r-full); font-size: .8125rem; font-weight: 500; line-height: 1.2; border: 1px solid transparent; }
.badge .i { width: 16px; height: 16px; }
.badge--exact { background: var(--ok-100); color: var(--ok-700); border-color: rgba(46,125,91,.35); }
.badge--compat { background: var(--ok-50); color: var(--ok-700); border-color: rgba(46,125,91,.3); }
.badge--similar { background: var(--warn-100); color: var(--warn-700); border-color: rgba(199,119,0,.4); }
.badge--retired { background: var(--err-100); color: var(--err-700); border-color: rgba(179,38,30,.3); }
.badge--type { background: var(--copper-100); color: var(--copper-700); border-color: rgba(184,115,51,.3); border-radius: var(--r-3); }
.badge--info { background: var(--info-100); color: var(--info-700); }
.badge--neutral { background: var(--g-100); color: var(--g-700); border-color: var(--g-200); }

/* Carrusel */
.rail-nav { display: flex; gap: var(--s-2); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * clamp(16px, 2vw, 28px)) / 4); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; margin: -4px -2px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); counter-reset: step; position: relative; }
.step__head { display: flex; align-items: center; gap: var(--s-4); }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--orange-cta); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; font-size: 1.125rem; flex: none; box-shadow: 0 0 0 6px var(--orange-soft); }
.step__title { font-size: 1.5rem; }
.step p { margin-top: var(--s-4); color: var(--g-700); max-width: 34ch; }
.step__demo { margin-top: var(--s-5); }
.demo-input { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r-4); border: 1.5px solid var(--g-300); background: var(--white); font-size: .9375rem; color: var(--g-700); }
.demo-input b { font-family: var(--f-mono); font-weight: 500; color: var(--g-900); }
.dl-demo { background: var(--white); border: 1.5px solid var(--g-200); border-radius: var(--r-4); padding: 14px 16px; box-shadow: var(--e-sm); }
.dl-demo__row { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.progress { height: 8px; border-radius: 8px; background: var(--g-100); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--ok-600), #44A57A); border-radius: inherit; transition: width .3s linear; }
.progress--err > span { background: var(--err-600); }

/* Tipos de manual */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.types { list-style: none; margin-top: var(--s-6); }
.types a { display: grid; grid-template-columns: 44px 1fr auto 20px; align-items: center; gap: var(--s-4); min-height: 64px; padding: 6px 0; border-bottom: 1px solid var(--night-line); color: var(--on-night); text-decoration: none; font-size: 1.125rem; font-weight: 500; transition: padding .2s var(--ease); }
.types li:first-child a { border-top: 1px solid var(--night-line); }
.types a:hover { padding-left: 8px; color: #fff; }
.types a > .i:first-child { color: var(--on-night-2); width: 26px; height: 26px; justify-self: center; }
.types a > .i:last-child { color: var(--brand-orange); opacity: 0; transition: opacity .2s; }
.types a:hover > .i:last-child { opacity: 1; }
.types .num-orange { font-size: 1.125rem; }
.photo-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--e-night), 0 0 0 1px var(--night-line); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(11,20,32,.78); color: var(--on-night); font-size: .8125rem; padding: 8px 12px; border-radius: var(--r-4); backdrop-filter: blur(6px); }

/* Banda manifiesto */
.statement { position: relative; min-height: clamp(460px, 62vw, 760px); display: flex; align-items: flex-start; padding-block: clamp(72px, 9vw, 140px); color: #fff; overflow: hidden; isolation: isolate; background: var(--night-950); }
.statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night-850) 0%, rgba(11,20,32,.2) 22%, rgba(11,20,32,0) 70%, var(--night-800) 100%), linear-gradient(90deg, rgba(8,15,26,.6), rgba(8,15,26,0) 60%); }
.statement__text { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1.06; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.statement__text span { display: block; }
.statement__text span:last-child { color: var(--brand-orange); }

/* Planes */
.plans { display: grid; grid-template-columns: minmax(0, .8fr) repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.plans__intro p { margin-top: var(--s-4); color: var(--on-night-2); }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5) var(--s-5); border-radius: 20px; border: 1.5px solid var(--night-line-strong); background: rgba(255,255,255,.02); color: var(--on-night); }
.plan--featured { border: 2px solid var(--brand-orange); background: linear-gradient(180deg, rgba(255,79,0,.08), rgba(255,79,0,0) 60%); box-shadow: 0 0 40px rgba(255,79,0,.12); }
.plan__flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--orange-text); font-size: .8125rem; font-weight: 600; padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap; }
.plan__name { font-size: 1.5rem; }
.plan__price { font-family: var(--f-mono); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); color: var(--brand-orange); font-weight: 500; letter-spacing: 0; line-height: 1; }
.plan__price small { font-family: var(--f-body); font-size: 1rem; color: var(--on-night-2); font-weight: 400; margin-left: 4px; }
.plan__feat { list-style: none; display: grid; gap: 10px; margin: var(--s-3) 0 var(--s-4); font-size: .9375rem; color: var(--on-night-2); }
.plan__feat li { display: flex; gap: 10px; align-items: flex-start; }
.plan__feat .i { color: var(--brand-orange); width: 18px; height: 18px; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.paper .plan, .white .plan { color: var(--g-900); border-color: var(--g-200); background: var(--white); }
.paper .plan__feat, .white .plan__feat { color: var(--g-700); }
.paper .plan__price small, .white .plan__price small { color: var(--g-500); }
.paper .plan__price, .white .plan__price { color: var(--orange-text); }
.paper .plan--featured { background: var(--white); box-shadow: var(--e-lg), 0 0 0 1px var(--brand-orange); }
.paper .plan__flag { background: var(--orange-cta); color: #fff; }
.paper .plan__feat .i { color: var(--ok-600); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.faq details { border: 1.5px solid var(--g-200); border-radius: var(--r-5); background: var(--white); transition: border-color .15s; }
.faq details[open] { border-color: var(--steel-900); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 60px; padding: 12px 20px; font-weight: 600; cursor: pointer; border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--g-700); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; color: var(--g-700); max-width: 65ch; }
.night .faq details { background: rgba(255,255,255,.03); border-color: var(--night-line-strong); }
.night .faq details[open] { border-color: var(--on-night-2); }
.night .faq summary .i, .night .faq details > div { color: var(--on-night-2); }

/* Formularios */
.form { display: grid; gap: var(--s-5); }
.form--card { background: var(--white); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 0 0 1px var(--g-200), var(--e-md); }
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-weight: 600; font-size: .875rem; color: var(--g-900); }
.field__help { font-size: .8125rem; color: var(--g-500); }
.field__error { display: none; align-items: center; gap: 6px; font-size: .8125rem; color: var(--err-700); font-weight: 500; }
.field.is-invalid .field__error { display: flex; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-4); border: 1.5px solid var(--g-300); background: var(--white); font-size: 1rem; color: var(--g-900); transition: border-color .15s, box-shadow .15s; }
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233A3F44' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input--mono { font-family: var(--f-mono); letter-spacing: .02em; }
.input::placeholder, .textarea::placeholder { color: var(--g-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--g-500); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--link-700); box-shadow: 0 0 0 3px var(--link-100); }
.field.is-invalid .input, .field.is-invalid .select, .input[aria-invalid="true"] { border-color: var(--err-600); background: var(--err-50); }
.field.is-valid .input { border-color: var(--ok-600); }
.input[disabled] { background: var(--g-100); color: var(--g-500); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--g-700); display: grid; place-items: center; border-radius: var(--r-4); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--steel-900); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--g-500); font-size: .8125rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--g-200); }
.night .form--card { color: var(--g-900); }

/* Banners y toasts */
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-5); border: 1px solid; font-size: .9375rem; }
.banner > .i { margin-top: 1px; }
.banner__body { flex: 1; display: grid; gap: 4px; }
.banner__title { font-weight: 600; }
.banner__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: 8px; }
.banner--info { background: var(--info-50); border-color: var(--info-100); color: var(--g-900); }
.banner--info > .i { color: var(--info-600); }
.banner--ok { background: var(--ok-50); border-color: rgba(46,125,91,.3); }
.banner--ok > .i { color: var(--ok-600); }
.banner--warn { background: var(--warn-50); border-color: rgba(199,119,0,.35); }
.banner--warn > .i { color: var(--warn-600); }
.banner--err { background: var(--err-50); border-color: rgba(179,38,30,.3); }
.banner--err > .i { color: var(--err-600); }
.banner__close { margin-left: auto; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; border-radius: var(--r-4); display: grid; place-items: center; color: var(--g-700); }
.toasts { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--night-900); color: var(--on-night); padding: 14px 14px 14px 16px; border-radius: var(--r-5); box-shadow: var(--e-xl); border-left: 4px solid var(--brand-orange); animation: toastin .25s var(--ease); font-size: .9375rem; }
.toast--ok { border-left-color: #3FBF86; } .toast--ok > .i { color: #3FBF86; }
.toast--err { border-left-color: #F0645A; } .toast--err > .i { color: #F0645A; }
.toast--warn { border-left-color: #F2A33A; } .toast--warn > .i { color: #F2A33A; }
.toast > div { flex: 1; }
.toast strong { display: block; }
.toast button.x { width: 36px; height: 36px; border: 0; background: none; color: var(--on-night-2); border-radius: 6px; display: grid; place-items: center; margin: -6px -4px 0 0; }
.toast a { color: #FFB38A; }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } }

/* Contacto / solicitud */
.request { display: grid; gap: var(--s-4); }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--night-900); color: var(--on-night-2); padding-top: clamp(64px, 8vw, 112px); position: relative; }
.ftr { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)) 1.6fr; gap: var(--s-6); }
.ftr__brand img { height: 40px; width: auto; }
.ftr__brand p { margin-top: var(--s-4); font-size: .875rem; max-width: 30ch; }
.ftr h2 { font-family: var(--f-body); font-size: .9375rem; color: #fff; font-weight: 600; margin-bottom: var(--s-3); }
.ftr ul { list-style: none; display: grid; gap: 2px; }
.ftr a { color: var(--on-night-2); text-decoration: none; font-size: .875rem; display: inline-flex; min-height: 32px; align-items: center; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.news { display: flex; background: #fff; border-radius: var(--r-4); padding: 4px; margin-top: var(--s-3); }
.news input { flex: 1; min-width: 0; border: 0; padding: 0 12px; min-height: 44px; border-radius: var(--r-3); color: var(--g-900); }
.news button { width: 44px; height: 44px; border: 0; border-radius: var(--r-3); background: var(--orange-cta); color: #fff; display: grid; place-items: center; }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-block: var(--s-6); border-top: 1px solid var(--night-line); }
.pay { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; list-style: none; }
.pay li { color: #fff; font-weight: 700; font-size: .9375rem; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.pay .mc { display: inline-flex; }
.pay .mc i { width: 18px; height: 18px; border-radius: 50%; background: #EB001B; display: block; }
.pay .mc i + i { background: #F79E1B; margin-left: -8px; mix-blend-mode: screen; }
.legal { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .8125rem; list-style: none; align-items: center; }
.legal a { color: var(--on-night-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.legal a:hover { color: #fff; text-decoration: underline; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3FBF86; box-shadow: 0 0 0 3px rgba(63,191,134,.2); }

/* ---------- 12. Páginas internas ---------- */
.page-hero { position: relative; background: var(--night-850); color: var(--on-night); padding-block: clamp(40px, 5vw, 64px) clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-noche-1200.jpg") center 70% / cover no-repeat; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night-850) 15%, rgba(15,30,46,.6)); }
.page-hero--plain::before { display: none; }
.page-hero .trail-curve { position: absolute; right: 0; bottom: 0; width: min(720px, 60vw); height: 100%; z-index: -1; pointer-events: none; }
.page-hero__title { margin-top: var(--s-3); }
.page-hero p { margin-top: var(--s-3); color: var(--on-night-2); max-width: 64ch; }
.page-hero .search { margin-top: var(--s-5); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .875rem; list-style: none; color: var(--on-night-3); }
.crumbs a { color: var(--on-night-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--on-night-3); }
.crumbs [aria-current] { color: #fff; }
.crumbs--light { color: var(--g-500); }
.crumbs--light a { color: var(--link-700); }
.crumbs--light a:hover { color: var(--link-600); }
.crumbs--light li + li::before { color: var(--g-300); }
.crumbs--light [aria-current] { color: var(--g-900); }
.main-pad { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 120px); }

/* Resultados */
.results { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.facets { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); padding: 6px 18px 18px; scrollbar-width: thin; }
.facets__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--g-200); position: sticky; top: -6px; background: var(--white); z-index: 1; }
.facets__head h2 { font-size: 1.125rem; }
.facet { border-bottom: 1px solid var(--g-100); }
.facet:last-child { border-bottom: 0; }
.facet__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; background: none; border: 0; padding: 0; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--g-900); text-align: left; }
.facet__btn .i { transition: transform .2s; color: var(--g-700); }
.facet__btn[aria-expanded="false"] .i { transform: rotate(-90deg); }
.facet__list { list-style: none; padding-bottom: 12px; display: grid; gap: 2px; }
.facet__btn[aria-expanded="false"] + .facet__list { display: none; }
.facet__opt { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 6px; border-radius: var(--r-3); cursor: pointer; font-size: .9375rem; }
.facet__opt:hover { background: var(--steel-50); }
.facet__opt input { width: 18px; height: 18px; accent-color: var(--steel-900); flex: none; }
.facet__opt .count { margin-left: auto; font-family: var(--f-mono); font-size: .8125rem; color: var(--g-500); }
.facet__opt.is-zero { color: var(--g-500); }
.res-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.res-bar h1, .res-bar h2 { font-size: 1.5rem; }
.res-bar__right { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.res-bar .select { width: auto; min-width: 200px; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--s-5); }
.applied:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px; border-radius: var(--r-full); background: var(--link-100); color: var(--steel-900); font-size: .875rem; font-weight: 500; border: 0; }
.tag button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--steel-900); }
.tag button:hover { background: rgba(15,42,68,.1); }
.suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-4); background: var(--info-50); border: 1px solid var(--info-100); margin-bottom: var(--s-4); font-size: .9375rem; }
.suggest b { font-family: var(--f-mono); }
.view-toggle { display: inline-flex; border: 1.5px solid var(--g-300); border-radius: var(--r-4); overflow: hidden; }
.view-toggle button { width: 44px; height: 44px; border: 0; background: var(--white); display: grid; place-items: center; color: var(--g-700); }
.view-toggle button[aria-pressed="true"] { background: var(--steel-900); color: #fff; }
.res-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.res-list.is-list { grid-template-columns: 1fr; }
.filters-btn { display: none; }
.empty { text-align: center; padding: clamp(40px, 6vw, 80px) var(--s-5); background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); }
.empty .i--xl { margin: 0 auto var(--s-4); color: var(--g-500); }
.empty h2 { font-size: 1.5rem; }
.empty p { margin: var(--s-3) auto 0; max-width: 52ch; color: var(--g-700); }
.empty__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-5); }
.skel { background: linear-gradient(90deg, var(--g-100) 25%, #F6F7F8 37%, var(--g-100) 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; border-radius: var(--r-3); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-card { background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); padding: 14px; display: grid; gap: 12px; }
.compare-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: none; align-items: center; gap: var(--s-4); background: var(--night-900); color: var(--on-night); padding: 10px 10px 10px 20px; border-radius: var(--r-full); box-shadow: var(--e-xl); max-width: calc(100vw - 32px); }
.compare-tray.is-visible { display: flex; animation: toastin .2s var(--ease); }
.compare-tray__items { display: flex; gap: 6px; }
.compare-tray__items span { font-family: var(--f-mono); font-size: .75rem; padding: 4px 8px; border-radius: var(--r-3); background: rgba(255,255,255,.08); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bottom sheet (móvil) */
.sheet-scrim { position: fixed; inset: 0; background: rgba(6,12,20,.55); z-index: 150; display: none; }
.sheet-scrim.is-open { display: block; }

/* Ficha */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.doc__top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.doc__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.doc h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); margin-top: 6px; }
.doc__code { margin-top: var(--s-3); font-size: 1.125rem; }
.doc__desc { margin-top: var(--s-4); color: var(--g-700); max-width: 65ch; }
.doc__section { margin-top: clamp(40px, 5vw, 64px); }
.doc__section > h2 { font-size: 1.5rem; margin-bottom: var(--s-4); display: flex; align-items: center; gap: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--g-200); border-radius: var(--r-5); background: var(--white); overflow: hidden; }
.meta-grid > div { padding: 16px 18px; border-right: 1px solid var(--g-200); border-bottom: 1px solid var(--g-200); }
.meta-grid dt { font-size: .8125rem; color: var(--g-500); display: flex; align-items: center; gap: 6px; }
.meta-grid dd { margin: 4px 0 0; font-weight: 600; }
.meta-grid dd.mono { font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--g-200); border-radius: var(--r-5); background: var(--white); }
.table { font-size: .9375rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g-700); font-weight: 600; background: var(--g-100); padding: 12px 16px; white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--g-200); vertical-align: middle; }
.table td.mono { font-family: var(--f-mono); letter-spacing: .02em; white-space: nowrap; }
.table tr.is-exact td { background: var(--ok-50); }
.table tr.is-similar td { background: var(--warn-50); }
.table tr.is-fail td { background: var(--err-50); }
.toc { list-style: none; columns: 2; column-gap: var(--s-6); }
.toc li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--g-200); break-inside: avoid; font-size: .9375rem; }
.toc li span:last-child { font-family: var(--f-mono); color: var(--g-500); }
.toc li.is-locked span:first-child::after { content: " 🔒"; font-size: .75rem; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--g-200), var(--e-lg); padding: var(--s-5); display: grid; gap: var(--s-4); }
.aside-card h2 { font-size: 1.125rem; }
.aside-card .btn { width: 100%; }
.access { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-4); background: var(--steel-50); font-size: .9375rem; }
.access__row { display: flex; justify-content: space-between; gap: 10px; }
.meter { height: 10px; border-radius: 10px; background: var(--g-200); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--p, 0%); background: var(--steel-800); border-radius: inherit; }
.meter--warn > span { background: var(--warn-600); }
.meter--err > span { background: var(--err-600); }
.dl-panel { border-radius: var(--r-4); border: 1.5px solid var(--g-200); padding: 14px; display: none; gap: 8px; }
.dl-panel.is-visible { display: grid; }
.dl-panel.is-ok { border-color: rgba(46,125,91,.4); background: var(--ok-50); }
.dl-panel.is-err { border-color: rgba(179,38,30,.35); background: var(--err-50); }
.dl-panel__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 500; font-size: .9375rem; }

/* Visor */
.viewer { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.viewer__thumbs { position: sticky; top: calc(var(--header-h) + 84px); display: grid; gap: 12px; max-height: calc(100vh - 180px); overflow-y: auto; padding: 4px; }
.thumb { position: relative; display: grid; gap: 6px; border: 0; background: none; padding: 0; text-align: center; font-family: var(--f-mono); font-size: .75rem; color: var(--g-700); }
.thumb__page { aspect-ratio: 210 / 297; background: var(--white); border-radius: var(--r-2); box-shadow: 0 0 0 1px var(--g-200); overflow: hidden; padding: 10%; display: grid; gap: 6%; align-content: start; }
.thumb__page i { display: block; height: 4px; background: var(--g-200); border-radius: 2px; }
.thumb__page i:nth-child(1) { width: 60%; height: 6px; background: var(--g-300); }
.thumb__page i:nth-child(3) { width: 80%; }
.thumb__page i:nth-child(5) { height: 30px; background: var(--g-100); }
.thumb[aria-current="true"] .thumb__page { box-shadow: 0 0 0 3px var(--brand-orange); }
.thumb.is-locked .thumb__page { filter: blur(1px); opacity: .6; }
.viewer__bar { position: sticky; top: var(--header-h); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: 10px 14px; background: var(--night-900); color: var(--on-night); border-radius: var(--r-5); margin-bottom: var(--s-4); }
.viewer__bar .grp { display: flex; align-items: center; gap: 6px; }
.viewer__bar .icon-btn { background: transparent; color: var(--on-night); border-color: var(--night-line-strong); }
.viewer__bar .mono { font-size: .9375rem; min-width: 110px; text-align: center; }
.viewer__stage { background: #D9DCE0; border-radius: var(--r-5); padding: clamp(16px, 3vw, 40px); overflow: auto; min-height: 70vh; display: grid; justify-items: center; }
.pdf-page { width: calc(640px * var(--zoom, 1)); max-width: none; aspect-ratio: 210 / 297; background: #fff; box-shadow: var(--e-xl); padding: 6% 7%; font-size: calc(11px * var(--zoom, 1)); line-height: 1.5; color: #1c1f22; display: flex; flex-direction: column; gap: 1.4em; position: relative; transition: width .2s var(--ease); }
.pdf-page header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--cv, #0F2A44); padding-bottom: .8em; font-size: .9em; }
.pdf-page header b { color: var(--cv, #0F2A44); font-size: 1.2em; }
.pdf-page h3 { font-family: var(--f-display); font-size: 2em; font-weight: 600; }
.pdf-page h4 { font-family: var(--f-display); font-size: 1.3em; font-weight: 600; }
.pdf-page table { font-size: .95em; }
.pdf-page th, .pdf-page td { border: 1px solid #c9ced3; padding: .45em .7em; text-align: left; }
.pdf-page th { background: #eef0f2; }
.pdf-page .wiring { border: 1px solid #c9ced3; border-radius: 4px; padding: 1em; }
.pdf-page footer { margin-top: auto; display: flex; justify-content: space-between; font-size: .85em; color: #6b7178; border-top: 1px solid #d6dade; padding-top: .6em; font-family: var(--f-mono); }
.pdf-page .lines i { display: block; height: .55em; background: #e3e6e9; border-radius: 2px; margin: .55em 0; }
.pdf-lock { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.96) 40%); display: grid; place-items: center; text-align: center; padding: 10%; font-size: 1rem; }
.pdf-lock > div { display: grid; gap: 12px; justify-items: center; max-width: 380px; }
.pdf-lock h4 { font-size: 1.375rem; }

/* Comparador */
.cmp-table { min-width: 760px; }
.cmp-table th[scope="row"] { width: 200px; background: var(--g-100); font-size: .8125rem; letter-spacing: .04em; vertical-align: top; }
.cmp-table thead th { background: var(--white); vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--g-900); padding: 18px 16px; }
.cmp-table td.is-diff { background: var(--warn-50); box-shadow: inset 3px 0 0 var(--warn-600); }
.cmp-head { display: grid; gap: 10px; }
.cmp-head .cover { width: 96px; }
.cmp-legend { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; font-size: .875rem; color: var(--g-700); margin-bottom: var(--s-4); }
.cmp-legend i { display: inline-block; width: 14px; height: 14px; background: var(--warn-50); box-shadow: inset 3px 0 0 var(--warn-600); border: 1px solid rgba(199,119,0,.35); vertical-align: -2px; margin-right: 6px; }

/* Auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header-h)); }
.auth__media { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: clamp(32px, 4vw, 56px); isolation: isolate; background: var(--night-950); }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,15,26,.1), rgba(8,15,26,.85)); }
.auth__media blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; max-width: 20ch; font-weight: 600; }
.auth__media p { margin-top: var(--s-3); color: var(--on-night-2); max-width: 44ch; }
.auth__panel { display: grid; place-items: center; padding: clamp(32px, 5vw, 72px) var(--gutter); background: var(--paper); }
.auth__box { width: 100%; max-width: 440px; }
.auth__box h1 { font-size: 2rem; }
.auth__box > p { margin-top: var(--s-2); color: var(--g-700); }
.auth__box .form { margin-top: var(--s-6); }
.context-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-4); background: var(--white); box-shadow: 0 0 0 1px var(--g-200); margin-top: var(--s-5); }
.context-card .cover { width: 52px; flex: none; }
.context-card small { color: var(--g-500); display: block; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--g-100); border-radius: var(--r-4); }
.tabs button { flex: 1; min-height: 44px; border: 0; background: none; border-radius: var(--r-3); font-weight: 600; color: var(--g-700); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--g-900); box-shadow: var(--e-sm); }

/* Checkout */
.stepper { display: flex; align-items: center; gap: 0; list-style: none; margin-bottom: var(--s-6); flex-wrap: wrap; row-gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--on-night-3); font-size: .9375rem; }
.stepper li + li::before { content: ""; width: clamp(24px, 6vw, 80px); height: 2px; background: var(--night-line-strong); margin: 0 14px; }
.stepper li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--night-line-strong); font-family: var(--f-mono); font-size: .875rem; }
.stepper li.is-done { color: var(--on-night-2); }
.stepper li.is-done span { background: var(--ok-600); border-color: var(--ok-600); color: #fff; }
.stepper li[aria-current="step"] { color: #fff; }
.stepper li[aria-current="step"] span { border-color: var(--brand-orange); background: var(--brand-orange); color: #fff; }
.stepper li.is-done + li::before, .stepper li[aria-current="step"]::before { background: var(--brand-orange); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.summary { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--g-200), var(--e-md); padding: var(--s-5); display: grid; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + 20px); }
.summary dl { display: grid; gap: 10px; margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.summary dt { color: var(--g-700); }
.summary dd { margin: 0; font-weight: 600; }
.summary .total { border-top: 1px solid var(--g-200); padding-top: 12px; font-size: 1.125rem; }
.paymethods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.paymethod { position: relative; }
.paymethod input { position: absolute; opacity: 0; }
.paymethod label { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-height: 84px; padding: 14px; border-radius: var(--r-4); border: 1.5px solid var(--g-300); background: var(--white); cursor: pointer; font-weight: 600; }
.paymethod label small { font-weight: 400; color: var(--g-500); }
.paymethod input:checked + label { border-color: var(--steel-900); box-shadow: 0 0 0 1px var(--steel-900); background: var(--steel-50); }
.paymethod input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.confirm { text-align: center; max-width: 720px; margin-inline: auto; }
.confirm__icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto var(--s-5); display: grid; place-items: center; background: var(--ok-100); color: var(--ok-700); box-shadow: 0 0 0 10px var(--ok-50); }
.confirm__icon .i { width: 44px; height: 44px; stroke-width: 2.2; }

/* Cuenta */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.acc-nav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); padding: 10px; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--r-4); color: var(--g-900); text-decoration: none; font-weight: 500; position: relative; }
.acc-nav a:hover { background: var(--steel-50); }
.acc-nav a[aria-current="page"] { background: var(--steel-50); color: var(--steel-900); font-weight: 600; }
.acc-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--brand-orange); }
.acc-nav a .i { color: var(--g-700); }
.acc-nav hr { margin: 6px 0; }
.panel { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--g-200); padding: clamp(20px, 2.5vw, 32px); }
.panel + .panel { margin-top: var(--s-5); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.panel__head h2 { font-size: 1.375rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.kpi { padding: 18px; border-radius: var(--r-5); background: var(--steel-50); display: grid; gap: 6px; }
.kpi dt { font-size: .875rem; color: var(--g-700); }
.kpi dd { margin: 0; font-family: var(--f-mono); font-size: 1.75rem; font-weight: 500; color: var(--steel-900); letter-spacing: .01em; }
.kpi dd small { font-size: .9375rem; color: var(--g-500); }
.sub-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: center; padding: clamp(20px, 2.5vw, 32px); border-radius: 20px; background: var(--night-800); color: var(--on-night); position: relative; overflow: hidden; }
.sub-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 2px solid rgba(255,79,0,.5); box-shadow: 0 0 40px rgba(255,79,0,.25); pointer-events: none; }
.sub-hero h2 { font-size: 1.75rem; }
.sub-hero .meter { background: rgba(255,255,255,.12); margin-top: 12px; max-width: 420px; }
.sub-hero .meter > span { background: var(--brand-orange); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: var(--r-full); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { background: rgba(63,191,134,.16); color: #5FD3A0; }
.status--warn { background: rgba(242,163,58,.16); color: #F5B860; }
.status--err { background: rgba(240,100,90,.16); color: #F58A82; }
.paper .status--ok, .white .status--ok, .panel .status--ok { background: var(--ok-100); color: var(--ok-700); }
.panel .status--warn { background: var(--warn-100); color: var(--warn-700); }
.panel .status--err { background: var(--err-100); color: var(--err-700); }
.card-row { display: flex; align-items: center; gap: var(--s-4); padding: 16px; border-radius: var(--r-4); border: 1.5px solid var(--g-200); flex-wrap: wrap; }
.card-row + .card-row { margin-top: var(--s-3); }
.card-brand { width: 56px; height: 38px; border-radius: 6px; background: var(--steel-900); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .75rem; letter-spacing: .04em; flex: none; }
.usage-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 8px; height: 180px; padding-top: 10px; }
.usage-bars div { background: var(--steel-800); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; }
.usage-bars div.is-now { background: var(--brand-orange); }
.usage-bars div span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: .6875rem; color: var(--g-700); }
.usage-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 8px; font-size: .75rem; color: var(--g-500); text-align: center; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; border-bottom: 1px solid var(--g-100); }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--g-300); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--e-sm); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--ok-600); }
.switch input:checked::after { transform: translateX(20px); }

/* Ayuda */
.help-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.help-cat { display: grid; gap: 10px; padding: var(--s-5); border-radius: var(--r-5); background: var(--white); box-shadow: 0 0 0 1px var(--g-200); text-decoration: none; color: var(--g-900); transition: box-shadow .2s, transform .2s; }
.help-cat:hover { box-shadow: 0 0 0 2px var(--steel-900); color: var(--g-900); transform: translateY(-2px); }
.help-cat .i { color: var(--orange-text); width: 28px; height: 28px; }
.help-cat h3 { font-size: 1.125rem; }
.help-cat p { color: var(--g-700); font-size: .9375rem; }
.steps-list { counter-reset: s; list-style: none; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps-list li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--steel-900); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .875rem; }

/* Estado / 404 */
.err-page { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; position: relative; overflow: hidden; isolation: isolate; color: var(--on-night); background: var(--night-950); padding-block: 80px; }
.err-page img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.err-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night-950) 20%, rgba(11,20,32,.4)); }
.err-code { font-family: var(--f-mono); font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .9; color: var(--brand-orange); letter-spacing: -.02em; text-shadow: 0 0 40px rgba(255,79,0,.45); }
.svc-list { list-style: none; display: grid; gap: 0; }
.svc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--g-200); }

/* Legal */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { font-size: 1.125rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose li { color: var(--g-700); }
.prose p + p { margin-top: var(--s-3); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: var(--s-3); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; list-style: none; border-left: 2px solid var(--g-200); }
.legal-toc a { display: block; padding: 8px 14px; color: var(--g-700); text-decoration: none; font-size: .9375rem; margin-left: -2px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--g-900); border-left-color: var(--brand-orange); }

/* Índices A–Z / listados de catálogo */
.idx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.idx-card { display: flex; align-items: center; gap: var(--s-4); padding: 18px 20px; border-radius: var(--r-5); background: var(--white); box-shadow: 0 0 0 1px var(--g-200); text-decoration: none; color: var(--g-900); min-height: 88px; transition: box-shadow .2s, transform .2s; }
.idx-card:hover { box-shadow: 0 0 0 2px var(--steel-900); transform: translateY(-2px); color: var(--g-900); }
.idx-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--night-800); color: var(--brand-orange); display: grid; place-items: center; flex: none; }
.idx-card b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; }
.idx-card small { color: var(--g-500); }
.idx-card .num-orange { margin-left: auto; }
.disc-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.disc-big { position: relative; display: flex; align-items: flex-end; min-height: 340px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; padding: var(--s-5); isolation: isolate; }
.disc-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.disc-big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,15,26,0) 30%, rgba(8,15,26,.88)); }
.disc-big:hover img { transform: scale(1.04); }
.disc-big:hover { color: #fff; box-shadow: 0 0 0 3px var(--brand-orange); }
.disc-big h2 { font-size: 2rem; }
.disc-big p { color: var(--on-night-2); margin-top: 6px; max-width: 46ch; }
.disc-big .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.disc-big .chips span { font-size: .8125rem; padding: 4px 10px; border-radius: var(--r-full); background: rgba(255,255,255,.12); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-5); }
.az a, .az span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-4); font-family: var(--f-mono); text-decoration: none; background: var(--white); box-shadow: 0 0 0 1px var(--g-200); color: var(--g-900); }
.az span { color: var(--g-300); box-shadow: none; background: transparent; }
.az a:hover { box-shadow: 0 0 0 2px var(--steel-900); }
.model-group { margin-top: var(--s-6); }
.model-group h2 { font-family: var(--f-mono); font-size: 1.5rem; color: var(--orange-text); border-bottom: 2px solid var(--g-200); padding-bottom: 6px; margin-bottom: var(--s-3); }
.model-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.model-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--g-200); text-decoration: none; color: var(--g-900); }
.model-list a:hover { color: var(--link-700); }
.model-list .mono { font-weight: 500; overflow-wrap: anywhere; }
.model-list small { color: var(--g-500); }

/* Mapa del sitio / demo */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.sitemap section { background: var(--white); border-radius: var(--r-5); box-shadow: 0 0 0 1px var(--g-200); padding: var(--s-5); }
.sitemap h2 { font-size: 1.125rem; margin-bottom: var(--s-3); display: flex; gap: 10px; align-items: center; }
.sitemap h2 .i { color: var(--orange-text); }
.sitemap ul { list-style: none; display: grid; gap: 2px; }
.sitemap a { display: flex; justify-content: space-between; gap: 10px; min-height: 40px; align-items: center; text-decoration: none; color: var(--g-900); border-bottom: 1px dashed var(--g-200); }
.sitemap a:hover { color: var(--link-700); }
.sitemap a small { font-family: var(--f-mono); color: var(--g-500); font-size: .75rem; }
.demo-states { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.demo-states button[aria-pressed="true"] { --btn-bg: var(--steel-900); --btn-fg: #fff; --btn-bd: var(--steel-900); }

/* Utilidades */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); } .mt-9 { margin-top: var(--s-9); }
.center { text-align: center; }
.w-full { width: 100%; }
.hide { display: none !important; }

/* ---------- 13. Responsive (breakpoints DS) ---------- */
@media (max-width: 1279px) {
  .hdr__nav .nav-link { padding: 0 9px; }
  .sub-pill .mono { display: none; }
  .ftr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr__brand, .ftr__news { grid-column: span 2; }
  .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans__intro { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .hdr__nav, .hdr__sep, .hdr__tools .hide-md { display: none; }
  .hdr__menu-btn { display: inline-flex; }
  .doc { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 1023px) {
  .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - clamp(16px, 2vw, 28px)) / 2.2); }
  .split, .faq-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s-8); }
  .results { grid-template-columns: 1fr; }
  .facets { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 160; max-height: 82vh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .28s var(--ease); box-shadow: var(--e-xl); padding-bottom: 96px; }
  .facets.is-open { transform: none; }
  .facets__apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: var(--white); border-top: 1px solid var(--g-200); }
  .filters-btn { display: inline-flex; }
  .account { grid-template-columns: 1fr; }
  .acc-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .acc-nav hr { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__media { min-height: 240px; }
  .viewer { grid-template-columns: 1fr; }
  .viewer__thumbs { position: static; grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; max-height: none; }
  .help-cats, .idx-grid, .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__meta { display: none; }
}
@media (min-width: 1024px) { .facets__apply { display: none; } }
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .hdr__logo img { height: 26px; }
  .hdr__tools .hide-sm { display: none; }
  .search { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .search__scope { width: 100%; border-right: 0; border-bottom: 1px solid var(--g-200); }
  .search__scope select { max-width: none; width: 100%; }
  .search__field { flex-basis: 100%; }
  .search__btn { width: 100%; }
  .search--compact .search__scope { display: none; }
  .search--compact .search__btn { width: auto; }
  .search--compact .search__field { flex-basis: 0; }
  .search--compact { flex-wrap: nowrap; }
  .hero { padding-bottom: 200px; }
  .brands { flex-direction: column; align-items: flex-start; }
  .brands__label { border-right: 0; padding-right: 0; }
  .brands__list { justify-content: flex-start; }
  .plans { grid-template-columns: 1fr; }
  .ftr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
  .doc__top { grid-template-columns: 120px 1fr; gap: var(--s-4); }
  .toc { columns: 1; }
  .kpis { grid-template-columns: 1fr; }
  .sub-hero { grid-template-columns: 1fr; }
  .paymethods { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr; }
  .disc-hero { grid-template-columns: 1fr; }
  .res-list { grid-template-columns: 1fr; }
  .pdf-page { width: calc(100% * var(--zoom, 1)); font-size: calc(7px * var(--zoom, 1)); }
}
@media (max-width: 479px) {
  .disc-grid { gap: 16px; }
  .disc__name { font-size: 1.125rem; }
  .cards { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 82%; }
  .help-cats, .idx-grid, .sitemap { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .compare-tray__items { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .trail, .toasts, .compare-tray { display: none !important; }
}

/* Ajustes */
.steps { list-style: none; }
.demo-input { font-size: .875rem; }
.demo-input b { white-space: nowrap; }
.page-hero .search { max-width: 860px; }
.auth__box .tabs { margin-top: var(--s-5); }
.auth__box .tabs + div .form, .auth__box [role=tabpanel] .form { margin-top: var(--s-5); }
.demo-hint { font-size: .8125rem; color: var(--g-500); border-top: 1px dashed var(--g-300); padding-top: 12px; }
.demo-hint code { background: var(--g-100); padding: 1px 6px; border-radius: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .875rem; margin-bottom: 8px; padding: 0; }
.trust { list-style: none; display: grid; gap: 8px; font-size: .875rem; color: var(--g-700); }
.trust li { display: flex; gap: 8px; align-items: flex-start; }
.trust .i { color: var(--ok-600); width: 18px; height: 18px; margin-top: 1px; }
.feat-table td, .feat-table th { text-align: center; }
.feat-table td:first-child, .feat-table th:first-child { text-align: left; }
.feat-table .i { margin-inline: auto; color: var(--ok-600); }
.big-status { display: flex; align-items: center; gap: 14px; margin-top: var(--s-5); font-size: 1.25rem; font-weight: 600; }
.big-status::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #3FBF86; box-shadow: 0 0 0 6px rgba(63,191,134,.2); }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 1023px) { .help-layout { grid-template-columns: 1fr; } }
.help-search { position: relative; max-width: 720px; margin-top: var(--s-5); }
.help-search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--g-500); }
.help-search input { width: 100%; min-height: 60px; border-radius: var(--r-5); border: 0; padding: 0 20px 0 52px; font-size: 1.0625rem; box-shadow: var(--e-night); }
.help-search input:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.viewer { grid-template-columns: 112px minmax(0, 1fr); }
.hdr__badge { left: 18px; top: 0; min-width: 18px; height: 18px; font-size: .6875rem; }
@media (max-width: 1023px) { .viewer { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.sub-hero .btn--secondary { --btn-fg: var(--on-night); --btn-bd: var(--night-line-strong); }
.sub-hero .btn--secondary:hover { --btn-bg: rgba(255,255,255,.06); --btn-bd: var(--on-night); }
@media (max-width: 479px) {
  .res-list .mcard, .cards .mcard { flex-direction: row; }
  .res-list .mcard .mcard__cover, .cards .mcard .mcard__cover { width: 108px; flex: none; padding: 12px 0 12px 12px; }
  .mcard__body { padding: 12px 14px; gap: 8px; }
  .mcard__title { font-size: 1rem; }
  .mcard__foot { padding: 8px 14px; }
  .rail .mcard { flex-direction: column; }
  .rail .mcard .mcard__cover { width: auto; padding: 14px 14px 0; }
}
