/* =============================================================
   Aktiv Capacitación — sistema de diseño
   ADN del tema base (tarjetas translúcidas, botones pill, sombras en capas,
   animaciones suaves) con paleta clínica: blanco, azul marino y coral RCP.
   ============================================================= */
@import url('/assets/css2_2832c0ff631d.css'); /* Inter local */

:root {
  --navy-950: #081a33;
  --navy-900: #0f2a4f;
  --navy-800: #163a68;
  --navy-700: #1f4b85;
  --navy-600: #2b5ea3;
  --navy-200: #c7d6ea;
  --navy-100: #e3ebf6;
  --navy-50: #f3f7fc;
  --coral-700: #b42b31;
  --coral-600: #d93a40;
  --coral-500: #e5484d;
  --coral-400: #f06d70;
  --coral-100: #fde3e3;
  --coral-50: #fff4f4;

  --ink: #0f1b2d;
  --ink-2: #44546a;
  --ink-3: #6b7a90;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --surface: #ffffff;
  --bg: #eef3f8;
  --bg-2: #dfe8f2;

  --green: #15803d; --green-bg: #dcfce7; --green-bd: #bbf7d0;
  --amber: #b45309; --amber-bg: #fef3c7; --amber-bd: #fde68a;
  --red: #b91c1c;   --red-bg: #fee2e2;   --red-bd: #fecaca;
  --blue: #1d4ed8;  --blue-bg: #dbeafe;  --blue-bd: #bfdbfe;
  --violet: #6d28d9; --violet-bg: #ede9fe; --violet-bd: #ddd6fe;
  --teal: #0f766e;  --teal-bg: #ccfbf1;  --teal-bd: #99f6e4;
  --gray: #475569;  --gray-bg: #f1f5f9;  --gray-bd: #e2e8f0;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sombra-xs: 0 1px 2px rgba(15, 27, 45, .06);
  --sombra-sm: 0 1px 2px rgba(15, 27, 45, .04), 0 4px 12px rgba(15, 27, 45, .05);
  --sombra: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05);
  --sombra-capas: 0 2.8px 2.2px rgba(0, 0, 0, .034), 0 6.7px 5.3px rgba(0, 0, 0, .048), 0 12.5px 10px rgba(0, 0, 0, .06), 0 22.3px 17.9px rgba(0, 0, 0, .072), 0 41.8px 33.4px rgba(0, 0, 0, .086), 0 100px 80px rgba(0, 0, 0, .12);
  --sombra-vidrio: rgba(255, 255, 255, .1) 0 1px 1px 0 inset, rgba(50, 50, 93, .25) 0 50px 100px -20px, rgba(0, 0, 0, .3) 0 30px 60px -30px;
  --sidebar: 264px;
  --t: .18s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--coral-100); }
