/* SPC · Catálogo técnico — tokens y base comunes a las dos opciones.
   Sin fuentes ni recursos remotos. Cada opción añade su propio CSS encima. */

#spc-catalogo-root {
  /* Marca (observada en logo e Instagram, ajustada por contraste) */
  --marino: #0A2C48;          /* fondo profundo, chrome */
  --marino-prof: #061D31;     /* una capa más profunda, para pies y fondos de foco */
  --petroleo: #004068;        /* azul petróleo: enlaces y acciones sobre claro */
  --celeste: #6FCBF5;         /* acento SOLO sobre marino/petróleo */
  --celeste-obra: #0A6FA3;    /* acento sobre claro (AA con blanco: 5.5:1) */
  --rombo-negro: #06121E;     /* contorno del logo */

  /* Neutros fríos (acero) */
  --acero-50: #F2F6F9;
  --acero-100: #E4ECF2;
  --acero-200: #CBD8E1;
  --acero-300: #AFC1CC;
  --acero-500: #5B7284;       /* texto terciario sobre blanco: 5.0:1 */
  --acero-700: #34495A;
  --tinta: #10263A;           /* texto principal sobre claro */
  --blanco: #FFFFFF;

  /* Estado (siempre con icono + palabra; el color solo refuerza) */
  --ok: #0B6B4F;     --ok-fondo: #E2F3EC;
  --alerta: #7A4B00; --alerta-fondo: #FFF1CF;
  --error: #A3261D;  --error-fondo: #FCE6E3;

  /* Tipografía: solo sistema */
  --f-cuerpo: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-titular: "Bahnschrift SemiBold Condensed", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;

  /* Escala 1.25 desde 15 px */
  --t-13: 0.8125rem; --t-15: 0.9375rem; --t-17: 1.0625rem; --t-20: 1.25rem;
  --t-25: 1.5625rem; --t-31: 1.9375rem; --t-39: 2.4375rem; --t-49: 3.0625rem;

  --celeste-hover: #9ADBF8;
  --alerta-borde: #D9AE4A;
  --ficha-fondo: #EAF3F9; --ficha-fondo-hover: #DDEBF5;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

#spc-catalogo-root *, #spc-catalogo-root *::before, #spc-catalogo-root *::after { box-sizing: border-box; }
#spc-catalogo-root { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 120px; }
#spc-catalogo-root {
  margin: 0; font-family: var(--f-cuerpo); font-size: var(--t-15); line-height: 1.5;
  color: var(--tinta); background: var(--acero-50);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
#spc-catalogo-root img, #spc-catalogo-root svg { display: block; max-width: 100%; }
#spc-catalogo-root button, #spc-catalogo-root input, #spc-catalogo-root select, #spc-catalogo-root textarea { font: inherit; color: inherit; }
#spc-catalogo-root button { cursor: pointer; }
#spc-catalogo-root a { color: var(--petroleo); text-underline-offset: 0.2em; }
#spc-catalogo-root h1, #spc-catalogo-root h2, #spc-catalogo-root h3, #spc-catalogo-root h4, #spc-catalogo-root p { margin: 0; }
#spc-catalogo-root h1, #spc-catalogo-root h2, #spc-catalogo-root h3 { text-wrap: balance; }
#spc-catalogo-root p, #spc-catalogo-root li { text-wrap: pretty; }
#spc-catalogo-root ul, #spc-catalogo-root ol { margin: 0; padding: 0; list-style: none; }
#spc-catalogo-root table { border-collapse: collapse; width: 100%; }
#spc-catalogo-root [hidden] { display: none !important; }
#spc-catalogo-root :target { scroll-margin-top: 120px; }

/* Superficies del navegador, tematizadas */
#spc-catalogo-root ::selection { background: var(--celeste); color: var(--marino); }
#spc-catalogo-root input, #spc-catalogo-root select, #spc-catalogo-root textarea { caret-color: var(--celeste-obra); accent-color: var(--petroleo); }
#spc-catalogo-root { scrollbar-color: var(--acero-300) var(--acero-50); }
#spc-catalogo-root :focus-visible { outline: 3px solid var(--celeste-obra); outline-offset: 2px; border-radius: 2px; }
#spc-catalogo-root .on-dark :focus-visible, #spc-catalogo-root .on-dark:focus-visible { outline-color: var(--celeste); }

#spc-catalogo-root .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
#spc-catalogo-root .skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--blanco); color: var(--marino);
  padding: 10px 16px; font-weight: 700; border: 2px solid var(--marino); text-decoration: none;
}
#spc-catalogo-root .skip-link:focus { top: 8px; }

/* Tipografía de titular: condensada, cursiva, mayúsculas — solo para titulares, nunca para lectura */
#spc-catalogo-root .titular {
  font-family: var(--f-titular); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.005em; line-height: 0.98;
}
#spc-catalogo-root .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Banda diagonal tomada de la ficha técnica PDF (franjas inclinadas arriba y abajo) */
#spc-catalogo-root .bandas {
  height: 12px; background-repeat: repeat-x; background-size: 52px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='12' viewBox='0 0 52 12'%3E%3Cpath d='M0 12 L12 0 L38 0 L26 12Z' fill='%230A2C48'/%3E%3C/svg%3E");
}
#spc-catalogo-root .bandas--claras {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='12' viewBox='0 0 52 12'%3E%3Cpath d='M0 12 L12 0 L38 0 L26 12Z' fill='%236FCBF5' fill-opacity='.9'/%3E%3C/svg%3E");
}

/* Etiquetas obligatorias */
#spc-catalogo-root .chip-demo {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: var(--t-13); font-weight: 600;
  line-height: 1.4; color: var(--alerta); background: var(--alerta-fondo); border: 1px dashed #B27A12; border-radius: 2px;
  white-space: nowrap;
}
#spc-catalogo-root .chip-demo::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none; }
#spc-catalogo-root .chip-ok {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: var(--t-13); font-weight: 600;
  line-height: 1.4; color: var(--ok); background: var(--ok-fondo); border: 1px solid #7DBBA4; border-radius: 2px; white-space: nowrap;
}
#spc-catalogo-root .chip-ok::before { content: ""; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); flex: none; }

#spc-catalogo-root .proto-note { font-size: var(--t-13); color: var(--acero-700); }

/* Movimiento reducido: se conserva el cambio de estado, se elimina el desplazamiento */
@media (prefers-reduced-motion: reduce) {
  #spc-catalogo-root *, #spc-catalogo-root *::before, #spc-catalogo-root *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
@media print { #spc-catalogo-root .no-print { display: none !important; } }
