/* SIMCII · home · marca Dirección B «Testigo» (tema Basalto)
   Tokens desde 01-marca/colores-y-temas/temas.css · Archivo variable · retícula 8 px · radio 2 px */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #1A1D20;
  --sf: #212529;
  --sf2: #2A2F34;
  --ln: #30353A;
  --ln2: #41474D;
  --tx: #ECEAE4;
  --mu: #9A9D98;
  --ac: #8FA6E0;
  --ok: #5DBB84;
  --warn: #E39A4A;
  --err: #F07A6A;
  --gut: clamp(20px, 5vw, 72px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; color: var(--tx);
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
em { font-style: normal; color: inherit; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--tx); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.marco { width: 100%; max-width: calc(1320px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- tipografía ---------- */
.display {
  font-stretch: 72%; font-weight: 720; text-transform: uppercase;
  font-size: clamp(48px, 6.6vw, 100px); line-height: .92; letter-spacing: -.005em;
}
.display-s { font-size: clamp(40px, 4.8vw, 72px); }
.titulo {
  font-stretch: 72%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 3.6vw, 50px); line-height: 1; max-width: 22ch;
}
.subtitulo { font-stretch: 72%; font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; max-width: 22ch; }
.eyebrow { font-size: 14px; color: var(--mu); margin-bottom: 22px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--mu); max-width: 38ch; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 2px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn-1 { background: var(--tx); color: var(--bg); border: 1px solid var(--tx); }
.btn-1:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn-1:disabled { opacity: .6; cursor: progress; }
.btn-2 { background: transparent; color: var(--tx); border: 1px solid var(--ln2); }
.btn-2:hover { border-color: var(--tx); }

/* ---------- navegación ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(26, 29, 32, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ln); }
.nav-fila { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav-logo img { height: 27px; width: auto; }
.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav-menu a { font-size: 15px; text-decoration: none; opacity: .82; }
.nav-menu a:hover { opacity: 1; }
.nav-cta { min-height: 42px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 9vh, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero-texto .display { margin-bottom: 28px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-datos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 48px; }
.hero-datos div { border-top: 1px solid var(--ln2); padding-top: 14px; display: grid; gap: 2px; }
.hero-datos b { font-stretch: 72%; font-weight: 720; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-datos span { font-size: 14px; color: var(--mu); }

.mapa3d { position: relative; }
.mapa3d-escena { position: relative; aspect-ratio: 16 / 11; }
.mapa3d-escena canvas, .mapa3d-respaldo { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa3d-respaldo { object-fit: contain; transition: opacity .6s var(--ease); }
.mapa3d-escena canvas { opacity: 0; transition: opacity .6s var(--ease); }
.mapa3d.is-vivo canvas { opacity: 1; }
.mapa3d.is-3d .mapa3d-respaldo { opacity: 0; }
.mapa3d-rotulos { position: absolute; inset: 0; pointer-events: none; }
.rot {
  position: absolute; left: 0; top: 0; opacity: 0; pointer-events: auto; cursor: pointer;
  font: 600 13px/1.2 "Archivo", sans-serif; color: var(--tx); white-space: nowrap;
  padding: 4px 8px; background: rgba(26, 29, 32, .86); border: 0; border-left: 2px solid var(--tx); border-radius: 0;
  transition: opacity .4s var(--ease), background-color .2s var(--ease);
}
.rot em { font-style: normal; font-weight: 500; color: var(--mu); margin-left: 4px; }
.rot.is-sobre { border-left-color: var(--ac); }
.rot.is-reclamo { border-left-color: var(--warn); }
.rot.is-compromiso { border-left-color: #B8A046; }
.rot.is-zona { border-left-color: var(--mu); }
.rot:hover, .rot[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.rot:hover em, .rot[aria-pressed="true"] em { color: #41474D; }
.mapa3d.is-listo .rot { opacity: 1; }

.ficha {
  position: absolute; left: 0; top: 0; z-index: 2; width: min(270px, 44%);
  padding: 14px 16px; background: rgba(33, 37, 41, .94); border: 1px solid var(--ln2); border-left: 2px solid var(--tx);
  display: grid; gap: 4px; font-size: 14px;
}
.ficha.is-sobre { border-left-color: var(--ac); }
.ficha.is-reclamo { border-left-color: var(--warn); }
.ficha.is-compromiso { border-left-color: #B8A046; }
.ficha-tipo { font-size: 12px; color: var(--mu); }
.ficha-nombre { font-stretch: 72%; font-weight: 700; font-size: 22px; line-height: 1.1; }
.ficha-lectura { font-weight: 600; font-variant-numeric: tabular-nums; }
.ficha-detalle { color: var(--mu); }
.ficha-score { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--mu); }
.ficha-score b { color: var(--tx); font-size: 14px; font-variant-numeric: tabular-nums; }
.ficha-score i { height: 4px; background: var(--ln); }
.ficha-score u { display: block; height: 100%; background: var(--tx); text-decoration: none; transition: width .4s var(--ease); }
.ficha.is-sobre .ficha-score u { background: var(--ac); }
.ficha-score[hidden] { display: none; }

.mapa3d-chips { display: none; }
.mapa3d-chips button {
  flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--ln2); border-radius: 2px;
  background: transparent; color: var(--tx); font: 500 13px "Archivo", sans-serif; cursor: pointer;
}
.mapa3d-chips button[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }

.mapa3d-pie { display: grid; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--mu); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--tx); }
.leyenda li { display: inline-flex; align-items: center; gap: 8px; }
.leyenda i { width: 10px; height: 10px; }
.l-estacion { background: var(--tx); }
.l-sobre { background: var(--ac); }
.l-reclamo { background: var(--warn); }
.l-compromiso { background: #B8A046; }
.l-polvo { background: radial-gradient(circle, #C9C7C1 0 2px, transparent 2.5px) 0 0 / 5px 5px; }

/* ---------- secciones ---------- */
.sec { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--ln); }
.sec-hondo { background: var(--sf); }
.sec-cab { display: grid; gap: 18px; align-content: start; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-cab > p { color: var(--mu); max-width: 56ch; font-size: 18px; }

/* ---------- cómo funciona ---------- */
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.paso { border-top: 1px solid var(--ln2); padding-top: 20px; }
.paso .n { font-size: 13px; color: var(--mu); }
.paso h3 { font-stretch: 72%; font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; margin: 8px 0 14px; }
.paso p { color: var(--mu); max-width: 34ch; }

/* ---------- muestra funcional ---------- */
.play { border: 1px solid var(--ln); background: var(--sf); }
.play-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--mu); }
.play-bar .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: vivo 2s ease-in-out infinite; }
@keyframes vivo { 50% { opacity: .35; } }
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 460px; }
.app-side { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px; border-right: 1px solid var(--ln); background: var(--bg); }
.app-brand { display: grid; gap: 8px; font-size: 12px; color: var(--mu); }
.app-brand img { height: 20px; width: auto; }
.app-nav { display: grid; gap: 2px; }
.app-nav .it { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 10px; font-size: 14px; color: var(--mu); }
.app-nav .it.active { color: var(--tx); background: var(--sf); box-shadow: inset 2px 0 0 var(--tx); }
.app-nav b { font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }
.app-nav u { grid-column: 1 / -1; height: 3px; background: var(--ln); text-decoration: none; display: block; }
.app-nav u i { display: block; height: 100%; }
.app-foot { margin-top: auto; font-size: 12px; color: var(--mu); }
.app-main { padding: 20px 24px 24px; display: grid; gap: 20px; align-content: start; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head h4 { font-stretch: 72%; font-weight: 700; font-size: 22px; }
.app-head span { font-size: 13px; color: var(--mu); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; color: var(--tx) !important; border: 1px solid var(--ln2); padding: 4px 10px; }
.play-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ps { border-top: 1px solid var(--ln2); padding-top: 10px; display: grid; gap: 6px; }
.ps .k { font-size: 13px; color: var(--mu); }
.ps b { font-stretch: 72%; font-weight: 720; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.ps small { font-size: 14px; color: var(--mu); font-weight: 400; }
.bar { height: 4px; background: var(--ln); display: block; }
.bar i { display: block; height: 100%; transition: width .8s var(--ease); }
i.ok { background: var(--ok); } i.warn { background: var(--warn); } i.err { background: var(--err); }
.app-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.app-panel { background: var(--bg); border: 1px solid var(--ln); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.ph { display: block; font-size: 12px; color: var(--mu); margin-bottom: 6px; }
.pp { display: grid; grid-template-columns: 70px 56px 1fr auto; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--ln); font-size: 14px; transition: background-color .5s; }
.pp .k { color: var(--mu); font-size: 13px; }
.pp .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pp .u { color: var(--mu); font-size: 12px; }
.pp.flash { background: rgba(143, 166, 224, .12); }
.st { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 7px; height: 7px; }
.st-ok::before { background: var(--ok); }
.st-w { color: var(--warn); }
.st-w::before { background: var(--warn); }
.play-log { display: grid; gap: 2px; min-height: 150px; align-content: start; }
.play-log .ev { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--ln); transition: background-color .9s; }
.play-log .ev.new { background: rgba(143, 166, 224, .12); }
.play-log .tm { color: var(--mu); font-variant-numeric: tabular-nums; }
.play-chart { margin-top: 10px; }
.play-chart svg { width: 100%; height: 74px; }

/* ---------- mapa ---------- */
.mapa-shell { position: relative; height: clamp(540px, 74vh, 720px); border: 1px solid var(--ln); background: #15171A; overflow: hidden; }
#mapbox { position: absolute; inset: 0; }
.mapa-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--mu); font-size: 15px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, var(--ln) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--ln) 39px 40px); }
.mapa-fallback[hidden] { display: none; }
.mapa-fallback span { background: #15171A; padding: 10px 14px; border: 1px solid var(--ln2); }
.mapa-ley { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: calc(100% - 400px); justify-content: flex-end;
  font-size: 12px; color: var(--mu); background: rgba(26, 29, 32, .9); border: 1px solid var(--ln); padding: 7px 10px; }
.mapa-ley span { display: inline-flex; align-items: center; gap: 6px; }
.mapa-ley i { width: 8px; height: 8px; }
.st-ok { background: var(--ok); } .st-warn { background: var(--warn); } .st-err { background: var(--err); }
.ley-rec { background: var(--tx); transform: rotate(45deg) scale(.85); }
.ley-pluma { width: 14px !important; background: rgba(143, 166, 224, .45); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.mapboxgl-ctrl-top-right { margin: 4px; }
.mapboxgl-ctrl-group { background: var(--bg) !important; border: 1px solid var(--ln2); border-radius: 2px !important; box-shadow: none !important; }
.mapboxgl-ctrl-group button + button { border-top-color: var(--ln2) !important; }
.mapboxgl-ctrl-group button .mapboxgl-ctrl-icon { filter: invert(1) brightness(.9); }
.mapa-shell .mapboxgl-ctrl-bottom-right { bottom: 44px; }
.mapboxgl-ctrl-attrib.mapboxgl-compact { background: rgba(26, 29, 32, .9); color: var(--mu); }
.mapboxgl-ctrl-attrib a { color: var(--mu); }
.mapboxgl-scroll-zoom-blocker, .mapboxgl-touch-pan-blocker { font-family: "Archivo", sans-serif; font-size: 15px; background: rgba(26, 29, 32, .72); }

/* marcadores */
.mb-est, .mb-rec { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--tx); font: inherit; cursor: pointer; }
.mb-est i { position: relative; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--tx); background: var(--ok); }
.mb-est[data-st="warn"] i { background: var(--warn); }
.mb-est[data-st="err"] i { background: var(--err); }
.mb-est[data-st="err"] i::after { content: ""; position: absolute; inset: -9px; border: 1px solid var(--err); border-radius: 50%; animation: anillo 2.2s ease-out infinite; }
@keyframes anillo { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.mb-est span, .mb-rec span { white-space: nowrap; font-size: 12px; line-height: 1; padding: 5px 7px; background: rgba(26, 29, 32, .9); border: 1px solid var(--ln2); }
.mb-est em { font-style: normal; color: var(--mu); font-variant-numeric: tabular-nums; }
.mb-est:hover span, .mb-est.is-on span { border-color: var(--tx); }
.mb-est.is-on span { background: var(--tx); color: var(--bg); }
.mb-est.is-on em { color: var(--bg); }
.mb-est:focus-visible, .mb-rec:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.mb-rec i { flex: none; width: 11px; height: 11px; background: var(--tx); border: 2px solid var(--bg); transform: rotate(45deg); }
.mb-rec span { color: var(--tx); border-style: dashed; }
.mb-area { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx); opacity: .7; pointer-events: none; }

