/* Portal Michael · estilos v2
 * Paneles de vidrio sobre una foto de fondo que cada persona elige. El acento (--accent), el oscurecido del fondo
 * (--overlay), la opacidad del vidrio (--glass-a) y el desenfoque (--blur) los cambia el panel «Personalizar».
 * Sora para números y títulos, Manrope para leer. */
:root {
  --accent: #8B5CF6;
  --overlay: .45; --glass-a: .62; --blur: 18px;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 62%, white);
  --c-ok: #34D399; --c-bad: #FB7185; --c-mid: #FBBF24; --c-info: #60A5FA;
  --k-solicitud: #A78BFA; --k-slack: #E879F9; --k-monday: #FB7185; --k-reunion: #60A5FA; --k-avance: #34D399;
  --k-entrega: #22D3EE; --k-lanzamiento: #FBBF24; --k-captura: #FB923C; --k-decision: #C4B5FD; --k-nota: #94A3B8;
  --r-xs: 8px; --r-s: 12px; --r: 20px; --r-l: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Sora', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 78px;
  /* tema oscuro (por defecto) */
  --bg-base: #07061A;
  --glass: rgba(16, 14, 38, var(--glass-a));
  --glass-2: rgba(255, 255, 255, .055);
  --glass-3: rgba(255, 255, 255, .09);
  --solid: #15122F;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --track: rgba(255, 255, 255, .1);
  --text: #F4F2FF;
  --text-2: rgba(236, 233, 255, .78);
  --muted: rgba(218, 213, 255, .56);
  --shade-a: rgba(6, 5, 22, calc(var(--overlay) + .15));
  --shade-b: rgba(6, 5, 22, var(--overlay));
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
  /* nombres viejos que usan algunas vistas */
  --surface: var(--glass); --surface-2: var(--glass-2); --paper: var(--glass-2); --brand: var(--accent); --brand-deep: var(--accent-text);
  --brand-wash: var(--accent-soft); --ink: #0D0B24; --sun: #FBBF24; --sun-wash: rgba(251, 191, 36, .14);
  --ok: var(--c-ok); --ok-wash: rgba(52, 211, 153, .14); --bad: var(--c-bad); --bad-wash: rgba(251, 113, 133, .14); --mid: var(--c-mid); --mid-wash: rgba(251, 191, 36, .14);
}
:root[data-theme="light"] {
  --bg-base: #EEF0F7;
  --glass: rgba(255, 255, 255, var(--glass-a));
  --glass-2: rgba(255, 255, 255, .55);
  --glass-3: rgba(255, 255, 255, .8);
  --solid: #FFFFFF;
  --line: rgba(20, 18, 50, .09);
  --line-2: rgba(20, 18, 50, .16);
  --track: rgba(20, 18, 50, .08);
  --text: #15132E;
  --text-2: rgba(21, 19, 46, .76);
  --muted: rgba(21, 19, 46, .52);
  --accent-text: color-mix(in srgb, var(--accent) 80%, black);
  --shade-a: rgba(240, 242, 250, calc(var(--overlay) + .1));
  --shade-b: rgba(240, 242, 250, var(--overlay));
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -28px rgba(20, 18, 50, .45);
  --shadow-lg: 0 30px 70px -30px rgba(20, 18, 50, .5);
  --ink: #15132E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg-base); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 .8em; overflow-wrap: anywhere; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .86em; background: var(--glass-3); padding: 1px 6px; border-radius: 6px; }
pre { background: rgba(0, 0, 0, .35); color: #E7E4FF; padding: 14px 16px; border-radius: var(--r-s); overflow-x: auto; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); }
pre code { background: none; padding: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.missing { color: var(--c-mid); font-weight: 600; }
.pad { padding: 8px 0; margin: 0; }
.pad-s { margin: 12px 0 0; }
.fine { font-size: 12.5px; margin: 8px 0 0; }
.grow { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.accent-text { color: var(--accent-text); }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-base); }
.bg-img { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.bg-img.on { opacity: 1; animation: drift 60s ease-in-out infinite alternate; }
.bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--shade-a), var(--shade-b) 40%, var(--shade-a)), radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* ---------- vidrio ---------- */
.w, .glass-card, .panel {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3); backdrop-filter: blur(var(--blur)) saturate(1.3);
  box-shadow: var(--shadow); min-width: 0;
}
.w { padding: 18px 20px; }
.w::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%); }
.w:hover::before { opacity: 1; }
.panel { padding: 18px 20px; margin-bottom: 16px; }
.glass-menu { background: var(--solid); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow-lg); }
.w-head, .panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; min-width: 0; }
.w-head h2, .panel-head h2, .panel-head h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.w-head h2 .ic { width: 17px; height: 17px; color: var(--accent-text); }
.w-head > :last-child:not(:first-child), .panel-head > :last-child:not(:first-child) { margin-left: auto; }
.w-head .muted { font-size: 12.5px; }
.w-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 8px; color: var(--muted); text-align: center; list-style: none; }
.w-empty .ic { width: 28px; height: 28px; opacity: .6; }
.w-empty p { margin: 0; }

/* entrada animada */
.page:not(.no-enter) .w, .page:not(.no-enter) .panel, .page:not(.no-enter) .page-head { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
:root[data-motion="off"] *, :root[data-motion="off"] *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); box-shadow: 0 12px 34px -10px var(--accent); }
.btn-ghost { background: var(--glass-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--glass-3); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--c-bad) 45%, transparent); color: var(--c-bad); }
.btn-danger:hover { background: var(--bad-wash); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass-2); color: var(--text-2); text-decoration: none; flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { color: var(--text); background: var(--glass-3); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--accent-soft); color: var(--accent-text); }
.icon-btn.xs { width: 28px; height: 28px; border-radius: 9px; }
.icon-btn.xs .ic { width: 15px; height: 15px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.link-btn .ic { width: 15px; height: 15px; }
.link-btn:hover { text-decoration: underline; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; flex-wrap: wrap; }
.field > span small { font-weight: 500; color: var(--muted); }
.input { width: 100%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; min-width: 0; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--glass-3); }
.input::placeholder { color: var(--muted); }
select.input option { background: var(--solid); color: var(--text); }
.input-sm { padding: 7px 10px; font-size: 13px; width: auto; }
.input-lg { padding: 14px 16px; font-size: 16.5px; }
textarea.input { resize: vertical; line-height: 1.5; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 0; height: 0; opacity: 0; position: absolute; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-err { color: var(--c-bad); font-size: 14px; font-weight: 700; min-height: 20px; margin: 0 0 8px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.form-sec { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--accent-text); font-weight: 700; margin: 10px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-sec small { color: var(--muted); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- chips y piezas ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--glass-2); color: var(--text-2); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip-brand { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip-live { background: var(--ok-wash); color: var(--c-ok); border-color: transparent; }
.chip-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
.st { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--glass-2); color: var(--text-2); white-space: nowrap; }
.st-activo, .st-en_curso { background: var(--accent-soft); color: var(--accent-text); }
.st-lanzado, .st-terminado, .st-hecha { background: var(--ok-wash); color: var(--c-ok); }
.st-mantenimiento { background: rgba(34, 211, 238, .15); color: #67E8F9; }
:root[data-theme="light"] .st-mantenimiento { color: #0E7490; }
.st-pausado, .st-idea { background: var(--mid-wash); color: var(--c-mid); }
.st-bloqueada { background: var(--bad-wash); color: var(--c-bad); }
.prio { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.prio-alta { background: var(--bad-wash); color: var(--c-bad); }
.prio-baja { background: var(--glass-2); color: var(--muted); }
.pill { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 8px; border: 1px solid currentColor; white-space: nowrap; }
.pill-alta { color: var(--c-bad); } .pill-media { color: var(--c-info); } .pill-baja { color: var(--muted); }
.owner, .due { font-size: 12.5px; color: var(--muted); }
.due.late, .task.late .due { color: var(--c-bad); font-weight: 700; }
.kind { --k: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--k); white-space: nowrap; }
.kind .ic { width: 14px; height: 14px; }
.ptag { --pc: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ptag::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--pc); flex: none; }
.ptag:hover { color: var(--text); }
.ptag-none { color: var(--muted); }
.ptag-none::before { background: var(--line-2); }
.src { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.avatar { --h: 250; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover; background: hsl(var(--h) 55% 46%); color: #fff; font-weight: 800; font-size: 13px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; }
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--text); }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 14px; }
.glass-card.empty { border-style: solid; }
.boot { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--glass-2) 0%, var(--glass-3) 50%, var(--glass-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 16px; }
.skeleton.short { height: 280px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; } }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--pc, var(--accent)); }
.bar-fill { width: 0; transition: width 1.1s var(--ease); box-shadow: 0 0 12px var(--pc, var(--accent)); }
.bar-fill.in { width: var(--v); }

