/* ============================================================
   UID Security — hoja de estilos única
   Tokens del UID Studio Design System + capa de sitio.
   Sin estilos inline: permite CSP sin 'unsafe-inline' en style-src.
   ============================================================ */

/* ---------- Webfonts (self-hosted, sin llamadas a terceros) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --white: #ffffff;

  --ink-950: #0a0b0d;
  --ink-900: #101216;
  --ink-850: #16191e;
  --ink-800: #1c2026;
  --ink-750: #23282f;
  --ink-700: #2b313a;
  --ink-600: #3b424d;
  --ink-500: #565e6a;
  --ink-400: #79828f;
  --ink-300: #a4adb8;
  --ink-200: #cbd2da;
  --ink-150: #dde2e8;
  --ink-100: #e9edf1;
  --ink-50:  #f4f6f9;
  --ink-25:  #fafbfc;

  --accent-700: #1b4fd6;
  --accent-600: #2563eb;
  --accent-500: #3b7dff;
  --accent-400: #6ba0ff;
  --accent-100: #e3edff;

  --sev-critical: #d11d54;
  --sev-high:     #e5484d;
  --sev-medium:   #f76808;
  --sev-low:      #e8a317;
  --sev-info:     #4c72e0;

  --success-600: #2f9e44;
  --success-500: #40c057;
  --success-soft: #e6f5ea;
  --danger-600:  #e03131;
  --danger-soft: #fce8e8;

  --surface-card:   var(--white);
  --surface-hover:  var(--ink-50);
  --surface-active: var(--ink-100);

  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-600);
  /* --ink-400 no alcanza 4.5:1 sobre blanco; --ink-500 sí (contraste 5.6:1) */
  --text-muted:     var(--ink-500);
  --text-accent:    var(--accent-700);

  --border-subtle:  var(--ink-100);
  --border-default: var(--ink-150);
  --border-strong:  var(--ink-300);

  --action-primary-bg:       var(--ink-950);
  --action-primary-bg-hover: var(--ink-800);
  --action-primary-fg:       var(--white);

  --focus-ring: var(--accent-500);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --pad-x: 24px;
  --section-y: clamp(56px, 7vw, 96px);
}

@media (max-width: 420px) {
  :root { --pad-x: 18px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text-primary); }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--accent-100); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Salto al contenido — accesibilidad de teclado */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-950);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); width: 100%; }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tint { background: var(--ink-50); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section--flush-top { padding-top: 0; }
.main { flex: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav__mark { height: 34px; width: 34px; border-radius: 7px; display: block; }
.nav__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--text-primary); }
.nav__links { display: flex; gap: 2px; margin-left: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav__link {
  padding: 7px 12px; border-radius: 7px; text-decoration: none;
  color: var(--text-secondary); transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--surface-hover); color: var(--text-primary); }
.nav__link[aria-current="page"] { color: var(--text-primary); background: var(--surface-active); }
.nav__cta { margin-left: auto; }

/* En pantallas angostas el header se apilaba en tres filas y, siendo
   sticky, se comía un cuarto del viewport. Dos filas: marca + acción
   arriba, enlaces abajo en una sola línea desplazable. */
@media (max-width: 720px) {
  .nav__inner { gap: 10px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav__links {
    order: 3;
    width: 100%;
    margin-left: -4px;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__link { padding: 6px 10px; white-space: nowrap; }
  .nav__mark { height: 30px; width: 30px; }
  .nav__wordmark { font-size: 16px; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px;
  border-radius: 9px; border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 10px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--action-primary-bg); color: var(--action-primary-fg); }
.btn--primary:hover { background: var(--action-primary-bg-hover); }
.btn--primary[disabled] { background: var(--ink-400); cursor: not-allowed; }

.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--surface-hover); }

