/* ==========================================================================
   MPF San Juan — Sistema de diseño
   ========================================================================== */

:root {
  --scale: 1;

  /* Color */
  --ink: #0B1A2A;
  --text: #16222F;
  --text-2: #3D4B5A;
  --muted: #5B6978;
  --line: #E4E8EE;
  --line-2: #CFD7E0;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #FBFBFC;

  --brand: #163A5F;
  --brand-700: #102C49;
  --brand-600: #1F4C7A;
  --brand-500: #2D6299;
  --brand-100: #DDEAF6;
  --brand-50: #EFF5FB;

  --gold: #D4B26F;
  --gold-600: #A9853C;
  --gold-700: #7A5D22;
  --gold-50: #FAF4E7;

  --night: #0B1A2A;
  --night-2: #12263B;
  --night-line: rgba(255, 255, 255, .1);

  --ok: #157A4A;
  --ok-50: #E8F5EE;
  --warn-50: #FBF1DC;
  --warn: #7A5410;
  --danger: #B42318;

  --focus: #2D6299;

  /* Tipografía */
  --f-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-head: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;

  /* Forma */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 42, .06), 0 1px 1px rgba(11, 26, 42, .04);
  --shadow: 0 1px 2px rgba(11, 26, 42, .05), 0 8px 24px -8px rgba(11, 26, 42, .12);
  --shadow-lg: 0 2px 4px rgba(11, 26, 42, .04), 0 24px 56px -16px rgba(11, 26, 42, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1240px;
  --gutter: 28px;
  --header-h: 128px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
.display { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: 1.3rem; line-height: 1.28; font-weight: 650; letter-spacing: -0.012em; }
.h4 { font-size: 1.075rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.005em; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.hl { position: relative; white-space: nowrap; color: var(--brand-600); }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; background: var(--gold); opacity: .55; border-radius: 4px; z-index: -1; transform-origin: left; animation: hl-in .9s .35s var(--ease) both; }
@keyframes hl-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; line-height: 1.55; }
.xsmall { font-size: .8125rem; line-height: 1.5; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-500); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold); }

