/* Charlize · guía de estilos
   Tema por defecto: oscuro atenuado ("dim"). Tema claro opcional (botón sol/luna del menú).
   Colores con significado:
     --brand    acento morado: acciones principales, selección, arrastre
     --ok       verde: cubierta, seleccionado, disponible
     --warn     ámbar: entrevistas, atención
     --bad      rojo: cancelada, perdida, error
     --c-*      estados de candidatura en las flechas del mapa */

:root, :root[data-theme="oscuro"] {
  --bg: #15171e; --bg-2: #1a1d26; --panel: #1f232e; --panel-2: #262b38; --text: #e8eaf2; --muted: #8d94a8; --line: #2e3443; --line-2: #3a4152;
  --brand: #9d90ff; --brand-soft: rgba(157, 144, 255, .14); --brand-glow: rgba(157, 144, 255, .35); --field: #717a90;
  --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, .13); --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .14);
  --bad: #ff6b7a; --bad-soft: rgba(255, 107, 122, .14); --info: #4cc9f0; --info-soft: rgba(76, 201, 240, .13);
  --c-propuesto: #9d90ff; --c-enviado: #4cc9f0; --c-entrevista: #ffb547; --c-apagado: #5b6275; --c-sugerido: #f472b6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .18); --shadow-up: 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="claro"] {
  --bg: #f3f4f8; --bg-2: #eceef4; --panel: #ffffff; --panel-2: #f6f7fb; --text: #1b1f2b; --muted: #575f73; --line: #e1e4ec; --line-2: #cfd4df;
  --brand: #4f42d8; --brand-soft: rgba(79, 66, 216, .09); --brand-glow: rgba(79, 66, 216, .25); --field: #80889c;
  --ok: #0b7a4d; --ok-soft: #e2f6ed; --warn: #8f5800; --warn-soft: #fdf1dc; --bad: #c0283a; --bad-soft: #fde7ea; --info: #0a6d93; --info-soft: #e1f3fa;
  --c-propuesto: #4f42d8; --c-enviado: #0a6d93; --c-entrevista: #b06c00; --c-apagado: #9aa1b0; --c-sugerido: #be185d;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 14px rgba(20, 30, 50, .05); --shadow-up: 0 12px 30px rgba(20, 30, 50, .16);
  color-scheme: light;
}
:root {
  --radius: 12px; --fill: linear-gradient(135deg, #6352f5, #4f3fe6); /* blanco sobre este relleno ≥ 5:1 */ --r-sm: 8px; --side: 232px; --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; color: var(--text); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 16px; } h3 { font-size: 14px; }
.cargando { padding: 40px; color: var(--muted); }
::selection { background: var(--brand-glow); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
kbd { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); }

/* ---------- Estructura: menú lateral + vista ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .25s var(--ease); }
.shell.corto { --side: 64px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; background: var(--bg-2); border-right: 1px solid var(--line); overflow: hidden; }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; white-space: nowrap; }
.logo-r { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6352f5, #b4239f); box-shadow: 0 4px 14px var(--brand-glow); }
.side .buscar { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--muted); background: var(--panel); margin-bottom: 6px; white-space: nowrap; }
.side .buscar kbd { margin-left: auto; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.side nav a:hover { text-decoration: none; background: var(--panel); color: var(--text); }
.side nav a.on { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.side nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
.side nav a.on svg { color: var(--brand); }
.side nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--bad-soft); color: var(--bad); }
.side svg { flex: none; }
.side .pie { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.side .yo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--text); padding: 4px; border-radius: var(--r-sm); white-space: nowrap; overflow: hidden; }
.side .yo:hover { background: var(--panel); text-decoration: none; }
.side .yo small { display: block; color: var(--muted); font-size: 11px; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-glow); }
.shell.corto .side .marca b, .shell.corto .side nav a span, .shell.corto .side nav a em, .shell.corto .side .buscar span, .shell.corto .side .buscar kbd,
.shell.corto .side .yo > span:last-child { display: none; }
.shell.corto .side .pie { flex-direction: column; }
.shell.corto .side .buscar { justify-content: center; }
button.icono { padding: 7px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
button.icono:hover { background: var(--panel); color: var(--text); }

main { padding: 22px 28px 70px; max-width: 1560px; width: 100%; margin: 0 auto; }
main.vista { animation: entra .28s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main.auth { max-width: 400px; margin-top: 12vh; }
main.auth .panel { padding: 26px; box-shadow: var(--shadow-up); }
main.auth .marca { padding: 0 0 16px; }
.cabecera { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cabecera p { margin: -4px 0 0; }

/* ---------- Piezas básicas ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gris { background: var(--panel-2); color: var(--muted); }

button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--field); background: var(--panel-2); color: var(--text); padding: 7px 13px; border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
button:hover { border-color: var(--brand); }
button:active { transform: scale(.97); }
button.primary { background: var(--fill); border-color: transparent; color: #fff; box-shadow: 0 4px 14px var(--brand-glow); }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--bad); }
button.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.mini { padding: 2px 8px; font-size: 11px; border-radius: 99px; }
button.mini.on { background: var(--c-sugerido); color: #fff; border-color: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--field); border-radius: var(--r-sm); padding: 7px 10px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button:focus-visible, a:focus-visible, .nodo:focus-visible, .card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: var(--r-sm); border: 2px solid var(--brand); }
.saltar:focus { top: 8px; }
.error { color: var(--bad); font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
button.full { width: 100%; padding: 11px; }
button.ghost { background: transparent; border-color: transparent; color: var(--text); }
button.ghost:hover { border-color: var(--line-2); }
button svg { vertical-align: -4px; } button:has(svg) { display: inline-flex; align-items: center; gap: 6px; }
input.link { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; margin: 4px 0 12px; }
.acciones { gap: 8px; }
.h-marca { font-size: 16px; margin: 0; }
.h-col { font-size: 13px; margin: 0; display: flex; gap: 8px; align-items: center; }
.aviso-sel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--brand-soft); border: 1px solid var(--brand-glow); font-size: 13px; }
.badge.rosa { background: color-mix(in srgb, var(--c-sugerido) 14%, var(--panel)); color: var(--c-sugerido); }
.lista-enlaces { margin-top: 14px; }
.lista-enlaces summary { cursor: pointer; font-weight: 600; }
.lista-enlaces table { margin-top: 10px; }
.lista-enlaces select { width: auto; }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
label.f.req > span::after { content: " *"; color: var(--bad); }
label.chk { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.grid .wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
legend { font-weight: 600; padding: 0 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.c-nueva, .dot.e-nueva { background: var(--info); }
.dot.c-con_candidatos, .dot.e-con_candidatos { background: var(--brand); }
.dot.c-en_curso, .dot.e-en_curso { background: var(--warn); }
.dot.c-cerrada { background: var(--ok); }

/* ---------- Kanban ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filtros > * { width: auto; min-width: 170px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 340px; display: flex; flex-direction: column; transition: border-color .15s, background .15s, box-shadow .15s; }
.col.drop { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft) inset; }
.col h3 { padding: 12px 14px; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.col h3 .badge { margin-left: auto; }
.col .cards { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.equipo-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.equipo-wrap > .caja.sin { position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .equipo-wrap { grid-template-columns: 1fr; } .equipo-wrap > .caja.sin { position: static; max-height: 50vh; } }
.caja { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 10px; display: flex; flex-direction: column; transition: border-color .15s, background .15s, box-shadow .15s; }
.caja.sin { border-style: dashed; }
.caja.inactiva { opacity: .6; }
.caja.drop { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft) inset; }
.caja h3 { padding: 12px 12px 2px; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.caja h3 .pt { flex: 1; min-width: 0; }
.caja .sub { padding: 0 12px 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.caja .gente { padding: 2px 10px; display: flex; flex-direction: column; gap: 7px; }
.caja .gente .hueco { min-height: 56px; }
.persona { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--panel); cursor: grab; box-shadow: var(--shadow); }
.persona:hover { border-color: var(--line-2); }
.persona.elegida { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.persona .pn { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.persona .pn a { flex: 1; min-width: 0; color: var(--text); }
.persona .pm { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; margin-top: 2px; }
.persona .ded { padding: 1px 7px; font-size: 12px; border-radius: 999px; }
.persona .ded.sobre { border-color: var(--bad, #c0392b); color: var(--bad, #c0392b); }
.mover-aqui { padding: 2px 8px; font-size: 12px; margin-left: auto; }
button.link { border: 0; background: none; padding: 0; color: var(--brand); font-size: 12px; }
.badge.mod-gdne { background: var(--brand-soft); color: var(--brand); }
.badge.mod-subco { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.hueco { flex: 1; min-height: 80px; display: grid; place-items: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); font-size: 12px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px 10px 14px; background: var(--panel); cursor: grab; box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s, border-color .15s, opacity .15s; animation: entra .25s var(--ease); }
.card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card:active { cursor: grabbing; }
.card.levantada { opacity: .35; transform: scale(.98); }
.card.p-crítica::before { background: var(--bad); }
.card.p-alta::before { background: var(--warn); }
.card.p-baja::before { background: var(--line-2); }
.card .t { display: block; color: var(--text); font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.card select.mover { width: auto; font-size: 12px; padding: 3px 6px; color: var(--muted); background: transparent; }
.card .m { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card .acc { display: flex; gap: 6px; margin-top: 8px; }
.card .acc button { padding: 2px 9px; font-size: 12px; }
.opciones-cierre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
button.grande { padding: 16px; font-size: 15px; font-weight: 600; }
button.grande.ok { color: var(--ok); } button.grande.ok:hover { background: var(--ok-soft); border-color: var(--ok); }
button.grande.bad { color: var(--bad); } button.grande.bad:hover { background: var(--bad-soft); border-color: var(--bad); }
button.grande.warn { color: var(--warn); } button.grande.warn:hover { background: var(--warn-soft); border-color: var(--warn); }

/* ---------- Mapa de vínculos ---------- */
.leyenda { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.leyenda i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.mapa { position: relative; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(140px, .7fr) minmax(280px, 1.1fr); height: calc(100vh - 190px); min-height: 460px;
  background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); user-select: none; }
.mapa.arrastrando { cursor: grabbing; }
.mapa-col { display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 2; }
.mapa-col .h-col { padding: 12px 14px 8px; }
.mapa-col .lista { flex: 1; overflow-y: auto; padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.nodo { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; touch-action: none;
  transition: opacity .2s, transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.nodo:hover { border-color: var(--line-2); }
.nodo.foco { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-up); }
.nodo.diana { border-color: var(--brand); transform: scale(1.03); box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-up); }
.nodo.sugerido { border-color: var(--c-sugerido); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-sugerido) 25%, transparent); }
.nodo.tenue { opacity: .38; }
.nodo .t { font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.nodo .m { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.nodo .m .mini { margin-left: auto; }
.nodo.cand { display: flex; gap: 10px; align-items: flex-start; }
.nodo.cand .cuerpo { min-width: 0; flex: 1; }
.nodo .skills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.nodo .skills span { font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.conector { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--panel); border: 2px solid var(--brand); opacity: 0; transition: opacity .15s, transform .15s; }
.conector.der { right: -7px; } .conector.izq { left: -7px; }
.nodo:hover .conector, .nodo.foco .conector, .mapa.arrastrando .conector { opacity: 1; }
.nodo:hover .conector { transform: scale(1.2); }
.vacio { padding: 20px 4px; }
svg.flechas { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
svg.flechas .linea { fill: none; stroke-width: 2.2; transition: opacity .2s, stroke-width .15s; }
svg.flechas .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
svg.flechas .enlace:hover .linea { stroke-width: 3.5; filter: drop-shadow(0 0 6px currentColor); }
svg.flechas .enlace.tenue .linea { opacity: .12; }
svg.flechas .enlace.fuera .linea { stroke-dasharray: 2 5; opacity: .35; }
svg.flechas .enlace.nuevo .linea { stroke-dasharray: 600; animation: traza .6s var(--ease); }
svg.flechas .linea.sug { stroke-dasharray: 6 6; opacity: .85; animation: hormigas 1s linear infinite; }
svg.flechas .linea.viva { stroke-width: 2.5; stroke-dasharray: 7 6; animation: hormigas .6s linear infinite; }
@keyframes traza { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes hormigas { to { stroke-dashoffset: -24; } }
.popover { position: fixed; z-index: 60; width: 290px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-up); animation: entra .15s var(--ease); }
.popover .estados { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; }
.chip:hover { border-color: var(--c); }
.chip.on { background: color-mix(in srgb, var(--c) 18%, var(--panel)); border: 2px solid var(--c); color: var(--text); font-weight: 600; }
.chip.on::before { content: "✓ "; }

/* ---------- Buscador rápido (Cmd/Ctrl + K) ---------- */
.paleta-bg { position: fixed; inset: 0; z-index: 70; background: rgba(5, 6, 10, .55); backdrop-filter: blur(4px); display: flex; justify-content: center; padding-top: 14vh; animation: aparece .15s; }
@keyframes aparece { from { opacity: 0; } }
.paleta { width: min(620px, calc(100% - 32px)); max-height: 60vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-up); overflow: hidden; animation: entra .18s var(--ease); }
.paleta-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.paleta-in input { border: 0; background: transparent; font-size: 16px; padding: 4px 0; box-shadow: none; }
.paleta-lista { overflow-y: auto; padding: 6px; }
.paleta-lista a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
.paleta-lista a svg { color: var(--muted); flex: none; }
.paleta-lista a .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paleta-lista a .s { font-size: 12px; color: var(--muted); white-space: nowrap; }
.paleta-lista a.on { background: var(--brand-soft); text-decoration: none; }
.paleta-lista a.on svg { color: var(--brand); }
.paleta-pie { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.paleta-pie kbd { margin-right: 3px; }

/* ---------- Tablas, fichas y otros ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
table.t tr.click td { transition: background .12s; }
table.t tr.click:hover td { background: var(--bg-2); cursor: pointer; }
.md { line-height: 1.55; max-height: 520px; overflow: auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.md h1, .md h2, .md h3 { margin-top: .8em; }
mark { background: var(--warn-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-left: 3px solid var(--ok);
  padding: 11px 16px; border-radius: 10px; z-index: 80; max-width: 420px; box-shadow: var(--shadow-up); animation: entra .2s var(--ease); }
.toast.bad { border-left-color: var(--bad); }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 6, 10, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 40; overflow: auto; animation: aparece .15s; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; width: min(760px, 100%); box-shadow: var(--shadow-up); animation: entra .2s var(--ease); }
.modal.estrecho { width: min(480px, 100%); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 9px 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tabs a.on { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.aviso { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.evento { font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cols2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; }
pre.code { background: var(--bg-2); padding: 12px; border-radius: var(--r-sm); overflow: auto; white-space: pre-wrap; font-size: 12px; border: 1px solid var(--line); }

header.movil { display: none; }
.side .mas { display: none; }

/* ---------- Móvil (iPhone 15+, Android): barra inferior con pestañas ---------- */
@media (max-width: 900px) {
  :root { --side: 0px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  header.movil { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  header.movil .logo-r { width: 28px; height: 28px; }
  header.movil .yo { display: flex; padding: 4px; }
  .shell, .shell.corto { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); }
  .side .marca, .side .pie, .side > .spacer, .side .buscar, .side nav a.extra { display: none; }
  .side nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .side nav a, .side .mas { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; min-height: 52px; justify-content: center; font-size: 11px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; }
  .side nav a span, .side .mas span { display: block !important; }
  .side nav a.on { background: var(--brand-soft); color: var(--text); }
  .side nav a.on::before { display: none; }
  .side nav a em { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; font-size: 10px; padding: 0 5px; }
  main { padding: 16px 14px 24px; }
  main.auth { margin-top: 6vh; }
  h1 { font-size: 20px; }
  .cabecera { gap: 8px; }
  .filtros > * { min-width: 0; flex: 1 1 140px; }
  .cols2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(5, 84vw); scroll-snap-type: x mandatory; gap: 10px; margin: 0 -14px; padding: 0 14px 8px; scroll-padding: 0 14px; }
  .kanban .col { scroll-snap-align: start; min-height: 55vh; }
  .mapa { grid-template-columns: 1fr 22px 1fr; height: 64vh; min-height: 380px; }
  .mapa-col .lista { padding: 4px 8px 12px; }
  .nodo { padding: 9px; }
  .nodo .skills, .nodo.cand .avatar { display: none; }
  .leyenda { gap: 10px; }
  .opciones-cierre { grid-template-columns: 1fr; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
  .paleta-bg { padding-top: 8vh; }
  .paleta-pie { display: none; }
  .toast { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
  table.t { display: block; overflow-x: auto; }
  .popover { width: calc(100vw - 16px); left: 8px !important; }
}
/* Pantallas táctiles: objetivos de 44 px y textos de 16 px en campos (evita el zoom de iOS) */
@media (pointer: coarse) {
  button, .btn, select, input:not([type=checkbox]) { min-height: 44px; }
  button.mini { min-height: 36px; padding: 4px 12px; font-size: 13px; }
  input, select, textarea { font-size: 16px; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .conector { display: none; }
  .nodo { touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.evento a, .aviso a, .md a, p a { text-decoration: underline; text-underline-offset: 2px; }
.card .autor { margin-top: 6px; font-size: 11px; }
.cargas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.carga { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }

input.siglas { width: 64px; font-weight: 700; text-transform: uppercase; padding: 4px 6px; }

/* ---------- v1.1: versión, operaciones en bloque, duplicados, Azure ---------- */
.version { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.side .version { padding: 0 12px 10px; text-align: left; }
.shell.corto .side .version { text-align: center; padding: 0 0 10px; font-size: 11px; }
.lista-sel { max-height: 40vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 6px; }
.lista-sel label { align-items: flex-start; }
.opciones-cierre label.btn { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.opciones-cierre label.btn input { width: auto; margin: 0; }
.opciones-cierre label.btn.on { outline: 2px solid var(--brand); outline-offset: 2px; }
.grupo-dup { border-top: 1px solid var(--line); padding: 12px 0; }
.grupo-dup:first-of-type { border-top: 0; }
.grupo-dup table { margin-top: 8px; }
.tabla-scroll { overflow-x: auto; }
@media (max-width: 900px) { .side .version { display: none; } }

/* v1.2 · blacklist, buen precio, filtros guardados, dictado y enlace público */
.badge.negra { background: var(--text); color: var(--bg); }
tr.vetado td { background: var(--bad-soft); }
.vetado-box { border-left: 3px solid var(--bad); background: var(--bad-soft); }
.ok-t { color: var(--ok); }
.ok-box { border-left: 3px solid var(--ok); background: var(--ok-soft); margin-bottom: 12px; }
.filtros label.check { min-width: 0; gap: 6px; }
.filtros label.check input { width: auto; }
.filtros-mas { margin-bottom: 12px; }
.vistas { gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel-2); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); }
.chip button { border: 0; background: none; padding: 4px 4px 4px 12px; font-size: 13px; }
.chip button.x { padding: 4px 10px 4px 4px; color: var(--muted); }
.dictado { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 10px; margin: 0 0 14px; display: grid; gap: 8px; }
.dictado .row { gap: 8px; flex-wrap: wrap; }
button.mic { display: inline-flex; align-items: center; gap: 6px; }
button.mic.on { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 5px var(--bad-soft); } }
@media (prefers-reduced-motion: reduce) { button.mic.on { animation: none; } }
details.peligro { margin-top: 18px; }
details.peligro > summary { color: var(--bad); font-weight: 600; cursor: pointer; margin-bottom: 8px; }
main.auth.publico { max-width: 780px; margin-top: 4vh; }

/* v1.3 · valoración, favoritos y visor del CV original */
.estrellas { display: inline-flex; gap: 0; }
.estrellas button { border: 0; background: none; padding: 2px 2px; min-height: 0; font-size: 18px; line-height: 1; color: var(--line-2); cursor: pointer; }
.estrellas button.on { color: var(--warn); }
.estrellas button:hover, .estrellas button:focus-visible { color: var(--warn); }
.estrellas.mini { color: var(--warn); font-size: 12px; letter-spacing: -1px; }
button.fav { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 13px; }
button.fav.on { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.fav-t { color: var(--bad); }
.modal.ancho { width: min(1100px, 100%); }
iframe.visor { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 10px; background: #fff; }
.nk b { white-space: nowrap; }

/* v1.4 · color sutil por cliente y tarjetas personalizables */
:root, :root[data-theme="oscuro"] { --cli-0: #5b9dff; --cli-1: #2ec4ad; --cli-2: #b08cff; --cli-3: #f0a443; --cli-x: #8d94a8; }
:root[data-theme="claro"] { --cli-0: #1f66d1; --cli-1: #0e8a78; --cli-2: #7a4fd6; --cli-3: #b86e00; --cli-x: #6b7385; }
.cli-0 { --cli-c: var(--cli-0); } .cli-1 { --cli-c: var(--cli-1); } .cli-2 { --cli-c: var(--cli-2); } .cli-3 { --cli-c: var(--cli-3); } .cli-x { --cli-c: var(--cli-x); }
.card.cli, .nodo.pet.cli { background: color-mix(in srgb, var(--cli-c) 7%, var(--panel)); border-color: color-mix(in srgb, var(--cli-c) 30%, var(--line)); }
.nodo.pet.cli { border-left: 3px solid var(--cli-c); }
.card.cli .cliente-m span:first-child { color: var(--cli-c); font-weight: 600; }
.leyenda-cli { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); min-width: 0 !important; }
.leyenda-cli li { display: inline-flex; align-items: center; gap: 5px; }
.leyenda-cli i { width: 10px; height: 10px; border-radius: 3px; background: var(--cli-c); }
.personalizar { position: relative; min-width: 0 !important; }
.personalizar > button { display: inline-flex; align-items: center; gap: 6px; }
.panel-personalizar { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-up); display: grid; gap: 10px; }
.panel-personalizar fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.panel-personalizar legend { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.panel-personalizar input[type=checkbox] { width: auto; }
.kanban.compacto .card { padding: 7px 10px 7px 12px; }
.kanban.compacto .card .t { margin-bottom: 2px; font-size: 13px; }
.kanban.compacto .card .acc { margin-top: 4px; }
.mapa.compacto .nodo { padding: 6px 10px; }
.mapa.compacto .nodo .skills { margin-top: 3px; }
.nodo .m .txt { flex: 1 1 0; min-width: 0; }

/* v1.5 · selección múltiple de candidatos */
.t th.sel, .t td.sel { width: 34px; padding-right: 0; cursor: pointer; }
.t th.sel input, .t td.sel input { width: auto; cursor: pointer; }
tr.elegido td { background: var(--brand-soft); }
.barra-sel { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow-up); }
.confirma { gap: 6px; margin-top: 4px; } .confirma input { width: auto; }

/* v1.14: perfil del candidato (pestaña Overview) */
.perfil .datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.perfil .datos dt { font-size: 12px; color: var(--muted); }
.perfil .datos dd { margin: 0; font-weight: 600; }
.perfil .cifras { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.perfil .cifras div { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 8px; background: var(--panel-2); }
.perfil .cifras b { font-size: 20px; }
.perfil .exp { padding: 8px 0; border-top: 1px solid var(--line); }
.perfil .exp:first-of-type { border-top: 0; }
tr.archivado td { opacity: .55; }

/* v1.15: Team agrupado por cliente y cajas plegables */
.grupos { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.grupo { border-left: 4px solid var(--cli-c); padding-left: 12px; }
.grupo .gh { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.grupo .gh .gn { color: var(--cli-c); font-weight: 700; }
.grupo .caja { border-top: 3px solid color-mix(in srgb, var(--cli-c) 55%, var(--line)); }
button.plegar { background: none; border: 0; padding: 0 4px; min-height: 0; color: var(--muted); font-size: 13px; cursor: pointer; box-shadow: none; }
button.plegar:hover { color: var(--text); }
.caja.plegada { padding-bottom: 8px; }
.caja .caras { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 12px; cursor: pointer; }
.caja .cara { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  background: color-mix(in srgb, var(--cli-c) 22%, var(--panel)); color: var(--text); border: 1px solid color-mix(in srgb, var(--cli-c) 45%, var(--line)); }
.caja .cara.sobre { border-color: var(--bad, #e5484d); }

/* v1.16: feedback de entrevista */
.veredictos { gap: 8px; margin: 8px 0 12px; }
button.veredicto { flex: 1; font-weight: 600; opacity: .75; }
button.veredicto.on { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; }
button.veredicto.ok.on { background: var(--ok-soft); color: var(--ok); }
button.veredicto.warn.on { background: var(--warn-soft); color: var(--warn); }
button.veredicto.bad.on { background: var(--bad-soft); color: var(--bad); }
button.boton-badge { border: 0; cursor: pointer; font: inherit; }
.fb-txt { max-width: 420px; white-space: pre-wrap; margin-top: 4px; }

/* ---------- v1.17 ---------- */
/* Stand-by, GDNe */
.badge.standby { background: var(--info-soft); color: var(--info); }
button.veredicto.standby.on { background: var(--info-soft); color: var(--info); }
.badge.gdne { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-glow); font-weight: 700; letter-spacing: .02em; }
/* Botones ES / EN del CV */
.grupo-btn { display: inline-flex; white-space: nowrap; }
.grupo-btn > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.grupo-btn > button:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; min-width: 44px; }
/* Menú agrupado */
.nav-grupo { display: flex; flex-direction: column; gap: 2px; }
.nav-grupo + .nav-grupo { margin-top: 8px; }
.nav-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 2px 10px 2px; opacity: .8; white-space: nowrap; }
.shell.corto .nav-h { visibility: hidden; height: 6px; padding: 0; overflow: hidden; }
.side nav { overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) { .nav-grupo { display: contents; } .nav-h { display: none; } }
/* Plegar con + / − */
button.plegar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 1; }
button.plegar:hover { background: var(--panel-2); border-color: var(--brand); }
/* Ayuda */
.ayudita { position: relative; display: inline-block; vertical-align: middle; }
.ayuda-btn { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; font-weight: 700; font-size: 13px; color: var(--brand); border: 1px solid var(--brand-glow); background: var(--brand-soft); }
.ayuda-btn.inline { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 11px; }
.ayuda-pop { position: absolute; z-index: 35; top: 32px; left: 0; width: min(380px, 86vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-up); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ayuda-pop ul { margin: 8px 0; padding-left: 18px; } .ayuda-pop li { margin: 4px 0; color: var(--text); }
.ayuda { max-width: 900px; } .ayuda section h2 { margin-top: 0; } .ayuda li { margin: 5px 0; }
.ayuda-indice { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.ayuda-indice a { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; }
.ayuda-dl dt { font-weight: 700; margin-top: 8px; } .ayuda-dl dd { margin: 2px 0 0 0; color: var(--muted); }
/* Vista previa lateral */
.vistazo-bg { position: fixed; inset: 0; z-index: 45; background: rgba(5, 6, 10, .35); animation: aparece .15s; }
.vistazo { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-up); padding: 16px 18px 24px; overflow-y: auto; animation: entra .2s var(--ease); }
.vistazo h2 { margin: 10px 0 8px; } .vistazo h3 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vz-cab { position: sticky; top: -16px; background: var(--panel); padding: 4px 0 8px; border-bottom: 1px solid var(--line); z-index: 1; }
.vistazo .datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; }
.vistazo .dato span { display: block; font-size: 11px; color: var(--muted); } .vistazo .dato b { font-weight: 600; font-size: 13.5px; }
.vz-txt { white-space: pre-wrap; font-size: 13px; line-height: 1.5; margin: 4px 0; }
.vz-lista { list-style: none; padding: 0; margin: 0; } .vz-lista li { display: flex; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
/* v1.21: resumen del CV a la derecha de la vista previa del candidato */
.vistazo.con-resumen { width: min(980px, 100%); }
.vz-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.vz-izq { min-width: 0; }
.resumen-cv { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; margin-top: 10px; min-width: 0; }
.resumen-cv > h3:first-child { margin-top: 10px; }
.rc-titular { font-weight: 700; font-size: 15px; margin: 2px 0 4px; }
.rc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.rc-kpis div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.rc-kpis b { display: block; font-size: 16px; } .rc-kpis span { font-size: 11px; color: var(--muted); }
.rc-aviso { color: var(--warn); margin: 0 0 6px; }
.rc-fila { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rc-t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.rc-v { min-width: 0; overflow-wrap: anywhere; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 4px; } .rc-chips span { font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
.rc-chips em { font-style: normal; color: var(--muted); }
.rc-pinc { margin: 4px 0; padding-left: 18px; font-size: 13px; line-height: 1.45; } .rc-pinc li { margin: 3px 0; }
.rc-prov { margin-top: 8px; } .rc-pie { margin: 10px 0 0; }
@media (max-width: 820px) { .vz-2col { grid-template-columns: 1fr; } .rc-fila { grid-template-columns: 80px minmax(0, 1fr); } }
.vz-skills { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; } .vz-skills span { font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: var(--panel-2); }
/* Interviews en fichas */
.grupo-ent { margin-bottom: 18px; } .grupo-ent .gh { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 6px 0 10px; }
.fichas-ent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 900px) { .fichas-ent { grid-template-columns: 1fr; } }
.ficha-ent { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.ficha-ent.v-ok { border-left-color: var(--ok); } .ficha-ent.v-warn { border-left-color: var(--warn); } .ficha-ent.v-bad { border-left-color: var(--bad); } .ficha-ent.v-standby { border-left-color: var(--info); }
.ficha-ent.archivado { opacity: .75; }
.ficha-ent.abierta { box-shadow: var(--shadow-up); border-color: var(--line-2); }
.fe-cab { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 0; box-shadow: none; min-height: 0; cursor: pointer; color: var(--text); }
.fe-sig { flex: none; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.fe-nom { flex: 1; min-width: 0; } .fe-pet { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-meta { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 0 32px; }
.fe-linea { margin: 4px 0 0 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-cuerpo { margin: 8px 0 0 32px; } .fe-fb { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; margin: 0 0 6px; }
/* Asistente IA del feedback */
details.asistente { border: 1px dashed var(--brand-glow); background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; margin: 10px 0 12px; }
details.asistente summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details.asistente[open] summary { margin-bottom: 8px; }
details.asistente textarea { margin-bottom: 8px; background: var(--panel); }
.aviso-ia { background: var(--warn-soft); color: var(--warn); padding: 6px 10px; border-radius: 8px; }
label.btn.disabled { opacity: .5; pointer-events: none; }
.bad-t { color: var(--bad); }
.side nav { min-height: 0; flex: 0 1 auto; }
button.icono.ayuda-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--brand-glow); background: var(--brand-soft); color: var(--brand); }
.filtros > button.rapido, .filtros > .ghost { min-width: 0; }
.nodo .ojo { float: right; padding: 0 6px; min-height: 0; line-height: 1.4; opacity: .7; } .nodo .ojo:hover { opacity: 1; }

/* ---------- v1.19: calculadora de %CM (mismo aspecto que Team) ---------- */
.equipo.cm { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cm-pool-f { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 8px; }
.persona .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona.generico { border-style: dashed; background: var(--brand-soft); }
.persona.linea-cm { cursor: default; display: flex; flex-direction: column; gap: 6px; }
.linea-cm select { font-size: 12px; padding: 5px 8px; }
.linea-cm .cm-nombre { flex: 1; min-width: 0; padding: 3px 7px; font-weight: 600; font-size: 13px; }
.linea-cm .cm-quitar { padding: 0 6px; min-height: 0; color: var(--muted); }
.cm-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.cm-campos label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); }
.cm-campos input { padding: 5px 7px; font-size: 13px; }
.cm-campos input.falta { border-color: var(--warn); }
.cm-modo { display: inline-flex; margin: 0 12px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; align-self: flex-start; }
.cm-modo button { border: 0; border-radius: 0; padding: 4px 10px; font-size: 12px; background: var(--panel); color: var(--muted); }
.cm-modo button + button { border-left: 1px solid var(--line-2); }
.cm-modo button.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.cm-param { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 12px 8px; font-size: 12px; color: var(--muted); }
.cm-param label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cm-param input { width: 72px; padding: 4px 6px; }
.cm-badge { font-size: 12px; }
.cm-guardado { margin-left: auto; font-size: 11px; }
.cm-total { margin: 10px 10px 0; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.cm-total.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.cm-total.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.cm-total.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.cm-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cm-cifras span { display: flex; flex-direction: column; min-width: 0; }
.cm-cifras small { color: var(--muted); font-size: 11px; }
.cm-cifras b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-nota { padding: 6px 12px 0; margin: 0; white-space: pre-wrap; }
@media (max-width: 520px) { .cm-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); } .equipo.cm { grid-template-columns: 1fr; } }

/* v1.20: etiquetas banca/stand-by, prioridad, ojo como icono y entrevistadores */
.badge.et-banca { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); font-weight: 700; }
.badge.et-standby { background: var(--info-soft); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 40%, transparent); font-weight: 700; }
.badge.prio-0 { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.badge.prio-1 { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.badge.prio-2, .badge.prio-3 { background: var(--panel-2, var(--brand-soft)); color: var(--muted); }
.ojo-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.ojo-ico:hover, .ojo-ico:focus-visible { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-glow); }
.ojo-ico.izq { vertical-align: middle; margin: -3px 4px -3px -4px; }
.nodo.cand .lado-izq { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.entrevistadores { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; max-width: 260px; }
.chip-ent { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; padding: 1px 2px 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.chip-ent .x { min-height: 0; padding: 0 5px; line-height: 1.2; color: inherit; }
.entrevistadores .ent-in { flex: 1; min-width: 110px; padding: 3px 8px; font-size: 12px; min-height: 0; }
.quien-ent { color: var(--brand); font-weight: 600; }

/* v1.22: secciones por usuario */
.modulos { display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 420px; }
.chk-mod { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.chk-mod input { width: auto; }

/* v1.23: Home animada, buzón y atajos */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); padding: 34px 32px 28px; margin-bottom: 18px; isolation: isolate; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-fondo .orbe { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; animation: flota 14s ease-in-out infinite alternate; }
.hero-fondo .o1 { width: 340px; height: 340px; background: var(--brand); top: -140px; left: -60px; }
.hero-fondo .o2 { width: 260px; height: 260px; background: var(--info); bottom: -150px; right: 12%; animation-duration: 18s; animation-delay: -6s; opacity: .4; }
.hero-fondo .o3 { width: 200px; height: 200px; background: var(--ok); top: -60px; right: -40px; animation-duration: 22s; animation-delay: -11s; opacity: .28; }
.hero-fondo .rejilla { position: absolute; inset: -40% -10% 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px; transform: perspective(520px) rotateX(58deg) translateY(30%); transform-origin: bottom; opacity: .55;
  mask-image: linear-gradient(to top, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%); animation: avanza 6s linear infinite; }
.hero-fondo .barrido { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--brand) 16%, transparent) 50%, transparent 70%);
  transform: translateX(-100%); animation: barre 7s ease-in-out infinite; }
@keyframes flota { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 24px) scale(1.15); } }
@keyframes avanza { from { background-position: 0 0, 0 0; } to { background-position: 0 42px, 0 0; } }
@keyframes barre { 0%, 35% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
.hero-txt { position: relative; max-width: 760px; }
.hero-fecha { margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.home-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
.home-hero .grad { background: linear-gradient(90deg, var(--brand), var(--info) 60%, var(--ok)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 0 16px; color: var(--text); opacity: .85; font-size: 15px; }
.hero-acc { gap: 8px; flex-wrap: wrap; }
.kpis { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { --c: var(--brand); animation: entra .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.kpi.ok { --c: var(--ok); } .kpi.warn { --c: var(--warn); } .kpi.bad { --c: var(--bad); }
.kpi a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.kpi a::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c), transparent); }
.kpi a:hover, .kpi a:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 10px 30px -14px var(--c); }
.kpi-n { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); line-height: 1.1; }
.kpi-t { font-weight: 600; font-size: 13px; } .kpi-s { font-size: 12px; color: var(--muted); }
.kpi.cargando-k { height: 98px; border-radius: 14px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: brillo 1.2s linear infinite; }
@keyframes brillo { to { background-position: -200% 0; } }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.home-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.home-panel h2 { margin: 0; font-size: 16px; }
.acciones, .actividad, .mis-buzon { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.acciones li, .actividad li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; animation: entra .4s ease both; animation-delay: calc(var(--i, 0) * 50ms); }
.actividad li { flex-wrap: nowrap; align-items: center; font-size: 13px; } .actividad li > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actividad time { white-space: nowrap; flex: none; }
.actividad .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); flex: none; }
.mis-buzon li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; } .mis-buzon .ellipsis { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mis-buzon .resp { flex-basis: 100%; color: var(--brand); padding-left: 8px; }
.badge.est-nuevo { background: var(--info-soft); color: var(--info); } .badge.est-hecho { background: var(--ok-soft); color: var(--ok); } .badge.est-en_curso { background: var(--warn-soft); color: var(--warn); }
.lista-buzon { display: flex; flex-direction: column; gap: 10px; }
.msg-buzon.nuevo { border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.texto-buzon { white-space: pre-wrap; margin: 10px 0; }
.lista-atajos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; align-items: center; }
.lista-atajos dt { margin: 0; } .lista-atajos dd { margin: 0; }
.lista-atajos kbd, .side kbd { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); }
@media (max-width: 520px) { .home-hero { padding: 24px 18px 20px; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-n { font-size: 26px; } .home-cols { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hero-fondo .orbe, .hero-fondo .rejilla, .hero-fondo .barrido, .kpi, .acciones li, .actividad li { animation: none !important; } }

/* ================= Nicole (demanda de innovación) ================= */
:root { --t-poc: #9d90ff; --t-implementacion: #3ddc97; --t-investigacion: #4cc9f0; --t-demo: #ffb547; --t-ensenar_agencia: #f472b6; --t-mejora: #a3e635;
  --t-soporte: #94a3b8; --t-formacion: #fb923c; --t-asesoria: #2dd4bf; --t-charla: #e879f9; --t-boletin: #facc15; }
:root[data-theme="claro"] { --t-poc: #5b4fe0; --t-implementacion: #0b7a4d; --t-investigacion: #0a6d93; --t-demo: #b06c00; --t-ensenar_agencia: #be185d; --t-mejora: #4d7c0f;
  --t-soporte: #64748b; --t-formacion: #c2410c; --t-asesoria: #0f766e; --t-charla: #a21caf; --t-boletin: #a16207; }
.tc-poc { --tc: var(--t-poc); } .tc-implementacion { --tc: var(--t-implementacion); } .tc-investigacion { --tc: var(--t-investigacion); } .tc-demo { --tc: var(--t-demo); }
.tc-ensenar_agencia { --tc: var(--t-ensenar_agencia); } .tc-mejora { --tc: var(--t-mejora); } .tc-soporte { --tc: var(--t-soporte); } .tc-formacion { --tc: var(--t-formacion); }
.tc-asesoria { --tc: var(--t-asesoria); } .tc-charla { --tc: var(--t-charla); } .tc-boletin { --tc: var(--t-boletin); }
.badge.tipo { background: color-mix(in srgb, var(--tc, var(--muted)) 16%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--tc, var(--muted)) 55%, transparent); }
.badge.tipo.t-poc { --tc: var(--t-poc); } .badge.tipo.t-implementacion { --tc: var(--t-implementacion); } .badge.tipo.t-investigacion { --tc: var(--t-investigacion); }
.badge.tipo.t-demo { --tc: var(--t-demo); } .badge.tipo.t-ensenar_agencia { --tc: var(--t-ensenar_agencia); } .badge.tipo.t-mejora { --tc: var(--t-mejora); }
.badge.tipo.t-soporte { --tc: var(--t-soporte); } .badge.tipo.t-formacion { --tc: var(--t-formacion); } .badge.tipo.t-asesoria { --tc: var(--t-asesoria); }
.badge.tipo.t-charla { --tc: var(--t-charla); } .badge.tipo.t-boletin { --tc: var(--t-boletin); }
.dot.e-new { background: var(--info); } .dot.e-assigned { background: var(--warn); } .dot.e-planned { background: var(--brand); } .dot.e-progress { background: var(--c-sugerido); } .dot.e-done { background: var(--ok); }
.kanban.k5 { grid-template-columns: repeat(5, minmax(210px, 1fr)); }
.card.tc-poc, .card[class*=" tc-"] { box-shadow: inset 0 3px 0 var(--tc, transparent), var(--shadow); }
.card .cliente-m { color: var(--muted); font-size: 12px; gap: 4px; }
.avatares { display: inline-flex; align-items: center; }
.avatar.mini { width: 24px; height: 24px; font-size: 10px; margin-left: -6px; border: 2px solid var(--panel); }
.avatares .avatar.mini:first-child { margin-left: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.seg > button, .seg > a.btn { border: 0; border-radius: 0; background: transparent; padding: 6px 12px; font-size: 13px; }
.seg > * + * { border-left: 1px solid var(--line-2) !important; }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"] { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.vistas { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.vistas svg { width: 14px; height: 14px; vertical-align: -2px; }
.vistas .chip button.link { padding-right: 2px; }
.agencias-sel { display: grid; gap: 10px; }
.agencias-sel .chips, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.agencias-sel .chip { --c: var(--brand); }
.chip .x { border: 0; background: none; padding: 0 2px 0 6px; color: var(--muted); cursor: pointer; }
.equipo-t input, .equipo-t select { min-width: 0; }
.equipo-t td { vertical-align: top; }
.equipo-t tr.mia td { background: var(--brand-soft); }
.equipo-t input[type="date"] { width: 140px; }
button.small { padding: 3px 8px; font-size: 12px; margin-top: 4px; }
.warn-t { color: var(--warn); }
.cab-demanda { gap: 8px; flex-wrap: wrap; align-items: center; }
.titulo-in { font: inherit; font-size: 24px; font-weight: 700; width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: var(--r-sm); color: var(--text); }
.titulo-in:hover:not(:disabled), .titulo-in:focus { border-color: var(--line-2); background: var(--panel); }
.coste-panel .coste-n { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.barra-guardar { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 14px; margin-top: 12px;
  background: var(--panel); border: 1px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-up); }
.barra-guardar span { margin-right: auto; }
.adjuntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adjuntos li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal.ancho { max-width: 1040px; width: calc(100vw - 32px); }
.acciones-modal { margin-top: 16px; gap: 8px; }
.asistente { border: 1px dashed var(--brand); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; background: var(--brand-soft); }
.asistente summary { cursor: pointer; font-weight: 600; }
.asistente textarea { width: 100%; margin: 8px 0; }
button.grabando { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.leyenda-tipos { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; color: var(--muted); }
.leyenda-tipos i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--tc); margin-right: 5px; vertical-align: -1px; }
/* Gantt */
.gantt { padding: 0; overflow-x: auto; }
.gantt .g-fila { display: grid; grid-template-columns: 260px minmax(560px, 1fr); border-bottom: 1px solid var(--line); min-height: 38px; }
.gantt .g-lbl { padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; border-right: 1px solid var(--line); }
.gantt .g-lbl a, .gantt .g-lbl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt .g-lbl .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt .g-lbl.sub { padding-left: 26px; }
.gantt .g-pista { position: relative; display: grid; grid-template-columns: repeat(var(--meses), 1fr); }
.gantt .g-pista > i { border-left: 1px dashed var(--line); }
.gantt .g-cab { position: sticky; top: 0; background: var(--panel-2); z-index: 2; font-size: 12px; color: var(--muted); }
.gantt .g-cab .g-pista span { padding: 8px 6px; border-left: 1px solid var(--line); }
.gantt .g-cab .g-pista span.ano { color: var(--text); font-weight: 600; }
.gantt .g-persona { background: var(--panel-2); }
.gantt .g-hoy { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); opacity: .7; z-index: 1; }
.gantt .g-barra { position: absolute; top: 8px; bottom: 8px; border-radius: 6px; background: color-mix(in srgb, var(--tc) 75%, transparent); border: 1px solid var(--tc);
  color: #10131a; font-size: 11px; font-weight: 700; display: flex; align-items: center; padding: 0 6px; overflow: hidden; white-space: nowrap; text-decoration: none; z-index: 1; min-width: 8px; }
.gantt .g-barra.hecha { opacity: .45; }
.gantt .g-barra.punto { border-style: dashed; background: color-mix(in srgb, var(--tc) 30%, transparent); color: var(--text); }
.gantt .g-fuera { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
/* Capacidad */
.carga { display: inline-block; min-width: 46px; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 600; font-size: 12px; }
.carga.libre { color: var(--muted); } .carga.ok { background: var(--ok-soft); color: var(--ok); } .carga.lleno { background: var(--warn-soft); color: var(--warn); } .carga.sobre { background: var(--bad-soft); color: var(--bad); }
.capacidad tr.total td { border-top: 2px solid var(--line-2); }
tr.detalle td { background: var(--panel-2); }
.home-panel h2 svg { width: 16px; height: 16px; vertical-align: -2px; }
@media (max-width: 760px) {
  .kanban.k5 { grid-template-columns: repeat(5, 84vw); }
  .gantt .g-fila { grid-template-columns: 150px minmax(480px, 1fr); }
}
.equipo-t { min-width: 980px; }
.equipo-t select { min-width: 170px; }
.equipo-t input[aria-label="What to do"] { min-width: 220px; width: 100%; }