.btn--invert { background: #fff; color: var(--ink-950); }
.btn--invert:hover { background: var(--ink-150); }

/* ============================================================
   TIPOGRAFÍA DE SECCIÓN
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-accent); margin-bottom: 14px;
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--invert { color: var(--accent-400); }

.h1 {
  font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0 0 20px; text-wrap: balance;
}
.h1--hero { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; margin-bottom: 22px; }
.h2 {
  font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance;
}
.h2--sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.015em; }
.h3 { font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin: 0 0 10px; }
.h4 { font-weight: 600; font-size: 17px; margin: 0 0 8px; }

.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--text-secondary); margin: 0; }
.body { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0; }
.body--sm { font-size: 14px; line-height: 1.6; }
.measure { max-width: 620px; }
.measure--narrow { max-width: 540px; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-44 { margin-bottom: 44px; }
.strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(120% 90% at 85% -10%, #f4f6f9 0%, #ffffff 55%);
}
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.page-head {
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(110% 80% at 90% -20%, #f4f6f9 0%, #ffffff 60%);
  padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px);
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 24px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sev-critical); display: inline-block; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Grid en vez de flex-wrap: los separadores son bordes, así que nunca
   quedan colgando cuando la fila se parte. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), auto));
  justify-content: start;
  margin-top: 38px;
  border-top: 1px solid var(--border-default);
  padding-top: 22px;
}
.stats__item { padding: 2px 26px 2px 0; }
.stats__item + .stats__item { padding-left: 26px; border-left: 1px solid var(--border-default); }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stats__item { padding: 0; }
  .stats__item + .stats__item { padding-left: 0; border-left: 0; }
}
.stats__num { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; }
.stats__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-top: 7px; }

/* ---------- Consola decorativa ---------- */
.console {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ink-700);
  box-shadow: 0 24px 60px -24px rgba(16,18,22,.45);
  background: var(--ink-950);
}
.console__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--ink-900); border-bottom: 1px solid var(--ink-700);
}
.console__dot { width: 11px; height: 11px; border-radius: 50%; }
.console__dot--r { background: var(--sev-high); }
.console__dot--y { background: var(--sev-low); }
.console__dot--g { background: var(--success-500); }
.console__title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }
.console__body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: var(--ink-200);
}
.console__dim { color: var(--ink-300); }
.console__row--gap { margin-top: 8px; }
.console__foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-700); }
.c-ok { color: var(--success-500); }
.c-crit { color: var(--sev-critical); font-weight: 600; }
.c-high { color: var(--sev-high); font-weight: 600; }
.c-med { color: var(--sev-medium); font-weight: 600; }
.c-accent { color: var(--accent-400); }
.c-white { color: #fff; }
.caret {
  display: inline-block; width: 8px; height: 15px; background: var(--ink-200);
  margin-left: 4px; vertical-align: -2px;
  animation: uidBlink 1s steps(1) infinite alternate;
}
@keyframes uidBlink { from { opacity: 1; } to { opacity: .15; } }

/* ============================================================
   GRIDS / CARDS
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid--sev { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.grid--about { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }

.card {
  border: 1px solid var(--border-default); border-radius: 14px;
  padding: 30px; background: #fff;
}
.card--hover { transition: transform .2s, box-shadow .2s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16,18,22,.3); }
.card--top-crit { border-top: 3px solid var(--sev-critical); }
.card--top-med { border-top: 3px solid var(--sev-medium); }
.card--tint { background: var(--ink-50); padding: 28px; }
.card--plain { padding: 28px; }

.icon-box {
  width: 46px; height: 46px; border-radius: 11px; background: var(--ink-950);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  flex: 0 0 auto;
}
.icon-box--lg { width: 50px; height: 50px; border-radius: 12px; margin-bottom: 0; }

.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.list--gap-lg { gap: 16px; }
.list--gap-md { gap: 12px; }
.list__item { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.list__item--lg { gap: 13px; font-size: 15px; }
.list__bullet { color: var(--success-600); font-weight: 700; flex: 0 0 auto; }
.list__bullet--accent { color: var(--accent-700); }
.list__title { display: block; font-weight: 600; font-size: 14.5px; color: var(--text-primary); margin-bottom: 3px; }
.list__desc { display: block; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }

.label-sm {
  display: block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 14px;
}
.label-sm--lg { margin-bottom: 18px; }
.label-sm--crit { color: var(--sev-critical); margin-bottom: 2px; }
.label-sm--med { color: #b34a04; margin-bottom: 2px; } /* --sev-medium no llega a AA sobre blanco */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: 7px;
  padding: 7px 12px; background: #fff;
}
.chip--lg { font-size: 13px; font-weight: 500; color: var(--text-primary); border-color: var(--border-strong); border-radius: 8px; padding: 11px 16px; }

