/* ============================================================================
   /seguridad — «El viaje de un dato»
   Todo acotado a .seguridad-page / .sg-* para no pisar el resto del sitio
   (misma razón por la que la hoja de ops va acotada bajo .ops en know-how).
   Server-rendered = estado FINAL: esta hoja pinta la página completa y legible;
   seguridad.js solo resta (estados iniciales) cuando puede animar.
   ============================================================================ */

/* Sin JS no hay IntersectionObserver que marque .is-visible: el .reveal global
   (opacity:0 en styles.css) dejaría en blanco el contenido nuclear de ESTA
   página. Gate local: sin la clase js del no-FOUC, todo visible. */
html:not(.js) .seguridad-page .reveal { opacity: 1; transform: none; transition: none; }

.seguridad-page {
  /* Easings M3 del proyecto: en styles.css viven scoped a #sistema, aquí se
     redeclaran para poder usarlos sin fallback en toda la página. */
  --ez-deco: cubic-bezier(.05, .7, .1, 1);
  --ez-move: cubic-bezier(.2, 0, 0, 1);
  --ez-snap: cubic-bezier(.34, 1.56, .64, 1);
  --ez-aura: cubic-bezier(.16, 1, .3, 1);
  --sg-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Papeles de permiso (informativos, nunca solo color: llevan letra o forma). */
  --sg-leer: #9fb6d9;
  --sg-escribir: var(--brand);
}

/* ---------- Hero ---------- */
.sg-hero { padding-bottom: clamp(30px, 5vh, 60px); }
.sg-hero-head { max-width: 860px; }
.sg-hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: 22px; text-wrap: balance;
}
.sg-hero-title-2 { color: var(--crema); }
.sg-hero-lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; max-width: 38em; }
.sg-hero-cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  font-family: var(--body); font-weight: 500; font-size: 14.5px; color: var(--brand);
  text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s var(--ez-move);
}
.sg-hero-cue:hover { color: var(--fg); }
.sg-hero-cue svg { transition: transform .3s var(--ez-snap); }
.sg-hero-cue:hover svg { transform: translateY(3px); }

/* Chip «ejemplo ilustrativo» (patrón del know-how: Demo · datos simulados). */
.sg-demo-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .04em;
  color: var(--muted-dim); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; background: var(--surface);
}
.sg-demo-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

/* ============================================================================
   LA CAPA DE CONFIANZA — diapositivas al estilo SOMOS
   Mismo lenguaje que la escena SOMOS de la home (Inter Tight 400, crema,
   acento azul, tracking -.03em) pero el relevo NO lo dispara el scroll: lo
   dispara un botón. Transición teatral en seguridad.js (GSAP + gate SFX).
   Sin JS: las diapositivas quedan apiladas y legibles (regla FROM-only).
   ============================================================================ */
.sg-caps { margin-top: clamp(40px, 6vh, 68px); }
.sg-caps-rule { height: 1px; background: rgba(255, 252, 225, .18); transform-origin: left center; }
.sg-caps-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding: 18px 0 10px;
}
.sg-caps-label { margin: 0; }
.sg-caps-count {
  font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: .14em;
  color: var(--muted-dim); font-variant-numeric: tabular-nums;
}
/* El escenario: alto reservado por la diapositiva más alta (sin salto al pasar). */
.sg-caps-stage { position: relative; }
.sg-slide { margin: 0; }
/* Modo estático (sin JS): apiladas con aire entre ellas. */
.sg-slide + .sg-slide { margin-top: clamp(30px, 4vh, 52px); }
/* Modo diapositiva (lo enciende seguridad.js): superpuestas en el mismo sitio. */
.sg-caps--anim .sg-caps-stage { min-height: var(--sg-stage-h, 46svh); }
.sg-caps--anim .sg-slide { position: absolute; inset: 0 0 auto 0; margin: 0; }
.sg-caps--anim .sg-slide[hidden] { display: block; visibility: hidden; }

/* TIPOGRAFÍA SOMOS: la display de marca en peso REGULAR, crema, tracking cerrado.
   Dos tamaños: el grande para los titulares de componente y los remates cortos;
   el de lectura para los párrafos largos (a 68px un párrafo de 60 palabras es un
   muro — medido en la propia página). */
