/*
  UNITEPC Workflow 5.6 — Quiet Flow
  Sistema semiminimalista adaptativo inspirado en macOS 2026.
*/

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --canvas: #eaf1ff;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-blue: #edf5ff;
  --ink: #11131f;
  --text: #11131f;
  --muted: #6f7485;
  --line: rgba(33, 39, 67, .1);
  --line-strong: rgba(33, 39, 67, .17);
  --purple: #5e5ce6;
  --purple2: #8b7cff;
  --blue: #0a84ff;
  --cyan: #5ac8fa;
  --green: #28a875;
  --orange: #e58b27;
  --red: #e7445f;
  --glass: rgba(255, 255, 255, .53);
  --glass-strong: rgba(255, 255, 255, .7);
  --glass-edge: rgba(255, 255, 255, .84);
  --shadow-soft: 0 20px 50px rgba(45, 58, 104, .1);
  --shadow-glass: 0 24px 70px rgba(50, 62, 115, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; background: var(--canvas); color: var(--ink); letter-spacing: -.012em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.view { display: none; }
.view.active { display: block; animation: viewIn .45s var(--ease-spring); }

@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes floatOrb { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(24px, -18px, 0) scale(1.07); } }
@keyframes sheetIn { from { opacity: 0; transform: translateX(34px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Marca e iconos */
.brand-lockup, .side-brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup > div, .side-brand > div { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup b, .side-brand b { font-size: 15px; letter-spacing: .13em; }
.brand-lockup > div > span, .side-brand > div > span { margin-top: 5px; color: rgba(255,255,255,.57); font-size: 9px; letter-spacing: .25em; }
.brand-mark {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 14px; color: white; font-size: 20px; font-weight: 780;
  background: #0a84ff;
  box-shadow: 0 9px 22px rgba(10,132,255,.2);
}
.brand-mark::before { content: none; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }

/* Login: experiencia editorial + sheet */
.login-view {
  position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 22px;
  background: linear-gradient(135deg, #a7d7ff 0%, #dde4ff 33%, #f4eaff 63%, #b6eff4 100%);
}
.liquid-orb { position: absolute; border-radius: 999px; filter: blur(16px); opacity: .78; pointer-events: none; animation: floatOrb 12s ease-in-out infinite; }
.orb-one { width: 420px; height: 420px; left: -120px; top: -130px; background: radial-gradient(circle at 35% 30%, #fff, #60b9ff 38%, #5e5ce6 76%); }
.orb-two { width: 520px; height: 520px; right: -170px; bottom: -210px; background: radial-gradient(circle at 30% 28%, #fff, #ff9bd0 32%, #7867e9 70%); animation-delay: -4s; }
.orb-three { width: 260px; height: 260px; left: 46%; bottom: -150px; background: radial-gradient(circle at 35% 30%, #fff, #67e7ec 45%, #0a84ff); animation-delay: -8s; }
.login-stage {
  position: relative; z-index: 2; width: min(1360px, 96vw); min-height: min(790px, calc(100vh - 44px)); display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(390px, .72fr); overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 42px;
  background: rgba(255,255,255,.2); box-shadow: 0 42px 120px rgba(46, 48, 104, .28), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(28px) saturate(160%);
}
.login-showcase {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px 54px 38px; color: white;
  background: radial-gradient(circle at 78% 14%, rgba(116,185,255,.64), transparent 27%), radial-gradient(circle at 12% 88%, rgba(124,103,240,.72), transparent 34%), linear-gradient(145deg, #0e1333 0%, #161a47 50%, #293074 100%);
}
.login-showcase::before { content: ""; position: absolute; width: 440px; height: 440px; right: -150px; top: 70px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: inset 0 0 80px rgba(126,190,255,.16), 0 0 100px rgba(107,94,238,.24); }
.login-showcase::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 78%, transparent); }
.login-showcase .brand-lockup { position: relative; z-index: 2; }
.showcase-copy { position: relative; z-index: 2; max-width: 720px; margin-top: 9vh; }
.liquid-chip { width: max-content; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(16px); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.liquid-chip svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.showcase-copy h1 { margin: 24px 0 18px; font-size: clamp(48px, 5.4vw, 78px); line-height: .94; letter-spacing: -.065em; font-weight: 740; }
.showcase-copy h1 em { color: transparent; background: linear-gradient(90deg, #fff, #9edbff 38%, #cbb8ff 76%, #fff); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.showcase-copy p { max-width: 560px; margin: 0; color: rgba(255,255,255,.64); font-size: 16px; line-height: 1.55; }
.showcase-preview {
  position: relative; z-index: 2; width: min(660px, 92%); margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,.19), rgba(255,255,255,.08)); box-shadow: 0 28px 70px rgba(3,5,25,.3), inset 0 1px 0 rgba(255,255,255,.24); backdrop-filter: blur(28px) saturate(160%);
  transform: perspective(1000px) rotateX(2deg) rotateY(-3deg);
}
.preview-bar { height: 29px; display: flex; align-items: center; gap: 6px; padding: 0 3px; color: rgba(255,255,255,.68); font-size: 9px; }
.preview-bar > span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.preview-bar b { margin-left: 8px; font-weight: 650; }
.preview-bar i { margin-left: auto; color: #a9ffe4; font-size: 7px; font-style: normal; letter-spacing: .13em; }
.preview-grid { display: grid; grid-template-columns: 1.65fr .65fr; gap: 10px; }
.preview-focus, .preview-metric { min-height: 154px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(8,12,40,.36); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.preview-focus { padding: 20px; }
.preview-focus small, .preview-metric small { color: rgba(255,255,255,.46); font-size: 7px; letter-spacing: .15em; }
.preview-focus h3 { margin: 9px 0 5px; font-size: 20px; letter-spacing: -.035em; }
.preview-focus p { margin: 0; color: rgba(255,255,255,.5); font-size: 9px; }
.preview-progress { height: 5px; margin: 22px 0 9px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.1); }
.preview-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #57afff, #a68aff, #7ceee6); box-shadow: 0 0 16px #6aaaff; }
.preview-focus footer { display: flex; align-items: baseline; gap: 7px; }
.preview-focus footer strong { font-size: 20px; }
.preview-focus footer small { letter-spacing: 0; }
.preview-metric { position: relative; overflow: hidden; display: grid; place-content: center; text-align: center; }
.preview-metric strong { font-size: 42px; letter-spacing: -.06em; }
.preview-metric > span { position: absolute; top: 56px; right: 30px; color: #94e7ff; font-size: 11px; }
.metric-wave { position: absolute; left: -20%; right: -20%; bottom: -33px; height: 72px; border-radius: 50%; background: linear-gradient(#6e7cff, #3ac8f2); filter: blur(4px); opacity: .55; }
.showcase-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-top: 24px; color: rgba(255,255,255,.46); font-size: 9px; letter-spacing: .04em; }
.showcase-footer > span:first-child { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.66); }
.showcase-footer i { width: 7px; height: 7px; border-radius: 50%; background: #59e5ad; box-shadow: 0 0 12px #59e5ad; }
.login-panel { display: grid; place-items: center; padding: 42px; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.48)); backdrop-filter: blur(38px) saturate(180%); }
.login-card { width: min(420px, 100%); padding: 0; border: 0; background: transparent; box-shadow: none; }
.login-mobile-brand { display: none; }
.login-copy { margin: 0 0 34px; }
.login-copy .eyebrow { margin-bottom: 12px; }
.login-copy h2 { margin: 0 0 8px; font-size: 33px; line-height: 1.05; letter-spacing: -.045em; }
.login-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
label { display: block; margin: 17px 0 8px; color: #3d4152; font-size: 12px; font-weight: 680; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 12px 14px; outline: none; border: 1px solid rgba(57,63,91,.14); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 2px rgba(27,30,53,.04); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(10,132,255,.58); background: #fff; box-shadow: 0 0 0 4px rgba(10,132,255,.12), inset 0 1px 2px rgba(27,30,53,.03); }
textarea { min-height: 112px; resize: vertical; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-wrap .icon-btn { position: absolute; right: 6px; top: 5px; }
.password-wrap .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; color: #85899a; font-size: 10px; }
.secure-note span { color: #22ae78; font-size: 8px; text-shadow: 0 0 8px rgba(34,174,120,.5); }
.form-message { min-height: 20px; margin-top: 10px; color: var(--red); font-size: 12px; }
.credit { margin-top: 24px; color: #989baa; text-align: center; font-size: 9px; }

/* Controles Liquid Glass */
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 99px; cursor: pointer; font-weight: 690; transition: transform .22s var(--ease-spring), box-shadow .22s, filter .22s; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.primary { color: white; background: linear-gradient(135deg, #665ff2, #0a84ff 76%); box-shadow: 0 11px 25px rgba(46,105,234,.27), inset 0 1px 0 rgba(255,255,255,.36); }
.btn.primary:hover { filter: saturate(1.14) brightness(1.04); box-shadow: 0 15px 30px rgba(46,105,234,.32), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.secondary { color: #363a4e; border-color: rgba(255,255,255,.76); background: rgba(255,255,255,.53); box-shadow: 0 8px 20px rgba(39,49,91,.08), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(20px) saturate(170%); }
.btn.danger { color: #c72d48; border-color: rgba(231,68,95,.18); background: rgba(255,237,240,.8); }
.btn.wide { width: 100%; margin-top: 23px; min-height: 49px; }
.btn.wide > span { margin-left: auto; font-size: 18px; font-weight: 400; }
.text-btn { padding: 5px; border: 0; color: #4f55dc; background: transparent; cursor: pointer; font-size: 12px; font-weight: 680; }
.icon-btn, .mobile-menu { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #4a4e62; background: rgba(255,255,255,.48); box-shadow: 0 7px 18px rgba(36,48,93,.08), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(170%); cursor: pointer; transition: transform .2s var(--ease-spring), background .2s; }
.icon-btn:hover { transform: scale(1.05); background: rgba(255,255,255,.76); }
.icon-btn svg, .mobile-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.glass { border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.62); box-shadow: var(--shadow-soft); }
.eyebrow { margin: 0 0 5px; color: #696f83; font-size: 10px; font-weight: 760; letter-spacing: .14em; }

/* Shell de la aplicación */
.app-view { position: relative; min-height: 100vh; display: flex; overflow: hidden; background: linear-gradient(135deg, #e8f2ff 0%, #eef0ff 46%, #f7edff 100%); }
.app-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.app-atmosphere i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .28; }
.app-atmosphere i:nth-child(1) { width: 460px; height: 460px; top: -250px; right: 12%; background: #91cfff; }
.app-atmosphere i:nth-child(2) { width: 380px; height: 380px; bottom: -210px; left: 25%; background: #c3a8ff; }
.app-atmosphere i:nth-child(3) { width: 260px; height: 260px; top: 42%; right: -120px; background: #a4eced; }
.sidebar {
  position: fixed; z-index: 40; left: 18px; top: 18px; bottom: 18px; width: 248px; display: flex; flex-direction: column; padding: 22px 14px 14px;
  overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 30px; background: linear-gradient(155deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  box-shadow: var(--shadow-glass); backdrop-filter: blur(34px) saturate(185%);
}
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(125deg, rgba(255,255,255,.52), transparent 30%, transparent 70%, rgba(111,104,255,.06)); }
.side-brand { position: relative; z-index: 1; padding: 1px 8px 25px; }
.side-brand > div > span { color: #8d91a2; }
.nav-caption { position: relative; z-index: 1; margin: 2px 12px 8px; color: #9296a7; font-size: 8px; font-weight: 750; letter-spacing: .16em; }
.sidebar nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; width: 100%; height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 15px; color: #696e80; background: transparent; cursor: pointer; text-align: left; transition: color .2s, background .2s, transform .2s var(--ease-spring), box-shadow .2s; }
.nav-item:hover { color: #202336; background: rgba(255,255,255,.38); transform: translateX(2px); }
.nav-item.active { color: #3e43ce; border-color: rgba(255,255,255,.76); background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,239,255,.56)); box-shadow: 0 8px 20px rgba(64,69,164,.12), inset 0 1px 0 rgba(255,255,255,.95); }
.nav-glyph { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.nav-glyph svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.nav-item b { flex: 1; font-size: 12px; font-weight: 630; }
.nav-item > i { min-width: 20px; padding: 3px 6px; border-radius: 99px; color: #5b5f72; background: rgba(255,255,255,.62); font-size: 9px; font-style: normal; text-align: center; }
.sidebar-bottom { position: relative; z-index: 1; margin-top: auto; }
.presence-control { display: flex; align-items: center; gap: 8px; margin: 0 4px 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.68); border-radius: 14px; background: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.76); }
.presence-control select { min-height: 30px; padding: 3px; border: 0; color: #54596c; background: transparent; box-shadow: none; font-size: 10px; }
.presence-dot, .person-chip .live { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(40,168,117,.1), 0 0 12px rgba(40,168,117,.38); }
.presence-dot.busy { background: var(--orange); box-shadow: 0 0 0 4px rgba(229,139,39,.1); }
.presence-dot.away { background: #969aaa; box-shadow: none; }
.presence-dot.offline { background: #b8bac3; box-shadow: none; }
.nav-item.subtle { margin-top: 4px; }
.credit.side { margin-top: 9px; }
.main { position: relative; z-index: 2; width: calc(100% - 284px); min-width: 0; margin-left: 284px; }
.topbar {
  position: sticky; z-index: 30; top: 16px; height: 78px; display: flex; align-items: center; justify-content: space-between; margin: 16px 20px 0; padding: 0 18px 0 24px;
  border: 1px solid rgba(255,255,255,.82); border-radius: 25px; background: linear-gradient(130deg, rgba(255,255,255,.68), rgba(255,255,255,.44));
  box-shadow: 0 16px 42px rgba(49,62,112,.12), inset 0 1px 0 rgba(255,255,255,.96); backdrop-filter: blur(32px) saturate(185%);
}
.topbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,.26), transparent 38%); }
.topbar-title, .top-actions { position: relative; z-index: 1; }
.topbar h2 { margin: 0; font-size: 27px; line-height: 1; letter-spacing: -.045em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions .btn { min-height: 42px; }
.notification-control { position: relative; }
.notification-control > i { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: #b4b7c2; }
.notification-control.enabled { color: #4b51cf; background: rgba(237,237,255,.82); }
.notification-control.enabled > i { background: var(--green); box-shadow: 0 0 9px rgba(40,168,117,.48); }
.notification-control.blocked { opacity: .6; }
.profile-pill { height: 46px; display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; border: 1px solid rgba(255,255,255,.78); border-radius: 99px; color: #292d3e; background: rgba(255,255,255,.48); box-shadow: 0 8px 20px rgba(39,49,91,.08), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter: blur(20px) saturate(170%); cursor: pointer; }
.profile-pill > span:nth-child(2) { display: flex; flex-direction: column; text-align: left; }
.profile-pill b { max-width: 120px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-pill small { margin-top: 2px; color: #818596; font-size: 9px; }
.profile-pill > i { margin-left: 2px; color: #9296a5; font-size: 12px; font-style: normal; }
.avatar { position: relative; width: 37px; height: 37px; display: grid; place-items: center; flex: none; overflow: visible; border-radius: 50%; color: white; background: linear-gradient(145deg, #6e66ee, #0a84ff); background-position: center; background-size: cover; box-shadow: 0 8px 18px rgba(66,86,211,.21); font-size: 12px; font-weight: 780; }
.avatar-online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #0f9d8a; box-shadow: 0 0 0 2px rgba(15,157,138,.13); }
.mobile-menu { display: none; }
.content { max-width: 1580px; margin: 0 auto; padding: 32px 22px 70px; }

/* Home / bento */
.hero-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 15px; }
.current-work { position: relative; min-height: 318px; overflow: hidden; padding: 31px; border: 1px solid rgba(255,255,255,.17); border-radius: 30px; color: white; background: radial-gradient(circle at 82% 20%, rgba(90,200,250,.38), transparent 24%), radial-gradient(circle at 58% 110%, rgba(132,91,238,.58), transparent 38%), linear-gradient(145deg, #10142f, #171d4b 55%, #303783); box-shadow: 0 24px 52px rgba(23,31,91,.26), inset 0 1px 0 rgba(255,255,255,.15); }
.current-work::before { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -120px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: inset 0 0 70px rgba(92,196,255,.18), 0 0 80px rgba(94,92,230,.22); }
.current-work::after { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.current-work > * { position: relative; z-index: 2; }
.current-work .eyebrow { color: rgba(255,255,255,.52); }
.current-top { display: flex; justify-content: space-between; gap: 18px; }
.current-top h3, .current-empty h3 { max-width: 760px; margin: 8px 0 7px; font-size: clamp(28px, 3vw, 42px); line-height: 1.02; letter-spacing: -.055em; }
.current-meta { color: rgba(255,255,255,.56); font-size: 12px; }
.current-work .priority-pill { color: white; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.11); backdrop-filter: blur(12px); }
.progress-block { position: relative; margin-top: 34px; }
.progress-label { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.progress-label strong { font-size: 43px; line-height: 1; letter-spacing: -.06em; }
.progress-label span { color: var(--muted); font-size: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(92,99,129,.13); }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6575ff, #0a9dff 55%, #67e5e4); box-shadow: 0 0 18px rgba(47,145,255,.35); }
.current-work .progress-track { background: rgba(255,255,255,.11); }
.current-work .progress-fill { background: linear-gradient(90deg, #7ea7ff, #78e7ef 58%, #c8a8ff); box-shadow: 0 0 20px rgba(112,211,255,.55); }
.current-work .progress-label span { color: rgba(255,255,255,.58); }
.current-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; }
.countdown { display: flex; align-items: center; gap: 11px; }
.countdown-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.countdown-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.countdown b { display: block; font-size: 17px; }
.countdown small { color: rgba(255,255,255,.5); font-size: 10px; }
.current-work .btn.primary { color: #18203b; background: rgba(255,255,255,.9); box-shadow: 0 10px 25px rgba(0,0,0,.15), inset 0 1px 0 white; }
.current-empty { min-height: 250px; display: grid; place-items: center; color: rgba(255,255,255,.62); text-align: center; }
.hero-side { display: grid; grid-template-rows: 1fr auto; gap: 15px; }
.metric-card { position: relative; overflow: hidden; padding: 21px; border: 1px solid rgba(255,255,255,.82); border-radius: 26px; background: rgba(255,255,255,.68); box-shadow: 0 18px 40px rgba(44,58,104,.1), inset 0 1px 0 white; }
.metric-card:first-child { background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(232,244,255,.68)); }
.metric-card.compact { min-height: 118px; background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(242,237,255,.72)); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #74798b; font-size: 11px; }
.metric-head b { color: #313548; }
.workload-ring { width: 142px; height: 142px; display: grid; place-items: center; margin: 14px auto; border-radius: 50%; box-shadow: 0 14px 28px rgba(44,63,123,.11); }
.workload-ring > div { width: 112px; height: 112px; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; text-align: center; background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 white; }
.workload-ring strong { font-size: 27px; letter-spacing: -.05em; }
.workload-ring small { margin-top: 2px; color: #7d8192; font-size: 9px; }
.metric-card > p { margin: 0; color: #7a7f91; font-size: 10px; line-height: 1.5; text-align: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.mini-stats div { text-align: center; }
.mini-stats strong { display: block; font-size: 23px; letter-spacing: -.04em; }
.mini-stats span { color: #85899a; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Secciones, tarjetas y listas */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 35px 3px 14px; }
.section-head h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.task-card { position: relative; overflow: hidden; min-height: 180px; padding: 18px; border: 1px solid rgba(255,255,255,.82); border-radius: 23px; background: rgba(255,255,255,.72); box-shadow: 0 14px 34px rgba(48,60,102,.08), inset 0 1px 0 white; cursor: pointer; transition: transform .28s var(--ease-spring), box-shadow .28s, border-color .28s; }
.task-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #665ff2, #0a84ff, #67dedf); opacity: .72; }
.task-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.98); box-shadow: 0 22px 44px rgba(48,60,102,.14), inset 0 1px 0 white; }
.task-card-head { display: flex; justify-content: space-between; gap: 10px; }
.task-card h4 { margin: 14px 0 7px; font-size: 16px; line-height: 1.2; letter-spacing: -.025em; }
.task-card .meta { color: #7a7f90; font-size: 10px; line-height: 1.55; }
.priority-pill, .status-pill, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(67,73,101,.08); border-radius: 99px; color: #616678; background: rgba(244,245,249,.78); font-size: 8px; font-weight: 780; letter-spacing: .035em; }
.priority-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9296a5; }
.priority-pill.urgent { color: #c32643; background: #fff0f3; }
.priority-pill.urgent::before { background: #f04462; box-shadow: 0 0 8px rgba(240,68,98,.55); }
.priority-pill.important { color: #9d5c12; background: #fff6e8; }
.priority-pill.important::before { background: #ed9b36; }
.priority-pill.normal { color: #4f55c9; background: #eff0ff; }
.priority-pill.normal::before { background: #6868eb; }
.priority-pill.low { color: #6f7485; background: #f2f3f7; }
.mini-progress { margin-top: 16px; }
.mini-progress .progress-track { height: 5px; }
.mini-progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #828697; font-size: 9px; }
.people-strip { display: flex; gap: 10px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.people-strip::-webkit-scrollbar { display: none; }
.person-chip { min-width: 220px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: 0 10px 24px rgba(48,60,102,.06), inset 0 1px 0 rgba(255,255,255,.94); scroll-snap-align: start; }
.person-chip .avatar { width: 41px; height: 41px; }
.person-chip b { display: block; font-size: 11px; }
.person-chip span { color: #7c8191; font-size: 9px; }
.person-chip .live { margin-left: auto; }
.online-badge { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 99px; color: #087c6e; background: #def5ef; font-size: 7px; font-weight: 800; vertical-align: middle; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.segmented, .detail-tabs { display: flex; gap: 3px; padding: 4px; overflow-x: auto; border: 1px solid rgba(255,255,255,.74); border-radius: 99px; background: rgba(255,255,255,.43); box-shadow: 0 9px 22px rgba(44,57,103,.07), inset 0 1px 0 rgba(255,255,255,.94); backdrop-filter: blur(18px) saturate(170%); scrollbar-width: none; }
.segmented button, .detail-tab { flex: none; padding: 8px 13px; border: 0; border-radius: 99px; color: #777c8e; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; }
.segmented button.active, .detail-tab.active { color: #353aaf; background: rgba(255,255,255,.9); box-shadow: 0 5px 14px rgba(49,57,111,.12), inset 0 1px 0 white; }
.search { max-width: 320px; border-color: rgba(255,255,255,.74); border-radius: 99px; background: rgba(255,255,255,.54); backdrop-filter: blur(18px); }
.task-list { display: flex; flex-direction: column; gap: 9px; }
.task-row { position: relative; display: grid; grid-template-columns: minmax(230px, 1.5fr) 150px 120px 140px 90px; align-items: center; gap: 14px; padding: 15px 17px 15px 21px; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: 0 10px 26px rgba(48,60,102,.065), inset 0 1px 0 white; cursor: pointer; transition: transform .25s var(--ease-spring), box-shadow .25s; }
.task-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(#7068ec, #0a84ff); }
.task-row:hover { transform: translateX(4px); box-shadow: 0 15px 34px rgba(48,60,102,.11), inset 0 1px 0 white; }
.task-row h4 { margin: 0 0 4px; font-size: 12px; }
.row-sub, .task-row .row-sub { color: #7b8091; font-size: 9px; }
.person-inline, .task-row .person-inline { display: flex; align-items: center; gap: 7px; color: #555a6d; font-size: 10px; }
.task-row .avatar { width: 29px; height: 29px; font-size: 9px; }
.deadline, .task-row .deadline { color: #717687; font-size: 10px; }
.task-row .pct { text-align: right; font-size: 11px; font-weight: 760; }
.empty-state { padding: 46px 20px; border: 1px dashed rgba(75,81,110,.2); border-radius: 23px; color: #7b8090; background: rgba(255,255,255,.34); text-align: center; }

/* Calendario, usuarios y perfil */
.calendar-header { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.calendar-header h3 { min-width: 210px; margin: 0; text-align: center; text-transform: capitalize; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays span { padding: 9px; color: #7f8495; font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar-grid { overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 24px; box-shadow: 0 15px 36px rgba(48,60,102,.08); }
.cal-day { min-height: 123px; padding: 9px; border-right: 1px solid rgba(75,82,111,.09); border-bottom: 1px solid rgba(75,82,111,.09); background: rgba(255,255,255,.65); }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.muted { opacity: .38; }
.day-num { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 9px; color: #64697b; font-size: 10px; }
.cal-day.today .day-num { color: white; background: linear-gradient(145deg, #665ff2, #0a84ff); box-shadow: 0 7px 16px rgba(60,86,216,.25); }
.cal-task { margin-bottom: 4px; padding: 5px 6px; overflow: hidden; border-left: 2px solid #625fe1; border-radius: 7px; color: #4449b4; background: #efefff; cursor: pointer; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.users-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.user-card { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid rgba(255,255,255,.82); border-radius: 20px; background: rgba(255,255,255,.68); box-shadow: 0 12px 28px rgba(48,60,102,.07), inset 0 1px 0 white; }
.user-card .avatar { width: 48px; height: 48px; }
.user-card .user-info { min-width: 0; flex: 1; }
.user-card h4 { margin: 0 0 3px; font-size: 12px; }
.user-card p { margin: 0; overflow: hidden; color: #7d8293; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-actions { display: flex; gap: 5px; }
.user-card.absolute-admin { border-color: rgba(97,85,221,.25); background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(240,239,255,.72)); }
.owner-badge { display: inline-flex; margin-left: 5px; padding: 3px 6px; border-radius: 99px; color: #5551bd; background: #ecebff; font-size: 7px; font-weight: 760; vertical-align: middle; }
.profile-layout { display: grid; grid-template-columns: 290px 1fr; gap: 16px; }
.profile-card, .settings-card { padding: 27px; border: 1px solid rgba(255,255,255,.82); border-radius: 27px; background: rgba(255,255,255,.68); box-shadow: 0 16px 38px rgba(48,60,102,.08), inset 0 1px 0 white; }
.profile-card { text-align: center; }
.photo-picker { position: relative; width: 124px; height: 124px; margin: 0 auto 18px; }
.avatar.huge { width: 124px; height: 124px; margin: 0 auto 18px; border: 5px solid rgba(255,255,255,.78); box-shadow: 0 18px 38px rgba(56,67,130,.22); font-size: 35px; }
.photo-picker .avatar.huge { margin: 0; transition: filter .2s, opacity .2s; }
.photo-picker .avatar.huge.uploading { filter: saturate(.7) blur(1px); opacity: .68; }
.photo-camera { position: absolute; right: -2px; bottom: 3px; width: 40px; height: 40px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: linear-gradient(145deg, #6333d2, #8e63ec); box-shadow: 0 9px 20px rgba(71,49,154,.28); cursor: pointer; transition: transform .2s var(--ease-spring); }
.photo-camera:hover { transform: scale(1.07); }
.photo-camera:disabled { cursor: wait; opacity: .6; }
.photo-camera svg, .photo-select svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.photo-select { width: 100%; max-width: 205px; margin: 0 auto; cursor: pointer; }
.photo-help { display: block; margin-top: 8px; color: #888c9c; font-size: 8px; }
.photo-status { min-height: 17px; margin-top: 5px; color: #5c61c8; font-size: 9px; font-weight: 650; }
.photo-status.error { color: var(--red); }
.profile-card h3 { margin: 14px 0 4px; }
.profile-card p { color: #7b8091; font-size: 11px; }
.settings-card h3 { margin: 0 0 15px; }
.settings-card hr { margin: 28px 0; border: 0; border-top: 1px solid rgba(63,69,98,.1); }
.reset-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid rgba(225,70,91,.18); border-radius: 18px; background: rgba(255,238,241,.68); }
.reset-zone h3 { margin: 0 0 6px; color: #9f2139; }
.reset-zone p { max-width: 520px; margin: 0; color: #7f5961; font-size: 10px; line-height: 1.5; }
.reset-zone .eyebrow { margin-bottom: 5px; color: #bc4057; }
.reset-zone .btn.danger { flex: 0 0 auto; color: white; background: linear-gradient(135deg, #c52c48, #e14b65); box-shadow: 0 10px 24px rgba(197,44,72,.18); }
.reset-confirm-list { display: grid; gap: 8px; margin: 18px 0; padding: 15px 17px; border: 1px solid rgba(225,70,91,.16); border-radius: 16px; color: #76545b; background: rgba(255,240,243,.66); font-size: 11px; }
.reset-confirm-phrase { display: block; margin: 8px 0; color: #b52540; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Sheets, ficha y flujos */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; justify-items: end; align-items: stretch; padding: 12px; background: rgba(20,23,45,.28); backdrop-filter: blur(18px) saturate(120%); }
.modal { position: relative; width: min(980px, calc(100vw - 24px)); max-height: none; overflow: auto; padding: 30px; border: 1px solid rgba(255,255,255,.86); border-radius: 32px; color: var(--ink); background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(244,246,255,.84)); box-shadow: -20px 0 70px rgba(28,35,77,.22), inset 0 1px 0 white; backdrop-filter: blur(34px) saturate(170%); animation: sheetIn .45s var(--ease-spring); }
.modal.narrow { width: min(620px, calc(100vw - 24px)); }
.modal-close { position: sticky; z-index: 10; top: 0; float: right; width: 39px; height: 39px; display: grid; place-items: center; margin: -12px -12px 0 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: #53586a; background: rgba(255,255,255,.65); box-shadow: 0 8px 20px rgba(41,50,91,.1), inset 0 1px 0 white; backdrop-filter: blur(16px); cursor: pointer; font-size: 21px; }
.modal h2 { margin: 0 50px 5px 0; font-size: 27px; line-height: 1.06; letter-spacing: -.045em; }
.modal-sub { margin-bottom: 22px; color: #7b8091; font-size: 10px; }
.task-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.task-head-tools { display: flex; align-items: center; gap: 8px; padding-right: 6px; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.detail-grid.simplified { grid-template-columns: minmax(0, 1.38fr) minmax(260px, .62fr); }
.detail-panel { padding: 17px; border: 1px solid rgba(72,78,107,.09); border-radius: 20px; background: rgba(255,255,255,.63); box-shadow: 0 10px 24px rgba(45,56,99,.055), inset 0 1px 0 white; }
.detail-panel h4 { margin: 0 0 12px; }
.focus-panel { padding: 18px; background: linear-gradient(145deg, rgba(246,248,255,.96), rgba(238,243,255,.78)); }
.detail-tabs { margin: 11px 0 8px; border-radius: 15px; }
.detail-tab { border-radius: 11px; }
.detail-tab i { margin-left: 3px; padding: 2px 5px; border-radius: 20px; color: #555ac4; background: #ececff; font-size: 8px; font-style: normal; }
.task-tab-pane { display: none; }
.task-tab-pane.active { display: block; animation: viewIn .3s var(--ease-spring); }
.detail-description { color: #505568; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-box { padding: 11px; border: 1px solid rgba(75,81,109,.06); border-radius: 13px; background: #f5f6fb; }
.meta-box span { display: block; margin-bottom: 4px; color: #8a8e9d; font-size: 8px; text-transform: uppercase; }
.meta-box b { font-size: 10px; }
.workflow-banner { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 17px; padding: 13px; border: 1px solid #dce7fb; border-radius: 16px; background: #edf5ff; }
.workflow-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: none; border-radius: 10px; color: #4264c8; background: #dce9ff; font-weight: 800; }
.workflow-banner b { display: block; margin: 1px 0 3px; font-size: 11px; }
.workflow-banner p { margin: 0; color: #676d7f; font-size: 9px; line-height: 1.5; }
.workflow-banner.review { border-color: #dedbff; background: #f1efff; }
.workflow-banner.review .workflow-icon { color: #6555cc; background: #e4e0ff; }
.workflow-banner.attention { border-color: #f3ddb8; background: #fff7e9; }
.workflow-banner.attention .workflow-icon { color: #a4671e; background: #ffedca; }
.workflow-banner.done { border-color: #cce9dc; background: #ecfaf4; }
.workflow-banner.done .workflow-icon { color: #24835f; background: #daf3e8; }
.workflow-banner.waiting { border-color: #e1e3e9; background: #f5f6f8; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-title-row h4 { margin: 0; }
.more-actions { width: max-content; margin-top: 10px; }
.more-actions summary { color: #7b8091; cursor: pointer; font-size: 9px; list-style: none; }
.more-actions[open] { padding: 8px 10px; border: 1px solid rgba(71,77,106,.1); border-radius: 11px; background: rgba(255,255,255,.6); }
.context-note { max-width: 360px; flex: 1; color: #74798a; font-size: 9px; line-height: 1.5; }
.notice-card { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; padding: 14px; border: 1px solid #f0d9ad; border-radius: 16px; background: #fff7e7; }
.notice-card b, .notice-card strong { color: #925917; font-size: 10px; }
.notice-card span { color: #706452; font-size: 9px; line-height: 1.5; }
.summary-team { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(63,69,98,.09); }
.summary-team > span { color: #858a9b; font-size: 8px; text-transform: uppercase; }
.summary-team > div { display: flex; }
.summary-team .avatar { width: 26px; height: 26px; margin-left: -5px; border: 2px solid white; font-size: 8px; }
.summary-team .avatar:first-child { margin-left: 0; }
.summary-team > b { color: #5b6072; font-size: 9px; font-weight: 600; }
.helper { display: block; margin-top: 7px; color: #898d9c; font-size: 8px; line-height: 1.5; }
.comment-list { max-height: 300px; display: flex; flex-direction: column; gap: 8px; overflow: auto; margin-bottom: 10px; }
.comment { display: flex; gap: 8px; }
.comment .avatar { width: 30px; height: 30px; flex: none; font-size: 8px; }
.comment-bubble, .flow-message { flex: 1; padding: 9px 11px; border: 1px solid rgba(74,80,108,.07); border-radius: 13px; background: #f5f6fa; }
.comment-bubble b, .flow-message-head b { font-size: 9px; }
.comment-bubble small, .flow-message-head span { color: #8b8f9e; font-size: 7px; }
.comment-bubble p, .flow-message p { margin: 4px 0 0; color: #555a6c; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.flow-communication-block { margin: -4px 0 18px; padding: 12px; border: 1px solid rgba(74,80,108,.08); border-radius: 15px; background: #f7f8fb; }
.flow-communication-title { margin: 0 0 8px; color: #878b9b; font-size: 8px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.flow-message { margin: 7px 0; }
.flow-message-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-message.changes_requested { border-color: #efd9ae; background: #fff7e8; }
.flow-message.delivered, .flow-message.redelivered { border-color: #dcd9ff; background: #f2f0ff; }
.flow-message.correction_registered, .flow-message.approved { border-color: #cbe8db; background: #eefaf5; }
.comment-list .flow-message { margin-left: 38px; }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-item { display: grid; grid-template-columns: 7px 1fr; gap: 10px; color: #686d7f; font-size: 9px; }
.timeline-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: linear-gradient(#6d64e8, #0a84ff); box-shadow: 0 0 8px rgba(81,92,222,.34); }
.timeline-note { margin-top: 5px; padding: 7px 8px; border-radius: 8px; color: #555a6c; background: #f4f5f9; line-height: 1.45; white-space: pre-wrap; }
.file-stage-intro { margin: -3px 0 14px; color: #777c8d; font-size: 9px; line-height: 1.55; }
.file-stage-groups, .file-list { display: flex; flex-direction: column; gap: 9px; }
.file-group, .reference-files { padding: 12px; border: 1px solid rgba(74,80,108,.09); border-radius: 15px; background: #f7f8fb; }
.file-group.review { border-color: #f0dbb0; background: #fff9ed; }
.file-group.delivery { border-color: #cae9db; background: #effaf5; }
.file-group-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.file-group-head > div { display: flex; flex-direction: column; gap: 2px; }
.file-group-head b { font-size: 9px; }
.file-group-head small, .file-item small { color: #85899a; font-size: 8px; }
.file-group-head > span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 20px; color: #555ac4; background: #e9e9ff; font-size: 8px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.72); font-size: 9px; }
.file-item a { color: #5258cf; text-decoration: none; }
.file-empty { padding: 11px; border: 1px dashed rgba(74,80,108,.18); border-radius: 10px; color: #898d9c; font-size: 8px; text-align: center; }
.file-upload-box { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(72,78,107,.09); }
.file-upload-box > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.file-upload-box b { font-size: 9px; }
.file-upload-box small { color: #898d9c; font-size: 8px; }
.file-readonly-note { margin-top: 12px; padding: 10px 11px; border-radius: 11px; color: #7d8191; background: #f5f6f9; font-size: 8px; }
.new-task-files { padding: 13px; border: 1px dashed rgba(88,83,193,.24); border-radius: 15px; background: linear-gradient(145deg, rgba(247,247,255,.9), rgba(239,246,255,.7)); }
.new-task-files > input { width: 100%; min-height: 42px; padding: 8px; border: 1px solid rgba(74,80,108,.1); border-radius: 11px; background: rgba(255,255,255,.75); font-size: 9px; }
.new-task-files > small { display: block; margin: 7px 1px 10px; color: #7f8495; font-size: 8px; line-height: 1.5; }
.new-task-file-list { display: flex; flex-direction: column; gap: 6px; }
.new-task-file-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.8); }
.new-task-file-list > div > span { min-width: 0; display: flex; flex-direction: column; }
.new-task-file-list b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.new-task-file-list small { color: #888c9b; font-size: 7px; }
.delivery-dropzone { transition: border-color .18s, background .18s, transform .18s; }
.delivery-dropzone.dragging { border-color: #555ac4; background: #eceeff; transform: scale(1.006); }
.delivery-ready { color: #087c6e; border-color: rgba(15,157,138,.3); background: rgba(228,247,243,.7); }
.delivery-status { min-height: 18px; margin-top: 7px; color: #087c6e; font-size: 9px; font-weight: 650; }
.reference-files summary { color: #737889; cursor: pointer; font-size: 8px; }
.reference-files .file-list { margin-top: 9px; }
.inline-form { display: flex; gap: 7px; }
.inline-form input, .inline-form select { min-height: 40px; padding: 9px; font-size: 9px; }

/* Chat del personal: módulo independiente del flujo de trabajos */
.staff-chat-nav { margin-top: 5px; }
.staff-chat-nav .nav-glyph { color: var(--blue); }
.chat-live-dot { width: 7px; min-width: 7px !important; height: 7px; padding: 0 !important; border-radius: 50%; background: #25b89f !important; box-shadow: 0 0 0 4px rgba(37,184,159,.1); }
.chat-shell { height: calc(100vh - 152px); min-height: 560px; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; overflow: hidden; border-radius: 28px; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.chat-header h3 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.035em; }
.chat-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.chat-online { display: flex; align-items: center; }
.chat-online .avatar { margin-left: -7px; border: 2px solid var(--surface); }
.chat-online .avatar:first-child { margin-left: 0; }
.chat-online b, .chat-online > span { margin-left: 10px; color: var(--muted); font-size: 10px; }
.chat-history { min-height: 0; overflow: auto; padding: 25px max(24px,calc((100% - 920px)/2)); scroll-behavior: smooth; }
.staff-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 15px; }
.staff-message.mine { justify-content: flex-end; }
.staff-message-content { max-width: min(680px,75%); }
.staff-message-content header { display: flex; align-items: baseline; gap: 8px; margin: 0 3px 5px; }
.staff-message.mine .staff-message-content header { justify-content: flex-end; }
.staff-message-content header b { font-size: 10px; }
.staff-message-content header span { color: var(--muted); font-size: 8px; }
.staff-message-content p { margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.72); white-space: pre-wrap; font-size: 11px; line-height: 1.5; }
.staff-message.mine .staff-message-content p { border-color: rgba(10,132,255,.16); background: rgba(10,132,255,.12); }
.chat-shell > .form-message { min-height: 0; margin: 0; padding: 0 25px 8px; }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.38); backdrop-filter: blur(20px); }
.chat-composer textarea { min-height: 44px; max-height: 110px; resize: vertical; }
.chat-composer .btn { min-width: 104px; }

/* Toasts */
.toast-host { position: fixed; z-index: 300; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; color: #303548; background: rgba(255,255,255,.78); box-shadow: 0 18px 44px rgba(35,45,88,.18), inset 0 1px 0 white; backdrop-filter: blur(24px) saturate(180%); animation: toastIn .35s var(--ease-spring); font-size: 10px; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); color: #b62640; }

/* Adaptación */
@media (max-width: 1180px) {
  .task-grid, .users-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-row { grid-template-columns: minmax(220px, 1fr) 130px 110px 90px; }
  .task-row > *:nth-child(4) { display: none; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .login-view { padding: 12px; }
  .login-stage { width: min(680px, 100%); min-height: 0; grid-template-columns: 1fr; border-radius: 34px; }
  .login-showcase { min-height: 330px; padding: 32px; }
  .showcase-copy { margin-top: 56px; }
  .showcase-copy h1 { font-size: 49px; }
  .showcase-preview, .showcase-footer { display: none; }
  .login-panel { position: relative; z-index: 3; margin-top: -38px; padding: 32px 28px 27px; border: 1px solid rgba(255,255,255,.72); border-radius: 34px 34px 0 0; background: rgba(255,255,255,.75); box-shadow: 0 -18px 45px rgba(17,24,69,.13); }
  .sidebar { width: 86px; }
  .side-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .side-brand > div, .nav-caption, .nav-item b, .presence-control select, .credit.side { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item > i { position: absolute; top: 2px; right: 7px; min-width: 16px; padding: 2px 4px; }
  .presence-control { justify-content: center; height: 42px; padding: 0; }
  .main { width: calc(100% - 122px); margin-left: 122px; }
  .topbar { padding-left: 18px; }
  .profile-pill > span:nth-child(2), .profile-pill > i { display: none; }
  .profile-pill { width: 46px; padding: 4px; }
  .detail-grid.simplified { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .login-stage { border-radius: 29px; }
  .login-showcase { min-height: 278px; padding: 25px; }
  .login-showcase .brand-lockup { transform: scale(.9); transform-origin: left top; }
  .showcase-copy { margin-top: 35px; }
  .showcase-copy h1 { margin: 17px 0 12px; font-size: 39px; }
  .showcase-copy p { font-size: 13px; }
  .liquid-chip { padding: 7px 10px; font-size: 9px; }
  .login-panel { padding: 29px 23px 24px; }
  .login-copy { margin-bottom: 25px; }
  .login-copy h2 { font-size: 28px; }
  .sidebar { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 70px; padding: 8px; border-radius: 24px; }
  .side-brand, .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-item { width: 54px; height: 52px; flex: 0 0 54px; border-radius: 17px; }
  .nav-glyph { width: 23px; }
  .nav-item > i { top: 1px; right: 3px; }
  .main { width: 100%; margin-left: 0; }
  .topbar { top: 10px; height: 66px; margin: 10px 10px 0; padding: 0 10px 0 15px; border-radius: 22px; }
  .topbar h2 { font-size: 21px; }
  .topbar .eyebrow { font-size: 7px; }
  .mobile-menu, #refreshBtn { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .btn { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .top-actions .btn svg { width: 19px; height: 19px; }
  .profile-pill { width: 42px; height: 42px; }
  .profile-pill .avatar { width: 34px; height: 34px; }
  .content { padding: 24px 12px 112px; }
  .hero-side { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-side .metric-card { min-width: 84vw; scroll-snap-align: start; }
  .task-grid, .users-grid, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .current-work { min-height: 350px; padding: 23px; border-radius: 26px; }
  .current-top h3, .current-empty h3 { font-size: 29px; }
  .current-bottom { align-items: flex-start; flex-direction: column; }
  .current-bottom .btn { width: 100%; }
  .section-head { margin-top: 30px; }
  .section-head h3 { font-size: 19px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { max-width: none; }
  .segmented { width: 100%; border-radius: 16px; }
  .task-row { grid-template-columns: 1fr auto; padding: 16px 15px 16px 19px; }
  .task-row > *:nth-child(2), .task-row > *:nth-child(3), .task-row > *:nth-child(4) { display: none; }
  .calendar-grid { overflow-x: auto; border-radius: 19px; }
  .calendar-weekdays, .calendar-grid { min-width: 650px; }
  .cal-day { min-height: 92px; padding: 6px; }
  .profile-card { text-align: center; }
  .modal-backdrop { align-items: end; padding: 6px; }
  .modal, .modal.narrow { width: 100%; max-height: 92vh; padding: 23px 17px; border-radius: 28px 28px 20px 20px; animation-name: viewIn; }
  .modal-close { margin-right: -5px; }
  .task-modal-head { display: block; }
  .task-head-tools { margin: 8px 0; padding-right: 0; }
  .detail-tabs { position: sticky; z-index: 5; top: -1px; border-radius: 14px; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #0f1013;
    --surface: #1c1d22;
    --surface-soft: #222329;
    --surface-blue: #172333;
    --ink: #f5f5f7;
    --text: #f5f5f7;
    --muted: #98989f;
    --line: rgba(255,255,255,.09);
    --line-strong: rgba(255,255,255,.15);
    --glass: rgba(29,30,36,.7);
    --glass-strong: rgba(35,36,43,.86);
    --glass-edge: rgba(255,255,255,.11);
    --shadow-soft: 0 18px 45px rgba(0,0,0,.24);
    --shadow-glass: 0 24px 65px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
  }
  .app-view { background: linear-gradient(145deg,#101116,#151720 55%,#10171a); }
  .app-atmosphere i { opacity: .11; }
  .sidebar, .topbar { border-color: var(--glass-edge); background: rgba(29,30,36,.72); box-shadow: var(--shadow-glass); }
  .sidebar::before, .topbar::before { background: linear-gradient(120deg,rgba(255,255,255,.035),transparent 42%); }
  .side-brand > div > span, .nav-caption { color: #85858d; }
  .nav-item { color: #9a9aa2; }
  .nav-item:hover { color: #f5f5f7; background: rgba(255,255,255,.055); }
  .nav-item.active { color: #73b7ff; border-color: rgba(10,132,255,.18); background: rgba(10,132,255,.13); box-shadow: none; }
  .nav-item > i { color: #b7b7bd; background: rgba(255,255,255,.08); }
  .presence-control, .profile-pill, .icon-btn, .mobile-menu { color: #d5d5d8; border-color: var(--line); background: rgba(255,255,255,.055); box-shadow: none; }
  .presence-control select, .profile-pill { color: var(--ink); }
  .profile-pill small { color: var(--muted); }
  .glass, .metric-card, .task-card, .task-row, .person-chip, .user-card, .profile-card, .settings-card, .detail-panel, .modal, .chat-shell {
    color: var(--ink); border-color: var(--line); background: rgba(29,30,36,.78); box-shadow: var(--shadow-soft);
  }
  .metric-card:first-child, .metric-card.compact { background: rgba(29,30,36,.8); }
  .metric-head, .metric-head b, .metric-card > p, .mini-stats span { color: var(--muted); }
  .workload-ring { box-shadow: none; }
  .workload-ring > div { border-color: var(--line); background: #1c1d22; box-shadow: none; }
  .task-card::before { opacity: .4; }
  .task-card:hover, .task-row:hover { border-color: rgba(10,132,255,.28); box-shadow: 0 14px 32px rgba(0,0,0,.26); }
  .task-row::before { background: var(--blue); }
  .segmented, .detail-tabs { border-color: var(--line); background: rgba(255,255,255,.05); box-shadow: none; }
  .segmented button.active, .detail-tab.active { color: var(--ink); background: rgba(255,255,255,.11); box-shadow: none; }
  input, select, textarea { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.055); box-shadow: none; }
  input:focus, select:focus, textarea:focus { background: rgba(255,255,255,.075); }
  label { color: #c7c7cc; }
  .btn.secondary { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.07); box-shadow: none; }
  .btn.danger { color: #ff9aa9; background: rgba(255,69,88,.12); }
  .cal-day { border-color: var(--line); background: rgba(29,30,36,.75); }
  .cal-task { color: #8bc6ff; background: rgba(10,132,255,.13); }
  .empty-state { color: var(--muted); border-color: var(--line-strong); background: rgba(255,255,255,.025); }
  .modal-backdrop { background: rgba(0,0,0,.5); }
  .modal-close { color: #d5d5d8; border-color: var(--line); background: rgba(255,255,255,.08); box-shadow: none; }
  .meta-box, .comment-bubble, .file-item, .flow-message, .timeline-note, .new-task-file-list > div { background: rgba(255,255,255,.055); }
  .chat-online .avatar { border-color: #1c1d22; }
  .staff-message-content p { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.07); }
  .staff-message.mine .staff-message-content p { border-color: rgba(10,132,255,.24); background: rgba(10,132,255,.17); }
  .chat-composer { background: rgba(20,21,25,.78); }
  .toast { color: var(--ink); border-color: var(--line); background: rgba(35,36,42,.94); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
  .toast.error { color: #ff9aa9; }
  .login-view { background: radial-gradient(circle at 20% 10%,rgba(10,132,255,.16),transparent 34%),#0f1013; }
  .liquid-orb { opacity: .18; }
  .login-stage { border-color: var(--line); background: rgba(29,30,36,.6); box-shadow: 0 35px 100px rgba(0,0,0,.42); }
  .login-panel { background: rgba(22,23,28,.76); }
  .login-copy > p:last-child, .secure-note, .credit { color: var(--muted); }
}