.num, .tabla td.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .01em; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.sec { color: var(--ink-2); }
.peq { font-size: 12.5px; }
.fuerte { font-weight: 600; }
.nowrap { white-space: nowrap; }
.derecha { text-align: right; }
.centro { text-align: center; }
.fila { display: flex; align-items: center; gap: 10px; }
.fila.wrap { flex-wrap: wrap; }
.fila.entre { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 4px; }
.gap-lg { gap: 18px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb { margin-bottom: 16px; }
.flex1 { flex: 1; min-width: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coral { color: var(--coral-600); }

/* ---------- Animaciones (del tema) ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes brillo { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes latido { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes trazo { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.anim-fade { animation: fadeIn .5s ease-out both; }
.anim-up { animation: slideUp .55s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; } .d4 { animation-delay: .24s; } .d5 { animation-delay: .3s; } .d6 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Iconos (lucide) ---------- */
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
.ico-sm { width: 15px !important; height: 15px !important; }
.ico-lg { width: 22px !important; height: 22px !important; }

/* ---------- Botones (pill, del tema) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  text-decoration: none; user-select: none;
}
.btn [data-lucide], .btn .lucide { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--navy-900); color: #fff; box-shadow: 0 1px 2px rgba(8, 26, 51, .2), 0 6px 16px -6px rgba(8, 26, 51, .45); }
.btn-primario:hover { background: var(--navy-800); color: #fff; box-shadow: 0 2px 4px rgba(8, 26, 51, .2), 0 12px 24px -8px rgba(8, 26, 51, .5); transform: translateY(-1px); }
.btn-coral { background: var(--coral-500); color: #fff; box-shadow: 0 1px 2px rgba(180, 43, 49, .25), 0 8px 18px -8px rgba(229, 72, 77, .7); }
.btn-coral:hover { background: var(--coral-600); color: #fff; transform: translateY(-1px); }
.btn-sec { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sombra-xs); }
.btn-sec:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(15, 42, 79, .06); color: var(--navy-900); }
.btn-peligro { background: #fff; color: var(--red); border-color: var(--red-bd); }
.btn-peligro:hover { background: var(--red-bg); color: var(--red); }
.btn-exito { background: var(--green); color: #fff; }
.btn-exito:hover { background: #166534; color: #fff; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn-sm [data-lucide], .btn-sm .lucide { width: 14px; height: 14px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-icono { width: 36px; padding: 0; }
.btn-icono.btn-sm { width: 32px; }
.btn-bloque { width: 100%; }
.btn[disabled], .btn.deshabilitado { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.cargando { pointer-events: none; color: transparent !important; position: relative; }
.btn.cargando::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent transparent; border-radius: 50%; animation: girar .7s linear infinite; }
.btn-sec.cargando::after, .btn-ghost.cargando::after, .btn-peligro.cargando::after { border-color: var(--navy-700) var(--navy-700) transparent transparent; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid rgba(226, 232, 240, .8); border-radius: var(--r-lg); box-shadow: var(--sombra-sm); }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; flex-wrap: wrap; }
.card-cab h3 { font-size: 15.5px; font-weight: 650; }
.card-cab .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.card-cuerpo { padding: 18px 22px 22px; }
.card-pie { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.card.plana { box-shadow: none; }
.card.vidrio { background: rgba(255, 255, 255, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .7); }
.card.resaltada { border-color: var(--coral-100); box-shadow: 0 0 0 4px var(--coral-50), var(--sombra-sm); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- KPI / stat (tarjetas degradadas del tema) ---------- */
.stat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--blue-bd);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%); transition: box-shadow var(--t), transform var(--t);
}
.stat:hover { box-shadow: var(--sombra-sm); transform: translateY(-1px); }
.stat .ico { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); margin-bottom: 8px; }
.stat .ico svg { width: 19px; height: 19px; }
.stat .etq { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stat .val { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.stat .det { font-size: 12px; color: var(--ink-3); }
.stat.coral { border-color: #fbd0d1; background: linear-gradient(135deg, var(--coral-50) 0%, #fff 70%); }
.stat.coral .ico { background: var(--coral-100); color: var(--coral-600); }
.stat.verde { border-color: var(--green-bd); background: linear-gradient(135deg, #f0fdf4 0%, #fff 70%); }
.stat.verde .ico { background: var(--green-bg); color: var(--green); }
.stat.ambar { border-color: var(--amber-bd); background: linear-gradient(135deg, #fffbeb 0%, #fff 70%); }
.stat.ambar .ico { background: var(--amber-bg); color: var(--amber); }
.stat.violeta { border-color: var(--violet-bd); background: linear-gradient(135deg, #f5f3ff 0%, #fff 70%); }
.stat.violeta .ico { background: var(--violet-bg); color: var(--violet); }
.stat.navy { border-color: var(--navy-200); background: linear-gradient(135deg, var(--navy-50) 0%, #fff 70%); }
.stat.navy .ico { background: var(--navy-100); color: var(--navy-800); }
.stat.teal { border-color: var(--teal-bd); background: linear-gradient(135deg, #f0fdfa 0%, #fff 70%); }
.stat.teal .ico { background: var(--teal-bg); color: var(--teal); }
a.stat { color: inherit; }
.heroe { font-size: 44px; font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }

/* ---------- Badges de estatus ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--gray-bd); background: var(--gray-bg); color: var(--gray); flex-shrink: 0;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.sin-punto::before { display: none; }
.badge.verde { background: var(--green-bg); color: var(--green); border-color: var(--green-bd); }
.badge.ambar { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-bd); }
.badge.rojo { background: var(--red-bg); color: var(--red); border-color: var(--red-bd); }
.badge.azul { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-bd); }
.badge.violeta { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-bd); }
.badge.teal { background: var(--teal-bg); color: var(--teal); border-color: var(--teal-bd); }
.badge.navy { background: var(--navy-100); color: var(--navy-800); border-color: var(--navy-200); }
.badge.coral { background: var(--coral-50); color: var(--coral-700); border-color: #fbd0d1; }
.badge.solido { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--navy-50); color: var(--navy-800); font-size: 12px; font-weight: 600; border: 1px solid var(--navy-100); }
.chip svg { width: 13px; height: 13px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .ancho { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .form-grid.tres { grid-template-columns: 1fr; } }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .etiqueta { font-size: 13px; font-weight: 600; color: var(--ink); }
.campo > label .opc { font-weight: 450; color: var(--ink-3); }
.campo > label .req { color: var(--coral-600); }
.input, .campo input:not([type=checkbox]):not([type=radio]):not([type=file]), .campo select, .campo textarea, select.input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 14.5px; transition: border-color var(--t), box-shadow var(--t); outline: none; color: var(--ink);
}
.campo textarea, textarea.input { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.campo select, select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #cbd5e1; }
.input:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(43, 94, 163, .12); }
.campo input::placeholder, .input::placeholder, textarea::placeholder { color: #9aa7b8; }
.campo .ayuda { font-size: 12px; color: var(--ink-3); }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: var(--coral-500); box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.campo .err { font-size: 12px; color: var(--coral-700); font-weight: 500; }
.input-prefijo { position: relative; }
.input-prefijo > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 500; pointer-events: none; }
.input-prefijo > input { padding-left: 28px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--navy-900); flex-shrink: 0; cursor: pointer; }
.seccion-form { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.seccion-form:first-child { border-top: 0; padding-top: 0; }
.seccion-form > header { display: flex; gap: 12px; align-items: flex-start; }
.seccion-form > header .n { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-800); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.seccion-form > header h3 { font-size: 15.5px; }
.seccion-form > header p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.segmentado { display: inline-flex; padding: 4px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.segmentado label { position: relative; }
.segmentado input { position: absolute; opacity: 0; pointer-events: none; }
.segmentado span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all var(--t); }
.segmentado input:checked + span { background: #fff; color: var(--navy-900); box-shadow: var(--sombra-sm); }
.opcion-tarjeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .opcion-tarjeta { grid-template-columns: 1fr; } }
.opcion-tarjeta label { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: all var(--t); background: #fff; }
.opcion-tarjeta label:hover { border-color: var(--navy-200); }
.opcion-tarjeta input { accent-color: var(--navy-900); margin-top: 3px; }
.opcion-tarjeta label:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(43, 94, 163, .1); }
.opcion-tarjeta strong { display: block; font-size: 14px; }
.opcion-tarjeta small { color: var(--ink-3); font-size: 12.5px; }

/* Zona de carga de archivos */
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed #c5d1e0; border-radius: var(--r); background: var(--navy-50); cursor: pointer; transition: all var(--t); }
.dropzone:hover, .dropzone.sobre { border-color: var(--navy-600); background: #eaf1fa; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy-700); box-shadow: var(--sombra-xs); flex-shrink: 0; }
.dropzone strong { display: block; font-size: 13.5px; }
.dropzone small { color: var(--ink-3); font-size: 12px; }
.dropzone.listo { border-style: solid; border-color: var(--green-bd); background: #f0fdf4; }
.dropzone.listo .ico { color: var(--green); }

/* ---------- Tablas ---------- */
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tabla th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafcfe; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tabla th:first-child { padding-left: 22px; }
.tabla th:last-child { padding-right: 22px; }
.tabla td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabla td:first-child { padding-left: 22px; }
.tabla td:last-child { padding-right: 22px; }
.tabla tbody tr { transition: background var(--t); }
.tabla tbody tr:hover { background: #f7faff; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tfoot td { padding: 12px 14px; font-weight: 650; border-top: 1px solid var(--line); background: #fafcfe; }
.tabla tfoot td:first-child { padding-left: 22px; }
.tabla .acciones { display: flex; gap: 6px; justify-content: flex-end; }
.tabla th.num, .tabla td.num { text-align: right; }
.celda-persona { display: flex; align-items: center; gap: 11px; min-width: 0; }
.celda-persona .nom { font-weight: 600; color: var(--ink); line-height: 1.3; }
.celda-persona .sub { font-size: 12px; color: var(--ink-3); }
.tabla.compacta td { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 760px) {
  .tabla.resp thead { display: none; }
  .tabla.resp, .tabla.resp tbody, .tabla.resp tr, .tabla.resp td { display: block; width: 100%; }
  .tabla.resp tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .tabla.resp td { border: 0; padding: 5px 0 !important; text-align: right; overflow: hidden; }
  .tabla.resp td::before { content: attr(data-label); float: left; margin-right: 14px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; text-align: left; padding-top: 2px; }
  .tabla.resp td[data-label=""]::before { display: none; }
  .tabla.resp td > div { margin-left: auto; }
  .tabla.resp td .pipeline { justify-content: flex-end; }
  .tabla.resp td .celda-persona, .tabla.resp td.principal > div { margin-left: 0; }
  .tabla.resp td.principal { text-align: left; padding-bottom: 8px !important; }
  .tabla.resp td.principal::before { display: none; }
  .tabla.resp td .acciones, .tabla.resp td.acc { justify-content: flex-end; }
  .tabla.resp tfoot { display: none; }
}

.avatar { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--navy-800); background: var(--navy-100); flex-shrink: 0; letter-spacing: .02em; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 72px; height: 72px; font-size: 22px; }
.avatar.c1 { background: #e0ecff; color: #1d4ed8; } .avatar.c2 { background: var(--coral-100); color: var(--coral-700); } .avatar.c3 { background: #dcfce7; color: #15803d; }
.avatar.c4 { background: #fef3c7; color: #b45309; } .avatar.c5 { background: #ede9fe; color: #6d28d9; } .avatar.c6 { background: #ccfbf1; color: #0f766e; }

/* ---------- Barra de filtros ---------- */
.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.buscador { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.buscador svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.buscador input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; font-size: 14px; transition: all var(--t); }
.buscador input:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(43, 94, 163, .12); }
.filtros select.input { width: auto; height: 40px; border-radius: 999px; font-size: 13.5px; min-width: 150px; }
.filtros input[type=date].input { width: auto; height: 40px; border-radius: 999px; font-size: 13.5px; }
.filtros .espacio { flex: 1; }
.pestanas { display: flex; gap: 4px; padding: 4px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: all var(--t); }
.pestanas button:hover { color: var(--navy-900); }
.pestanas button.activa { background: #fff; color: var(--navy-900); box-shadow: var(--sombra-sm); }
.pestanas .cuenta { font-size: 11px; background: var(--navy-100); color: var(--navy-800); border-radius: 999px; padding: 1px 7px; }
.pestanas button.activa .cuenta { background: var(--navy-900); color: #fff; }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--blue-bd); background: #f3f8ff; color: #1e3a8a; font-size: 13.5px; align-items: flex-start; }
.aviso > svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.aviso strong { color: inherit; }
.aviso .acciones-aviso { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; align-self: center; }
.aviso.ambar { background: #fffbeb; border-color: var(--amber-bd); color: #78350f; }
.aviso.rojo { background: #fff5f5; border-color: var(--red-bd); color: #7f1d1d; }
.aviso.verde { background: #f0fdf4; border-color: var(--green-bd); color: #14532d; }
.aviso.coral { background: var(--coral-50); border-color: #fbd0d1; color: var(--coral-700); }
.aviso.navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (max-width: 640px) { .aviso { flex-wrap: wrap; } .aviso .acciones-aviso { margin-left: 31px; } }

/* ---------- Listas de definición ---------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.dl.una { grid-template-columns: 1fr; }
.dl.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl > div { min-width: 0; }
.dl dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 3px; }
.dl dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 640px) { .dl, .dl.tres { grid-template-columns: 1fr; } }

/* ---------- Totales ---------- */
.totales { display: grid; gap: 8px; font-size: 14px; }
.totales > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.totales > div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.totales .total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--ink); }
.totales .total span:last-child { font-size: 22px; letter-spacing: -.02em; }

/* ---------- Estado vacío y carga ---------- */
.vacio { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; gap: 10px; }
.vacio .ico { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-50), #fff); border: 1px solid var(--navy-100); color: var(--navy-700); margin-bottom: 6px; }
.vacio .ico svg { width: 26px; height: 26px; }
.vacio h4 { font-size: 16px; }
.vacio p { color: var(--ink-3); max-width: 420px; font-size: 13.5px; }
.vacio .btn { margin-top: 8px; }
.vacio.compacto { padding: 28px 18px; }
.skel { background: linear-gradient(90deg, #edf2f8 0, #f6f9fc 50%, #edf2f8 100%); background-size: 800px 100%; animation: brillo 1.3s linear infinite; border-radius: 10px; }
.skel-linea { height: 14px; margin: 10px 0; }
.carga-pagina { display: grid; gap: 18px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--navy-100); border-top-color: var(--navy-700); border-radius: 50%; animation: girar .7s linear infinite; }

/* ---------- Layout de paneles ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: radial-gradient(1200px 500px at 85% -10%, #dbe7f5 0%, transparent 60%), var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: #c9d6ea; z-index: 40; overflow-y: auto;
}
.marca { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; color: #fff; }
.marca:hover { color: #fff; }
.marca .logo { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); flex-shrink: 0; }
.marca .logo svg { width: 24px; height: 24px; }
.marca b { display: block; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; }
.marca small { display: block; font-size: 11.5px; color: #8fa5c4; font-weight: 500; letter-spacing: .02em; }
.nav-grupo { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f87a8; padding: 16px 12px 6px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 12px; color: #c9d6ea;
  font-size: 13.8px; font-weight: 500; transition: background var(--t), color var(--t); margin-bottom: 2px;
}
.nav a svg { width: 18px; height: 18px; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.activo { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav a.activo::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--coral-500); }
.nav a.activo svg { opacity: 1; color: #fff; }
.nav .contador[hidden] { display: none; }
.nav .contador { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral-500); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sidebar-pie { margin-top: auto; padding-top: 16px; }
.tarjeta-modo { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #a9bbd4; }
.tarjeta-modo b { color: #fff; font-size: 12.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tarjeta-modo .pulso { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); }
.tarjeta-modo .pulso.real { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(238, 243, 248, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .6); }
.topbar .menu-movil { display: none; }
.migas { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.migas a { color: var(--ink-3); }
.migas a:hover { color: var(--navy-900); }
.migas svg { width: 14px; height: 14px; }
.migas span:last-child { color: var(--ink); font-weight: 600; }
.topbar .espacio { flex: 1; }
.usuario-menu { position: relative; }
.usuario-btn { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; box-shadow: var(--sombra-xs); transition: all var(--t); }
.usuario-btn:hover { border-color: var(--navy-200); }
.usuario-btn .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.usuario-btn .nom { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left; max-width: 180px; }
.usuario-btn .rol { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.menu-desplegable { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra); padding: 6px; animation: pop .16s ease-out; z-index: 60; }
.menu-desplegable .cab { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-desplegable .cab b { display: block; font-size: 13.5px; }
.menu-desplegable .cab small { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.menu-desplegable button, .menu-desplegable a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; text-align: left; }
.menu-desplegable button:hover, .menu-desplegable a:hover { background: var(--navy-50); color: var(--navy-900); }
.menu-desplegable svg { width: 16px; height: 16px; }

.contenido { padding: 26px 32px 56px; width: 100%; max-width: 1440px; margin: 0 auto; }
.encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.encabezado h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.encabezado p { color: var(--ink-2); margin-top: 4px; font-size: 14px; }
.encabezado .acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.volver { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.volver:hover { color: var(--navy-900); }
.volver svg { width: 15px; height: 15px; }

.fondo-movil { display: none; }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .25s cubic-bezier(.4, 0, .2, 1); }
  .app.menu-abierto .sidebar { transform: none; box-shadow: 20px 0 60px rgba(8, 26, 51, .3); }
  .app.menu-abierto .fondo-movil { display: block; position: fixed; inset: 0; background: rgba(8, 26, 51, .45); z-index: 35; animation: fadeIn .2s; }
  .topbar { padding: 12px 18px; }
  .topbar .menu-movil { display: inline-flex; }
  .contenido { padding: 20px 18px 48px; }
  .usuario-btn .txt { display: none; }
  .usuario-btn { padding: 4px; }
}
@media (max-width: 640px) {
  .grid.g3:has(> .stat), .grid.g4:has(> .stat) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; border-radius: 16px; }
  .stat .ico { width: 34px; height: 34px; margin-bottom: 4px; }
  .stat .ico svg { width: 16px; height: 16px; }
  .stat .val { font-size: 20px; }
  .stat .etq { font-size: 12px; line-height: 1.3; }
  .encabezado h1 { font-size: 22px; }
  .card-cab, .card-cuerpo { padding-left: 16px; padding-right: 16px; }
  .filtros { padding: 14px 16px; }
  .buscador { max-width: none; min-width: 100%; }
  .tabla th:first-child, .tabla td:first-child { padding-left: 16px; }
  .encabezado .acciones { width: 100%; }
  .encabezado .acciones .btn { flex: 1; }
  .migas { display: none; }
}

/* ---------- Modal ---------- */
.modal-fondo { position: fixed; inset: 0; z-index: 100; background: rgba(8, 26, 51, .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .18s ease-out; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: #fff; border-radius: 24px; box-shadow: var(--sombra-capas); animation: pop .22s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal.ancho { max-width: 820px; }
.modal.xl { max-width: 1040px; }
.modal-cab { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 4px; }
.modal-cab .ico { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-800); flex-shrink: 0; }
.modal-cab .ico.coral { background: var(--coral-100); color: var(--coral-600); }
.modal-cab .ico.verde { background: var(--green-bg); color: var(--green); }
.modal-cab .ico.ambar { background: var(--amber-bg); color: var(--amber); }
.modal-cab h3 { font-size: 18px; }
.modal-cab p { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
.modal-cab .cerrar { margin-left: auto; }
.modal-cuerpo { padding: 18px 24px; overflow-y: auto; }
.modal-pie { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 22px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal-fondo { padding: 0; align-items: flex-end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 94vh; animation: slideUp .25s ease-out; }
  .modal-pie .btn { flex: 1; }
  .modal-cuerpo, .modal-cab, .modal-pie { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { display: flex; gap: 12px; align-items: flex-start; min-width: 280px; max-width: 420px; padding: 14px 16px; background: var(--navy-950); color: #fff; border-radius: 16px; box-shadow: var(--sombra); animation: pop .2s ease-out; font-size: 13.5px; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.ok svg { color: #4ade80; }
.toast.error { background: #3b0d10; }
.toast.error svg { color: #fca5a5; }
.toast.salir { animation: fadeIn .2s reverse forwards; }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; bottom: 12px; } .toast { min-width: 0; max-width: none; } }

/* ---------- Pipeline de certificación ---------- */
.pipeline { display: flex; align-items: center; gap: 0; }
.pipeline .paso { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.pipeline .paso i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; display: grid; place-items: center; font-style: normal; }
.pipeline .paso.hecho { color: var(--ink-2); }
.pipeline .paso.hecho i { background: var(--navy-800); border-color: var(--navy-800); }
.pipeline .paso.hecho i::after { content: ''; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.pipeline .paso.actual { color: var(--navy-900); }
.pipeline .paso.actual i { border-color: var(--coral-500); box-shadow: 0 0 0 3px var(--coral-100); }
.pipeline .paso.actual i::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral-500); }
.pipeline .paso.final.hecho i { background: var(--green); border-color: var(--green); }
.pipeline .linea { flex: 1; height: 2px; min-width: 14px; background: #e2e8f0; margin: 0 6px; }
.pipeline .linea.hecho { background: var(--navy-800); }
.pipeline.compacto .paso span { display: none; }
.pipeline.compacto .linea { min-width: 10px; margin: 0 3px; }

/* ---------- Línea de tiempo / historial ---------- */
.timeline { position: relative; display: grid; gap: 16px; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .item { position: relative; }
.timeline .item::before { content: ''; position: absolute; left: -23px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.timeline .item.ok::before { border-color: var(--green); }
.timeline .item.mal::before { border-color: var(--coral-500); }

/* ---------- Gráfica de barras (SVG) ---------- */
.grafica { position: relative; }
.grafica svg { width: 100%; height: auto; overflow: visible; }
.grafica .eje text { font-size: 11px; fill: var(--ink-3); font-family: inherit; }
.grafica .rejilla line { stroke: #e9eef5; stroke-width: 1; }
.grafica .barra { fill: var(--navy-700); transition: fill .15s; }
.grafica .barra.actual { fill: var(--coral-500); }
.grafica .hit { fill: transparent; cursor: pointer; }
.grafica .hit:hover + .barra, .grafica g.activa .barra { fill: var(--navy-900); }
.grafica g.activa .barra.actual { fill: var(--coral-600); }
.grafica .etq-valor { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.tip { position: absolute; pointer-events: none; background: var(--navy-950); color: #fff; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; box-shadow: var(--sombra); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; z-index: 5; animation: fadeIn .12s; }
.tip b { display: block; font-size: 14px; }
.tip small { color: #a9bbd4; }
.barra-h { height: 8px; border-radius: 999px; background: var(--navy-50); overflow: hidden; }
.barra-h > span { display: block; height: 100%; border-radius: 999px; background: var(--navy-700); }
.medidor { height: 8px; border-radius: 999px; background: var(--navy-100); overflow: hidden; }
.medidor > span { display: block; height: 100%; background: var(--navy-700); border-radius: 999px; transition: width .5s ease; }
.medidor.lleno > span { background: var(--coral-500); }
.medidor.medio > span { background: #d97706; }

/* ---------- Tarjetas de grupo / cursos ---------- */
.grupo-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(226, 232, 240, .9); box-shadow: var(--sombra-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.grupo-card:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--navy-200); }
.grupo-card .fecha { display: flex; gap: 12px; align-items: center; }
.calendario { width: 54px; flex-shrink: 0; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; box-shadow: var(--sombra-xs); }
.calendario .m { background: var(--coral-500); color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 0; }
.calendario .d { font-size: 21px; font-weight: 700; padding: 3px 0 4px; letter-spacing: -.03em; color: var(--ink); }
.grupo-card h4 { font-size: 15.5px; }
.grupo-card .meta { display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.grupo-card .meta div { display: flex; gap: 8px; align-items: flex-start; }
.grupo-card .meta svg { width: 15px; height: 15px; color: var(--ink-3); margin-top: 2px; }
.grupo-card .precio { display: flex; align-items: baseline; gap: 6px; }
.grupo-card .precio b { font-size: 22px; letter-spacing: -.03em; }
.grupo-card .precio small { color: var(--ink-3); font-size: 12px; }
.grupo-card .pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: auto; flex-wrap: wrap; }

/* Selector de trabajadores */
.selector { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.selector .cab-sel { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fafcfe; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.selector .lista { max-height: 380px; overflow-y: auto; }
.selector label.item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background var(--t); }
.selector label.item:hover { background: #f7faff; }
.selector label.item:last-child { border-bottom: 0; }
.selector label.item input { width: 18px; height: 18px; accent-color: var(--navy-900); flex-shrink: 0; }
.selector label.item.bloqueado { opacity: .55; cursor: not-allowed; }
.selector label.item:has(input:checked) { background: var(--navy-50); }
.resumen-compra { position: sticky; top: 86px; }

/* Cuenta regresiva */
.cuenta-reg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums; }
.cuenta-reg svg { width: 14px; height: 14px; }
.cuenta-reg.urgente { color: var(--coral-600); }

/* Enlace de invitación */
.enlace-copiar { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.enlace-copiar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--navy-800); }
.correo-simulado { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.correo-simulado .cab-correo { padding: 12px 16px; background: #fafcfe; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); display: grid; gap: 2px; }
.correo-simulado .cuerpo-correo { padding: 18px 16px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 10px; }

/* Lista de items (actividad) */
.lista-items { display: grid; }
.lista-items > * { display: flex; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line-2); color: inherit; }
.lista-items > *:last-child { border-bottom: 0; }
.lista-items > a:hover { background: #f7faff; }
.lista-items .ico-c { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); flex-shrink: 0; }
.lista-items .ico-c svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .lista-items > * { padding: 12px 16px; } }

/* Perfil */
.perfil-cab { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.perfil-cab h2 { font-size: 22px; }

/* Paginación */
.paginacion { display: flex; justify-content: center; padding: 14px; }

/* ---------- Páginas públicas ---------- */
.pub { background: linear-gradient(180deg, #dbe6f1 0%, #eaf0f7 40%, #f6f9fc 100%); min-height: 100vh; }
.pub-cab { padding: 18px 0; position: sticky; top: 0; z-index: 50; transition: background .2s, box-shadow .2s; }
.pub-cab.fijo { background: rgba(234, 240, 247, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(15, 42, 79, .06); }
.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pub-nav { display: flex; align-items: center; gap: 28px; }
.pub-nav .marca { padding: 0; color: var(--ink); }
.pub-nav .marca .logo { background: var(--navy-900); }
.pub-nav .marca small { color: var(--ink-3); }
.pub-nav .links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; margin-left: 12px; }
.pub-nav .links a { color: var(--ink-2); }
.pub-nav .links a:hover { color: var(--navy-900); }
.pub-nav .der { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) { .pub-nav .links { display: none; } }
@media (max-width: 520px) { .pub-nav .der .btn-ghost { display: none; } .pub-nav .marca small { display: none; } }
.pie-pub { background: var(--navy-950); color: #a9bbd4; padding: 56px 0 28px; font-size: 13.5px; }
.pie-pub a { color: #c9d6ea; }
.pie-pub a:hover { color: #fff; }
.pie-pub h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.pie-pub .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.pie-pub ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pie-pub .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7d93b2; }
@media (max-width: 860px) { .pie-pub .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie-pub .cols { grid-template-columns: 1fr; } }

/* Pantallas de autenticación */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #f6f9fc; }
.auth-lado { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px; color: #fff; background: radial-gradient(800px 400px at 0% 100%, rgba(229, 72, 77, .28), transparent 60%), radial-gradient(700px 500px at 100% 0%, rgba(43, 94, 163, .55), transparent 60%), var(--navy-950); }
.auth-lado .marca { padding: 0; }
.auth-lado .marca small { color: #8fa5c4; }
.auth-lado .centro-lado { margin: auto 0; max-width: 460px; }
.auth-lado h2 { color: #fff; font-size: 34px; letter-spacing: -.035em; line-height: 1.12; }
.auth-lado p { color: #b8c8de; margin-top: 14px; font-size: 15px; }
.auth-lado ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-lado li { display: flex; gap: 12px; align-items: flex-start; color: #dbe5f2; font-size: 14px; }
.auth-lado li svg { width: 20px; height: 20px; color: var(--coral-400); flex-shrink: 0; }
.auth-lado .ecg { position: absolute; left: 0; right: 0; bottom: 120px; opacity: .35; }
.auth-lado .pie-lado { font-size: 12.5px; color: #7d93b2; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-caja { width: 100%; max-width: 420px; }
.auth-caja h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-caja .sub { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-lado { display: none; } .auth-form { padding: 28px 18px; align-items: flex-start; } }
.marca-movil { display: none; margin-bottom: 28px; }
@media (max-width: 900px) { .marca-movil { display: flex; } }

/* ECG animado */
.ecg path { stroke-dasharray: 600; animation: trazo 3.2s ease-in-out infinite; }
.latido { animation: latido 1.6s ease-in-out infinite; transform-origin: center; }

/* Impresión */
@media print { .sidebar, .topbar, .filtros .btn, .encabezado .acciones { display: none !important; } .app { display: block; } .card { box-shadow: none; } }
