/* ═══════════════════════════════════════════
   ZANDER TOOLS — Dashboard Glass v3
   Marzo 2026
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Paleta corporativa — sin azul */
    --yellow:      #F5C518;
    --yellow-a15:  rgba(245, 197, 24, 0.15);
    --yellow-a08:  rgba(245, 197, 24, 0.08);
    --green:       #4ADE80;
    --green-a12:   rgba(74, 222, 128, 0.12);
    --green-a06:   rgba(74, 222, 128, 0.06);
    --purple:      #A78BFA;
    --purple-a12:  rgba(167, 139, 250, 0.12);
    --red:         #F87171;
    --red-a12:     rgba(248, 113, 113, 0.12);
    --orange:      #FB923C;
    --orange-a12:  rgba(251, 146, 60, 0.12);

    /* Neutros cálidos para iconos */
    --neu-a08: rgba(255, 248, 235, 0.08);
    --neu-a05: rgba(255, 248, 235, 0.05);

    /* Glass */
    --glass-bg:       rgba(255, 252, 245, 0.04);
    --glass-bg-h:     rgba(255, 252, 245, 0.07);
    --glass-border:   rgba(255, 248, 230, 0.09);
    --glass-border-h: rgba(255, 248, 230, 0.17);
    --glass-specular: rgba(255, 248, 220, 0.7);
    --glass-blur:     blur(28px) saturate(175%) brightness(1.05);
    --glass-shadow:
        0 20px 56px rgba(0, 0, 0, 0.58),
        0 6px 18px  rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 248, 220, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);

    /* Texto */
    --t1: rgba(255, 252, 245, 0.96);
    --t2: rgba(255, 248, 230, 0.45);
    --t3: rgba(255, 245, 220, 0.22);

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    /* Fondo negro cálido */
    --bg: #0D0B09;
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Ambient light blobs ── */
.dash-amb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    animation: ambFloat 14s ease-in-out infinite;
}
.dash-amb-1 {
    top: -15%; left: 220px;
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(245,197,24,0.07) 0%, transparent 70%);
    animation-delay: 0s;
}
.dash-amb-2 {
    top: 40%; right: -4%;
    width: 380px; height: 380px;
    background: radial-gradient(ellipse, rgba(74,222,128,0.055) 0%, transparent 70%);
    animation-delay: -5s;
}
.dash-amb-3 {
    bottom: -8%; left: 40%;
    width: 560px; height: 260px;
    background: radial-gradient(ellipse, rgba(167,139,250,0.045) 0%, transparent 70%);
    animation-delay: -9s;
}
@keyframes ambFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(14px,-18px) scale(1.04); }
    66%       { transform: translate(-8px, 11px) scale(0.97); }
}

/* Noise texture */
.dash-noise {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    pointer-events: none; z-index: 0; opacity: 0.45;
}

/* ═══════════════════════════════════════════
   GLASS CARD — estilo Apple
   ═══════════════════════════════════════════ */
.glass {
    position: relative;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
            backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: background 0.26s ease, border-color 0.26s ease, transform 0.2s ease;
    animation: cardIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
/* Highlight especular — borde superior brillante */
.glass::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-specular) 50%, transparent);
    opacity: 0.5;
    pointer-events: none; z-index: 10;
}
/* Grano de textura sutil */
.glass::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' seed='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.034'/%3E%3C/svg%3E");
    background-size: 140px 140px;
    pointer-events: none; z-index: 1; border-radius: inherit;
}
.glass > * { position: relative; z-index: 2; }
.glass:hover {
    background: var(--glass-bg-h);
    border-color: var(--glass-border-h);
    transform: translateY(-1px);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.s1  { animation-delay: 0.04s; } .s2  { animation-delay: 0.10s; }
.s3  { animation-delay: 0.16s; } .s4  { animation-delay: 0.22s; }
.s5  { animation-delay: 0.28s; } .s6  { animation-delay: 0.34s; }
.s7  { animation-delay: 0.40s; } .s8  { animation-delay: 0.46s; }
.s9  { animation-delay: 0.52s; } .s10 { animation-delay: 0.58s; }
.s11 { animation-delay: 0.64s; } .s12 { animation-delay: 0.70s; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.dash-main {
    margin-left: 200px;
    padding: 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Wrapper centrado — ~80% del espacio disponible */
.db-inner {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 40px 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    margin-bottom: 0; /* gap se encarga */
}
.dash-header-brand .dash-greeting {
    font-size: 12px;
    color: var(--t2);
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}
.dash-logo-wrap { display: flex; align-items: baseline; }
.dash-logo-zander { font-size: 26px; font-weight: 900; color: var(--t1); letter-spacing: -0.03em; }
.dash-logo-tools  { font-size: 26px; font-weight: 900; color: var(--yellow); letter-spacing: -0.03em; }

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dash-header-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.dash-header-date {
    font-size: 13px; color: var(--t2); font-weight: 500;
}
.dash-header-status {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; color: var(--t3);
}
.dash-status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 7px var(--green);
}
.dash-status-dot.error {
    background: var(--red);
    box-shadow: 0 0 7px var(--red);
}

/* ── User dropdown ── */
.dash-nav-user {
    position: relative;
}
.dash-nav-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,252,245,0.04);
    border: 1px solid rgba(255,248,230,0.1);
    border-radius: 100px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}
