/* ===========================================================
   Gestor Documental Municipal — Hoja de estilos principal
   Paleta inspirada en el mockup: azules sobre fondo claro,
   sidebar redondeado, tarjetas blancas con sombras suaves.
   =========================================================== */

:root {
    --azul-900: #1e3a8a;
    --azul-700: #1d4ed8;
    --azul-600: #2563eb;
    --azul-500: #3b82f6;
    --azul-400: #60a5fa;
    --azul-300: #93c5fd;
    --azul-100: #dbeafe;
    --azul-50:  #eff6ff;

    --gradiente-sidebar: linear-gradient(160deg, #4f9bff 0%, #3b82f6 55%, #2563eb 100%);
    --gradiente-azul: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);

    --gris-900: #0f172a;
    --gris-700: #334155;
    --gris-500: #64748b;
    --gris-400: #94a3b8;
    --gris-300: #cbd5e1;
    --gris-200: #e2e8f0;
    --gris-100: #f1f5f9;
    --gris-50:  #f8fafc;

    --verde: #10b981;
    --ambar: #f59e0b;
    --rojo: #ef4444;
    --violeta: #8b5cf6;

    --bg: #eef3fb;
    --card: #ffffff;
    --texto: #1e293b;
    --texto-suave: #64748b;

    --radio: 18px;
    --radio-sm: 12px;
    --sombra: 0 10px 30px rgba(37, 99, 235, 0.08);
    --sombra-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --sidebar-w: 250px;
}

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

/* Iconos SVG inline (estilo trazo) */
svg.ic { fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; }

body {
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--texto);
    font-size: 14.5px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ===================== LAYOUT ===================== */
.layout { display: flex; min-height: 100vh; padding: 16px; gap: 16px; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--gradiente-sidebar);
    border-radius: 28px;
    padding: 26px 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.sidebar .brand {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 12px 22px;
}
.sidebar .brand .logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: grid; place-items: center; font-size: 22px;
    backdrop-filter: blur(4px);
}
.sidebar .brand b { font-size: 15px; font-weight: 700; display: block; line-height: 1.2; }
.sidebar .brand span { font-size: 11px; opacity: 0.8; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; flex: 1; }
.nav a {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 16px; border-radius: 14px;
    color: rgba(255,255,255,0.85); font-weight: 500;
    transition: background .18s, color .18s;
}
.nav a svg { width: 19px; height: 19px; stroke-width: 2; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,0.14); color:#fff; }
.nav a.active { background: #fff; color: var(--azul-700); box-shadow: var(--sombra-sm); }
.nav a.active svg { opacity: 1; }

.sidebar .nav-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
    opacity: .65; padding: 16px 16px 6px; }

.sidebar-foot {
    margin-top: auto; padding: 14px; border-radius: 16px;
    background: rgba(255,255,255,0.12); font-size: 12px;
}
.sidebar-foot a { display:flex; align-items:center; gap:8px; opacity:.9;}
.sidebar-foot a:hover{opacity:1;}

/* Botón hamburguesa (solo visible en tableta/celular) */
.hamburger {
    display: none; width: 42px; height: 42px; border-radius: 12px; border: none;
    background: #fff; box-shadow: var(--sombra-sm); color: var(--gris-700);
    cursor: pointer; place-items: center; flex-shrink: 0;
}
.hamburger svg { width: 22px; height: 22px; }

/* Botón cerrar dentro del cajón lateral (solo visible en tableta/celular) */
.sidebar-close {
    display: none; margin-left: auto; width: 34px; height: 34px; border: none;
    border-radius: 10px; background: rgba(255,255,255,.18); color: #fff;
    cursor: pointer; place-items: center; flex-shrink: 0;
}
.sidebar-close svg { width: 20px; height: 20px; }

/* Fondo oscuro tras el cajón lateral */
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    z-index: 90; backdrop-filter: blur(1px);
}

