/* ==========================================================================
   ARMASEC — Hoja de Estilos Principal (main.css)
   Revisión Institucional: Agosto 2026
   ========================================================================== */

:root {
  /* Paleta Táctica Institucional */
  --ink: #1D1D1F;
  --txt: #3A3A3D;
  --muted: #68686D;
  --paper: #F5F5F7;
  --paper-w: #F7F6F3;
  --graf: #2E3238;
  --graf-d: #22262B;
  --acero: #4F6C86;
  --acero-fill: #5C7A95;
  --acero-l: #7FA0B8;
  --ice: #A9C0D2;
  --ice-txt: #C9D6E0;
  --sage: #4C5F4D;
  --sage-fill: #566A57;
  --ok: #2F7D55;
  --ok-bg: rgba(47, 125, 85, 0.12);
  --amber: #B4831F;
  --amber-bg: rgba(180, 131, 31, 0.14);
  --danger: #B03A4C;
  --danger-bg: rgba(176, 58, 76, 0.12);
  --line: #E4E4E7;
  --line-s: #EDEDF0;
  --sh: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --sh-l: 0 26px 64px rgba(29, 29, 31, 0.14);
  --ez: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset y Normalización Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--txt);
  background-color: #FFFFFF;
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--acero);
  text-decoration: none;
  transition: color 0.2s var(--ez);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  letter-spacing: -0.024em;
  line-height: 1.15;
  font-weight: 700;
}

:focus-visible {
  outline: 2.5px solid var(--acero);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acero);
  display: block;
  margin-bottom: 13px;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ez), color 0.2s var(--ez), border-color 0.2s var(--ez), box-shadow 0.2s var(--ez), transform 0.15s var(--ez);
}

.b1 {
  background: var(--graf);
  color: #FFFFFF;
  border-color: var(--graf);
}

.b1:hover {
  background: var(--graf-d);
  border-color: var(--graf-d);
  box-shadow: 0 6px 18px rgba(34, 38, 43, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.b2 {
  background: #FFFFFF;
  color: var(--graf);
  border-color: #D9D9DE;
}

.b2:hover {
  border-color: var(--graf);
  background: #FAFAFB;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── Navegación Institucional ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: auto;
  border-radius: 6px;
}

.wm {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}

.wm span {
  color: var(--acero);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 20px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--txt);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-actions .btn {
  padding: 9px 20px;
  font-size: 14.5px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 940px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    gap: 16px;
    display: none;
    box-shadow: var(--sh);
    margin-left: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    width: 100%;
    padding: 6px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ── Marco de Teléfono Táctico ── */
.phone {
  width: 290px;
  background: #16181B;
  border-radius: 42px;
  padding: 9px;
  box-shadow: var(--sh-l), 0 0 0 1.5px #34383D;
  position: relative;
  flex-shrink: 0;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 19px;
  background: #16181B;
  border-radius: 12px;
  z-index: 3;
}

.scr {
  border-radius: 34px;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
  min-height: 556px;
  display: flex;
  flex-direction: column;
}

.scr-top {
  height: 72px;
  background: var(--graf);
  display: flex;
  align-items: flex-end;
  padding: 0 18px 10px;
  flex-shrink: 0;
}

.scr-top .st-txt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-txt);
}

/* Credencial dentro del teléfono */
.cc {
  background: var(--graf);
  padding: 0 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 15px 15px 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.cc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.cc-h .lb {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 125, 85, 0.12);
  color: #256A47;
}

.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

.cc-who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cc-av {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--acero);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.cc-who .n {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cc-who .r {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.cc-rows {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.cc-r {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 2px 0;
}

.cc-r .k {
  color: var(--muted);
}

.cc-r .v {
  font-weight: 600;
  color: var(--ink);
}

.cc-r .v.m {
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.cc-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
}

.cc-f .k {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cc-f .v {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--acero);
}

.qr {
  width: 32px;
  height: 32px;
}

.cc-extra {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 11px;
}

.ce-h {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-txt);
  margin-bottom: 6px;
}

.ce-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 3px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ce-r:first-of-type {
  border-top: none;
}

.ce-i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acero-l);
  margin-right: 6px;
  flex-shrink: 0;
}

.ce-n {
  flex: 1;
}

.ce-n b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
}

.ce-s {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ice-txt);
}

.cc-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  background: var(--acero);
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
}

.cc-note {
  margin-top: 8px;
  font-size: 8.5px;
  color: var(--ice-txt);
  text-align: center;
  opacity: 0.8;
}

/* Pantalla de Verificación en Teléfono */
.vf {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vf h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vf .sb {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}

.idbox {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  margin-bottom: 12px;
}

.id-face {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--acero-fill);
  flex-shrink: 0;
  position: relative;
}