.dash-nav-user-btn:hover {
    border-color: rgba(245,197,24,0.4);
    background: rgba(255,252,245,0.07);
}
.dash-nav-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--yellow);
    color: #000;
    font-size: 14px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.dash-nav-info { text-align: left; }
.dash-nav-name {
    font-size: 13px; font-weight: 800;
    color: var(--t1); line-height: 1;
    white-space: nowrap;
}
.dash-nav-role {
    font-size: 10px; font-weight: 700;
    color: var(--t2); letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Dropdown panel */
.admin-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(18,15,12,0.97);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
            backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,248,230,0.1);
    border-radius: var(--r-md);
    padding: 8px;
    min-width: 210px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,248,220,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 200;
}
.admin-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px; font-weight: 700;
    color: var(--t1);
    cursor: pointer;
    transition: background 0.15s;
    border: none; background: none;
    width: 100%; text-align: left;
    font-family: inherit;
}
.dropdown-item:hover { background: rgba(255,248,230,0.07); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item svg   { opacity: 0.7; flex-shrink: 0; }
.dropdown-divider {
    height: 1px;
    background: rgba(255,248,230,0.07);
    margin: 6px 0;
}

/* ── Modal cambio contraseña ── */
.modal-overlay {
    position: fixed; inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: rgba(22,18,14,0.98);
    border: 1px solid rgba(255,248,230,0.12);
    border-radius: var(--r-xl);
    padding: 32px;
    width: 100%; max-width: 420px;
    transform: scale(0.95);
    transition: transform 0.2s;
    box-shadow: 0 32px 64px rgba(0,0,0,0.7);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-title  { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.modal-sub    { font-size: 12px; color: var(--t2); margin-bottom: 24px; }
.modal-field  { margin-bottom: 16px; }
.modal-label  { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--t2); margin-bottom: 8px; }
.modal-input  {
    width: 100%; padding: 11px 14px;
    background: rgba(255,252,245,0.05);
    border: 1px solid rgba(255,248,230,0.1);
    border-radius: var(--r-sm);
    color: var(--t1); font-family: inherit;
    font-size: 14px; font-weight: 600;
    outline: none; transition: border-color 0.2s;
}
.modal-input:focus { border-color: rgba(245,197,24,0.5); }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-btn {
    flex: 1; padding: 11px; border-radius: 10px;
    font-size: 13px; font-weight: 800;
    cursor: pointer; border: 1px solid transparent;
    font-family: inherit; transition: all 0.2s;
}
.modal-btn-secondary {
    background: rgba(255,252,245,0.05);
    border-color: rgba(255,248,230,0.1);
    color: var(--t2);
}
.modal-btn-secondary:hover { background: rgba(255,252,245,0.09); color: var(--t1); }
.modal-btn-primary {
    background: var(--yellow); color: #000;
}
.modal-btn-primary:hover { opacity: 0.88; }
.modal-msg { font-size: 12px; font-weight: 700; margin-top: 12px; min-height: 18px; }
.modal-msg.err { color: var(--red); }
.modal-msg.ok  { color: var(--green); }

/* ═══════════════════════════════════════════
   ALERTAS
   ═══════════════════════════════════════════ */
.alerts-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 600;
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    animation: cardIn 0.3s ease-out;
}
.alert-critical { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); }
.alert-warning  { background: rgba(245,158,11,0.08);  border: 1px solid rgba(245,158,11,0.2); }
.alert-info     { background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.2); }
.alert-critical .alert-icon { color: var(--red); }
.alert-warning  .alert-icon { color: #f59e0b; }
.alert-info     .alert-icon { color: var(--purple); }
.alert-icon { flex-shrink: 0; display: flex; align-items: center; }
.alert-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.alert-content strong { font-size: 14px; font-weight: 800; }
.alert-content span   { font-size: 13px; color: var(--t2); font-weight: 500; }
.alert-source { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--t3); flex-shrink: 0; }
.alert-link   { font-size: 13px; font-weight: 700; color: var(--yellow); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.alert-link:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════
   TOP ROW — Vencimientos + 3 KPIs
   ═══════════════════════════════════════════ */
.top-row {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 14px;
}

/* Vencimientos Próximos */
.venc-card { padding: 22px; }
.sec-label {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--t2); font-weight: 700;
    margin-bottom: 16px;
}
.venc-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; padding: 24px 0; color: var(--t3);
}
.venc-empty-icon {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--neu-a05);
    border: 1px solid rgba(255,248,230,0.07);
    display: flex; align-items: center; justify-content: center;
}
.venc-empty p { font-size: 13px; }