/* panel de la red */
.red { position: absolute; z-index: 2; left: 12px; top: 12px; bottom: 12px; width: 336px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(26, 29, 32, .94); border: 1px solid var(--ln2); padding: 14px; overflow: auto; }
.red-zonas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.red-zonas button { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--ln2); border-radius: 2px; background: none; color: var(--tx); font: inherit; cursor: pointer; }
.red-zonas b { font-size: 14px; font-weight: 600; }
.red-zonas span { font-size: 12px; color: var(--mu); }
.red-zonas button[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.red-zonas button[aria-pressed="true"] span { color: var(--bg); opacity: .7; }
.red-zonas button:focus-visible, .red-lista button:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.red-viento { font-size: 12px; color: var(--mu); }
.red-lista { display: grid; border-top: 1px solid var(--ln); }
.red-lista button { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 4px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--ln); color: var(--tx); font: inherit; cursor: pointer; }
.red-lista button:hover, .red-lista button.is-on { background: var(--sf2); }
.red-lista i { width: 10px; height: 10px; }
.red-lista b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.red-lista small { font-size: 12px; color: var(--mu); }
.red-lista em { font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; }
.red-ficha { display: grid; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ln2); }
.mapa-shell .mapboxgl-ctrl-bottom-left { left: 356px; }
.red-ficha:empty { display: none; }
.rf-cab { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mu); }
.st-txt-ok { color: var(--ok); } .st-txt-warn { color: var(--warn); } .st-txt-err { color: var(--err); }
.rf-lectura b { font-stretch: 72%; font-weight: 720; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.rf-lectura span { font-size: 13px; color: var(--mu); }
.red-ficha svg { width: 100%; height: 36px; display: block; }
.rf-ref, .rf-hora { font-size: 12px; color: var(--mu); }
.rf-rec { font-size: 13px; padding: 8px 10px; border: 1px dashed var(--ln2); }

/* ---------- módulos ---------- */
.modulos { border-bottom: 1px solid var(--ln2); }
.modulos a {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 24px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--ln2); text-decoration: none;
}
.mod-k { font-size: 14px; color: var(--mu); }
.mod-t { font-stretch: 72%; font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.mod-d { color: var(--mu); }
.mod-l { font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--ln2); }
.modulos a:hover .mod-l { border-bottom-color: var(--tx); }
.modulos a:hover .mod-t { color: #FFFFFF; }
.nota { color: var(--mu); margin-top: 24px; }
.nota a, .faq a, .pie-marca a { color: var(--tx); text-decoration-color: var(--ln2); text-underline-offset: 3px; }
.nota a:hover, .faq a:hover { text-decoration-color: var(--tx); }

/* ---------- industrias ---------- */
.industrias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.industrias a { display: grid; grid-template-columns: 32px 1fr; gap: 2px 8px; padding: 18px 0; border-top: 1px solid var(--ln2); text-decoration: none; }
.industrias .n { grid-row: 1 / 3; font-size: 13px; color: var(--mu); font-variant-numeric: tabular-nums; padding-top: 3px; }
.industrias h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.industrias a > span:last-child { color: var(--mu); font-size: 15px; }
.industrias a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- confianza ---------- */
.confianza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.confianza .subtitulo { margin-bottom: 28px; }
.filas div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--ln2); }
.filas dt { font-weight: 600; font-size: 15px; }
.filas dd { color: var(--mu); font-size: 15px; }
.filas dd b { display: block; color: var(--tx); font-weight: 600; }