/* ===================== MAIN ===================== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h1 { font-size: 24px; font-weight: 700; color: var(--gris-900); }
.topbar .saludo span { color: var(--azul-600); }
.topbar .sub { font-size: 13px; color: var(--texto-suave); margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; padding: 9px 16px; border-radius: 30px;
    box-shadow: var(--sombra-sm); min-width: 230px;
}
.search input { border: none; outline: none; width: 100%; font-size: 13.5px; background: transparent; }
.search svg { width: 17px; height: 17px; color: var(--gris-400); }

.icon-btn {
    width: 42px; height: 42px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; box-shadow: var(--sombra-sm);
    color: var(--gris-500); cursor: pointer; border: none;
}
.icon-btn svg { width: 18px; height: 18px; }

.avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gradiente-azul); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 14px;
    box-shadow: var(--sombra-sm);
}
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }

/* Dropdowns (notificaciones / usuario) */
.dropdown { position: relative; }
.notif-badge { position: absolute; top: -3px; right: -3px; background: var(--rojo); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
    display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; background: #fff;
    border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.18); padding: 8px; z-index: 50;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--gris-100); margin-bottom: 6px;
    font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; }
.notif-item { display: flex; gap: 11px; padding: 10px 12px; border-radius: 10px; align-items: center; }
.notif-item:hover { background: var(--azul-50); }
.notif-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    color: #fff; flex-shrink: 0; }
.notif-ico svg { width: 17px; height: 17px; }
.notif-ico.rojo { background: var(--rojo); } .notif-ico.azul { background: var(--azul-500); }
.notif-ico.ambar { background: var(--ambar); }
.notif-empty { padding: 22px 12px; text-align: center; color: var(--gris-400); font-size: 13px; }
.dropdown-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    font-size: 13.5px; color: var(--gris-700); }
.dropdown-link:hover { background: var(--gris-100); }
.dropdown-link svg { width: 17px; height: 17px; }

/* Botón flotante de acción rápida (FAB) */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 80; }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--gradiente-azul); color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(37,99,235,.45); transition: transform .15s, box-shadow .15s; }
.fab-btn svg { width: 26px; height: 26px; }
.fab-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(37,99,235,.55); }
.fab.open .fab-btn { transform: rotate(45deg); }
.fab-menu { right: 0; top: auto; bottom: calc(100% + 14px); width: 220px; }

/* ===================== CARDS ===================== */
.card {
    background: var(--card); border-radius: var(--radio);
    padding: 22px; box-shadow: var(--sombra);
}
.card h3 { font-size: 15px; margin-bottom: 16px; color: var(--gris-900); }

/* Encabezados y contenedores de gráficos */
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.chart-head h3 { margin-bottom: 2px; }
.chart-sub { font-size: 12px; color: var(--gris-400); display: block; margin-bottom: 12px; }
.chart-box { position: relative; width: 100%; }
.legend-inline { display: flex; gap: 14px; font-size: 12px; color: var(--gris-500); flex-shrink: 0; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Selector de rango (7/30 dias) */
.range-toggle { display: inline-flex; background: var(--gris-100); border-radius: 10px; padding: 3px; gap: 2px; }
.range-toggle button { border: none; background: transparent; cursor: pointer; font: inherit;
    font-size: 12.5px; font-weight: 600; color: var(--gris-500); padding: 6px 12px; border-radius: 8px;
    transition: background .15s, color .15s; }
.range-toggle button:hover { color: var(--azul-700); }
.range-toggle button.active { background: #fff; color: var(--azul-700); box-shadow: var(--sombra-sm); }

.grid { display: grid; gap: 18px; }
/* minmax(0,1fr) permite que las columnas se encojan por debajo del ancho
   intrínseco de su contenido (clave para que los <canvas> de Chart.js no
   desborden la rejilla en pantallas estrechas). */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }

/* El lienzo de los gráficos nunca debe exceder su contenedor */
.chart-box { min-width: 0; }
.chart-box canvas,
.card canvas { max-width: 100% !important; }

/* ===========================================================
   RESPONSIVO  —  escritorio (>1024) · tableta (≤1024) · celular (≤640)
   =========================================================== */

/* --- Pantallas medianas: menos columnas en las rejillas --- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Una tarjeta que ocupaba 2 columnas pasa a ocupar el ancho completo */
    .col-span-2 { grid-column: 1 / -1; }
}

/* ===================== TABLETA Y CELULAR (≤1024px) =====================
   El sidebar se convierte en cajón deslizable controlado por la hamburguesa. */
@media (max-width: 1024px) {
    .layout { padding: 12px; gap: 0; }

    /* Sidebar fuera de pantalla, se desliza desde la izquierda */
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; height: 100vh;
        width: 270px; max-width: 84vw; border-radius: 0 24px 24px 0;
        z-index: 100; transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    /* Evitar scroll del fondo cuando el cajón está abierto */
    body.sidebar-open { overflow: hidden; }

    /* Mostrar controles del cajón */
    .hamburger { display: grid; }
    .sidebar-close { display: grid; }

    /* La hamburguesa va antes del saludo */
    .topbar { gap: 12px; }
    .topbar-right { gap: 10px; }
    .search { min-width: 0; flex: 1; }
}

