:root {
  --ink: #061a36;
  --navy: #001b3a;
  --blue: #0558d8;
  --teal: #036f78;
  --violet: #5630a5;
  --paper: #f4f7fb;
  --muted: #66738a;
  --line: #dbe3ef;
  --soft-blue: #6ee8ff;
  --gold: #ffd66b;
  --glow: 0 24px 70px rgba(5, 35, 77, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Archivo, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 18% 0, rgba(81,168,255,.18), transparent 32%), radial-gradient(circle at 100% 18%, rgba(3,111,120,.12), transparent 28%), var(--paper);
}

a { color: inherit; text-decoration: none; }
main { min-height: calc(100vh - 170px); }
h1, h2 { margin: 0; letter-spacing: -.04em; }

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 42px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(154,185,224,.45);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(4,28,64,.06);
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 300px; }
.brand-mark, .brand-mini {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #fff, #dceefe 45%, #0a5b96);
  color: var(--navy);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.65), 0 10px 28px rgba(10,91,150,.22);
}
.brand strong { display: block; font-size: 25px; letter-spacing: -.03em; }
.brand small { display: block; font-size: 12px; }
.brand-mini { width: 28px; height: 28px; border-radius: 9px; }

.nav { display: flex; gap: 30px; margin: auto; font-weight: 700; }
.nav a { padding: 28px 0 22px; border-bottom: 3px solid transparent; }
.nav a.active, .nav a:hover { color: var(--blue); border-color: var(--blue); }
.actions { display: flex; gap: 12px; align-items: center; }
.actions form { margin: 0; }
.nav-toggle { display: none; }

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #0562ef, #033fbd); color: white; border-color: #0a5de0; box-shadow: 0 10px 30px rgba(5,88,216,.25), inset 0 1px rgba(255,255,255,.22); }
.btn-ghost { background: rgba(255,255,255,.78); }
.full { width: 100%; }