.sg-slide-big, .sg-slide-p, .sg-slide-num {
  font-family: var(--display); font-weight: 400; letter-spacing: -.03em;
  color: var(--crema); text-align: left; hyphens: none; text-wrap: pretty; margin: 0;
}
.sg-slide-big { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.1; max-width: 24ch; }
.sg-slide-p { font-size: clamp(23px, 2.5vw, 38px); line-height: 1.28; max-width: none; color: var(--crema); }
/* Cuando la diapositiva LISTA algo (número + titular + explicación), el cuerpo va
   en gris — el mismo patrón que los puntos de Know How (.point p usa --muted):
   el titular manda y el cuerpo acompaña. Las diapositivas sin titular (apertura y
   remates) se quedan en crema: ahí el párrafo ES el protagonista. */
.sg-slide-big ~ .sg-slide-p { color: var(--muted); font-size: clamp(20px, 2vw, 30px); line-height: 1.36; }
.sg-slide-p + .sg-slide-p { margin-top: .7em; }
.sg-slide-num {
  font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; color: var(--brand);
  margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.sg-hl { color: var(--brand); }
/* Palabras del reparto teatral: sin will-change al reposo para que el texto
   re-rasterice nítido (misma disciplina que .somos-w). */
.sg-w { will-change: auto; display: inline-block; }

/* Los controles: el botón de avance vive a la DERECHA (el gesto de «pasar
   diapositiva»); el de volver aparece desde la segunda. */
.sg-caps-nav { display: flex; align-items: center; gap: 12px; margin-top: clamp(26px, 4vh, 44px); }
.sg-caps-btn {
  width: 52px; height: 52px; border-radius: 999px; flex: none;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: border-color .22s var(--ez-move), background-color .22s var(--ez-move), transform .22s var(--ez-move);
}
.sg-caps-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--surface-2); }
.sg-caps-btn:active:not(:disabled) { transform: scale(.94); }
.sg-caps-btn:disabled { opacity: .32; cursor: default; }
.sg-caps-btn--next { margin-left: auto; }
.sg-caps-dots { display: flex; gap: 7px; align-items: center; }
.sg-caps-dot {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 252, 225, .26); cursor: pointer;
  transition: background-color .22s var(--ez-move), transform .22s var(--ez-move);
}
.sg-caps-dot[aria-current="true"] { background: var(--brand); transform: scale(1.5); }
.sg-caps-btn:focus-visible, .sg-caps-dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ============================================================================
   EL DOCUMENTO — «Un día en la vida de una factura» (mapa + escenas)
   OCULTO por defecto: lo despliega el botón del hero, teatralmente (seguridad.js).
   Oscuro y con la tipografía de marca: es la misma web, no un PDF pegado.
   Sin JS queda VISIBLE (el botón se oculta): la página cuenta la historia entera.
   ============================================================================ */
.sg-doc {
  --d-tinta: var(--crema);
  --d-suave: var(--muted);
  --d-caja: var(--surface);        /* fondo de paneles y de ilustraciones */
  --d-linea: var(--border);
  --d-azul: #2b4bd8;               /* relleno de estación: blanco encima pasa AA (7,6:1) */
  --d-ambar: var(--warn);          /* «aquí se decide»: veto y todo-o-nada */
  padding-top: clamp(50px, 7vh, 80px);
}
.sg-doc[hidden] { display: none; }
.sg-doc h2, .sg-doc h3 { font-family: var(--display); color: var(--d-tinta); }
.sg-doc-head { max-width: 62ch; }
.sg-doc h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.06;
  letter-spacing: -.035em; text-wrap: balance; margin: 0 0 12px;
}
.sg-doc-sub { color: var(--d-suave); font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.6; margin: 0; max-width: 62ch; }