/* ---------- ingreso ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 420px); gap: clamp(24px, 6vw, 90px); align-items: center; padding: clamp(24px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.brand-mark img { height: 24px; width: auto; }
.brand-mark span { font-family: var(--display); font-size: 14px; color: var(--accent-text); padding-left: 14px; border-left: 1px solid var(--line-2); font-weight: 600; }
.login-copy h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; max-width: 14ch; letter-spacing: -.045em; animation: rise .9s var(--ease) both; }
.login-stats { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.login-stats div { padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 300ms); }
.login-stats b { display: block; font-family: var(--display); font-size: 26px; }
.login-stats span { font-size: 13px; color: var(--muted); }
.login-card { padding: 30px 28px; border-radius: var(--r-l); animation: rise .8s var(--ease) both .15s; }
.login-card h2 { font-family: var(--display); font-size: 26px; margin-bottom: 4px; }
.login-card .lead { color: var(--muted); margin-bottom: 22px; }
.fineprint { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 860px) { .login { grid-template-columns: minmax(0, 1fr); } .login-stats { display: none; } .brand-mark { margin-bottom: 20px; } }

/* ---------- estructura ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3); backdrop-filter: blur(var(--blur)) saturate(1.3); box-shadow: var(--shadow); z-index: 30; }
.rail-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); box-shadow: 0 10px 26px -10px var(--accent); margin-bottom: 8px; flex: none; }
.rail-logo img { width: 24px; height: 24px; filter: brightness(10); }
.rail-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overflow-x: visible; scrollbar-width: none; padding: 2px 0; width: 100%; align-items: center; }
.rail-group { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; align-items: center; }
.rail-group + .rail-group { border-top: 1px solid var(--line); }
.rail a, .rail button { position: relative; display: grid; place-items: center; width: 46px; height: 42px; border-radius: 13px; color: var(--text-2); text-decoration: none; border: 0; background: transparent; transition: background .15s, color .15s, transform .15s; flex: none; }
.rail a:hover, .rail button:hover { background: var(--glass-3); color: var(--text); }
.rail a.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.rail a.on::before { content: ''; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.rail .ic { width: 21px; height: 21px; }
.rail .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-mid); box-shadow: 0 0 0 2px var(--solid); }
.tip { position: fixed; left: calc(var(--rail) + 22px); padding: 6px 10px; border-radius: 9px; background: var(--solid); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); z-index: 60; }
.rail a:hover .tip, .rail button:hover .tip, .rail a:focus-visible .tip { opacity: 1; transform: none; }
.rail-foot { display: flex; flex-direction: column; gap: 6px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.rail-me { width: 42px !important; }
.main { min-width: 0; }
.topbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px clamp(14px, 3vw, 34px); }
.topbar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--shade-a), transparent); pointer-events: none; z-index: -1; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; min-width: 220px; border-radius: 13px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--muted); font-size: 13.5px; margin-left: auto; }
.search-pill:hover { color: var(--text); border-color: var(--line-2); }
.search-pill kbd { margin-left: auto; font: 700 10.5px var(--body); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-clock { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--text-2); padding: 7px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); white-space: nowrap; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
body[data-page="inicio"] .tb-clock { display: none; }
.online { display: flex; align-items: center; }
.online span { position: relative; margin-left: -8px; }
.online span:first-child { margin-left: 0; }
.online .avatar { box-shadow: 0 0 0 2px var(--solid); }
.online span::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-ok); border: 2px solid var(--solid); }
.online small { margin-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.quick { position: relative; }
.quick-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; padding: 6px; z-index: 40; background: var(--solid); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); }
.quick-menu button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; }
.quick-menu button:hover { background: var(--accent-soft); }
.quick-menu .ic { color: var(--accent-text); margin-top: 2px; }
.quick-menu b { display: block; font-size: 14px; }
.quick-menu small { color: var(--muted); font-size: 12.5px; }
.view { outline: none; }
.page { max-width: 1440px; margin: 0 auto; padding: 8px clamp(14px, 3vw, 34px) 110px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div:first-child { min-width: 0; }
.page-head .lead { display: none; }
.lead { color: var(--muted); margin: 6px 0 0; max-width: 66ch; }
.eyebrow-plain { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
.only-mobile { display: none; }
.dock { display: none; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.banner .ic { color: var(--accent-text); }
.banner span { flex: 1; min-width: 200px; }

/* ---------- inicio: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
.w-greet { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.w-greet h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.tagline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin: 8px 0 16px; flex-wrap: wrap; }
.tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; min-width: 0; }
.kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.kpi .ic { color: var(--accent-text); width: 17px; height: 17px; }
.kpi b { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.w-clock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; }
.clock { display: flex; align-items: flex-start; gap: 8px; }
.clock b { font-family: var(--display); font-weight: 300; font-size: clamp(56px, 6.4vw, 92px); line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.clock span { font-family: var(--display); font-size: 18px; color: var(--accent-text); font-weight: 600; margin-top: 10px; }
.clock-date { font-size: 16px; color: var(--text-2); margin: 10px 0 2px; }
.clock-tz { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0; }
.clock-tz .ic { width: 14px; height: 14px; }
/* mini calendario */
.mc-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mc-nav b { font-size: 14px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.mc-wd { font-size: 11.5px; color: var(--muted); font-weight: 800; padding: 4px 0; }
.mc-day { position: relative; display: grid; place-items: center; gap: 0; height: 38px; border: 0; border-radius: 11px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--text); transition: background .15s, transform .15s; }
.mc-day:hover { background: var(--glass-3); transform: scale(1.06); }
.mc-day.out { color: var(--muted); opacity: .55; }
.mc-day.today span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px var(--accent); }
.mc-day i { position: absolute; bottom: 3px; display: flex; gap: 2px; }
.mc-day i em { width: 4px; height: 4px; border-radius: 50%; }
.day-pop { position: absolute; z-index: 80; padding: 12px; animation: pop .2s var(--ease); }
.day-pop header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-transform: capitalize; }
.day-pop .row { margin-top: 10px; }
/* tarjeta foto de la semana */
.w-hero { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; text-align: center; overflow: hidden; color: #fff; padding: 16px; min-height: 340px; }
.w-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(8, 6, 26, .25), rgba(8, 6, 26, .7) 70%), var(--img) center / cover; transform: scale(1.02); transition: transform 6s ease; }
.w-hero:hover::after { transform: scale(1.08); }
.w-hero { background: rgba(8, 6, 26, .2); }
.hero-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.hero-top .icon-btn { color: #fff; }
.w-hero .chart-ring { --track: rgba(255, 255, 255, .18); }
.w-hero .ring-label b, .w-hero .ring-label span { color: #fff; }
.hero-quote { font-family: var(--display); font-size: 15px; line-height: 1.4; margin: 0; max-width: 34ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--display); font-size: 20px; }
.hero-stats span { font-size: 11.5px; opacity: .75; }
/* agenda */
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); border-left: 3px solid var(--k); cursor: pointer; transition: background .15s, transform .15s; }
.ag-item:hover { background: var(--glass-3); transform: translateX(2px); }
.ag-item.done b { text-decoration: line-through; color: var(--muted); }
.ag-time { font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.ag-body { min-width: 0; display: grid; gap: 2px; }
.ag-body b { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ag-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-meta .ic { width: 13px; height: 13px; color: var(--k); flex: none; }
/* pestañas tipo pastilla */
.tabs-pill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; max-width: 100%; }
.tabs-pill button, .tabs-pill a { padding: 6px 12px; border-radius: 9px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.tabs-pill button:hover, .tabs-pill a:hover { color: var(--text); }
.tabs-pill .on { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }
.tabs-pill a span { opacity: .65; margin-left: 2px; }
.tabs-pill.sm { margin: 0; }
.tabs-pill.sm button { padding: 4px 10px; font-size: 12px; }
/* lista de tareas */
.tlist { list-style: none; margin: 0; padding: 0; display: grid; }
.tlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.tlist li:first-child { border-top: 0; }
.tc { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: transparent; color: transparent; padding: 0; transition: all .2s var(--ease); }
.tc .ic { width: 13px; height: 13px; stroke-width: 3; }
button.tc:not(:disabled):hover { border-color: var(--accent); color: var(--accent-text); }
.tlist li.done .tc { background: var(--accent); border-color: var(--accent); color: #fff; }
.tt { display: grid; gap: 1px; text-align: left; background: none; border: 0; padding: 0; min-width: 0; color: var(--text); text-decoration: none; }
.tt b { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tt small i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tlist li.done b { text-decoration: line-through; color: var(--muted); }
.td { font-size: 12px; color: var(--muted); white-space: nowrap; }
.td.late { color: var(--c-bad); font-weight: 800; }
.star { color: var(--line-2); font-size: 16px; }
.star.on { color: var(--accent-text); text-shadow: 0 0 12px var(--accent); }
/* proyectos (lista con barras) */
.plist2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plist2 a { --pc: var(--accent); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background .15s; }
.plist2 a:hover { background: var(--glass-2); }
.pl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 12px var(--pc); }
.pl-main { display: grid; gap: 4px; min-width: 0; }
.pl-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-main small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pct { font-family: var(--display); font-weight: 600; font-size: 14px; }
/* gráficas */
.chart-ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.chart-ring svg { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 40%, transparent)); }
.ring-val { transition: stroke-dashoffset 1.4s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring-label b { font-family: var(--display); font-weight: 600; font-size: calc(var(--size) * .24); letter-spacing: -.04em; display: inline; }
.ring-label small { font-size: calc(var(--size) * .11); color: var(--muted); display: inline; }
.ring-label span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ring-label em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.chart-donut { position: relative; width: var(--size); height: var(--size); margin: 0 auto 10px; }
.donut-seg { transition: stroke-dasharray 1s var(--ease); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.donut-center b { font-family: var(--display); font-size: 28px; font-weight: 600; }
.donut-center small { font-size: 11.5px; color: var(--muted); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.legend-list li { display: flex; align-items: center; gap: 8px; }
.legend-list i, .legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.legend-list b { margin-left: auto; font-family: var(--display); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i:not(:first-child) { margin-left: 8px; }
.chart-wrap { height: 150px; }
.chart-area { width: 100%; height: 100%; overflow: visible; }
.chart-area text { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.area-dot { opacity: 0; transition: opacity .2s; }
.chart-area:hover .area-dot { opacity: 1; }
.chart-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chart-foot div { display: grid; min-width: 0; }
.chart-foot b { font-family: var(--display); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-foot span { font-size: 11.5px; color: var(--muted); }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; }
.chart-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; opacity: .85; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 30ms); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
/* entregas */
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-list li { --pc: var(--accent); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.dl-list li:hover { background: var(--glass-2); }
.dl-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 28%, transparent); color: var(--pc); }
:root[data-theme="dark"] .dl-ic { color: color-mix(in srgb, var(--pc) 70%, white); }
.dl-main { display: grid; min-width: 0; }
.dl-main b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-main small { font-size: 12px; color: var(--muted); }
/* rutinas (tracker) */
.habits { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 30px) 44px; gap: 10px 8px; align-items: center; }
.hb-wd { font-size: 11.5px; font-weight: 800; color: var(--muted); text-align: center; }
.hb-wd.today { color: var(--accent-text); }
.hb-name { font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; transition: transform .2s; }
.hb-dot.part { border-color: var(--accent); background: conic-gradient(var(--accent) calc(var(--v) * 360deg), transparent 0); }
.hb-dot.full { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 12px -2px var(--accent); }
.hb-dot.future { opacity: .45; }
.hb-dot .ic { width: 13px; height: 13px; stroke-width: 3; }
.hb-pct { font-family: var(--display); font-size: 13px; text-align: right; color: var(--text-2); }
/* objetivos */
.objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.obj { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 6px; border-radius: 12px; }
.obj:hover { background: var(--glass-2); }
.obj b { font-weight: 600; font-size: 14px; }
.obj p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.obj-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: transparent; color: transparent; padding: 0; margin-top: 1px; }
.obj-check .ic { width: 13px; height: 13px; stroke-width: 3; }
.obj-check:not(:disabled):hover { border-color: var(--c-ok); color: var(--c-ok); }
.obj-hecho .obj-check, .obj-check.on { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.obj-hecho b { color: var(--muted); text-decoration: line-through; }
.obj-en_riesgo .obj-check { border-color: var(--c-bad); }
.obj-st { font-size: 11.5px; font-weight: 800; }
.obj-en_riesgo .obj-st { color: var(--c-bad); }
.obj-hecho .obj-st { color: var(--c-ok); }
/* registro rápido y hoy */
.capture { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 8px; margin-bottom: 12px; }
.log2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.log2 li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 4px; }
.log-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: color-mix(in srgb, var(--k) 22%, transparent); color: var(--k); }
.log-dot .ic { width: 16px; height: 16px; }
.log2 div { display: grid; min-width: 0; }
.log2 b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.log2 a { color: var(--text); text-decoration: none; }
.log2 small { font-size: 12px; color: var(--muted); }
/* equipo */
.team-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }
.tm { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background .15s, transform .2s var(--ease); }
.tm:hover { background: var(--glass-2); transform: translateY(-3px); }
.tm img, .tm .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line-2); }
.tm:hover img { box-shadow: 0 0 0 2px var(--accent); }
.tm b { font-size: 12.5px; }
.tm small { font-size: 11px; color: var(--muted); }