.venc-list { display: flex; flex-direction: column; gap: 9px; }
.venc-item {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border-radius: var(--r-md);
    background: var(--neu-a05);
    border: 1px solid rgba(255,248,230,0.06);
}
.venc-left { display: flex; align-items: center; gap: 10px; }
.venc-days {
    min-width: 42px; height: 42px; border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; line-height: 1;
}
.venc-days span { font-size: 9px; font-weight: 500; opacity: 0.75; margin-top: 1px; }
.venc-name  { font-size: 13px; font-weight: 700; }
.venc-svc   { font-size: 11px; color: var(--t2); margin-top: 2px; }
.venc-price { font-size: 14px; font-weight: 800; color: var(--yellow); }

/* KPI Cards */
.kpi-card {
    padding: 22px;
    display: flex; flex-direction: column;
    min-height: 150px;
    text-decoration: none;
    color: var(--t1);
}
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; }
.kpi-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--neu-a08);
}
.pill {
    font-size: 10px; font-weight: 700;
    padding: 3px 9px; border-radius: 100px;
    letter-spacing: 0.03em;
}
.p-yellow { background: var(--yellow-a15); color: var(--yellow); }
.p-green  { background: var(--green-a12);  color: var(--green); }
.p-purple { background: var(--purple-a12); color: var(--purple); }
.p-red    { background: var(--red-a12);    color: var(--red); }
.p-neu    { background: var(--neu-a08); color: var(--t2); }

.kpi-val {
    font-size: 32px; font-weight: 900;
    letter-spacing: -0.04em; line-height: 1;
    margin: 11px 0 4px;
}
.kpi-lbl {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--t2); font-weight: 700;
}
.kpi-sparkline { margin-top: 10px; width: 100%; height: 30px; }
.kpi-prog      { margin-top: 12px; }
.kpi-prog-head {
    display: flex; justify-content: space-between;
    font-size: 10px; color: var(--t3); margin-bottom: 5px;
}
.prog-track { height: 4px; background: rgba(255,248,230,0.07); border-radius: 4px; overflow: hidden; }
.prog-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--yellow), var(--green)); }

/* ═══════════════════════════════════════════
   MID ROW — Gráfico + Pipeline
   ═══════════════════════════════════════════ */
.mid-row {
    display: grid;
    grid-template-columns: 2.1fr 1.15fr;
    gap: 14px;
}
.chart-card  { padding: 22px; }
.card-hdr    { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.card-title  { font-size: 15px; font-weight: 800; }
.card-sub    { font-size: 11px; color: var(--t2); margin-top: 2px; }

.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--t2); }
.leg-dot      { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }

