/* Gold Talent – sistema visual
   Paleta corporativa Sun Valley Investment: dorado #cb8413, café #6f3c0d y blanco. Sin negro.
   Tema claro: fondos blancos y crema, dorado como acento, café para texto y énfasis.
   Contrastes (WCAG AA) medidos y documentados en .claude/skills/sistema-visual-gold-talent/SKILL.md. */

:root {
  /* Corporativos */
  --oro-corp: #cb8413;
  --cafe-corp: #6f3c0d;
  --blanco: #ffffff;

  /* Fondos y superficies (derivados claros del dorado) */
  --bg: #e6d4bc;
  --bg-2: #d9c1a0;
  --surface: #f7efe3;
  --surface-2: #efe2cf;
  --surface-3: #e2ceb1;
  --line: #d2bb98;
  --line-2: #c0a17a;
  --campo-borde: #8a6c4c;

  /* Texto (derivados del café) */
  --text: #3a1f07;
  --text-2: #5a361a;
  --muted: #664a33;
  --cafe: #6f3c0d;
  --cafe-2: #74431b;

  /* Acento dorado */
  --gold: #cb8413;
  --gold-2: #7a4806;
  --gold-3: #7a4908;
  --gold-claro: #e3a843;
  --gold-soft: rgba(203, 132, 19, 0.12);
  --gold-line: rgba(203, 132, 19, 0.45);
  --sobre-oro: #2e1905;
  --oro-hover: #d6912a;
  --foco: #7a4806;

  /* Estados */
  --ok: #285e36;
  --ok-soft: #e6f2e8;
  --ok-line: rgba(46, 107, 62, 0.35);
  --warn: #8a4b06;
  --warn-soft: #fcefd9;
  --warn-line: rgba(138, 75, 6, 0.35);
  --err: #a3352a;
  --err-soft: #fbe7e4;
  --err-line: rgba(163, 53, 42, 0.35);
  --info: #2c5d8a;
  --info-soft: #e6eff8;
  --info-line: rgba(44, 93, 138, 0.35);

  --radius: 10px;
  --radius-lg: 16px;
  --sombra-color: rgba(111, 60, 13, 0.10);
  --shadow: 0 10px 30px rgba(111, 60, 13, 0.12);
  --shadow-sm: 0 1px 2px rgba(111, 60, 13, 0.06);
  --velo: rgba(58, 31, 7, 0.40);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
h1, h2 { color: var(--cafe); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }

/* ------------------------------------------------------------- Layout */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface) 30%, color-mix(in srgb, var(--surface) 40%, transparent) 75%, transparent 100%),
    url("../img/ondas.svg") left -160px bottom -10px / 700px auto no-repeat,
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 55%, var(--bg-2) 100%);
  border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; margin-bottom: 4px; color: var(--cafe);
         border-bottom: 1px solid var(--line); }