/* ---------- Metodología (5 pasos) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px; background: var(--border-default);
  border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden;
}
.step { background: #fff; padding: 26px 22px; }
.step__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }
.step__desc { font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- Severidad ---------- */
.sev-card { border: 1px solid var(--border-default); border-radius: 12px; padding: 20px; background: #fff; }
.sev-card--critical { border-top: 3px solid var(--sev-critical); }
.sev-card--high { border-top: 3px solid var(--sev-high); }
.sev-card--medium { border-top: 3px solid var(--sev-medium); }
.sev-card--low { border-top: 3px solid var(--sev-low); }
.sev-card--info { border-top: 3px solid var(--sev-info); }

.sev-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: #fff;
  padding: 3px 8px; border-radius: 4px;
}
.sev-tag--critical { background: var(--sev-critical); }
.sev-tag--high { background: var(--sev-high); }
.sev-tag--medium { background: var(--sev-medium); }
/* amarillo sobre blanco no da contraste: texto oscuro */
.sev-tag--low { background: var(--sev-low); color: #1a1205; }
.sev-tag--info { background: var(--sev-info); }

.sev-range { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.sev-range--critical { color: var(--sev-critical); }
.sev-range--high { color: var(--sev-high); }
.sev-range--medium { color: var(--sev-medium); }
/* --sev-low puro no alcanza contraste AA sobre blanco */
.sev-range--low { color: #8a6003; }
.sev-range--info { color: var(--sev-info); }
.sev-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 8px 0 0; }

/* ============================================================
   PANEL UID STUDIO (bloque diferencial)
   ============================================================ */
.feature {
  border: 1px solid var(--border-default); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.feature__body { padding: clamp(34px, 4vw, 52px); }
/* Variante sin panel oscuro: dos columnas de contenido dentro del borde */
.feature--pad { border-radius: 16px; align-items: center; }
.feature--pad .feature__body { padding: clamp(32px, 4vw, 48px); }
.feature__body--chips { padding-top: 0; }
@media (min-width: 620px) { .feature__body--chips { padding-top: clamp(32px, 4vw, 48px); } }
.feature__panel {
  background: var(--ink-950); padding: clamp(34px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.brandline { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; flex-wrap: wrap; }
.brandline--service { gap: 14px; margin-bottom: 18px; align-items: center; }
.brandline--service .h2 { margin: 2px 0 0; }
.brandline__mark { height: 28px; width: 28px; border-radius: 6px; }
.brandline__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .03em; }
.brandline__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-default); border-radius: 999px; padding: 3px 8px;
}

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: var(--ink-850); border: 1px solid var(--ink-700); border-radius: 11px; padding: 18px; }
.metric--crit { border-top: 3px solid var(--sev-critical); }
.metric__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); }
.metric__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric__value--crit { color: var(--sev-critical); }