/* ---------- calendario ---------- */
.pager { display: flex; align-items: center; gap: 8px; }
.pager-title { font-family: var(--display); min-width: 150px; text-align: center; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cal-side { display: grid; gap: 16px; }
.cal-side .row { margin-top: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 6px 4px; }
.cal-day { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 8px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .15s, border-color .15s, transform .15s; min-width: 0; overflow: hidden; }
.cal-day:hover { background: var(--glass-3); border-color: var(--line-2); }
.cal-day.out { opacity: .45; }
.cal-day.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -16px var(--accent); }
.cal-day.today .cal-n { background: var(--accent); color: #fff; }
.cal-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.cal-chips { display: grid; gap: 3px; min-width: 0; }
.cal-chips i { --k: var(--accent); display: block; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--k) 22%, transparent); border-left: 2px solid var(--k); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chips i.done { text-decoration: line-through; opacity: .6; }
.cal-chips small { font-weight: 800; margin-right: 4px; opacity: .8; }
.cal-chips em { font-style: normal; font-size: 11px; color: var(--muted); padding-left: 4px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--k); }

/* ---------- personas ---------- */
.graph-card { margin-bottom: 18px; }
.graph { min-height: 300px; }
.graph svg { opacity: 0; transition: opacity .8s; touch-action: none; }
.graph svg.in { opacity: 1; }
.g-links line { stroke: var(--line-2); transition: stroke .2s, opacity .2s; }
.g-links line.req { stroke: var(--c-mid); stroke-dasharray: 4 4; }
.gn { cursor: pointer; transition: opacity .2s; }
.gn text { fill: var(--text-2); font-size: 11.5px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 3px; font-family: var(--body); }
:root[data-theme="light"] .gn text { stroke: rgba(255, 255, 255, .8); }
.gn-p .halo { opacity: .18; animation: halo 3s ease-in-out infinite; }
.gn-u .ring-u { fill: none; stroke: var(--accent); stroke-width: 2; }
@keyframes halo { 50% { opacity: .35; } }
.focusing .gn:not(.near) { opacity: .2; }
.focusing .g-links line:not(.near) { opacity: .12; }
.g-links line.near { stroke: var(--accent); }
.graph-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.graph-legend span { display: flex; align-items: center; gap: 6px; }
.graph-legend i { width: 12px; height: 12px; border-radius: 50%; }
.lg-p { background: var(--accent); } .lg-u { border: 2px solid var(--accent); } .lg-req { width: 18px !important; height: 0 !important; border-top: 2px dashed var(--c-mid); border-radius: 0 !important; }
.people-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.pc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: var(--text); transition: transform .25s var(--ease), border-color .2s; }
.pc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line-2); flex: none; }
.ph-mono { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; }
.ph.xl { width: 120px; height: 120px; box-shadow: 0 0 0 3px var(--accent), 0 20px 40px -18px var(--accent); }
.pc-main { display: grid; gap: 2px; min-width: 0; }
.pc-main b { font-size: 15px; }
.pc-main small { font-size: 12.5px; color: var(--muted); }
.pc-stats { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.pc-stats span { display: flex; align-items: center; gap: 4px; }
.pc-stats .ic { width: 14px; height: 14px; color: var(--accent-text); }
.pc-projects { display: flex; gap: 4px; margin-top: 6px; }
.pc-projects i { width: 18px; height: 5px; border-radius: 3px; background: var(--pc); }
.pc-badge { position: absolute; top: 12px; right: 12px; color: var(--accent-text); }
.pc-badge .ic { width: 15px; height: 15px; }
.person-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 16px; padding: 24px; }
.ph-main h1 { margin-bottom: 2px; }
.ph-main .lead { display: block; margin: 0 0 12px; }
.ph-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ph-stats div { display: grid; justify-items: start; gap: 0; padding: 10px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); min-width: 120px; }
.ph-stats .ic { width: 16px; height: 16px; color: var(--accent-text); }
.ph-stats b { font-family: var(--display); font-size: 24px; }
.ph-stats span { font-size: 12px; color: var(--muted); }
.bento-person { margin-top: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.mini-list a:hover { background: var(--glass-2); }
.mini-list b { font-size: 13.5px; }
.mini-list small { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tabs-pill + .people-cards { margin-top: 4px; }

/* ---------- centro de acciones ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.action { display: grid; justify-items: start; gap: 6px; text-align: left; cursor: pointer; color: var(--text); padding: 16px; transition: transform .25s var(--ease), border-color .2s; }
.action:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.action .ic { width: 22px; height: 22px; color: var(--accent-text); }
.action b { font-size: 14px; }
.action small { font-size: 12px; color: var(--muted); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); }
.req-hecho, .req-cancelado { opacity: .7; }
.req-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
.req-main { display: grid; gap: 3px; min-width: 0; }
.req-main b { font-size: 14px; }
.req-main small { font-size: 12px; color: var(--muted); }
.req-main p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.req-tools { display: flex; gap: 2px; }
.resolution { display: flex; gap: 8px; color: var(--c-ok) !important; }
.resolution .ic { width: 15px; height: 15px; margin-top: 3px; }
.conn { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.conn li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; }
.conn .ic { color: var(--accent-text); }
.conn div { display: grid; }
.conn b { font-size: 13.5px; }
.conn small { font-size: 12px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--text-2); }
.feed li:first-child { border-top: 0; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.feed b { color: var(--text); }
.feed small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- proyectos: lista ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { --pc: var(--accent); display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .3s var(--ease), border-color .2s; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.pcard-cover { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 30%, #0b0a20)); overflow: hidden; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.pcard:hover .pcard-cover img { transform: scale(1.05); }
.pcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 26, .65)); }
.pcard-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 60px; color: rgba(255, 255, 255, .85); }
.pcard-status { position: absolute; left: 12px; top: 12px; z-index: 2; }
.pcard-status .st { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(10, 8, 30, .55); color: #fff; }
.pcard-ring { position: absolute; right: 10px; bottom: 8px; z-index: 2; color: #fff; }
.pcard-ring .ring-label b, .pcard-ring .ring-label small { color: #fff; }
.pcard-ring .chart-ring { --track: rgba(255, 255, 255, .25); }
.pin { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-mid); color: #1a1300; }
.pin .ic { width: 14px; height: 14px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pkind { font-size: 11.5px; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pcard h3 { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.pcard p { color: var(--text-2); font-size: 13px; margin: 0; flex: 1; }
.pcard-foot { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pcard-foot span { display: flex; align-items: center; gap: 4px; }
.pcard-foot .ic { width: 14px; height: 14px; }
.mroad { position: relative; height: 8px; border-radius: 6px; background: var(--track); margin: 8px 0 6px; }
.mroad-build { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--pc); }
.mroad-maint { position: absolute; top: 0; bottom: 0; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc) 70%, transparent) 0 4px, color-mix(in srgb, var(--pc) 25%, transparent) 4px 8px); }
.mroad-maint.fin { background: var(--c-ok); }
.mroad i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--solid); }
.mroad-launch { background: var(--c-mid); }
.mroad-now { background: #fff; box-shadow: 0 0 10px var(--pc); }

/* ---------- proyecto: cabecera ---------- */
.phead { --pc: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 26px; overflow: hidden; }
.phead::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cover, none) center / cover; opacity: .22; filter: blur(2px); mask-image: linear-gradient(90deg, transparent 25%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000); }
.phead::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc); box-shadow: 0 0 18px var(--pc); border-radius: 0; opacity: 1; }
.phead-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.phead h1 { font-size: clamp(26px, 3.4vw, 40px); }
.origin { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.origin b { color: var(--text); }
.phead-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.phead-progress { display: flex; align-items: center; gap: 22px; }
.dates { display: grid; gap: 8px; margin: 0; font-size: 13px; }
.dates div { display: grid; }
.dates dt { color: var(--muted); font-size: 11.5px; }
.dates dd { margin: 0; font-weight: 700; }
@media (max-width: 820px) { .phead { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.tabs { display: flex; gap: 4px; margin: 16px 0 18px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: #fff; background: var(--pc, var(--accent)); box-shadow: 0 8px 20px -10px var(--pc, var(--accent)); }
.tabs a span { font-size: 11px; padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.sum-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sum-grid .col { display: grid; gap: 16px; min-width: 0; }
.sum-grid .panel { margin: 0; }
.panel.objective { border-left: 3px solid var(--pc, var(--accent)); }
.panel.objective p, .panel.next p { font-size: 15px; margin: 0; }
.panel.next { background: color-mix(in srgb, var(--c-mid) 12%, var(--glass)); }
.mini-tl { list-style: none; margin: 0; padding: 0; }
.mini-tl li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.mini-tl li:first-child { border-top: 0; }
.mini-tl time { font-size: 12px; color: var(--muted); padding-top: 2px; }
.mini-tl div { display: grid; gap: 2px; min-width: 0; }
.mini-tl b { font-weight: 600; font-size: 13.5px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass-2); aspect-ratio: 16 / 10; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s var(--ease); }
.thumbs button:hover img { transform: scale(1.05); }
.viewers { list-style: none; margin: 0; padding: 0; }
.viewers li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.viewers li:first-child { border-top: 0; }
.viewers .avatar { grid-row: span 2; }
.viewers b { font-size: 13.5px; }
.viewers span { font-size: 12px; color: var(--muted); grid-column: 2; }
.viewers small { grid-row: 1; grid-column: 3; color: var(--muted); font-size: 12px; }
.panel.live iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.prose { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 .55em; }
.prose ul, .prose ol { margin: .3em 0 .6em; padding-left: 20px; }
.prose li { margin: 3px 0; }
.prose li.cb { list-style: none; margin-left: -20px; }
.prose li.cb::before { content: '☐ '; }
.prose li.cb.on::before { content: '☑ '; }
.prose strong { color: var(--text); }
.prose blockquote { margin: .4em 0; padding-left: 12px; border-left: 3px solid var(--line-2); font-style: italic; }
.prose h4 { margin: .6em 0 .3em; color: var(--text); }
/* línea del proyecto */
.roadmap { margin-bottom: 16px; --pc: inherit; }
.road-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.road-status .ic { width: 15px; height: 15px; }
.road-maint .road-status { background: rgba(34, 211, 238, .14); color: #67E8F9; }
.road-fin .road-status { background: var(--ok-wash); color: var(--c-ok); }
:root[data-theme="light"] .road-maint .road-status { color: #0E7490; }
.rd { position: relative; padding: 46px 8px 6px; }
.rd-marks { position: absolute; left: 8px; right: 8px; top: 0; height: 40px; }
.rd-mark { position: absolute; transform: translateX(-50%); display: grid; justify-items: center; font-size: 11px; line-height: 1.15; white-space: nowrap; color: var(--text-2); }
.rd-mark .ic { width: 14px; height: 14px; color: var(--accent-text); }
.rd-mark b { font-size: 11.5px; }
.rd-mark small { color: var(--muted); }
.rd-mark:first-child { transform: none; justify-items: start; }
.rd-track { position: relative; height: 26px; border-radius: 10px; background: var(--track); overflow: visible; }
.rd-build, .rd-maint { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; border-radius: 10px; overflow: hidden; animation: sweep 1.2s var(--ease) both; transform-origin: left; }
.rd-build { left: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--pc, var(--accent)) 60%, transparent), var(--pc, var(--accent))); box-shadow: 0 0 22px -6px var(--pc, var(--accent)); }
.rd-maint { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc, var(--accent)) 55%, transparent) 0 7px, color-mix(in srgb, var(--pc, var(--accent)) 22%, transparent) 7px 14px); border-radius: 0 10px 10px 0; animation-delay: .5s; }
.road-fin .rd-maint { background: color-mix(in srgb, var(--c-ok) 55%, transparent); }
.rd-build em, .rd-maint em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; padding: 0 10px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
@keyframes sweep { from { transform: scaleX(0); } }
.rd-today { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px #fff; border-radius: 2px; }
.rd-today b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: var(--text); }
:root[data-theme="light"] .rd-today { background: var(--text); box-shadow: none; }
.rd-dots { position: relative; height: 62px; margin-top: 8px; }
.rd-dot { position: absolute; top: calc(var(--lane) * 15px); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 25%, transparent), 0 0 12px var(--k); transition: transform .2s var(--ease); animation: rise .6s var(--ease) both; }
.rd-dot:hover, .rd-dot:focus-visible { transform: scale(1.5); z-index: 3; }
.rd-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: var(--solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: grid; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.rd-tip b { font-size: 12px; color: var(--text); line-height: 1.3; }
.rd-tip small { font-size: 11px; color: var(--muted); }
.rd-dot:hover .rd-tip, .rd-dot:focus-visible .rd-tip { opacity: 1; }
.rd-months { position: relative; height: 16px; border-top: 1px dashed var(--line-2); }
.rd-months span { position: absolute; top: 2px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rd-legend span { display: flex; align-items: center; gap: 6px; }
.rd-legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.rd-legend b { color: var(--text-2); }
/* ficha técnica */
.sheet-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sheet-card { display: flex; gap: 14px; align-items: center; }
.sheet-card div { display: grid; gap: 4px; min-width: 0; }
.sheet-card small { font-size: 12px; color: var(--muted); }
.sheet-card a:not(.btn) { overflow-wrap: anywhere; font-weight: 700; }
.sheet-card .btn { justify-self: start; }
.sheet-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.sheet-dl { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; align-items: start; }

/* ---------- timeline ---------- */
.kfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.kfilter a { --k: var(--text-2); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-size: 12.5px; font-weight: 700; color: var(--text-2); text-decoration: none; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.kfilter a .ic { width: 14px; height: 14px; color: var(--k); }
.kfilter a span { color: var(--muted); font-weight: 600; }
.kfilter a.on { border-color: var(--k); color: var(--text); background: color-mix(in srgb, var(--k) 18%, var(--glass)); }
.tl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tl-bar > p { margin: 0; font-size: 13.5px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 98px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line) 92%, transparent); opacity: .6; }
.tl-month { padding: 18px 0 10px 124px; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--accent-text); }
.tl-month:first-child { padding-top: 0; }
.tl-day, .tl-origin { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 46px; padding-bottom: 16px; }
.tl-date { text-align: right; padding-top: 10px; }
.tl-date b { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.tl-date span { font-size: 12px; color: var(--muted); }
.tl-items { display: grid; gap: 12px; min-width: 0; }
.tl-card { --k: var(--accent); position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 12px; box-shadow: var(--shadow); scroll-margin: 100px; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); min-width: 0; }
.tl-card.focus { box-shadow: 0 0 0 2px var(--k), var(--shadow-lg); }
.tl-node { position: absolute; left: -37px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--k); color: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, .25), 0 0 14px var(--k); }
.tl-node .ic { width: 15px; height: 15px; }
.tl-card header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: var(--muted); }
.tl-kind { color: var(--k); font-weight: 800; }
.tl-person { color: var(--text-2); font-weight: 700; }
.tl-card h4 { font-size: 15.5px; font-weight: 700; margin: 4px 0 6px; line-height: 1.35; }
.tl-files { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 4px; }
.tl-files button { flex: none; width: 220px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass-2); text-align: left; color: var(--text); }
.tl-files img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tl-files button span { display: block; padding: 6px 10px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-files button span:empty { display: none; }
.tl-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.tl-card footer { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tl-card footer .link-btn { color: var(--muted); font-weight: 600; }
.tl-card footer .link-btn:hover { color: var(--accent-text); }
.tl-card footer a.link-btn { color: var(--accent-text); font-weight: 700; }
.tl-thread { margin-top: 10px; }
.tl-start { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); border: 1.5px dashed var(--line-2); color: var(--text-2); font-size: 14px; background: var(--glass); }
.tl-start .ic { color: var(--k-solicitud); }
@media (max-width: 640px) {
  .tl::before { left: 14px; }
  .tl-month { padding-left: 40px; }
  .tl-day, .tl-origin { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 40px; }
  .tl-files button { width: 180px; }
  .tl-date { text-align: left; padding-top: 0; display: flex; gap: 8px; align-items: baseline; }
  .tl-date b { font-size: 20px; }
  .tl-node { left: -40px; width: 24px; height: 24px; }
}

/* ---------- tablero de tareas ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col-k { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 200px; transition: background .15s, border-color .15s; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.col-k.over { background: var(--accent-soft); border-color: var(--accent); }
.col-k header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.col-k header h3 { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.col-k header h3::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; }
.col-en_curso header h3::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.col-bloqueada header h3::before { background: var(--c-bad); }
.col-hecha header h3::before { background: var(--c-ok); }
.col-k header span { font-size: 12px; color: var(--muted); font-weight: 800; }
.drop-zone { display: grid; gap: 8px; min-height: 60px; }
.kcard { --pc: transparent; background: var(--glass-2); border: 1px solid var(--line); border-left: 3px solid var(--pc); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: transform .15s, background .15s; }
.kcard[draggable="true"] { cursor: grab; }
.kcard:hover { background: var(--glass-3); transform: translateY(-1px); }
.kcard.dragging { opacity: .45; }
.kcard b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.kcard p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.kproj { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
.kmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 8px; }
.kmeta a { color: var(--muted); }
.kmeta a .ic { width: 15px; height: 15px; }
.col-hecha .kcard b { color: var(--muted); text-decoration: line-through; }
.tasklist { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.tcheck { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: transparent; color: transparent; padding: 0; margin-top: 1px; }
.tcheck .ic { width: 12px; height: 12px; stroke-width: 3; }
.tcheck:not(:disabled):hover { border-color: var(--accent); color: var(--accent-text); }
.task.done .tcheck { background: var(--accent); border-color: var(--accent); color: #fff; }
.ttitle { text-align: left; background: none; border: 0; padding: 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ttitle:hover { color: var(--accent-text); }
.ttitle.static:hover { color: inherit; }
.task.done .ttitle { color: var(--muted); text-decoration: line-through; }
.tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-width: 0; }
.tdot { width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; margin-top: 7px; grid-row: span 2; }
.tdot.st-en_curso { background: var(--accent); }
.tdot.st-bloqueada { background: var(--c-bad); }

/* ---------- evidencia ---------- */
.gal-day { margin-bottom: 24px; }
.gal-day h3 { font-size: 13.5px; color: var(--muted); font-weight: 700; margin-bottom: 10px; text-transform: capitalize; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gal figure { position: relative; margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.gal-img { display: block; width: 100%; padding: 0; border: 0; background: var(--glass-2); aspect-ratio: 16 / 10; overflow: hidden; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s var(--ease); }
.gal-img:hover img { transform: scale(1.04); }
.gal-pdf { display: grid; place-items: center; gap: 6px; height: 100%; color: var(--muted); font-weight: 800; }
.gal-pdf .ic { width: 34px; height: 34px; }
.gal figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; font-size: 12.5px; color: var(--text-2); }
.gal figcaption > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-tools { display: flex; opacity: .6; transition: opacity .15s; }
.gal figure:hover .gal-tools, .gal-tools:focus-within { opacity: 1; }
.pick-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.pick-badge:empty { display: none; }
.picking .gal figure { cursor: crosshair; }
.picking .gal figure.picked { box-shadow: 0 0 0 2px var(--accent); }
.cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; flex-wrap: wrap; }
.cmp { --x: 50%; position: relative; border-radius: 12px; overflow: hidden; background: var(--glass-2); user-select: none; }
.cmp > img { width: 100%; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-before img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #15132E; box-shadow: var(--shadow-lg); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-legend { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.lb { position: relative; display: grid; place-items: center; background: rgba(0, 0, 0, .25); border-radius: 12px; min-height: 300px; }
.lb-stage { width: 100%; display: grid; place-items: center; }
.lb-stage img { max-height: 72vh; width: auto; border-radius: 8px; }
.lb-stage iframe { width: 100%; height: 72vh; border: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--solid); color: var(--text); box-shadow: var(--shadow); }
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-cap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: 13.5px; }
.lb-cap span { color: var(--muted); }
.lb-count { margin-left: auto; }

