/* DC CONTROL · Mis Tareas 2.0 · jerarquía visual canónica */
.dct-overlay{position:fixed;inset:0;z-index:99999;background:var(--dc-bg);color:var(--dc-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;overflow:auto;overscroll-behavior:contain}
.dct-workspace{min-height:100vh;background:linear-gradient(180deg,var(--dc-bg-soft),var(--dc-bg) 190px)}
.dct-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(18px,4vw,42px);background:linear-gradient(135deg,#071a30,#0b4274);color:#fff;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 12px 34px rgba(4,23,43,.18)}
.dct-brand{display:flex;gap:14px;align-items:center;min-width:0}.dct-brand-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#f1a91b,#d38309);font-size:27px;font-weight:900;box-shadow:0 10px 24px rgba(211,131,9,.30)}
.dct-brand small,.dct-kicker{display:block;font-size:10px;letter-spacing:.13em;font-weight:900;color:var(--dc-primary);text-transform:uppercase}.dct-brand small{color:#b9d9ff}.dct-brand h1{margin:2px 0 0;font-size:clamp(24px,3vw,34px);letter-spacing:-.035em}.dct-brand p{margin:3px 0 0;color:#c7d9ec;font-size:12px}
.dct-top-actions{display:flex;align-items:center;gap:12px}.dct-user-chip{display:grid;text-align:right}.dct-user-chip b{font-size:13px}.dct-user-chip small{font-size:10px;color:#b9d9ff}.dct-close{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:inherit;width:44px;height:44px;border-radius:14px;font:inherit;font-size:18px;cursor:pointer;display:grid;place-items:center}.dct-close:hover{background:rgba(255,255,255,.20)}
.dct-shell{width:min(1260px,calc(100% - 32px));margin:auto;padding:22px 0 48px}.dct-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.dct-metric{min-height:110px;background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:var(--dc-radius-lg);box-shadow:var(--dc-shadow-sm);padding:17px;display:flex;gap:13px;align-items:center;position:relative;overflow:hidden}.dct-metric:after{content:"";position:absolute;inset:auto -22px -30px auto;width:100px;height:100px;border-radius:50%;background:color-mix(in srgb,var(--tone) 11%,transparent)}.dct-metric>span{width:40px;height:40px;border-radius:13px;background:color-mix(in srgb,var(--tone) 13%,var(--dc-surface));color:var(--tone);display:grid;place-items:center;font-size:20px;font-weight:900}.dct-metric div{display:grid;gap:1px}.dct-metric small{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--dc-muted);font-weight:900}.dct-metric strong{font-size:29px;letter-spacing:-.04em;line-height:1;color:var(--dc-text-strong)}.dct-metric em{font-style:normal;font-size:11px;color:var(--dc-muted)}.dct-tone-amber{--tone:var(--dc-warning)}.dct-tone-blue{--tone:var(--dc-primary)}.dct-tone-purple{--tone:var(--dc-purple)}.dct-tone-green{--tone:var(--dc-success)}
.dct-tabs{display:flex;gap:8px;overflow:auto;padding:5px;background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:17px;box-shadow:var(--dc-shadow-xs);margin-bottom:18px;scrollbar-width:none}.dct-tabs::-webkit-scrollbar{display:none}.dct-tabs button{border:0;background:transparent;color:var(--dc-muted);padding:10px 15px;border-radius:12px;font:inherit;font-size:12px;font-weight:850;white-space:nowrap;cursor:pointer;display:flex;gap:7px;align-items:center}.dct-tabs button span{font-size:15px}.dct-tabs button:hover{background:var(--dc-surface-2);color:var(--dc-text)}.dct-tabs button.active{background:var(--dc-primary);color:#fff;box-shadow:0 8px 18px color-mix(in srgb,var(--dc-primary) 28%,transparent)}
.dct-view{min-height:440px}.dct-content-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:18px}.dct-main-col,.dct-side-col,.dct-admin-list{min-width:0}.dct-side-col{display:grid;align-content:start;gap:14px}.dct-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 12px}.dct-section-head h2,.dct-resp-hero h2,.dct-person-detail-head h2{margin:3px 0 3px;font-size:22px;letter-spacing:-.025em;color:var(--dc-text-strong)}.dct-section-head p,.dct-resp-hero p,.dct-person-detail-head p{margin:0;color:var(--dc-muted);font-size:12px}
.dct-task-list{display:grid;gap:11px}.dct-task{background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:18px;padding:16px;box-shadow:var(--dc-shadow-xs);transition:.18s ease}.dct-task:hover{border-color:color-mix(in srgb,var(--dc-primary) 35%,var(--dc-line));box-shadow:var(--dc-shadow-sm);transform:translateY(-1px)}.dct-task.late{border-left:4px solid var(--dc-danger)}.dct-task-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dct-task-title{display:flex;align-items:center;gap:11px;min-width:0}.dct-task-icon{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:var(--dc-info-bg);color:var(--dc-primary);font-size:18px;font-weight:900}.dct-task-title small{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--dc-muted)}.dct-task-title h3{margin:2px 0 0;font-size:16px;line-height:1.25;color:var(--dc-text-strong)}.dct-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;border:1px solid transparent;white-space:nowrap}.dct-status.warning{background:var(--dc-warn-bg);color:var(--dc-warning);border-color:color-mix(in srgb,var(--dc-warning) 25%,transparent)}.dct-status.info{background:var(--dc-info-bg);color:var(--dc-primary);border-color:color-mix(in srgb,var(--dc-primary) 25%,transparent)}.dct-status.purple{background:color-mix(in srgb,var(--dc-purple) 12%,var(--dc-surface));color:var(--dc-purple);border-color:color-mix(in srgb,var(--dc-purple) 25%,transparent)}.dct-status.success{background:var(--dc-success-bg);color:var(--dc-success);border-color:color-mix(in srgb,var(--dc-success) 25%,transparent)}.dct-task-copy{font-size:12px;line-height:1.55;color:var(--dc-text);margin:12px 0}.dct-task-meta{display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:10px;border-top:1px solid var(--dc-line);color:var(--dc-muted);font-size:10px}.dct-task-meta .high{color:var(--dc-danger);font-weight:850}.dct-last-progress{margin-top:10px;padding:10px 12px;background:var(--dc-surface-2);border:1px solid var(--dc-line);border-radius:12px}.dct-last-progress small{font-size:9px;letter-spacing:.06em;font-weight:900;color:var(--dc-muted);text-transform:uppercase}.dct-last-progress p{margin:3px 0 0;font-size:11px}.dct-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.dct-btn{border:1px solid transparent;border-radius:11px;padding:9px 12px;font:inherit;font-size:11px;font-weight:850;cursor:pointer;transition:.15s ease}.dct-btn:hover{transform:translateY(-1px)}.dct-btn.primary{background:var(--dc-primary);color:#fff}.dct-btn.success{background:var(--dc-success);color:#fff}.dct-btn.secondary{background:var(--dc-surface-3);color:var(--dc-text);border-color:var(--dc-line)}.dct-btn.ghost{background:transparent;color:var(--dc-primary);border-color:var(--dc-line)}.dct-text-btn{border:0;background:none;color:var(--dc-primary);font:inherit;font-weight:850;font-size:11px;padding:0;cursor:pointer}
.dct-side-card,.dct-form-card,.dct-person-panel,.dct-resp-hero,.dct-principles{background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:20px;padding:17px;box-shadow:var(--dc-shadow-xs)}.dct-side-card h3{margin:4px 0 9px;font-size:16px}.dct-side-card>p{font-size:12px;line-height:1.5;color:var(--dc-muted)}.dct-side-card .dct-task{box-shadow:none;margin-top:8px;padding:12px}.dct-side-card .dct-task-title h3{font-size:12px}.dct-side-card .dct-task-meta{font-size:9px}
.dct-empty{display:grid;justify-items:center;text-align:center;padding:44px 20px;background:var(--dc-surface);border:1px dashed var(--dc-line-strong);border-radius:18px}.dct-empty>span{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--dc-success-bg);color:var(--dc-success);font-size:24px;font-weight:900;margin-bottom:10px}.dct-empty b{font-size:15px}.dct-empty p{margin:4px 0;color:var(--dc-muted);font-size:11px;max-width:330px}
.dct-team-layout{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(0,1.4fr);gap:18px}.dct-people-grid{display:grid;gap:9px}.dct-person-card{width:100%;border:1px solid var(--dc-line);background:var(--dc-surface);color:var(--dc-text);border-radius:16px;padding:12px;display:grid;grid-template-columns:44px 1fr auto auto;gap:10px;align-items:center;text-align:left;font:inherit;cursor:pointer;box-shadow:var(--dc-shadow-xs)}.dct-person-card:hover{border-color:var(--dc-primary);background:var(--dc-info-bg)}.dct-avatar{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,var(--dc-primary),var(--dc-purple));color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900}.dct-avatar.large{width:62px;height:62px;border-radius:18px;font-size:16px}.dct-person-copy{min-width:0;display:grid}.dct-person-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dct-person-copy small{font-size:10px;color:var(--dc-muted);margin-top:2px}.dct-person-stats{display:grid;text-align:center}.dct-person-stats b{font-size:18px}.dct-person-stats small{font-size:8px;color:var(--dc-muted);text-transform:uppercase}.dct-person-card em{font-style:normal;background:color-mix(in srgb,var(--dc-purple) 12%,var(--dc-surface));color:var(--dc-purple);padding:5px 7px;border-radius:999px;font-size:8px;font-weight:900}.dct-person-panel{min-height:420px}.dct-person-detail-head{display:flex;gap:14px;align-items:center;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--dc-line)}
.dct-admin-layout{display:grid;grid-template-columns:minmax(330px,.75fr) minmax(0,1.25fr);gap:18px;align-items:start}.dct-form-card{position:sticky;top:118px}.dct-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.dct-form label,.dct-dialog-label,.dct-guide-editor label{display:grid;gap:6px;font-size:10px;font-weight:850;color:var(--dc-muted)}.dct-form .wide{grid-column:1/-1}.dct-form input,.dct-form select,.dct-form textarea,.dct-dialog textarea,.dct-guide-editor input,.dct-guide-editor textarea{width:100%;border:1px solid var(--dc-line-strong);border-radius:11px;padding:11px 12px;background:var(--dc-input);color:var(--dc-text);font:inherit;font-size:12px;outline:none}.dct-form input:focus,.dct-form select:focus,.dct-form textarea:focus,.dct-dialog textarea:focus,.dct-guide-editor input:focus,.dct-guide-editor textarea:focus{border-color:var(--dc-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--dc-primary) 12%,transparent)}
.dct-resp{display:grid;gap:18px}.dct-resp-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--dc-primary) 12%,var(--dc-surface)),var(--dc-surface))}.dct-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dct-rules article{display:flex;gap:11px;align-items:flex-start;background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:16px;padding:13px;box-shadow:var(--dc-shadow-xs)}.dct-rules article>span{width:29px;height:29px;min-width:29px;border-radius:9px;display:grid;place-items:center;background:var(--dc-primary);color:#fff;font-size:11px;font-weight:900}.dct-rules p{margin:3px 0 0;font-size:11px;line-height:1.48}.dct-principles h3{margin:0 0 10px;font-size:16px}.dct-principles p{display:flex;gap:9px;align-items:flex-start;margin:7px 0;font-size:11px;line-height:1.5;color:var(--dc-muted)}.dct-principles p span{color:var(--dc-success);font-weight:900}.dct-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dct-profile-card{background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:18px;padding:16px;box-shadow:var(--dc-shadow-xs)}.dct-profile-card.featured{border-color:color-mix(in srgb,var(--dc-primary) 45%,var(--dc-line));box-shadow:0 12px 30px color-mix(in srgb,var(--dc-primary) 10%,transparent)}.dct-profile-head{display:flex;gap:10px;align-items:center}.dct-profile-head>span{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--dc-info-bg);color:var(--dc-primary);font-weight:900}.dct-profile-head small{font-size:8px;letter-spacing:.08em;font-weight:900;color:var(--dc-muted)}.dct-profile-head h3{margin:2px 0 0;font-size:14px}.dct-profile-card .goal{font-size:11px;line-height:1.5;color:var(--dc-muted)}.dct-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dct-profile-grid>div{background:var(--dc-surface-2);border:1px solid var(--dc-line);border-radius:12px;padding:10px}.dct-profile-grid small{font-size:8px;font-weight:900;letter-spacing:.07em;color:var(--dc-primary)}.dct-profile-grid p{margin:5px 0 0;font-size:10px;line-height:1.45}.dct-profile-card blockquote{margin:11px 0 0;padding:10px 12px;border-left:3px solid var(--dc-warning);background:var(--dc-warn-bg);border-radius:0 10px 10px 0;font-size:10px;font-weight:750;color:var(--dc-text)}
.dct-history{display:grid;gap:9px}.dct-history>article{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:start;background:var(--dc-surface);border:1px solid var(--dc-line);border-radius:15px;padding:13px}.dct-history-dot{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--dc-success-bg);color:var(--dc-success);font-weight:900}.dct-history b,.dct-history small{display:block}.dct-history b{font-size:12px}.dct-history small{font-size:9px;color:var(--dc-muted);margin-top:2px}.dct-history p{font-size:10px;color:var(--dc-muted);margin:5px 0 0}
.dct-dialog-backdrop{position:fixed;inset:0;z-index:40;background:rgba(4,17,31,.65);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px}.dct-dialog{width:min(620px,100%);max-height:min(88vh,820px);overflow:auto;background:var(--dc-surface);color:var(--dc-text);border:1px solid var(--dc-line);border-radius:22px;box-shadow:var(--dc-shadow-lg)}.wide-dialog .dct-dialog{width:min(900px,100%)}.dct-dialog>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:var(--dc-surface);border-bottom:1px solid var(--dc-line)}.dct-dialog>header h2{margin:3px 0 0;font-size:19px}.dct-dialog .dct-close{background:var(--dc-surface-3);color:var(--dc-text);border-color:var(--dc-line);width:38px;height:38px}.dct-dialog-body{padding:17px}.dct-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 17px;border-top:1px solid var(--dc-line);background:var(--dc-surface-2)}.dct-dialog textarea{resize:vertical;min-height:120px}.dct-guide-editor{display:grid;gap:10px}.dct-guide-editor h3{margin:13px 0 0;font-size:14px}.dct-guide-editor details{border:1px solid var(--dc-line);border-radius:13px;padding:10px;background:var(--dc-surface-2)}.dct-guide-editor summary{font-weight:850;font-size:12px;cursor:pointer}.dct-guide-editor details label{margin-top:9px}
.dct-loading,.dct-error{min-height:100vh;display:grid;place-items:center;align-content:center;text-align:center;gap:10px;padding:30px}.dct-loading span,.dct-error>span{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--dc-primary);color:#fff;font-size:30px;font-weight:900;box-shadow:var(--dc-shadow)}.dct-loading b{font-size:15px}.dct-error{position:relative}.dct-error .dct-close{position:absolute;right:20px;top:20px;color:var(--dc-text);background:var(--dc-surface);border-color:var(--dc-line)}.dct-error>span{background:var(--dc-danger)}.dct-error h2{margin:6px 0 0}.dct-error p{max-width:520px;color:var(--dc-muted)}
.more-grid1048 .dct-more-card{background:#1756ad!important;color:#fff!important;border-color:#1756ad!important}.more-grid1048 .dct-more-card .more-copy1048,.more-grid1048 .dct-more-card .more-copy1048 small,.more-grid1048 .dct-more-card em{color:#fff!important}
html[data-theme="dark"] .dct-topbar{background:linear-gradient(135deg,#061524,#0a3359)}
@media(max-width:980px){.dct-content-grid,.dct-team-layout,.dct-admin-layout{grid-template-columns:1fr}.dct-form-card{position:static}.dct-side-col{grid-template-columns:1fr 1fr}.dct-profile-list{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.dct-topbar{align-items:flex-start;padding:14px 14px 13px}.dct-brand-icon{width:44px;height:44px;border-radius:13px;font-size:22px}.dct-brand h1{font-size:22px}.dct-brand p{display:none}.dct-user-chip{display:none}.dct-close{width:40px;height:40px}.dct-shell{width:min(100% - 20px,1260px);padding-top:12px}.dct-metrics{grid-template-columns:1fr 1fr;gap:8px}.dct-metric{min-height:86px;padding:12px}.dct-metric>span{width:34px;height:34px}.dct-metric strong{font-size:23px}.dct-tabs{border-radius:14px}.dct-tabs button{padding:9px 11px;font-size:10px}.dct-content-grid,.dct-side-col{grid-template-columns:1fr}.dct-task{padding:13px}.dct-task-top{align-items:flex-start}.dct-task-title h3{font-size:14px}.dct-status{font-size:8px}.dct-actions .dct-btn{flex:1;min-width:120px}.dct-person-card{grid-template-columns:40px 1fr auto}.dct-person-card em{display:none}.dct-avatar{width:40px;height:40px}.dct-form{grid-template-columns:1fr}.dct-form .wide{grid-column:auto}.dct-rules,.dct-profile-list{grid-template-columns:1fr}.dct-resp-hero{align-items:flex-start;flex-direction:column}.dct-profile-grid{grid-template-columns:1fr}.dct-history>article{grid-template-columns:32px 1fr}.dct-history>article>.dct-status{grid-column:2;justify-self:start}.dct-dialog-backdrop{padding:8px;align-items:end}.dct-dialog{border-radius:22px 22px 0 0;max-height:92vh}.dct-dialog>footer{position:sticky;bottom:0}.dct-guide-editor textarea{min-height:70px}}
@media(max-width:430px){.dct-brand small{font-size:8px}.dct-metric small{font-size:8px}.dct-metric em{display:none}.dct-metric{min-height:74px}.dct-task-meta{gap:5px 9px}.dct-actions .dct-btn{width:100%;flex:auto}.dct-person-detail-head{align-items:flex-start}.dct-profile-card{padding:13px}}
.dct-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dct-evidence-card{display:grid;grid-template-columns:96px 1fr;gap:10px;align-items:center;text-decoration:none;color:var(--dc-text);border:1px solid var(--dc-line);border-radius:14px;padding:9px;background:var(--dc-surface-2)}.dct-evidence-card img{width:96px;height:78px;object-fit:cover;border-radius:10px;background:var(--dc-surface-3)}.dct-evidence-card span{display:grid;gap:3px}.dct-evidence-card b{font-size:11px}.dct-evidence-card small{font-size:9px;color:var(--dc-muted)}@media(max-width:600px){.dct-evidence-grid{grid-template-columns:1fr}}
.dct-brand h1{color:#fff!important}
