/* ---------- Fuentes auto-alojadas (rendimiento + RGPD: sin peticiones a terceros) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ============================================================
   IA4SEC — sistema de diseño "dossier"
   Paleta: grafito cálido + ámbar fósforo
   Tipos: Fraunces (display) · IBM Plex Sans (texto) · IBM Plex Mono (datos)
   ============================================================ */

:root {
  --bg: #131211;
  --bg-raised: #1a1917;
  --bg-panel: #201e1b;
  --line: #2a2724;
  --line-soft: #232120;
  --text: #edeae3;
  --text-dim: #9c968a;
  --text-faint: #6f695e;
  --accent: #e0a93e;
  --accent-soft: #b98a2f;
  --accent-ink: #1a1508;
  --ok: #7a9b6d;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --container: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 13vh, 160px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; font-family: var(--font-mono); font-size: 14px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Barra de progreso de auditoría (elemento firma) ---------- */
.progress-wrap {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 120; pointer-events: none;
}
.progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 80ms linear; }
.progress-label {
  position: fixed; top: 10px; right: 14px; z-index: 120;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px;
  color: var(--text-faint); pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.progress-label.visible { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; transition: padding .35s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.scrolled .container { padding-block: 13px; }

.brand {
  font-family: var(--font-mono); font-size: 17px; font-weight: 600;
  letter-spacing: .5px; text-decoration: none; white-space: nowrap;
}
.brand .b { color: var(--accent); }
.brand .tag { color: var(--text-faint); font-weight: 400; font-size: 13px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav a {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-dim);
  text-decoration: none; position: relative; padding-block: 4px;
  transition: color .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 13px 24px; border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #eebb55; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-mono); font-size: 13px;
  padding: 9px 14px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(32px, 5vw, 72px); align-items: end; width: 100%;
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.5px;
  color: var(--text-faint); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.kicker .stamp {
  border: 1px solid var(--accent); color: var(--accent);
  padding: 4px 10px; letter-spacing: 2px; font-size: 10.5px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.08; letter-spacing: -0.015em; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  margin-top: 26px; max-width: 52ch; color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; align-items: center; }
.link-arrow {
  font-size: 15px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .25s ease, color .25s ease;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

.hero-aside {
  border-left: 1px solid var(--line); padding-left: 24px;
  display: flex; flex-direction: column; gap: 26px;
}
.stat .num {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600; color: var(--text); line-height: 1;
}
.stat .num .sym { color: var(--accent); }
.stat .lab { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.45; }
.status-line { font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.status-line .dot { animation: pulse 2.4s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: var(--pad-x);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--text-faint); display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 34px; background: var(--line);
  display: block; animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 16px; }
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px;
  color: var(--text-faint); white-space: nowrap; padding-inline: 26px;
  text-transform: uppercase;
}
.marquee-track span::after { content: "·"; color: var(--accent); margin-left: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones (capítulos del dossier) ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(40px, 6vh, 64px); }
.chapter {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.5px;
  color: var(--text-faint); text-transform: uppercase; margin-bottom: 20px;
}
.chapter .n { color: var(--accent); font-weight: 600; }
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15;
  letter-spacing: -0.01em; max-width: 22ch;
}
.section-head .sub { margin-top: 16px; color: var(--text-dim); max-width: 58ch; }

/* ---------- Índice de servicios ---------- */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 70px minmax(0,1fr) auto 32px;
  align-items: center; gap: 20px;
  padding-block: 30px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: background .3s ease, padding-left .3s ease;
}
.svc-row:hover { background: var(--bg-raised); padding-left: 18px; }
.svc-row .idx { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.svc-row .name {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 480; color: var(--text); line-height: 1.25;
}
.svc-row .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); text-align: right; }
.svc-row .arr {
  color: var(--text-faint); font-size: 20px; line-height: 1;
  transition: transform .3s ease, color .3s ease;
}
.svc-row:hover .arr { transform: translateX(8px); color: var(--accent); }
.svc-row .desc {
  grid-column: 2 / 4; color: var(--text-dim); font-size: 15px;
  max-width: 62ch; margin-top: 4px;
}