/* ---------- preguntas ---------- */
.preguntas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--ln2); }
.faq details:last-child { border-bottom: 1px solid var(--ln2); }
.faq summary { display: flex; gap: 16px; align-items: baseline; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; margin-left: auto; font-weight: 400; font-size: 22px; color: var(--mu); }
.faq details[open] summary::after { content: "−" / ""; }
.faq .fn { font-size: 13px; color: var(--mu); font-weight: 500; font-variant-numeric: tabular-nums; }
.faq details p { color: var(--mu); max-width: 64ch; padding: 0 0 24px 34px; }

/* ---------- cierre ---------- */
.cierre { position: relative; overflow: hidden; isolation: isolate; }
.cierre-fondo { position: absolute; inset: 0; z-index: -1; }
.cierre-fondo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(1px); }
.cierre-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0, rgba(26, 29, 32, .9) 38%, rgba(26, 29, 32, .3) 100%), linear-gradient(0deg, var(--bg) 0, transparent 25%, transparent 75%, var(--bg) 100%); }
.cierre-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cierre .display { margin-bottom: 24px; }
.correo { margin-top: 28px; }
.correo a { font-size: 18px; text-underline-offset: 4px; text-decoration-color: var(--ln2); }

/* lo que se va armando mientras la persona responde */
.lectura { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ln2); display: grid; gap: 10px; max-width: 460px; }
.lectura-tit { font-size: 13px; color: var(--mu); }
.lectura-op { font-stretch: 72%; font-weight: 700; font-size: 26px; line-height: 1.1; }
.lectura-pistas { display: grid; gap: 6px; }
.lectura-pistas li {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 12px;
  font-size: 14px; animation: pista .5s var(--ease) both;
}
.lectura-pistas li span { color: var(--mu); font-size: 13px; }
.lectura-pistas i { display: block; height: 22px; background: var(--sf2); position: relative; overflow: hidden; }
.lectura-pistas i::after { content: ""; position: absolute; inset: 0; background: var(--tx); opacity: .85; transform-origin: left; animation: llena .7s var(--ease) both; clip-path: polygon(0 0, var(--w) 0, calc(var(--w) - 8px) 100%, 0 100%); }
.lectura-pistas li.is-foco i::after { background: var(--ac); }
@keyframes pista { from { opacity: 0; transform: translateY(6px); } }
@keyframes llena { from { transform: scaleX(0); } }
.lectura-nota { color: var(--mu); font-size: 15px; }
.lectura-nota:empty { display: none; }