.ph { background: var(--warn-50); color: var(--warn); padding: 0 .3em; border-radius: 4px; font-size: .94em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.on-dark .ph, .site-footer .ph { background: rgba(212, 178, 111, .16); color: #EBD6A8; }

/* --------------------------------------------------------------------------
   Botones y controles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-head); font-weight: 600; font-size: .975rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; background: transparent; color: inherit;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(22, 58, 95, .55); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2C68D; color: var(--ink); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; text-decoration: none; color: var(--brand-500); }
.link-arrow .ic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

.label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 8px; color: var(--ink); }
.hint { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  font: inherit; background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:hover, .select:hover { border-color: #A9B6C4; }
.input:focus, .select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(45, 98, 153, .16); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233D4B5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field-error { color: var(--danger); font-size: .875rem; margin-top: 6px; font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font-size: .9375rem; text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ic { width: 1em; height: 1em; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .01em; line-height: 1.5; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.tag-gold { background: var(--gold-50); color: var(--gold-700); border-color: #EEDDB8; }
.tag-ok { background: var(--ok-50); color: var(--ok); border-color: #C8E6D5; }
.tag-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }

.kbd { display: inline-flex; align-items: center; min-height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--f-head); font-size: .72rem; font-weight: 600; color: var(--muted); box-shadow: 0 1px 0 var(--line-2); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg); }

/* --------------------------------------------------------------------------
   Topbar (ayuda urgente + accesibilidad)
   -------------------------------------------------------------------------- */
.topbar { background: var(--night); color: #C9D3DD; font-size: .875rem; position: relative; z-index: 60; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 42px; }
.topbar a { color: #C9D3DD; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; font-family: var(--f-head); font-weight: 700; }
.topbar-help { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.topbar .topbar-911 { color: var(--gold); font-weight: 700; }
.topbar .topbar-911 strong { color: var(--gold); }
.topbar-more { color: #9EC3E6 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.topbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
@media (max-width: 1560px) { .topbar-more { display: none !important; } }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #E2E8EE; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.tool:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.tool[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tool .ic { width: 15px; height: 15px; }
.topbar .quick-exit { min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8125rem; }
.topbar .quick-exit:hover { background: #E8CF9C; color: var(--ink); }
.quick-exit .ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Encabezado
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 26, 42, .35); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 48px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .8125rem; color: var(--muted); letter-spacing: .01em; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: #9FB0C2; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; width: 300px; padding: 0 8px 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(45, 98, 153, .1); }
.search-trigger-t { flex: 1; font-size: .95rem; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink); }
.menu-btn .ic { width: 22px; height: 22px; }

.main-nav { border-top: 1px solid var(--line); }
.nav-list { list-style: none; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: -12px; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 12px; text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: .95rem; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(.4); }
.nav-link.is-active { color: var(--ink); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(11, 26, 42, .5); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--surface); padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: slide-in .35s var(--ease); box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; }
.drawer-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--bg); color: var(--muted); cursor: pointer; text-align: left; }
.drawer-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.drawer-link { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.drawer-link.is-active { color: var(--brand-500); }
.drawer-lines { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--night); }
.drawer-lines a { color: #C9D3DD; text-decoration: none; display: flex; gap: 12px; align-items: baseline; }
.drawer-lines strong { color: #fff; font-family: var(--f-head); font-size: 1.2rem; min-width: 46px; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Buscador (paleta de comandos) */
.cmdk { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk-scrim { position: absolute; inset: 0; background: rgba(11, 26, 42, .45); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.cmdk-panel { position: relative; width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(11, 26, 42, .55), 0 0 0 1px rgba(11, 26, 42, .06); overflow: hidden; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-input-row .ic { width: 22px; height: 22px; }
.cmdk-input { flex: 1; min-height: 64px; border: 0; outline: 0; font: inherit; font-size: 1.15rem; color: var(--ink); background: transparent; }
.cmdk-input::-webkit-search-cancel-button { display: none; }
.cmdk-list { list-style: none; padding: 8px; margin: 0; overflow-y: auto; }
.cmdk-group { padding: 12px 12px 6px; font-family: var(--f-head); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmdk-item a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--text); }
.cmdk-item[aria-selected="true"] a { background: var(--brand-50); }
.cmdk-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--brand-600); }
.cmdk-item[aria-selected="true"] .cmdk-ico { background: var(--surface); border-color: var(--brand-100); }
.cmdk-t { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cmdk-d { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.cmdk-item .ic-go { margin-left: auto; color: var(--muted); opacity: 0; }
.cmdk-item[aria-selected="true"] .ic-go { opacity: 1; }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--muted); }
.cmdk-foot .kbd { margin-right: 4px; }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 5vw + 32px, 112px); }
.section-sm { padding-block: clamp(48px, 3vw + 28px, 72px); }
.bg-white { background: var(--surface); }
.bg-tint { background: var(--brand-50); }
.bg-sand { background: linear-gradient(180deg, #FBF7EE 0%, #F6EFDF 100%); }
.bg-night { background: var(--night); color: #C9D3DD; }
.bg-night h2, .bg-night h3, .bg-night h4 { color: #fff; }
.border-y { border-block: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(32px, 3vw, 48px); }
.section-head-text { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head-text p { color: var(--muted); font-size: 1.075rem; }
.on-dark .section-head-text p { color: #A9B8C7; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

/* --------------------------------------------------------------------------
   Tarjetas
   -------------------------------------------------------------------------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 20px; }
.card-flat { box-shadow: none; }
.card-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card-link:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-link .card-go { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--bg); color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.card-link .card-go .ic { width: 16px; height: 16px; }
.card-link:hover .card-go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.card h3 + p, .card h4 + p { margin-top: 6px; }

.ico-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); color: var(--brand-600); box-shadow: 0 1px 0 #fff inset; }
.ico-tile .ic { width: 24px; height: 24px; }
.ico-tile-gold { background: linear-gradient(145deg, var(--gold-50), #fff); border-color: #EEDDB8; color: var(--gold-700); }
.ico-tile-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--gold); box-shadow: none; }

/* Pasos numerados */
.num { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .95rem; }
.num-soft { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: s; }
.steps > li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; }
.steps > li + li { border-top: 1px dashed var(--line-2); }
.steps strong { display: block; color: var(--ink); font-family: var(--f-head); font-weight: 650; margin-bottom: 2px; }

.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 999px; background: var(--ok-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23157A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; border: 1px solid #C8E6D5; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--gold-50); border: 1px solid #EEDDB8; color: var(--text); }
.callout .ic { color: var(--gold-700); width: 22px; height: 22px; margin-top: 2px; }
.callout-info { background: var(--brand-50); border-color: var(--brand-100); }
.callout-info .ic { color: var(--brand-500); }

/* Breadcrumb y encabezado de página */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.page-hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000 0%, transparent 70%); opacity: .6; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .22), transparent 65%); pointer-events: none; }
.page-hero-in { position: relative; z-index: 1; padding-block: 44px 64px; display: flex; flex-direction: column; gap: 20px; }
.page-hero .lead { margin-top: 2px; }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; cursor: pointer; font-family: var(--f-head); font-weight: 650; font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 4px 22px; max-width: 70ch; color: var(--text-2); }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   Inicio
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 10%, transparent 75%); opacity: .7; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow-1 { width: 720px; height: 720px; left: -260px; top: -380px; background: radial-gradient(circle, rgba(45, 98, 153, .14), transparent 62%); }
.hero-glow-2 { width: 640px; height: 640px; right: -200px; bottom: -320px; background: radial-gradient(circle, rgba(212, 178, 111, .25), transparent 62%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); padding-block: clamp(48px, 6vw, 88px) clamp(56px, 6vw, 96px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .display .serif { color: var(--brand-600); }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow); max-width: 600px; transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--brand-500); box-shadow: var(--shadow), 0 0 0 5px rgba(45, 98, 153, .12); }
.hero-search > .ic { color: var(--muted); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink); }
.hero-search .btn { min-height: 48px; }
.hero-popular { display: flex; flex-direction: column; gap: 12px; }
.hero-popular-t { font-size: .875rem; color: var(--muted); font-weight: 700; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.task:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--text); }
.task-t { font-family: var(--f-head); font-weight: 650; font-size: 1.06rem; line-height: 1.28; color: var(--ink); letter-spacing: -0.01em; }
.task-d { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.task-go { position: absolute; top: 20px; right: 20px; color: var(--line-2); transition: color .3s, transform .3s var(--ease); }
.task:hover .task-go { color: var(--ink); transform: translate(2px, -2px) rotate(-45deg); }
.task-feature { grid-column: span 2; flex-direction: row; align-items: center; gap: 20px; min-height: 0; padding: 24px; background: var(--ink); border-color: var(--ink); color: #C9D3DD; overflow: hidden; }
.task-feature::after { content: ""; position: absolute; right: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .32), transparent 65%); }
.task-feature:hover { color: #C9D3DD; box-shadow: 0 20px 40px -18px rgba(11, 26, 42, .7); }
.task-feature .task-t { color: #fff; font-size: 1.2rem; }
.task-feature .task-d { color: #A9B8C7; }
.task-feature .task-go { color: var(--gold); top: 50%; transform: translateY(-50%); right: 24px; }
.task-feature:hover .task-go { color: var(--gold); transform: translate(4px, -50%); }
.task-feature .ico-tile { width: 56px; height: 56px; }
.task-feature-body { display: flex; flex-direction: column; gap: 4px; padding-right: 40px; position: relative; z-index: 1; }

.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n { font-family: var(--f-head); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.stat-t { font-size: .875rem; color: var(--muted); }

/* Línea de tiempo del proceso penal */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--gold) 50%, var(--brand-100)); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); box-shadow: 0 0 0 8px var(--bg); transition: background .3s, color .3s, border-color .3s; }
.tl-item:hover .tl-dot { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-item h3 { margin-top: 8px; }
.tl-item p { font-size: .9375rem; color: var(--text-2); }

/* Perfiles */
.profiles { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.profile-tabs { display: flex; flex-direction: column; gap: 6px; }
.profile-tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px; border-radius: var(--r); border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: var(--text-2); transition: background .25s, border-color .25s, color .25s; }
.profile-tab .ic { width: 20px; height: 20px; color: var(--muted); }
.profile-tab:hover { background: var(--bg); color: var(--ink); }
.profile-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.profile-tab[aria-selected="true"] .ic { color: var(--gold-600); }
.profile-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--ink); color: #C9D3DD; }
.profile-panel::after { content: ""; position: absolute; right: -140px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .22), transparent 62%); pointer-events: none; }
.profile-panel h3 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.profile-panel > p { max-width: 60ch; color: #B8C5D2; }
.profile-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; position: relative; z-index: 1; }
.profile-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 18px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 700; transition: background .25s, border-color .25s; }
.profile-links a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.profile-links .ic { width: 18px; height: 18px; color: var(--gold); transition: transform .25s var(--ease); }
.profile-links a:hover .ic { transform: translateX(3px); }
.fade-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Buscador de fiscalía (inicio) */
.finder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.finder-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.finder-form > div { flex: 1 1 240px; }
.mini-cards { display: grid; gap: 12px; }
.mini-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: rgba(255,255,255,.75); border: 1px solid rgba(169, 133, 60, .2); }