/* ---------- El mapa del recorrido ---------- */
.sg-mapa { margin: clamp(36px, 5vh, 56px) 0 clamp(44px, 6vh, 68px); }
.sg-mapa-t {
  font-family: var(--body); font-weight: 500; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 16px;
}
.sg-diagwrap { overflow-x: auto; padding-bottom: 6px; }
.sg-diag {
  min-width: 880px; display: grid; grid-template-columns: 108px 1fr 196px;
  gap: 16px; font-family: var(--body); font-size: 12.5px; line-height: 1.3;
}
.sg-panel {
  border-radius: 16px; background: var(--d-caja); border: 1px solid var(--d-linea);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px; text-align: center; font-weight: 500; font-size: 14px; color: var(--d-tinta);
}
.sg-panel small { display: block; font-weight: 400; color: var(--d-suave); margin-top: 2px; }
.sg-panel-ico {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--d-linea); display: grid; place-items: center; color: var(--brand);
}
.sg-capa {
  border-radius: 16px; background: var(--d-caja); border: 1px solid var(--d-linea);
  position: relative; padding: 12px 16px; min-height: 296px;
}
.sg-capa-t {
  font-family: var(--display); font-size: 16px; font-weight: 600; text-align: center;
  margin: 4px 0 0; letter-spacing: -.02em; color: var(--d-tinta);
}
/* La cinta en U: el dato entra arriba, gira en el codo y vuelve por abajo. */
.sg-rib-top, .sg-rib-bot { position: absolute; height: 12px; background: var(--surface-2); border-radius: 6px; z-index: 0; }
.sg-rib-top { top: 90px; left: -24px; right: 86px; }
.sg-rib-bot { top: 204px; left: 4px; right: 86px; }
.sg-rib-bend {
  position: absolute; right: 30px; top: 90px; width: 64px; height: 126px;
  border: 12px solid var(--surface-2); border-left: none; border-radius: 0 72px 72px 0; z-index: 0;
}
.sg-rib-arrow {
  position: absolute; left: -34px; top: 195px; width: 0; height: 0;
  border: 15px solid transparent; border-right: 22px solid var(--surface-2); z-index: 0;
}
.sg-row-top, .sg-row-bot { position: absolute; left: 12px; right: 102px; display: flex; align-items: center; gap: 12px; z-index: 1; }
.sg-row-top { top: 72px; }
.sg-row-bot { top: 188px; flex-direction: row-reverse; }
.sg-chipd { background: var(--crema); color: #0b0e14; border-radius: 9px; padding: 9px 11px; font-weight: 600; flex: none; }
.sg-box { background: var(--d-azul); color: #fff; border-radius: 10px; padding: 9px 10px; font-weight: 500; text-align: center; flex: 1; }
.sg-bend-box {
  position: absolute; right: 44px; top: 140px; z-index: 1; background: var(--d-ambar);
  color: #0b0e14; border-radius: 10px; padding: 9px 11px; font-weight: 600; text-align: center;
}
.sg-gate { position: absolute; right: 28px; bottom: 8px; color: var(--d-tinta); font-weight: 500; text-align: center; font-size: 12px; z-index: 1; }
.sg-gate::before { content: ""; display: block; width: 1px; height: 22px; background: var(--d-linea); margin: 0 auto 4px; }
.sg-erp { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sg-erp-t { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; padding-left: 2px; color: var(--d-tinta); }
.sg-ecard { background: var(--surface-2); border: 1px solid var(--d-linea); border-radius: 12px; padding: 10px 12px; font-weight: 500; font-size: 12.5px; color: var(--text); }
.sg-ecard small { display: block; font-weight: 400; color: var(--d-suave); margin-top: 1px; }
/* La leyenda enlaza el mapa con las escenas: las horas SON las anclas. */
.sg-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-size: 13.5px; color: var(--d-suave); }
.sg-legend-lbl { color: var(--d-tinta); font-weight: 500; }
.sg-legend b { color: var(--d-tinta); font-weight: 500; font-variant-numeric: tabular-nums; }
.sg-legend a { color: var(--brand); text-decoration: none; }
.sg-legend a:hover { text-decoration: underline; }

/* ---------- Las escenas ---------- */
.sg-grid { display: grid; grid-template-columns: 196px 1fr; gap: 0 clamp(28px, 4vw, 46px); }
.sg-rail-datos { border-right: 1px solid var(--d-linea); padding-right: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 44px; }
.sg-stat { min-width: 148px; }
.sg-stat-ico {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--d-linea); display: grid; place-items: center; color: var(--brand); margin-bottom: 12px;
}
.sg-stat p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--muted); }
.sg-stat b { color: var(--brand); font-weight: 500; }
.sg-stat sup { color: var(--muted-dim); }
.sg-escenas { min-width: 0; }
.sg-escena { margin-bottom: clamp(40px, 6vh, 58px); }
.sg-escena h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 12px; }
.sg-hora { color: var(--muted-dim); font-variant-numeric: tabular-nums; }
.sg-escena p { font-size: 15.5px; line-height: 1.7; margin: 0 0 1em; color: var(--muted); }
.sg-escena p b { color: var(--text); font-weight: 500; }
.sg-escena p:last-child { margin-bottom: 0; }
.sg-escena sup { color: var(--muted-dim); font-size: .72em; }