.brand:hover { color: var(--cafe); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brand-name span { color: var(--gold-2); }
.nav-group { margin-top: 14px; padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
             text-transform: uppercase; color: var(--muted); }
.nav-modulo > summary.nav-group { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             list-style: none; cursor: pointer; padding: 8px 10px; margin-top: 10px; border-radius: 8px; color: var(--cafe); }
.nav-modulo > summary.nav-group::-webkit-details-marker { display: none; }
.nav-modulo > summary.nav-group::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 2px solid currentColor;
             border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.nav-modulo[open] > summary.nav-group::after { transform: rotate(45deg); }
.nav-modulo > summary.nav-group:hover { background: var(--surface-3); }
.nav-modulo > .nav-link { margin-top: 4px; }
.nav-modulo[open] { padding-bottom: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; border: 1px solid transparent;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav-link.activo { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold-line); font-weight: 600;
                   box-shadow: inset 3px 0 0 var(--gold); }
.nav-link .badge-num { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 12px 28px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.topbar .titulo-app { font-size: 12px; font-weight: 600; color: var(--cafe); letter-spacing: 0.12em; text-transform: uppercase; }
.topbar .espaciador { flex: 1; }
.menu-movil { display: none; background: none; border: 0; color: var(--cafe); padding: 4px; cursor: pointer; }
.usuario-chip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border: 1px solid var(--line);
                border-radius: 999px; color: var(--text); background: var(--surface); }
.usuario-chip:hover { border-color: var(--gold); color: var(--text); text-decoration: none; }
.usuario-chip .nombre { font-weight: 500; font-size: 13px; line-height: 1.2; }
.usuario-chip .rol { font-size: 11px; color: var(--muted); display: block; max-width: 280px; overflow: hidden;
                     text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
          font-size: 12px; background: var(--cafe); color: var(--blanco); border: 1px solid var(--cafe); }

.contenido { padding: 26px 28px 60px; max-width: 1360px; width: 100%; }
.encabezado {
  position: relative; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 70%, var(--surface-3) 100%);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.encabezado::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.encabezado .kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.encabezado p { color: var(--text-2); margin: 6px 0 0; max-width: 720px; }
.encabezado .acciones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Bloques */
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
           box-shadow: var(--shadow-sm); min-width: 0; }
.tarjeta + .tarjeta { margin-top: 16px; }
.grid > .tarjeta + .tarjeta { margin-top: 0; }
.tarjeta-titulo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tarjeta-titulo > .icon { color: var(--gold-2); }
.tarjeta-titulo h2 { flex: 1; }
.tarjeta-titulo .num { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
                       background: var(--gold-soft); color: var(--gold-3); font-size: 12px; font-weight: 700; }
