/* Squad HQ · estilos. Marca Squad: Poppins, carbón #151E2E, coral #EC4D3C, amarillo #F6B83D,
   celeste #50CAE7, azul #2563EB, violeta #6C3EE8, fondo #F7F7F8, texto #3C4658 */
:root {
  --ink: #151E2E; --text: #3C4658; --muted: #5B6577; --line: #E4E7EC; --soft: #F7F7F8; --bg: #EEF0F3;
  --blue: #2563EB; --blue-d: #1D4ED8; --coral: #EC4D3C; --yellow: #F6B83D; --sky: #50CAE7; --violet: #6C3EE8;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); text-decoration: underline; }
h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.3px; }
h2 { font-size: 17px; margin: 0; }
small { display: block; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1; min-width: 0; }

/* ---------- Barra superior ---------- */
.topbar { height: 64px; background: var(--ink); display: flex; align-items: center; gap: 24px; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 16px; }
.brand:hover { color: #fff; text-decoration: none; }
.topnav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.topnav a { color: #C9D1DE; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.topnav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.topuser { display: flex; align-items: center; gap: 10px; }

.crumbs { max-width: 1136px; margin: 18px auto 0; padding: 0 16px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { font-weight: 500; }
.crumbs { align-items: center; gap: 14px; }
.crumbs-path { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(21,30,46,.08); }
.back-btn:hover { text-decoration: none; color: var(--ink); border-color: var(--ink); }
.back-btn:hover svg { transform: translateX(-2px); }
.back-btn svg { transition: transform .15s; }
.back-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
body.inner .crumbs .back-btn { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); box-shadow: none; }
body.inner .crumbs .back-btn:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.page { max-width: 1136px; margin: 12px auto 48px; padding: 0 16px; }

/* ---------- Componentes base ---------- */
.card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(21,30,46,.08); padding: 32px 40px; }
.card.narrow { max-width: 760px; margin: 0 auto; }
.card.empty { text-align: center; padding: 64px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.page-head .row input { width: auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: none; background: var(--ink); color: #fff; font: 600 14px Poppins, sans-serif; cursor: pointer; white-space: nowrap; list-style: none; }
.btn:hover { background: #26324A; color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #D0D5DD; font-weight: 500; }
.btn.ghost:hover { background: var(--soft); }
.btn.small { min-height: 36px; font-size: 13px; padding: 0 14px; }
.linkbtn { background: none; border: none; color: var(--blue); font: 500 13px Poppins, sans-serif; cursor: pointer; padding: 6px; }
.linkbtn.danger { color: #B42318; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
input, select, textarea { font: 400 15px Poppins, sans-serif; color: var(--ink); padding: 10px 12px; min-height: 44px; border: 1px solid #D0D5DD; border-radius: 10px; background: #fff; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 1px; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
label.check input { width: 20px; min-height: 20px; }
.swatches { border: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.swatches legend { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.swatch { flex-direction: row; }
.swatch input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.swatch span { width: 36px; height: 36px; border-radius: 10px; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); cursor: pointer; }
.swatch input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid rgba(37,99,235,.35); }
.eyebrow { font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin: 28px 0 12px; }
.tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px; color: var(--c, var(--blue-d)); background: color-mix(in srgb, var(--c, var(--blue)) 12%, #fff); font-weight: 500; }
.pin-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #B42318; }
.avatar { width: var(--s); height: var(--s); border-radius: 50%; color: #fff; font-size: calc(var(--s) * .36); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar.more { background: var(--line); color: var(--text); }
.stack-avatars { display: inline-flex; }
.avatar.has-photo { background: var(--soft); overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-avatars .avatar { border: 2px solid #fff; margin-left: -8px; }
.stack-avatars .avatar:first-child { margin-left: 0; }
.iconlink { color: var(--muted); display: inline-flex; padding: 8px; border-radius: 8px; }
.iconlink:hover { background: var(--soft); color: var(--ink); }

/* ---------- Login ---------- */
/* ---------- Login (pantalla completa, sin barra superior) ---------- */
body.bare { background: var(--ink); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-arcs { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 620px; height: 620px; opacity: .22; pointer-events: none; }
.login-arcs path { fill: none; stroke-width: 26; stroke-linecap: round; }
.login-logo { width: 200px; height: auto; position: relative; }
.login-copy { position: relative; max-width: 640px; }
.login-copy > .login-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 6px 24px 6px 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; box-shadow: 0 8px 24px rgba(246,184,61,.28); }
.login-kicker-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.login-hero h1 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -1px; margin: 0 0 22px; color: #fff; }
.hl-coral { color: var(--coral); }
.hl-yellow { color: var(--yellow); }
.login-copy > p { color: #C9D1DE; font-size: 19px; line-height: 1.6; font-weight: 300; margin: 0 0 32px; }
.login-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.login-tags li { padding: 10px 20px; border-radius: 999px; font-size: 15.5px; font-weight: 500; border: 1.5px solid; }
.tag-coral { color: #FF8577; border-color: var(--coral); }
.tag-sky { color: var(--sky); border-color: var(--sky); }
.tag-yellow { color: var(--yellow); border-color: var(--yellow); }
.login-stripe { position: relative; display: flex; height: 6px; border-radius: 6px; overflow: hidden; max-width: 320px; }
.login-stripe span { flex: 1; }
.login-stripe span:nth-child(1) { background: var(--coral); }
.login-stripe span:nth-child(2) { background: var(--yellow); }
.login-stripe span:nth-child(3) { background: var(--sky); }
.login-stripe span:nth-child(4) { background: var(--blue); }
.login-stripe span:nth-child(5) { background: var(--violet); }
.login-panel { background: var(--soft); display: flex; align-items: center; justify-content: center; padding: 48px 32px; border-radius: 28px 0 0 28px; }
.login-box { width: 100%; max-width: 420px; }
.login-iso { width: 40px; height: auto; margin-bottom: 12px; }
.login-box h2 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 4px; }
.login-box .muted { margin: 0 0 14px; }
.login-dev { font-size: 12.5px; color: #8A5A00; background: #FEF4DF; border-left: 3px solid var(--yellow); padding: 8px 12px; border-radius: 8px; margin: 0 0 22px; }
.userpick { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--blue)); border-radius: 14px; background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); min-height: 64px; transition: transform .15s, box-shadow .15s; }
.userpick:hover, .userpick:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,30,46,.10); }
.userpick:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.stack .userpick:nth-child(4n+1) { --c: var(--coral); }
.stack .userpick:nth-child(4n+2) { --c: var(--yellow); }
.stack .userpick:nth-child(4n+3) { --c: var(--sky); }
.stack .userpick:nth-child(4n+4) { --c: var(--violet); }
.userpick-go { font-size: 18px; color: var(--c); font-weight: 600; transition: transform .15s; }
.userpick:hover .userpick-go { transform: translateX(3px); }
/* Mobile y tablet: una sola pantalla carbón, sin bloques apilados */
@media (max-width: 900px) {
  .login-wrap { display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--ink); }
  .login-hero { position: static; overflow: visible; padding: 28px 20px 0; gap: 24px; }
  .login-arcs { width: 520px; height: 520px; top: auto; bottom: -140px; right: -220px; transform: none; opacity: .2; }
  .login-hero h1 { font-size: 32px; margin-bottom: 0; }
  .login-copy > p:not(.login-kicker), .login-tags, .login-stripe { display: none; }
  .login-wrap::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--coral) 0 20%, var(--yellow) 20% 40%, var(--sky) 40% 60%, var(--blue) 60% 80%, var(--violet) 80%); }
  .login-copy > .login-kicker { margin-bottom: 14px; font-size: 13px; letter-spacing: 2px; padding: 5px 18px 5px 5px; }
  .login-kicker-ic { width: 32px; height: 32px; }
  .login-panel { position: relative; background: transparent; border-radius: 0; padding: 24px 20px 32px; align-items: flex-start; }
  .login-iso { display: none; }
  .login-box h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .login-box .muted { color: #C9D1DE; }
  .login-dev { background: rgba(246,184,61,.12); color: #F9CF7A; }
  .userpick { border-color: transparent; }
}
@media (max-width: 640px) {
  .login-logo { width: 140px; }
  .login-hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .userpick, .userpick-go { transition: none; } .userpick:hover { transform: none; } }
.userpick strong { display: block; font-size: 14px; }

/* ---------- Inicio ---------- */
/* Inicio con bienvenida de color (prueba: para volver atrás, sacá "hero" y "bodyClass" en projects.js) */
body.home { background-image: radial-gradient(circle at 6% 75%, rgba(80,202,231,.16), transparent 30%), radial-gradient(circle at 96% 90%, rgba(108,62,232,.10), transparent 28%), radial-gradient(circle at 60% 110%, rgba(246,184,61,.14), transparent 30%); background-attachment: fixed; }
/* Páginas internas (proyectos y sus secciones): versión suave del fondo del inicio */
body.inner { position: relative; isolation: isolate; background-image: radial-gradient(circle at 6% 75%, rgba(80,202,231,.12), transparent 30%), radial-gradient(circle at 96% 90%, rgba(108,62,232,.08), transparent 28%), radial-gradient(circle at 60% 110%, rgba(246,184,61,.10), transparent 30%); background-attachment: fixed; }
body.inner::before { content: ''; position: absolute; z-index: -1; top: 64px; left: 0; right: 0; height: 210px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke-width='26' stroke-linecap='round' opacity='.2'><path d='M520 90 C 420 10, 200 20, 150 150 C 110 260, 230 300, 330 320' stroke='%23EC4D3C'/><path d='M300 250 C 520 280, 600 420, 480 540 C 420 600, 330 600, 270 580' stroke='%23F6B83D'/><path d='M40 470 C 80 560, 170 600, 230 590' stroke='%2350CAE7'/></svg>") no-repeat right -40px top -150px / 460px 460px, linear-gradient(120deg, #151E2E 0%, #1B2740 55%, #2A1F4F 100%); }
body.inner::after { content: ''; position: absolute; z-index: -1; top: 269px; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--coral) 0 20%, var(--yellow) 20% 40%, var(--sky) 40% 60%, var(--blue) 60% 80%, var(--violet) 80%); }
body.inner .crumbs { color: #C9D1DE; }
body.inner .crumbs a { color: #fff; }
body.inner .page > .card:first-child, body.inner .page > article:first-child { box-shadow: 0 2px 4px rgba(21,30,46,.06), 0 18px 40px -20px rgba(21,30,46,.35); }
@media (max-width: 640px) { .crumbs:has(.back-btn) .crumbs-path { display: none; } }
@media (max-width: 640px) { body.inner::before { height: 150px; background-size: 340px 340px, auto; background-position: right -80px top -120px, 0 0; } body.inner::after { top: 209px; } }
.home-hero { position: relative; overflow: hidden; background: var(--ink) linear-gradient(120deg, #151E2E 0%, #1B2740 55%, #2A1F4F 100%); color: #fff; padding: 40px 16px 104px; }
.home-arcs { position: absolute; right: -60px; top: -170px; width: 560px; height: 560px; opacity: .3; pointer-events: none; }
.home-arcs path { fill: none; stroke-width: 26; stroke-linecap: round; }
.home-hero-in { position: relative; max-width: 1104px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.home-date { margin: 0 0 6px; color: var(--sky); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.home-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -.8px; margin: 0 0 6px; color: #fff; }
.home-sub { margin: 0; color: #C9D1DE; font-weight: 300; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F9C862; color: var(--ink); text-decoration: none; }
.home-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--coral) 0 20%, var(--yellow) 20% 40%, var(--sky) 40% 60%, var(--blue) 60% 80%, var(--violet) 80%); }
.home .page { position: relative; margin-top: -72px; }
.home .home-section { color: #C9D1DE; }
.home-section { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 8px 0 14px; }
.grid-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.project-card { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); padding: 24px 20px 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); box-shadow: 0 1px 3px rgba(21,30,46,.08); border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--pc, var(--blue)); }
.project-card:hover, .project-card:focus-visible { text-decoration: none; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,30,46,.10); }
.project-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.project-swatch { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.project-swatch.has-img, .project-icon.has-img { background: #fff !important; border: 1px solid var(--line); overflow: hidden; padding: 0; }
.project-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Selector de imagen del proyecto (nuevo proyecto y ajustes) */
.icon-picker { border: none; padding: 0; margin: 0; }
.icon-picker legend { font-weight: 500; font-size: 14px; margin-bottom: 8px; padding: 0; }
.icon-picker-row { display: flex; align-items: center; gap: 16px; }
.icon-preview { width: 64px; height: 64px; border-radius: 14px; }
.icon-preview svg { color: #fff; }
.icon-picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.icon-picker-actions small { flex-basis: 100%; }
.icon-picker-error { color: #B42318; }
/* Foto de un mensaje: selector (nuevo mensaje) y vista del anuncio */
.photo-picker { display: flex; flex-direction: column; gap: 10px; }
.photo-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; border: 1.5px dashed #C9CFD6; border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 13px; overflow: hidden; }
.photo-preview.has-img { border-style: solid; border-color: var(--line); background: #fff; min-height: 0; }
.photo-img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.post-photo { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; margin: 18px 0 6px; box-shadow: 0 8px 24px -14px rgba(21,30,46,.35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-ghost:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.project-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FEF4DF; color: #8A5A00; }
.project-name { font-weight: 600; font-size: 17px; }
.project-desc { font-size: 13px; color: var(--muted); flex: 1; }
.project-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } .project-card:hover { transform: none; } }

/* ---------- Página de proyecto ---------- */
.card.project { position: relative; }
.project-edit { position: absolute; top: 20px; right: 20px; min-height: 44px; padding: 0 14px; font-size: 13px; }
.form-actions { gap: 10px; }
.project-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 32px; }
.project-icon { width: 76px; height: 76px; border-radius: 18px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 700; }
.lead { margin: 0; max-width: 680px; color: var(--text); font-weight: 300; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips.small { justify-content: flex-start; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #EEF3FF; color: var(--blue-d); font-size: 13px; font-weight: 500; min-height: 40px; }
.members { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
/* Recuadros de herramientas: relieve, franja y degradé del color de cada una */
.tool { --tc: var(--blue); --tbg: #EEF3FF; position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(21,30,46,.06); border-radius: 18px; padding: 24px 20px 20px; color: var(--ink); display: flex; flex-direction: column; gap: 12px; min-height: 340px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tbg) 40%, #fff) 0%, #fff 28%);
  box-shadow: 0 1px 2px rgba(21,30,46,.06), 0 10px 28px -14px rgba(21,30,46,.22), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .2s ease, box-shadow .2s ease; }
.tool::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 45%, #fff)); }
.tool:hover, .tool:focus-visible { transform: translateY(-4px); text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 4px rgba(21,30,46,.06), 0 22px 40px -18px color-mix(in srgb, var(--tc) 55%, rgba(21,30,46,.4)); }
.tool:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.tool-mark { position: absolute; right: -34px; bottom: -34px; color: var(--tc); opacity: .03; z-index: -1; transition: transform .3s ease, opacity .3s ease; }
.tool:hover .tool-mark { transform: rotate(-8deg) scale(1.06); opacity: .05; }
.tool-scroll { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #C9CFD6 transparent; mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); padding-bottom: 16px; }
.mini-author { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.mini-author small { font-size: 12px; }
.tool .mini-post + .mini-post { border-top: 1px solid rgba(21,30,46,.06); padding-top: 10px; }
.tool h2 { display: flex; align-items: center; gap: 10px; }
.tool-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); color: var(--c); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent), 0 4px 10px -4px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .2s ease; }
.tool:hover .tool-ic { transform: scale(1.08) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .tool, .tool-ic, .tool-mark { transition: none; } .tool:hover, .tool:hover .tool-ic, .tool:hover .tool-mark { transform: none; } }
.mini-post { padding: 4px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mini-post.pinned { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.mini-chat { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-end; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble { background: var(--soft); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 13px; }
.fake-input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #8A93A3; }
.folder-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.folder-list li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #F0F2F5; }
.folder-list li:last-child { border-bottom: none; }
.folder-list li span:nth-child(2) { flex: 1; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.event-row { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
.event-row strong { display: block; font-size: 14px; font-weight: 500; }
.datebox { width: 48px; flex-shrink: 0; text-align: center; border-radius: 8px; background: #F3EEFF; padding: 4px 0; }
.datebox small { color: #5B2FD6; font-weight: 600; font-size: 10px; }
.datebox b { font-size: 17px; }
.door-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.door { background: var(--soft); border-radius: 10px; padding: 14px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.door-grid.big .door { min-height: 90px; }
a.door:hover { background: #E9ECF1; text-decoration: none; color: var(--ink); }
.big-number { font-size: 40px; font-weight: 700; }
.big-number small { display: inline; font-size: 14px; font-weight: 400; }

/* ---------- Listados y detalle ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
/* Categorías como hashtags de color */
.hashtag { display: inline-flex; align-items: center; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
.hashtag.is-light { color: #6B4500; background: color-mix(in srgb, var(--c) 45%, #fff); }
.filter.is-light { color: #6B4500; }
.filter.is-light.on { color: var(--ink); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.catpick legend, .statuspick legend { font-size: 13px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
/* Estado de un mensaje: verde activo, rojo inactivo */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-on, .statuspick-opt.is-on { --st: #067647; --st-bg: #ECFDF3; }
.status.is-off, .statuspick-opt.is-off { --st: #B42318; --st-bg: #FEF3F2; }
.status { color: var(--st); background: var(--st-bg); }
.statuspick { border: none; padding: 0; margin: 0; }
.statuspick-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.statuspick-opt { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--st); }
.statuspick-opt input { accent-color: var(--st); width: 18px; min-height: 18px; margin: 0; }
.statuspick-opt:has(input:checked) { border-color: var(--st); background: var(--st-bg); }
.statuspick-opt:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
/* Desplegable de categoría (nuevo mensaje) */
.catpick { border: none; padding: 0; margin: 0; }
.catpick-menu { position: relative; }
.catpick-menu summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.catpick-menu summary::-webkit-details-marker { display: none; }
.catpick-menu summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.catpick-menu[open] summary svg { transform: rotate(180deg); }
.catpick-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(21,30,46,.12); padding: 6px; display: flex; flex-direction: column; }
.catpick-opt { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
.catpick-opt:hover, .catpick-opt:focus-within { background: var(--soft); }
.catpick-opt:has(input:checked) { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); }
.catpick-opt .hashtag { font-size: 13px; padding: 5px 12px; }
/* Desplegable de categoría dentro de la lista de anuncios */
.cat-inline summary { min-height: 44px; padding: 0 8px 0 4px; border-color: transparent; background: transparent; gap: 6px; justify-content: flex-start; }
.cat-inline summary:hover, .cat-inline[open] summary { border-color: var(--line); background: #fff; }
.cat-inline summary svg { color: var(--muted); flex-shrink: 0; }
.cat-inline .catpick-list { right: auto; min-width: 200px; }
.catpick-opt { border: none; background: none; font: inherit; text-align: left; width: 100%; }
.catpick-opt.is-current { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); }
.catpick-error { color: #B42318; font-size: 13px; margin-top: 4px; }
.filter { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 10%, #fff); }
.filter.on { background: var(--c, var(--ink)); color: #fff; font-weight: 600; }
.filter:hover { text-decoration: none; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li a { display: flex; gap: 14px; align-items: center; padding: 16px 8px; border-bottom: 1px solid #F0F2F5; color: var(--ink); }
.post-list li a:hover { background: var(--soft); text-decoration: none; }
.post-list li.pinned a { background: var(--soft); border-radius: 12px; margin-bottom: 8px; border-bottom: none; }
.post-list strong { display: block; font-size: 15px; }
/* Lista de anuncios en columnas: mensaje · categoría · estado */
.post-table li { display: grid; grid-template-columns: minmax(0, 1fr) 170px 130px; align-items: center; gap: 12px; border-bottom: 1px solid #F0F2F5; }
.post-table li a.post-main { border-bottom: none; }
.post-table.with-pin li { grid-template-columns: minmax(0, 1fr) 170px 130px 64px; }
.post-pin { display: flex; justify-content: center; }
.pin-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
.pin-btn:hover { border-color: var(--coral); color: var(--coral); }
.pin-btn.is-on { background: var(--coral); border-color: var(--coral); color: #fff; }
.pin-btn.is-on svg { fill: currentColor; }
.pin-btn.is-on:hover { background: #D93A2A; }
.pin-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.post-table.with-pin .post-head span:last-child { text-align: center; }
.pin-note { color: #8A5A00; background: #FEF4DF; border-left: 3px solid var(--yellow); padding: 8px 12px; border-radius: 8px; margin-top: -6px; }
.post-table li.pinned { background: var(--soft); border-radius: 12px; margin-bottom: 8px; border-bottom: none; }
.post-table li.pinned a { background: none; margin: 0; }
.post-table .post-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 0 8px 8px; }
.post-table .post-head span:first-child { padding-left: 52px; }
.post-cat, .post-status { display: flex; align-items: center; }
/* Interruptor activo (verde) / inactivo (rojo) */
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 600 13px Poppins, sans-serif; cursor: pointer; color: var(--st); }
.switch.is-on { --st: #067647; --st-bg: #ECFDF3; }
.switch.is-off { --st: #B42318; --st-bg: #FEF3F2; }
.switch:hover { background: var(--st-bg); border-color: var(--st); }
.switch:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.switch-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--st); flex-shrink: 0; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.is-on .switch-knob { left: 18px; }
@media (max-width: 640px) {
  .post-table .post-head { display: none; }
  .post-table li { grid-template-columns: 1fr auto; gap: 4px 10px; padding-bottom: 12px; }
  .post-table li a.post-main { grid-column: 1 / -1; padding-bottom: 4px; }
  .post-table .post-cat { padding-left: 60px; }
  .post-table.with-pin li { grid-template-columns: 1fr auto auto; }
  .post-table.with-pin li a.post-main { grid-column: 1 / -1; }
  .post-table.with-pin .post-cat { padding-left: 0; min-width: 0; }
  .post-table .post-cat, .post-table .post-status { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .switch-knob { transition: none; } }
.doc .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.byline form, .byline a { margin-left: auto; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 28px 0 8px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 22px 0 6px; }
.prose h4 { font-size: 16px; color: var(--ink); margin: 18px 0 4px; }
.prose p { margin: 0 0 12px; }
.prose li.task { list-style: none; margin-left: -20px; }
.comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; }
.comment .prose { font-size: 14px; }
.answers { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

/* ---------- Documentación ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.doc-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.doc-card:hover { text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(21,30,46,.08); }
.doc-cover { height: 140px; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; }
.doc-cover b { font-size: 24px; line-height: 1.1; }
.doc-cover i { font-style: normal; font-weight: 500; color: rgba(255,255,255,.88); }
.doc-cover.dark i, .cover.dark .cover-sub { color: var(--yellow); }
.doc-cover.light, .cover.light { color: var(--ink); }
.doc-cover.light i, .cover.light .cover-sub { color: rgba(21,30,46,.8); }
.doc-info { padding: 12px 16px; }
.doc-info strong { font-size: 14px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.folder-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; color: var(--ink); }
.folder-card:hover { text-decoration: none; color: var(--ink); border-color: #C9CFD6; }
.folder-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.folder-tab { width: 38px; height: 30px; border-radius: 6px; flex-shrink: 0; display: inline-block; }
.folder-tab.big { width: 44px; height: 34px; }
.folder-items { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text); flex: 1; }
.card.flush { padding: 0; overflow: hidden; max-width: 920px; margin: 0 auto; }
.cover { min-height: 300px; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #fff; }
.cover h1 { font-size: 56px; line-height: 1.05; letter-spacing: -1px; margin: 0; }
.cover-sub { font-size: 24px; font-weight: 500; color: rgba(255,255,255,.88); margin: 0; }
.cover-logo { width: 160px; }
.cover-bar { width: 62px; height: 7px; border-radius: 4px; background: var(--coral); }
.doc-body { padding: 28px 56px 40px; }
.popover { position: relative; }
.popover summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; width: 320px; box-shadow: 0 12px 32px rgba(21,30,46,.15); z-index: 5; }

/* ---------- Pantallas con formulario al costado ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.side { background: var(--soft); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plain.past { opacity: .6; }
.list-link { display: block; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.list-link:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.people { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; align-items: center; gap: 10px; }
.people li span:nth-child(2) { flex: 1; }
.card.narrow h2 { margin-top: 28px; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px 16px; }
.chat-line { display: flex; gap: 10px; }
.chat-line > div > div { color: var(--text); overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Timesheet ---------- */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--soft); border-radius: 12px; padding: 12px 16px; min-width: 120px; }
.stat b { font-size: 24px; display: block; }
.day { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.day-head { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--soft); font-size: 14px; }
.entry { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #F0F2F5; font-size: 14px; }
.filters-form label { min-width: 180px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #F0F2F5; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.num { text-align: right; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .topnav { min-width: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 0; }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-short { display: inline !important; }
  .topnav a { padding: 8px; font-size: 13px; white-space: nowrap; }
  .topuser { flex-shrink: 0; gap: 6px; }
  .brand span { display: none; }
  .card { padding: 22px 18px; border-radius: 14px; }
  .tools { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .cover { padding: 36px 24px; min-height: 220px; }
  .cover h1 { font-size: 38px; }
  .doc-body { padding: 22px 20px 28px; }
  .project-edit { position: static; align-self: flex-end; margin: -6px 0 12px auto; display: flex; width: max-content; }
  .pop { right: auto; left: 0; width: min(320px, 86vw); }
  .chat { height: calc(100vh - 130px); }
}

.nav-short { display: none; }
/* ---------- Mi perfil ---------- */
/* Menú del avatar (arriba a la derecha) */
.usermenu { position: relative; }
.topavatar { list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; border-radius: 999px; cursor: pointer; color: #C9D1DE; }
.topavatar::-webkit-details-marker { display: none; }
.topavatar:hover { background: rgba(255,255,255,.08); }
.topavatar:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.usermenu[open] .topavatar svg { transform: rotate(180deg); }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(21,30,46,.35), 0 0 0 1px rgba(21,30,46,.06); padding: 8px; }
.usermenu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.usermenu-head span { min-width: 0; }
.usermenu-head strong { display: block; font-size: 14px; color: var(--ink); }
.usermenu-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: none; background: none; font: 500 14px Poppins, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.usermenu-item:hover, .usermenu-item:focus-visible { background: var(--soft); color: var(--ink); text-decoration: none; }
.usermenu-item.danger { color: #B42318; }
.usermenu-item.danger:hover { background: #FEF3F2; color: #B42318; }
.topavatar .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 0; }
.icon-preview.is-round { border-radius: 50%; color: #fff; font-weight: 700; font-size: 22px; }
input.readonly { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.req { color: var(--muted); font-weight: 400; }
.flash { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 16px; }
.flash.ok { background: #ECFDF3; color: #067647; }
.flash.error { background: #FEF3F2; color: #B42318; }
.profile-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FEF4DF; border-left: 4px solid var(--yellow); color: #6B4500; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.profile-banner a { font-weight: 600; color: #6B4500; text-decoration: underline; }

/* ---------- Administración (ABM) ---------- */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 8px 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.admin-tabs a { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-tabs a:hover { color: var(--ink); text-decoration: none; }
.admin-tabs a.on { color: var(--ink); border-bottom-color: var(--coral); }
.abm-list { list-style: none; margin: 0 0 20px; padding: 0; }
.abm-list > li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #F0F2F5; }
.abm-row { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.abm-row input { min-height: 44px; }
.abm-count { white-space: nowrap; }
.small-btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn.danger:hover { color: #B42318; border-color: #B42318; background: #FEF3F2; }
.icon-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.abm-tag .swatches.mini { flex-basis: 100%; padding-left: 4px; }
.swatches.mini .swatch span { width: 28px; height: 28px; }
.abm-add { padding-top: 8px; }
@media (max-width: 640px) {
  .abm-row { flex-wrap: wrap; }
  .abm-row label.grow { flex-basis: 100%; }
}

/* ---------- Calendario ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-nav h2 { font-size: 18px; text-transform: capitalize; }
.icon-btn.flip svg { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal-day { min-height: 92px; border: 1px solid #EEF0F3; border-radius: 12px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: #fff; min-width: 0; }
.cal-day.empty { border: none; background: none; }
.cal-day.is-today { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.cal-num { align-self: flex-start; min-width: 32px; min-height: 32px; border-radius: 8px; border: none; background: none; font: 600 13px Poppins, sans-serif; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
button.cal-num { cursor: pointer; }
button.cal-num:hover { background: var(--soft); }
button.cal-num:focus-visible { outline: 3px solid var(--sky); }
.cal-day.is-today .cal-num { background: var(--coral); color: #fff; }
.cal-ev { font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-side .eyebrow { margin-top: 0; }
.cal-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #F0F2F5; }
.cal-list li:last-child { border-bottom: none; }
.event-row .hashtag { margin: 3px 0 1px; }
/* Pop-up de nuevo evento */
.modal { border: none; border-radius: 20px; padding: 24px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 60px -20px rgba(21,30,46,.45); }
.modal::backdrop { background: rgba(21,30,46,.55); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 20px; }
.picker-field { border: none; padding: 0; margin: 0; }
.picker-field legend { font-size: 13px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
.datepicker { border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.datepicker.need { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-head strong { text-transform: capitalize; }
.dp-head .icon-btn { font-size: 20px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.dp-day { min-height: 40px; border: none; border-radius: 10px; background: none; font: 500 14px Poppins, sans-serif; color: var(--ink); cursor: pointer; }
.dp-day:hover { background: var(--soft); }
.dp-day.is-today { color: var(--coral); font-weight: 700; }
.dp-day.is-sel { background: var(--ink); color: #fff; }
.dp-day:focus-visible { outline: 3px solid var(--sky); }
.picker-date { margin-top: 10px; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cal-day { min-height: 56px; padding: 2px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; background: var(--c); }
  .modal { padding: 18px; }
}

/* Calendario: días bloqueados (pasados, fines de semana, feriados) en gris muy claro */
.cal-day.is-blocked { background: #F7F8FA; border-color: #F0F2F5; color: #B8BFCA; }
.cal-day.is-blocked .cal-num { color: #B8BFCA; }
.cal-day.is-blocked.is-today .cal-num { background: #F3B6AF; color: #fff; }
.cal-hol { font-size: 10px; line-height: 1.2; color: #9AA3B0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
button.cal-day { font: inherit; text-align: left; cursor: pointer; align-items: stretch; color: var(--ink); }
button.cal-day:hover { border-color: var(--ink); box-shadow: 0 4px 12px -6px rgba(21,30,46,.3); }
button.cal-day:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.dp-day.is-blocked { display: inline-flex; align-items: center; justify-content: center; color: #C9CFD6; background: #F7F8FA; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; }
.picker-date { font-size: 13px; font-weight: 500; color: var(--ink); margin: 8px 0 0; }
@media (max-width: 640px) { .cal-hol { display: none; } }

/* ---------- Documentación Squad ---------- */
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.lib-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(21,30,46,.35); }
.lib-link { color: var(--ink); display: flex; flex-direction: column; flex: 1; }
.lib-link:hover { text-decoration: none; color: var(--ink); }
.lib-cover { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-cover.is-color { background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); color: #fff; display: flex; align-items: flex-end; padding: 16px; position: relative; }
.lib-cover.is-color::before { content: ''; position: absolute; top: 14px; left: 16px; width: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--coral) 0 33%, var(--yellow) 33% 66%, var(--sky) 66%); }
.lib-cover.is-color span { font-weight: 700; font-size: 18px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-cover.small { width: 56px; height: 42px; aspect-ratio: auto; border-radius: 8px; flex-shrink: 0; padding: 6px; }
.lib-cover.small.is-color span { font-size: 8px; }
.lib-cover.small.is-color::before { top: 5px; left: 6px; width: 14px; height: 2px; }
.lib-meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; position: relative; }
.lib-meta strong { font-size: 15px; }
.lib-order { position: absolute; top: -16px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.lib-tools { display: flex; gap: 6px; padding: 0 16px 14px; }
.lib-tools .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.lib-mini { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lib-detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-detail-head .lib-cover.small { width: 88px; height: 66px; }
.lib-detail-head h1 { margin: 0 0 4px; }
.lib-frame { display: block; width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.lib-frame.small { height: 320px; min-height: 0; }
.lib-img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 14px; }
.lib-img.small { max-height: 280px; }
.lib-nopreview { text-align: center; padding: 48px 16px; border: 1.5px dashed #C9CFD6; border-radius: 14px; color: var(--muted); }
.lib-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.source-pick { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.source-pick legend, .field-label { font-size: 13px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-opt { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink); }
.seg-opt input { accent-color: var(--ink); width: 16px; min-height: 16px; margin: 0; }
.seg-opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.seg-opt:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
[data-source-panel] { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
[data-source-panel] > label:not(.btn) { width: 100%; }
[data-source-panel][hidden] { display: none; }
.upload-status { font-size: 13px; margin: 0; color: var(--muted); }
.upload-status.ok { color: #067647; }
.upload-status.error { color: #B42318; }

/* ---------- Beneficios ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.benefit-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #fff), #fff 40%); display: flex; flex-direction: column; gap: 6px; }
.benefit-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 16px 16px 0 0; background: var(--c); }
.benefit-card.is-past { opacity: .6; }
.benefit-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.benefit-card h2 { font-size: 18px; margin: 4px 0 0; }
.benefit-company { margin: 0; font-weight: 500; color: var(--muted); }
.benefit-detail { font-size: 14px; }
.benefit-dates { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.benefit-del { position: absolute; top: 14px; right: 14px; }
.status.is-soon { --st: #8A5A00; --st-bg: #FEF4DF; color: var(--st); background: var(--st-bg); }
.benefit-mini small { font-size: 12px; }
.modal-wide { width: min(620px, calc(100vw - 32px)); }
.two-cols { gap: 12px; }
.two-cols > label { min-width: 180px; }
/* Editor de texto */
.field { display: flex; flex-direction: column; }
.editor { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.editor.need { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
.editor:focus-within { border-color: var(--ink); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--soft); border-bottom: 1px solid var(--line); }
.editor-btn { min-width: 40px; min-height: 40px; border: none; border-radius: 8px; background: none; font: 600 14px Poppins, sans-serif; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.editor-btn:hover { background: #fff; }
.editor-btn:focus-visible { outline: 3px solid var(--sky); }
.editor-area { min-height: 160px; max-height: 320px; overflow-y: auto; padding: 12px 14px; outline: none; font-size: 14px; }
.editor-area:empty::before { content: 'Contá en qué consiste el beneficio, cómo se usa y cualquier condición.'; color: #9AA3B0; }
.editor-error { color: #B42318; font-size: 13px; margin: 0; padding: 6px 14px 10px; }
.holiday-date { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 96px; }

/* Calendario: días pasados en blanco (no se pueden elegir, pero no van grisados) */
.cal-day.is-past { background: #fff; }
.cal-day.is-past .cal-num { color: #B8BFCA; }
.dp-day.is-past { display: inline-flex; align-items: center; justify-content: center; color: #C9CFD6; cursor: default; }
/* Documentación Squad: arrastrar y soltar */
[data-sortable] .lib-card { cursor: grab; }
[data-sortable] .lib-card:active { cursor: grabbing; }
.lib-card.is-dragging { opacity: .4; transform: scale(.97); box-shadow: none; outline: 2px dashed var(--ink); outline-offset: 2px; }
[data-sortable].is-saving { opacity: .7; }
.lib-hint { display: flex; align-items: center; gap: 6px; margin: -4px 0 16px; }

/* ---------- Onboarding: línea de tiempo en círculos ---------- */
.ob-lead { max-width: 640px; margin: 0 0 28px; color: var(--muted); }
.ob-timeline { list-style: none; margin: 0; padding: 8px 0 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.ob-timeline::before { content: ''; position: absolute; top: 44px; left: 8%; right: 8%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #EC4D3C, #F6B83D, #50CAE7, #2563EB, #6C3EE8, #067647); opacity: .35; }
.ob-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ob-circle { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 4px solid var(--c); color: var(--c); font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px #fff, 0 12px 24px -10px color-mix(in srgb, var(--c) 70%, transparent); transition: transform .2s; }
.ob-step:hover .ob-circle { transform: scale(1.06); background: var(--c); color: #fff; }
.ob-text { display: flex; flex-direction: column; gap: 2px; }
.ob-num { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--c); }
.ob-text strong { font-size: 15px; line-height: 1.3; }
.ob-text small { font-size: 12px; }
/* Recuadro de Squad HQ */
.ob-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.ob-mini li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; font-weight: 500; position: relative; }
.ob-mini li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; width: 2px; height: calc(100% - 28px); background: #E4E7EC; }
.ob-dot { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--c); color: var(--c); background: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 900px) {
  .ob-timeline { grid-template-columns: 1fr; gap: 0; }
  .ob-timeline::before { top: 20px; bottom: 20px; left: 36px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, #EC4D3C, #F6B83D, #50CAE7, #2563EB, #6C3EE8, #067647); }
  .ob-timeline::before { opacity: .5; }
  .ob-step { flex-direction: row; text-align: left; gap: 18px; padding: 14px 0; }
  .ob-circle { width: 72px; height: 72px; font-size: 24px; flex-shrink: 0; box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c) 70%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .ob-circle { transition: none; } .ob-step:hover .ob-circle { transform: none; } }

/* Accesos directos: editar y borrar (admins en Squad HQ), y accesos sin link todavía */
.door-wrap { position: relative; display: flex; flex-direction: column; }
.door-wrap .door { flex: 1; padding-right: 100px; }
.door-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.door-tools .icon-btn { background: #fff; }
.door.is-missing { background: #fff; border: 1.5px dashed #C9CFD6; color: var(--muted); }
.door.is-missing small { color: #8A5A00; }
.door-edit { background: #fff; border: 1.5px solid var(--ink); }

/* Accesos directos como cajas de color: cada una abre su destino */
.door-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.door-grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.door-tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 14px 14px 16px; border-radius: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 72%, #000));
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c) 80%, transparent); transition: transform .15s, box-shadow .15s; }
.door-tile strong { font-size: 15px; line-height: 1.25; margin-top: auto; }
.door-tile small { color: rgba(255,255,255,.85); font-size: 12px; }
.door-tile-ic { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.door-tile-go { position: absolute; top: 14px; right: 14px; transform: scaleX(-1) rotate(45deg); opacity: .8; transition: transform .15s; }
a.door-tile:hover, a.door-tile:focus-visible { color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 26px -12px color-mix(in srgb, var(--c) 90%, transparent); }
a.door-tile:hover .door-tile-go { transform: scaleX(-1) rotate(45deg) translateX(-2px); }
a.door-tile:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.door-tile.is-missing { background: #fff; color: var(--ink); border: 1.5px dashed #C9CFD6; box-shadow: none; }
.door-tile.is-missing .door-tile-ic { background: var(--soft); color: var(--muted); }
.door-tile.is-missing small { color: #8A5A00; }
.door-wrap .door-tile { flex: 1; }
.door-wrap .door-tools { top: 10px; right: 10px; }
.door-wrap:has(.door-tools) .door-tile-go { display: none; }
/* Recuadro que no es un link entero (tiene links adentro) */
.tool-static:hover { transform: none; }
.tool-title-link { color: var(--ink); }
.tool-title-link:hover { color: var(--ink); }
.tool-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tool-more svg { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .door-tile, .door-tile-go { transition: none; } a.door-tile:hover { transform: none; } }

/* Íconos de los accesos más grandes, en burbuja */
.door-tile-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
button.door-tile { border: none; font: inherit; text-align: left; cursor: pointer; }
.door-tile-go:not(.is-arrow) { transform: none; }
a.door-tile:hover .door-tile-go:not(.is-arrow), button.door-tile:hover .door-tile-go { transform: none; }
button.door-tile:hover, button.door-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 26px -12px color-mix(in srgb, var(--c) 90%, transparent); }
button.door-tile:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
/* Pop-up de vacaciones */
.modal-head h2 { display: flex; align-items: center; gap: 8px; }
.vac-days { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: #067647; min-height: 1em; }
.vac-days.is-error { color: #B42318; }
.vac-check { font-weight: 600; color: var(--ink); min-height: 44px; }
.vac-block { margin: -6px 0 0; padding: 10px 12px; border-radius: 10px; background: #FEF3F2; color: #B42318; font-size: 13px; font-weight: 500; }
.vac-block[hidden] { display: none; }
.vac-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #E6F7FB; color: #0E6A80; border-left: 4px solid var(--sky); font-size: 14px; font-weight: 500; }
.vac-note svg { flex-shrink: 0; margin-top: 1px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Cajas de accesos: todas del mismo tamaño y más compactas */
.door-tile { height: 112px; min-height: 0; padding: 12px 12px 12px; gap: 2px; }
.door-tile-ic { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 4px; }
.door-tile-ic svg { width: 21px; height: 21px; }
.door-tile strong { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.door-tile small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door-grid.big .door-tile { height: 124px; }

/* ---------- Login con contraseña ---------- */
.login-form { margin-top: 6px; }
.pass-field { position: relative; display: block; }
.pass-field input { width: 100%; padding-right: 52px; }
.pass-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pass-toggle:hover { color: var(--ink); background: var(--soft); }
.pass-toggle[aria-pressed="true"] { color: var(--ink); }
.pass-toggle:focus-visible { outline: 3px solid var(--sky); }
.login-submit { width: 100%; margin-top: 4px; background: var(--coral); }
.login-submit:hover { background: #D93A2A; }
.login-help { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 900px) {
  .login-box .flash.error { background: rgba(236,77,60,.15); color: #FFB4AA; }
  .login-form label { color: #C9D1DE; }
  .login-help { color: #9AA3B0; }
}
/* Perfil: cambiar contraseña */
.profile-pass { margin-top: 20px; }
.profile-pass h2 { font-size: 20px; margin-bottom: 12px; }
/* ---------- Usuarios (ABM) ---------- */
.user-search { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.users-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.users-table td { padding: 10px; border-bottom: 1px solid #F0F2F5; vertical-align: middle; }
.users-table tr.is-off td { opacity: .6; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.user-cell strong { display: block; }
.user-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) {
  .users-table:not(.nomina-table) thead { display: none; }
  .users-table:not(.nomina-table), .users-table:not(.nomina-table) tbody, .users-table:not(.nomina-table) tr, .users-table:not(.nomina-table) td { display: block; }
  .users-table:not(.nomina-table) tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .users-table:not(.nomina-table) td { border: none; padding: 4px 0; }
  .user-actions { justify-content: flex-start; }
}

/* Botón "Atrás": coral, para que se note en todo el sitio */
.back-btn, body.inner .crumbs .back-btn { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 6px 16px -8px rgba(236,77,60,.8); }
.back-btn:hover, body.inner .crumbs .back-btn:hover { background: #D93A2A; border-color: #D93A2A; color: #fff; }
/* Anuncios: columna para eliminar */
.post-table li { grid-template-columns: minmax(0, 1fr) 170px 130px 52px; }
.post-table.with-pin li { grid-template-columns: minmax(0, 1fr) 170px 130px 64px 52px; }
.post-del { display: flex; justify-content: center; }
@media (max-width: 640px) {
  .post-table li { grid-template-columns: 1fr auto auto; }
  .post-table.with-pin li { grid-template-columns: 1fr auto auto auto; }
}
/* Calendario: editar / borrar en la lista */
.cal-tools { display: flex; gap: 4px; flex-shrink: 0; }
/* Beneficios: imagen arriba de la tarjeta */
.benefit-card.has-img { padding-top: 0; }
.benefit-img { display: block; width: calc(100% + 40px); margin: 0 -20px 10px; height: 150px; object-fit: cover; border-radius: 16px 16px 0 0; }
.benefit-card.has-img::before { display: none; }
.benefit-card.has-img .benefit-del { top: 10px; right: 10px; }
.benefit-card.has-img .benefit-del .icon-btn { background: #fff; }
/* Accesos: arrastrar */
[data-sortable] .door-wrap { cursor: grab; }
.door-wrap.is-dragging { opacity: .4; outline: 2px dashed var(--ink); outline-offset: 3px; border-radius: 14px; }

.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg circle { fill: currentColor; }

/* ---------- Selector de personas (búsqueda predictiva) ---------- */
.picker { position: relative; display: flex; flex-direction: column; gap: 6px; }
.picker-label { font-size: 13px; font-weight: 500; color: var(--text); }
.picker-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: text; }
.picker-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(80,202,231,.35); }
.picker.need .picker-box { border-color: #B42318; }
.picker-chips { list-style: none; margin: 0; padding: 0; display: contents; }
.chip-user { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.chip-x { width: 28px; height: 28px; border: none; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.chip-x:hover { background: #fff; color: #B42318; }
.picker-input { flex: 1; min-width: 160px; border: none !important; outline: none; box-shadow: none !important; min-height: 34px; padding: 0 4px; font: inherit; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 32px -14px rgba(21,30,46,.35); max-height: 280px; overflow-y: auto; }
.picker:has(small) .picker-list { top: calc(100% - 22px); }
.picker-list li[data-id] { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.picker-list li strong { display: block; font-size: 14px; }
.picker-list li.is-active, .picker-list li[data-id]:hover { background: var(--soft); }
.picker-empty { padding: 10px; font-size: 13px; color: var(--muted); }
/* Avatares genéricos */
.avatar-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.avatar-pick-label { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.avatar-choice { width: 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; transition: transform .12s; }
.avatar-choice.is-round { border-radius: 50%; }
.avatar-choice img { width: 100%; height: 100%; display: block; }
.avatar-choice:hover { transform: translateY(-2px); }
.avatar-choice.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.avatar-choice:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Inicio: Squad HQ destacado, buscador, paginado y orden propio ---------- */
.home-flash { margin-bottom: 16px; }
.hq-feature { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 26px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #151E2E 0%, #1B2740 55%, #2A1F4F 100%); box-shadow: 0 18px 36px -20px rgba(21,30,46,.7); position: relative; overflow: hidden; transition: transform .15s; }
.hq-feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--coral) 0 20%, var(--yellow) 20% 40%, var(--sky) 40% 60%, var(--blue) 60% 80%, var(--violet) 80%); }
.hq-feature:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.hq-feature .project-swatch { width: 56px; height: 56px; border-radius: 14px; background: #fff !important; }
.hq-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hq-text strong { font-size: 20px; }
.hq-text small { color: #C9D1DE; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hq-text .project-badge { align-self: flex-start; }
.hq-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.hq-side .stack-avatars .avatar { border-color: #1B2740; }
.hq-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--yellow); }
.hq-go svg { transform: scaleX(-1); }
.home-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.home-list-head .home-section { margin: 0; color: var(--muted) !important; display: flex; align-items: center; gap: 8px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.home-search { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 2px 2px 14px; min-width: 260px; }
.home-search input { border: none !important; box-shadow: none !important; flex: 1; min-height: 40px; outline: none; background: none; }
.home-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(80,202,231,.35); }
.home-search .icon-btn { border: none; }
.home-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.home-hint svg circle { fill: currentColor; }
.home-empty { text-align: center; padding: 40px 16px; border: 1.5px dashed #C9CFD6; border-radius: 16px; color: var(--muted); background: rgba(255,255,255,.6); }
.project-card { position: relative; }
.project-grip { position: absolute; top: 14px; right: 12px; color: #9AA3B0; opacity: 0; transition: opacity .15s; }
.project-grip svg circle { fill: currentColor; }
.project-card:hover .project-grip, .project-card:focus-visible .project-grip { opacity: 1; }
.grid-projects[data-sortable] .project-card { cursor: grab; }
.project-card.is-dragging { opacity: .4; outline: 2px dashed var(--ink); outline-offset: 3px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(21,30,46,.08); }
.pager-info { font-size: 13px; color: var(--muted); }
.pager-links { display: flex; align-items: center; gap: 6px; }
.pager-num, .pager-btn { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.pager-num:hover, .pager-btn:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.pager-num.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-btn.flip svg { transform: scaleX(-1); }
.pager-btn.is-off { opacity: .35; }
.pager-dots { color: var(--muted); padding: 0 4px; }
@media (max-width: 640px) {
  .hq-feature { flex-wrap: wrap; }
  .hq-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .home-search { min-width: 0; width: 100%; }
  .pager { justify-content: center; }
}

/* ---------- Proyecto: paneles ---------- */
.tool-add { border: 2px dashed #C9CFD6 !important; background: rgba(255,255,255,.6) !important; box-shadow: none !important; align-items: center; justify-content: center; text-align: center; color: var(--muted); font: inherit; cursor: pointer; min-height: 200px; }
.tool-add::before { display: none; }
.tool-add:hover { color: var(--ink); border-color: var(--ink) !important; }
.tool-add strong { color: var(--ink); font-size: 16px; }
.project-empty { text-align: center; padding: 40px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.project-empty-ic { width: 72px; height: 72px; border-radius: 20px; background: #E6F7FB; color: #0E7490; display: inline-flex; align-items: center; justify-content: center; }
.project-empty h2 { font-size: 22px; }
.project-empty p { max-width: 520px; margin: 0 0 8px; }
.panel-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.panel-option { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: transform .12s, border-color .12s; }
.panel-option:hover, .panel-option:focus-visible { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 10px 20px -14px var(--c); }
.panel-option small { color: var(--muted); font-size: 12px; }
.settings-block { margin-top: 20px; }
.settings-block h2 { font-size: 20px; margin-bottom: 10px; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F0F2F5; }
.danger-zone { border: 1.5px solid #FECDCA; }
.btn-danger { background: #B42318; }
.btn-danger:hover { background: #912018; }
.btn-ghost.danger { color: #B42318; }

/* ---------- To-dos ---------- */
.todo-progress { height: 8px; border-radius: 999px; background: #F0F2F5; overflow: hidden; margin: 4px 0; }
.todo-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--yellow)); }
.todo-progress.big { height: 10px; margin-top: 4px; }
.todo-count { margin: 4px 0 18px; font-size: 13px; }
.todo-mini { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.todo-mini li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.todo-box { width: 16px; height: 16px; border: 2px solid #C9CFD6; border-radius: 5px; flex-shrink: 0; }
.todo-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 16px; background: var(--soft); border-radius: 14px; margin-bottom: 24px; }
.todo-new .btn { min-height: 48px; }
.todo-list { list-style: none; margin: 0 0 12px; padding: 0; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #F0F2F5; }
.todo-item.is-editing { display: block; background: var(--soft); border-radius: 12px; padding: 14px; }
.todo-toggle { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #C9CFD6; background: #fff; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; }
.todo-toggle::after { content: ""; position: absolute; inset: -8px; }
.todo-toggle:hover { border-color: #067647; }
.todo-toggle.is-on { background: #067647; border-color: #067647; }
.todo-toggle:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.todo-title { font-size: 15px; font-weight: 500; }
.todo-item.is-done .todo-title { text-decoration: line-through; color: var(--muted); }
.todo-people { display: flex; flex-wrap: wrap; gap: 6px; }
.todo-person { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #1D4ED8; background: #EEF3FF; padding: 2px 8px 2px 2px; border-radius: 999px; }
.todo-tools { display: flex; gap: 4px; }
.todo-done summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 900px) { .todo-new { grid-template-columns: 1fr; } }

/* ---------- Kanban ---------- */
.kb-add-col input { min-height: 44px; }
.kb-board { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; align-items: flex-start; scroll-snap-type: x proximity; }
.kb-col { flex: 0 0 290px; background: var(--soft); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; border: 2px solid transparent; transition: border-color .12s; }
.kb-col.is-over { border-color: var(--sky); background: #EEF9FC; }
.kb-col-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; }
.kb-col-head h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.kb-col-tools { display: flex; gap: 2px; }
.kb-col-tools .icon-btn { border: none; background: none; }
.kb-col-tools .icon-btn:hover { background: #fff; }
.kb-rename { display: flex; gap: 6px; flex: 1; }
.kb-rename input { flex: 1; min-height: 40px; }
.kb-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kb-card { border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(21,30,46,.08), 0 4px 10px -6px rgba(21,30,46,.2); cursor: grab; }
.kb-card.is-dragging { opacity: .4; }
.kb-card-btn { width: 100%; border: none; background: none; text-align: left; font: inherit; color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border-radius: 12px; }
.kb-card-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.kb-card-btn:focus-visible { outline: 3px solid var(--sky); }
.kb-card-btn strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.kb-label { align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: var(--c); padding: 2px 10px; border-radius: 999px; }
.kb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.kb-due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 2px 8px; border-radius: 6px; }
.kb-due.is-soon { color: #8A5A00; background: #FEF4DF; }
.kb-due.is-late { color: #fff; background: #B42318; }
.kb-who { margin-left: auto; }
.kb-new-card input { width: 100%; min-height: 44px; border: 1.5px dashed #C9CFD6; background: transparent; border-radius: 10px; padding: 0 12px; }
.kb-new-card input:focus { background: #fff; border-style: solid; }
.kb-label-pick { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.kb-label-pick legend { font-size: 13px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
.kb-new-label summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); min-height: 36px; }
.kb-new-label[open] { background: var(--soft); border-radius: 12px; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.kb-del { margin-left: auto; }
.kb-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-mini-col { flex: 1; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: #F3FAFC; border: 1px solid #DDF1F7; }
.kb-mini-col strong { font-size: 22px; color: #0E7490; }
.kb-mini-col small { font-size: 11px; text-align: center; }
.kb-mini-next { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Menú del avatar: tipo de usuario */
.usermenu-role { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.usermenu-role.is-admin { background: #FEF4DF; color: #8A5A00; }

/* Inicio: Squad HQ como primera cajita, fija */
.project-card.is-hq-card { box-shadow: 0 0 0 2px var(--yellow), 0 10px 24px -14px rgba(21,30,46,.35); }
.project-card.is-hq-card .project-swatch { background: #151E2E !important; }
.project-fixed { position: absolute; top: 14px; right: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8A5A00; background: #FEF4DF; padding: 3px 8px; border-radius: 999px; }
.project-card.is-hq-card .project-top { padding-right: 60px; }
/* Kanban: descripción y colores por vencimiento */
.kb-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.kb-due.is-ok { color: #fff; background: #067647; }
.kb-due.is-soon { color: #151E2E; background: var(--yellow); }
.kb-due.is-late { color: #fff; background: #B42318; }
.kb-card.is-ok { box-shadow: inset 4px 0 0 #067647, 0 1px 2px rgba(21,30,46,.08), 0 4px 10px -6px rgba(21,30,46,.2); }
.kb-card.is-soon { box-shadow: inset 4px 0 0 var(--yellow), 0 1px 2px rgba(21,30,46,.08), 0 4px 10px -6px rgba(21,30,46,.2); }
.kb-card.is-late { box-shadow: inset 4px 0 0 #B42318, 0 1px 2px rgba(21,30,46,.08), 0 4px 10px -6px rgba(21,30,46,.2); background: #FFF6F5; }
.kb-mini { justify-content: center; }
.kb-mini-next { justify-content: center; text-align: center; }
/* To-dos: casilla dentro del recuadro */
.todo-mini form { display: inline-flex; }
.todo-toggle.small { width: 22px; height: 22px; border-radius: 6px; }
.todo-toggle.small::after { inset: -11px; }
/* Ruedita de cada recuadro (admin del proyecto) */
.tool-wrap { position: relative; display: flex; flex-direction: column; }
.tool-wrap > .tool { flex: 1; }
.tool-gear { position: absolute; top: 14px; right: 14px; z-index: 3; }
.tool-gear summary { list-style: none; background: #fff; box-shadow: 0 2px 6px rgba(21,30,46,.12); }
.tool-gear summary::-webkit-details-marker { display: none; }
.tool-gear[open] summary { border-color: var(--ink); }
.tool-gear-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 220px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 18px 36px -12px rgba(21,30,46,.35), 0 0 0 1px rgba(21,30,46,.06); }
.tool-gear-menu .usermenu-item svg { flex-shrink: 0; }
.tool-gear-menu a.usermenu-item svg { transform: scaleX(-1); }
.tool-wrap .tool h2 { padding-right: 44px; }
/* Editar proyecto: pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: none; background: none; font: 600 14px Poppins, sans-serif; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.tab.is-danger[aria-selected="true"] { color: #B42318; border-bottom-color: #B42318; }
.tab:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.tab-panel { display: flex; flex-direction: column; gap: 16px; }
.tab-panel[hidden] { display: none; }
.edit-project .save-bar { position: sticky; bottom: 0; background: #fff; padding: 14px 0 4px; margin-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.edit-project .save-bar[hidden] { display: none; }
.edit-project .danger-zone { border: 1.5px solid #FECDCA; border-radius: 14px; padding: 18px; }
.edit-project .danger-zone h2 { font-size: 18px; color: #B42318; }

/* Inicio: cajita con herramientas de admin (tuerca y tacho al pasar el mouse) */
.project-wrap { position: relative; display: flex; flex-direction: column; }
.project-wrap > .project-card { flex: 1; }
.project-admin { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; z-index: 2; }
.project-admin .icon-btn { background: #fff; box-shadow: 0 2px 8px rgba(21,30,46,.15); }
.project-wrap:hover .project-admin, .project-wrap:focus-within .project-admin { opacity: 1; transform: none; }
@media (hover: none) { .project-admin { opacity: 1; transform: none; } }
.grid-projects.is-admin .project-grip { display: none; }
.project-wrap:hover .project-fixed, .project-wrap:focus-within .project-fixed { opacity: 0; }
.project-fixed { transition: opacity .15s; }
.project-wrap.is-dragging { opacity: .4; outline: 2px dashed var(--ink); outline-offset: 3px; border-radius: var(--radius); }
.grid-projects[data-sortable] .project-wrap[draggable="true"] { cursor: grab; }
/* Beneficios: tarjetas que se abren, lápiz + tacho, detalle completo */
.benefit-card { cursor: default; }
.benefit-link { color: var(--ink); }
.benefit-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.benefit-link:hover { text-decoration: none; color: var(--ink); }
.benefit-card:hover { box-shadow: 0 14px 28px -16px rgba(21,30,46,.35); }
.benefit-card:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.benefit-detail.is-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.benefit-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.benefit-more svg { transform: scaleX(-1); }
.benefit-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.benefit-tools .icon-btn { background: #fff; }
.benefit-card .benefit-del { display: none; }
.benefit-grid[data-sortable] .benefit-card { cursor: grab; }
.benefit-card.is-dragging { opacity: .4; outline: 2px dashed var(--ink); outline-offset: 3px; }
.benefit-full { max-width: 760px; margin: 0 auto; }
.benefit-full-img { display: block; width: calc(100% + 80px); margin: -32px -40px 20px; max-height: 320px; object-fit: cover; border-radius: 16px 16px 0 0; }
.benefit-full h1 { margin: 10px 0 4px; }
.benefit-company.big { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.benefit-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 24px; padding: 16px; background: var(--soft); border-radius: 14px; }
.benefit-facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.benefit-facts dd { margin: 2px 0 0; font-weight: 600; }
.benefit-full-detail { font-size: 15px; }
@media (max-width: 640px) { .benefit-full-img { width: calc(100% + 36px); margin: -22px -18px 16px; } }

/* ---------- Campana de notificaciones ---------- */
.topright { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; }
.bell-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #C9D1DE; }
.bell-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.bell-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bell.has-unread .bell-btn { color: var(--yellow); }
.bell.has-unread .bell-btn svg { animation: bell-ring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.bell-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--ink); }
.bell-pop { position: absolute; right: -6px; top: calc(100% + 6px); width: 340px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px -12px rgba(21,30,46,.4), 0 0 0 1px rgba(21,30,46,.06); z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.bell-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* puente para que no se cierre al bajar el mouse */
.bell:hover .bell-pop, .bell:focus-within .bell-pop { opacity: 1; visibility: visible; transform: none; }
.bell-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 8px 8px; font-weight: 700; color: var(--ink); font-size: 14px; }
.bell-pill { font-size: 11px; font-weight: 700; color: #fff; background: var(--coral); padding: 2px 8px; border-radius: 999px; }
.bell-empty { margin: 8px; color: var(--muted); font-size: 13px; }
.bell-all { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--blue); }
.notif { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 28px 10px 10px; border-radius: 12px; color: var(--ink); }
.notif:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.notif.is-unread { background: #FFF8EC; }
.notif.is-unread:hover { background: #FEF0D6; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-text strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.notif:not(.is-unread) .notif-text strong { font-weight: 500; color: var(--text); }
.notif-text small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-time { color: #9AA3B0 !important; }
.notif-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.notif-kind.k-anuncio { color: #1D4ED8; }
.notif-kind.k-mencion { color: #6C3EE8; }
.notif-kind.k-tarea { color: #C8372A; }
.notif-kind.k-tarjeta { color: #0E7490; }
.notif-kind.k-beneficio { color: #067647; }
.notif-dot { position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--coral); }
.notif-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); }
.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif-page .notif { padding-right: 32px; }
/* Anuncios: botón Comunicar a todos */
.btn-coral { background: var(--coral); }
.btn-coral:hover { background: #D93A2A; }
.publish-actions { gap: 10px; }
@media (max-width: 640px) {
  .bell-pop { display: none; } /* en el celular, la campana lleva directo a "Ver todas" */
  .topright { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .bell.has-unread .bell-btn svg { animation: none; } }

/* Anuncio: botón Editar */
.msg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-edit { margin-left: auto; }
/* Interruptor on/off (Comunicar a todos) */
.toggle { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.toggle:hover { border-color: #C9CFD6; }
.toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; flex-shrink: 0; width: 52px; height: 30px; border-radius: 999px; background: #D0D5DD; transition: background .2s; }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(21,30,46,.25); transition: transform .2s; }
.toggle-input:checked + .toggle-track { background: var(--coral); }
.toggle-input:checked + .toggle-track .toggle-knob { transform: translateX(22px); }
.toggle:has(.toggle-input:checked) { border-color: var(--coral); background: #FFF5F4; }
.toggle-input:focus-visible + .toggle-track { outline: 3px solid var(--sky); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.toggle-text small { font-size: 12px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .toggle-track, .toggle-knob { transition: none; } }

/* Aviso flotante (toast) */
.toast { position: fixed; z-index: 60; top: 80px; right: 24px; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px));
  padding: 12px 8px 12px 14px; background: #fff; color: var(--ink); border-radius: 14px; border-left: 4px solid #067647;
  box-shadow: 0 18px 40px -12px rgba(21,30,46,.45), 0 0 0 1px rgba(21,30,46,.06); animation: toast-in .25s ease-out; transition: opacity .25s, transform .25s; }
.toast.is-out { opacity: 0; transform: translateY(-8px); }
.toast-ic { width: 28px; height: 28px; border-radius: 50%; background: #ECFDF3; color: #067647; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-text { flex: 1; font-size: 14px; font-weight: 500; }
.toast-x { width: 44px; height: 44px; border: none; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-x:hover { background: var(--soft); color: var(--ink); }
.toast-x:focus-visible { outline: 3px solid var(--sky); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .toast { top: auto; bottom: 16px; right: 16px; left: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }

/* Kanban: mover columnas (owner del proyecto o admin) */
.kb-col-grip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; margin-left: -6px; color: #9AA3B0; cursor: grab; border-radius: 8px; flex-shrink: 0; }
.kb-col-grip:hover { background: #fff; color: var(--ink); }
.kb-col-grip svg circle { fill: currentColor; }
.kb-col-head h2 { flex: 1; min-width: 0; }
.kb-col-tools form { display: inline-flex; }
.kb-col-tools .icon-btn[disabled] { opacity: .3; cursor: not-allowed; }
.kb-col-tools .icon-btn.flip svg { transform: scaleX(-1); }
.kb-col.is-moving { opacity: .45; outline: 2px dashed var(--ink); outline-offset: 2px; }
.kb-col { flex-basis: 330px; }

.kb-col-menu { position: relative; top: auto; right: auto; }
.kb-col-menu summary { box-shadow: none; background: transparent; border: none; }
.kb-col-menu summary:hover, .kb-col-menu[open] summary { background: #fff; }
.kb-col-menu .tool-gear-menu { z-index: 20; }
.kb-col-menu form { display: block; }
.usermenu-item.flip-ic svg { transform: scaleX(-1); }

/* Ver todas: tilde verde para ocultar las ya leídas */
.notif-row { display: flex; align-items: center; gap: 8px; }
.notif-row > .notif { flex: 1; min-width: 0; }
.notif-hide { display: inline-flex; }
.notif-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #A6E4C1; background: #fff; color: #067647; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .15s; }
.notif-check:hover { background: #067647; border-color: #067647; color: #fff; transform: scale(1.05); }
.notif-check:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Mi Espacio ---------- */
.ms-hero { padding-bottom: 100px; }
.ms-who { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ms-who .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.ms-who h1 { margin: 0 0 8px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.ms-chip.is-yellow { background: rgba(246,184,61,.18); color: var(--yellow); }
.ms-ann { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--yellow); }
.ms-ann span { display: flex; flex-direction: column; gap: 2px; color: #fff; }
.ms-ann small { color: #C9D1DE; font-size: 13px; }
.ms-ann strong { font-size: 16px; }
.ms .page { display: flex; flex-direction: column; gap: 22px; }
.ms-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ms-kpi { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 28px -16px rgba(21,30,46,.35); border-top: 5px solid var(--k); display: flex; flex-direction: column; gap: 10px; }
.ms-kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ms-kpi-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ms-kpi-big strong { font-size: 40px; line-height: 1; color: var(--k); }
.ms-kpi[style*="#F6B83D"] .ms-kpi-big strong { color: #8A5A00; }
.ms-kpi-big span { font-size: 15px; color: var(--muted); }
.ms-kpi-text { font-size: 24px; line-height: 1.2; }
.ms-kpi small { font-size: 12px; color: var(--muted); }
.ms-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ms-bar span { display: block; height: 100%; background: var(--k); border-radius: 999px; }
.ms-missing { font-size: 13px; color: var(--muted); font-style: italic; }
.ms-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.ms-vac { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ms-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.btn-green { background: #067647; }
.btn-green:hover { background: #055B37; }
.ms-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); }
.ms-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text); }
.ms-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ms-legend i, .ms-quick-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ms-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.ms-table caption { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.ms-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ms-table td { padding: 12px 10px; border-bottom: 1px solid #F0F2F5; }
.ms-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ms-state.is-taken { background: #EEF3FF; color: #1D4ED8; }
.ms-state.is-approved { background: #FEF4DF; color: #8A5A00; }
.ms-state.is-now { background: #ECFDF3; color: #067647; }
.ms-pay { border-radius: 18px; padding: 24px; background: linear-gradient(135deg, #151E2E 0%, #23304A 100%); color: #fff; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 14px 30px -18px rgba(21,30,46,.7); }
.ms-pay h2 { margin: 0; font-size: 20px; }
.ms-pay p { margin: 0; font-size: 14px; color: #C9D1DE; }
.ms-pay p strong { color: #fff; }
.ms-pay a:not(.ms-pay-btn) { color: var(--sky); }
.ms-pay small { font-size: 12px; color: #9AA3B0; }
.ms-pay-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(80,202,231,.18); color: var(--sky); display: inline-flex; align-items: center; justify-content: center; }
.ms-pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; background: var(--sky); color: var(--ink); font-weight: 700; font-size: 15px; }
.ms-pay-btn:hover { background: #7AD8EE; color: var(--ink); text-decoration: none; }
.ms-pay-btn svg { transform: scaleX(-1) rotate(-45deg); }
.ms-quick { display: flex; flex-direction: column; gap: 8px; padding: 20px !important; }
.ms-quick h2 { margin: 0 0 4px; font-size: 16px; }
.ms-quick-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: none; background: var(--soft); color: var(--ink); font: 500 14px Poppins, sans-serif; text-align: left; cursor: pointer; }
.ms-quick-item:hover { background: #E9ECF1; color: var(--ink); text-decoration: none; }
.ms-quick-item i { border-radius: 50%; }
.ms-evals { display: flex; flex-direction: column; gap: 18px; }
.ms-private { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--soft); padding: 6px 12px; border-radius: 999px; }
.ms-eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ms-eval { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ms-eval.is-last { border: 2px solid #067647; background: #F3FBF6; }
.ms-eval strong { font-size: 17px; }
.ms-eval small { font-size: 13px; color: var(--muted); }
.ms-eval .btn { align-self: flex-start; margin-top: 4px; }
.ms-eval-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }
.ms-eval-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ms-result { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--fg); }
.ms-last { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #067647; }
.ms-note { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); background: var(--soft); padding: 12px 14px; border-radius: 12px; }
.ms-feedback h1 { margin: 10px 0 4px; }
.ms-admin-h { font-size: 16px; margin: 18px 0 8px; }
@media (max-width: 640px) {
  .ms-who .avatar { --s: 64px !important; }
  .ms-kpi-big strong { font-size: 32px; }
}

/* Recuadros del proyecto (owner/admin): tacho a la izquierda, rueda (editar) a la derecha */
.tool-actions { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.tool-actions form { display: inline-flex; }
.tool-actions .icon-btn { background: #fff; box-shadow: 0 2px 6px rgba(21,30,46,.12); }
.tool-wrap .tool h2 { padding-right: 100px; }

/* ---------- Nómina (People / RRHH) ---------- */
.nomina-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.nomina-sub { margin: 4px 0 0; }
.nomina-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; align-items: center; }
.nomina-filters .grow { flex: 1 1 260px; }
.nomina-filters input, .nomina-filters select { width: 100%; min-height: 44px; }
.nomina-count { margin: 4px 0 8px; font-size: 13px; }
.nomina-table td { white-space: nowrap; }
.nomina-link { color: inherit; text-decoration: none; min-height: 44px; }
.nomina-link:hover strong, .nomina-link:focus-visible strong { color: var(--blue, #2563EB); text-decoration: underline; }
.nomina-link small { color: var(--muted); font-size: 12px; }
.nomina-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 16px; min-width: 0; }
.nomina-form fieldset[disabled] { background: #FAFAFB; }
.nomina-form > fieldset > legend { font-weight: 600; color: #151E2E; padding: 0 6px; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.nf { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.nf > span { font-weight: 600; color: #3C4658; }
.nf.wide { grid-column: 1 / -1; }
.nf input, .nf select, .nf textarea { width: 100%; min-height: 44px; }
.nf input[readonly], .nf .readonly { background: #F2F3F5; color: #5A6478; }
.nf small { color: var(--muted); font-size: 12px; }
.nf-calc { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #EEF3FF; color: #1D4ED8; font-weight: 600; }
.nf-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-height: 32px; }
fieldset.nf-checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
fieldset.nf-checks legend { font-weight: 600; color: #3C4658; font-size: 13px; padding: 0; margin-bottom: 6px; width: 100%; }
.nf-checks .check, .nf-kuru { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.nf-kuru { align-self: end; }
.nomina-save { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .nf-grid { grid-template-columns: 1fr; }
  .nomina-form fieldset { padding: 12px; }
}
/* Nómina: tabla con todas las columnas, deslizable, con Legajo y Apellido fijos */
.nomina-scroll { overflow-x: auto; max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.nomina-scroll:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.nomina-table { font-size: 13px; }
.nomina-table th { position: sticky; top: 0; background: #F7F7F8; z-index: 2; }
.nomina-table td { padding: 8px 10px; }
.nomina-table th:nth-child(1), .nomina-table td:nth-child(1) { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 72px; }
.nomina-table th:nth-child(3), .nomina-table td:nth-child(3) { position: sticky; left: 72px; background: #fff; z-index: 1; box-shadow: 6px 0 8px -6px rgba(21, 30, 46, .18); }
.nomina-table th:nth-child(1), .nomina-table th:nth-child(3) { background: #F7F7F8; z-index: 3; }
.nomina-table tbody tr:hover td { background: #F5F8FF; }
.nomina-table .user-cell { min-width: 160px; gap: 8px; }
.nomina-table td.is-long { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
/* Nómina más grande: usa todo el ancho de la pantalla y casi todo el alto, con filas más compactas */
body.is-wide .page, body.is-wide .crumbs { max-width: none; padding-left: 24px; padding-right: 24px; }
body.is-wide .card.nomina { padding: 20px 20px 16px; }
.nomina .nomina-scroll { max-height: calc(100vh - 230px); min-height: 420px; }
.nomina-table td { padding: 5px 10px; line-height: 1.35; }
.nomina-table th { padding: 8px 10px; }
.nomina-table .status { padding: 2px 8px; font-size: 11px; }
.nomina-table .user-cell { min-width: 200px; }
.nomina .page-head { margin-bottom: 0; }
.nomina .nomina-filters { margin: 10px 0 4px; }
.nomina .nomina-filters label:not(.grow) { flex: 0 1 200px; }
@media (max-width: 640px) {
  body.is-wide .page, body.is-wide .crumbs { padding-left: 16px; padding-right: 16px; }
  .nomina .nomina-filters label:not(.grow) { flex: 1 1 100%; }
  .nomina .nomina-scroll { max-height: 75vh; min-height: 0; }
}

/* ---------- Desempeño (People / RRHH) ---------- */
.perf-score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.perf-score.is-big { min-width: 58px; height: 44px; font-size: 17px; border-radius: 10px; }
.perf-score.is-4, .perf-dot.is-4 { background: #ECFDF3; color: #067647; }
.perf-score.is-3, .perf-dot.is-3 { background: #EEF3FF; color: #1D4ED8; }
.perf-score.is-2, .perf-dot.is-2 { background: #FFF4E0; color: #93590B; }
.perf-score.is-1, .perf-dot.is-1 { background: #FEF3F2; color: #B42318; }
.perf-dot.is-0 { background: #F2F3F5; color: #8A93A6; }
.pill-warn { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #FFF4E0; color: #93590B; white-space: nowrap; }
.perf-table td:nth-child(1) { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 6px 0 8px -6px rgba(21, 30, 46, .18); }
.perf-table th:nth-child(1) { position: sticky; left: 0; z-index: 3; }
.perf-table th:nth-child(3), .perf-table td:nth-child(3) { position: static; box-shadow: none; }
.perf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.perf-year { font-size: 18px; margin: 22px 0 10px; color: #151E2E; }
.perf-card { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.perf-card > summary { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 44px; flex-wrap: wrap; }
.perf-card > summary::-webkit-details-marker { display: none; }
.perf-card > summary > svg:last-child { margin-left: auto; transition: transform .15s; color: var(--muted); }
.perf-card[open] > summary > svg:last-child { transform: rotate(180deg); }
.perf-card-main { flex: 1 1 240px; font-size: 14px; line-height: 1.45; }
.perf-card-main small { display: block; color: var(--muted); font-size: 12px; }
.perf-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.perf-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 600; font-style: normal; }
.perf-detail { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.perf-group { font-size: 13px; font-weight: 600; color: #3C4658; margin: 16px 0 6px; text-transform: none; }
.perf-answers { list-style: none; margin: 0; padding: 0; }
.perf-answers li { display: grid; grid-template-columns: 1fr auto 130px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #F0F2F5; font-size: 14px; }
.perf-answers small { color: var(--muted); font-size: 12px; }
.perf-text { white-space: pre-line; font-size: 14px; margin: 0; }
.perf-actions { margin-top: 14px; gap: 8px; }
.perf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.perf-legend b { color: #151E2E; }
.perf-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-top: 1px solid #F0F2F5; padding: 8px 0; margin: 0; }
.perf-q legend { float: left; padding: 0; font-size: 14px; color: #3C4658; max-width: calc(100% - 200px); }
.perf-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; margin-left: auto; }
.perf-seg label { position: relative; }
.perf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.perf-seg label > span:first-of-type { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-weight: 600; color: #3C4658; }
.perf-seg label + label > span:first-of-type { border-left: 1px solid var(--line); }
.perf-seg input:checked + span { background: #2563EB; color: #fff; }
.perf-seg input:focus-visible + span { outline: 3px solid #50CAE7; outline-offset: -3px; }
.perf-seg label:hover > span:first-of-type { background: #F5F8FF; }
.perf-seg label:hover input:checked + span { background: #1D4ED8; }
.perf-comment { margin-top: 18px; }
.perf-save { position: sticky; bottom: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0 4px; margin-top: 16px; border-top: 1px solid var(--line); }
.perf-avg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3C4658; }
.perf-avg small { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .perf-q { flex-direction: column; align-items: stretch; gap: 8px; }
  .perf-q legend { float: none; max-width: none; }
  .perf-seg { margin-left: 0; }
  .perf-seg label { flex: 1; }
  .perf-seg label > span:first-of-type { width: 100%; }
  .perf-answers li { grid-template-columns: 1fr auto; }
  .perf-answers li small { display: none; }
}
/* Desempeño: historial de una persona como lista (año | cliente y evaluador | puntaje sobre 4) */
.perf-list-head { display: grid; grid-template-columns: 76px 1fr 110px 16px; gap: 16px; padding: 14px 16px 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.perf-list-head span:last-child { grid-column: 3; text-align: right; }
.perf-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perf-list .perf-card { border: 0; border-radius: 0; margin: 0; }
.perf-list .perf-card + .perf-card { border-top: 1px solid var(--line); }
.perf-list .perf-card > summary { display: grid; grid-template-columns: 76px 1fr 110px 16px; gap: 16px; align-items: center; padding: 14px 16px; }
.perf-list .perf-card > summary:hover { background: #FAFBFD; }
.perf-list .perf-card > summary > svg:last-child { margin-left: 0; }
.perf-row-year { display: flex; flex-direction: column; line-height: 1.15; }
.perf-row-year strong { font-size: 22px; font-weight: 700; color: #151E2E; }
.perf-row-year small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.perf-list .perf-card-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perf-list .perf-card-main > strong { font-size: 15px; color: #151E2E; }
.perf-list .perf-card-main small { font-size: 12px; }
.perf-list .perf-card-main small:empty { display: none; }
.perf-list .perf-dots { margin: 2px 0; }
.perf-evaluator { color: #3C4658 !important; font-weight: 500; }
.perf-total { justify-self: end; display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.perf-total strong { font-size: 22px; font-weight: 700; }
.perf-total small { font-size: 13px; font-weight: 600; opacity: .75; }
.perf-total.is-4 { background: #ECFDF3; color: #067647; }
.perf-total.is-3 { background: #EEF3FF; color: #1D4ED8; }
.perf-total.is-2 { background: #FFF4E0; color: #93590B; }
.perf-total.is-1 { background: #FEF3F2; color: #B42318; }
.perf-list .perf-detail { background: #FAFBFD; }
@media (max-width: 640px) {
  .perf-list-head { display: none; }
  .perf-list .perf-card > summary { grid-template-columns: 52px 1fr auto; gap: 10px; padding: 12px; }
  .perf-list .perf-card > summary > svg:last-child { display: none; }
  .perf-row-year strong { font-size: 17px; }
  .perf-total { padding: 6px 8px; }
  .perf-total strong { font-size: 18px; }
}
/* Desempeño: solapas Gráfico / Detalle dentro de cada evaluación */
.perf-tabs { margin: 14px 0 4px; }
.perf-viz { padding-top: 8px; }
.perf-viz-top { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: stretch; }
.perf-viz-score { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.perf-viz-score p { margin: 0; }
.perf-viz-k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.perf-viz-level { font-size: 20px; font-weight: 700; margin: 2px 0 !important; }
.perf-viz-level.is-4 { color: #067647; } .perf-viz-level.is-3 { color: #1D4ED8; } .perf-viz-level.is-2 { color: #93590B; } .perf-viz-level.is-1 { color: #B42318; }
.perf-viz-note { font-size: 12px; color: var(--muted); }
.perf-ring { flex: none; }
.perf-ring-bg { fill: none; stroke: #EEF0F3; stroke-width: 10; }
.perf-ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.perf-ring.is-4 .perf-ring-fg { stroke: #12B76A; } .perf-ring.is-3 .perf-ring-fg { stroke: #2563EB; } .perf-ring.is-2 .perf-ring-fg { stroke: #F6B83D; } .perf-ring.is-1 .perf-ring-fg { stroke: #EC4D3C; }
.perf-ring-num { font: 700 22px Poppins, sans-serif; fill: #151E2E; text-anchor: middle; dominant-baseline: middle; }
.perf-ring-of { font: 500 10px Poppins, sans-serif; fill: #8A93A6; text-anchor: middle; }
.perf-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perf-block { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.perf-block-name { font-size: 13px; color: #3C4658; font-weight: 500; }
.perf-block-num { font-size: 18px; font-weight: 700; color: #151E2E; white-space: nowrap; }
.perf-block-num small { font-size: 12px; font-weight: 500; color: var(--muted); }
.perf-meter { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #EEF0F3; overflow: hidden; }
.perf-meter-fill { display: block; height: 100%; border-radius: 6px; }
.perf-meter-fill.is-4 { background: #12B76A; } .perf-meter-fill.is-3 { background: #2563EB; } .perf-meter-fill.is-2 { background: #F6B83D; } .perf-meter-fill.is-1 { background: #EC4D3C; }
.perf-hl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.perf-hl-box { border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.perf-hl-box p { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 600; }
.perf-hl-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.perf-hl-box li { background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.perf-hl-box li b { margin-left: 4px; }
.perf-hl-box.is-good { background: #ECFDF3; color: #067647; }
.perf-hl-box.is-work { background: #FFF4E0; color: #93590B; }
.perf-scale { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; }
.perf-scale-head, .perf-scale-row { display: grid; grid-template-columns: 230px 1fr 64px; gap: 14px; align-items: center; }
.perf-scale-head { position: sticky; top: 0; background: #fff; padding: 4px 0 8px; border-bottom: 1px solid #F0F2F5; font-size: 12px; color: var(--muted); font-weight: 600; z-index: 1; }
.perf-steps-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.perf-steps-head i { font-style: normal; text-align: center; font-weight: 500; font-size: 11px; }
.perf-steps-head b { color: #151E2E; }
.perf-scale-group { margin: 12px 0 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #8A93A6; }
.perf-scale-row { padding: 5px 0; border-radius: 8px; }
.perf-scale-row:hover { background: #F7F9FC; }
.perf-scale-label { font-size: 13px; color: #151E2E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 18px; }
.perf-steps i { border-radius: 5px; background: #EEF0F3; }
.perf-steps i.on.is-4 { background: #12B76A; } .perf-steps i.on.is-3 { background: #2563EB; } .perf-steps i.on.is-2 { background: #F6B83D; } .perf-steps i.on.is-1 { background: #EC4D3C; }
.perf-avg-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: #151E2E; box-shadow: 0 0 0 2px #fff; }
.perf-avg-mark.is-legend { position: relative; display: inline-block; height: 14px; top: 2px; vertical-align: baseline; margin-right: 6px; }
.perf-scale-val { font-size: 15px; font-weight: 700; text-align: right; color: #151E2E; white-space: nowrap; }
.perf-scale-val small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.perf-scale-val.is-0 small { font-size: 11px; }
.perf-legend-avg { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .perf-viz-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .perf-blocks, .perf-hl { grid-template-columns: 1fr; }
  .perf-scale { padding: 10px 12px; }
  .perf-scale-head { grid-template-columns: 1fr; }
  .perf-scale-head > span:first-child { display: none; }
  .perf-scale-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .perf-scale-label { grid-column: 1 / -1; white-space: normal; }
}
.perf-scale-val small, .perf-block-num small, .perf-total small { display: inline; }
.perf-edit { width: 52px; text-align: right; }
/* Desempeño: Accionables (to-dos) y Comentarios de cada evaluación */
.perf-anchor { display: block; position: relative; top: -90px; visibility: hidden; height: 0; }
.perf-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FFF4E0; color: #93590B; font-size: 11px; font-weight: 700; margin-left: 2px; }
.perf-pending { color: #93590B; font-weight: 600; }
.perf-acc, .perf-com { padding-top: 10px; }
.perf-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: 13px; color: #3C4658; font-weight: 500; }
.perf-progress > span:first-child { white-space: nowrap; }
.perf-progress-bar { flex: 1; height: 8px; border-radius: 8px; background: #EEF0F3; overflow: hidden; }
.perf-progress-bar i { display: block; height: 100%; border-radius: 8px; background: #12B76A; transition: width .3s; }
.perf-add { display: flex; gap: 10px; margin-bottom: 10px; }
.perf-add .grow { flex: 1; }
.perf-add input { width: 100%; min-height: 44px; }
.perf-todos { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perf-todo { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; }
.perf-todo + .perf-todo { border-top: 1px solid #F0F2F5; }
.perf-todo:hover { background: #FAFBFD; }
.perf-todo form { margin: 0; display: flex; }
.perf-check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 8px; border: 2px solid #C5CBD6; background: #fff; color: transparent; cursor: pointer; flex: none; position: relative; }
.perf-check::after { content: ''; position: absolute; inset: -9px; }
button.perf-check:hover { border-color: #12B76A; color: #A6E8C6; }
.perf-check[aria-checked="true"], .is-done span.perf-check { background: #12B76A; border-color: #12B76A; color: #fff; }
button.perf-check[aria-checked="true"]:hover { background: #0E9F5C; color: #fff; }
.perf-check:focus-visible { outline: 3px solid #50CAE7; outline-offset: 2px; }
.perf-todo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.perf-todo-text { font-size: 14px; color: #151E2E; line-height: 1.45; }
.perf-todo.is-done .perf-todo-text { text-decoration: line-through; color: #8A93A6; }
.perf-todo-meta { display: inline-flex !important; align-items: center; gap: 4px; font-size: 12px; color: #067647 !important; }
.perf-todo-del { opacity: 0; transition: opacity .15s; }
.perf-todo:hover .perf-todo-del, .perf-todo-del:focus-visible { opacity: 1; }
.perf-todos-title { margin: 18px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #8A93A6; }
.perf-alldone { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: #ECFDF3; color: #067647; font-weight: 600; font-size: 14px; }
.perf-empty { margin: 8px 0 0; }
.perf-com textarea { width: 100%; min-height: 180px; line-height: 1.6; }
.perf-com-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (hover: none) { .perf-todo-del { opacity: 1; } }
@media (max-width: 640px) {
  .perf-add { flex-direction: column; }
  .perf-tabs { overflow-x: auto; flex-wrap: nowrap; }
}
.perf-todo-pen { opacity: 0; transition: opacity .15s; }
.perf-todo:hover .perf-todo-pen, .perf-todo-pen:focus-visible { opacity: 1; }
.perf-todo.is-editing .perf-todo-text, .perf-todo.is-editing .perf-todo-meta, .perf-todo.is-editing .perf-todo-pen, .perf-todo.is-editing .perf-todo-del { display: none !important; }
.perf-todo-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.perf-todo-edit[hidden] { display: none; }
.perf-todo-edit .grow { flex: 1 1 240px; }
.perf-todo-edit input { width: 100%; min-height: 40px; }
@media (hover: none) { .perf-todo-pen { opacity: 1; } }
.user-link { color: inherit; text-decoration: none; min-height: 44px; border-radius: 10px; }
.user-link:hover strong, .user-link:focus-visible strong { color: #2563EB; text-decoration: underline; }
/* Mi Espacio: historial de Desempeño */
.ms-perf-list { margin-top: 6px; }
.ms-perf-row { display: grid; grid-template-columns: 64px 1fr auto 16px; gap: 14px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; min-height: 44px; }
.ms-perf-row + .ms-perf-row { border-top: 1px solid var(--line); }
.ms-perf-row:hover { background: #FAFBFD; }
.ms-perf-row:hover .perf-card-main > strong { color: #2563EB; }
.ms-perf-row > svg { transform: rotate(180deg); color: var(--muted); }
.ms-perf-row .perf-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-perf-row .perf-card-main > strong { font-size: 15px; color: #151E2E; }
.ms-sub { font-size: 14px; color: #3C4658; margin: 20px 0 8px; }
.ms-perf-detail .perf-head { align-items: flex-start; }
@media (max-width: 640px) { .ms-perf-row { grid-template-columns: 48px 1fr auto; } .ms-perf-row > svg { display: none; } }
/* Desempeño: estado de cada evaluación */
.perf-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.perf-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.perf-status.is-none { background: #F2F3F5; color: #5A6478; }
.perf-status.is-sent { background: #EEF3FF; color: #1D4ED8; }
.perf-status.is-done { background: #ECFDF3; color: #067647; }
.perf-evaluator .perf-status { margin-right: 6px; vertical-align: 1px; }
.perf-total.is-empty { background: #F2F3F5; color: #8A93A6; }
.perf-status-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.perf-status-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3C4658; }
.perf-status-form select { min-height: 44px; min-width: 220px; }
.perf-status-hint { margin: 14px 0 0; }
/* Mi Espacio: evaluaciones de Desempeño en tarjetas cuadradas, de la más nueva a la más vieja */
.ms-perf-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ms-perf-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; aspect-ratio: 1 / 1; min-height: 210px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ms-perf-card:hover, .ms-perf-card:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 30, 46, .08); border-color: #C9D4F0; }
.ms-perf-card.is-last { border: 2px solid #6C3EE8; background: #FBF9FF; }
.ms-perf-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ms-perf-year { font-size: 30px; font-weight: 700; color: #151E2E; line-height: 1; }
.ms-perf-client { font-size: 15px; font-weight: 600; color: #151E2E; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ms-perf-meta { font-size: 12px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ms-perf-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ms-perf-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #2563EB; }
.ms-perf-go svg { transform: rotate(180deg); }
@media (max-width: 640px) { .ms-perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ms-perf-card { aspect-ratio: auto; min-height: 190px; padding: 12px; } .ms-perf-year { font-size: 24px; } }
/* Beneficios: tarjetas más compactas */
.benefit-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.benefit-card { padding: 14px 14px 12px; gap: 4px; border-radius: 14px; }
.benefit-card::before { height: 4px; border-radius: 14px 14px 0 0; }
.benefit-card h2 { font-size: 16px; }
.benefit-company { font-size: 13px; }
.benefit-detail { font-size: 13px; }
.benefit-detail.is-short { -webkit-line-clamp: 2; }
.benefit-dates { margin-top: 4px; padding-top: 8px; font-size: 11.5px; }
.benefit-img { width: calc(100% + 28px); margin: 0 -14px 8px; height: 110px; border-radius: 14px 14px 0 0; }
/* Detalle de un beneficio: un poco más compacto */
.benefit-full { max-width: 680px; }
.benefit-full-img { max-height: 220px; margin-bottom: 16px; }
.benefit-full h1 { font-size: 24px; margin: 8px 0 2px; }
.benefit-full .benefit-company.big { font-size: 14px; }
.benefit-full .benefit-facts { gap: 10px; margin: 14px 0; }
.benefit-full .benefit-facts dt { font-size: 11px; }
.benefit-full .benefit-facts dd { font-size: 13px; }
.benefit-full .eyebrow { margin-top: 14px; }
.benefit-full-detail { font-size: 14px; line-height: 1.6; }
.benefit-full .benefit-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.benefit-full-tools { margin-left: auto; display: flex; gap: 6px; }
.benefit-full-tools form { margin: 0; }