/* Ilustraciones planas de la familia del mapa (formas, nunca stock). */
.sg-illo {
  height: 148px; border-radius: 14px; background: var(--d-caja); border: 1px solid var(--d-linea);
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 16px; overflow: hidden;
}
.sg-illo .i-sun { width: 68px; height: 68px; border-radius: 50%; background: var(--d-ambar); }
.sg-illo .i-doc { width: 54px; height: 70px; background: var(--surface-2); border: 2.5px solid var(--crema); border-radius: 6px; position: relative; }
.sg-illo .i-doc::before { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 4px; background: var(--brand); box-shadow: 0 10px 0 var(--border), 0 20px 0 var(--border); }
.sg-illo .i-doc.flag::after { content: ""; position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--d-ambar); border: 2.5px solid var(--bg); }
.sg-illo .i-arrow { width: 42px; height: 7px; background: var(--crema); position: relative; }
.sg-illo .i-arrow::after { content: ""; position: absolute; right: -10px; top: -6.5px; border: 10px solid transparent; border-left: 13px solid var(--crema); }
.sg-illo .i-stop { width: 60px; height: 60px; background: var(--d-ambar); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.sg-illo .i-check { width: 60px; height: 60px; border-radius: 50%; background: var(--crema); position: relative; }
.sg-illo .i-check::after { content: ""; position: absolute; left: 17px; top: 18px; width: 24px; height: 13px; border-left: 5px solid #0b0e14; border-bottom: 5px solid #0b0e14; transform: rotate(-45deg); }
.sg-illo .i-erp { width: 82px; height: 60px; background: var(--d-azul); border-radius: 8px; position: relative; }
.sg-illo .i-erp::before { content: ""; position: absolute; inset: 10px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--crema) 0 4px, transparent 4px 12px); opacity: .8; }

/* Mini-mapa localizador: el mapa grande en miniatura con la estación encendida. */
.sg-mm-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.sg-mm { position: relative; width: 172px; height: 56px; flex: none; background: var(--d-caja); border: 1px solid var(--d-linea); border-radius: 9px; }
.sg-mm i { position: absolute; background: var(--surface-2); border-radius: 3px; }
.sg-mm .mm-lt { left: 8px; top: 14px; width: 14px; height: 28px; }
.sg-mm .mm-rt { right: 8px; top: 14px; width: 14px; height: 28px; }
.sg-mm .mm-bt { left: 26px; top: 19px; right: 40px; height: 4px; }
.sg-mm .mm-bb { left: 26px; top: 35px; right: 40px; height: 4px; }
.sg-mm .mm-bb.on { background: var(--brand); }
.sg-mm .mm-bd { right: 26px; top: 19px; width: 16px; height: 20px; background: none; border: 4px solid var(--surface-2); border-left: none; border-radius: 0 12px 12px 0; }
.sg-mm .mm-bd.y { border-color: var(--d-ambar); }
.sg-mm s { position: absolute; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: #3a4353; text-decoration: none; }
.sg-mm s.b { top: 31px; }
.sg-mm s.on { background: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .22); }
.sg-mm s.on.y { background: var(--d-ambar); box-shadow: 0 0 0 3px rgba(232, 181, 59, .22); }
.sg-mm-cap { font-size: 12.5px; color: var(--d-suave); }
.sg-mm-cap b { color: var(--brand); font-weight: 500; }
.sg-mm-cap b.y { color: var(--d-ambar); }

