/* Tareas del equipo — «La libreta que sí se lee».
   Papel cálido, tinta azul y resaltador. Fraunces para la voz, Figtree para el trabajo. */

@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/fraunces-latin-soft-normal.woff2") format("woff2-variations"), url("/fonts/fraunces-latin-soft-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("/fonts/fraunces-latin-soft-italic.woff2") format("woff2-variations"), url("/fonts/fraunces-latin-soft-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }

:root {
  --papel: #f4f1e9; --surface: #fffdf8; --surface-2: #f9f6ee; --hundido: #ece7da;
  --ink: #1b2333; --muted: #5d6473; --faint: #8b8f99; --line: #e7e1d3; --line-2: #d9d1bf;
  --primary: #23408e; --primary-hover: #1a3274; --primary-ink: #ffffff; --primary-soft: #e6ebf7;
  --resaltador: #ffe17a; --resaltador-suave: #fff4c4; --margen: #e2725b; --renglon: #ebe4d4;
  --rojo: #c4372b; --rojo-soft: #fbe9e5; --naranja: #c8620f; --naranja-soft: #fdeedd;
  --amarillo: #b98a00; --amarillo-ink: #7a5b00; --amarillo-soft: #fbf1cf; --verde: #2f7d57; --verde-soft: #e4f1e8;
  --gris: #a8a596; --gris-soft: #efece3;
  --g-venc: #c0392b; --g-abie: #4a78b8; --g-hech: #2e7d4f; --g-unica: #4a78b8;
  --shadow: 0 1px 0 rgba(27, 35, 51, .04), 0 2px 10px rgba(27, 35, 51, .05);
  --shadow-lg: 0 -2px 0 rgba(27, 35, 51, .02), 0 14px 44px rgba(27, 35, 51, .16);
  --p1: #257de0; --p2: #f47230; --p3: #00b894; --p4: #f2a600; --p5: #ee7fac; --p6: #008a17; --p7: #6a4ce2; --p8: #ec4647;
  --reu: #5b3fc4; --reu-2: #4a32a6; --reu-suave: #efeafd; --reu-ink: #4a32a6; --lomo: #23408e; --lomo-2: #1a3274;
  --cinta: #1b2333; --cinta-etq: #11161f; --cinta-borde: transparent;
  --radius: 16px; --radius-sm: 10px;
  --voz: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) {
  --papel: #10141b; --surface: #171d27; --surface-2: #1c2330; --hundido: #0c1016;
  --ink: #ece7dc; --muted: #a3a9b6; --faint: #737a88; --line: #252d3b; --line-2: #323b4c;
  --primary: #93b1ff; --primary-hover: #b2c7ff; --primary-ink: #0d1426; --primary-soft: #1d2945;
  --resaltador: #e8c547; --resaltador-suave: #3a331a; --margen: #e2725b; --renglon: #212937;
  --rojo: #f08072; --rojo-soft: #3a1f1d; --naranja: #f3a05e; --naranja-soft: #3a2918; --amarillo: #e6c450; --amarillo-ink: #e6c450; --amarillo-soft: #343016;
  --verde: #6ccb97; --verde-soft: #17301f; --gris: #6f7684; --gris-soft: #202836;
  --g-venc: #e8685b; --g-abie: #6f9ce0; --g-hech: #4fb27c; --g-unica: #6f9ce0;
  --p1: #338ced; --p2: #e76624; --p3: #00a888; --p4: #d28e05; --p5: #e24d8b; --p6: #0aac23; --p7: #9887ef; --p8: #eb6263;
  --reu: #7a64e6; --reu-2: #5f4bc4; --reu-suave: #231d3d; --reu-ink: #c3b8ff; --lomo: #2c3e6b; --lomo-2: #22325a;
  --cinta: #0a0d13; --cinta-etq: #05070b; --cinta-borde: #252d3b;
  --shadow: 0 1px 0 rgba(0,0,0,.25); --shadow-lg: 0 14px 44px rgba(0,0,0,.55);
  color-scheme: dark;
} }
:root[data-tema="oscuro"] {
  --papel: #10141b; --surface: #171d27; --surface-2: #1c2330; --hundido: #0c1016;
  --ink: #ece7dc; --muted: #a3a9b6; --faint: #737a88; --line: #252d3b; --line-2: #323b4c;
  --primary: #93b1ff; --primary-hover: #b2c7ff; --primary-ink: #0d1426; --primary-soft: #1d2945;
  --resaltador: #e8c547; --resaltador-suave: #3a331a; --margen: #e2725b; --renglon: #212937;
  --rojo: #f08072; --rojo-soft: #3a1f1d; --naranja: #f3a05e; --naranja-soft: #3a2918; --amarillo: #e6c450; --amarillo-ink: #e6c450; --amarillo-soft: #343016;
  --verde: #6ccb97; --verde-soft: #17301f; --gris: #6f7684; --gris-soft: #202836;
  --g-venc: #e8685b; --g-abie: #6f9ce0; --g-hech: #4fb27c; --g-unica: #6f9ce0;
  --p1: #338ced; --p2: #e76624; --p3: #00a888; --p4: #d28e05; --p5: #e24d8b; --p6: #0aac23; --p7: #9887ef; --p8: #eb6263;
  --reu: #7a64e6; --reu-2: #5f4bc4; --reu-suave: #231d3d; --reu-ink: #c3b8ff; --lomo: #2c3e6b; --lomo-2: #22325a;
  --cinta: #0a0d13; --cinta-etq: #05070b; --cinta-borde: #252d3b;
  --shadow: 0 1px 0 rgba(0,0,0,.25); --shadow-lg: 0 14px 44px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--papel); color: var(--ink); font: 15.5px/1.5 var(--font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--resaltador); color: #1b2333; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Carga y entrada ---------- */
