/* ==========================================================
   PLATAFORMA PH 360 — Sistema de diseño (premium)
   Tema cohesivo aplicado a todas las vistas.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Marca */
    --ph-primary: #4338ca;        /* indigo 700 */
    --ph-primary-dark: #312e81;   /* indigo 900 */
    --ph-accent: #6366f1;         /* indigo 500 */
    --ph-accent-soft: #eef2ff;

    /* Neutros */
    --ph-bg: #f5f7fb;
    --ph-surface: #ffffff;
    --ph-border: #e8ecf3;
    --ph-text: #1e293b;
    --ph-heading: #0f172a;
    --ph-muted: #64748b;

    /* Sidebar */
    --ph-sidebar-a: #0b1224;
    --ph-sidebar-b: #131c34;
    --ph-sidebar-text: #94a3b8;

    /* Semánticos */
    --ph-success: #059669;
    --ph-warning: #d97706;
    --ph-danger: #e11d48;
    --ph-info: #0284c7;

    /* Sombras */
    --sh-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --sh-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --sh-lg: 0 12px 32px rgba(15,23,42,.10);
    --sh-primary: 0 6px 16px rgba(79,70,229,.30);

    --radius: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ph-text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}
h1,h2,h3,h4,h5,h6 { color: var(--ph-heading); font-weight: 700; letter-spacing: -0.02em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; }

/* ========================================================
   AUTENTICACIÓN — pantalla dividida premium
   ======================================================== */
.auth-body { min-height: 100vh; margin: 0; background: var(--ph-bg); }
.auth-wrapper {
    min-height: 100vh; width: 100%;
    display: grid; grid-template-columns: 1.05fr 1fr;
}
/* Panel de marca (izquierda) */
.auth-showcase {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--ph-primary) 0%, var(--ph-primary-dark) 55%, #1e1b4b 100%);
    color: #fff; padding: 56px 60px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-showcase::before,
.auth-showcase::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.auth-showcase::before { width: 420px; height: 420px; top: -120px; right: -120px; }
.auth-showcase::after { width: 300px; height: 300px; bottom: -100px; left: -80px; background: rgba(99,102,241,.18); }
.auth-showcase .sc-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-showcase .sc-logo {
    width: 46px; height: 46px; border-radius: 12px; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
}
.auth-showcase .sc-brand strong { font-size: 1.05rem; letter-spacing: .3px; color:#fff; }
.auth-showcase .sc-hero { position: relative; z-index: 1; }
.auth-showcase .sc-hero h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.auth-showcase .sc-hero p { color: rgba(255,255,255,.72); font-size: .98rem; max-width: 420px; }
.auth-showcase .sc-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.auth-showcase .sc-feature { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.88); }
.auth-showcase .sc-feature i {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); color: #c7d2fe; font-size: 16px;
}
/* Formulario (derecha) */
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-home-link {
    position: absolute; top: 20px; left: 24px; display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 600; color: var(--ph-muted); text-decoration: none;
    padding: 7px 14px; border: 1px solid var(--ph-border); border-radius: 999px; transition: all .15s;
}
.auth-home-link:hover { color: var(--ph-primary); border-color: var(--ph-accent); background: var(--ph-accent-soft); transform: translateX(-2px); }
@media (max-width: 575.98px) { .auth-home-link { position: static; margin-bottom: 18px; align-self: flex-start; } .auth-panel { flex-direction: column; align-items: stretch; } }
.auth-card .auth-head { margin-bottom: 26px; }
.auth-card .auth-head h1 { font-size: 1.5rem; margin: 0 0 4px; }
.auth-card .auth-head p { color: var(--ph-muted); font-size: .9rem; margin: 0; }
.auth-form .form-label { font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.auth-form .input-group-text { background: #fff; border-right: 0; color: var(--ph-muted); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.auth-form .form-control { border-left: 0; padding: .6rem .8rem; }
.auth-form .input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.auth-link { font-size: .83rem; color: var(--ph-accent); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-copy { color: var(--ph-muted); font-size: .74rem; margin-top: 22px; text-align: center; }

@media (max-width: 860px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
}

/* ========================================================
   APP SHELL
   ======================================================== */
.app-body { background: var(--ph-bg); margin: 0; }
.app-shell { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.app-sidebar {
    width: 262px; flex-shrink: 0;
    background: linear-gradient(180deg, var(--ph-sidebar-a), var(--ph-sidebar-b));
    color: var(--ph-sidebar-text);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand {
    padding: 20px 22px; font-size: 1.1rem; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 11px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand i {
    width: 34px; height: 34px; border-radius: 10px; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ph-accent), var(--ph-primary));
    color: #fff;
}
.sidebar-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px; border-radius: 10px;
    color: var(--ph-sidebar-text); text-decoration: none; font-size: .89rem; font-weight: 500;
    position: relative; transition: background .15s, color .15s;
}
.sidebar-nav .nav-item i { font-size: 17px; width: 20px; text-align: center; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(67,56,202,.12));
    color: #fff;
}
.sidebar-nav .nav-item.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--ph-accent);
}
.nav-section {
    font-size: .66rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
    color: #475569; padding: 16px 14px 6px;
}
.sidebar-note { font-size: .72rem; color: #64748b; line-height: 1.45; padding: 2px 14px 10px; margin: 0; }
.sidebar-note .bi { font-size: .7rem; }

/* --- Main / Topbar --- */
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
    background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
    height: 64px; display: flex; align-items: center; gap: 14px;
    padding: 0 26px; border-bottom: 1px solid var(--ph-border);
    position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; margin: 0; flex: 1; color: var(--ph-heading); }
.topbar-user .btn {
    border: 1px solid var(--ph-border); border-radius: 10px; font-weight: 600; font-size: .85rem;
    background: #fff;
}
.app-content { padding: 26px; flex: 1; }
.app-footer { padding: 16px 26px; color: var(--ph-muted); font-size: .76rem; text-align: center; }

/* ========================================================
   CARDS / SUPERFICIES
   ======================================================== */