.sg-cierre { border-top: 1px solid var(--d-linea); padding-top: 26px; margin-top: 4px; }
.sg-cierre p { font-size: 16px; line-height: 1.7; max-width: 66ch; margin: 0; color: var(--muted); }
.sg-cierre p b { color: var(--d-tinta); font-weight: 500; }
.sg-fnotes { border-top: 1px solid var(--d-linea); margin-top: 28px; padding-top: 14px; font-size: 11.5px; color: var(--muted-dim); line-height: 1.7; }

@media (max-width: 760px) {
  .sg-grid { grid-template-columns: 1fr; }
  .sg-rail-datos {
    border-right: none; border-bottom: 1px solid var(--d-linea);
    padding: 0 0 26px; margin-bottom: 30px;
    flex-direction: row; flex-wrap: wrap; gap: 24px;
  }
  .sg-stat { flex: 1 1 150px; }
  .sg-illo { height: 124px; }
  .sg-caps-btn { width: 46px; height: 46px; }
}

/* ---------- Pasaporte ---------- */
.sg-pass {
  max-width: 1020px; border: 1px solid var(--border); border-radius: 20px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-2) 60%, var(--surface) 100%);
  overflow: hidden;
}
.sg-pass-cover {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 36px);
  border-bottom: 1px solid var(--border);
}
.sg-pass-cover .sg-demo-chip { margin-top: 0; }
.sg-pass-kicker {
  font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--crema); margin-bottom: 8px;
}
.sg-pass-name { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.025em; }
.sg-pass-meta { color: var(--muted-dim); font-size: 13px; margin-top: 6px; }

.sg-pass-body { display: grid; grid-template-columns: 250px 1fr; }
.sg-pass-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--border); padding: 14px 0; }
.sg-pass-tab {
  display: flex; align-items: baseline; gap: 10px; text-align: left; width: 100%;
  font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted);
  background: none; border: none; border-left: 2px solid transparent;
  padding: 12px clamp(16px, 2vw, 24px); cursor: pointer;
  transition: color .2s var(--ez-move), border-color .2s var(--ez-move), background .2s var(--ez-move);
}
.sg-pass-tab span { font-family: var(--sg-mono); font-size: 11px; color: var(--muted-dim); }
.sg-pass-tab:hover { color: var(--fg); }
.sg-pass-tab[aria-selected="true"] { color: var(--fg); border-left-color: var(--brand); background: rgba(var(--brand-rgb), .06); }
.sg-pass-tab[aria-selected="true"] span { color: var(--brand); }

.sg-pass-pages { padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 38px); min-height: 340px; }
.sg-pass-h { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; margin-bottom: 14px; }
.sg-pass-p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; max-width: 46em; }
.sg-pass-p b { color: var(--text); font-weight: 600; }
.sg-pass-nota { color: var(--muted-dim); font-size: 13.5px; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 0; }
.sg-pass-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.sg-pass-lista { list-style: none; margin: 0 0 14px; padding: 0; }
.sg-pass-lista li { position: relative; color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 8px 0 8px 22px; }
.sg-pass-lista li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 2px; background: rgba(var(--brand-rgb), .55); }
.sg-pass-lista b { color: var(--text); font-weight: 600; }
.sg-visados { display: grid; gap: 10px; margin: 16px 0; }
.sg-visado {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: rgba(0, 0, 0, .25);
}
.sg-visado b { display: block; font-size: 14px; }
.sg-visado span:not(.sg-perm) { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sg-pass-foot { padding: 16px clamp(22px, 3.4vw, 36px); border-top: 1px solid var(--border); }
.sg-pass-foot p { color: var(--muted-dim); font-size: 13px; max-width: 60em; }

/* ---------- Responsabilidad compartida ---------- */
.sg-resp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px; overflow: hidden; }
.sg-resp-col { background: var(--bg); padding: clamp(24px, 3vw, 34px); }
.sg-resp-col h3 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.015em; margin-bottom: 16px; }
.sg-resp-col ul { list-style: none; margin: 0; padding: 0; }
.sg-resp-col li { position: relative; color: var(--muted); font-size: 14px; line-height: 1.55; padding: 7px 0 7px 18px; }
.sg-resp-col li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--cool), .35); }