/* ---------- links y conversación ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.links section { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); min-width: 0; }
.links h3 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.links h3 .ic { color: var(--accent-text); }
.links ul { list-style: none; margin: 0; padding: 0; }
.links li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links li > a { flex: 1; min-width: 0; display: grid; text-decoration: none; }
.links li > a b { color: var(--text); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.links li > a:hover b { color: var(--accent-text); }
.links li > a span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links li p { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--text-2); }
.talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.talk-intro { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.talk-intro h4 { margin: 16px 0 8px; }
.conv-mini { list-style: none; margin: 0; padding: 0; }
.conv-mini li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.conv-mini li .st { justify-self: start; }
.conv-mini small { color: var(--muted); font-size: 12px; }
.thread { display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.thread .msgs { flex: 1; max-height: 58vh; min-height: 220px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.thread.compact { box-shadow: none; background: var(--glass-2); }
.thread.compact .msgs { max-height: 320px; min-height: 0; padding: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--glass-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 8px 12px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent-soft); border-color: transparent; border-radius: 16px 4px 16px 16px; }
.msg.bot .bubble { background: var(--sun-wash); border-color: transparent; }
.bubble header { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 2px; }
.bubble header time { color: var(--muted); }
.bubble header .icon-btn { margin-left: auto; opacity: 0; }
.msg:hover .bubble header .icon-btn, .bubble header .icon-btn:focus { opacity: 1; }
.bubble p { margin: 0 0 .3em; }
.bubble p:last-child { margin: 0; }
.bubble ul { margin: .2em 0; padding-left: 18px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer textarea { resize: none; min-height: 42px; }
.composer .btn { padding: 0 14px; }
.page-room .room .msgs { max-height: none; height: calc(100vh - 300px); min-height: 360px; }

/* ---------- semana ---------- */
.week-head h1 { font-size: clamp(30px, 4vw, 44px); }
.day-pager { margin-bottom: 18px; }
.day-pager b { font-weight: 700; text-transform: capitalize; }
.focus-card { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 22px 26px; margin-bottom: 16px; color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 70%, #0b0a20), rgba(11, 10, 32, .75)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.focus-card h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 8px; }
.focus-input, .focus-text { width: 100%; background: transparent; border: 0; color: #fff; font-family: var(--display); font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; resize: none; outline: none; margin: 0; overflow: hidden; padding: 0; }
.focus-input::placeholder { color: rgba(255, 255, 255, .5); }
.focus-input:focus { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .7); }
.week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.week-grid .panel { margin: 0; }
.days { margin: 16px 0; }
.days > h2 { margin-bottom: 12px; }
.day-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.day { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); min-width: 0; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -18px var(--accent); }
.day header { display: flex; justify-content: space-between; align-items: baseline; }
.day header b { text-transform: capitalize; }
.day header span { font-size: 12px; color: var(--muted); }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day li { display: grid; gap: 1px; font-size: 13px; padding-left: 10px; border-left: 2px solid var(--k, var(--line-2)); min-width: 0; }
.day li b { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.day li.none { border-left: 0; padding-left: 0; font-size: 12.5px; }
.day-meet { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--k-reunion) 18%, transparent); color: var(--text); text-decoration: none; }
.day-meet .ic { color: var(--k-reunion); width: 15px; height: 15px; }
.day .link-btn { margin-top: auto; }
.panel.review textarea { min-height: 110px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 16px; flex-wrap: wrap; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.seg a, .seg button { padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; }
.seg a span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.seg .on { background: var(--accent); color: #fff; }
.seg .on span { color: rgba(255, 255, 255, .7); }
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; justify-content: center; }
.page-head .seg { margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.off { opacity: .55; }
.panel:has(> .table) { overflow-x: auto; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reuniones, conversaciones, rutinas ---------- */
.meetings { display: grid; gap: 14px; }
.meeting { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.meeting.focus { box-shadow: 0 0 0 2px var(--k-reunion); }
.meeting-date { text-align: center; padding: 10px 6px; border-radius: 14px; background: color-mix(in srgb, var(--k-reunion) 18%, transparent); align-self: start; }
.meeting-date b { display: block; font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.1; }
.meeting-date span { display: block; font-size: 12px; color: var(--text-2); }
.meeting-date small { font-size: 11.5px; color: var(--muted); }
.meeting-body { min-width: 0; }
.meeting-body header { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.meeting-body h3 { font-size: 16.5px; }
.attendees { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.attendees .ic { width: 15px; height: 15px; }
.decisions { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); }
.decisions h4 { margin-bottom: 6px; }
.meeting-body footer { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
@media (max-width: 640px) { .meeting { grid-template-columns: minmax(0, 1fr); } .meeting-date { justify-self: start; display: flex; gap: 8px; align-items: baseline; } }
.convs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.conv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.conv-body { min-width: 0; }
.conv-body header b { font-weight: 700; font-size: 14.5px; }
.conv-body p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); }
.conv-resuelta .conv-body header b { color: var(--text-2); }
.conv-tools { display: flex; gap: 2px; }
.routines { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.routine { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); min-width: 0; }
.routine header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.routine header p { margin: 4px 0 6px; font-size: 12.5px; }
.ring { --v: 0; --size: 96px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--pc, var(--accent)) calc(var(--v) * 1%), var(--track) 0); display: grid; place-items: center; flex: none; }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--solid); }
.ring span { position: relative; font-family: var(--display); font-size: 22px; font-weight: 600; }
.ring small { font-size: 12px; color: var(--muted); }
.ring.sm { --size: 56px; }
.ring.sm::before { inset: 5px; }
.ring.sm span { font-size: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.checklist li:first-child .check-row { border-top: 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); color: transparent; flex: none; transition: background .15s, border-color .15s; }
.check-row .box .ic { width: 13px; height: 13px; stroke-width: 3; }
.check-row.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-row.on > span:last-child { color: var(--muted); }
.check-row input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.routine footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.streak { display: flex; gap: 4px; }
.streak i { width: 12px; height: 12px; border-radius: 4px; background: var(--track); }
.streak i.part { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.streak i.full { background: var(--accent); }

/* ---------- admin ---------- */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-bottom: 20px; }
.spark span { flex: 1; max-width: 44px; position: relative; height: 100%; display: flex; align-items: flex-end; }
.spark i { display: block; width: 100%; height: var(--h); min-height: 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); border-radius: 6px 6px 2px 2px; animation: grow .8s var(--ease) both; transform-origin: bottom; }
.spark small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; }
.person { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); min-width: 0; }
.person.on { box-shadow: 0 0 0 2px var(--accent); }
.person header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.person header b { display: block; }
.person header small { color: var(--muted); font-size: 12px; }
.seen { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.seen.live { color: var(--c-ok); font-weight: 700; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.pstats div { display: grid; }
.pstats dt { font-size: 11px; color: var(--muted); }
.pstats dd { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 500; }
.person h4 { font-size: 12.5px; color: var(--text-2); }
.top { margin: 0; padding-left: 20px; font-size: 13px; }
.top li { margin: 3px 0; }
.top li small { color: var(--muted); margin-left: 6px; }
.person .link-btn { margin-top: auto; }
.trail { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.trail li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.trail li:first-child { border-top: 0; }
.trail li b { font-weight: 600; }
.trail li small { display: block; color: var(--muted); font-size: 12px; }
.trail li > span:last-child { color: var(--muted); font-size: 12px; }
.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; font-size: 13.5px; }
.who small { color: var(--muted); font-size: 12px; }
.roles dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.roles dt { font-weight: 800; }
.roles dd { margin: 0; color: var(--muted); font-size: 13.5px; }
.roles-pick { display: grid; gap: 8px; }
.roles-pick label { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.roles-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.roles-pick input { grid-row: span 2; accent-color: var(--accent); }
.roles-pick small { color: var(--muted); }
.secret { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); flex-wrap: wrap; }
.secret code { flex: 1; font-size: 13.5px; word-break: break-all; background: none; }
.account { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.account h2 { font-family: var(--display); font-size: 22px; }
.account p { margin: 2px 0; }
.steps ol, .steps ul { padding-left: 20px; margin: 8px 0 12px; }
.steps li { margin: 6px 0; }
.integr { list-style: none; padding: 0 !important; }
.integr li { display: flex; gap: 12px; align-items: flex-start; }
.integr .ic { color: var(--accent-text); margin-top: 3px; }
.integr p { margin: 0; font-size: 13.5px; color: var(--text-2); }

/* ---------- formularios especiales ---------- */
.kind-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kind-pick label { --k: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.kind-pick label .ic { width: 15px; height: 15px; color: var(--k); }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick label:has(input:checked) { border-color: var(--k); background: color-mix(in srgb, var(--k) 20%, transparent); color: var(--text); }
.kind-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches > span { width: 100%; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 28px; height: 28px; border-radius: 9px; background: var(--c); }
.swatches label:has(input:checked) i { box-shadow: 0 0 0 3px var(--solid), 0 0 0 5px var(--c); }
.drop { display: block; position: relative; border: 2px dashed var(--line-2); border-radius: var(--r); padding: 18px; margin-bottom: 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-hint { display: grid; justify-items: center; gap: 4px; color: var(--text-2); padding: 18px 0; }
.drop-hint .ic { width: 28px; height: 28px; color: var(--accent-text); }
.drop-hint small { color: var(--muted); }
.drop.has .drop-hint { padding: 8px 0 0; }
.drop-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.drop-preview figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--glass-2); aspect-ratio: 16 / 10; }
.drop-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.drop-preview .pdf { display: grid; place-items: center; font-size: 12px; padding: 8px; }
.drop-preview button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10, 8, 30, .75); color: #fff; padding: 0; }
.drop-preview button .ic { width: 13px; height: 13px; }
/* personalizar */
.cz { display: grid; gap: 22px; }
.cz h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cz-swatches button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 2px transparent; transition: transform .15s, box-shadow .15s; }
.cz-swatches button:hover { transform: scale(1.12); }
.cz-swatches button.on { box-shadow: 0 0 0 3px var(--solid), 0 0 0 5px var(--c), 0 0 18px var(--c); }
.cz-custom { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px dashed var(--line-2); cursor: pointer; color: var(--text-2); }
.cz-custom .ic { width: 16px; height: 16px; }
.cz-bgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cz-bgs button { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; border: 2px solid transparent; background: var(--glass-2) center / cover; overflow: hidden; padding: 0; transition: transform .15s; }
.cz-bgs button:hover { transform: scale(1.03); }
.cz-bgs button.on { border-color: var(--accent); box-shadow: 0 0 16px -4px var(--accent); }
.cz-bgs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; }
.cz-none { background: repeating-linear-gradient(135deg, var(--glass-2) 0 6px, var(--glass-3) 6px 12px) !important; }
.cz-none span { color: var(--text) !important; background: none !important; }
.cz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.cz-row > span { margin: 0; }
.cz-slider output { margin-left: auto; font-family: var(--display); color: var(--text); }
.cz .btn { margin-top: 6px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.more-grid a, .more-grid button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 700; text-align: center; }
.more-grid .ic { width: 22px; height: 22px; color: var(--accent-text); }