/* ---------- Método ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 34px 26px 40px; position: relative; transition: background .3s ease; }
.step:hover { background: var(--bg-raised); }
.step .idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-top: 46px; }
.step p { font-size: 14.5px; color: var(--text-dim); margin-top: 12px; }
.step .dur {
  position: absolute; top: 34px; right: 26px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 1px;
}

/* ---------- Casos (expedientes) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  border: 1px solid var(--line); background: var(--bg-raised);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s ease, border-color .35s ease;
}
.case:hover { transform: translateY(-6px); border-color: var(--accent-soft); }
.case .file {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px;
  color: var(--text-faint); text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.case .result {
  font-family: var(--font-mono); font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600; color: var(--accent); line-height: 1;
}
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; }
.case p { font-size: 14px; color: var(--text-dim); }
.case dl { font-size: 13px; display: grid; gap: 6px; margin-top: auto; }
.case dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.case dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--text-faint); text-transform: uppercase; padding-top: 2px; }
.case dd { color: var(--text-dim); }

/* ---------- Banda de cifras ---------- */
.numbers { border-block: 1px solid var(--line); }
.numbers .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.numbers .cell {
  padding: 44px 28px; border-left: 1px solid var(--line); text-align: left;
}
.numbers .cell:first-child { border-left: 0; }
.numbers .val {
  font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600; line-height: 1;
}
.numbers .val .sym { color: var(--accent); }
.numbers .cap { font-size: 13px; color: var(--text-faint); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 18px;
  padding-block: 24px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); transition: color .25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .q { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; }
.faq summary .plus { margin-left: auto; font-family: var(--font-mono); color: var(--text-faint); transition: transform .3s ease; }
.faq details[open] .plus { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 26px 42px; color: var(--text-dim); font-size: 15.5px; max-width: 60ch; }

/* ---------- CTA final ---------- */
.cta-final { text-align: left; }
.cta-final h2 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.1; letter-spacing: -0.015em;
  max-width: 18ch;
}
.cta-final h2 em { font-style: italic; color: var(--accent); }
.cta-final .sub { color: var(--text-dim); margin-top: 20px; max-width: 52ch; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--text-faint); text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 15px; padding: 14px 16px;
  transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-faint); }
.form-ok {
  grid-column: 1 / -1; font-family: var(--font-mono); font-size: 14px;
  color: var(--ok); border: 1px solid var(--ok); padding: 14px 18px; display: none;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand {
  font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600;
}
.footer-brand .b { color: var(--accent); }
.site-footer .col h4 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px;
  color: var(--text-faint); text-transform: uppercase; margin-bottom: 16px; font-weight: 500;
}
.site-footer .col a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: 14.5px; padding-block: 5px; transition: color .25s ease;
}
.site-footer .col a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}

/* ---------- Páginas interiores ---------- */
.page-hero { padding-top: clamp(150px, 22vh, 220px); padding-bottom: clamp(48px, 7vh, 80px); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -0.012em; max-width: 20ch;
}
.page-hero .lede { margin-top: 22px; color: var(--text-dim); max-width: 56ch; font-size: 1.1rem; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  margin-bottom: 24px; letter-spacing: 1px;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin-inline: 8px; color: var(--line); }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-dim); margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 600; }

.deliverables { border: 1px solid var(--line); background: var(--bg-raised); padding: 30px 28px; position: sticky; top: 110px; }
.deliverables h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint); font-weight: 500;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.deliverables ul { list-style: none; }
.deliverables li {
  display: flex; gap: 14px; padding-block: 13px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px; color: var(--text-dim);
}
.deliverables li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }
.deliverables .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- Reveal (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .42s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .numbers .grid { grid-template-columns: repeat(2, 1fr); }
  .numbers .cell:nth-child(3) { border-left: 0; }
  .numbers .cell { border-top: 1px solid var(--line); }
  .numbers .cell:nth-child(-n+2) { border-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .deliverables { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0; top: 62px; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 32px var(--pad-x);
    gap: 24px; transform: translateX(100%); transition: transform .35s ease;
    border-top: 1px solid var(--line);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .svc-row { grid-template-columns: 44px minmax(0,1fr) 26px; }
  .svc-row .meta { display: none; }
  .svc-row .desc { grid-column: 2 / 3; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .numbers .grid { grid-template-columns: 1fr; }
  .numbers .cell { border-left: 0; border-top: 1px solid var(--line); }
  .numbers .cell:first-child { border-top: 0; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .status-line .dot, .scroll-hint::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Utilidades (sustituyen estilos inline: permiten CSP estricta) ---------- */
.section-tight { padding-top: 0; }
.footer-note { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; max-width: 36ch; }
.em-accent { font-style: italic; color: var(--accent); }
.micro-trust { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 16px; letter-spacing: 1px; }
.contact-channels { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; gap: 48px; flex-wrap: wrap; }
.channel-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 8px; }
.channel-text { color: var(--text-dim); font-size: 15px; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.field-check label { font-family: var(--font-body); font-size: 13.5px; color: var(--text-dim); letter-spacing: 0; text-transform: none; line-height: 1.55; }
.field-check a { color: var(--accent); }
.field-check.field-error label { color: #c0392b; }
.related { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); line-height: 1.7; }
.related a { color: var(--text-dim); text-decoration-color: var(--line); }
.related a:hover { color: var(--accent); }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 8rem); font-weight: 600; color: var(--accent); line-height: 1; }

/* ============================================================
   Efectos "terminal que audita"
   ============================================================ */

/* Grano fotográfico global: quita el look "demasiado digital" */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 130; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Retícula blueprint en el hero, desvanecida radialmente */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 56px);
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 90% at 28% 18%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 28% 18%, #000 0%, transparent 62%);
}

/* Línea de escaneo: la auditoría, escaneando */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent,
    rgba(224, 169, 62, .05) 42%,
    rgba(224, 169, 62, .13) 50%,
    rgba(224, 169, 62, .05) 58%,
    transparent);
  animation: scan 9s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(115vh); opacity: 0; }
}