/* ---------- Evidencia ---------- */
.sg-ev-h {
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted-dim);
  margin: clamp(38px, 5vh, 54px) 0 18px;
}
.sg-ev-h:first-of-type { margin-top: 0; }
.sg-ev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 1020px; }
.sg-ev-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.sg-ev-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sg-ev-card h4 { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; margin-bottom: 8px; }
.sg-ev-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.sg-estado {
  flex: 0 0 auto; font-family: var(--body); font-weight: 600; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted-dim); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}
.sg-estado--probado { color: var(--ok); border-color: rgba(70, 211, 154, .4); }
.sg-ev-prueba {
  font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.7vw, 19px);
  letter-spacing: -.015em; color: var(--crema); max-width: 44em;
  border-left: 2px solid rgba(var(--brand-rgb), .6); padding-left: 18px; margin-top: 22px;
}
.sg-ev-fuentes, .sg-ev-limites { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.sg-ev-fuentes li { color: var(--muted); font-size: 14.5px; line-height: 1.65; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sg-ev-fuentes b { color: var(--text); }
.sg-ev-fuentes a { display: block; color: var(--brand); font-size: 13px; margin-top: 4px; text-decoration: none; }
.sg-ev-fuentes a:hover { text-decoration: underline; }
.sg-ev-limites li { position: relative; color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 8px 0 8px 24px; }
.sg-ev-limites li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.sg-ev-pie { color: var(--muted-dim); font-size: 13.5px; margin-top: clamp(30px, 4vh, 44px); }
.sg-ev-pie a { color: var(--muted); }
.sg-ev-pie a:hover { color: var(--fg); }

/* ---------- Cierre ---------- */
/* Padding inferior extra: a scroll máximo el titular debe librar la cabecera
   fija (~77px) — el END del peak-end no puede quedar tapado (P20). */
.sg-cta { padding-bottom: clamp(140px, 20vh, 220px); }
.sg-cta-head { max-width: 760px; }
.sg-cta-btn { margin-top: 26px; }
.sg-cta-alt { color: var(--muted-dim); font-size: 14px; margin-top: 16px; }
.sg-cta-alt a { color: var(--muted); }
.sg-cta-alt a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .sg-pass-datos { grid-template-columns: 1fr; }
  .sg-pass-body { grid-template-columns: 1fr; }
  .sg-pass-tabs {
    flex-direction: row; overflow-x: auto; border-right: none;
    border-bottom: 1px solid var(--border); padding: 0 8px; scrollbar-width: none;
  }
  .sg-pass-tabs::-webkit-scrollbar { display: none; }
  .sg-pass-tab { width: auto; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 14px 14px; }
  .sg-pass-tab[aria-selected="true"] { border-left-color: transparent; border-bottom-color: var(--brand); background: none; }
  .sg-pass-pages { min-height: 0; }
  .sg-resp-grid { grid-template-columns: 1fr; }
  .sg-ev-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sg-hero-title { font-size: clamp(32px, 9.6vw, 38px); }
  .sg-apro-actions { flex-wrap: wrap; }
  .sg-final-controles { gap: 8px; }
  .sg-ctrl { font-size: 12.5px; padding: 8px 13px; }
}

/* Envoltorio del botón que despliega el documento (fuera de .sec-head para que
   ocupe el ancho de la sección y quede alineado con las diapositivas). */
.sg-unfold-wrap { margin-top: clamp(30px, 4vh, 48px); }
.sg-unfold { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.sg-unfold[hidden] { display: none; }
.sg-unfold svg { transition: transform .35s var(--ez-snap); }

/* ============================================================================
   APERTURA — el párrafo de entrada ES el titular (el h1 visible se retiró).
   Tamaño display al nivel de SOMOS, un punto por debajo, y ocupando casi toda
   la pantalla: la página empieza con UNA idea, no con una cabecera.
   ============================================================================ */
.sg-hero { padding-bottom: 0; }
.sg-hero-head {
  min-height: calc(88svh - var(--hdr-h, 79px));
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--somos-maxw, 1330px);
}
.sg-apertura {
  font-family: var(--display); font-weight: 400;
  /* Un escalón por debajo del SOMOS de la home (50→68px): aquí el párrafo es
     largo y a 68px se comería dos pantallas. */
  font-size: clamp(27px, 3.1vw, 46px);
  line-height: 1.16; letter-spacing: -.03em; color: var(--crema);
  /* Ancho COMPLETO del contenido: la línea llega hasta donde acaba «Cuéntanos tu
     caso» en la cabecera (medido). Sin max-width propio: manda el contenedor. */
  margin: 0; max-width: none; text-wrap: pretty; hyphens: none;
}
.sg-apertura + .sg-apertura { margin-top: .62em; }
/* La cifra en rojo suave: impacto sin agredir. --danger es el rojo de marca ya
   calibrado para leerse sobre fondo oscuro (6,2:1 sobre negro). */
.sg-cifra { color: var(--danger); }

/* La sección de diapositivas: aire arriba y abajo para que el bloque respire
   como los actos de SOMOS. */
.sg-caps-sec { padding-top: clamp(40px, 7vh, 84px); }
.sg-caps-sec .sg-caps { margin-top: 0; }
/* Aire entre el titular del componente y su explicación (iban pegados). */
.sg-slide-big + .sg-slide-p { margin-top: .5em; }

/* ============================================================================
   TIPOGRAFÍA DEL MOBILIARIO: los rótulos, contadores y leyendas van con la
   fuente de la CABECERA (--hdr-font, Satoshi) — es la que viste el chrome del
   sitio (nav, CTA, wordmark). Antes iban en Geist y cantaban.
   Lo que NO cambia: los titulares (Inter Tight, display) y el texto corrido de
   las escenas y las notas (Geist, body). Cada fuente en su papel.
   ============================================================================ */
.seguridad-page .sg-caps-label,
.seguridad-page .sg-caps-count,
.seguridad-page .sg-mapa-t,
.seguridad-page .sg-legend,
.seguridad-page .sg-mm-cap,
.seguridad-page .sg-hero-cue,
.seguridad-page .sg-demo-chip,
.seguridad-page .sg-caps-sec .sec-eyebrow { font-family: var(--hdr-font); }
/* Satoshi tiene la caja más ancha que Geist: sin bajar un poco el tracking, los
   rótulos en versalitas quedaban sueltos. */
.seguridad-page .sg-caps-label,
.seguridad-page .sg-mapa-t { letter-spacing: .12em; }

/* La flecha del hero: botón de verdad (lleva al centro de la capa). */
.sg-scroll-cue {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-top: clamp(30px, 5vh, 62px); margin-left: -8px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--muted-dim); transition: color .2s var(--ez-move), transform .3s var(--ez-snap);
}
.sg-scroll-cue:hover { color: var(--brand); transform: translateY(3px); }
.sg-scroll-cue:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ============================================================================
   ANTI-DESTELLO (pareja del script en línea de seguridad.html).
   Mientras `html.sg-armando` está puesta, el estado INICIAL de lo que animará
   seguridad.js no se pinta. Se usa `visibility` y no `display` donde importa el
   hueco: así el layout no salta cuando aparece.
   El script en línea lo pone antes del primer pintado y seguridad.js lo quita
   cuando ya ha dejado todo en su estado inicial — entre lo uno y lo otro no hay
   fotograma, porque ambas cosas ocurren en la misma tarea síncrona.
   ============================================================================ */
html.sg-armando .sg-apertura { visibility: hidden; }
html.sg-armando .sg-slide + .sg-slide { display: none; }
html.sg-armando [data-unfold] { display: none; }