.guia { display: grid; gap: 16px; background: var(--sf); border: 1px solid var(--ln); padding: clamp(24px, 3vw, 36px); }
.guia-cab { display: grid; gap: 8px; font-size: 13px; color: var(--mu); }
.guia-barra { display: block; height: 3px; background: var(--ln); }
.guia-barra i { display: block; height: 100%; width: 20%; background: var(--tx); transition: width .35s var(--ease); }
.guia-paso { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; animation: pista .35s var(--ease) both; }
.guia-paso legend { font-stretch: 72%; font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; margin-bottom: 12px; padding: 0; }
.guia-ayuda { font-size: 14px; color: var(--mu); }
.guia-sub { font-size: 14px; color: var(--tx); margin-top: 6px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones-lista { display: grid; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones span {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--ln2); border-radius: 2px; font-size: 15px;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.opciones input[type="checkbox"] + span::before { content: ""; flex: none; width: 12px; height: 12px; border: 1px solid var(--mu); }
.opciones input[type="checkbox"]:checked + span::before { background: var(--bg); border-color: var(--bg); box-shadow: inset 0 0 0 2px var(--tx); }
.opciones label:hover span { border-color: var(--tx); }
.opciones input:checked + span { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.opciones input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 2px; }
.guia .campo { font-size: 14px; color: var(--mu); margin-top: 4px; }
.guia .campo span { color: #8A8D88; }
.guia input[type="text"], .guia input[type="email"], .guia input[type="tel"], .guia textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 2px;
  background: var(--bg); border: 1px solid var(--ln2); color: var(--tx); font: inherit;
}
.guia textarea { resize: vertical; }
.guia ::placeholder { color: #8A8D88; }
.guia input:focus, .guia textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac); }
.guia input[aria-invalid="true"] { border-color: var(--err); }
.guia-nav { display: flex; gap: 10px; justify-content: flex-end; }
.form-error { display: flex; gap: 8px; align-items: baseline; color: var(--err); font-size: 14px; }
.form-error::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--err); }
.form-error[hidden] { display: none; }
.form-ok { display: grid; gap: 10px; }
.form-ok b { font-stretch: 72%; font-weight: 700; font-size: 28px; line-height: 1.1; }
.form-ok p { color: var(--mu); }