/* ---------- modales, búsqueda y avisos ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 4, 18, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .18s ease; }
.modal-wrap.out { opacity: 0; transition: opacity .18s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--solid); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.modal.wide { max-width: 860px; }
.modal-wrap.is-side { place-items: stretch end; padding: 12px; }
.modal-wrap.is-side .modal { max-width: 420px; max-height: none; height: 100%; animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 12px; background: var(--solid); }
.modal-head h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.modal-head .icon-btn { border-color: transparent; background: transparent; }
.modal-body { padding: 4px 22px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.confirm-text { font-size: 15px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.search-results { margin-top: 10px; display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.sr { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.sr.on, .sr:hover { background: var(--accent-soft); }
.sr-type { grid-row: span 2; font-size: 11.5px; font-weight: 800; color: var(--accent-text); padding-top: 2px; text-transform: capitalize; }
.sr b { font-weight: 700; font-size: 14px; }
.sr small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; justify-items: end; }
.toast { display: flex; gap: 10px; align-items: center; max-width: 420px; padding: 11px 16px; border-radius: 14px; background: var(--solid); color: var(--text); border: 1px solid var(--line-2); font-size: 13.5px; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.toast .ic { color: var(--c-ok); }
.toast-bad { background: #3B0D1A; color: #fff; border-color: var(--c-bad); }
.toast-bad .ic { color: var(--c-bad); }
.toast-live .ic { color: var(--accent-text); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }

/* ---------- tamaños ---------- */
@media (max-width: 1180px) {
  .span-3, .span-4, .span-5, .span-7 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
  .w-greet, .w-clock { grid-column: span 12; }
  .w-clock { align-items: flex-start; text-align: left; }
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .person-hero { grid-template-columns: auto minmax(0, 1fr); }
  .ph-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --rail: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: var(--shadow-lg); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 16px; color: var(--text-2); text-decoration: none; font-size: 10.5px; font-weight: 700; border: 0; background: transparent; }
  .dock .ic { width: 21px; height: 21px; }
  .dock a.on { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
  .only-mobile { display: inline-grid; }
  .search-pill { min-width: 0; margin-left: 0; flex: 1; }
  .search-pill kbd, .online small, .quick .btn span { display: none; }
  .crumbs { display: none; }
  .topbar { gap: 8px; }
  .bento { gap: 12px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture { grid-template-columns: minmax(0, 1fr); }
  .sum-grid, .week-grid, .talk, .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-chips i { font-size: 0; padding: 0; height: 5px; border-radius: 3px; border: 0; background: var(--k); }
  .cal-chips em { font-size: 10px; }
  .person-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habits { grid-template-columns: minmax(0, 1fr) repeat(7, 24px) 36px; gap: 8px 4px; }
  .hb-dot { width: 22px; height: 22px; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .col-k { scroll-snap-align: start; }
  .modal-wrap { padding: 0; align-items: end; }
  .modal { max-height: 92vh; border-radius: var(--r-l) var(--r-l) 0 0; }
  .modal-wrap.is-side { padding: 0; place-items: end stretch; }
  .modal-wrap.is-side .modal { max-width: none; height: auto; max-height: 92vh; }
  #toasts { left: 16px; right: 16px; bottom: 96px; }
  .quick-menu { width: min(340px, calc(100vw - 24px)); }
  .w { padding: 16px; }
  .ag-item { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .tl-bar .kfilter { overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 420px) {
  .tlist li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tlist .star { display: none; }
  .clock b { font-size: 54px; }
  .tb-clock { display: none; }
}

/* ---------- equipo del proyecto, fases y reuniones ---------- */
.up { color: var(--c-ok) !important; } .down { color: var(--c-bad) !important; }
.back { margin: 0 0 12px; }
.phases { margin-bottom: 16px; }
.steps-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.step { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; min-width: 0; }
.step:hover { transform: translateY(-2px); border-color: var(--line-2); }
.step::after { content: ''; position: absolute; top: 28px; right: -11px; width: 12px; height: 2px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); font-family: var(--display); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.step-n .ic { width: 15px; height: 15px; stroke-width: 3; }
.step b { font-size: 13.5px; line-height: 1.3; }
.step small { font-size: 11.5px; color: var(--muted); }
.step p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.step-en_curso { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -18px var(--accent); }
.step-en_curso .step-n { border-color: var(--accent); background: var(--accent); color: #fff; animation: pulse 2s ease-in-out infinite; }
.step-hecha .step-n { border-color: var(--c-ok); background: var(--c-ok); color: #fff; }
.team-mini { margin-bottom: 16px; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.team-card { display: grid; justify-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--text); padding: 22px 18px; transition: transform .3s var(--ease), border-color .2s; }
.team-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.team-card.lead { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tc-top { position: relative; margin-bottom: 6px; }
.ph.lg { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--glass-3), 0 0 0 5px var(--accent); }
.tc-lead { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tc-lead .ic { width: 12px; height: 12px; }
.team-card > b { font-size: 16px; margin-top: 6px; }
.team-card > small { font-size: 12.5px; color: var(--muted); }
.tc-radar { width: 100%; max-width: 220px; margin: 4px 0; }
.tc-radar .radar text { font-size: 0; }
.tc-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 0; color: var(--muted); font-size: 12.5px; }
.tc-empty .ic { width: 30px; height: 30px; opacity: .5; }
.tc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 10px 0; border-block: 1px solid var(--line); }
.tc-stats div { display: grid; }
.tc-stats b { font-family: var(--display); font-size: 19px; }
.tc-stats span { font-size: 11px; color: var(--muted); }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.tc-tags span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(52, 211, 153, .14); color: var(--c-ok); }
.radar { width: 100%; height: auto; overflow: visible; }
.rad-ring { fill: none; stroke: var(--line); }
.rad-axis { stroke: var(--line); }
.radar text { fill: var(--text-2); font-size: 10.5px; font-weight: 700; font-family: var(--body); }
.rad-series { transform-origin: center; transform-box: view-box; animation: radIn .9s var(--ease) both; animation-delay: var(--d); }
@keyframes radIn { from { transform: scale(.2); opacity: 0; } }
.member-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; margin-bottom: 16px; }
.member-hero .lead { display: block; margin: 0 0 12px; }
.mh-score { display: grid; justify-items: end; text-align: right; }
.mh-score b { font-family: var(--display); font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.mh-score span { font-size: 12px; color: var(--muted); }
.mh-score em { font-style: normal; font-size: 12.5px; font-weight: 800; margin-top: 4px; }
.comp-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.comp-bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 12.5px; }
.comp-bars .bar { position: relative; overflow: visible; height: 7px; }
.comp-bars .bar i { position: absolute; top: -3px; width: 2px; height: 13px; background: #94A3B8; border-radius: 2px; }
.comp-bars b { font-family: var(--display); text-align: right; font-size: 13px; }
.comp-bars small { font-size: 10.5px; margin-left: 4px; }
.eval-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eval { padding: 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); min-width: 0; }
.eval:first-child { grid-column: 1 / -1; }
.eval h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; color: var(--accent-text); }
.eval h3 .ic { width: 16px; height: 16px; }
.empty-eval { border-style: dashed; }
.note-form { margin-bottom: 14px; }
.note-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 180px auto; gap: 8px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--glass-2); border-left: 3px solid var(--k); }
.note-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--k); }
.note-tag .ic { width: 14px; height: 14px; }
.notes p { margin: 0 0 2px; font-size: 14px; }
.notes small { font-size: 12px; color: var(--muted); }
.measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.pick-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.pick-people label { display: grid; grid-template-columns: auto 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.pick-people label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick-people img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pick-people span { display: grid; min-width: 0; }
.pick-people b { font-size: 13px; }
.pick-people small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-list li { display: flex; align-items: center; gap: 10px; }
.mt-list li > a:first-child { flex: 1; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.mt-list li > a:first-child:hover { background: var(--glass-2); }
.mt-date { display: grid; justify-items: center; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--k-reunion) 18%, transparent); font-size: 11px; color: var(--text-2); }
.mt-date b { font-family: var(--display); font-size: 17px; color: var(--text); line-height: 1.1; }
.mt-main { display: grid; min-width: 0; }
.mt-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-main small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.mt-main small .ic { width: 12px; height: 12px; }
.decisions h4 { display: flex; align-items: center; gap: 6px; }
.decisions h4 .ic { width: 15px; height: 15px; color: var(--c-ok); }
.decisions.pending h4 .ic { color: var(--c-mid); }
.decisions.pending { border-color: color-mix(in srgb, var(--c-mid) 35%, transparent); }
@media (max-width: 860px) {
  .member-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .mh-score { justify-items: start; text-align: left; }
  .eval-grid, .measure-grid { grid-template-columns: minmax(0, 1fr); }
  .note-row { grid-template-columns: minmax(0, 1fr); }
  .notes li { grid-template-columns: minmax(0, 1fr) auto; }
  .notes .note-tag { grid-column: 1 / -1; }
  .comp-bars li { grid-template-columns: 110px minmax(0, 1fr) 48px; }
  .step::after { display: none; }
}