.card { border: 1px solid var(--ph-border); border-radius: var(--radius); box-shadow: var(--sh-sm); }
.card.shadow-sm { box-shadow: var(--sh-md) !important; }
.card .card-header { background: #fff; border-bottom: 1px solid var(--ph-border); padding: 15px 20px; font-weight: 600; }
.card .card-body { padding: 20px; }

/* ========================================================
   DASHBOARD
   ======================================================== */
.welcome-banner {
    background: linear-gradient(120deg, #fff, #fbfcfe);
    border: 1px solid var(--ph-border); border-radius: var(--radius);
    padding: 24px 26px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; box-shadow: var(--sh-sm);
}
.welcome-banner h3 { font-size: 1.4rem; }
.badge-phase {
    background: var(--ph-accent-soft); color: var(--ph-primary);
    padding: 7px 16px; border-radius: 20px; font-size: .74rem; font-weight: 700;
}
.stat-card {
    background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius);
    padding: 20px; height: 100%; box-shadow: var(--sh-sm);
    transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--ph-accent-soft); color: var(--ph-accent);
    display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.stat-icon.text-danger  { background: #fff1f2; }
.stat-icon.text-success { background: #ecfdf5; }
.stat-icon.text-warning { background: #fffbeb; }
.stat-icon.text-primary { background: var(--ph-accent-soft); }
.stat-value { font-size: 1.55rem; font-weight: 800; color: var(--ph-heading); line-height: 1.1; }
.stat-label { font-size: .84rem; color: var(--ph-muted); font-weight: 600; margin-top: 2px; }
.stat-hint { font-size: .72rem; color: #94a3b8; margin-top: 6px; }
.check-item { font-size: .86rem; padding: 4px 0; color: #334155; }

.mini-stat { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; }
.mini-val { font-size: 1.2rem; font-weight: 800; color: var(--ph-heading); line-height: 1.15; }
.mini-lbl { font-size: .72rem; color: var(--ph-muted); }

/* ========================================================
   TABLAS
   ======================================================== */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th {
    background: #f8fafc; color: #475569; font-weight: 700;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .4px;
    border-bottom: 1px solid var(--ph-border); padding: 12px 16px; white-space: nowrap;
}
.table > tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table > tbody tr:last-child td { border-bottom: 0; }
.table-hover > tbody > tr:hover > * { background: #f8faff; }
.table-responsive { border-radius: var(--radius); }

/* ========================================================
   BOTONES
   ======================================================== */
.btn { font-weight: 600; border-radius: 10px; transition: all .15s; }
.btn-sm { border-radius: 8px; }
.btn-primary {
    background: linear-gradient(135deg, var(--ph-accent), var(--ph-primary));
    border: none; box-shadow: var(--sh-primary);
}
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.06); box-shadow: var(--sh-primary); }
.btn-outline-primary { border-color: #c7d2fe; color: var(--ph-primary); }
.btn-outline-primary:hover { background: var(--ph-primary); border-color: var(--ph-primary); }
.btn-success { background: var(--ph-success); border-color: var(--ph-success); }
.btn-outline-secondary { border-color: var(--ph-border); color: #475569; }
.btn-outline-secondary:hover { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }

/* ========================================================
   FORMULARIOS
   ======================================================== */
.form-control, .form-select {
    border-color: var(--ph-border); border-radius: var(--radius-sm);
    padding: .55rem .8rem; font-size: .9rem; color: var(--ph-text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ph-accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-label { font-size: .82rem; font-weight: 600; color: #334155; }
.form-control-sm, .form-select-sm { border-radius: 8px; }

/* ========================================================
   BADGES (suaves / tinted)
   ======================================================== */
.badge { font-weight: 700; padding: .4em .7em; border-radius: 8px; letter-spacing: .1px; }
.badge.text-bg-success { background: #ecfdf5 !important; color: #047857 !important; }
.badge.text-bg-danger  { background: #fff1f2 !important; color: #be123c !important; }
.badge.text-bg-warning { background: #fffbeb !important; color: #b45309 !important; }
.badge.text-bg-info    { background: #f0f9ff !important; color: #0369a1 !important; }
.badge.text-bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }
.badge.text-bg-primary { background: var(--ph-accent-soft) !important; color: var(--ph-primary) !important; }
.badge.text-bg-light   { background: #f8fafc !important; color: #475569 !important; }

/* ========================================================
   ALERTAS
   ======================================================== */
.alert { border: 0; border-radius: 12px; font-size: .9rem; padding: 12px 16px; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger  { background: #fff1f2; color: #9f1239; }
.alert-info    { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }

/* ========================================================
   MISC
   ======================================================== */
.progress { background: #eef2f7; border-radius: 20px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ph-muted); }
.empty-state i { font-size: 42px; color: #cbd5e1; display: block; margin-bottom: 12px; }
.list-group-item { border-color: #f1f5f9; padding: 12px 18px; }
.error-code { font-size: 4.5rem; font-weight: 800; color: var(--ph-primary); line-height: 1; }
.err-icon { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--ph-accent-soft); color: var(--ph-accent); }
.err-icon.warn { background: #fffbeb; color: #d97706; } .err-icon.danger { background: #fff1f2; color: #e11d48; }
pre { font-family: 'Manrope', inherit; }

/* ========================================================
   TARJETA DE DOCUMENTO
   ======================================================== */
.doc-card { transition: transform .15s, box-shadow .15s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.doc-card .doc-ico {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; font-size: 21px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ph-accent-soft); color: var(--ph-accent);
}
.doc-card .doc-ico.text-info    { background: #ecfeff; color: #0891b2; }
.doc-card .doc-ico.text-success { background: #ecfdf5; color: #059669; }
.doc-card .doc-ico.text-warning { background: #fffbeb; color: #d97706; }
.doc-card .doc-ico.text-danger  { background: #fff1f2; color: #e11d48; }
.doc-card .doc-ico.text-secondary { background: #f1f5f9; color: #64748b; }
.doc-card .doc-title {
    font-size: .95rem; font-weight: 700; color: var(--ph-heading); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-card .doc-desc {
    font-size: .82rem; color: var(--ph-muted); margin: 10px 0 12px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.3em;
}
.doc-card .doc-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .72rem; color: var(--ph-muted); border-top: 1px solid var(--ph-border); padding-top: 10px;
}
.min-w-0 { min-width: 0; }

/* Tarjeta de comunicado (cartelera) */
.com-card { transition: transform .15s, box-shadow .15s; }
.com-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.com-card .com-preview { font-size: .84rem; line-height: 1.45; }
.com-pinned { border-color: #fcd34d; box-shadow: 0 0 0 1px #fcd34d33; }
.com-pinned::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #f59e0b, #fcd34d); border-radius: var(--radius) var(--radius) 0 0; }
.com-card { position: relative; }

/* ========================================================
   MANUAL DE USUARIO INTERACTIVO
   ======================================================== */
.manual-roles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.manual-role {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 12px;
    border: 1px solid var(--ph-border); background: #fff; cursor: pointer; transition: all .14s; position: relative;
}
.manual-role:hover { border-color: var(--ph-accent); }
.manual-role.active { background: var(--ph-primary); border-color: var(--ph-primary); color: #fff; box-shadow: var(--sh-primary); }
.manual-role .mr-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--ph-accent-soft); color: var(--ph-accent); flex-shrink: 0; }
.manual-role.active .mr-ico { background: rgba(255,255,255,.2); color: #fff; }
.manual-role .mr-name { font-weight: 700; font-size: .86rem; }
.manual-role .mr-you { font-size: .62rem; background: var(--ph-success); color: #fff; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.manual-role.active .mr-you { background: rgba(255,255,255,.25); }

.manual-panel { display: none; }
.manual-panel.active { display: block; }
.manual-intro { display: flex; align-items: center; gap: 16px; }
.manual-intro .mi-ico { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ph-accent-soft); color: var(--ph-accent); }
.manual-progress { height: 8px; border-radius: 6px; background: var(--ph-border); overflow: hidden; }
.manual-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ph-accent), var(--ph-primary)); transition: width .3s; }

.manual-sec { margin-bottom: 14px; }
.manual-sec-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.manual-sec-head .ms-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--ph-accent-soft); color: var(--ph-accent); flex-shrink: 0; }
.manual-sec-head h6 { margin: 0; font-weight: 700; color: var(--ph-heading); }

.manual-task { border: 1px solid var(--ph-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.manual-task.open { box-shadow: var(--sh-md); }
.manual-task-q { width: 100%; text-align: left; border: 0; background: none; padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.manual-task-q .tnum { width: 26px; height: 26px; border-radius: 8px; background: var(--ph-accent-soft); color: var(--ph-accent); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.manual-task-q .ttitle { flex: 1; font-weight: 600; font-size: .93rem; color: var(--ph-heading); }
.manual-task-q .tchev { color: var(--ph-accent); transition: transform .2s; }
.manual-task.open .manual-task-q .tchev { transform: rotate(180deg); }
.manual-task.done .manual-task-q .ttitle { color: var(--ph-muted); }
.manual-task-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.manual-task-body > div { padding: 4px 18px 16px 54px; }
.manual-steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; }
.manual-steps li { counter-increment: paso; position: relative; padding: 8px 0 8px 34px; font-size: .9rem; color: var(--ph-text); border-bottom: 1px dashed var(--ph-border); }
.manual-steps li:last-child { border-bottom: 0; }
.manual-steps li::before { content: counter(paso); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ph-primary); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.manual-done-toggle { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--ph-muted); cursor: pointer; user-select: none; }
.manual-done-toggle input { width: 16px; height: 16px; }
.manual-task.done .manual-done-toggle { color: var(--ph-success); }
.manual-empty { text-align: center; color: var(--ph-muted); padding: 30px; }

@media print {
    .app-sidebar, .app-topbar, .app-footer, .ph-breadcrumb, .manual-roles, .manual-noprint, .manual-done-toggle { display: none !important; }
    .manual-panel { display: block !important; }
    .manual-task-body { max-height: none !important; }
    .manual-task-body > div { padding-left: 18px; }
    .app-content { padding: 0 !important; }
}

/* ========================================================
   ENCABEZADO DE PÁGINA (reutilizable en todas las vistas)
   ======================================================== */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h4 { margin: 0; font-weight: 700; color: var(--ph-heading); }
.page-head .page-sub { font-size: .82rem; color: var(--ph-muted); margin: 2px 0 0; }

/* ========================================================
   FORMULARIOS PREMIUM
   ======================================================== */
.form-narrow { max-width: 760px; }
.form-card .card-body { padding: 26px 28px; }
.form-section-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ph-muted); font-weight: 700; margin: 6px 0 14px;
    padding-bottom: 8px; border-bottom: 1px solid var(--ph-border);
}
.form-card .form-label { font-weight: 600; font-size: .82rem; color: #475569; margin-bottom: 4px; }
.form-actions { display: flex; gap: 10px; padding-top: 6px; border-top: 1px solid var(--ph-border); margin-top: 8px; padding-top: 18px; }

/* ========================================================
   PÁGINAS DE DETALLE (show) — lista clave/valor
   ======================================================== */
.detail-list { display: flex; flex-direction: column; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ph-border); font-size: .87rem; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--ph-muted); font-weight: 600; flex-shrink: 0; }
.detail-row .v { color: var(--ph-heading); text-align: right; font-weight: 500; }

/* ========================================================
   CHAT (mensajería interna)
   ======================================================== */
.chat-thread { height: 460px; overflow-y: auto; background: linear-gradient(180deg, #f8fafc, #f1f5f9); padding: 18px 20px; }
.chat-row { display: flex; margin-bottom: 12px; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble {
    max-width: 72%; padding: 9px 13px; border-radius: 14px; box-shadow: var(--sh-sm);
    background: #fff; border: 1px solid var(--ph-border); font-size: .88rem; line-height: 1.4; word-wrap: break-word;
}
.chat-row.mine .chat-bubble { background: var(--ph-accent-soft); border-color: transparent; border-bottom-right-radius: 4px; }
.chat-row:not(.mine) .chat-bubble { border-bottom-left-radius: 4px; }
.chat-bubble .who { font-size: .74rem; font-weight: 700; color: var(--ph-accent); margin-bottom: 2px; }
.chat-bubble .when { font-size: .66rem; color: #94a3b8; text-align: right; margin-top: 3px; }
.chat-bubble a { color: var(--ph-primary); }
.chat-composer { padding: 12px 16px; border-top: 1px solid var(--ph-border); background: #fff; }
.chat-day { text-align: center; font-size: .7rem; color: #94a3b8; margin: 8px 0; }

/* ========================================================
   WHATSAPP — vista previa del mensaje
   ======================================================== */
.wa-preview {
    background: #e5ddd5;
    background-image: linear-gradient(rgba(229,221,213,.6), rgba(229,221,213,.6));
    border-radius: 10px; padding: 12px; min-height: 60px;
}
.wa-bubble {
    background: #dcf8c6; border-radius: 8px 8px 8px 2px; padding: 8px 12px;
    max-width: 85%; font-size: .85rem; color: #303030; box-shadow: 0 1px 1px rgba(0,0,0,.1);
    white-space: pre-wrap; word-wrap: break-word;
}

/* ========================================================
   HUB DE COPROPIEDAD (perfil + módulos)
   ======================================================== */
.cop-profile {
    background: linear-gradient(120deg, #0b1224, #312e81);
    color: #fff; border-radius: var(--radius); padding: 24px 26px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    box-shadow: var(--sh-md);
}
.cop-profile .cp-logo {
    width: 60px; height: 60px; border-radius: 16px; font-size: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
}
.cop-profile h3 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.cop-profile .cp-meta { color: rgba(255,255,255,.72); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; }
.cop-profile .cp-meta i { opacity: .8; }

.mod-group .card-header { font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ph-muted); font-weight: 700; }
.mod-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 9px;
    color: var(--ph-text); text-decoration: none; font-size: .88rem; font-weight: 500;
    transition: background .12s, color .12s;
}
.mod-link:hover { background: var(--ph-accent-soft); color: var(--ph-primary); }
.mod-link .mi {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; font-size: 15px;
    display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: var(--ph-accent);
    transition: background .12s;
}
.mod-link:hover .mi { background: #fff; }
.mod-link .chev { margin-left: auto; color: #cbd5e1; font-size: 12px; }

/* ========================================================
   HUB PREMIUM — hero, atención, tiles de módulos
   ======================================================== */
.hub-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 400px at 90% -60%, rgba(99,102,241,.55), transparent 60%),
                linear-gradient(120deg, #0b1224 0%, #1e1b4b 55%, #312e81 100%);
    color: #fff; border-radius: 20px; padding: 26px 30px; box-shadow: var(--sh-lg);
}
.hub-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -80px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.10), transparent 70%);
    pointer-events: none;
}
.hub-hero .hh-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.hub-hero .hh-logo {
    width: 64px; height: 64px; border-radius: 18px; font-size: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.13); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.18);
}
.hub-hero h3 { color: #fff; margin: 0 0 5px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.hub-hero .hh-meta { color: rgba(255,255,255,.75); font-size: .84rem; display: flex; gap: 16px; flex-wrap: wrap; }
.hub-hero .hh-meta i { opacity: .8; margin-right: 3px; }
.hub-hero .hh-actions { margin-left: auto; display: flex; gap: 8px; }
.hub-hero .hh-actions .btn-light { font-weight: 600; }
.hub-hero .btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.hub-hero .btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.hub-qs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.hub-qs .qs {
    flex: 1 1 130px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(3px);
}
.hub-qs .qs .v { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.hub-qs .qs .l { font-size: .74rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: 2px; }
.hub-qs .qs .l i { margin-right: 4px; }

/* Franja de atención */
.hub-attention { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hub-chip {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
    font-size: .84rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    transition: transform .14s, box-shadow .14s; background: #fff;
}
.hub-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.hub-chip .n { font-weight: 800; font-size: 1rem; }
.hub-chip .ci { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hub-chip.warn   { border-color: #fde68a; color: #92400e; } .hub-chip.warn .ci   { background: #fef3c7; color: #d97706; }
.hub-chip.danger { border-color: #fecdd3; color: #9f1239; } .hub-chip.danger .ci { background: #ffe4e6; color: #e11d48; }
.hub-chip.info   { border-color: #bae6fd; color: #075985; } .hub-chip.info .ci   { background: #e0f2fe; color: #0284c7; }
.hub-chip.ok     { border-color: #a7f3d0; color: #065f46; background: #ecfdf5; } .hub-chip.ok .ci { background: #d1fae5; color: #059669; }

/* Barra de antigüedad de cartera */
.hub-agebar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.hub-agebar > span { display: block; transition: width .6s ease; }
.hub-agebar .a1 { background: #34d399; } .hub-agebar .a2 { background: #fbbf24; }
.hub-agebar .a3 { background: #fb923c; } .hub-agebar .a4 { background: #f43f5e; }
.hub-agelegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .72rem; color: var(--ph-muted); margin-top: 8px; }
.hub-agelegend .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 4px; vertical-align: middle; }

/* Lanzador de módulos: buscador + secciones + tiles */
.hub-modbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.hub-sec { margin-bottom: 22px; }
.hub-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hub-sec-head .si { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hub-sec-head h6 { margin: 0; font-weight: 700; color: var(--ph-heading); font-size: .98rem; }
.hub-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hub-tile {
    display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-radius: 14px;
    background: #fff; border: 1px solid var(--ph-border); text-decoration: none; color: var(--ph-text);
    box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.hub-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: transparent; color: var(--ph-heading); }
.hub-tile .ti { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.hub-tile .tl { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.hub-tile .tsub { font-size: .72rem; color: var(--ph-muted); margin-top: 1px; }
.hub-tile .tchev { margin-left: auto; color: #cbd5e1; font-size: 13px; transition: transform .15s, color .15s; }
.hub-tile:hover .tchev { transform: translateX(3px); color: var(--ph-accent); }
.hub-tile .tbadge { position: absolute; top: 9px; right: 32px; }

/* Acentos de color para íconos (secciones y tiles) */
.acc-primary { background: var(--ph-accent-soft); color: var(--ph-accent); }
.acc-success { background: #ecfdf5; color: #059669; }
.acc-warning { background: #fffbeb; color: #d97706; }
.acc-danger  { background: #fff1f2; color: #e11d48; }
.acc-info    { background: #ecfeff; color: #0891b2; }
.acc-purple  { background: #f5f3ff; color: #7c3aed; }
.acc-teal    { background: #f0fdfa; color: #0d9488; }

@media (max-width: 575.98px) {
    .hub-tile-grid { grid-template-columns: 1fr 1fr; }
    .hub-hero .hh-actions { margin-left: 0; width: 100%; }
}

/* ========================================================
   NOTIFICACIONES (campana del topbar)
   ======================================================== */
.topbar-bell { position: relative; }
.tb-bell {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ph-border);
    background: #fff; color: #475569; font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .12s, color .12s; position: relative;
}
.tb-bell:hover { background: #f1f5f9; color: var(--ph-primary); }
.tb-bell-badge {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--ph-danger); color: #fff; border-radius: 10px; font-size: .68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.notif-menu { border: 1px solid var(--ph-border); border-radius: 14px; box-shadow: var(--sh-lg); overflow: hidden; }
.notif-head { padding: 12px 16px; font-weight: 700; font-size: .82rem; color: var(--ph-heading); border-bottom: 1px solid var(--ph-border); background: #f8fafc; }
.notif-empty { padding: 26px 16px; text-align: center; color: var(--ph-muted); font-size: .85rem; }
.notif-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ph-text); border-bottom: 1px solid var(--ph-border); transition: background .12s; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--ph-accent-soft); }
.notif-item .ni { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-item .ni.warning { background: #fffbeb; color: #d97706; } .notif-item .ni.danger { background: #fff1f2; color: #e11d48; }
.notif-item .ni.info { background: #ecfeff; color: #0891b2; } .notif-item .ni.success { background: #ecfdf5; color: #059669; }
.notif-item .nt { flex: 1; min-width: 0; }
.notif-item .nt b { font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.notif-item .nt small { color: var(--ph-muted); font-size: .74rem; }
.notif-item .nt .nb { background: var(--ph-heading); color: #fff; border-radius: 8px; font-size: .68rem; padding: 0 6px; font-weight: 700; }

/* ========================================================
   PALETA DE BÚSQUEDA RÁPIDA (command palette)
   ======================================================== */
.topbar-search {
    display: flex; align-items: center; gap: 8px; margin-left: auto;
    background: #f1f5f9; border: 1px solid var(--ph-border); border-radius: 10px;
    padding: 7px 12px; color: var(--ph-muted); font-size: .84rem; cursor: pointer;
    min-width: 210px; transition: background .12s, border-color .12s;
}
.topbar-search:hover { background: #e9edf3; border-color: #cbd5e1; }
.topbar-search span { flex: 1; text-align: left; }
.topbar-search kbd { background: #fff; border: 1px solid var(--ph-border); border-radius: 5px; padding: 1px 6px; font-size: .7rem; color: #64748b; }
@media (max-width: 575.98px) { .topbar-search { min-width: 0; } .topbar-search span, .topbar-search kbd { display: none; } }

.cmdk-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
    opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 1080;
}
.cmdk-backdrop.show { opacity: 1; visibility: visible; }
.cmdk {
    width: min(600px, 92vw); background: #fff; border-radius: 16px; box-shadow: var(--sh-lg);
    overflow: hidden; transform: translateY(-8px); transition: transform .15s;
}
.cmdk-backdrop.show .cmdk { transform: none; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--ph-border); }
.cmdk-input i { color: var(--ph-muted); font-size: 18px; }
.cmdk-input input { border: 0; outline: 0; flex: 1; font-size: 1rem; color: var(--ph-heading); background: transparent; }
.cmdk-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; padding: 10px 12px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ph-text); text-decoration: none; }
.cmdk-item .ci { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--ph-accent-soft); color: var(--ph-accent); flex-shrink: 0; }
.cmdk-item .cl { flex: 1; min-width: 0; }
.cmdk-item .cl b { font-weight: 600; font-size: .9rem; display: block; }
.cmdk-item .cl small { color: var(--ph-muted); font-size: .74rem; }
.cmdk-item.active, .cmdk-item:hover { background: var(--ph-accent-soft); }
.cmdk-item.active .cl b { color: var(--ph-primary); }
.cmdk-empty { text-align: center; color: var(--ph-muted); padding: 28px 12px; font-size: .88rem; }
.cmdk-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--ph-border); font-size: .72rem; color: #94a3b8; }
.cmdk-foot kbd { background: #f1f5f9; border: 1px solid var(--ph-border); border-radius: 4px; padding: 0 5px; }

/* Breadcrumb / navegación de contexto */
.ph-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 16px; }
.ph-breadcrumb a { color: var(--ph-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color .12s; }
.ph-breadcrumb a:hover { color: var(--ph-primary); }
.ph-breadcrumb .sep { font-size: 10px; color: #cbd5e1; }
.ph-breadcrumb .current { color: var(--ph-heading); font-weight: 600; }
.ph-breadcrumb .back-hub {
    margin-left: auto; background: var(--ph-accent-soft); color: var(--ph-accent);
    padding: 6px 14px; border-radius: 999px; font-weight: 600;
}
.ph-breadcrumb .back-hub:hover { background: var(--ph-accent); color: #fff; box-shadow: var(--sh-primary); }
@media (max-width: 575.98px) { .ph-breadcrumb .back-hub { margin-left: 0; } }

/* --- Realces de atractivo del hub --- */
.hub-hero .hh-logo { transition: transform .3s ease; }
.hub-hero:hover .hh-logo { transform: rotate(-6deg) scale(1.05); }
.hub-qs .qs { transition: transform .18s, background .18s; }
.hub-qs .qs:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); }

.hub-tile { overflow: hidden; }
.hub-tile::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: currentColor; opacity: 0; transform: scaleY(.3);
    transition: opacity .18s, transform .18s; border-radius: 3px;
}
.hub-tile.tacc-primary { color: var(--ph-accent); } .hub-tile.tacc-success { color: #059669; }
.hub-tile.tacc-warning { color: #d97706; } .hub-tile.tacc-danger { color: #e11d48; }
.hub-tile.tacc-info { color: #0891b2; } .hub-tile.tacc-purple { color: #7c3aed; } .hub-tile.tacc-teal { color: #0d9488; }
.hub-tile .tl, .hub-tile .tsub { color: var(--ph-text); }
.hub-tile:hover::before { opacity: 1; transform: scaleY(1); }
.hub-tile:hover .ti { transform: scale(1.08); }
.hub-tile .ti { transition: transform .18s; }
.hub-sec-head { position: relative; padding-bottom: 8px; border-bottom: 1px solid var(--ph-border); }

/* Tarjeta con elevación al hover (reutilizable) */
.card-hover { transition: transform .16s, box-shadow .16s, border-color .16s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }

/* Hero compacto (encabezados de listados de nivel superior) */
.hub-hero.hero-slim { padding: 22px 26px; }
.hub-hero.hero-slim h3 { font-size: 1.35rem; }

/* ========================================================
   LANDING (página de inicio pública)
   ======================================================== */
.landing { margin: 0; background: #fff; color: var(--ph-text); }
.landing-nav {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ph-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 6vw;
}
.landing-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ph-heading); text-decoration: none; }
.landing-nav .brand i {
    width: 36px; height: 36px; border-radius: 10px; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ph-accent), var(--ph-primary)); color: #fff;
}
.landing-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #0b1224 0%, #312e81 60%, #4338ca 100%);
    color: #fff; padding: 90px 6vw 110px; text-align: center;
}
.landing-hero::before {
    content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.35), transparent 70%);
    top: -200px; right: -150px;
}
.landing-hero .pill {
    display: inline-block; background: rgba(255,255,255,.1); color: #c7d2fe;
    padding: 6px 16px; border-radius: 20px; font-size: .78rem; font-weight: 700; margin-bottom: 22px;
}
.landing-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; max-width: 900px; margin: 0 auto 18px; position: relative; }
.landing-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 640px; margin: 0 auto 30px; position: relative; }
.landing-hero .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.landing-hero .btn-light { border-radius: 12px; font-weight: 700; padding: .7rem 1.6rem; }
.landing-hero .btn-ghost { border-radius: 12px; font-weight: 700; padding: .7rem 1.6rem; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.landing-hero .btn-ghost:hover { background: rgba(255,255,255,.1); color:#fff; }

.landing-stats {
    max-width: 900px; margin: -56px auto 0; position: relative; z-index: 2;
    background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius);
    box-shadow: var(--sh-lg); padding: 26px; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.landing-stats .ls { text-align: center; }
.landing-stats .ls b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--ph-primary); }
.landing-stats .ls span { font-size: .82rem; color: var(--ph-muted); }

.landing-section { padding: 80px 6vw; }
.landing-section .sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.landing-section .sec-head h2 { font-size: clamp(1.6rem,3.5vw,2.3rem); font-weight: 800; margin-bottom: 12px; }
.landing-section .sec-head p { color: var(--ph-muted); font-size: 1.02rem; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 18px; }
.feat-card {
    border: 1px solid var(--ph-border); border-radius: var(--radius); padding: 24px;
    background: #fff; transition: transform .18s, box-shadow .18s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.feat-card .fi {
    width: 48px; height: 48px; border-radius: 12px; font-size: 22px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ph-accent-soft); color: var(--ph-accent);
}
.feat-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat-card p { font-size: .88rem; color: var(--ph-muted); margin: 0; }

.landing-cta {
    margin: 0 6vw 80px; border-radius: 22px; padding: 60px 30px; text-align: center;
    background: linear-gradient(135deg, var(--ph-accent), var(--ph-primary)); color: #fff;
}
.landing-cta h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 800; margin-bottom: 12px; }
.landing-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.landing-footer { border-top: 1px solid var(--ph-border); padding: 26px 6vw; color: var(--ph-muted); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ========================================================
   LANDING — interactividad
   ======================================================== */
.landing-nav { transition: box-shadow .2s, background .2s; }
.landing-nav.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.08); background: rgba(255,255,255,.96); }
.landing-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.landing-nav .nav-links a { color: var(--ph-muted); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .15s; position: relative; }
.landing-nav .nav-links a:hover, .landing-nav .nav-links a.active { color: var(--ph-primary); }
.landing-nav .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ph-accent); border-radius: 2px; transform: scaleX(0); transition: transform .18s; }
.landing-nav .nav-links a:hover::after, .landing-nav .nav-links a.active::after { transform: scaleX(1); }
.landing-nav .nav-right { display: flex; align-items: center; gap: 14px; }
@media (max-width: 820px) { .landing-nav .nav-links { display: none; } }

/* Hero: orbes animados de fondo */
.landing-hero { position: relative; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: orbFloat 14s ease-in-out infinite; }
.hero-orb.o1 { width: 420px; height: 420px; background: #6366f1; top: -120px; right: -80px; }
.hero-orb.o2 { width: 340px; height: 340px; background: #8b5cf6; bottom: -140px; left: -60px; animation-delay: -5s; }
.hero-orb.o3 { width: 240px; height: 240px; background: #4338ca; top: 40%; left: 55%; animation-delay: -9s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-24px) scale(1.08); } 66% { transform: translate(-20px,18px) scale(.95); } }

/* Filtro de módulos */
.mod-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.mod-chip {
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ph-border); background: #fff;
    color: var(--ph-muted); font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .15s;
}
.mod-chip:hover { border-color: var(--ph-accent); color: var(--ph-primary); }
.mod-chip.active { background: var(--ph-primary); border-color: var(--ph-primary); color: #fff; box-shadow: var(--sh-primary); }
.feat-card { transition: transform .18s, box-shadow .18s, opacity .25s; cursor: default; }
.feat-card.hide { display: none; }
.feat-card:hover .fi { transform: scale(1.12) rotate(-6deg); }
.feat-card .fi { transition: transform .2s; }

/* Explorador de roles */
.roles-explorer { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.role-tabs { display: flex; flex-direction: column; gap: 6px; }
.role-tab {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; transition: all .14s; width: 100%;
}
.role-tab:hover { background: var(--ph-accent-soft); }
.role-tab.active { background: #fff; border-color: var(--ph-border); box-shadow: var(--sh-sm); }
.role-tab .ri { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--ph-accent-soft); color: var(--ph-accent); flex-shrink: 0; }
.role-tab.active .ri { background: var(--ph-primary); color: #fff; }
.role-tab .rl { font-weight: 700; font-size: .9rem; color: var(--ph-heading); }
.role-tab .rd { font-size: .74rem; color: var(--ph-muted); }
.role-panel { background: #fff; border: 1px solid var(--ph-border); border-radius: 16px; padding: 26px 28px; box-shadow: var(--sh-sm); }
.role-panel-item { display: none; }
.role-panel-item.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.role-panel h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.role-panel .role-sub { color: var(--ph-muted); font-size: .9rem; margin-bottom: 16px; }
.role-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.role-cap { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--ph-accent-soft); color: var(--ph-primary); font-size: .8rem; font-weight: 600; }
@media (max-width: 720px) { .roles-explorer { grid-template-columns: 1fr; } .role-tabs { flex-direction: row; overflow-x: auto; } .role-tab { flex-direction: column; min-width: 110px; text-align: center; } .role-tab .rd { display: none; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--ph-border); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; background: none; border: 0; font-weight: 700; font-size: .98rem; color: var(--ph-heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform .2s; color: var(--ph-accent); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 22px 18px; color: var(--ph-muted); font-size: .92rem; line-height: 1.55; }

/* Back to top */
.to-top { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ph-primary); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .2s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ph-primary-dark); transform: translateY(-3px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-orb { animation: none; } }

@media (max-width: 700px) {
    .landing-stats { grid-template-columns: repeat(2,1fr); }
}

/* ========================================================
   GRÁFICO DE BARRAS (sin librería)
   ======================================================== */
.barchart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 8px; }
.barchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barchart .bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.barchart .bar { width: 40%; border-radius: 5px 5px 0 0; min-height: 2px; transition: height .3s; position: relative; }
.barchart .bar.ing { background: linear-gradient(180deg, #34d399, #059669); }
.barchart .bar.egr { background: linear-gradient(180deg, #fb7185, #e11d48); }
.barchart .lbl { font-size: .68rem; color: var(--ph-muted); font-weight: 600; }
.chart-legend { display: flex; gap: 16px; font-size: .78rem; }
.chart-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* ========================================================
   STEPPER / línea de tiempo (PQRS y otros flujos)
   ======================================================== */
.stepper { display: flex; }
.stepper .step { flex: 1; text-align: center; position: relative; }
.stepper .step:not(:last-child)::after {
    content: ''; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: #e2e8f0; z-index: 0;
}
.stepper .step.done:not(:last-child)::after { background: var(--ph-success); }
.stepper .dot {
    width: 36px; height: 36px; border-radius: 50%; background: #eef2f7; color: #94a3b8;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
    position: relative; z-index: 1; font-size: 16px;
}
.stepper .step.done .dot { background: var(--ph-success); color: #fff; }
.stepper .step.current .dot { background: var(--ph-accent); color: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
.stepper .step .lbl { font-size: .8rem; font-weight: 700; color: var(--ph-heading); }
.stepper .step .dt { font-size: .7rem; color: var(--ph-muted); }

/* ========================================================
   INTERACTIVIDAD — toasts y drawer
   ======================================================== */
.ph-toast-host { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.ph-toast {
    display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
    background: #fff; border: 1px solid var(--ph-border); border-left: 4px solid var(--ph-accent);
    border-radius: 12px; padding: 12px 16px; box-shadow: var(--sh-lg); cursor: pointer;
    font-size: .88rem; font-weight: 500; color: var(--ph-heading);
    opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s;
}
.ph-toast.show { opacity: 1; transform: none; }
.ph-toast i { font-size: 18px; }
.ph-toast-success { border-left-color: var(--ph-success); } .ph-toast-success i { color: var(--ph-success); }
.ph-toast-danger  { border-left-color: var(--ph-danger); }  .ph-toast-danger i  { color: var(--ph-danger); }
.ph-toast-warning { border-left-color: var(--ph-warning); } .ph-toast-warning i { color: var(--ph-warning); }
.ph-toast-info    { border-left-color: var(--ph-info); }    .ph-toast-info i    { color: var(--ph-info); }

.ph-drawer-backdrop {
    position: fixed; inset: 0; z-index: 1900; background: rgba(15,23,42,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ph-drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.ph-drawer {
    position: absolute; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw;
    background: var(--ph-bg); box-shadow: var(--sh-lg); overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; padding: 24px;
}
.ph-drawer-backdrop.show .ph-drawer { transform: none; }
.ph-drawer-close {
    position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
    font-size: 26px; line-height: 1; color: var(--ph-muted); cursor: pointer;
}
.ph-drawer-close:hover { color: var(--ph-heading); }
.drawer-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 2px; }

/* medidor (coeficiente, etc.) */
.meter { height: 10px; background: #eef2f7; border-radius: 20px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--ph-accent), var(--ph-primary)); transition: width .3s; }
.meter.over > span { background: linear-gradient(90deg, #fb7185, var(--ph-danger)); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 991.98px) {
    .app-sidebar { position: fixed; top: 0; left: -280px; height: 100vh; overflow-y: auto; z-index: 1050; transition: left .25s ease; box-shadow: var(--sh-lg); }
    body.sidebar-open .app-sidebar { left: 0; }
    .ph-drawer { width: 100%; }
}

/* Backdrop del sidebar en móvil */
.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 1040;
}
body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
@media (min-width: 992px) { .sidebar-backdrop { display: none; } }

/* ========================================================
   MÓVIL — densidad, topbar, tablas e inputs (afinado)
   ======================================================== */
@media (max-width: 991.98px) {
    .app-content { padding: 20px 16px; }
    .app-topbar { padding: 0 14px; gap: 10px; }
    .app-main { max-width: 100vw; }
    /* el título del topbar cede espacio y se recorta con elipsis */
    .topbar-title { flex: 1 1 40px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 767.98px) {
    .app-content { padding: 16px 13px; }
    .page-head { margin-bottom: 16px; }
    .card .card-body { padding: 16px; }
    .stat-card { padding: 16px; }
    .welcome-banner { padding: 18px 18px; }
    /* tablas: scroll táctil suave + celdas más compactas */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table > thead th, .table > tbody td { padding: 10px 12px; }
    /* menús desplegables que no desbordan la pantalla */
    .notif-menu { min-width: min(320px, 92vw) !important; }
    .dropdown-menu { max-width: 92vw; }
    /* barras de acción: los botones se van al ancho completo */
    .page-head .page-actions, .page-head form.d-flex { width: 100%; }
    /* Barra de acciones del formulario: fija al fondo en móvil (Guardar siempre
       accesible), respetando el área segura del iPhone (notch/home indicator). */
    .form-actions {
        display: flex; gap: 8px; flex-wrap: nowrap; width: 100%;
        position: sticky; bottom: 0; z-index: 5; margin-top: 18px;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid var(--ph-border);
        box-shadow: 0 -6px 16px rgba(15,23,42,.06);
    }
    .form-actions .btn { flex: 1 1 auto; justify-content: center; }
    [data-theme="dark"] .form-actions { background: var(--ph-surface); }
}

@media (max-width: 575.98px) {
    .app-topbar { padding: 0 10px; gap: 6px; height: 58px; }
    .topbar-title { font-size: .95rem; }
    .topbar-search { padding: 8px 10px; }
    .theme-toggle, .tb-bell { width: 38px; height: 38px; font-size: 16px; }
    .topbar-user .btn { padding: .38rem .5rem; }
    .tb-username { display: none; }                 /* solo el ícono de usuario */
    .topbar-user .dropdown-toggle::after { display: none; }
    /* inputs a 16px → evita el zoom automático de iOS al enfocar */
    .form-control, .form-select { font-size: 16px; }
    .form-control-sm, .form-select-sm { font-size: 16px; }
    /* tablas aún más densas */
    .table > thead th, .table > tbody td { padding: 9px 10px; font-size: .82rem; }
    .table > thead th { font-size: .66rem; }
    /* superficies compactas */
    .hub-hero { padding: 18px; }
    .card .card-header { padding: 13px 16px; }
    /* stepper con scroll horizontal si no cabe */
    .stepper { overflow-x: auto; gap: 4px; padding-bottom: 4px; }
    .stepper .step { min-width: 84px; }
    /* botones de acción a ancho completo dentro de barras */
    .form-actions .btn, .page-actions .btn { flex: 1 1 auto; }
    /* modales pegados a los bordes con aire */
    .modal-dialog { margin: 12px; }
}

/* ========================================================
   TABLAS → TARJETAS APILADAS EN MÓVIL (opt-in: .table-cards)
   Cada fila se vuelve una tarjeta; cada celda muestra su
   etiqueta (data-label) a la izquierda y el valor a la derecha.
   ======================================================== */
@media (max-width: 575.98px) {
    .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: auto; }
    .table-cards tr {
        border: 1px solid var(--ph-border); border-radius: 12px;
        margin-bottom: 10px; padding: 4px 14px; background: #fff; box-shadow: var(--sh-sm);
    }
    .table-cards td {
        border: 0 !important; padding: 9px 0 !important;
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        text-align: right; font-size: .88rem; white-space: normal;
    }
    .table-cards td + td { border-top: 1px solid #f1f5f9 !important; }
    .table-cards td::before {
        content: attr(data-label); font-weight: 600; color: var(--ph-muted);
        text-align: left; flex-shrink: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .3px;
    }
    .table-cards td:empty { display: none; }
    .table-cards td:first-child { font-weight: 700; font-size: 1rem; color: var(--ph-heading); }
    [data-theme="dark"] .table-cards tr { background: var(--ph-surface); }
    [data-theme="dark"] .table-cards td + td { border-top-color: var(--ph-border) !important; }

    /* Hub de gestión: hero más compacto y acciones cómodas al tacto */
    .hub-hero h3 { font-size: 1.25rem; }
    .hub-hero .hh-actions { flex-wrap: wrap; }
    .hub-hero .hh-actions .btn { flex: 1 1 auto; justify-content: center; }
    .hub-tile { padding: 13px; }
}

/* En teléfonos muy angostos, los accesos del hub en una sola columna */
@media (max-width: 400px) {
    .hub-tile-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   ACCESIBILIDAD — foco visible por teclado
   ======================================================== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ph-accent);
    outline-offset: 2px;
    border-radius: 6px;
}
.app-sidebar .nav-item:focus-visible { outline-color: #fff; outline-offset: -2px; }
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
/* Skip link */
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 2000;
    background: var(--ph-primary); color: #fff; padding: 8px 16px; border-radius: 8px;
    transition: top .2s ease; text-decoration: none; font-size: .85rem;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ========================================================
   ANIMACIONES — entrada (reveal) y respeto a reduced-motion
   ======================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }

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

/* Panel suave reutilizable (se adapta al tema) */
.soft-panel { background: #f8fafc; }

/* ========================================================
   MODO OSCURO
   ======================================================== */
:root[data-theme="dark"] {
    --ph-bg: #0b1120;
    --ph-surface: #151d31;
    --ph-border: #26314b;
    --ph-text: #cbd5e1;
    --ph-heading: #f1f5f9;
    --ph-muted: #94a3b8;
    --ph-accent-soft: #1e2649;
    --sh-sm: 0 1px 2px rgba(0,0,0,.45);
    --sh-md: 0 4px 12px rgba(0,0,0,.5);
    --sh-lg: 0 12px 32px rgba(0,0,0,.6);
}

/* Superficies personalizadas */
[data-theme="dark"] .app-topbar { background: rgba(19,27,46,.82); }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .doc-card,
[data-theme="dark"] .hub-tile,
[data-theme="dark"] .hub-chip,
[data-theme="dark"] .cmdk,
[data-theme="dark"] .notif-menu,
[data-theme="dark"] .ph-toast,
[data-theme="dark"] .tb-bell { background: var(--ph-surface); color: var(--ph-text); }
[data-theme="dark"] .card-header { background: transparent; color: var(--ph-heading); }
[data-theme="dark"] .notif-head { background: #0f1626; }
[data-theme="dark"] .topbar-search { background: #1b2436; color: var(--ph-muted); }
[data-theme="dark"] .topbar-search kbd,
[data-theme="dark"] .cmdk-foot kbd,
[data-theme="dark"] .ph-breadcrumb .back-hub { background: #1b2436; }
[data-theme="dark"] .soft-panel { background: #0f1626; }
[data-theme="dark"] .mod-link .mi { background: #1b2436; }
[data-theme="dark"] .form-section-title,
[data-theme="dark"] .stat-hint { color: var(--ph-muted); }

/* Tablas */
[data-theme="dark"] .table { color: var(--ph-text); }
[data-theme="dark"] .table > thead th,
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light > th,
[data-theme="dark"] thead.table-light th { background: #0f1626; color: var(--ph-muted); border-color: var(--ph-border); }
[data-theme="dark"] .table > tbody td { border-bottom-color: var(--ph-border); }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background: rgba(99,102,241,.10); }
[data-theme="dark"] .list-group-item { background: transparent; color: var(--ph-text); border-color: var(--ph-border); }

/* Utilidades de fondo blanco → superficie */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .input-group-text.bg-white { background: var(--ph-surface) !important; color: var(--ph-text); }
[data-theme="dark"] .badge.text-bg-light { background: #1b2436 !important; color: var(--ph-text) !important; }
[data-theme="dark"] .btn-light { background: #1b2436; border-color: var(--ph-border); color: var(--ph-text); }
[data-theme="dark"] .btn-light:hover { background: #24304a; color: #fff; }

/* Formularios (complementa data-bs-theme) */
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    background: #0f1626; border-color: var(--ph-border); color: var(--ph-text);
}
[data-theme="dark"] .form-control::placeholder { color: #64748b; }

/* Toggle sol/luna */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ph-border);
    background: #fff; color: #475569; font-size: 17px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .12s, color .12s;
}
.theme-toggle:hover { background: #f1f5f9; color: var(--ph-primary); }
[data-theme="dark"] .theme-toggle { background: var(--ph-surface); color: #fbbf24; }
[data-theme="dark"] .theme-toggle:hover { background: #24304a; }

/* Contraste de chips/badges en oscuro */
[data-theme="dark"] .hub-chip.warn { color: #fcd34d; border-color: #78591b; }
[data-theme="dark"] .hub-chip.danger { color: #fda4af; border-color: #7f1d3a; }
[data-theme="dark"] .hub-chip.info { color: #7dd3fc; border-color: #155e75; }
[data-theme="dark"] .hub-chip.ok { color: #6ee7b7; background: #0f2a1e; border-color: #14532d; }
[data-theme="dark"] .badge.text-bg-light { border: 1px solid var(--ph-border); }
[data-theme="dark"] .cmdk-item:hover, [data-theme="dark"] .cmdk-item.active,
[data-theme="dark"] .notif-item:hover, [data-theme="dark"] .mod-link:hover { background: #1e2649; }
[data-theme="dark"] .hub-tile:hover, [data-theme="dark"] .card-hover:hover { border-color: var(--ph-accent); }
[data-theme="dark"] .wa-preview { background: #0f1a17; }
[data-theme="dark"] .wa-bubble { background: #123524; color: #d1fae5; }
[data-theme="dark"] .alert-success { background: #0f2a1e; color: #6ee7b7; border-color: #14532d; }
[data-theme="dark"] .alert-danger { background: #2a1216; color: #fda4af; border-color: #7f1d3a; }
[data-theme="dark"] .alert-warning { background: #2a2210; color: #fcd34d; border-color: #78591b; }
[data-theme="dark"] .alert-info { background: #0f2733; color: #7dd3fc; border-color: #155e75; }