/* Noticias */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.news { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.news-img { position: relative; overflow: hidden; background: var(--night); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news:hover .news-img img { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-t { font-family: var(--f-head); font-weight: 650; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: auto; }
.news-lg { grid-row: span 2; }
.news-lg .news-img { aspect-ratio: 16/11; }
.news-lg .news-t { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); }
.news-sm { flex-direction: row; }
.news-sm .news-img { flex: 0 0 40%; aspect-ratio: 1/1; }

/* Bento justicia abierta */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento .card-link { min-height: 220px; padding: 26px; justify-content: flex-start; }
.bento .b-wide { grid-column: span 2; }
.bento-viz { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bento-viz span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--brand-500), var(--brand-100)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.bento-viz span:nth-child(odd) { background: linear-gradient(180deg, var(--gold), var(--gold-50)); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* Escuela (banda oscura) */
.school { position: relative; overflow: hidden; isolation: isolate; }
.school::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(45, 98, 153, .45), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212, 178, 111, .18), transparent 60%); }
.school::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.school-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.school-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--night-line); backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.school-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.school-item p { color: #A9B8C7; font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Orientador
   -------------------------------------------------------------------------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.progress { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.progress li { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; color: var(--muted); }
.progress .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress .bar::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-500)); border-radius: inherit; transition: width .5s var(--ease); }
.progress li.is-done .bar::after, .progress li.is-current .bar::after { width: 100%; }
.progress li.is-current { color: var(--ink); font-weight: 700; }
.wz-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); }
.wz-card h2 { margin-bottom: 8px; }
.wz-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-height: 96px; padding: 20px 52px 20px 20px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.choice:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-t { font-family: var(--f-head); font-weight: 650; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.choice-d { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.choice > .ic { position: absolute; right: 18px; top: 22px; width: 20px; height: 20px; color: var(--line-2); transition: color .2s, transform .2s; }
.choice:hover > .ic { color: var(--ink); transform: translateX(3px); }
.choice-urgent { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice-urgent:hover { background: var(--night-2); border-color: var(--night-2); }
.choice-urgent .choice-t { color: var(--gold); font-size: 1.2rem; }
.choice-urgent .choice-d { color: #A9B8C7; }
.choice-urgent > .ic { color: var(--gold); }
.choice-big { min-height: 140px; }
.danger-panel { position: relative; overflow: hidden; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-xl); background: var(--ink); color: #C9D3DD; }
.danger-panel::after { content: ""; position: absolute; right: -140px; top: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .28), transparent 62%); }
.danger-panel h2 { color: #fff; }
.big-911 { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 26px 14px 18px; border-radius: 999px; background: var(--gold); color: var(--ink); font-family: var(--f-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; text-decoration: none; position: relative; z-index: 1; }
.big-911:hover { color: var(--ink); background: #E2C68D; }
.big-911 .ic { width: 28px; height: 28px; }
.line-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.line-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid var(--night-line); color: #A9B8C7; text-decoration: none; font-size: .9rem; }
.line-card strong { color: #fff; font-family: var(--f-head); font-size: 1.6rem; letter-spacing: -0.02em; }
.line-card:hover { background: rgba(255,255,255,.09); color: #C9D3DD; }
.result-head { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand-50), #fff 70%); border: 1.5px solid var(--brand-100); }
.result-head h2 .serif { color: var(--brand-600); }
.result-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.result-meta div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.result-meta dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-head); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }

/* --------------------------------------------------------------------------
   Servicios (índice lateral)
   -------------------------------------------------------------------------- */
.with-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; padding-left: 2px; }
.toc-t { font-family: var(--f-head); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 14px 10px; }
.toc a { position: relative; display: block; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font-size: .95rem; transition: color .2s, background .2s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background .2s; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a.is-active { color: var(--ink); font-weight: 700; }
.toc a.is-active::before { background: var(--gold); }
.blk { display: flex; flex-direction: column; gap: 22px; padding-block: 52px; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; padding-top: 8px; }
.blk > p { max-width: 70ch; color: var(--text-2); }
.status-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.status-list li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; color: var(--text-2); }
.status-list strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--f-head); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-result { margin-top: 4px; padding: 20px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-2); }
.track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.track li { display: flex; flex-direction: column; gap: 8px; font-size: .8125rem; color: var(--muted); }
.track li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); }
.track li.is-done::before { background: var(--ok); }
.track li.is-current::before { background: linear-gradient(90deg, var(--ok), var(--gold)); }
.track li.is-current { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   Víctimas
   -------------------------------------------------------------------------- */
.lines-panel { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-xl); background: var(--ink); color: #C9D3DD; box-shadow: var(--shadow-lg); }
.lines-panel::after { content: ""; position: absolute; right: -120px; top: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .25), transparent 62%); }
.lines-panel h2 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.line-row { position: relative; z-index: 1; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--night-line); font-size: .9rem; color: #A9B8C7; }
.line-row a { font-family: var(--f-head); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; line-height: 1; }
.line-row a:hover { color: var(--gold); }
.line-row .ph { font-size: .85em; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rights { counter-reset: r; }
.right-card { display: flex; flex-direction: column; gap: 8px; }
.right-card::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: var(--gold-600); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   Fiscalías
   -------------------------------------------------------------------------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.map-panel { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.tile { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 4px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text-2); font-family: var(--f-head); font-size: .72rem; font-weight: 600; line-height: 1.1; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); hyphens: auto; }