/* ===================== CELULAR (≤640px) ===================== */
@media (max-width: 640px) {
    .layout { padding: 10px; }
    .main { gap: 16px; }

    /* Topbar en dos filas: saludo arriba, acciones abajo */
    .topbar { flex-wrap: wrap; align-items: center; }
    .topbar h1 { font-size: 19px; }
    .topbar .sub { font-size: 12px; }
    .saludo { flex: 1; min-width: 0; }
    .saludo h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* La búsqueda pasa a ocupar toda la fila inferior */
    .topbar-right { width: 100%; order: 3; gap: 10px; }
    .search { order: -1; }

    /* Rejillas a una sola columna */
    .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .col-span-2 { grid-column: span 1; }

    /* Tarjetas y stats más compactas */
    .card { padding: 18px; }
    .stat { gap: 12px; }
    .stat .ico { width: 46px; height: 46px; }
    .stat .num { font-size: 23px; }

    /* Toolbar y filtros apilados */
    .toolbar { flex-direction: column; align-items: stretch; }
    .filtros { flex-direction: column; align-items: stretch; }
    .filtros .form-control { width: 100%; min-width: 0; }
    .toolbar .flex { flex-wrap: wrap; }

    /* Botón flotante un poco más cerca del borde */
    .fab { right: 16px; bottom: 16px; }

    /* Tablas: conservar columnas legibles y deslizar horizontalmente */
    .tabla-wrap table { min-width: 640px; }
    thead th, tbody td { padding: 11px 14px; }

    /* Botones de la barra de herramientas a ancho completo y centrados */
    .toolbar .btn { justify-content: center; }

    /* Kanban: columnas un poco más estrechas */
    .kb-col { flex: 0 0 82vw; max-width: 320px; }

    /* Encabezado de tabla con título y acción apilados */
    .tabla-titulo { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* Stat cards */
.stat { display: flex; align-items: center; gap: 16px; }
.stat .ico {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
    color: #fff; flex-shrink: 0;
}
.stat .ico svg { width: 24px; height: 24px; }
.stat .ico.azul { background: var(--gradiente-azul); }
.stat .ico.verde { background: linear-gradient(135deg, #34d399, #10b981); }
.stat .ico.ambar { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.stat .ico.violeta { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.stat .ico.rojo { background: linear-gradient(135deg, #f87171, #ef4444); }
.stat .num { font-size: 28px; font-weight: 700; color: var(--gris-900); line-height: 1; }
.stat .lbl { font-size: 12.5px; color: var(--texto-suave); margin-top: 4px; }

/* ===================== TABLE ===================== */
.tabla-wrap { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra);
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--gris-500); padding: 14px 18px; background: var(--gris-50);
    border-bottom: 1px solid var(--gris-200);
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--gris-100); font-size: 13.5px; }
tbody tr:hover { background: var(--azul-50); }
tbody tr:last-child td { border-bottom: none; }
.tabla-titulo { display:flex; align-items:center; justify-content:space-between; padding: 18px 18px 0;}

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
    padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}
.badge.azul { background: var(--azul-100); color: var(--azul-700); }
.badge.verde { background: #d1fae5; color: #047857; }
.badge.ambar { background: #fef3c7; color: #b45309; }
.badge.rojo { background: #fee2e2; color: #b91c1c; }
.badge.gris { background: var(--gris-200); color: var(--gris-700); }
.badge.violeta { background: #ede9fe; color: #6d28d9; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    border: none; font-size: 13.5px; font-weight: 600; padding: 10px 18px;
    border-radius: 12px; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradiente-azul); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.btn-light { background: #fff; color: var(--azul-700); box-shadow: var(--sombra-sm); }
.btn-soft { background: var(--azul-100); color: var(--azul-700); }
.btn-danger { background: var(--rojo); color: #fff; }
.btn-ghost { background: transparent; color: var(--gris-500); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

.acciones-row { display: flex; gap: 6px; }
.acciones-row a { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--gris-100); color: var(--gris-500); transition: .15s; }
.acciones-row a:hover { background: var(--azul-100); color: var(--azul-700); }
.acciones-row a.del:hover { background: #fee2e2; color: var(--rojo); }
.acciones-row a svg { width: 15px; height: 15px; }

/* ===================== FORMS ===================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px){ .form-grid{ grid-template-columns: 1fr; } }

.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gris-700); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--gris-200);
    border-radius: 11px; font-size: 13.5px; font-family: inherit; background: #fff;
    transition: border .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--azul-400); box-shadow: 0 0 0 3px var(--azul-100); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }
.field .help { font-size: 11.5px; color: var(--gris-400); margin-top: 4px; }
.errorlist { list-style: none; color: var(--rojo); font-size: 12px; margin-top: 5px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filtros .form-control { width: auto; min-width: 150px; padding: 8px 12px; }

/* ===================== MESSAGES ===================== */
.alert { padding: 13px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px; }
.alert.success { background: #d1fae5; color: #065f46; }
.alert.info { background: var(--azul-100); color: var(--azul-700); }
.alert.warning { background: #fef3c7; color: #92400e; }
.alert.danger { background: #fee2e2; color: #991b1b; }

/* ===================== PAGINATION ===================== */
.paginacion { display: flex; gap: 6px; justify-content: center; padding: 18px; }
.paginacion a, .paginacion span {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center;
    font-size: 13px; background: #fff; color: var(--gris-600); box-shadow: var(--sombra-sm); }
.paginacion .actual { background: var(--gradiente-azul); color: #fff; }

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content:""; position:absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--gris-200); }
.timeline .item { position: relative; padding-bottom: 20px; }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .item .dot { position: absolute; left: -26px; top: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--azul-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--azul-200); }
.timeline .item h4 { font-size: 13.5px; }
.timeline .item .meta { font-size: 11.5px; color: var(--gris-400); margin: 2px 0 5px; }
.timeline .item p { font-size: 13px; color: var(--gris-600); }

/* ===================== KANBAN ===================== */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kb-col { flex: 0 0 290px; background: var(--gris-100); border-radius: 16px; padding: 10px;
    transition: background .15s, box-shadow .15s; }
.kb-col.kb-over { background: var(--azul-100); box-shadow: inset 0 0 0 2px var(--azul-300); }
.kb-col-head { display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 13.5px; color: var(--gris-700); padding: 8px 10px 12px; }
.kb-col-head .kb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.kb-col-head.azul .kb-dot { background: var(--azul-500); }
.kb-col-head.cyan .kb-dot { background: #06b6d4; }
.kb-col-head.violeta .kb-dot { background: var(--violeta); }
.kb-col-head.rojo .kb-dot { background: var(--rojo); }
.kb-col-head.verde .kb-dot { background: var(--verde); }
.kb-col-head.gris .kb-dot { background: var(--gris-400); }
.kb-count { background: #fff; color: var(--gris-500); font-size: 12px; min-width: 24px; text-align: center;
    border-radius: 20px; padding: 2px 8px; }
.kb-list { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.kb-card { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--sombra-sm);
    cursor: grab; border-left: 3px solid var(--azul-300); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.kb-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.kb-num { font-size: 12px; font-weight: 700; color: var(--azul-700); }
.kb-asunto { display: block; font-size: 13.5px; font-weight: 600; color: var(--gris-800); line-height: 1.35; }
.kb-asunto:hover { color: var(--azul-700); }
.kb-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 9px; font-size: 12px; color: var(--gris-500); }
.kb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.kb-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--gris-900); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13.5px;
    font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: .25s; z-index: 100; }
.kb-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.kb-toast.error { background: var(--rojo); }

/* ===================== MISC ===================== */
.empty { text-align: center; padding: 50px 20px; color: var(--gris-400); }
.empty svg { width: 46px; height: 46px; margin-bottom: 12px; opacity: .5; }
.list-clean { list-style: none; }
.list-clean li { display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; border-bottom: 1px solid var(--gris-100); font-size: 13.5px; }
.list-clean li:last-child { border-bottom: none; }
.muted { color: var(--texto-suave); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.dot-color { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fecha-card { background: var(--gradiente-sidebar); color: #fff; }
.fecha-card .dia { font-size: 30px; font-weight: 700; }
.detalle-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 24px; }
.detalle-grid .k { font-size: 11.5px; color: var(--gris-400); text-transform: uppercase; letter-spacing:.03em; }
.detalle-grid .v { font-size: 14px; color: var(--gris-800); font-weight: 500; margin-top: 2px; }
@media (max-width:720px){ .detalle-grid{ grid-template-columns:1fr; } }
/* fin de hoja de estilos */