.id-face::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.id-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.id-lines i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #D2D4D8;
}

.id-lines i:nth-child(1) { width: 85%; }
.id-lines i:nth-child(2) { width: 65%; }
.id-lines i:nth-child(3) { width: 75%; }
.id-lines i:nth-child(4) { width: 45%; }

.vf-steps {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
}

.vf-st {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 10px;
  color: var(--txt);
  border-bottom: 1px solid var(--line-s);
}

.vf-st:last-child {
  border-bottom: none;
}

.vf-st .tk {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(47, 125, 85, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vf-st .tk svg {
  width: 9px;
  height: 9px;
  stroke: var(--ok);
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vf-st .tk.w {
  background: rgba(180, 131, 31, 0.14);
}

.vf-st .tk.w i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.vf-st .tm {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.vf-docs {
  margin-top: 14px;
  background: var(--paper);
  border-radius: 11px;
  padding: 10px 11px;
}

.vfd-h {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.vfd-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10.5px;
  color: var(--txt);
}

.vfd-r:first-of-type {
  border-top: none;
}

.vfd-s {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.vfd-s.ok {
  background: rgba(47, 125, 85, 0.12);
  color: #256A47;
}

.vfd-s.w {
  background: rgba(180, 131, 31, 0.14);
  color: #8A6417;
}

/* ── Ventana de Escritorio (Tablero de Control) ── */
.win {
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--sh-l);
  border: 1px solid var(--line);
  background: #FFFFFF;
  width: 100%;
  max-width: 520px;
}

.win-bar {
  height: 36px;
  background: #F1F1F4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D5D5DA;
}

.win-bar .url {
  margin-left: 12px;
  flex: 1;
  height: 20px;
  border-radius: 5px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.dash {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.side {
  background: #FAFAFB;
  border-right: 1px solid var(--line);
  padding: 15px 12px;
}

.side .sh {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.side a {
  display: block;
  font-size: 11.5px;
  color: var(--txt);
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
  cursor: default;
}

.side a.on {
  background: var(--graf);
  color: #FFFFFF;
  font-weight: 600;
}

.dbody {
  padding: 16px 18px 18px;
}

.dhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.dhead h6 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.018em;
}

.dhead .c {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.dstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 15px;
}

.dstat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.dstat .n {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dstat .l {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

.dstat.a .n { color: var(--amber); }
.dstat.g .n { color: var(--ok); }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 500;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-s);
  font-size: 11.5px;
  color: var(--txt);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

.pn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pav {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: #FFFFFF;
  background: #5C6B78;
}

.pav.b { background: #4F6C86; }
.pav.c { background: #566A57; }
.pav.d { background: #6E5F70; }
.pav.e { background: #7A6A55; }

.pn b {
  font-weight: 600;
  color: var(--ink);
  font-size: 11.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.tag.v { background: rgba(47, 125, 85, 0.11); color: #256A47; }
.tag.v i { background: var(--ok); }
.tag.p { background: rgba(180, 131, 31, 0.13); color: #8A6417; }
.tag.p i { background: var(--amber); }
.tag.r { background: rgba(79, 108, 134, 0.12); color: #3F5A72; }
.tag.r i { background: var(--acero); }

.mn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .side { display: none; }
  .dash { grid-template-columns: 1fr; }
}

/* ── Hero Institucional ── */
.hero {
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(52px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 108, 134, 0.09), rgba(79, 108, 134, 0) 65%);
  pointer-events: none;
}

.hero-g {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero .sub {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--txt);
  max-width: 30em;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-fine {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.hero-ph {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-g {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ── Franja de Capacidades ── */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.strip-g {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.st {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.st:last-child {
  border-right: none;
}

.st:not(:first-child) {
  padding-left: 24px;
}

.st h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.st p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .strip-g {
    grid-template-columns: 1fr 1fr;
  }

  .st {
    border-bottom: 1px solid var(--line);
    padding: 20px 18px 20px 0;
  }

  .st:nth-child(2n) {
    border-right: none;
    padding-left: 18px;
  }

  .st:nth-child(2n+1) {
    padding-left: 0;
  }

  .st:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 520px) {
  .strip-g {
    grid-template-columns: 1fr;
  }

  .st {
    border-right: none;
    padding: 18px 0 !important;
  }

  .st:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .st:last-child {
    border-bottom: none;
  }
}

/* ── Secciones y Bloques de Funcionalidad ── */
section {
  padding: clamp(64px, 7vw, 100px) 0;
}

.head {
  max-width: 640px;
  margin-bottom: clamp(34px, 4vw, 50px);
}

.head h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 13px;
}

.head p {
  font-size: 17px;
  color: var(--muted);
}

/* Bloques alternados */
.feat {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.feat.l {
  grid-template-columns: 0.95fr 1.05fr;
}

.feat.r {
  grid-template-columns: 1.05fr 0.95fr;
}

.feat + .feat {
  margin-top: clamp(56px, 6.5vw, 92px);
}

.feat h3 {
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}

.feat .ld {
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 30em;
}

.pts {
  list-style: none;
}

.pts li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--txt);
  line-height: 1.45;
}

.pts li b {
  font-weight: 600;
  color: var(--ink);
}

.pts li .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acero-l);
  flex-shrink: 0;
  margin-top: 8px;
}

.mediabox {
  display: flex;
  justify-content: center;
}

.note {
  margin-top: 22px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--muted);
  padding-left: 15px;
  border-left: 2px solid var(--acero-fill);
  line-height: 1.5;
  max-width: 28em;
}

@media (max-width: 900px) {
  .feat.l,
  .feat.r {
    grid-template-columns: 1fr;
  }

  .feat.l .mediabox {
    order: -1;
  }
}

/* ── Cómo Funciona (Pasos) ── */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
}

.paso {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh);
}

.paso .vis {
  height: 132px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.paso .txt {
  padding: 18px 20px 22px;
}

.paso .n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--acero);
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}

.paso h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.018em;
}

.paso p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Miniaturas de Pasos */
.mini {
  width: 100%;
  max-width: 186px;
}

.m-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.m-av {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  flex-shrink: 0;
  background: #5C6B78;
}

.m-av.b { background: #4F6C86; }
.m-av.c { background: #566A57; }

.m-ln {
  height: 4px;
  border-radius: 3px;
  background: #DDE0E4;
}

.m-tk {
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(47, 125, 85, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-tk svg {
  width: 8px;
  height: 8px;
  stroke: var(--ok);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-tk.g {
  background: #EDEDF0;
}

.m-ph {
  width: 74px;
  background: #16181B;
  border-radius: 13px;
  padding: 3px;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.m-ph .s {
  background: #FFFFFF;
  border-radius: 11px;
  overflow: hidden;
}

.m-ph .sb {
  height: 15px;
  background: var(--graf);
}

.m-ph .sc {
  padding: 7px 6px 9px;
}

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

  .paso .vis {
    height: 120px;
  }
}

/* ── Portabilidad Soberana (Fondo Oscuro Táctico) ── */
.port {
  background: var(--graf-d);
  color: #FFFFFF;
}

.port .head h2 {
  color: #FFFFFF;
}

.port .head p {
  color: var(--ice-txt);
}

.port-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3.5vw, 54px);
}

.pcol h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.pcol ul {
  list-style: none;
}

.pcol li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pcol li i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  background: rgba(169, 192, 210, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcol li i svg {
  width: 9px;
  height: 9px;
  stroke: var(--ice);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 780px) {
  .port-g {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ── Sectores Operativos ── */
.sect-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px 20px;
  background: #FFFFFF;
  transition: border-color 0.2s var(--ez), transform 0.2s var(--ez), box-shadow 0.2s var(--ez);
}

.sc:hover {
  border-color: #CFCFD6;
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.sc svg {
  width: 28px;
  height: 28px;
  stroke: var(--acero);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.sc h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.sc p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .sect-g {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .sect-g {
    grid-template-columns: 1fr;
  }
}

/* ── Gobernanza de Datos y Marco Legal ── */
.datos {
  background: var(--paper-w);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dg {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.dlist {
  border-top: 1px solid #E2E0DA;
}

.dlist .di {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #E2E0DA;
  align-items: baseline;
}

.dlist .di .t {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-width: 180px;
  letter-spacing: -0.012em;
}

.dlist .di .d {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}

.marco {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62em;
}

.marco b {
  color: var(--txt);
  font-weight: 600;
}

@media (max-width: 820px) {
  .dg {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .dlist .di {
    flex-direction: column;
    gap: 3px;
  }

  .dlist .di .t {
    min-width: 0;
  }
}

/* ── FAQ (Preguntas Frecuentes) ── */
.faq {
  max-width: 790px;
}

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 40px 19px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.016em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s var(--ez);
}

details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

summary:hover {
  color: var(--acero);
}

details .a {
  padding: 0 48px 20px 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
}

details .a b {
  color: var(--ink);
  font-weight: 600;
}

details .a p + p {
  margin-top: 9px;
}

/* ── Contacto Institucional ── */
.contacto {
  background: var(--paper);
}

.cg {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(34px, 4.5vw, 58px);
  align-items: start;
}

.ci h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 13px;
}

.ci p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 25em;
}

.dat {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.dat:last-of-type {
  border-bottom: 1px solid var(--line);
}

.dat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 64px;
}

.dat a {
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

form {
  background: #FFFFFF;
  border: 1px solid var(--line-s);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--sh);
}

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fg {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

label em {
  font-style: normal;
  color: var(--acero);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 11px 14px;
  border: 1.5px solid #D8D8DC;
  border-radius: 10px;
  background: #FFFFFF;
  outline: none;
  appearance: none;
  transition: border-color 0.18s var(--ez), box-shadow 0.18s var(--ez);
}

input::placeholder,
textarea::placeholder {
  color: #A1A1A6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--acero);
  box-shadow: 0 0 0 3.5px rgba(79, 108, 134, 0.13);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

select {
  padding-right: 42px;
  cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2368686D' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.err {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 5px;
  font-weight: 500;
}

.err.on {
  display: block;
}

.fnote {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.5;
}

.fnote button {
  background: none;
  border: none;
  font: inherit;
  color: var(--acero);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.stat {
  display: none;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.stat.on {
  display: block;
}

.stat.ok {
  background: #F0F7F3;
  color: #245F41;
  border: 1px solid #CBE3D8;
}

.stat.warn {
  background: #FBF6EA;
  color: #6E5210;
  border: 1px solid #EEDFBE;
}

.stat.bad {
  background: #FCF2F3;
  color: #8E2E3D;
  border: 1px solid #EED4D8;
}

.stat a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

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

  .fr {
    grid-template-columns: 1fr;
  }
}

/* ── Footer Institucional ── */
footer {
  background: var(--graf-d);
  color: rgba(255, 255, 255, 0.6);
  padding: 54px 0 30px;
}

.fg-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.fbrand img {
  width: 31px;
  background: #FFFFFF;
  padding: 2.5px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.fbrand .w {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.012em;
}

.fbrand .w span {
  color: var(--acero-l);
}

.fbrand p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  max-width: 25em;
  line-height: 1.55;
}

.fcol h5 {
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.fcol a,
.fcol button {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 9px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s var(--ez);
}

.fcol a:hover,
.fcol button:hover {
  color: #FFFFFF;
}

.fbot {
  padding-top: 22px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
}

.fbot p + p {
  margin-top: 7px;
}

@media (max-width: 860px) {
  .fg-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .fbrand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .fg-top {
    grid-template-columns: 1fr;
  }
}

/* ── Diálogo Modal Accesible (Aviso de Privacidad) ── */
dialog {
  margin: auto;
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 640px;
  width: calc(100% - 36px);
  box-shadow: var(--sh-l);
  color: var(--txt);
  background: #FFFFFF;
}

dialog::backdrop {
  background: rgba(29, 29, 31, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.dh h3 {
  font-size: 18px;
  font-weight: 700;
}

.dx {
  background: var(--paper);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--txt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dx:hover {
  background: #E5E5EA;
}

.db {
  padding: 22px 26px 28px;
  max-height: 64vh;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.62;
}

.db h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 6px;
}

.db h4:first-child {
  margin-top: 0;
}

.db p + p {
  margin-top: 8px;
}

.db ul {
  margin: 7px 0 0 18px;
}

.db li {
  margin-bottom: 4px;
}

.db b {
  color: var(--ink);
  font-weight: 600;
}

.db .upd {
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Scroll Reveal Animaciones ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ez), transform 0.65s var(--ez);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ── Vistas Legales Independientes (Aviso de Privacidad y TyC) ── */
.legal-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-breadcrumb a {
  color: var(--acero);
  font-weight: 500;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-breadcrumb span.sep {
  color: #C0C0C6;
}

.legal-hero h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-meta .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--graf);
  color: #FFFFFF;
}

.legal-container {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 96px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 4vw, 54px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--txt);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.35;
  transition: background 0.15s var(--ez), color 0.15s var(--ez);
}

.legal-toc a:hover {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.legal-content {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--sh);
}

.legal-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-s);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 15.5px;
  color: var(--txt);
  line-height: 1.68;
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 12px 0 16px 20px;
}

.legal-section li {
  font-size: 15px;
  color: var(--txt);
  line-height: 1.62;
  margin-bottom: 8px;
}

.legal-section b {
  color: var(--ink);
  font-weight: 600;
}

.legal-callout {
  border-left: 3.5px solid var(--acero);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--txt);
  line-height: 1.55;
}

.legal-callout.alert {
  border-left-color: var(--amber);
  background: #FCF9F2;
}

.legal-callout.success {
  border-left-color: var(--ok);
  background: #F2F8F5;
}

.legal-simplified-box {
  background: var(--paper-w);
  border: 1px solid #E2E0DA;
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 36px;
}

.legal-simplified-box h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-simplified-box p {
  font-size: 14px;
  color: var(--txt);
  line-height: 1.6;
}

@media (max-width: 940px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }
}