/* Contenido del hero por encima de la retícula */
.hero .container, .hero .scroll-hint { position: relative; z-index: 1; }

/* Resplandor fósforo: el glow cálido de los CRT */
.progress-bar { box-shadow: 0 0 12px rgba(224, 169, 62, .5); }
.status-line .dot { text-shadow: 0 0 10px rgba(122, 155, 109, .9); }
.btn-solid { position: relative; }
.btn-solid:hover { box-shadow: 0 0 0 1px rgba(224, 169, 62, .35), 0 6px 28px rgba(224, 169, 62, .22); }
.kicker .stamp { box-shadow: inset 0 0 14px rgba(224, 169, 62, .07); }
.svc-row:hover .arr { text-shadow: 0 0 12px rgba(224, 169, 62, .7); }

/* Cursor de terminal parpadeando en los botones sólidos */
.btn-solid::after { content: "_"; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Reveals: el contenido "enfoca" al entrar */
.reveal { filter: blur(9px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1), filter .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { filter: blur(0); }

/* Spotlight ámbar que sigue al cursor (solo dispositivos con hover) */
@media (hover: hover) {
  .svc-row, .case { position: relative; overflow: hidden; }
  .svc-row::after, .case::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(224, 169, 62, .09), transparent 65%);
    transition: opacity .35s ease;
  }
  .svc-row:hover::after, .case:hover::after { opacity: 1; }
}

/* Números de capítulo fantasma tras los encabezados de sección */
.section-head { position: relative; }
.section-head::before {
  content: attr(data-ghost); position: absolute; right: -8px; top: -.42em;
  font-family: var(--font-mono); font-weight: 600; line-height: 1;
  font-size: clamp(6rem, 15vw, 10.5rem);
  color: transparent; -webkit-text-stroke: 1px var(--line);
  opacity: .6; pointer-events: none; user-select: none; z-index: -1;
}

/* Marquee con bordes desvanecidos */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Cabecera con línea de luz al compactarse */
.site-header.scrolled { box-shadow: 0 1px 0 rgba(224, 169, 62, .08); }

/* Movimiento reducido: desactivar animaciones */
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; opacity: 0; }
  .btn-solid::after { animation: none; }
  .reveal { filter: none; }
}

/* ============================================================
   Credenciales y tecnologías
   ============================================================ */

.creds { border-block: 1px solid var(--line); }
.creds-grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1px; background: var(--line);
}
.creds-cell { background: var(--bg); padding: 34px 30px 36px; }
.creds-lead {
  font-family: var(--font-display); font-weight: 480;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; color: var(--text);
}
.creds-lead em { font-style: italic; color: var(--accent); }
.creds-lead + p { font-size: 14px; color: var(--text-faint); margin-top: 12px; max-width: 40ch; }
.creds-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint);
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--line); padding: 6px 11px;
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.badge:hover { border-color: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 16px rgba(224,169,62,.06); }
.badge .vendor { color: var(--accent); }

.tech-strip { padding-block: 30px; }
.tech-list {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
  font-family: var(--font-mono); font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: var(--text-dim); letter-spacing: .5px;
}
.tech-list span { transition: color .3s ease; }
.tech-list span:hover { color: var(--accent); }
.tech-note {
  font-size: 13.5px; color: var(--text-faint); margin-top: 18px;
  max-width: 68ch; line-height: 1.65;
}
.tech-note strong { color: var(--text-dim); font-weight: 500; }

.geo-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  letter-spacing: 1px; margin-top: 20px;
}
.geo-note .pin { color: var(--accent); }

@media (max-width: 960px) {
  .creds-grid { grid-template-columns: 1fr; }
}

/* ---------- Credenciales a ancho completo ---------- */
.creds-solo { padding-block: clamp(40px, 6vh, 60px); max-width: 78ch; }
.creds-solo .creds-lead { font-size: clamp(1.25rem, 2.6vw, 1.85rem); }
.creds-sub { font-size: 15px; color: var(--text-faint); margin-top: 14px; max-width: 62ch; }
.status-line .dot { color: var(--accent); text-shadow: 0 0 10px rgba(224,169,62,.7); }

/* ---------- Estados del formulario ---------- */
.form-err { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 14px; color: #e07a6a; border: 1px solid #7a3a30; padding: 14px 18px; display: none; }
.btn[disabled] { opacity: .55; cursor: default; transform: none !important; box-shadow: none !important; }