/* ---------- pie ---------- */
.pie-pagina { border-top: 1px solid var(--ln); padding: 72px 0 40px; background: #15171A; }
.pie-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pie-marca img { height: 27px; width: auto; margin-bottom: 18px; }
.pie-marca p { color: var(--mu); font-size: 15px; max-width: 40ch; }
.pie-grid h4 { font-size: 13px; font-weight: 600; color: var(--mu); margin-bottom: 14px; }
.pie-grid ul + h4 { margin-top: 28px; }
.pie-grid li { font-size: 15px; padding: 3px 0; }
.pie-grid ul a { text-decoration: none; opacity: .85; }
.pie-grid ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--mu); }
.pie-legal a { color: var(--mu); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta { margin-left: auto; }
  :root { --nav-h: 64px; }
  .hero-grid, .confianza, .preguntas, .cierre-grid { grid-template-columns: minmax(0, 1fr); }
  .tres { grid-template-columns: 1fr; }
  .lectura { display: none; }
  .mapa-shell { height: auto; display: flex; flex-direction: column; }
  #mapbox { position: relative; height: 440px; }
  .mapa-fallback { position: relative; min-height: 440px; }
  .mapa-ley { position: static; order: 2; max-width: none; justify-content: flex-start; border-width: 1px 0 0; }
  .red { position: static; order: 3; width: auto; border-width: 1px 0 0; }
  .red-lista { grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); overflow-x: auto; border-top: 0; gap: 6px; }
  .red-lista button { border: 1px solid var(--ln); }
  .mapa-shell .mapboxgl-ctrl-bottom-right { bottom: 0; }
  .mapa-shell .mapboxgl-ctrl-bottom-left { left: 0; }
  .mb-est em { display: none; }
  .modulos a { grid-template-columns: 1fr; gap: 6px; }
  .industrias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-cols { grid-template-columns: 1fr; }
  .play-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie-marca { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-cta { padding: 0 14px; font-size: 14px; min-height: 40px; }
  .nav-logo img { height: 22px; }
  .hero-datos { gap: 20px; }
  .hero-datos b { font-size: 28px; }
  .industrias { grid-template-columns: 1fr; }
  .filas div { grid-template-columns: 1fr; gap: 4px; }
  .mapa3d .rot:not([aria-pressed="true"]) { display: none; }
  .ficha { position: static; width: auto; margin-top: 8px; }
  .mapa3d-chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .faq details p { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