.tile:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.tile.is-zone { background: var(--brand-50); border-color: #A9C8E6; color: var(--brand-700); }
.tile[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(11, 26, 42, .6); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sede { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; }
.sede dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .9rem; align-content: start; }
.sede dt { font-weight: 700; color: var(--ink); }
.empty { padding: 40px 20px; text-align: center; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); color: var(--muted); }

/* --------------------------------------------------------------------------
   Documentos / Prensa / otras
   -------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.toolbar > div { flex: 1 1 150px; }
.toolbar > div.grow { flex: 3 1 280px; }
.doc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.doc-t { font-family: var(--f-head); font-weight: 650; font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
.doc-sum { margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); font-size: .9375rem; color: var(--text-2); }
.doc-sum b { color: var(--ink); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.count { font-size: .9rem; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi-n { font-family: var(--f-head); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin-top: 6px; }
.kpi-d { font-size: .85rem; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-track { height: 12px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--brand-500); transform-origin: left; animation: growx 1.2s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: none; } }
.bar-v { text-align: right; font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.person { display: flex; gap: 16px; align-items: center; }
.avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: linear-gradient(145deg, var(--brand-100), var(--gold-50)); font-family: var(--f-head); font-weight: 700; color: var(--brand-700); }
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { padding: 14px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; font-family: var(--f-head); font-weight: 650; color: var(--ink); box-shadow: var(--shadow-sm); }
.org-node small { display: block; font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .8rem; }
.org-root { background: var(--ink); color: #fff; border-color: var(--ink); }
.org-root small { color: #A9B8C7; }
.org-v { width: 2px; height: 24px; background: var(--line-2); }
.org-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; width: 100%; padding-top: 24px; border-top: 2px solid var(--line-2); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.success { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--ok-50); border: 1px solid #C8E6D5; }
.success .ic { color: var(--ok); width: 24px; height: 24px; }

.course { display: flex; flex-direction: column; gap: 12px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta .ic { width: 15px; height: 15px; }

.article { max-width: 760px; }
.article p { font-size: 1.125rem; line-height: 1.7; color: var(--text-2); }
.article h2 { margin-top: 1.6em; margin-bottom: .5em; font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.feedback { background: var(--surface); border-top: 1px solid var(--line); }
.feedback-in { padding-block: 22px; }
.fb-step { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fb-q { font-family: var(--f-head); font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.fb-actions { display: flex; gap: 8px; }
.fb-actions .btn { min-width: 76px; }
.fb-form { flex-direction: column; align-items: stretch; max-width: 720px; gap: 10px; }
.fb-form .label { margin: 0; }
.fb-form .hint { margin: 0; }
.fb-thanks { font-weight: 700; color: var(--ok); }
.fb-thanks .ic { width: 22px; height: 22px; }

.site-footer { background: var(--night); color: #A9B8C7; font-size: .9375rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-block: 64px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact dt { font-family: var(--f-head); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6F8296; }
.footer-contact dd { color: #C9D3DD; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-family: var(--f-head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-col a { color: #C9D3DD; text-decoration: none; width: fit-content; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--night-line); }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 22px; font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { color: #A9B8C7; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-note { max-width: 560px; color: #8396A9; }
.proto-badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(212, 178, 111, .5); color: var(--gold); font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9375rem; box-shadow: var(--shadow-lg); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Componentes de secciones ampliadas (Institución, Justicia abierta,
   Documentos, Prensa, Escuela, Curso, Campus)
   -------------------------------------------------------------------------- */