.splash { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-family: var(--voz); font-style: italic; }
.splash img { border-radius: 14px; }
.centro { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.tarjeta-entrada { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px 30px 44px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.tarjeta-entrada::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1.5px; background: var(--margen); opacity: .55; }
.tarjeta-entrada h1 { font: 600 28px/1.15 var(--voz); font-variation-settings: "SOFT" 100; margin: 16px 0 6px; letter-spacing: -.015em; }
.tarjeta-entrada > p { color: var(--muted); margin: 0 0 22px; }
.tarjeta-entrada .logo { width: 46px; height: 46px; border-radius: 13px; }
.opcion { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-top: 12px; background: var(--surface-2); }
.opcion h2 { font-size: 15px; margin: 0 0 10px; }
.opcion.destacada { border-color: var(--primary); background: var(--primary-soft); }
.fila-form { display: flex; gap: 8px; }
.fila-form input { flex: 1; min-width: 0; }
.separador { text-align: center; color: var(--faint); font: italic 14px var(--voz); margin: 14px 0 0; }

/* ---------- Controles ---------- */
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo > span, .etq { font-size: 12.5px; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
input[type=text], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primario { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primario:hover { background: var(--primary-hover); }
.btn.peligro { color: var(--rojo); border-color: transparent; background: transparent; }
.btn.peligro:hover { background: var(--rojo-soft); }
.btn.suave { border-color: transparent; background: transparent; color: var(--muted); }
.btn.suave:hover { background: var(--hundido); color: var(--ink); }
.btn.chico { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.activo { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn:disabled { opacity: .5; cursor: default; }
.icono-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--muted); }
.icono-btn:hover { background: var(--hundido); color: var(--ink); }
.segmentos { display: flex; background: var(--hundido); border-radius: 999px; padding: 4px; gap: 4px; }
.segmentos button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 6px; font-weight: 650; font-size: 13.5px; color: var(--muted); }
.segmentos button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.cabecera { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papel) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.cabecera-fila { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 14px 0 16px; max-width: 1280px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; text-decoration: none; color: inherit; }
.marca img { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.marca-txt { display: grid; min-width: 0; line-height: 1.2; }
.marca-txt b { font: 600 16.5px var(--voz); font-variation-settings: "SOFT" 100; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca-txt small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 650; white-space: nowrap; overflow: hidden; }
.marca-txt small svg.i { width: 13px; height: 13px; flex: none; }
/* Barra de secciones: una "tinta" se desliza bajo la sección activa */
.dock { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); flex: none; }
.dock-tinta { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 13px; background: var(--ink); box-shadow: 0 6px 16px -4px rgba(27, 35, 51, .45);
  transition: transform .4s cubic-bezier(.3, 1.25, .5, 1), width .4s cubic-bezier(.3, 1.25, .5, 1); }
.dock a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px; border-radius: 13px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; transition: color .25s; }
.dock a:hover { color: var(--ink); }
.dock a[aria-current="page"] { color: var(--papel); }
.dock a svg.i { width: 18px; height: 18px; }
.dock-n { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rojo); color: #fff; font: 800 10.5px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.cab-acciones { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.tema-btn { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.tema-btn:hover { border-color: var(--ink); }
.tema-ico { width: 20px; height: 20px; overflow: visible; }
.tema-ico .sol, .tema-ico .luna { transform-origin: 12px 12px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.tema-btn[data-tema="claro"] .sol { opacity: 0; transform: rotate(-90deg) scale(.3); }
.tema-btn[data-tema="oscuro"] .luna { opacity: 0; transform: rotate(90deg) scale(.3); }
.cambiando-tema body, .cambiando-tema .libreta, .cambiando-tema .cabecera, .cambiando-tema .dock, .cambiando-tema .grupo-items { transition: background-color .35s, color .35s, border-color .35s; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 750;
  background: var(--primary); color: var(--primary-ink); flex: none; letter-spacing: .02em; }
.avatar.chico { width: 22px; height: 22px; font-size: 9.5px; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 759px) {
  .cabecera-fila { flex-wrap: wrap; height: auto; padding: 8px 10px 10px 12px; row-gap: 8px; gap: 10px; }
  .marca { order: 1; } .cab-acciones { order: 2; flex: none; }
  .dock { order: 3; flex: 1 1 100%; }
  .dock a { flex: 1; flex-direction: column; justify-content: center; gap: 1px; height: 48px; padding: 0 4px; font-size: 11.5px; }
  .dock a svg.i { width: 19px; height: 19px; }
  .dock-n { right: calc(50% - 26px); top: 1px; }
  .marca img { width: 34px; height: 34px; }
}

.cuerpo { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; display: flex; }
.lateral { display: none; }
.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: calc(100dvh - 61px - var(--safe-t)); }

/* ---------- Saludo: «Tu día» ---------- */
.saludo { padding: 22px 18px 4px; }
.saludo-fila { display: flex; align-items: center; gap: 16px; }
.saludo-texto { flex: 1; min-width: 0; }
.saludo h1 { font: 600 27px/1.12 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 72; margin: 0; letter-spacing: -.02em; }
.saludo .fecha { font: italic 15.5px var(--voz); font-variation-settings: "SOFT" 100; color: var(--muted); margin: 3px 0 0; }
.saludo .frase { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 560px; }
.saludo .frase b { color: var(--ink); font-weight: 700; }
.saludo .frase b.rojo { color: var(--rojo); }
.marcador { background: linear-gradient(100deg, transparent 0 1%, var(--resaltador) 2% 97%, transparent 99%) 0 75% / 100% 48% no-repeat; padding: 0 4px; margin: 0 -2px; }
:root[data-tema="oscuro"] .marcador { color: #1b2333; background-size: 100% 100%; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .marcador { color: #1b2333; background-size: 100% 100%; border-radius: 4px; } }
.anillo { position: relative; width: 76px; height: 76px; flex: none; display: grid; place-content: center; text-align: center; }
.anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 7; }
.anillo .pista { stroke: var(--hundido); }
.anillo .avance { stroke: var(--verde); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1); }
.anillo b { position: relative; font: 600 19px/1 var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.anillo small { position: relative; display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; font-weight: 650; }
.filtro-activo { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }

/* Filtros (chips) */
.filtros { position: relative; display: flex; gap: 8px; padding: 14px 18px 2px; overflow-x: auto; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; flex: none; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--papel); }
.chip .n { font-weight: 600; opacity: .65; font-size: 12.5px; }
.chip select { border: 0; background: transparent; padding: 0; min-height: 0; font-weight: 650; color: inherit; box-shadow: none; width: auto; max-width: 150px; }
.chip.activo { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- Lista ---------- */
.lista { flex: 1; padding: 4px 12px 28px; }
.grupo { margin-top: 22px; }
.grupo-cab { display: flex; align-items: center; gap: 10px; padding: 0 8px 10px; margin: 0; font: 600 19px var(--voz); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
.grupo-cab .n { font: 700 12px var(--font); color: var(--muted); background: var(--hundido); border-radius: 999px; padding: 2px 8px; }
.grupo-cab .punto { width: 9px; height: 9px; border-radius: 50%; }
.grupo-cab.g-vencidas { color: var(--rojo); }
.grupo-items { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tarea { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 13px 14px 13px 10px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.tarea:first-child { border-top: 0; }
.tarea:hover { background: var(--surface-2); }
.tarea::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, transparent); }
.tarea.nueva { animation: entrar .9s ease-out; }
@keyframes entrar { from { background: var(--resaltador-suave); transform: translateY(-6px); opacity: .3; } 30% { transform: none; opacity: 1; } }
.check { width: 42px; height: 42px; margin: -9px -2px -9px -4px; flex: none; display: grid; place-items: center; border: 0; background: transparent; }
.check span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c, var(--line-2)); display: grid; place-items: center; transition: background .2s, transform .2s, border-color .2s; }
.c-gris .check span, .c-hecha .check span { border-color: var(--line-2); }
.check:hover span { background: var(--hundido); transform: scale(1.08); }
.check svg.i { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: #fff; transition: opacity .2s; }
.check:hover svg.i { opacity: .4; color: var(--muted); }
.tarea.hecha .check span, .tarea.tachando .check span { background: var(--verde); border-color: var(--verde); }
.tarea.hecha .check svg.i, .tarea.tachando .check svg.i { opacity: 1; color: #fff; }
.tarea.tachando .check span { animation: pop .35s ease-out; }
@keyframes pop { 50% { transform: scale(1.28); } }
.tarea-cuerpo { flex: 1; min-width: 0; padding-top: 1px; }
.tarea-titulo { font-weight: 550; font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; }
.tarea-titulo span { background: linear-gradient(currentColor, currentColor) 0 58% / 0 2px no-repeat; transition: background-size .4s cubic-bezier(.5,0,.2,1), color .4s; }
.tarea.tachando .tarea-titulo span { background-size: 100% 2px; color: var(--muted); }
.tarea.tachando { animation: irse .3s ease-in .85s forwards; }
@keyframes irse { to { opacity: 0; transform: translateX(14px); } }
.tarea.hecha .tarea-titulo { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg.i { width: 14px; height: 14px; }
.vence { font-weight: 650; color: var(--cv, var(--muted)); background: var(--cs, transparent); padding: 1px 8px; border-radius: 999px; margin-left: -2px; }
.etiqueta { padding: 1px 8px; border-radius: 999px; background: var(--hundido); color: var(--muted); font-weight: 650; font-size: 12.5px; }
.prio-alta { color: var(--rojo); background: var(--rojo-soft); }
.prio-baja { color: var(--faint); }
.estado-en_curso { color: var(--primary); background: var(--primary-soft); }
.c-rojo { --c: var(--rojo); --cv: var(--rojo); --cs: var(--rojo-soft); }
.c-naranja { --c: var(--naranja); --cv: var(--naranja); --cs: var(--naranja-soft); }
.c-amarillo { --c: var(--amarillo); --cv: var(--amarillo-ink); --cs: var(--amarillo-soft); }
.c-verde { --c: var(--verde); --cv: var(--verde); --cs: var(--verde-soft); }
.c-gris, .c-hecha { --c: transparent; }
.bg-rojo { background: var(--rojo); } .bg-naranja { background: var(--naranja); } .bg-amarillo { background: var(--amarillo); }
.bg-verde { background: var(--verde); } .bg-gris { background: var(--gris); }

.vacio { text-align: center; color: var(--muted); padding: 36px 24px 24px; }
.vacio .ilustracion { width: 148px; height: auto; display: block; margin: 0 auto; }
.ilustracion .papel { fill: var(--surface); stroke: var(--line-2); }
.ilustracion .renglon { stroke: var(--renglon); }
.ilustracion .margen { stroke: var(--margen); opacity: .6; }
.ilustracion .trazo { stroke: var(--ink); opacity: .55; }
.ilustracion .marca-r { stroke: var(--resaltador); }
.ilustracion .ok { stroke: var(--verde); }
.vacio h3 { color: var(--ink); margin: 14px 0 6px; font: 600 22px var(--voz); font-variation-settings: "SOFT" 100; }
.vacio p { margin: 0 auto; max-width: 380px; }
.ejemplos { display: grid; gap: 8px; justify-items: center; margin-top: 18px; }
.ejemplo { display: inline-block; padding: 10px 16px; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 14.5px; color: var(--ink); cursor: pointer; max-width: 100%; }
.ejemplo:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Inicio: la libreta es protagonista ---------- */
body[data-ruta="libreta"] .app { height: 100dvh; min-height: 0; }
.inicio { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 14px calc(12px + var(--safe-b)); }
.libreta { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px 8px 22px 22px; box-shadow: var(--shadow-lg), 6px 6px 0 -1px var(--surface-2), 6px 6px 0 0 var(--line-2); overflow: hidden; }
/* Lomo de la libreta con perforaciones */
.espiral { flex: none; height: 26px; background:
  radial-gradient(circle at 50% 55%, var(--papel) 0 4.5px, color-mix(in srgb, var(--ink) 30%, transparent) 5px 5.6px, transparent 6px) 0 0 / 30px 26px repeat-x,
  linear-gradient(var(--lomo), var(--lomo-2)); border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.libreta.en-reunion { --lomo: var(--reu); --lomo-2: var(--reu-2); }
.libreta-cab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 10px 64px; position: relative; }
.lc-saludo { min-width: 0; }
.lc-saludo h1 { font: 600 30px/1.1 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 72; letter-spacing: -.02em; margin: 0; }
.lc-saludo .fecha { font: italic 15px var(--voz); font-variation-settings: "SOFT" 100; color: var(--muted); margin: 3px 0 0; }
.lc-pulso { display: flex; align-items: center; gap: 8px; flex: none; }
.pulso { display: grid; justify-items: start; gap: 0; min-width: 74px; padding: 7px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: transform .15s, border-color .15s; }
.pulso:hover { transform: translateY(-1px); border-color: var(--ink); }
.pulso b { font: 600 22px/1.05 var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.pulso span { font-size: 11.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.pulso.p-rojo { background: var(--rojo-soft); border-color: transparent; } .pulso.p-rojo b, .pulso.p-rojo span { color: var(--rojo); }
.pulso.p-hoy { background: var(--resaltador); border-color: transparent; } .pulso.p-hoy b, .pulso.p-hoy span { color: #1b2333; }
.lc-pulso .anillo { width: 60px; height: 60px; }
.lc-pulso .anillo b { font-size: 15px; }
.lc-pulso .anillo small { font-size: 9.5px; margin-top: 1px; }

.libreta-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; border-top: 1px dashed var(--line-2); }
.escritura { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.escritura::before { content: ""; position: absolute; left: 48px; top: 0; bottom: 0; width: 1.5px; background: var(--margen); opacity: .5; pointer-events: none; }
.en-reunion .escritura { background: linear-gradient(var(--reu-suave), transparent 70%); }
.modo { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px 64px; flex-wrap: wrap; }
.modo-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--hundido); }
.modo-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--muted); }
.modo-seg button svg.i { width: 15px; height: 15px; }
.modo-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modo-seg button[data-modo="reunion"][aria-pressed="true"] { background: var(--reu); color: #fff; }
.reunion-caja { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-width: 0; animation: aparecer .25s ease-out; }
@keyframes aparecer { from { opacity: 0; transform: translateX(-6px); } }
.reunion-caja input { min-height: 36px; border: 0; border-bottom: 2px solid var(--reu); border-radius: 0; background: transparent; padding: 4px 2px; font: 600 16px var(--voz); font-variation-settings: "SOFT" 100; box-shadow: none !important; }
.detectada { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 750; color: #1b2333; background: var(--resaltador); padding: 3px 9px; border-radius: 999px; }
.detectada svg.i { width: 12px; height: 12px; }
.hoja-papel { flex: 1; min-height: 0; display: flex; padding: 4px 18px 0 64px; }
.hoja-papel textarea { flex: 1; height: 100%; min-height: 96px; border: 0; border-radius: 0; padding: 2px 0 0; resize: none; box-shadow: none !important; outline: none;
  font-size: 19px; line-height: 34px; background: repeating-linear-gradient(to bottom, transparent 0 33px, var(--renglon) 33px 34px) 0 0 / 100% 34px local; overflow-y: auto; }
.hoja-papel textarea:focus-visible { outline: none; }
.hoja-papel textarea::placeholder { color: var(--faint); font-family: var(--voz); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 19px; }
.atajos { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px 14px 64px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.atajos::-webkit-scrollbar { display: none; }
.atajos button:not(.enviar) { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 650; min-height: 36px; }
.atajos button:not(.enviar):hover { color: var(--ink); border-color: var(--muted); }
.atajos button svg.i { width: 14px; height: 14px; }
.atajos .urgente { color: var(--rojo) !important; }
.enviar { margin-left: auto; height: 46px; min-width: 46px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--primary); color: var(--primary-ink); display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex: none; font-weight: 750; font-size: 15px; transition: transform .1s, background .2s; }
.en-reunion .enviar { background: var(--reu); color: #fff; }
.enviar:hover { filter: brightness(1.08); }
.enviar:active { transform: scale(.95); }
.enviar:disabled { background: var(--hundido); color: var(--faint); cursor: default; filter: none; }
.enviar svg.i { width: 19px; height: 19px; stroke-width: 2.4; }
.sugerencias { flex: none; display: flex; gap: 6px; padding: 6px 14px 6px 64px; overflow-x: auto; scrollbar-width: none; }
.sugerencias button { flex: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 650; }
.sugerencias button:first-child { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Vista previa / guía (columna derecha en computador) */
.vista-previa { min-height: 0; overflow-y: auto; padding: 18px 18px 18px; background: var(--surface-2); border-left: 1px dashed var(--line-2); }
.vp-etq { font: italic 14px var(--voz); font-variation-settings: "SOFT" 100; color: var(--muted); margin: 0 0 8px; }
.vp-etq:not(:first-child) { margin-top: 16px; }
.vp-item { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; animation: aparecer .2s ease-out; }
.vp-titulo { display: flex; align-items: flex-start; gap: 8px; font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.vp-titulo.vacio-t { color: var(--faint); font-weight: 500; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 7px; }
.vp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--hundido); color: var(--ink); }
.vp-chip svg.i { width: 12px; height: 12px; color: var(--muted); }
.vp-chip.tenue { color: var(--muted); }
.vp-chip.aviso { color: var(--naranja); background: var(--naranja-soft); } .vp-chip.aviso svg.i { color: var(--naranja); }
.vp-chip.alta { color: var(--rojo); background: var(--rojo-soft); } .vp-chip.alta svg.i { color: var(--rojo); }
.vp-mas { font-size: 13px; color: var(--muted); }
.vp-reu { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--reu); color: #fff; margin-bottom: 12px; }
.vp-reu > svg.i { width: 26px; height: 26px; flex: none; }
.vp-reu div { flex: 1; min-width: 0; }
.vp-reu small { display: block; font-size: 11px; opacity: .85; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.vp-reu b { font: 600 17px var(--voz); font-variation-settings: "SOFT" 100; overflow-wrap: anywhere; }
.vp-reu .proy { background: rgba(255,255,255,.95); border-radius: 999px; padding: 2px 8px 2px 2px; }
.guia-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.guia-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.guia-lista code { font: 650 14px var(--font); color: #1b2333; background: linear-gradient(100deg, transparent 0 2%, var(--resaltador) 3% 97%, transparent 99%); padding: 1px 6px; border-radius: 3px; }
.guia-txt { font-size: 13.5px; color: var(--muted); margin: 0; }
.guia-ejemplos { display: grid; gap: 6px; }
.guia-ejemplos .ejemplo { display: flex; align-items: flex-start; gap: 8px; text-align: left; margin: 0; font-size: 13.5px; padding: 9px 12px; }
.guia-ejemplos .ejemplo svg.i { width: 15px; height: 15px; margin-top: 2px; color: var(--muted); }
.guia-ejemplos small { color: var(--muted); font-weight: 600; }

/* ---------- Cinta: lo importante pasa como noticias ---------- */
.cinta { flex: none; display: flex; align-items: stretch; height: 54px; border-radius: 16px; background: var(--cinta); color: #f4f1e9; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--cinta-borde); }
.cinta-etq { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--cinta-etq); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; position: relative; z-index: 1; }
.cinta-etq b { font-weight: 800; }
.cinta-etq small { font: 700 11px var(--font); letter-spacing: 0; background: #e2483a; color: #fff; border-radius: 999px; padding: 1px 7px; }
.cinta-etq.calma svg.i { color: #6ccb97; }
.cinta-etq::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 10px; background: linear-gradient(to right, var(--cinta-etq), transparent); }
.latido { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4a; box-shadow: 0 0 0 0 rgba(255, 90, 74, .6); animation: latir 1.6s infinite; }
@keyframes latir { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 74, 0); } }
.cinta-pista { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.cinta-mov { display: flex; gap: 10px; width: max-content; padding-left: 14px; animation: desfilar var(--dur, 40s) linear infinite; }
.cinta:hover .cinta-mov, .cinta:focus-within .cinta-mov { animation-play-state: paused; }
@keyframes desfilar { to { transform: translateX(-50%); } }
.cinta-calma { margin: 0; align-self: center; padding: 0 18px; font: italic 15px var(--voz); font-variation-settings: "SOFT" 100; color: #d9d4c8; }
.ci { flex: none; display: inline-flex; align-items: center; gap: 8px; max-width: 440px; height: 38px; padding: 0 12px 0 5px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #f4f1e9; font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s; }
.ci:hover, .ci:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.ci-tag { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; }
.k-vencida .ci-tag { background: #e2483a; color: #fff; }
.k-hoy .ci-tag { background: #ffd84d; color: #1b2333; }
.k-urgente .ci-tag { background: #f08a3c; color: #1b2333; }
.k-pronto .ci-tag { background: #8fb1ff; color: #0d1426; }
.ci-tit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ci-cuando { flex: none; font-size: 12.5px; color: #b9b5aa; font-weight: 600; white-space: nowrap; }
.k-vencida .ci-cuando { color: #ff9a8f; }
.ci-reu { flex: none; display: inline-flex; color: #c9b8ff; } .ci-reu svg.i { width: 15px; height: 15px; }
.ci .avatar.chico { background: rgba(255,255,255,.16); color: #f4f1e9; }
.ci .proy-ico { width: 24px; height: 24px; border-radius: 7px; }

/* ---------- Insignia de proyecto (color + ícono + nombre) ---------- */
.proy { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.proy-ico { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--pc); color: var(--pi, #fff); flex: none; }
.proy-ico svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.proy-n { font-weight: 650; color: var(--ink); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etiqueta.reu { display: inline-flex; align-items: center; gap: 4px; background: var(--reu-suave); color: var(--reu-ink); }
.etiqueta.reu svg.i, .etiqueta.prio-alta svg.i { width: 12px; height: 12px; }
.etiqueta.prio-alta { display: inline-flex; align-items: center; gap: 3px; }

/* Grupos de reunión */
.grupo.reunion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 0 0; box-shadow: var(--shadow); overflow: hidden; }
.grupo.reunion .grupo-items { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.g-reunion { padding: 0 14px 8px; flex-wrap: wrap; row-gap: 4px; }
.reu-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--reu); color: #fff; flex: none; }
.reu-ico svg.i { width: 16px; height: 16px; }
.g-reunion .nombre { flex: 1 1 auto; min-width: 0; }
.reu-fecha { font: 600 12.5px var(--font); color: var(--muted); }
.reu-barra { display: block; height: 4px; margin: 0 14px 12px; border-radius: 2px; background: var(--hundido); overflow: hidden; }
.reu-barra i { display: block; height: 100%; background: var(--verde); border-radius: 2px; transition: width .5s; }

/* Botón flotante para anotar desde la lista */
.fab { position: fixed; right: 18px; bottom: calc(18px + var(--safe-b)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; height: 52px; border-radius: 16px;
  background: var(--primary); color: var(--primary-ink); font-weight: 750; text-decoration: none; box-shadow: var(--shadow-lg); }
.fab:hover { background: var(--primary-hover); }
.vacio-acc { margin-top: 16px !important; }

/* ---------- Archivador: pestañas por proyecto y carpeta ---------- */
.archivador { padding: 16px 12px 96px; }
.pestanas { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 3px; padding: 0 14px; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { --pi: #fff; position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 7px; max-width: 220px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 11px 11px 0 0; color: var(--muted); font-weight: 700; font-size: 13.5px;
  background: color-mix(in srgb, var(--pc) 8%, var(--hundido)); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--pc) 55%, transparent), inset 0 -1px 0 var(--line-2);
  transition: height .2s cubic-bezier(.3, 1.3, .5, 1), background .2s, color .2s; }
.pestana:hover { height: 45px; color: var(--ink); }
.pestana[aria-pressed="true"] { height: 50px; color: var(--ink); background: color-mix(in srgb, var(--pc) 7%, var(--surface)); box-shadow: inset 0 4px 0 var(--pc); }
.pe-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--pc); color: var(--pi); flex: none; }
.pe-ico svg.i { width: 14px; height: 14px; stroke-width: 2.2; }
.pe-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pe-c { font: 750 11.5px/1 var(--font); font-variant-numeric: tabular-nums; padding: 3px 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pe-alerta { position: absolute; top: 7px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 2px var(--surface); }
.pestana-config { flex: none; align-self: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--faint); display: grid; place-items: center; }
.pestana-config:hover { color: var(--ink); border-style: solid; }
.pestana-config svg.i { width: 17px; height: 17px; }

.carpeta { --pc: var(--ink); position: relative; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow), 0 18px 40px -28px rgba(27, 35, 51, .35);
  background: linear-gradient(color-mix(in srgb, var(--pc) 7%, var(--surface)), var(--surface) 160px); }
.carpeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px 20px 8px; }
.cc-nombre { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--pc); color: var(--pi, #fff); display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -10px var(--pc); }
.cc-ico svg { width: 24px; height: 24px; }
.cc-nombre h2 { margin: 0; font: 600 24px/1.1 var(--voz); font-variation-settings: "SOFT" 100; letter-spacing: -.015em; overflow-wrap: anywhere; }
.cc-nombre p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.cc-nombre p b.rojo { color: var(--rojo); }
.cc-avance { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 12px; width: 220px; font-size: 12.5px; color: var(--muted); }
.cc-avance b { font: 600 20px var(--voz); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-avance small { justify-self: end; font-size: 12px; }
.cc-avance i { grid-column: 1 / -1; grid-row: 2; display: block; height: 6px; border-radius: 3px; background: var(--hundido); overflow: hidden; }
.cc-avance em { display: block; height: 100%; border-radius: 3px; background: var(--pc); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.carpeta .lista { padding: 4px 6px 10px; }
.carpeta .grupo { margin-top: 6px; }
.carpeta .grupo-cab { padding: 14px 12px 6px; font-size: 16px; }
.carpeta .grupo-cab::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.carpeta .grupo-items { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.carpeta .tarea { border-radius: 12px; border-top: 0; }
.carpeta .tarea + .tarea::after { content: ""; position: absolute; left: 48px; right: 12px; top: 0; height: 1px; background: var(--line); }
.carpeta .tarea:hover { background: color-mix(in srgb, var(--pc) 5%, var(--surface-2)); }
.carpeta .tarea:hover::after, .carpeta .tarea:hover + .tarea::after { opacity: 0; }
.carpeta .grupo.reunion { margin: 10px 6px 0; background: var(--surface); }
.carpeta .vacio { padding-bottom: 36px; }

/* Columna de fecha tipo agenda */
.t-fecha { flex: none; align-self: stretch; width: 64px; margin: -3px -4px -3px 6px; padding: 2px 0 0 10px; border-left: 1px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--cv, var(--ink)); text-align: center; }
.t-fecha b { font: 600 23px/1 var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.t-fecha span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; opacity: .85; }
.t-fecha small { font-size: 10.5px; font-weight: 650; margin-top: 5px; white-space: nowrap; color: var(--cv, var(--muted)); opacity: .9; }
.c-gris .t-fecha, .t-fecha.sin { color: var(--faint); }
.t-fecha.sin span { font: italic 500 12px/1.15 var(--voz); letter-spacing: 0; text-transform: none; margin-top: 4px; }
.t-fecha.hecho { justify-content: flex-start; color: var(--verde); }
.mini-sello { display: inline-block; margin-top: 2px !important; padding: 3px 5px; border: 1.5px solid currentColor; border-radius: 4px; transform: rotate(-7deg); font-size: 9.5px !important; letter-spacing: .14em !important; opacity: 1 !important; }
.t-fecha.hecho small { color: var(--muted); }

/* Sello «HECHO» que cae al cerrar una tarea */
.sello { position: absolute; z-index: 3; right: 92px; top: 50%; display: grid; justify-items: center; padding: 5px 14px 4px; border-radius: 9px; pointer-events: none;
  color: var(--verde); border: 2.5px solid currentColor; box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3.5px currentColor; background: color-mix(in srgb, var(--verde) 7%, transparent);
  -webkit-mask-image: repeating-linear-gradient(-35deg, #000 0 3px, rgba(0, 0, 0, .78) 3px 4px); mask-image: repeating-linear-gradient(-35deg, #000 0 3px, rgba(0, 0, 0, .78) 3px 4px);
  transform: translateY(-50%) rotate(-9deg); animation: estampar .34s cubic-bezier(.2, .9, .3, 1.2) .12s both; }
.sello b { font: 850 19px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; }
.sello small { font: 700 10px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
@keyframes estampar { from { opacity: 0; transform: translateY(-50%) rotate(-16deg) scale(2.1); } 65% { opacity: 1; transform: translateY(-50%) rotate(-8deg) scale(.94); } to { opacity: 1; transform: translateY(-50%) rotate(-9deg) scale(1); } }
.tarea.tachando { overflow: visible; }

@media (min-width: 960px) {
  .principal { max-width: 920px; }
  .archivador { padding: 12px 0 64px; }
}
@media (max-width: 600px) {
  .archivador { padding: 12px 6px 96px; }
  .pestanas { padding: 0 8px; }
  .pestana { height: 40px; font-size: 13px; max-width: 170px; }
  .pestana:hover { height: 40px; }
  .pestana[aria-pressed="true"] { height: 46px; }
  .carpeta { border-radius: 16px; }
  .carpeta-cab { padding: 14px 14px 4px; }
  .cc-ico { width: 38px; height: 38px; } .cc-nombre h2 { font-size: 21px; }
  .cc-avance { width: 100%; }
  .carpeta .lista { padding: 2px 2px 8px; }
  .t-fecha { width: 50px; padding-left: 6px; }
  .t-fecha b { font-size: 20px; }
  .sello { right: 62px; }
  .sello b { font-size: 16px; }
}

/* ---------- Identidad: área, color e ícono ---------- */
.identidad .intro { color: var(--muted); margin: 0 0 6px; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.area-op { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 13.5px; line-height: 1.25; }
.area-op svg.i { width: 24px; height: 24px; color: var(--primary); flex: none; }
.area-op[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.area-op:disabled { opacity: .6; cursor: default; }
.proy-lista { display: grid; gap: 6px; margin-bottom: 12px; }
.proy-fila { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.proy-fila[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.proy-fila summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.proy-fila summary::-webkit-details-marker { display: none; }
.proy-fila summary .proy-ico { width: 30px; height: 30px; border-radius: 9px; } .proy-fila summary .proy-ico svg.i { width: 17px; height: 17px; }
.proy-fila summary .proy-n { font-size: 15px; }
.proy-fila .espacio { flex: 1; }
.cambiar { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.cambiar svg.i { width: 15px; height: 15px; }
.proy-editor { padding: 2px 12px 14px; display: grid; gap: 12px; }
.colores { display: flex; gap: 8px; flex-wrap: wrap; }
.color-op { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--pc); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.color-op[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pc); }
.iconos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.icono-op { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.icono-op:hover { color: var(--ink); border-color: var(--line-2); }
.icono-op[aria-pressed="true"] { background: var(--ink); color: var(--papel); border-color: var(--ink); }
.nuevo-proy { margin-bottom: 4px; }
.identidad-btn { width: 100%; justify-content: flex-start; text-align: left; border-radius: 14px; min-height: 58px; margin: -4px 0 8px; gap: 12px; }
.identidad-btn > svg.i:first-child { width: 24px; height: 24px; color: var(--primary); }
.identidad-btn span { flex: 1; min-width: 0; display: grid; }
.identidad-btn small { font-weight: 550; color: var(--muted); font-size: 12.5px; white-space: normal; }
.nav-config { color: var(--faint) !important; font-size: 13.5px; }

/* ---------- Hoja de edición (dialog) ---------- */
dialog#hoja { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
dialog#hoja[open] { animation: subir .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(16, 20, 27, .42); backdrop-filter: blur(2px); }
@keyframes subir { from { transform: translateY(48px); opacity: 0; } }
.hoja-cab { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 22px; border-bottom: 1px solid var(--line); }
.hoja-cab h2 { flex: 1; font: 600 21px var(--voz); font-variation-settings: "SOFT" 100; margin: 0; }
.hoja-cuerpo { padding: 18px 22px; overflow-y: auto; flex: 1; }
.hoja-pie { display: flex; gap: 8px; align-items: center; padding: 12px 22px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.hoja-pie .espacio { flex: 1; }
.agarre { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 9px auto 0; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.posponer { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 18px; align-items: center; }
.titulo-edit { font-size: 18px; font-weight: 650; min-height: 64px; }
.info-tarea { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.lista-simple { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lista-simple li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.lista-simple li:first-child { border-top: 0; }
.lista-simple small { color: var(--muted); display: block; font-size: 12px; }
.codigo { font: 700 24px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; margin-top: 4px; }
.caja-invitar { background: var(--resaltador-suave); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.caja-invitar .enlace { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; margin: 6px 0 10px; }
.seccion-titulo { font: 600 18px var(--voz); font-variation-settings: "SOFT" 100; margin: 22px 0 10px; }

/* ---------- Avisos ---------- */
#toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(170px + var(--safe-b)); transform: translateY(20px); opacity: 0; pointer-events: none; z-index: 100;
  background: #1b2333; color: #f4f1e9; padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 550; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
#toast.visible { opacity: 1; transform: none; pointer-events: auto; }
#toast button { background: rgba(255,255,255,.1); border: 0; color: #ffe17a; font-weight: 750; padding: 6px 12px; border-radius: 999px; }
#toast.error { background: #8f2a20; }
.banner { background: var(--resaltador-suave); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px; font-size: 13.5px; text-align: center; }
.banner button { margin-left: 8px; }

/* ---------- Pantallas medianas y computador ---------- */
@media (min-width: 600px) {
  .enviar .txt { display: inline; }
  .saludo h1 { font-size: 33px; }
  .anillo { width: 84px; height: 84px; }
}
@media (min-width: 960px) {
  .cuerpo { padding: 0 20px; gap: 32px; }
  .lateral { display: block; width: 240px; flex: none; padding: 28px 0; position: sticky; top: 69px; align-self: flex-start; max-height: calc(100dvh - 69px); overflow-y: auto; }
  .lateral h3 { font: 600 15px var(--voz); font-variation-settings: "SOFT" 100; color: var(--muted); margin: 22px 10px 6px; }
  .lateral h3:first-child { margin-top: 0; }
  .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px 12px; border-radius: 12px; text-align: left; color: var(--muted); font-weight: 550; }
  .nav-item:hover { background: var(--hundido); color: var(--ink); }
  .nav-item[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
  .nav-item .n { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .nav-item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-pista { color: var(--faint); font-size: 13px; padding: 4px 12px; margin: 0; font-style: italic; font-family: var(--voz); }
  .filtros { display: none; }
  .saludo { padding: 34px 6px 4px; }
  .lista { padding: 4px 0 28px; }
  .principal { max-width: 860px; }
  dialog#hoja { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: 480px; border-radius: 0; }
  dialog#hoja[open] { animation: lado .26s cubic-bezier(.2,.8,.2,1); }
  @keyframes lado { from { transform: translateX(48px); opacity: 0; } }
  .agarre { display: none; }
  .tarea { padding: 13px 18px 13px 12px; }
}


/* Libreta en tableta y celular: una sola columna, sin necesidad de hacer scroll */
@media (max-width: 959px) {
  .libreta-cuerpo { display: flex; flex-direction: column; }
  .vista-previa { order: -1; flex: none; max-height: 36%; border-left: 0; border-bottom: 1px dashed var(--line-2); padding: 10px 14px 4px; }
  .vista-previa.vacia { display: none; }
  .vp-item { padding: 8px 10px; }
  .escritura { flex: 1; }
}
@media (max-width: 600px) {
  .inicio { padding: 8px 8px calc(8px + var(--safe-b)); gap: 8px; }
  .espiral { height: 20px; background-size: 24px 20px, auto; }
  .libreta-cab { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 8px 50px; }
  .lc-saludo h1 { font-size: 23px; }
  .lc-saludo .fecha { font-size: 13.5px; margin-top: 1px; }
  .lc-pulso { gap: 6px; }
  .pulso { min-width: 0; flex: 1; padding: 5px 9px; border-radius: 12px; }
  .pulso b { font-size: 18px; } .pulso span { font-size: 10.5px; }
  .lc-pulso .anillo { width: 50px; height: 50px; }
  .lc-pulso .anillo b { font-size: 13px; }
  .escritura::before { left: 36px; }
  .modo, .hoja-papel, .atajos, .sugerencias { padding-left: 50px; }
  .modo { padding-top: 8px; padding-right: 12px; }
  .modo-seg button { padding: 6px 11px; }
  .hoja-papel { padding-right: 12px; }
  .hoja-papel textarea { font-size: 17.5px; }
  .hoja-papel textarea::placeholder { font-size: 17px; }
  .atajos { padding: 8px 10px 10px 50px; }
  .atajos button:not(.enviar) { padding: 5px 10px; }
  .enviar { height: 44px; padding: 0 14px; }
  .cinta { height: 50px; border-radius: 14px; }
  .cinta-etq { padding: 0 12px; }
  .cinta-etq b { display: none; }
  .ci { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinta-pista { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .cinta-mov [aria-hidden="true"] { display: none; }
}

/* ---------- Paneles (Dashboard y Reporte) ---------- */
.panel-contenedor { width: 100%; max-width: 1280px; margin: 0 auto; }
.panel { padding: 22px 16px 48px; }
.panel-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-cab h1 { font: 600 30px/1.1 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 72; margin: 0; letter-spacing: -.02em; }
.panel-cab p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel-cab .acciones { display: flex; gap: 8px; }
.barra-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.barra-filtros label { display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; }
.barra-filtros label > span { font-size: 12px; font-weight: 650; color: var(--muted); }
.barra-filtros select, .barra-filtros input { min-height: 40px; padding: 6px 10px; }
.rapidos { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; align-content: start; box-shadow: var(--shadow); }
.kpi:last-child { grid-column: 1 / -1; }
.kpi-etq { font-size: 13px; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.kpi-etq svg.i { width: 15px; height: 15px; color: var(--rojo); }
.kpi-val { font: 600 38px/1.1 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 72; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi-sub { font-size: 12.5px; color: var(--faint); }
.kpi.alerta { border-color: color-mix(in srgb, var(--rojo) 55%, transparent); background: linear-gradient(var(--rojo-soft), var(--surface) 75%); }
.kpi.alerta .kpi-val { color: var(--rojo); }
.medidor { display: block; height: 6px; border-radius: 3px; background: var(--hundido); margin-top: 10px; overflow: hidden; }
.medidor i { display: block; height: 100%; border-radius: 3px; background: var(--g-hech); }
.medidor.medio i { background: var(--amarillo); } .medidor.malo i { background: var(--g-venc); }

.graficas { display: grid; gap: 12px; }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.tarjeta h2 { font: 600 19px var(--voz); font-variation-settings: "SOFT" 100; margin: 0; }
.tarjeta-sub { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.s-venc { background: var(--g-venc); } .s-abie { background: var(--g-abie); } .s-hech { background: var(--g-hech); } .s-unica { background: var(--g-unica); }
.sin-datos { color: var(--faint); font-size: 14.5px; padding: 24px 0; text-align: center; margin: 0; font-family: var(--voz); font-style: italic; }
.hbarras { display: grid; gap: 8px; }
.hb-fila { display: grid; grid-template-columns: minmax(80px, 36%) 1fr; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 8px; }
.hb-fila:hover { background: var(--surface-2); }
.hb-etq { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-pista { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-barra { display: flex; gap: 2px; height: 18px; min-width: 0; border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-barra i { display: block; min-width: 3px; }
.hb-val { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.columnas { display: flex; align-items: stretch; gap: 4px; height: 210px; padding-top: 20px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; border-radius: 8px; }
.col:hover { background: var(--surface-2); }
.col-area { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.col-barra { width: 60%; max-width: 24px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; position: relative; }
.col-barra i { display: block; min-height: 3px; }
.col-barra i:last-child { border-radius: 4px 4px 0 0; }
.col-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 12px; padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.col-etq { font-size: 11.5px; color: var(--muted); padding: 6px 0 0; white-space: nowrap; }
.col.actual .col-etq { color: var(--ink); font-weight: 750; }
#tip { position: fixed; z-index: 200; pointer-events: none; background: #1b2333; color: #f4f1e9; font-size: 12.5px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 260px; }

.rep-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rep-resumen > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.rep-resumen span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.rep-resumen b { font: 600 24px var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.rep-resumen .alerta b { color: var(--rojo); }
.tabla-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.tabla th { text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; padding: 0; }
.tabla th button { border: 0; background: transparent; font-weight: 750; font-size: 12.5px; color: var(--muted); padding: 11px 12px; width: 100%; text-align: left; white-space: nowrap; }
.tabla th:last-child { padding: 11px 12px; font-size: 12.5px; color: var(--muted); }
.tabla td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tabla tbody tr { cursor: pointer; }
.tabla tbody tr:hover td { background: var(--surface-2); }
.tabla .col-tarea { min-width: 260px; }
.tabla .col-tarea .t { font-weight: 650; }
.tabla .col-tarea small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: pre-line; }
.tabla .nowrap { white-space: nowrap; }
.tabla .centro-txt { text-align: center; }
.tabla .no { color: var(--rojo); }
.prio-alta-txt { color: var(--rojo); font-weight: 650; }
.fila-vencida td:first-child { box-shadow: inset 3px 0 var(--rojo); }
.fila-hecha td { color: var(--muted); }
.pastilla { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.p-vencida { background: var(--rojo-soft); color: var(--rojo); }
.p-pendiente { background: var(--hundido); color: var(--ink); }
.p-en_curso { background: var(--primary-soft); color: var(--primary); }
.p-hecha { background: var(--verde-soft); color: var(--verde); }
.pie-reporte { font-size: 12.5px; color: var(--faint); margin: 10px 2px 0; }
.solo-imprimir { display: none; }
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(5, 1fr); }
  .kpi:last-child { grid-column: auto; }
  .graficas { grid-template-columns: 1fr 1fr; }
  .rep-resumen { grid-template-columns: repeat(6, 1fr); }
  .rapidos { flex-basis: auto; }
}
@media (min-width: 960px) { .panel { padding: 32px 20px 48px; } }

/* ---------- Tablero ---------- */
.tablero { display: grid; gap: 16px; }
.tb-cab { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tb-titulo { display: flex; align-items: center; gap: 12px; }
.tb-area { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--papel); display: grid; place-items: center; flex: none; }
.tb-area svg { width: 24px; height: 24px; }
.tb-titulo h1 { font: 600 30px/1.05 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 72; margin: 0; letter-spacing: -.02em; }
.tb-titulo p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.tb-controles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.periodos { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.periodos button { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.periodos button:first-letter { text-transform: uppercase; }
.periodos button:hover { color: var(--ink); }
.periodos button[aria-pressed="true"] { background: var(--ink); color: var(--papel); }
.tb-persona { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 4px 0 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.tb-persona svg.i { width: 16px; height: 16px; flex: none; }
.tb-persona select { border: 0; background: transparent; min-height: 36px; padding: 0 6px; font-weight: 650; color: var(--ink); max-width: 190px; }

.tb-fila { display: grid; gap: 16px; }
.t-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-cab h2 { display: flex; align-items: center; gap: 8px; }
.t-cab h2 svg.i { width: 18px; height: 18px; color: var(--muted); }
.t-cab .leyenda { margin: 0 0 0 auto; }
.t-n { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--rojo-soft); color: var(--rojo); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.t-link { margin-left: auto; border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 9px; }
.t-link:hover { background: var(--surface-2); }
.t-link svg.i { width: 15px; height: 15px; }
.t-link.mas { margin: 8px 0 0; }
.tb-h2 { font: 600 21px var(--voz); font-variation-settings: "SOFT" 100; margin: 0; }

/* Pulso: tarjeta oscura con el medidor */
.pulso-card { --tono: var(--g-hech); position: relative; overflow: hidden; border-radius: 22px; padding: 20px; color: #f4f1e9; background: var(--cinta); border: 1px solid var(--cinta-borde);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 6px 24px; align-items: center; box-shadow: var(--shadow-lg); }
.pulso-card::before { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tono) 38%, transparent), transparent 70%); pointer-events: none; }
.pulso-card.tono-medio { --tono: #e6b93a; } .pulso-card.tono-malo { --tono: #ef6f60; } .pulso-card.tono-nulo { --tono: #8b8f99; } .pulso-card.tono-bueno { --tono: #4fc488; }
.pk-medidor { position: relative; width: 200px; }
.medidor-arco { display: block; width: 100%; overflow: visible; }
.ma-fondo, .ma-valor { fill: none; stroke-width: 14; stroke-linecap: round; }
.ma-fondo { stroke: rgba(255, 255, 255, .1); }
.ma-valor { stroke: var(--tono); transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
.ma-marca { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linecap: round; }
.pk-valor { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; display: grid; line-height: 1; }
.pk-valor b { font: 600 46px/1 var(--voz); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pk-valor small { font-size: 22px; margin-left: 2px; color: rgba(244, 241, 233, .7); }
.pk-valor span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 241, 233, .65); font-weight: 700; margin-top: 4px; }
.pk-txt { position: relative; min-width: 0; }
.pk-etq { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--tono); }
.pk-frase { margin: 4px 0 0; font: 600 25px/1.15 var(--voz); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
.pk-det { margin: 6px 0 0; font-size: 13.5px; color: rgba(244, 241, 233, .7); }
.pk-tiles { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pk-tile { text-align: left; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .05); color: inherit; border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; transition: background .2s, transform .2s; }
.pk-tile:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.pk-tile b { font: 600 28px/1.05 var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.pk-tile span { font-size: 12px; color: rgba(244, 241, 233, .72); font-weight: 650; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tile svg.i { width: 13px; height: 13px; flex: none; }
.pk-tile.rojo { background: rgba(239, 111, 96, .18); border-color: rgba(239, 111, 96, .45); } .pk-tile.rojo b { color: #ff9a8c; }
.pk-tile.ambar { background: rgba(230, 185, 58, .14); border-color: rgba(230, 185, 58, .4); } .pk-tile.ambar b { color: #f3cf62; }
.pk-tile.verde b { color: #7fdcab; }

/* En la mira */
.foco-lista, .reu-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foco-lista button, .reu-lista button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; color: inherit; padding: 7px 8px; border-radius: 11px; }
.foco-lista button:hover, .reu-lista button:hover { background: var(--surface-2); }
.fl-tipo { flex: none; width: 64px; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; border-radius: 7px; }
.f-venc { background: var(--rojo-soft); color: var(--rojo); } .f-hoy { background: var(--amarillo-soft); color: var(--amarillo-ink); }
.f-alta { background: var(--naranja-soft); color: var(--naranja); } .f-pronto { background: var(--hundido); color: var(--muted); }
.fl-txt, .rl-txt { min-width: 0; flex: 1; display: grid; }
.fl-txt b, .rl-txt b { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-txt small, .rl-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.fl-txt small svg.i { width: 12px; height: 12px; flex: none; }
.rl-txt em { color: var(--rojo); font-style: normal; font-weight: 700; }

/* Tarjetas de proyecto */
.tb-seccion { display: grid; gap: 12px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pc { --pi: #fff; position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 18px; padding: 14px 14px 12px; display: grid; gap: 10px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.pc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--pc); }
.pc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 55%, var(--line)); box-shadow: var(--shadow-lg); }
.pc-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--pc); color: var(--pi); display: grid; place-items: center; flex: none; }
.pc-ico svg { width: 20px; height: 20px; }
.pc-nom { font-weight: 750; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ir { width: 16px; height: 16px; color: var(--faint); transition: transform .2s, color .2s; flex: none; }
.pc:hover .pc-ir { transform: translateX(3px); color: var(--ink); }
.pc-cifras { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-cifras b { font: 600 32px/1 var(--voz); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; }
.pc-cifras > span { color: var(--muted); font-size: 13px; font-weight: 600; }
.pc-cifras em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 750; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.pc-cifras em svg.i { width: 12px; height: 12px; }
.pc-venc { background: var(--rojo-soft); color: var(--rojo); } .pc-ok { background: var(--verde-soft); color: var(--verde); }
.pc-barra { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--hundido); }
.pc-barra i { display: block; min-width: 3px; }
.pc-pie { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.pc-pie > svg.i { width: 13px; height: 13px; flex: none; }
.pc-prox { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-reu { display: inline-flex; align-items: center; gap: 3px; font-weight: 750; color: var(--reu); flex: none; }
.pc-reu svg.i { width: 13px; height: 13px; }

/* Equipo */
.eq-lista { display: grid; gap: 4px; }
.eq-fila { display: grid; grid-template-columns: 30px minmax(70px, 32%) 1fr; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; text-align: left; padding: 5px 6px; border-radius: 10px; }
.eq-fila:hover { background: var(--surface-2); }
.eq-fila .avatar { width: 30px; height: 30px; font-size: 11px; background: var(--primary-soft); color: var(--primary); }
.eq-fila .avatar.sin { background: var(--hundido); color: var(--muted); }
.eq-nom { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-pista { display: flex; align-items: center; gap: 8px; min-width: 0; }
.t-equipo, .t-reu { display: flex; flex-direction: column; }
.eq-nota { margin: auto 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.t-equipo .eq-lista { margin-bottom: 16px; }
.eq-nota svg.i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--verde); }
.eq-nota b { color: var(--ink); }
.eq-nota.alerta { background: var(--rojo-soft); border-color: color-mix(in srgb, var(--rojo) 35%, transparent); }
.eq-nota.alerta svg.i { color: var(--rojo); }
.t-cab h2 { min-width: 0; }
@media (max-width: 600px) { .t-reu .t-cab { flex-wrap: nowrap; } .t-reu .t-cab h2 { font-size: 17px; white-space: nowrap; } .t-reu .t-link { flex: none; } }

/* Reuniones */
.origen { margin-bottom: 14px; }
.origen-barra { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.origen-barra i { display: block; min-width: 4px; }
.o-reu { background: var(--reu); } .o-sue { background: var(--g-abie); } .o-nada { background: var(--hundido); }
.origen-etq { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.origen-etq span { display: inline-flex; align-items: center; gap: 6px; }
.origen-etq i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.origen-etq b { color: var(--ink); }
.rl-anillo { --v: 0; width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--reu) calc(var(--v) * 1%), var(--hundido) 0); }
.rl-anillo > span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-anillo.lleno { background: var(--verde); } .rl-anillo.lleno svg.i { width: 15px; height: 15px; color: var(--verde); }
.reu-lista .proy { flex: none; }

@media (min-width: 960px) {
  .tb-fila.uno { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .tb-fila.dos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulso-card { padding: 24px 26px; }
  .pk-medidor { width: 240px; }
}
@media (min-width: 720px) and (max-width: 959px) { .tb-fila.dos { grid-template-columns: 1fr 1fr; } .t-semanas { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .tb-titulo h1 { font-size: 26px; }
  .tb-controles { width: 100%; }
  .periodos { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .periodos button { flex: 1; padding: 0 8px; font-size: 12.5px; }
  .tb-persona { flex: 1; }
  .tb-persona select { max-width: none; flex: 1; }
  .pulso-card { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; padding: 18px 14px 14px; }
  .pk-medidor { width: 180px; }
  .pk-tiles { grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
  .pc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc { padding: 12px 10px 10px; gap: 8px; border-radius: 15px; }
  .pc-ico { width: 30px; height: 30px; } .pc-ico svg { width: 17px; height: 17px; }
  .pc-nom { font-size: 13.5px; } .pc-ir { display: none; }
  .pc-cifras b { font-size: 26px; } .pc-cifras em { margin-left: 0; }
  .pc-pie { font-size: 11.5px; }
  .t-cab .leyenda { order: 3; flex-basis: 100%; margin: 0; }
}
@media print { .tablero .periodos, .tb-persona, .t-link { display: none !important; } .pulso-card { color: #000; background: #fff; border: 1px solid #999; box-shadow: none; } }

/* ---------- Impresión / PDF ---------- */
@page { size: A4 landscape; margin: 12mm; }
@media print {
  :root { --papel: #fff; --surface: #fff; --surface-2: #f4f6f9; --hundido: #eef0f3; --ink: #111827; --muted: #4b5563; --faint: #6b7280; --line: #d9dee6; --line-2: #c9d0da; --shadow: none;
    --rojo: #b42318; --rojo-soft: #fde7e4; --verde: #1f6b42; --verde-soft: #e2f1e7; --primary: #23408e; --primary-soft: #e5edf8; color-scheme: light; }
  html, body { background: #fff !important; font-size: 11px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cabecera, .inicio, .fab, .lateral, .filtros, #toast, #tip, .no-imprimir, #vista-tareas, dialog { display: none !important; }
  .panel { padding: 0; }
  .solo-imprimir { display: block; }
  .encabezado-impresion { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #23408e; padding-bottom: 8px; margin-bottom: 12px; }
  .encabezado-impresion > div { display: flex; align-items: center; gap: 10px; }
  .encabezado-impresion img { border-radius: 8px; }
  .encabezado-impresion h1 { font: 600 20px var(--voz); margin: 0; color: #23408e; }
  .encabezado-impresion p { margin: 0; font-size: 10.5px; color: #4b5563; text-align: right; }
  .encabezado-impresion > div p { text-align: left; font-size: 12px; font-weight: 650; color: #111827; }
  .rep-resumen { grid-template-columns: repeat(6, 1fr); }
  .rep-resumen > div { padding: 6px 10px; }
  .rep-resumen b { font-size: 17px; }
  .tabla-scroll { overflow: visible; border: 1px solid #c9d0da; border-radius: 0; }
  .tabla { min-width: 0; font-size: 10px; }
  .tabla th { position: static; background: #23408e !important; }
  .tabla th button, .tabla th:last-child { color: #fff; padding: 6px 8px; font-size: 10px; }
  .tabla td { padding: 5px 8px; }
  .pastilla { font-size: 9.5px; padding: 1px 6px; }
  .tabla thead { display: table-header-group; }
  .tabla tr { break-inside: avoid; }
  .tabla tbody tr:nth-child(even) td { background: #f8f9fb; }
  .fila-vencida td { background: #fdf1ef !important; }
}