.ring-num { display: flex; align-items: baseline; justify-content: center; gap: 1px; }

/* ================= v5: ingreso con Google, Mi día, tabla de tareas, clientes, subproyectos, Gantt, galería, guía y efectos ================= */

/* transición entre páginas */
.page.page-in { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
/* tarjetas que se inclinan un poco hacia el mouse */
.pcard, .ccard, .team-card, .sub-card, .story-card { transform-style: preserve-3d; }
@media (hover: hover) {
  .pcard:hover, .ccard:hover, .sub-card:hover { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--pc, var(--cc, var(--accent))) 70%, transparent); }
}
/* brillo que recorre los anillos */
.chart-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--spin, 0deg), transparent 0 80%, rgba(255, 255, 255, .25) 90%, transparent); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 71%, transparent 72%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 71%, transparent 72%); animation: spin 6s linear infinite; opacity: .6; pointer-events: none; }
/* explosión al completar */
.burst { position: fixed; z-index: 300; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--c); transform: rotate(var(--a)) translateY(0); animation: burst .75s var(--ease) forwards; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-46px) scale(.3); opacity: 0; } }

/* ingreso */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); gap: 12px; }
.btn-google:hover { background: #f4f4f6; }
.pw-toggle { margin: 14px auto 4px; display: flex; justify-content: center; width: 100%; color: var(--text-2); }
.pw-toggle.on { color: var(--accent-text); }
.pw-box { margin-top: 10px; animation: rise .35s var(--ease) both; }

/* perfil */
.profile-hero { padding: 0; overflow: hidden; margin-bottom: 16px; }
.profile-cover { height: 150px; background: center / cover; mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.profile-main { display: flex; gap: 22px; align-items: flex-end; padding: 0 26px 24px; margin-top: -60px; flex-wrap: wrap; }
.profile-main .avatar.xl { width: 116px; height: 116px; box-shadow: 0 0 0 4px var(--solid), 0 0 0 6px var(--accent); font-size: 38px; }
.profile-main .lead { display: block; margin: 0 0 10px; }
.style-preview { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; margin-bottom: 12px; }
.style-preview span { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 0 18px -2px currentColor; }
.style-preview small { color: var(--muted); }

/* Mi día */
.day-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 16px; padding: 22px 24px; }
.day-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.day-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.day-groups, .day-side { display: grid; gap: 14px; min-width: 0; }
.day-group { border-left: 3px solid var(--pc); }
.dg-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px; gap: 12px; align-items: center; margin-bottom: 8px; }
.dg-title { display: grid; min-width: 0; }
.dg-title a { color: var(--text); text-decoration: none; }
.dg-title small { color: var(--muted); font-size: 12px; }
.day-group .tlist li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.day-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 20px; }
.day-empty .ic { width: 40px; height: 40px; color: var(--c-mid); }
.bring { list-style: none; padding: 0; margin: 12px 0; max-height: 50vh; overflow-y: auto; display: grid; gap: 4px; }
.bring label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.bring label:hover, .bring label:has(input:checked) { background: var(--accent-soft); }
.bring span { display: grid; min-width: 0; }
.bring small { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.bring small i { width: 7px; height: 7px; border-radius: 2px; }

/* tabla de tareas (estilo Monday) */
.tt-group { margin-bottom: 18px; }
.tt-ghead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--pc); }
.tt-ghead b { font-size: 15px; }
.tt-ghead .muted { font-size: 12.5px; }
.tt-toggle { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--pc); transform: rotate(90deg); transition: transform .2s var(--ease); }
.collapsed .tt-toggle { transform: none; }
.collapsed .tt-table { display: none; }
.battery { display: flex; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; margin-left: auto; gap: 1px; }
.tt-table { border-radius: 14px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-left: 4px solid var(--pc); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.tt-row { display: grid; grid-template-columns: 40px minmax(220px, 1fr) 140px 118px 92px 112px 44px; align-items: stretch; border-top: 1px solid var(--line); min-height: 46px; }
.tt-row:first-child { border-top: 0; }
.tt-head { font-size: 11.5px; font-weight: 800; color: var(--muted); min-height: 36px; text-transform: uppercase; letter-spacing: .04em; }
.tt-head > span { display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.tt-head > span:nth-child(2) { justify-content: flex-start; }
.tt-head .ic { width: 15px; height: 15px; }
.tt-row:not(.tt-head):hover { background: var(--glass-2); }
.tt-row > .tc { align-self: center; justify-self: center; }
.tt-row.done .tc { background: #10B981; border-color: #10B981; color: #fff; }
.tt-title { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; padding: 6px 10px; border: 0; background: transparent; color: var(--text); border-left: 1px solid var(--line); }
.tt-title b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-title small { flex: none; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--glass-3); color: var(--text-2); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-title em { color: var(--muted); display: inline-flex; }
.tt-title em .ic { width: 14px; height: 14px; }
.tt-title:hover b { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.tt-row.done .tt-title b { text-decoration: line-through; color: var(--muted); }
.cell { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 700; min-width: 0; }
button.cell:not(:disabled):hover { background: var(--glass-3); }
.pill-cell { background: var(--c); color: #fff; border-left-color: rgba(0, 0, 0, .15); text-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: filter .15s; }
.pill-cell:not(:disabled):hover { filter: brightness(1.12); background: var(--c) !important; }
.pill-cell.soft { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--text); text-shadow: none; }
.date-cell { cursor: pointer; }
.date-cell input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.date-cell.late { color: var(--c-bad); }
.day-cell .ic { width: 17px; height: 17px; opacity: .35; }
.day-cell.on { color: var(--c-mid); }
.day-cell.on .ic { opacity: 1; filter: drop-shadow(0 0 6px var(--c-mid)); }
.own { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.own img, .own i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.own i { display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; }
.own span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own-none { color: var(--muted); }
.tt-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }
.tt-add:hover { color: var(--accent-text); background: var(--glass-2); }
.tt-add .ic { width: 15px; height: 15px; }
.picker { position: absolute; z-index: 150; min-width: 180px; max-height: 320px; overflow-y: auto; padding: 6px; display: grid; gap: 3px; animation: pop .16s var(--ease); }
.picker button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; text-align: left; }
.picker button:hover { background: var(--glass-3); }
.picker i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.picker img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.picker span { display: grid; }
.picker small { font-size: 11px; color: var(--muted); font-weight: 600; }
/* panel lateral de la tarea */
.peek-title { width: 100%; border: 0; background: transparent; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; resize: none; outline: none; padding: 4px 0; margin-bottom: 8px; border-bottom: 2px solid transparent; }
.peek-title:focus { border-bottom-color: var(--accent); }
.peek-props { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 0 0 16px; }
.peek-props dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.peek-props dt .ic { width: 15px; height: 15px; }
.peek-props dd { margin: 0; min-width: 0; }
.peek-props .cell { height: 34px; border-radius: 9px; border: 0; padding: 0 12px; justify-content: flex-start; }
.peek-props .input-sm { width: 100%; }
.peek .btn-danger { margin-top: 14px; }

/* Inicio: widgets nuevos */
.bento { grid-auto-flow: dense; }
.edit-home { float: right; font-size: 12px; letter-spacing: 0; text-transform: none; }
.w-greet h1 { font-size: clamp(26px, 3vw, 38px); }
.w-hero { min-height: 290px; padding: 14px; gap: 8px; }
.hero-quote { font-size: 13.5px; -webkit-line-clamp: 2; }
.myday-mini { display: flex; gap: 16px; align-items: center; }
.myday-mini b { display: block; font-size: 15px; }
.myday-mini p { margin: 4px 0 10px; font-size: 12.5px; }
.big-list { display: grid; gap: 8px; }
.big-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 14px; color: var(--text); text-decoration: none; }
.big-row:hover { background: var(--glass-2); }
.big-row > span { display: grid; gap: 4px; min-width: 0; }
.big-row b { font-size: 13.5px; }
.big-row small { font-size: 12px; color: var(--muted); }
.subs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.sub { position: relative; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--sc) 16%, transparent); font-size: 11px; max-width: 100%; }
.sub i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--sc) 45%, transparent); }
.sub b { position: relative; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: baseline; margin-bottom: 14px; }
.cmp-row > span:first-child { font-size: 13px; color: var(--text-2); }
.cmp-row b { font-family: var(--display); font-size: 26px; }
.cmp-row em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.cmp-bars { grid-column: 1 / -1; display: grid; gap: 3px; }
.cmp-bars i { display: block; height: 6px; width: var(--v); border-radius: 3px; background: var(--accent); animation: sweep 1s var(--ease) both; transform-origin: left; }
.cmp-bars i.prev { background: var(--line-2); }
.big-num { font-family: var(--display); font-size: 28px; font-weight: 600; }
.ev-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.ev-strip a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; scroll-snap-align: start; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.ev-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.ev-strip a:hover img { transform: scale(1.06); }
.ev-strip span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(5, 4, 18, .85)); color: #fff; }
.ev-strip b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-strip small { font-size: 11px; opacity: .75; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.logo-wall a { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; text-decoration: none; color: var(--text-2); font-size: 11.5px; font-weight: 700; transition: transform .25s var(--ease), background .2s; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.logo-wall a:hover { transform: translateY(-3px); background: var(--glass-2); }
.wl { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; }
.wl li { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; opacity: .6; }
.wl li.on { opacity: 1; background: var(--glass-2); }
.wl label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.wl input { accent-color: var(--accent); width: 17px; height: 17px; }
.wl [data-up] .ic { transform: rotate(90deg); }
.wl [data-down] .ic { transform: rotate(90deg); }

/* logos de clientes */
.clogo { display: grid; place-items: center; width: 100%; max-width: 120px; height: 52px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5); }
.clogo.dark { background: #15122F; }
.clogo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.clogo.mono { background: linear-gradient(135deg, var(--cc, var(--accent)), color-mix(in srgb, var(--cc, var(--accent)) 40%, #0b0a20)); color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; }
.clogo.xl { max-width: 220px; width: 220px; height: 96px; padding: 14px 20px; }
.chip-logo { width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 4px; padding: 1px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ccard { display: grid; gap: 4px; text-decoration: none; color: var(--text); transition: transform .3s var(--ease), border-color .2s; border-top: 3px solid var(--cc); }
.ccard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.ccard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ccard-top .clogo { max-width: 150px; }
.ccard b { font-size: 16px; }
.ccard small { font-size: 12.5px; color: var(--muted); }
.ccard-stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-2); font-weight: 700; margin-top: 6px; }
.ccard-stats span { display: flex; align-items: center; gap: 4px; }
.ccard-stats .ic { width: 14px; height: 14px; color: var(--accent-text); }
.ccard-last { font-size: 12px; margin: 6px 0 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; margin-bottom: 16px; border-top: 3px solid var(--cc); }
.ch-stats { display: flex; gap: 18px; align-items: center; }
.ch-stats > div { display: grid; }
.ch-stats b { font-family: var(--display); font-size: 28px; }
.ch-stats span { font-size: 12px; color: var(--muted); }
.cgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cgal a { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.cgal img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.cgal a:hover img { transform: scale(1.06); }
.cgal span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* subproyectos */
.subprojects { margin-bottom: 16px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sub-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); border-left: 3px solid var(--sc); color: var(--text); text-decoration: none; transition: transform .25s var(--ease); }
.sub-card:hover { transform: translateY(-3px); }
.sub-card div { display: grid; min-width: 0; }
.sub-card b { font-size: 14px; }
.sub-card small { font-size: 12px; color: var(--muted); }

/* Gantt */
.gantt { padding: 14px 16px; overflow-x: auto; }
.gt-head, .gt-row { display: grid; grid-template-columns: 260px minmax(560px, 1fr); gap: 12px; align-items: center; }
.gt-head { position: sticky; top: 0; height: 34px; }
.gt-scale { position: relative; height: 100%; border-bottom: 1px solid var(--line); }
.gt-scale span { position: absolute; bottom: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; transform: translateX(-2px); }
.gt-today { position: absolute; top: 0; height: calc(100% + 2000px); width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 2; pointer-events: none; }
.gt-today b { position: absolute; top: 0; left: 6px; font-size: 10.5px; color: var(--accent-text); font-style: normal; }
.gantt { position: relative; }
.gantt .gt-head { overflow: hidden; }
.gt-row { min-height: 40px; border-bottom: 1px dashed var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.gt-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.gt-label a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-label .ic { width: 15px; height: 15px; color: var(--muted); flex: none; }
.gt-task .gt-label { font-weight: 500; color: var(--text-2); }
.gt-task .gt-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.gt-task .gt-label .ic { display: none; }
.gt-sub .gt-label { font-weight: 800; }
.gt-track { position: relative; height: 28px; }
.gt-grid { position: absolute; top: -6px; bottom: -6px; width: 1px; background: var(--line); }
.gt-bar { position: absolute; top: 4px; height: 20px; border-radius: 7px; background: color-mix(in srgb, var(--c) 40%, transparent); border: 1px solid var(--c); overflow: hidden; animation: sweep .9s var(--ease) both; transform-origin: left; box-shadow: 0 0 14px -4px var(--c); }
.gt-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); }
.gt-bar em { position: relative; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; padding-left: 8px; line-height: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.gt-diamond { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; background: var(--c); transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 10px var(--c); }
.gt-diamond.done { opacity: .55; }

/* galería (historia con imágenes) */
.story { columns: 3 280px; column-gap: 14px; }
.story-card { break-inside: avoid; margin-bottom: 14px; padding: 0; overflow: hidden; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.story-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--glass-2); }
.story-img img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.story-card:hover .story-img img { transform: scale(1.04); }
.story-img .chip { position: absolute; right: 10px; bottom: 10px; }
.story-body { display: grid; gap: 4px; padding: 12px 14px 14px; border-top: 3px solid var(--k, var(--accent)); }
.story-body b { font-size: 14.5px; }
.story-body p { margin: 0; font-size: 13px; color: var(--text-2); }

/* guía */
.guide-hero { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 26px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 35%, var(--glass)), var(--glass)); }
.guide-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-badges span { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--glass-3); font-weight: 700; font-size: 13px; }
.guide-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.gstep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.gstep-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.gstep b { font-size: 15px; }
.gstep p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.guide-flow { margin-bottom: 16px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; padding: 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); }
.flow-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.flow b { font-size: 14px; }
.flow p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.guide-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }

@media (max-width: 1100px) { .day-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .tt-table { overflow-x: auto; }
  .tt-row { grid-template-columns: 40px minmax(200px, 1fr) 120px 110px 84px 100px 40px; min-width: 700px; }
  .client-hero, .day-hero { grid-template-columns: minmax(0, 1fr); }
  .dg-head { grid-template-columns: auto minmax(0, 1fr); }
  .dg-bar { grid-column: 1 / -1; }
  .peek-props { grid-template-columns: 110px minmax(0, 1fr); }
  .gt-head, .gt-row { grid-template-columns: 150px minmax(520px, 1fr); }
  .edit-home { float: none; display: inline-flex; margin-left: 10px; }
}

.w-myday, .w-compare, .w-overdue { align-self: start; }