.findings { background: var(--ink-850); border: 1px solid var(--ink-700); border-radius: 11px; padding: 16px 18px; }
.finding { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.finding + .finding { margin-top: 12px; }
.finding__id { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }
.finding__sev { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #fff; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.panel-caption { font-family: var(--font-mono); font-size: 10px; color: var(--ink-400); text-align: center; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--ink-950); border-radius: 18px; padding: clamp(40px, 5vw, 68px); text-align: center; }
.cta__title { font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0 auto 18px; max-width: 680px; text-wrap: balance; }
.cta__text { font-size: 17px; line-height: 1.6; color: var(--ink-200); max-width: 520px; margin: 0 auto 32px; }

.center-row { display: flex; justify-content: center; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text-accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-card {
  border: 1px solid var(--border-default); border-radius: 16px; background: #fff;
  box-shadow: 0 18px 50px -28px rgba(16,18,22,.28); overflow: hidden;
}
.form-card__accent { height: 4px; background: var(--ink-950); }
.form-card__body { padding: clamp(26px, 3vw, 36px); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field--last { margin-bottom: 24px; }

.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 7px; }
.input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border-default); border-radius: 8px; background: #fff;
  font-family: var(--font-sans); font-size: 14px; color: var(--text-primary);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.input:focus-visible { outline: none; }
.input::placeholder { color: var(--text-muted); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23565e6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.input[aria-invalid="true"] { border-color: var(--danger-600); }

.field__error { display: block; font-size: 12.5px; color: var(--danger-600); margin-top: 6px; min-height: 0; }
.field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.field__count {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.field__count.is-over { color: var(--danger-600); font-weight: 600; }
.form-note { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; text-align: center; }
.form-note a { color: var(--text-accent); }

/* Honeypot: invisible para humanos, presente para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.captcha-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.captcha-img {
  height: 62px; width: 155px; border: 1px solid var(--border-default);
  border-radius: 8px; background: var(--ink-850); display: block; flex: 0 0 auto;
}
.captcha-input { flex: 1 1 140px; min-width: 140px; }
.captcha-reload {
  height: 44px; width: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--text-secondary);
}
.captcha-reload:hover { background: var(--surface-hover); color: var(--text-primary); }

.alert { border-radius: 9px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; }
.alert--error { background: var(--danger-soft); color: #8f1c1c; border: 1px solid #f5c2c2; }
.alert--ok { background: var(--success-soft); color: #1c6b2c; border: 1px solid #b6e0c1; }
.is-hidden { display: none !important; }

.success { text-align: center; padding: 24px 8px 16px; }
.success__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--success-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.success__title { font-weight: 700; font-size: 26px; letter-spacing: -.015em; margin: 0 0 12px; }
.success__text { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 380px; margin: 0 auto 28px; }

/* Panel lateral de contacto */
.sticky-col { position: sticky; top: 90px; }
@media (max-width: 900px) { .sticky-col { position: static; } }
.contact-facts { display: flex; flex-direction: column; gap: 20px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ink-50);
  border: 1px solid var(--border-default); display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto;
}
.fact__label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.fact__value { font-size: 14px; color: var(--text-primary); }
.fact__value--mono { font-family: var(--font-mono); }
.fact__value a { color: var(--text-primary); text-decoration: none; }
.fact__value a:hover { text-decoration: underline; }

/* ============================================================
   CONTENIDO LEGAL (privacidad)
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; color: var(--text-secondary); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--text-accent); }
.prose strong { color: var(--text-primary); }
.prose__updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-950); border-top: 1px solid var(--ink-800); }
.footer__inner { padding: 56px var(--pad-x) 28px; max-width: var(--wrap); margin: 0 auto; }
.footer__inner--slim { padding-top: 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 36px; }
.footer__about { grid-column: 1 / -1; max-width: 320px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__mark { height: 32px; width: 32px; border-radius: 7px; }
.footer__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: #fff; }
.footer__text { font-size: 13.5px; line-height: 1.6; color: var(--ink-300); margin: 0; }
.footer__heading {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer__link { color: var(--ink-200); text-decoration: none; }
.footer__link:hover { color: #fff; text-decoration: underline; }
.footer__link--accent { color: var(--accent-400); }
.footer__contact { display: flex; flex-direction: column; gap: 11px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-200); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-800);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-300);
}
.footer__bottom a { color: var(--ink-300); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__navrow { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }

/* ============================================================
   404
   ============================================================ */
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(60px, 10vw, 120px) var(--pad-x); }
.error-code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sev-critical); margin-bottom: 18px; }