.tabs {
    display: flex; gap: 3px;
    background: rgba(255,248,230,0.05);
    padding: 3px; border-radius: 100px;
}
.tab {
    font-size: 11px; font-weight: 600;
    padding: 5px 12px; border-radius: 100px;
    cursor: pointer; color: var(--t2); transition: all 0.2s;
}
.tab.active { background: var(--yellow); color: #000; font-weight: 800; }

/* Pipeline */
.pipeline-card { padding: 22px; }
.pipe-steps    { display: flex; flex-direction: column; gap: 13px; }
.pipe-row {
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 13px; margin-bottom: 6px;
}
.pipe-lbl   { color: var(--t2); display: flex; align-items: center; gap: 8px; }
.pipe-dot   { width: 7px; height: 7px; border-radius: 50%; }
.pipe-meta  { display: flex; align-items: center; gap: 10px; }
.pipe-count { font-weight: 800; font-size: 14px; }
.pipe-pct   { font-size: 11px; color: var(--t3); }
.pipe-track { height: 6px; background: rgba(255,248,230,0.06); border-radius: 100px; overflow: hidden; }
.pipe-fill  { height: 100%; border-radius: 100px; transition: width 1.4s cubic-bezier(0.4,0,0.2,1); }

.divider { height: 1px; background: rgba(255,248,230,0.05); margin: 14px 0; }

.conv-row { display: flex; align-items: center; justify-content: space-between; }
.conv-lbl { font-size: 13px; color: var(--t2); }
.conv-val { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }

/* ═══════════════════════════════════════════
   STATS ROW
   ═══════════════════════════════════════════ */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat-card {
    padding: 17px 18px;
    display: flex; align-items: center; gap: 13px;
}
.stat-ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--neu-a08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-val { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--t2); font-weight: 700; margin-top: 4px; }

/* ═══════════════════════════════════════════
   BOTTOM ROW
   ═══════════════════════════════════════════ */
.bot-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.list-card { padding: 22px; }
.list-hdr  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.list-title { font-size: 14px; font-weight: 800; }
.list-link  { font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }

.li {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,248,230,0.04);
}
.li:last-child { border-bottom: none; }
.li-left  { display: flex; align-items: center; gap: 10px; }
.li-ava   {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.li-name  { font-size: 13px; font-weight: 700; }
.li-sub   { font-size: 11px; color: var(--t2); margin-top: 2px; }

.badge {
    font-size: 9px; font-weight: 800;
    padding: 3px 9px; border-radius: 6px;
    letter-spacing: 0.05em; text-transform: uppercase;
    white-space: nowrap;
}
.badge-nuevo       { background: rgba(74,222,128,0.14);  color: #4ADE80; }
.badge-contactado  { background: rgba(167,139,250,0.14); color: #A78BFA; }
.badge-propuesta   { background: rgba(245,197,24,0.14);  color: var(--yellow); }
.badge-negociacion { background: rgba(251,146,60,0.14);  color: var(--orange); }
.badge-ganado      { background: rgba(167,139,250,0.14); color: #A78BFA; }
.badge-perdido     { background: rgba(248,113,113,0.14); color: #F87171; }

.amount      { font-size: 13px; font-weight: 800; color: var(--yellow); white-space: nowrap; }
.total-row   { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.total-lbl   { font-size: 12px; color: var(--t2); }
.total-val   { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.panel-empty { padding: 20px 0; text-align: center; font-size: 13px; color: var(--t3); }

/* Webs */
.web-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(255,248,230,0.04);
}
.web-row:last-child { border-bottom: none; }
.web-left  { display: flex; align-items: center; gap: 10px; }
.s-dot     { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.s-ok      { background: var(--green);  box-shadow: 0 0 7px var(--green); }
.s-err     { background: var(--red);    box-shadow: 0 0 7px var(--red); }
.web-name  { font-size: 13px; font-weight: 700; }
.web-info  { font-size: 11px; color: var(--t2); margin-top: 1px; }
.web-st    { font-size: 11px; font-weight: 800; }

/* Días urgencia */
.days-badge  { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.urgency-critical { background: var(--red-a12);    color: var(--red); }
.urgency-warning  { background: var(--orange-a12); color: var(--orange); }
.urgency-ok       { background: var(--green-a12);  color: var(--green); }

/* ── Tasks dashboard card ── */
.tasks-dash-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1280px) {
    .top-row   { grid-template-columns: 1fr 1fr; }
    .mid-row   { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .bot-row   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .top-row   { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .bot-row   { grid-template-columns: 1fr; }
    .dash-main { padding: 20px 20px 40px; }
}
@media (max-width: 768px) {
    .dash-main  { margin-left: 56px; padding: 16px 14px 40px; }
    .top-row    { grid-template-columns: 1fr; }
    .stats-row  { grid-template-columns: repeat(2, 1fr); }
    .kpi-val    { font-size: 26px; }
}
@media (max-width: 480px) {
    .stats-row  { grid-template-columns: 1fr 1fr; }
    .dash-main  { gap: 12px; }
}