/* Subnavegación de página con seguimiento de sección */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; white-space: nowrap; text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: .92rem; color: var(--text-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); font-weight: 700; border-color: var(--gold); }
.subnav-dark { background: rgba(11,26,42,.94); border-bottom-color: var(--night-line); }
.subnav-dark a { color: #A9B8C7; }
.subnav-dark a:hover, .subnav-dark a.is-active { color: #fff; }
.subnav .subnav-cta { margin-left: auto; color: var(--gold-700); font-weight: 700; }
.subnav-dark .subnav-cta { color: var(--gold); }
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Tabla comparativa */
.compare td:first-child { font-family: var(--f-head); font-weight: 650; color: var(--ink); white-space: nowrap; }
.compare tr.is-us td { background: var(--brand-50); }
.compare tr.is-us td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* Mensaje institucional */
.message { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.photo-ph { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--brand-100), var(--gold-50)); color: var(--brand-600); text-align: center; font-size: .85rem; padding: 16px; border: 1px dashed #A9C8E6; }
.photo-ph .ic { width: 36px; height: 36px; margin-bottom: 8px; opacity: .7; }
.message blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.3; color: var(--ink); }
.signature { display: flex; flex-direction: column; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.signature strong { font-family: var(--f-head); color: var(--ink); }

/* Fichas de autoridades */
.authority { display: flex; flex-direction: column; gap: 12px; }
.authority .photo-ph { aspect-ratio: 1; border-radius: var(--r-lg); }
.authority-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; font-size: .9rem; }

/* Organigrama */
.org-tree { display: flex; flex-direction: column; align-items: center; }
.org-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; padding-top: 26px; margin-top: 24px; }
.org-branches::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-2); }
.org-branch { position: relative; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.org-branch::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--line-2); }
.org-branch h3 { font-size: 1rem; margin-bottom: 10px; }
.org-branch ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-2); }
.org-branch li { padding-left: 14px; position: relative; }
.org-branch li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Línea de tiempo vertical */
.vline { list-style: none; padding: 0; position: relative; display: flex; flex-direction: column; }
.vline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand-100), var(--gold), var(--brand-100)); }
.vline > li { position: relative; padding: 0 0 26px 44px; }
.vline > li:last-child { padding-bottom: 0; }
.vline > li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-500); }
.vline > li.is-key::before { border-color: var(--gold); background: var(--gold); }
.vline-t { display: block; font-family: var(--f-head); font-weight: 700; font-size: .85rem; letter-spacing: .02em; color: var(--brand-500); margin-bottom: 4px; }
.vline > li.is-key .vline-t { color: var(--gold-700); }
.on-dark .vline > li::before { background: var(--night); }