.flash { margin: 16px auto 0; max-width: 1100px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.flash.success { background: #dff8e8; color: #0d6b32; }
.flash.error { background: #ffe6e6; color: #9b1414; }

.hero {
  min-height: 500px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 460px 190px;
  align-items: center;
  gap: 24px;
  padding: 58px 42px 70px;
  color: white;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,18,39,.96), rgba(0,35,63,.58)), url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=1800&q=80') center/cover;
}
.hero:before { content: ''; position: absolute; inset: auto -10% -45% -10%; height: 62%; background: radial-gradient(ellipse at center, rgba(75,191,255,.24), transparent 64%); filter: blur(4px); pointer-events: none; }
.hero:after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, black, transparent); pointer-events: none; }
.hero-orbit { position: absolute; border: 1px solid rgba(110,232,255,.26); border-radius: 50%; pointer-events: none; box-shadow: 0 0 40px rgba(110,232,255,.18); }
.orbit-a { width: 460px; height: 460px; right: 330px; top: -220px; }
.orbit-b { width: 250px; height: 250px; right: 46px; bottom: 24px; border-style: dashed; }
.hero-copy, .hero-card, .seal { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: #1c74ff; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
.hero .eyebrow { color: #8bdcff; }
.hero h1 { max-width: 520px; font-size: clamp(42px, 6vw, 72px); line-height: .96; }
.hero p { max-width: 460px; font-size: 18px; line-height: 1.55; }
.rule { display: block; width: 72px; height: 4px; background: linear-gradient(90deg, #1782ff, var(--soft-blue)); margin: 18px 0; border-radius: 99px; box-shadow: 0 0 18px rgba(110,232,255,.7); }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-metrics span { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.09); border-radius: 999px; padding: 10px 14px; backdrop-filter: blur(10px); color: #dceeff; }
.hero-metrics b { color: white; font-family: 'Chakra Petch'; font-size: 20px; margin-right: 4px; }

.hero-card, .identity-card {
  border: 1px solid rgba(180,225,255,.55);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(10,43,80,.9), rgba(8,88,130,.56));
  box-shadow: 0 0 45px rgba(40,172,255,.35), inset 0 0 0 1px rgba(255,255,255,.18);
  overflow: hidden;
  position: relative;
}
.hero-card:before, .identity-card:before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.18) 42%, transparent 54%); transform: translateX(-70%); animation: card-sheen 7s ease-in-out infinite; pointer-events: none; }
.scan-line { position: absolute; left: 18px; right: 18px; top: 35%; height: 2px; background: linear-gradient(90deg, transparent, rgba(110,232,255,.95), transparent); box-shadow: 0 0 18px rgba(110,232,255,.85); animation: scan 4s ease-in-out infinite; opacity: .75; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-head em { margin-left: auto; font-style: normal; color: #bdf8ff; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.card-head em:before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #31f06b; box-shadow: 0 0 12px #31f06b; margin-right: 7px; }
.id-layout { display: grid; grid-template-columns: 1fr 132px; gap: 18px; align-items: end; }
.doc-label { font-family: 'Chakra Petch', sans-serif; font-size: 48px; font-weight: 700; }
dl { display: grid; grid-template-columns: 95px 1fr; gap: 8px; margin: 18px 0 0; font-size: 14px; }
dt { color: #a8bfd5; }
dd { margin: 0; }
.status.verified, .pill.verified { background: linear-gradient(135deg, #22a945, #35d160); color: white; box-shadow: 0 0 18px rgba(53,209,96,.24); }

.qr-stage { display: grid; gap: 9px; justify-items: center; }
.qr-stage small { color: #cceeff; font-size: 11px; letter-spacing: .02em; }
.qr-fake, .qr { width: 116px; aspect-ratio: 1; border-radius: 12px; background: white; display: grid; place-items: center; color: white; font-weight: 900; border: 8px solid white; box-shadow: 0 18px 35px rgba(0,0,0,.28); }
.qr-fake { position: relative; background: conic-gradient(from 90deg, #111 0 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0/26px 26px; }
.qr-fake:before, .qr-fake:after, .qr-fake span { content: ''; position: absolute; width: 28px; height: 28px; border: 7px solid #111; background: white; border-radius: 3px; }
.qr-fake:before { left: 9px; top: 9px; }
.qr-fake:after { right: 9px; top: 9px; }
.qr-fake span { left: 9px; bottom: 9px; }
.qr-panel { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.08); }
.qr-panel b, .qr-panel span { display: block; }
.qr-panel span { color: #d0e4f5; line-height: 1.45; margin-top: 5px; }
.qr-panel.public { margin-top: 0; flex-direction: column; color: var(--ink); }
.qr-panel.public small { color: var(--muted); font-weight: 800; }
.qr-ring { position: relative; display: grid; place-items: center; width: 154px; height: 154px; border-radius: 28px; background: conic-gradient(from 180deg, var(--soft-blue), #fff, #1b7cff, var(--soft-blue)); box-shadow: 0 0 35px rgba(70,184,255,.28); }
.qr-ring:after { content: ''; position: absolute; inset: 8px; border-radius: 22px; border: 1px solid rgba(255,255,255,.7); pointer-events: none; }
.qr-ring .qr { width: 122px; border-width: 6px; position: relative; z-index: 1; }
.card-footer-line { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); color: #b8d7eb; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.seal { width: 166px; height: 166px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #d9ecff; font: 800 56px 'Chakra Petch'; border: 12px solid rgba(255,255,255,.5); box-shadow: 0 0 55px rgba(30,130,255,.7), inset 0 0 22px rgba(255,255,255,.22); text-transform: uppercase; background: radial-gradient(circle, rgba(0,42,82,.85), rgba(0,12,28,.85)); }
.seal small { display: block; font: 700 13px Archivo; letter-spacing: .1em; }

.steps, .quick-access, .service-grid, .dashboard-grid, .detail-shell { display: grid; gap: 14px; padding: 0 42px; max-width: 1500px; margin: -28px auto 0; position: relative; z-index: 2; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step-card, .table-card, .form-card, .service-card, .public-result, .empty-state { background: rgba(255,255,255,.86); border: 1px solid rgba(200,216,236,.82); border-radius: 20px; box-shadow: var(--glow); padding: 26px; backdrop-filter: blur(12px); }
.step-card, .service-card, .quick-access a { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.step-card:hover, .service-card:hover, .quick-access a:hover { transform: translateY(-5px); border-color: rgba(41,126,231,.38); box-shadow: 0 28px 80px rgba(4,35,80,.22); }
.step-card .icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #e6eefb 60%, #c5dcff); font-size: 44px; float: left; margin-right: 20px; box-shadow: inset 0 0 0 1px white, 0 12px 28px rgba(6,54,114,.12); }
.step-card h2 { font-size: 20px; margin-bottom: 12px; }
.step-card p, .service-card p, .hint { color: var(--muted); line-height: 1.5; }
ul { columns: 2; padding-left: 20px; line-height: 1.8; }
.wide-link { clear: both; margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 13px; color: white; border-radius: 10px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.22); }
.blue .wide-link { background: var(--blue); }
.teal .wide-link { background: var(--teal); }
.violet .wide-link { background: var(--violet); }
.legend { margin: 11px 0; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.ok { background: #19a54a; }
.warn { background: #f4b33e; }
.bad { background: #d72929; }

.why { margin: 12px auto 14px; max-width: 1415px; background: radial-gradient(circle at 15% 0, rgba(31,132,255,.32), transparent 34%), linear-gradient(90deg, #011c3c, #001025); color: white; border-radius: 18px; padding: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; box-shadow: 0 28px 75px rgba(0,27,58,.28); }
.why h2 { grid-column: 1 / -1; text-align: center; font-size: 30px; }
.why div { border-left: 1px solid rgba(255,255,255,.22); padding-left: 20px; }
.why i { color: var(--gold); font-style: normal; font-size: 30px; display: block; margin-bottom: 10px; }
.why strong { display: block; color: var(--soft-blue); font-size: 18px; }
.why span { color: #d8e6f4; font-size: 14px; line-height: 1.5; }
.trust-strip { max-width: 1415px; margin: 0 auto 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 42px; }
.trust-strip span { background: rgba(255,255,255,.78); border: 1px solid rgba(200,216,236,.82); border-radius: 999px; padding: 12px 16px; text-align: center; color: #23405f; font-weight: 800; box-shadow: 0 12px 28px rgba(5,35,77,.08); }

.quick-access { grid-template-columns: 150px repeat(5, 1fr); align-items: center; margin: 0 auto; padding-bottom: 24px; }
.quick-access a { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.quick-access small { display: block; color: var(--muted); margin-top: 5px; }
.quick-access span { float: right; border: 1px solid var(--ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }

.footer { background: radial-gradient(circle at 50% -20%, rgba(42,139,255,.32), transparent 38%), #001b3a; color: white; min-height: 110px; padding: 24px 42px; display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 24px; }
.socials { display: flex; gap: 14px; }
.socials span { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; }

.auth-shell, .page-head { max-width: 1100px; margin: 48px auto; padding: 0 24px; }
.form-card { max-width: 520px; margin: auto; }
.form-card.wide { max-width: 980px; }
.form-card label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; background: white; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { border-color: #2682ff; box-shadow: 0 0 0 4px rgba(38,130,255,.12); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.page-head { display: flex; align-items: end; justify-content: space-between; }
.page-head h1 { font-size: 46px; }

.dashboard-grid { grid-template-columns: 2fr 1fr; margin-top: 0; padding-bottom: 40px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill.observed { background: #ffe2a4; color: #7d4b00; }
.pill.disabled { background: #ffd3d3; color: #8b1111; }
.timeline-item { position: relative; border-left: 3px solid var(--blue); padding: 4px 0 18px 18px; margin: 14px 0; }
.timeline-item:before { content: ''; position: absolute; left: -8px; top: 5px; width: 13px; height: 13px; background: white; border: 3px solid var(--blue); border-radius: 50%; }
.timeline-item b, .timeline-item span { display: block; }
.timeline-item span { color: var(--muted); margin-top: 4px; }
.detail-shell { grid-template-columns: 1fr 420px; margin-top: 36px; padding-bottom: 24px; }
.identity-card { color: white; }
.identity-card h1 { font-family: 'Chakra Petch'; font-size: 44px; }
.identity-card .qr { background: white; }
.search-box { max-width: 900px; margin: 0 auto 28px; display: flex; gap: 10px; padding: 0 24px; }
.public-result, .empty-state { max-width: 900px; margin: 0 auto 42px; display: flex; justify-content: space-between; align-items: center; }
.public-result { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(232,244,255,.88)); }
.service-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0; padding-bottom: 50px; }
.service-card span { color: var(--blue); font-size: 34px; }

/* ---- Humanoide ID: layout de las pantallas de referencia ---- */
.brand strong em { font-style: normal; color: #1ea7ff; }
.btn-outline { border: 1.5px solid #1ea7ff; color: #0558d8; background: transparent; border-radius: 999px; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.7); color: white; background: transparent; }
.topbar-dark { background: #0a1a33; color: white; border-bottom-color: #13294a; }
.topbar-dark .btn-ghost { background: transparent; color: white; border-color: #2a4368; }
.platform-name { margin: auto; font-weight: 800; letter-spacing: .04em; color: #b9d4f2; }
.user-box { gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #2a4368; border-radius: 10px; }
.user-chip b, .user-chip small { display: block; }
.user-chip small { color: #8fb0d6; }

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 78px); }
.sidebar { background: #0a1a33; color: #e4eefa; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 78px; height: calc(100vh - 78px); overflow-y: auto; }
.sidebar a { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.sidebar a:hover, .sidebar a.active { background: #14305a; color: white; }
.side-brand { margin-top: auto; border: 1px solid #22406a; border-radius: 14px; padding: 16px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.side-brand small { color: #9fb8d6; }
.app-main { padding: 8px 28px 32px; min-width: 0; }
.app-main .page-head { max-width: none; margin: 24px 0; padding: 0; }
.app-main .form-card.wide, .app-main .table-card { max-width: none; margin: 0 0 18px; }
.app-main .dashboard-grid, .app-main .detail-shell { padding: 0; margin: 0 0 18px; max-width: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--glow); display: grid; gap: 6px; align-content: start; }
.kpi small { color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: .08em; font-size: 11px; }
.kpi > b { font: 700 42px 'Chakra Petch'; color: #0e8f9a; }
.kpi span { color: #34465f; font-size: 14px; }
.kpi.alerts b { color: #b35b00; }
.mini-row em { font-style: normal; }
.quick-buttons { display: grid; gap: 10px; }
.quick-buttons.row { grid-template-columns: repeat(3, auto); justify-content: start; }

fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 6px; margin: 0 0 18px; }
legend { font-weight: 800; color: #0e8f9a; padding: 0 8px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
details { margin: 8px 0; }
details summary { list-style: none; margin-bottom: 12px; }
.photo-box { display: grid; grid-template-columns: 1fr 200px; gap: 18px; border: 1px dashed #9cc7d6; border-radius: 14px; padding: 16px; margin-bottom: 14px; background: #f5fbfd; }
.photo-preview { display: grid; gap: 6px; }
.photo-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #e8eef6; }

.stepper { display: flex; justify-content: space-between; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 18px 0; flex-wrap: wrap; }
.step { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.step > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #8a97aa; color: white; font-weight: 800; }
.step b, .step small { display: block; }
.step b { color: #0e8f9a; font-weight: 600; }
.step.done > span, .step.current > span { background: #0e8f9a; }
.step.current { color: var(--ink); }

.pill.registrado, .pill.aprobado, .pill.aprobada, .pill.fee-pagado, .pill.fee-exento { background: #dff8e8; color: #0d6b32; }
.pill.en_revision, .pill.iniciado, .pill.documentacion_pendiente, .pill.fee-pendiente, .pill.fee-informado { background: #e3efff; color: #0a4fb3; }
.pill.observado { background: #ffe2a4; color: #7d4b00; }
.pill.no_habilitado, .pill.rechazada, .pill.fee-rechazado, .pill.fee-vencido { background: #ffd3d3; color: #8b1111; }
.verify-badge { display: inline-block; padding: 10px 16px; border-radius: 12px; font-weight: 800; letter-spacing: .04em; }
.verify-badge.ok { background: #dff8e8; color: #0d6b32; border: 1px solid #7fd49b; }
.verify-badge.warn { background: #fff1cf; color: #7d4b00; border: 1px solid #f4b33e; }
.verify-badge.bad { background: #ffe0e0; color: #8b1111; border: 1px solid #e27a7a; }
dl.light dt { color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #eef3f9; }
.actions-cell { display: flex; gap: 6px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input, .inline-form select { padding: 8px; width: auto; min-width: 90px; }
.inline-form .btn { padding: 8px 12px; }
.row-bad td { background: #fff3f3; }
.timeline-item small { color: #8a97aa; display: block; margin-top: 4px; }
.summary { display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.summary .photo { width: 140px; height: 170px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 60px; }
.summary dl { grid-template-columns: 130px 1fr; margin: 0; }
.detail-shell aside h3 { margin: 22px 0 10px; }
.confirm-card dl { grid-template-columns: 160px 1fr; }

.dih-card { max-width: 900px; margin: 0 auto 24px; background: #f4f7fb; border-radius: 18px; overflow: hidden; box-shadow: var(--glow); border: 1px solid var(--line); }
.dih-card > header { background: #0a1a33; color: white; text-align: center; padding: 16px; font-weight: 800; letter-spacing: .04em; font-size: 20px; }
.dih-body { display: grid; grid-template-columns: 170px 1fr 170px; gap: 20px; padding: 22px; }
.dih-photo { text-align: center; }
.dih-photo img, .dih-photo span { width: 160px; height: 200px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; font-size: 70px; background: #e2e9f3; }
.dih-photo small { color: var(--muted); font-size: 11px; display: block; margin-top: 10px; border-top: 1px solid #99a; padding-top: 4px; }
.dih-body dl { grid-template-columns: 1fr; gap: 2px; margin: 0; }
.dih-body dt { color: var(--muted); font-size: 11px; margin-top: 6px; }
.dih-body dd { font-weight: 700; }
.dih-body dd.big { font: 700 26px 'Chakra Petch'; color: #0a1a33; }
.dih-side { display: grid; gap: 10px; justify-items: center; text-align: center; align-content: start; }
.dih-card > footer { background: #0a1a33; color: white; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; }
.dih-card > footer span { text-align: right; font-size: 12px; }

.hero-title { font: 800 clamp(48px, 7vw, 86px) Archivo; letter-spacing: -.02em; }
.hero-title span { color: #1ea7ff; }
.hero-sub { font-size: clamp(24px, 3vw, 36px); max-width: 560px; line-height: 1.15; margin: 10px 0; }
.hero { grid-template-columns: 1fr; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.discover { display: inline-block; margin-top: 24px; color: #cde7ff; }
.identity-intro { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.identity-intro h2 { font-size: 40px; margin-bottom: 14px; }
.identity-intro p { color: #3d4d63; line-height: 1.6; }
.more { color: var(--blue); font-weight: 800; }
.dih-demo { color: white; }
.dih-demo .id-layout { grid-template-columns: 140px 1fr; align-items: start; }
.dih-demo dl { grid-template-columns: 150px 1fr; font-size: 12px; }
.robot-face { font-size: 90px; text-align: center; }
.doc-name { font-size: 12px; letter-spacing: .08em; margin: 0; }
.live { color: #31f06b; }
.qr-fake.mini { width: 54px; border-width: 4px; background-size: 12px 12px; }
.qr-fake.mini:before, .qr-fake.mini:after, .qr-fake.mini span { width: 12px; height: 12px; border-width: 3px; }
.ecosystem { background: #06152c; color: white; padding: 40px 24px; text-align: center; }
.ecosystem h2 { color: #3fb5ff; font-size: 24px; letter-spacing: .06em; margin-bottom: 22px; }
.ecosystem h3 { color: #3fb5ff; font-size: 14px; letter-spacing: .1em; margin: 30px 0 14px; }
.eco-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eco-grid article { border: 1px solid #1d3a63; border-radius: 12px; padding: 24px 16px; background: rgba(20,50,90,.35); display: grid; gap: 8px; }
.eco-grid i { font-style: normal; font-size: 40px; }
.eco-grid span { color: #c3d6ec; font-size: 14px; }
.audiences { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.human-strip { background: #0a2244; color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 36px 48px; }
.human-strip > div { display: flex; gap: 18px; align-items: center; }
.human-strip h2 span { color: #3fb5ff; }
.human-strip p { color: #c3d6ec; }
.circle-icon { min-width: 100px; height: 100px; border: 2px solid #3fb5ff; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 42px; background: #0a1a33; color: white; }
.pillars b, .pillars span { display: block; }
.pillars b { font-size: 18px; margin-bottom: 8px; }
.pillars span { color: #b7c9df; font-size: 14px; line-height: 1.5; }
.footer { flex-wrap: wrap; gap: 12px; }
.footer p { font-size: 18px; font-style: italic; }
.footer-meta { display: grid; gap: 4px; font-size: 13px; color: #b7c9df; text-align: right; }

/* ---- v1.1: pantallas 1-9 de Controlar ---- */
.topbar-dark .nav a { color: #d7e6f7; }
.topbar-dark .nav a.active, .topbar-dark .nav a:hover { color: #3fd0d4; border-color: #3fd0d4; }
.topbar-dark .btn-outline { color: white; border-color: #3fd0d4; }
.nav { gap: 20px; font-size: 14px; }
.lang-btn { border: 1px solid #2a4368; border-radius: 10px; padding: 9px 12px; color: #d7e6f7; white-space: nowrap; }
.user-chip { display: block; }
.teal-text, .split-copy h1 span, .type-side h1 span { background: linear-gradient(90deg, #3fd0d4, #1ea7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.split-hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 640px; }
.split-visual { position: relative; color: white; padding: 48px 36px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.hero-home { background-image: linear-gradient(180deg, rgba(4,14,30,.15), rgba(4,14,30,.85)), url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=1400&q=80'); }
.hero-login { background-image: linear-gradient(180deg, rgba(4,14,30,.1), rgba(4,14,30,.88)), url('https://images.unsplash.com/photo-1531746790731-6c087fecd65a?auto=format&fit=crop&w=1400&q=80'); }
.split-copy h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; }
.split-copy h1 span { display: block; }
.lead { font-size: 20px; max-width: 460px; line-height: 1.4; }
.glass-card { background: rgba(10,26,51,.72); border: 1px solid rgba(120,170,230,.28); border-radius: 14px; padding: 14px 18px; margin-top: 12px; max-width: 320px; backdrop-filter: blur(8px); }
.glass-card b { display: block; color: #3fd0d4; margin-bottom: 4px; }
.glass-card span { font-size: 14px; color: #dbe7f5; }
.glass-row { display: flex; gap: 12px; flex-wrap: wrap; }
.seal-badge { position: absolute; top: 24px; right: 24px; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 26px; font: 700 13px 'Chakra Petch'; letter-spacing: .08em; background: radial-gradient(circle, #0a1a33 55%, #1c3a66); border: 6px solid #cfd8e3; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.seal-badge small { font: 600 10px Archivo; color: #cde; letter-spacing: 0; }
.seal-badge b { font-size: 10px; }
.split-panel { background: #eef3f9; padding: 36px 32px; display: grid; align-content: start; gap: 18px; }
.intro { font-size: 20px; line-height: 1.45; margin: 0; border-bottom: 2px solid #3fd0d4; padding-bottom: 16px; }
.intro b { color: #0a3a8c; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv h3 { color: #0e8f9a; margin: 0 0 6px; }
.mv div + div h3 { color: #5630a5; }
.mv p, .regional p { margin: 0; color: #34465f; font-size: 14px; line-height: 1.5; }
.regional { position: relative; }
.regional h3 { color: #0a3a8c; margin: 0 0 4px; }
.regional .map { position: absolute; right: 0; top: -10px; font-size: 64px; opacity: .8; }
.apps-title { margin: 0; color: #0a3a8c; letter-spacing: .06em; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apps a { background: white; border-radius: 12px; padding: 14px 8px; display: grid; justify-items: center; gap: 4px; box-shadow: 0 6px 18px rgba(5,35,77,.08); }
.apps i { font-style: normal; font-size: 30px; }
.apps em { font-style: normal; border: 1px solid #99a8bb; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; }

.login-card { max-width: 480px; width: 100%; margin: 20px auto; }
.card-title { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.card-title h1, .card-title h2 { margin: 0; }
.card-title p { margin: 4px 0 0; color: #34465f; }
.round-icon { width: 72px; min-width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #dfe8f3; }
.round-icon.ok { background: #1f9d55; color: white; }
.pw { display: flex; gap: 6px; }
.pw button { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 0 12px; cursor: pointer; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; }
.row-between a, .center a { color: #0a3a8c; font-weight: 700; }
.form-card label.check, label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
label.check input { width: auto; }
.gradient, .btn-primary.gradient { background: linear-gradient(90deg, #0e9fa6, #0a3a8c); border: 0; }
.divider { text-align: center; color: var(--muted); margin: 18px 0 10px; }
.alt-login { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alt-login span { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: 24px; background: white; }
.alt-login small { display: block; font-size: 12px; color: #34465f; }
.center { text-align: center; }

.type-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: center; }
.type-side { background: linear-gradient(180deg, rgba(4,14,30,.2), rgba(4,14,30,.9)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=900&q=80') center/cover; color: white; border-radius: 18px; padding: 220px 28px 32px; }
.type-side .eyebrow { color: #3fd0d4; }
.type-side h1 { font-size: 36px; line-height: 1.1; }
.type-side h1 span { display: block; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px 14px; text-align: center; display: grid; gap: 10px; justify-items: center; transition: transform .2s ease, box-shadow .2s ease; }
.type-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.type-card i { font-style: normal; font-size: 40px; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; }
.type-card span { font-size: 13px; color: #34465f; }
.type-card em { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: white; }
.type-card.teal b { color: #0e8f9a; } .type-card.teal i { background: #d5f3f3; } .type-card.teal em { background: #0e8f9a; } .type-card.teal { border-color: #0e8f9a; }
.type-card.violet b { color: #3d1f8a; } .type-card.violet i { background: #e7defa; } .type-card.violet em { background: #3d1f8a; }
.type-card.green b { color: #2f7a2f; } .type-card.green i { background: #e0f0dc; } .type-card.green em { background: #2f7a2f; }
.type-card.orange b { color: #e2701b; } .type-card.orange i { background: #fde4d0; } .type-card.orange em { background: #f07a1a; }
.secure-box { margin-top: 16px; background: #e3ebf6; border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.secure-box b { color: #0a3a8c; }
.secure-box p { font-size: 13px; color: #34465f; }
ul.checks { list-style: none; padding: 0; columns: 1; margin: 0; }
ul.checks li:before { content: '✔ '; color: #0a5de0; font-weight: 800; }
.info-box { background: #eef4fc; border: 1px solid #cddcf0; border-radius: 12px; padding: 12px 16px; max-width: 460px; font-size: 14px; }
.info-box b, .info-box span { display: block; }
.info-box b { color: #0a3a8c; margin-bottom: 4px; }
.info-box.ok { background: #e6f6ee; border-color: #b9e3c9; }
.info-box.warn { background: #fff5e6; border-color: #f4d7a6; }
.option-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; display: grid; gap: 4px; }
.option-card small { color: var(--muted); }
.option-card em { font-style: normal; justify-self: end; }
.light-summary .photo { background: #e8eef6; }
.verify-inline { border-radius: 12px; padding: 12px 16px; margin: 14px 0; display: grid; gap: 4px; font-size: 14px; }
.verify-inline.ok { background: #e6f6ee; color: #0d6b32; } .verify-inline.warn { background: #fff5e0; color: #7d4b00; } .verify-inline.bad { background: #ffe8e8; color: #8b1111; }
.quick-buttons.row.wrap { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.audit-note { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0; }
.row-sel td { background: #eef7ff; }
.warn-text { color: #9a5b00; font-weight: 700; }

.fvh { max-width: 1000px; margin: 0 auto 30px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--glow); padding: 24px; }
.seal-big { display: flex; gap: 20px; align-items: center; border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.seal-big h2 { margin: 2px 0 6px; }
.seal-big p { margin: 0; }
.seal-big.ok { background: #e6f6ee; color: #0d6b32; } .seal-big.warn { background: #fff5e0; color: #7d4b00; } .seal-big.bad { background: #ffe8e8; color: #8b1111; }
.seal-ring { min-width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #0a1a33; color: white; border: 5px solid currentColor; font: 700 11px 'Chakra Petch'; }
.seal-ring b { font-size: 30px; }
.fvh-body { display: grid; grid-template-columns: 180px 1fr 170px; gap: 20px; align-items: start; }
.fvh-photo { width: 180px; height: 230px; border-radius: 14px; object-fit: cover; background: #e8eef6; display: grid; place-items: center; font-size: 70px; }
.fvh dl { grid-template-columns: 180px 1fr; }

.edh-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 20px 0 18px; box-shadow: var(--glow); }
.edh-head h1 { font-size: 34px; margin-bottom: 12px; }
.edh-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px 22px; margin: 0; }
.edh-grid dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.edh-grid dd { font-weight: 700; }
.edh-actions { display: grid; gap: 8px; align-content: start; }
.stage { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stage span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #8a97aa; color: white; font-weight: 800; }
.stage.done span { background: #0e8f9a; }
.stage small { margin-left: auto; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 8px; margin-bottom: 16px; }
.tabs a { padding: 10px 14px; border-radius: 10px; font-weight: 700; color: #34465f; font-size: 14px; }
.tabs a.active { background: #0a1a33; color: white; }
.tab-panel { display: none; }
.tab-panel.open { display: block; }
.tab-panel h2 { margin: 10px 0 12px; }
.inline-card { border: 1px dashed #9cc7d6; background: #f5fbfd; border-radius: 14px; padding: 16px; margin: 14px 0; }
.inline-card label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.congrats { display: flex; gap: 20px; align-items: center; margin: 24px 0; }
.congrats h1 { font-size: 32px; }
.congrats b { color: #1f7a45; }

.dih-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin: 20px 0; align-items: start; }
.dih-card { max-width: none; margin: 0; background: linear-gradient(145deg, #0b2a55, #06152c 70%); color: white; border: 2px solid #8e9aab; }
.dih-card > header { display: flex; gap: 14px; align-items: center; text-align: left; background: rgba(0,0,0,.25); border-bottom: 1px solid #8e9aab; }
.dih-card > header small { display: block; color: #b7c4d4; font-weight: 600; }
.dih-seal { margin: 14px 22px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.dih-seal.ok { background: rgba(31,157,85,.18); border-color: #4cd18a; color: #b8f5d2; }
.dih-seal.warn { background: rgba(244,179,62,.15); border-color: #f4b33e; color: #ffe2a4; }
.dih-seal.bad { background: rgba(215,41,41,.18); border-color: #ff7b7b; color: #ffc9c9; }
.dih-body { grid-template-columns: 170px 1fr 1fr; }
.dih-body dt { color: #a9b6c7; }
.dih-body dd { color: white; }
.dih-body dd.big { color: white; font-size: 22px; }
.dih-photo small { color: #b7c4d4; border-top-color: #8e9aab; }
.dih-photo img, .dih-photo span { background: #dfe6ef; object-position: top; }
.dih-qr { margin-top: 12px; display: grid; justify-items: end; gap: 6px; text-align: right; }
.dih-qr small { color: #b7c4d4; font-size: 11px; max-width: 140px; }
.dih-card > footer { background: rgba(0,0,0,.3); border-top: 1px solid #8e9aab; }
.remember { background: #eef8f3; }

.transfer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.transfer-grid .table-card { max-width: none; margin: 0; }
.transfer-grid label { display: grid; gap: 6px; font-weight: 700; margin-bottom: 12px; }
.party { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.party span { color: var(--muted); font-size: 14px; }
.transfer-grid h3 { color: #0a3a8c; font-size: 15px; margin: 14px 0 8px; }
.btn.green { background: #1f7a45; border-color: #1f7a45; }
.implies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; font-size: 14px; color: #34465f; }
.wizard .step b { font-size: 14px; }
.agreement dl { grid-template-columns: 220px 1fr; }
.signatures { display: flex; justify-content: space-around; margin-top: 60px; }
.signatures span { border-top: 1px solid #333; padding-top: 6px; min-width: 180px; text-align: center; }
.mini-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-kpis span { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.mini-kpis b { display: block; font: 700 26px 'Chakra Petch'; color: #0a3a8c; }
.role { font-size: 24px; color: #0a3a8c; }
.pill.activo, .pill.recuperado { background: #dff8e8; color: #0d6b32; }
.pill.en_transferencia, .pill.en_fabricacion { background: #e3efff; color: #0a4fb3; }
.pill.suspendido, .pill.robado_extraviado, .pill.fuera_servicio, .pill.baja { background: #ffd3d3; color: #8b1111; }
.pill.fee-abonado { background: #dff8e8; color: #0d6b32; }
.app-main .kpi-grid .table-card { margin: 0; }

@media (max-width: 960px) {
  .split-hero, .type-wrap, .type-grid, .secure-box, .mv, .fvh-body, .dih-layout, .transfer-grid, .implies, .edh-grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .seal-badge { width: 120px; height: 120px; font-size: 10px; padding: 16px; }
  .split-visual { min-height: 520px; }
  .type-side { padding-top: 120px; }
  .fvh dl, .agreement dl { grid-template-columns: 1fr; }
}

@media print {
  .pillars { display: none !important; }
  .tab-panel { display: block !important; }
  .tabs { display: none !important; }
  .topbar, .sidebar, .footer, .no-print, .stepper, .flash, .form-actions { display: none !important; }
  .app-shell { display: block; }
  body { background: white; }
}

@keyframes scan {
  0%, 100% { transform: translateY(-70px); opacity: .25; }
  50% { transform: translateY(92px); opacity: .95; }
}

@keyframes card-sheen {
  0%, 45% { transform: translateX(-80%); }
  68%, 100% { transform: translateX(80%); }
}

@media (max-width: 960px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 16px; gap: 14px; }
  .brand { min-width: auto; }
  .brand strong { font-size: 20px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav, .actions { display: none; width: 100%; }
  .nav-open .nav, .nav-open .actions { display: flex; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding: 42px 20px; }
  .seal, .hero-orbit { display: none; }
  .steps, .why, .quick-access, .dashboard-grid, .detail-shell, .service-grid, .trust-strip { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .why { margin-left: 16px; margin-right: 16px; }
  .quick-access { margin-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .search-box, .public-result, .qr-panel { flex-direction: column; align-items: stretch; }
  .footer { flex-direction: column; text-align: center; }
  .footer p { font-size: 18px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: static; height: auto; }
  .nav-open .sidebar { display: flex; }
  .platform-name, .user-box { display: none; width: 100%; }
  .nav-open .user-box { display: flex; flex-wrap: wrap; }
  .kpi-grid, .eco-grid, .pillars, .human-strip, .identity-intro, .form-grid.three, .photo-box, .summary, .dih-body { grid-template-columns: 1fr; }
  .app-main { padding: 8px 16px 24px; }
  .quick-buttons.row { grid-template-columns: 1fr; }
  .footer-meta { text-align: center; }
}

/* ===== Mejora UX/UI v2 ===== */
:root { --teal-lt: #3fd0d4; }
:focus-visible { outline: 3px solid var(--teal-lt); outline-offset: 2px; }
html { scroll-behavior: smooth; }
main { min-height: 0; }

/* Header: una sola línea, sin cortes de texto */
.topbar { gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.brand { min-width: 0; }
.brand strong { font-size: 21px; }
.nav { gap: 18px; font-size: 14px; white-space: nowrap; }
.actions .btn, .actions .lang-btn { white-space: nowrap; padding: 9px 14px; font-size: 14px; min-height: 0; }

/* Hero con foto local */
.hero-home { background-color: #04101f; background-image: linear-gradient(90deg, #04101f 28%, rgba(4,16,31,.35) 70%, rgba(4,16,31,.15)), linear-gradient(0deg, rgba(4,14,30,.9), transparent 55%), url('/img/hero-home.jpg'); background-size: auto, auto, auto 82%; background-repeat: no-repeat; background-position: 0 0, 0 0, right bottom; }
.split-hero { min-height: 600px; }

/* Aplicaciones: botones con foto */
.apps a { position: relative; overflow: hidden; min-height: 112px; align-content: end; transition: transform .2s, box-shadow .2s; }
.apps a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(5,35,77,.2); }
.apps a.has-photo { background: linear-gradient(0deg, rgba(4,16,31,.88) 8%, rgba(4,16,31,.1) 70%), var(--photo) center/cover; color: #fff; }
.apps a.has-photo i { position: absolute; top: 8px; left: 8px; font-size: 18px; background: rgba(4,16,31,.6); border-radius: 8px; padding: 3px 6px; }
.apps a.has-photo em { border-color: rgba(255,255,255,.7); }
.apps a span { font-weight: 700; font-size: 14px; }

/* Franja de métricas (reemplaza el segundo hero repetido) */
.stats-strip { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: center; padding: 22px 28px; background: #0a1a33; color: #dceeff; }
.stats-strip span { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 16px; background: rgba(255,255,255,.07); }
.stats-strip b { font: 700 20px 'Chakra Petch', Archivo; color: #fff; margin-right: 4px; }
.stats-strip .btn-ghost { background: transparent; color: #fff; border-color: #2a4368; }

/* Marca registrada */
.marca-band { max-width: 1200px; margin: 40px auto; padding: 30px 32px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--teal-lt); border-radius: 18px; box-shadow: var(--glow); }
.marca-seal { width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center; font: 700 44px 'Chakra Petch', Archivo; color: #fff; background: radial-gradient(circle, #0a1a33 55%, #1c3a66); border: 5px solid #cfd8e3; }
.marca-seal small { font: 700 11px Archivo; letter-spacing: .08em; color: var(--teal-lt); text-transform: uppercase; }
.marca-body h2 { font-size: 30px; margin-bottom: 10px; }
.marca-body p { color: #3d4d63; line-height: 1.6; margin: 0 0 12px; }
.marca-body dl, .marca-data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.marca-body dt, .marca-data dt { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.marca-body dd, .marca-data dd { margin: 0; font-weight: 600; }
.marca-page { max-width: 900px; margin: 0 auto; padding: 0 24px 56px; }
.marca-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--glow); }
.marca-card h2 { font-size: 26px; margin-bottom: 16px; }
.marca-list { columns: 2; column-gap: 32px; padding-left: 18px; line-height: 1.5; color: #2a3a52; }
.marca-list li { break-inside: avoid; margin-bottom: 6px; }
.marca-note { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.footer-meta a { text-decoration: underline; }

@media (max-width: 900px) {
  .marca-band { grid-template-columns: 1fr; margin: 24px 16px; }
  .marca-list { columns: 1; }
  .hero-home { background-size: auto, auto, auto 60%; }
}

/* Selector de idioma */
.lang-switch { position: relative; }
.lang-switch .lang-btn { background: transparent; cursor: pointer; font: inherit; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #0a1a33; border: 1px solid #2a4368; border-radius: 10px; min-width: 150px; z-index: 50; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.lang-menu[hidden] { display: none; }
.lang-menu button { width: 100%; text-align: left; background: transparent; border: 0; color: #d7e6f7; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
.lang-menu button:hover { background: #13294a; color: #3fd0d4; }
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame { display: none !important; }

/* ===== Móvil ===== */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
.table-card, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; }
  .nav-toggle { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid #2a4368; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
  .nav, .actions { order: 3; }
  .nav-open .nav { gap: 0; margin: 0; border-top: 1px solid #13294a; }
  .nav a, .topbar-dark .nav a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid #13294a; border-left: 3px solid transparent; }
  .topbar-dark .nav a.active { border-color: #13294a; border-left-color: var(--teal-lt); padding-left: 12px; }
  .nav-open .actions { gap: 10px; align-items: stretch; padding-bottom: 8px; }
  .nav-open .actions .btn, .nav-open .actions .lang-btn { width: 100%; justify-content: center; text-align: center; min-height: 46px; }
  .lang-switch { width: 100%; }
  .lang-menu { position: static; margin-top: 6px; width: 100%; }
  .sidebar a { padding: 14px 16px; }

  .split-hero { min-height: 0; }
  .split-visual { min-height: 460px; padding: 28px 18px; }
  .hero-home { background-size: auto, auto, auto 62%; }
  .split-copy h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .glass-card { max-width: none; }
  .split-panel { padding: 24px 16px; }
  .intro { font-size: 17px; }
  .mv { gap: 14px; }
  .apps { gap: 10px; }
  .apps a { min-height: 120px; }
  .hero-cta .btn, .stats-strip .btn { width: 100%; justify-content: center; text-align: center; }
  .stats-strip { padding: 18px 16px; }
  .stats-strip span { flex: 1 1 40%; text-align: center; }
  .identity-intro { padding: 32px 16px; gap: 24px; }
  .identity-intro h2 { font-size: 30px; }
  .id-layout { grid-template-columns: 1fr; text-align: center; }
  .card-footer-line { flex-wrap: wrap; gap: 8px; }
  .eco-grid { gap: 12px; }
  .audiences { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .human-strip { padding: 28px 16px; gap: 20px; }
  .human-strip > div { flex-direction: column; text-align: center; }
  .marca-band { padding: 22px 18px; text-align: center; }
  .marca-seal { margin: 0 auto; }
  .marca-body dl { text-align: left; }
  .marca-card { padding: 20px 16px; }
  .page-head h1 { font-size: 32px; }
  .pillars { padding: 24px 16px; gap: 16px; }
  .footer { padding: 24px 16px; }
  .footer-meta { text-align: center; }
  .app-main { padding: 8px 12px 24px; }
  .login-card { margin: 12px auto; }
}

@media (max-width: 600px) {
  .btn, button, input, select, textarea { min-height: 46px; }
  input, select, textarea { font-size: 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .seal-badge { top: 14px; right: 14px; width: 96px; height: 96px; padding: 12px; font-size: 8px; }
  .seal-badge small, .seal-badge b { font-size: 7px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  table { font-size: 13px; }
}

@media (max-width: 960px) {
  .dih-demo .id-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dih-demo dl { grid-template-columns: 1fr 1fr; text-align: left; gap: 4px 10px; width: 100%; }
  .dih-demo dd { margin: 0; overflow-wrap: anywhere; }
  .dih-demo { padding: 20px 16px; overflow: hidden; }
  .doc-name { overflow-wrap: anywhere; }
  .hero-home { background-position: 0 0, 0 0, right 10% bottom; }
  .hero-home:before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,16,31,.92) 35%, rgba(4,16,31,.2)); pointer-events: none; }
  .split-copy, .seal-badge { position: relative; z-index: 1; }
  .seal-badge { position: absolute; }
}