.grid { display: grid; gap: 16px; align-items: stretch; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-lado { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pila > * + * { margin-top: 12px; }
.sticky { position: sticky; top: 76px; }

/* KPI */
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
       padding: 18px 18px 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
              background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.85; }
.kpi .etiqueta { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi .valor { font-size: 32px; font-weight: 650; letter-spacing: -0.02em; margin: 6px 0 4px; color: var(--cafe); }
.kpi .detalle { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.kpi .detalle b { color: var(--text); font-weight: 600; }
.kpi .icono-kpi { position: absolute; right: 16px; top: 16px; color: var(--gold-2); }

/* --------------------------------------------------------- Formularios */
label, .label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.req::after { content: " *"; color: var(--err); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=search],
select, textarea {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--campo-borde); border-radius: 8px;
  padding: 9px 11px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--foco); box-shadow: 0 0 0 3px var(--gold-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--foco); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.85; }
input[readonly], textarea[readonly] { color: var(--muted); background: var(--surface-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
         linear-gradient(135deg, var(--muted) 50%, transparent 50%);
         background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
         padding-right: 30px; }
input[type=date] { color-scheme: light; }
.campo { margin-bottom: 14px; }
.ayuda { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid var(--line);
         border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text-2); margin: 0; }
.check:hover { border-color: var(--campo-borde); }
.check input { accent-color: var(--gold-2); margin-top: 3px; }
.check:has(input:focus-visible) { outline: 2px solid var(--foco); outline-offset: 1px; }
.check:has(input:checked) { border-color: var(--gold-line); background: var(--gold-soft); color: var(--text); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.segmentado { display: inline-flex; border: 1px solid var(--campo-borde); border-radius: 8px; overflow: hidden; background: var(--surface); }
.segmentado label { position: relative; margin: 0; padding: 8px 16px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.segmentado input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmentado label:has(input:checked) { background: var(--gold-soft); color: var(--gold-3); font-weight: 600; }
.segmentado label:has(input:focus-visible) { outline: 2px solid var(--foco); outline-offset: -3px; }
.segmentado label + label { border-left: 1px solid var(--campo-borde); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
       border-radius: 8px; border: 1px solid var(--campo-borde); background: var(--surface); color: var(--text);
       font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .15s; }
.btn:hover { border-color: var(--cafe-2); background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn-oro { background: var(--gold); color: var(--sobre-oro); border-color: var(--gold-2); font-weight: 600; }
.btn-oro:hover { background: var(--oro-hover); color: var(--sobre-oro); border-color: var(--gold-3); }
.btn-borde { background: var(--surface); border-color: var(--gold-2); color: var(--gold-2); }
.btn-borde:hover { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold-3); }
.btn-peligro { background: var(--surface); border-color: var(--err); color: var(--err); }
.btn-peligro:hover { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.btn-ok { background: var(--surface); border-color: var(--ok); color: var(--ok); }
.btn-ok:hover { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-bloque { width: 100%; }
.btn-icono { padding: 7px; }
button:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* --------------------------------------------------------------- Tablas */
.tabla-envoltura { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
                   box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cafe-2);
     font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td .sub { display: block; font-size: 12px; color: var(--muted); }
.tabla-datos td:first-child { color: var(--muted); width: 38%; }
.vacio { text-align: center; padding: 40px 20px; color: var(--muted); }
.vacio .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 8px; }

/* Insignias de estado */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px;
         font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-oro { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold-line); }
.b-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.b-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.b-err { background: var(--err-soft); color: var(--err); border-color: var(--err-line); }
.b-info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.b-gris { background: var(--surface-3); color: var(--muted); border-color: var(--line-2); }
.badge-num { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-2); color: var(--blanco);
             font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.etiqueta-perfil { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-3);
                   font-size: 11.5px; color: var(--text-2); margin: 2px 4px 2px 0; }

/* Mensajes */
.mensajes { display: grid; gap: 8px; margin-bottom: 18px; }
.mensaje { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.mensaje.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.mensaje.error { background: var(--err-soft); border-color: var(--err-line); color: var(--err); }
.mensaje.info { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.mensaje.aviso { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.aviso { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--gold-line); background: var(--gold-soft);
         color: var(--text-2); }
.aviso.err { border-color: var(--err-line); background: var(--err-soft); }
.aviso b { color: var(--text); }
.cita { border-left: 3px solid var(--gold); padding: 8px 14px; background: var(--surface-2); border-radius: 0 8px 8px 0;
        color: var(--text-2); white-space: pre-line; }

/* Pestañas */
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pestanas a { padding: 10px 14px; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500;
              display: inline-flex; gap: 8px; align-items: center; }
.pestanas a:hover { color: var(--text); text-decoration: none; }
.pestanas a.activo { color: var(--gold-3); border-bottom-color: var(--gold); font-weight: 600; }
.pestanas a:focus-visible { outline-offset: -2px; }
.panel-pestana + .panel-pestana { margin-top: 24px; }
.titulo-panel { font-size: 15px; color: var(--cafe); margin-bottom: 10px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                      clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Bandeja */
.tarea { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tarea:last-child { border-bottom: 0; }
.tarea-icono { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
               background: var(--gold-soft); color: var(--gold-3); border: 1px solid var(--gold-line); }
.tarea-icono.info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.tarea-cuerpo { flex: 1; min-width: 0; }
.tarea-titulo { font-weight: 500; color: var(--text); }
.tarea-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.tarea-avance { width: 230px; flex: none; }
@media (max-width: 860px) { .tarea { flex-wrap: wrap; } .tarea-avance { width: 100%; order: 3; } }

/* Línea de tiempo */
.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { position: relative; padding: 0 0 16px 22px; }
.linea-tiempo li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
                            background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.linea-tiempo li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo .que { font-weight: 500; }
.linea-tiempo .cuando { font-size: 12px; color: var(--muted); }
.linea-tiempo .detalle { font-size: 12.5px; color: var(--text-2); margin-top: 3px; white-space: pre-line; }

/* Progreso del flujo */
.flujo { display: flex; gap: 0; margin: 4px 0 2px; }
.paso { flex: 1; position: relative; text-align: center; font-size: 11.5px; color: var(--muted); padding-top: 22px; }
.paso::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px;
                border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); z-index: 1; }
.paso::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.paso:first-child::after { display: none; }
.paso.hecho { color: var(--text-2); }
.paso.hecho::before { background: var(--gold); border-color: var(--gold); }
.paso.hecho::after, .paso.actual::after { background: var(--gold); }
.paso.actual { color: var(--gold-3); font-weight: 600; }
.paso.actual::before { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.paso.error { color: var(--err); }
.paso.error::before { border-color: var(--err); background: var(--err); }

/* Indicador de avance del flujo */
.avance { display: grid; gap: 4px; min-width: 170px; }
.avance-fila { display: flex; align-items: center; gap: 8px; }
.avance-puntos { display: inline-flex; gap: 3px; }
.avance-puntos .pt { width: 16px; height: 6px; border-radius: 3px; background: var(--line-2); }
.avance-puntos .pt.hecho { background: var(--gold); }
.avance-puntos .pt.actual { background: var(--cafe); box-shadow: 0 0 0 2px var(--gold-soft); }
.avance-puntos .pt.error { background: var(--err); }
.avance-puntos .pt.mio { outline: 1px solid var(--cafe); outline-offset: 1px; }
.avance-num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.avance-etapa { font-size: 12.5px; color: var(--text-2); }
.avance-espera { font-size: 11.5px; color: var(--muted); }
.avance-turno { justify-self: start; }
.avance .badge { justify-self: start; }

.avance-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px;
                margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.avance-panel.turno { border-color: var(--gold-line); box-shadow: inset 3px 0 0 var(--gold); }
.avance-panel.error { box-shadow: inset 3px 0 0 var(--err); }
.avance-panel.fin { box-shadow: inset 3px 0 0 var(--ok); }
.avance-panel .kicker { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.avance-cabecera { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.avance-titulo { font-size: 17px; font-weight: 600; margin-top: 2px; color: var(--cafe); }
.avance-estado { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.barra-avance { height: 4px; background: var(--line); border-radius: 99px; margin: 14px 0 16px; overflow: hidden; }
.barra-avance span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.pasos-detalle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pasos-detalle li { display: flex; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.pasos-detalle .marca { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
                        font-weight: 700; border: 2px solid var(--line-2); color: var(--muted); }
.pasos-detalle .nombre { font-weight: 600; font-size: 13px; }
.pasos-detalle .resp { font-size: 11.5px; color: var(--muted); }
.pasos-detalle li.hecho .marca { background: var(--gold); border-color: var(--gold-2); color: var(--sobre-oro); }
.pasos-detalle li.actual { border-color: var(--gold-line); background: var(--gold-soft); }
.pasos-detalle li.actual .marca { border-color: var(--gold-2); color: var(--gold-3); background: var(--surface); }
.pasos-detalle li.error { border-color: var(--err-line); background: var(--err-soft); }
.pasos-detalle li.error .marca { background: var(--err); border-color: var(--err); color: var(--blanco); }
.pasos-detalle li.mio { outline: 1px dashed var(--gold-2); outline-offset: -4px; }
.pasos-detalle .tu { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--gold); color: var(--sobre-oro); font-size: 10.5px;
                     font-weight: 700; margin-left: 4px; vertical-align: 1px; }

/* Descripción de cargo */
.seccion-dc { padding: 16px 0; border-top: 1px solid var(--line); }
.seccion-dc:first-child { border-top: 0; padding-top: 0; }
.seccion-dc h3 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.texto-largo { white-space: pre-line; color: var(--text-2); }
.resp { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.resp:last-child { border-bottom: 0; }
.resp .n { width: 26px; flex: none; color: var(--gold-2); font-weight: 600; font-family: var(--mono); }
.resp.fija { color: var(--muted); }
.resp.sst .n { color: var(--info); }
.lista-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12.5px; }
.chip.on { background: var(--gold-soft); color: var(--gold-3); border: 1px solid var(--gold-line); font-weight: 600; }

.item-dinamico { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.item-dinamico .n { width: 30px; height: 38px; display: grid; place-items: center; color: var(--gold-2); font-family: var(--mono);
                    font-weight: 600; flex: none; }
.item-dinamico textarea { min-height: 62px; }
.item-fijo { display: flex; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px dashed var(--line-2);
             border-radius: 8px; color: var(--muted); font-size: 13px; background: var(--surface-2); }
.item-fijo .etiqueta-fija { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.item-fijo .etiqueta-fija .icon { vertical-align: -2px; }
.item-fijo .n { width: 22px; flex: none; font-family: var(--mono); color: var(--muted); }
.rel-fila { display: grid; grid-template-columns: 110px 1fr 1.4fr 140px 36px; gap: 8px; margin-bottom: 8px; }
.rel-fila .valor-original { grid-column: 1 / -1; margin: 0; }
.valor-original { color: var(--warn); }
.version-actual { color: var(--text); font-weight: 700; }
.paso-detalle { color: var(--text-2); }

/* Modal */
.modal-fondo { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px;
               background: var(--velo); backdrop-filter: blur(3px); }
.modal-fondo.abierto { display: grid; }
.modal { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-lg);
         padding: 24px; box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 6px; }
dialog.modal { margin: auto; color: var(--text); max-height: calc(100vh - 32px); overflow: auto; }
dialog.modal::backdrop { background: var(--velo); backdrop-filter: blur(3px); }
.modal .aviso { margin: 0 0 12px; }

/* Filtros */
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end;
           padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px;
           box-shadow: var(--shadow-sm); }
.filtros .campo { margin: 0; }
.grupo-switch { display: inline-flex; padding: 3px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; gap: 3px; }
.grupo-switch a { padding: 7px 14px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13px; }
.grupo-switch a:hover { color: var(--text); text-decoration: none; }
.grupo-switch a.activo { background: var(--surface); color: var(--gold-3); font-weight: 600; box-shadow: var(--shadow-sm); }
.barra-h { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
.barra-h .pista { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.barra-h .relleno { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }
.barra-h .v { text-align: right; color: var(--cafe); font-weight: 600; }
.barra-h .e { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hallazgos { margin: 0; padding: 0; list-style: none; }
.hallazgos li { padding: 8px 0 8px 22px; position: relative; color: var(--text-2); border-bottom: 1px solid var(--line); }
.hallazgos li:last-child { border-bottom: 0; }
.hallazgos li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; transform: rotate(45deg);
                        background: var(--gold); }
.hallazgos li.alerta { color: var(--err); font-weight: 600; }
.hallazgos li.alerta::before { background: var(--err); }

/* ------------------------------------------------------------ Tablero (§8)
   Diseño: docs/entregas/e3-tablero-diseno.md. Gráficas en HTML y CSS con alturas fijas y columnas
   minmax(0, 1fr): nada se superpone ni fuerza desplazamiento horizontal. Códigos de color (2.0):
   grupo (minera café, administrativa dorado), género (mujeres dorado claro, hombres café 2) y
   vinculación (sólido frente a contorno). Toda barra lleva su cifra escrita. */
.tablero > * + * { margin-top: 20px; }
.tablero > .encabezado { margin-bottom: 0; }
.tablero .tarjeta + .tarjeta { margin-top: 20px; }
.tablero-corte { font-size: 13px; }
.centro { text-align: center; }

/* Filtros compactos (2.8) */
.filtros-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.filtros-barra .grupo-switch a { display: inline-block; }
.grupo-switch a:focus-visible { outline-offset: -2px; }
.filtros-mas { flex: 1 1 100%; }
@media (min-width: 1101px) { .filtros-mas { flex: 0 1 auto; } .filtros-mas[open] { flex-basis: 100%; } }
.filtros-mas > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer; list-style: none;
                         border: 1px solid var(--campo-borde); border-radius: 10px; background: var(--surface); color: var(--text-2);
                         font-weight: 500; font-size: 13px; }
.filtros-mas > summary::-webkit-details-marker { display: none; }
.filtros-mas > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
                                transform: rotate(45deg); margin-top: -3px; }
.filtros-mas[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.filtros-mas > summary:hover { border-color: var(--cafe-2); color: var(--text); }
.filtros-mas-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; align-items: end;
                    margin-top: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line);
                    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.filtros-mas-form .campo { margin: 0; min-width: 0; }
.filtros-acciones, .filtros-ayuda, .error-campo { grid-column: 1 / -1; margin: 0; }
.error-campo { color: var(--err); font-size: 12.5px; font-weight: 600; }
.chips-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; margin: 0; }
.tablero > .chips-filtros { margin-top: 12px; }
.chip-filtro { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px;
               background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-3); font-weight: 600; }
.chip-filtro a { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--gold-3); }
.chip-filtro a:hover { background: var(--surface); }
.chip-limpiar { font-weight: 600; }
.nota-grupo { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }

/* KPI (2.2) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis .kpi { min-height: 168px; border-left: 4px solid var(--kpi-color, var(--gold-2)); }
.kpis .kpi::after { display: none; }
.kpi-ingresadas { --kpi-color: var(--gold-2); }
.kpi-aprobadas { --kpi-color: var(--cafe); }
.kpi-rechazadas { --kpi-color: var(--err); }
.kpi-contratadas { --kpi-color: var(--ok); }
.kpis .etiqueta { margin: 0; color: var(--muted); }
.kpi-cifra { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.kpis .valor { font-size: 36px; font-weight: 650; line-height: 1.1; margin: 0; color: var(--cafe); font-variant-numeric: tabular-nums; }
.variacion { font-size: 14px; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.kpi-comparado { font-size: 12px; color: var(--muted); }
.minibarra-grupo { display: flex; gap: 2px; height: 8px; margin: 10px 0 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.minibarra-grupo > span { width: var(--p); min-width: 0; }
.minibarra-grupo > span[style*="--p: 0"] { display: none; }
.kpi-linea { font-size: 12px; color: var(--text-2); }
.kpi-linea b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-linea.suave { color: var(--muted); }
.corto { display: none; }
abbr.corto { text-decoration: none; }

/* Series de color */
.serie-minera { background: var(--cafe); }
.serie-adm { background: var(--gold); }
.serie-vinculado { background: var(--cafe-2); }
.serie-temporal { background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--campo-borde); }
.seg-mujer { background: var(--gold-claro); color: var(--text); }
.seg-hombre { background: var(--cafe-2); color: var(--blanco); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); }
.leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.leyenda .muestra { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* Mujeres y hombres (2.4) */
.genero-banda { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.genero-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.genero-tarjeta { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
                  border-left: 4px solid var(--genero-color); min-width: 0; }
.genero-mujer { --genero-color: var(--gold-claro); }
.genero-hombre { --genero-color: var(--cafe-2); }
.genero-tarjeta .etiqueta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.genero-cifra { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.genero-cifra .valor { font-size: 36px; font-weight: 650; color: var(--cafe); line-height: 1.15; font-variant-numeric: tabular-nums; }
.genero-cifra .pct { font-size: 18px; color: var(--text-2); font-weight: 600; }
.genero-grupos { font-size: 13px; color: var(--text-2); }
.genero-grupos b { color: var(--text); }
.genero-barras { min-width: 0; }
.barra-100-fila + .barra-100-fila { margin-top: 10px; }
.barra-100-titulo { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.barra-100-cuerpo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.pct-fuera { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.barra-100 { display: flex; gap: 2px; height: 28px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.barra-100 .seg { width: var(--p); min-width: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700;
                  white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.vacio-corto { padding: 18px 4px; color: var(--muted); }
.vacio-corto p { margin: 0 0 4px; }

/* Barras horizontales en tabla (2.5 y 2.6) */
.dos-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.dos-columnas > * { min-width: 0; }
.subtitulo-grafica { font-size: 13px; color: var(--cafe); margin-bottom: 8px; }
.tarjeta-titulo .grupo-switch { flex: none; }
table.barras { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; }
table.barras th, table.barras td { padding: 0; border: 0; background: none; height: 26px; vertical-align: middle; }
table.barras tbody tr:hover td, table.barras tbody tr:hover th { background: none; }
table.barras tbody th[scope=row] { width: 170px; padding-right: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0;
                                   text-transform: none; color: var(--text-2); white-space: nowrap; }
table.barras tbody th[scope=row] > span { display: block; overflow: hidden; text-overflow: ellipsis; }
table.barras col.c-etiqueta { width: 170px; }
table.barras col.c-cifra { width: 44px; }
.edad table.barras col.c-etiqueta { width: 110px; }
table.barras tbody th[scope=row] > span.corto { display: none; }
table.barras .cifra { width: 40px; text-align: right; color: var(--cafe); font-weight: 600; font-variant-numeric: tabular-nums; }
table.barras .barras-pista { width: auto; }
table.barras .pista { display: flex; gap: 2px; height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
table.barras .pista .seg { width: var(--p); min-width: 0; }
table.barras .barras-subtitulo th { height: auto; padding: 12px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
                                    color: var(--muted); font-weight: 600; text-align: left; }
table.barras tbody:first-of-type .barras-subtitulo th { padding-top: 0; }
table.barras .barras-sin { height: auto; padding: 2px 0 6px; font-size: 12.5px; }
.edad table.barras { max-width: 820px; }
.edad table.barras tbody th[scope=row] { width: 110px; }
.edad table.barras th, .edad table.barras td { height: 28px; padding-bottom: 6px; }
.edad table.barras .pista { height: 16px; border-radius: 4px; }
.mas-filas { margin-top: 8px; }
.mas-filas > summary { cursor: pointer; color: var(--gold-2); font-weight: 600; font-size: 13px; padding: 4px 0; }
.mas-filas > summary:hover { color: var(--gold-3); }

/* Estado actual (2.7) */
.flujo-estados { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; list-style: none; margin: 0 0 12px; padding: 0; }
.flujo-estados li { display: inline-flex; align-items: center; gap: 4px; }
.flujo-estados li + li:not(.final)::before { content: "→"; color: var(--muted); margin-right: 2px; }
.flujo-estados li.final { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.flujo-estados li + li.final::before { content: none; }
.flujo-estados a { display: inline-flex; align-items: center; gap: 6px; padding: 2px; border-radius: 999px; color: var(--text); }
.flujo-estados a:hover { text-decoration: none; background: var(--surface-2); }
.flujo-estados a.activo { box-shadow: 0 0 0 2px var(--cafe); }
.flujo-estados b { font-variant-numeric: tabular-nums; padding-right: 6px; }
.estado-linea { color: var(--text-2); font-size: 13px; margin: 0 0 6px; }
.estado-linea b { color: var(--text); }
.pendientes-asignacion { margin: 14px 0; padding: 12px 16px; border-radius: var(--radius); background: var(--info-soft);
                         border: 1px solid var(--info-line); color: var(--info); }
.pendientes-asignacion h3 { color: var(--info); margin-bottom: 6px; }
.pendientes-asignacion ul { margin: 0; padding-left: 18px; }
.pendientes-asignacion a { color: var(--info); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.vistas-tabla { margin: 14px 0 10px; }
.vistas-tabla b { font-variant-numeric: tabular-nums; }
.tabla-tablero table th[scope=row] { font-size: inherit; letter-spacing: 0; text-transform: none; background: var(--surface);
                                     border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla-tablero tbody tr:hover th[scope=row] { background: var(--surface-2); }
.paginacion { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genero-banda { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .dos-columnas { grid-template-columns: minmax(0, 1fr); }
  .filtros-barra .grupo-switch { display: flex; width: 100%; }
  .filtros-barra .grupo-switch a { flex: 1 1 0; text-align: center; padding: 7px 6px; }
  .tabla-tablero tbody th[scope=row] { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .tarjeta-titulo { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .kpis { gap: 10px; }
  .kpis .kpi { padding: 14px 12px 12px; min-height: 0; }
  .kpis .valor, .genero-cifra .valor { font-size: 28px; }
  .largo { display: none; }
  .corto { display: inline; }
  .genero-tarjeta { padding: 12px; }
  .flujo-estados li + li:not(.final)::before { content: none; }
  .flujo-estados li.final { margin-left: 0; padding-left: 0; border-left: 0; }
  /* La etiqueta pasa arriba de la barra para no cortar «Abastecimiento y Logística». */
  table.barras tbody tr:not(.barras-subtitulo) { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; }
  table.barras tbody th[scope=row] { width: auto; grid-column: 1 / -1; height: auto; padding: 4px 0 2px; white-space: normal; }
  table.barras tbody th[scope=row] > span { white-space: normal; }
  table.barras .barras-pista { height: 16px; }
  table.barras tbody th[scope=row] > span.corto { display: block; }
  table.barras tbody th[scope=row] > span.largo { display: none; }
  .edad table.barras tbody th[scope=row] { grid-column: auto; width: auto; }
  .edad table.barras tbody tr:not(.barras-subtitulo) { grid-template-columns: 64px minmax(0, 1fr) 32px; }
}

/* ------------------------------------------------------------ Ingreso */
.publica { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
           padding: 40px 7vw; position: relative; isolation: isolate;
           background:
             url("../img/ondas.svg") center bottom / 1500px auto no-repeat,
             linear-gradient(115deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%,
                             color-mix(in srgb, var(--bg-2) 86%, transparent) 100%),
             var(--foto-ingreso, none) center / cover no-repeat,
             radial-gradient(circle at 25% 30%, var(--surface) 0%, var(--bg) 55%, var(--bg-2) 100%); }
.marca-ingreso { justify-self: start; padding: 0; max-width: 520px; }
.marca-ingreso .logo { display: flex; align-items: center; gap: 16px; }
.marca-ingreso .logo svg { width: 58px; height: 58px; }
.marca-ingreso h1 { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--cafe); }
.marca-ingreso h1 span { color: var(--gold-2); }
.marca-ingreso p { margin: 18px 0 0; font-size: 16px; color: var(--text-2); max-width: 400px; }
.tarjeta-ingreso { width: min(420px, 100%); justify-self: end; padding: 34px 32px; border-radius: 18px;
                   background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
                   border-top: 3px solid var(--gold); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.tarjeta-ingreso h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.tarjeta-ingreso .saludo { color: var(--text-2); margin: 6px 0 20px; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 44px; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0;
             color: var(--muted); cursor: pointer; padding: 6px; }
.ver-clave:hover { color: var(--gold-2); }
.ver-clave:focus-visible { outline: 2px solid var(--foco); outline-offset: 0; }
.enlace-centro { display: block; text-align: center; margin-top: 16px; font-size: 13px; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-lado { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.abierto { transform: none; box-shadow: var(--shadow); }
  .menu-movil { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .contenido { padding: 18px 16px 50px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .usuario-chip .rol, .topbar .titulo-app { display: none; }
  .rel-fila { grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
  .publica { grid-template-columns: 1fr; padding: 28px 16px; gap: 24px; align-content: start; }
  .marca-ingreso { justify-self: stretch; padding: 0 4px; }
  .marca-ingreso h1 { font-size: 36px; }
  .tarjeta-ingreso { justify-self: stretch; padding: 26px 20px; }
  .encabezado { padding: 18px; }
  .publica { background-size: 900px auto, auto, cover, auto; }
}
@media (max-width: 520px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .barra-h { grid-template-columns: 110px minmax(0, 1fr) 30px; }
}

@media print {
  .sidebar, .topbar, .acciones, .no-imprimir { display: none !important; }
  .app { display: block; }
  body { background: var(--blanco); color: var(--text); }
  .tarjeta, .kpi, .tabla-envoltura { box-shadow: none; }
}