/* Lista de normas / recursos */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.02rem; }
.rows p { color: var(--muted); font-size: .9375rem; }

/* Estados */
.state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--f-head); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-ok { background: var(--ok-50); color: var(--ok); }
.state-prog { background: var(--brand-50); color: var(--brand-500); }
.state-pend { background: #F1F3F5; color: var(--muted); }
.state-warn { background: var(--warn-50); color: var(--warn); }
.state-off { background: #FDECEC; color: #9B1C20; }

/* KPIs con fuente */
.kpi-src { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.chart-ph { display: grid; place-items: center; min-height: 220px; padding: 24px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(90deg, transparent 0 59px, var(--line) 59px 60px), var(--surface); color: var(--muted); text-align: center; font-size: .92rem; }

/* Documentos: lista + ficha */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.doc-item { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.doc-item:hover { border-color: var(--line-2); }
.doc-item[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,58,95,.1); background: var(--brand-50); }
.doc-item-t { font-family: var(--f-head); font-weight: 650; color: var(--ink); line-height: 1.35; }
.doc-detail { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: .9375rem; }
.facts dt { font-weight: 700; color: var(--ink); }
.plain { padding: 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--gold-50), #fff 80%); border: 1px solid #EEDDB8; }
.plain dt { font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); margin-top: 14px; }
.plain dt:first-of-type { margin-top: 10px; }
.plain dd { margin-top: 4px; color: var(--text); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.e-Vigente { background: var(--ok-50); color: var(--ok); border-color: #C8E6D5; }
.e-Modificado { background: var(--brand-50); color: var(--brand-500); }
.e-Derogado { background: #FDECEC; color: #9B1C20; border-color: #F5C9CB; }
.e-Enconsulta { background: var(--gold-50); color: var(--gold-700); border-color: #EEDDB8; }

/* Prensa: historia destacada */
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.story-time { font-family: var(--f-head); font-weight: 700; color: var(--brand-500); font-size: .9rem; }
.story-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.story-aside img { border-radius: var(--r-lg); }
.gloss dt { font-family: var(--f-head); font-weight: 650; color: var(--ink); margin-top: 10px; }
.gloss dd { color: var(--text-2); font-size: .9375rem; }

/* Escuela */
.course-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.course-card .h4 { color: var(--ink); }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cal { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cal li { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--f-head); line-height: 1.1; }
.cal-date b { font-size: 1.1rem; }
.cal-date small { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.ally { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ally strong { font-family: var(--f-head); color: var(--ink); }

/* Curso */
.course-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.course-facts { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.course-facts > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.course-facts .ic { color: var(--brand-500); margin-top: 2px; }
.course-facts dt { font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.course-facts dd { color: var(--ink); }
.modules details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 10px; }
.modules summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; }
.modules summary::-webkit-details-marker { display: none; }
.modules summary .num { width: 40px; height: 40px; }
.modules summary .ic { color: var(--muted); transition: transform .3s var(--ease); }
.modules details[open] summary .ic { transform: rotate(180deg); }
.modules .mod-body { padding: 0 20px 20px 80px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.pull { font-family: var(--f-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.25; color: var(--brand-600); border-left: 3px solid var(--gold); padding-left: 20px; }

/* Campus */
.campus-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.campus-user { display: flex; align-items: center; gap: 16px; }
.campus-user .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.progress-track { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-500)); transform-origin: left; animation: growx 1.2s var(--ease) both; }
.plan-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.plan-steps li { position: relative; padding-left: 26px; font-size: .9rem; line-height: 1.45; }
.plan-steps .ic { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; }
.campus-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cert-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ink), var(--night-2)); color: #C9D3DD; }
.cert-card strong { color: #fff; font-family: var(--f-head); }
.cert-card code { color: var(--gold); font-size: .85rem; }
.demo-ribbon { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r); background: var(--gold-50); border: 1px solid #EEDDB8; font-size: .9rem; color: var(--gold-700); }

@media (max-width: 1024px) {
  .message, .docs-layout, .story, .course-hero, .campus-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-detail, .story-aside { position: static; max-height: none; }
  .org-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-branches::before, .org-branch::before { display: none; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message .photo-ph { max-width: 240px; }
}
@media (max-width: 760px) {
  .org-branches, .mod-grid, .plan-steps { grid-template-columns: minmax(0, 1fr); }
  .rows > li { grid-template-columns: minmax(0, 1fr); }
  .cal li { grid-template-columns: 64px minmax(0, 1fr); }
  .cal li > :last-child { grid-column: 1 / -1; }
  .modules summary { grid-template-columns: 40px minmax(0, 1fr) 20px; }
  .modules summary .xsmall { display: none; }
  .modules .mod-body { padding-left: 20px; }
  .compare td:first-child { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Modos de accesibilidad
   -------------------------------------------------------------------------- */
[data-contrast="high"] {
  --text: #000; --text-2: #111; --muted: #2B2B2B; --line: #555; --line-2: #222; --bg: #fff; --surface-2: #fff;
  --brand: #002B55; --brand-500: #003A75; --brand-600: #002B55; --brand-50: #fff; --brand-100: #000;
}
[data-contrast="high"] body { background: #fff; }
[data-contrast="high"] .hero-bg, [data-contrast="high"] .page-hero::before, [data-contrast="high"] .page-hero::after, [data-contrast="high"] .school::before, [data-contrast="high"] .school::after { display: none; }
[data-contrast="high"] .card, [data-contrast="high"] .task, [data-contrast="high"] .choice, [data-contrast="high"] .news, [data-contrast="high"] .doc { border-width: 2px; border-color: #000; box-shadow: none; }
[data-contrast="high"] a:not(.btn):not(.task):not(.card-link):not(.news):not(.brand) { text-decoration: underline; }
[data-contrast="high"] .site-header { background: #fff; backdrop-filter: none; border-bottom: 2px solid #000; }
[data-contrast="high"] .muted, [data-contrast="high"] .task-d, [data-contrast="high"] .choice-d { color: #1a1a1a; }
[data-contrast="high"] .ph { background: #FFE8A3; color: #000; outline: 1px solid #000; }

[data-easy="on"] body { font-size: 1.2rem; line-height: 1.85; letter-spacing: .012em; word-spacing: .06em; }
[data-easy="on"] .lead { font-size: 1.35rem; }
[data-easy="on"] .serif { font-family: var(--f-head); font-style: normal; font-weight: 700; }
[data-easy="on"] .reveal { opacity: 1; transform: none; }
[data-easy="on"] .hero-bg, [data-easy="on"] .bento-viz, [data-easy="on"] .page-hero::before { display: none; }
[data-easy="on"] p, [data-easy="on"] li { max-width: 60ch; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .search-trigger { width: 240px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .search-trigger { width: 46px; padding: 0; justify-content: center; }
  .search-trigger-t, .search-trigger .kbd { display: none; }
  .hero-in, .finder, .split, .hero-split, .wizard, .with-toc, .map-layout, .profiles { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; }
  .toc-t { width: 100%; padding: 0 0 4px; }
  .toc a { padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .875rem; }
  .toc a::before { display: none; }
  .aside-sticky, .map-panel { position: static; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-100), var(--gold) 50%, var(--brand-100)); }
  .tl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding-bottom: 24px; }
  .tl-dot { grid-row: span 2; }
  .tl-item h3 { margin-top: 14px; }
  .profile-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .profile-tab { flex: none; width: auto; min-height: 48px; border: 1px solid var(--line); background: var(--surface); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .topbar-tools .tool span { display: none; }
  .topbar-line { display: none !important; }
  .topbar-in { padding-block: 4px; }
  .header-in { min-height: 66px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .75rem; }
  .btn-cta { display: none; }
  .task-grid { grid-template-columns: minmax(0, 1fr); }
  .task-feature { grid-column: auto; }
  .task { min-height: 0; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-search { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px 8px 8px 16px; }
  .hero-search .btn { width: 100%; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-lg { grid-row: auto; }
  .news-sm { flex-direction: column; }
  .news-sm .news-img { flex: none; aspect-ratio: 16/10; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .b-wide { grid-column: auto; }
  .wz-choices { grid-template-columns: minmax(0, 1fr); }
  .result-meta { grid-template-columns: minmax(0, 1fr); }
  .progress span.t { font-size: .75rem; }
  .sede { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc > .ico-tile { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 110px minmax(0, 1fr) 44px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 32px; }
  .tile { font-size: .6rem; border-radius: 8px; }
  .line-row a { font-size: 1.5rem; }
  .line-row { grid-template-columns: 62px minmax(0, 1fr); }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .drawer, .cmdk, .feedback, .site-footer, .no-print, .aside-sticky, .progress, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card, .result-head { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .wizard { display: block; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
