/* ==========================================================================
   Lizzy · Contabilidad 365 — Paleta A "Confianza Corporativa"
   Primario #1E40AF · Acento #0EA5E9 · Oscuro #0F172A · Escala slate
   ========================================================================== */

:root {
    --lizzy-primary:       #1E40AF;
    --lizzy-primary-hover: #1E3A8A;
    --lizzy-accent:        #0EA5E9;
    --lizzy-dark:          #0F172A;
    --lizzy-bg:            #F8FAFC;
    --lizzy-success:       #16A34A;
    --lizzy-warning:       #D97706;
    --lizzy-danger:        #DC2626;
}

.btn-primary {
    --bs-btn-bg: var(--lizzy-primary);
    --bs-btn-border-color: var(--lizzy-primary);
    --bs-btn-hover-bg: var(--lizzy-primary-hover);
    --bs-btn-hover-border-color: var(--lizzy-primary-hover);
}

/* ---------- Sitio público ---------- */
.site-shell { background: var(--lizzy-bg); }

.site-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: #fff;
    border-bottom: 1px solid #E2E8F0;
}
.site-nav a { margin-left: 1.25rem; text-decoration: none; color: var(--lizzy-dark); font-weight: 500; }
.site-nav-links a { padding: .4rem .85rem; border-radius: 999px; }
.site-nav-links a:hover { color: var(--lizzy-primary); }
.site-nav-links a.active { background: #EFF6FF; color: var(--lizzy-primary); font-weight: 700; }

/* ---------- Portal cliente: shell estilo dashboard_cobertura ---------- */
.pbody {
    background: linear-gradient(180deg, #E4E9F2 0%, #E9EDF4 100%) fixed;
}
.pshell {
    max-width: 1360px; margin: 20px auto; background: #F4F6FA;
    border: 1px solid rgba(17,19,18,.06); border-radius: 24px;
    padding: 16px 20px 26px; min-height: calc(100vh - 40px);
    box-shadow: 0 18px 45px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
}
.ptop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pshell .app-section { margin-top: 14px; }
.brand-chip {
    display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    padding: .4rem .9rem .4rem .45rem; font-weight: 800; color: var(--lizzy-dark);
}
.brand-chip .bc-ico {
    width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--lizzy-dark), var(--lizzy-primary)); color: #fff;
}
.brand-chip span { color: var(--lizzy-accent); }
.seg { display: flex; gap: 4px; background: #F1F5F9; border-radius: 999px; padding: 4px; }
.seg a {
    padding: .42rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    color: #64748B; text-decoration: none; white-space: nowrap;
}
.seg a:hover { color: var(--lizzy-primary); }
.seg a.active { background: #fff; color: var(--lizzy-dark); box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.ptop-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.ptitle h1 { font-family: 'Manrope', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--lizzy-dark); margin: 0; }
.ptitle h1 span { color: #94A3B8; font-weight: 700; }
.psub { font-size: .83rem; color: #64748B; margin: 2px 0 0; }
.ptitle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 16px; }
.ptitle-actions { display: flex; gap: .55rem; align-items: center; }
.helper-line { font-size: .8rem; color: #94A3B8; margin: 10px 0 16px; }

/* Hero de página del portal (gradiente Lizzy, anillos decorativos) */
.phero {
    position: relative; overflow: hidden; margin-top: 16px; border-radius: 22px;
    padding: 26px 28px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--lizzy-dark) 0%, var(--lizzy-primary) 72%, #2563EB 100%);
}
.phero::before, .phero::after {
    content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
    pointer-events: none;
}
.phero::before { width: 260px; height: 260px; right: -90px; top: -120px; }
.phero::after  { width: 190px; height: 190px; right: -42px; top: -64px; }
.phero .ph-eye {
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #BAE6FD;
}
.phero h1 { font-family: 'Manrope', sans-serif; font-size: 1.9rem; font-weight: 800; margin: .2rem 0 .3rem; }
.phero .ph-sub { font-size: .83rem; color: #C7D2FE; margin: 0; }
.phero .ph-btn {
    background: #fff; color: var(--lizzy-primary); border-radius: 999px;
    padding: .62rem 1.3rem; font-weight: 700; font-size: .85rem; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18); position: relative; z-index: 1;
}
.phero .ph-btn:hover { background: #EFF6FF; color: var(--lizzy-primary-hover); }
@media (max-width: 760px) { .phero { padding: 20px; } .phero h1 { font-size: 1.4rem; } }

/* Hero-card gradiente dentro de panel */
.hero-card {
    background: linear-gradient(135deg, var(--lizzy-dark) 0%, var(--lizzy-primary) 100%);
    border-radius: 16px; padding: 16px 18px; color: #fff; margin-bottom: 12px;
}
.hero-card .hc-top { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 600; opacity: .85; }
.hero-card .hc-num { font-family: 'Manrope', sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin: .35rem 0 .15rem; }
.hero-card .hc-num small { font-size: 1rem; font-weight: 700; opacity: .75; }
.hero-card .hc-sub { font-size: .78rem; opacity: .85; }

/* Barras horizontales (saldos por tipo) */
.bar-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 10px; align-items: center; padding: .5rem 0; }
.bar-row + .bar-row { border-top: 1px solid #F1F5F9; }
.bar-row .bl { font-size: .8rem; font-weight: 600; color: #475569; }
.bar-track { height: 10px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--lizzy-primary); min-width: 3px; }
.bar-fill.bf-cyan { background: var(--lizzy-accent); }
.bar-row .bv { font-size: .8rem; font-weight: 700; color: #1E293B; white-space: nowrap; }

/* Topbar del portal: nav a fila completa cuando no cabe junto al brand */
@media (max-width: 991.98px) {
    .ptop-right { order: 2; }
    .seg { order: 3; width: 100%; overflow-x: auto; }
    .seg a { flex: 1 0 auto; text-align: center; }
}

@media (max-width: 575.98px) {
    .pshell { margin: 8px; border-radius: 18px; padding: 12px 12px 20px; }
    .ptitle h1 { font-size: 1.45rem; }
}
.site-brand { font-size: 1.35rem; font-weight: 800; color: var(--lizzy-primary) !important; }
.site-brand span, .admin-brand span { color: var(--lizzy-accent); }

.hero {
    background: linear-gradient(135deg, var(--lizzy-dark) 0%, var(--lizzy-primary) 100%);
    color: #fff; text-align: center; padding: 6rem 1.5rem;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; }
.hero h1 span { color: var(--lizzy-accent); }
.hero p { max-width: 640px; margin: 1.5rem auto 2rem; color: #CBD5E1; font-size: 1.15rem; }

.feature-card, .plan-card, .stat-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: .75rem;
    padding: 1.5rem; height: 100%;
}
.plan-card { text-align: center; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--lizzy-primary); }
.plan-price small { font-size: 1rem; color: #64748B; font-weight: 500; }
.plan-card ul { list-style: none; padding: 0; color: #475569; }
.site-footer { text-align: center; padding: 2rem; color: #94A3B8; font-size: .9rem; }

/* ---------- Admin ---------- */
.admin-shell { background: var(--lizzy-bg); min-height: 100vh; }

.admin-sidebar {
    width: 230px; min-height: 100vh; background: var(--lizzy-dark);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { color: #fff; font-size: 1.3rem; font-weight: 800; padding: 1.25rem 1.25rem .5rem; }
.admin-sidebar nav { flex: 1; padding: .5rem; overflow-y: auto; min-height: 0; }
.admin-sidebar nav a {
    display: block; color: #94A3B8; text-decoration: none;
    padding: .55rem .75rem; border-radius: .5rem; font-size: .95rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    background: rgba(14,165,233,.15); color: #fff;
}
.admin-sidebar-foot { padding: .75rem 1rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: .6rem; padding: .4rem .25rem .8rem; }
.sidebar-avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--lizzy-primary), var(--lizzy-accent));
    color: #fff; font-weight: 800; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-user-meta { min-width: 0; line-height: 1.2; }
.sidebar-user-meta strong { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-meta span { color: #64748B; font-size: .75rem; text-transform: capitalize; }
.sidebar-logout {
    display: flex; align-items: center; gap: .55rem; color: #94A3B8; text-decoration: none;
    padding: .55rem .75rem; border-radius: .5rem; font-size: .92rem;
}
.sidebar-logout:hover { background: rgba(239,68,68,.12); color: #FCA5A5; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: #fff; border-bottom: 1px solid #E2E8F0; padding: .8rem 1.5rem;
    position: sticky; top: 0; z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: .4rem; }
.btn-hamburger, .icon-btn, .user-btn, .sidebar-close {
    background: none; border: 0; color: #334155; display: inline-flex; align-items: center;
    justify-content: center; border-radius: .5rem; padding: .45rem;
}
.btn-hamburger:hover, .icon-btn:hover, .user-btn:hover { background: #F1F5F9; }
.icon-btn { position: relative; }
.icon-badge {
    position: absolute; top: 0; right: 0; min-width: 1.05rem; height: 1.05rem;
    background: #EF4444; color: #fff; border-radius: 1rem; font-size: .68rem;
    font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .25rem; border: 2px solid #fff;
}
.user-btn { gap: .5rem; font-size: .92rem; font-weight: 600; color: #1E293B; }
.topbar-avatar { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
.notif-menu { width: 19rem; padding: .5rem; }
.notif-head { padding: .4rem .75rem; font-size: .8rem; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .03em; }
.notif-item { display: flex; flex-direction: column; border-radius: .5rem; padding: .55rem .75rem; }
.notif-item strong { font-size: .88rem; }
.notif-item span { font-size: .8rem; color: #64748B; }
.user-menu { min-width: 13rem; }
.user-menu-head { padding: .6rem .9rem .2rem; display: flex; flex-direction: column; font-size: .85rem; }
.user-menu-head span { color: #64748B; font-size: .78rem; }
.sidebar-close { position: absolute; right: .6rem; top: 1rem; color: #94A3B8; }
.sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 44;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 45;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: 0 0 2rem rgba(0,0,0,.3);
    }
    .admin-sidebar.open { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .admin-brand { position: relative; }
}
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--lizzy-dark); }
.stat-card .stat-label { color: #64748B; font-size: .9rem; }
.stat-card .stat-hint { color: #94A3B8; font-size: .8rem; margin-top: .25rem; }

/* ===================== LANDING ESTILO CONSULTAR ===================== */
.site-shell { font-family: 'Inter', sans-serif; color: #334155; background: #fff; }
.site-shell h1, .site-shell h2, .site-shell h3, .site-brand { font-family: 'Manrope', sans-serif; }

/* Topbar */
.site-topbar { background: #0F172A; color: #94A3B8; font-size: .82rem; padding: .5rem 0; }
.site-topbar a { color: #CBD5E1; text-decoration: none; }
.site-topbar a:hover { color: #0EA5E9; }

/* Nav */
.site-nav { background: #fff; border-bottom: 1px solid #E2E8F0; padding: .9rem 0; position: sticky; top: 0; z-index: 50; }
.site-brand { font-weight: 800; font-size: 1.35rem; color: #0F172A; text-decoration: none; }
.site-brand span { color: #0EA5E9; }
.site-menu { display: flex; align-items: center; gap: 1.6rem; }
.site-menu a { color: #334155; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-menu a:hover { color: #1E40AF; }

/* Botones CTA */
.btn-cta { display: inline-block; background: #1E40AF; color: #fff !important; padding: .55rem 1.4rem; border-radius: .5rem; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn-cta:hover { background: #1E3A8A; }
.btn-cta-lg { padding: .8rem 1.9rem; font-size: 1.05rem; }
.btn-ghost { display: inline-block; color: #1E40AF; font-weight: 600; text-decoration: none; border: 1.5px solid #C7D2FE; padding: .7rem 1.6rem; border-radius: .5rem; }
.btn-ghost:hover { background: #EEF2FF; }

/* Hero */
.hero-consultar { background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #1E40AF 100%); color: #fff; padding: 7rem 0 9rem; }
.hero-kicker { color: #67E8F9; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.hero-consultar h1 { font-size: 3.4rem; font-weight: 800; margin: 1rem 0; line-height: 1.1; }
.hero-sub { color: #C7D2FE; font-size: 1.1rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }
.hero-consultar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-consultar .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-stat-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; padding: 2.2rem; text-align: center; backdrop-filter: blur(4px); }
.stat-num { font-family: 'Manrope'; font-size: 4rem; font-weight: 800; color: #67E8F9; }
.stat-label { font-weight: 600; }
.stat-divider { height: 1px; background: rgba(255,255,255,.15); margin: 1.2rem 0; }
.stat-mini { color: #C7D2FE; font-size: .9rem; }

/* Cards solapadas sobre el hero */
.overlap-cards { margin-top: -4.5rem; padding-bottom: 4rem; position: relative; z-index: 2; }
.svc-card { background: #fff; border-radius: .9rem; padding: 2.2rem; box-shadow: 0 12px 40px rgba(15,23,42,.10); border-top: 4px solid #0EA5E9; height: 100%; }
.svc-icon { font-size: 2rem; color: #1E40AF; margin-bottom: 1rem; }
.svc-card h3 { font-size: 1.2rem; font-weight: 700; color: #0F172A; }
.svc-card p { color: #64748B; font-size: .92rem; margin: 0; }

/* Secciones genéricas */
.section-kicker { color: #0EA5E9; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.section-title { font-size: 2rem; font-weight: 800; color: #0F172A; margin: .4rem 0 1rem; }
.about-block { padding: 5rem 0; background: #F8FAFC; }
.about-quote { border-left: 4px solid #0EA5E9; padding-left: 1rem; color: #1E3A8A; font-weight: 600; }
.about-sign { color: #64748B; font-size: .88rem; }
.about-panel { background: #0F172A; border-radius: 1rem; padding: 2rem; }
.panel-row { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #CBD5E1; }
.panel-row:last-child { border-bottom: 0; }
.panel-tag { background: rgba(14,165,233,.15); color: #67E8F9; font-weight: 600; font-size: .8rem; padding: .2rem .8rem; border-radius: 2rem; }

/* Grid de módulos */
.svc-grid-block { padding: 5rem 0; }
.mod-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: .9rem; padding: 2rem; height: 100%; transition: transform .2s, box-shadow .2s; }
.mod-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.10); background: #fff; }
.mod-card h3 { font-size: 1.15rem; font-weight: 700; color: #0F172A; }
.mod-card p { color: #64748B; font-size: .9rem; margin: 0; }

/* Pricing */
.pricing-block { padding: 5rem 0; background: #F8FAFC; }
.pack-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 1rem; padding: 2.2rem 1.8rem; text-align: center; position: relative; height: 100%; }
.pack-featured { border: 2px solid #1E40AF; box-shadow: 0 16px 40px rgba(30,64,175,.15); }
.pack-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #0EA5E9; color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem 1rem; border-radius: 2rem; }
.pack-card h3 { font-size: 1.15rem; font-weight: 700; color: #0F172A; }
.pack-price { font-family: 'Manrope'; font-size: 3rem; font-weight: 800; color: #1E40AF; margin: .5rem 0 1.2rem; }
.pack-price sup { font-size: 1.2rem; vertical-align: super; }
.pack-price small { font-size: .9rem; color: #64748B; font-weight: 500; }
.pack-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.pack-card li { padding: .5rem 0; color: #475569; font-size: .9rem; border-bottom: 1px dashed #E2E8F0; }
.pack-card li:last-child { border-bottom: 0; }
.btn-pack { display: block; background: #0F172A; color: #fff !important; text-decoration: none; font-weight: 600; padding: .7rem; border-radius: .5rem; }
.btn-pack:hover { background: #1E40AF; }
.pricing-note { text-align: center; color: #64748B; font-size: .85rem; margin-top: 2rem; }

/* Banda de contadores */
.stats-band { background: linear-gradient(90deg, #1E3A8A, #1E40AF); color: #fff; padding: 3.5rem 0; }
.band-num { font-family: 'Manrope'; font-size: 2.6rem; font-weight: 800; color: #67E8F9; }
.band-label { color: #C7D2FE; font-size: .9rem; }

/* Galería de portales */
.gallery-block { padding: 5rem 0; }
.portal-card { border: 1px solid #E2E8F0; border-radius: .9rem; padding: 1.6rem; height: 100%; }
.portal-mock { background: linear-gradient(135deg, #EEF2FF, #E0F2FE); border-radius: .7rem; height: 150px; padding: 1rem; margin-bottom: 1.2rem; }
.panel-contador .portal-mock { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.panel-cliente .portal-mock { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
.mock-bar { height: 10px; width: 55%; background: #1E40AF; border-radius: 4px; opacity: .7; }
.mock-lines i { display: block; height: 7px; background: #94A3B8; border-radius: 4px; margin-top: .8rem; opacity: .55; }
.mock-lines i:nth-child(1) { width: 85%; } .mock-lines i:nth-child(2) { width: 60%; }
.mock-lines i:nth-child(3) { width: 75%; } .mock-lines i:nth-child(4) { width: 45%; }
.portal-card h3 { font-size: 1.1rem; font-weight: 700; color: #0F172A; }
.portal-card p { color: #64748B; font-size: .88rem; margin: 0; }

/* Testimonios */
.testi-block { padding: 5rem 0; background: #F8FAFC; }
.testi-card { background: #fff; border-radius: .9rem; padding: 2rem; height: 100%; border-left: 4px solid #0EA5E9; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.testi-quote { color: #334155; font-style: italic; }
.testi-name { font-weight: 700; color: #0F172A; }
.testi-role { color: #64748B; font-size: .82rem; }

/* CTA soporte */
.support-cta { background: #0F172A; color: #fff; padding: 5rem 0; }
.support-cta h2 { font-weight: 800; }
.support-cta p { color: #94A3B8; max-width: 38rem; margin: 1rem auto 2rem; }

/* Pasos */
.steps-block { padding: 5rem 0; }
.step-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: .9rem; padding: 2rem; height: 100%; }
.step-num { font-family: 'Manrope'; font-size: 2.4rem; font-weight: 800; color: #C7D2FE; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; color: #0F172A; margin-top: .5rem; }
.step-card p { color: #64748B; font-size: .9rem; margin: 0; }

/* Footer rico */
.site-footer-rich { background: #0F172A; color: #CBD5E1; padding: 4rem 0 0; }
.site-footer-rich h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer-rich a { display: block; color: #94A3B8; text-decoration: none; font-size: .88rem; padding: .25rem 0; }
.site-footer-rich a:hover { color: #67E8F9; }
.site-footer-rich .site-brand { color: #fff; display: inline-block; }
.text-footer { color: #94A3B8; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.4rem 0; color: #64748B; font-size: .82rem; text-align: center; }

@media (max-width: 767px) {
    .hero-consultar h1 { font-size: 2.3rem; }
    .site-menu { gap: .8rem; font-size: .85rem; }
    .site-topbar span:last-child { display: none; }
}

/* ===================== AUTH SPLIT-SCREEN (estilo SaleSkip) ===================== */
.auth-body { margin: 0; font-family: 'Inter', sans-serif; }
.auth-wrap { display: flex; min-height: 100vh; }

/* Panel izquierdo */
.auth-side {
    position: relative; flex: 0 0 45%; overflow: hidden;
    background: linear-gradient(150deg, #3128C8 0%, #2B1FB4 45%, #1E12A8 100%);
    color: #fff; padding: 3.5rem 3rem; display: flex; flex-direction: column;
}
.auth-side-deco i {
    position: absolute; border: 1.5px solid rgba(255,255,255,.07); border-radius: 50%;
    top: -10%; right: -12%;
}
.auth-side-deco i:nth-child(1) { width: 280px; height: 280px; }
.auth-side-deco i:nth-child(2) { width: 420px; height: 420px; top: -18%; right: -22%; }
.auth-side-deco i:nth-child(3) { width: 580px; height: 580px; top: -26%; right: -34%; }
.auth-side-deco i:nth-child(4) { width: 760px; height: 760px; top: -34%; right: -48%; }
.auth-side-deco i:nth-child(5) { width: 960px; height: 960px; top: -42%; right: -64%; }
.auth-mark { font-size: 2.6rem; line-height: 1; position: relative; }
.auth-side-text { margin-top: auto; margin-bottom: auto; position: relative; }
.auth-side-text h1 { font-family: 'Manrope'; font-size: 3.4rem; font-weight: 800; line-height: 1.05; }
.auth-side-text p { color: #C7C2F5; max-width: 24rem; margin-top: 1.4rem; font-size: 1rem; line-height: 1.6; }
.auth-copy { color: rgba(255,255,255,.45); font-size: .82rem; position: relative; }

/* Panel derecho */
.auth-main { flex: 1; padding: 3rem 4rem; display: flex; flex-direction: column; background: #fff; }
.auth-brand a { font-family: 'Manrope'; font-weight: 800; font-size: 1.25rem; color: #0F172A; text-decoration: none; }
.auth-form-box { max-width: 26rem; margin: auto; width: 100%; }
.auth-title { font-family: 'Manrope'; font-weight: 800; font-size: 1.7rem; color: #0F172A; margin-bottom: .4rem; }
.auth-sub { color: #64748B; font-size: .88rem; margin-bottom: 2.2rem; }
.auth-sub a { color: #1E40AF; font-weight: 600; }

/* Inputs con label flotante, estilo subrayado */
.auth-field { position: relative; margin-bottom: 1.6rem; }
.auth-field input {
    width: 100%; border: 0; border-bottom: 1.5px solid #E2E8F0; padding: .7rem .1rem .55rem;
    font-size: .95rem; color: #0F172A; background: transparent; outline: none;
    transition: border-color .2s;
}
.auth-field input:focus { border-bottom-color: #1E40AF; }
.auth-field label {
    position: absolute; left: .1rem; top: .7rem; color: #94A3B8; font-size: .95rem;
    pointer-events: none; transition: all .18s;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
    top: -.7rem; font-size: .72rem; color: #1E40AF; font-weight: 600;
}
.auth-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }

/* Botón negro estilo referencia */
.btn-auth {
    width: 100%; background: #0F172A; color: #fff; border: 0; border-radius: .5rem;
    padding: .85rem; font-weight: 600; font-size: .95rem; margin-top: .6rem;
    transition: background .2s;
}
.btn-auth:hover { background: #1E40AF; }
.auth-remember { margin-top: 1rem; font-size: .85rem; color: #475569; }
.auth-foot { margin-top: 1.6rem; text-align: center; font-size: .85rem; color: #64748B; }
.auth-foot a { color: #1E40AF; font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
    .auth-side { display: none; }
    .auth-main { padding: 2rem 1.5rem; }
}

/* ===================== COTIZADOR ===================== */
.cot-hero { background: #F8FAFC; padding: 4rem 0 2rem; border-bottom: 1px solid #E2E8F0; }
.cot-sub { color: #64748B; max-width: 32rem; margin: 0 auto; }
.cot-body { padding: 3rem 0 5rem; }

.cot-step { background: #fff; border: 1px solid #E2E8F0; border-radius: .9rem; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; transition: border-color .2s, box-shadow .2s; }
.cot-step:hover { border-color: #C7D2FE; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.cot-step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.cot-num { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: #1E40AF; color: #fff; font-family: 'Manrope'; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.cot-step-head h3 { font-size: 1.05rem; font-weight: 700; color: #0F172A; margin: 0; }
.cot-value { min-width: 3rem; text-align: center; font-family: 'Manrope'; font-weight: 800; font-size: 1.5rem; color: #1E40AF; background: #EEF2FF; border-radius: .5rem; padding: .1rem .6rem; }

.cot-addons { display: grid; gap: .6rem; }
.cot-addon { display: flex; align-items: center; gap: .8rem; border: 1px solid #E2E8F0; border-radius: .6rem; padding: .7rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.cot-addon:hover { border-color: #1E40AF; background: #F8FAFF; }
.cot-addon:has(.addon:checked) { border-color: #1E40AF; background: #EEF2FF; }
.cot-addon .form-check-input { margin: 0; }
.cot-addon-name { flex: 1; font-size: .92rem; font-weight: 500; color: #334155; }
.cot-addon-price { font-size: .82rem; color: #64748B; white-space: nowrap; }

.cot-period { display: flex; gap: .8rem; }
.cot-period label { flex: 1; text-align: center; border: 1.5px solid #E2E8F0; border-radius: .6rem; padding: .8rem; cursor: pointer; font-weight: 600; color: #475569; transition: all .15s; }
.cot-period label em { display: block; font-style: normal; font-size: .78rem; color: #16A34A; font-weight: 500; }
.cot-period .btn-check:checked + label { border-color: #1E40AF; background: #EEF2FF; color: #1E40AF; }

.cot-summary { background: #0F172A; color: #fff; border-radius: 1rem; padding: 2rem; top: 5.5rem; }
.cot-sum-kicker { color: #67E8F9; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.cot-sum-plan { font-family: 'Manrope'; font-size: 1.9rem; font-weight: 800; margin: .3rem 0 1rem; }
.cot-sum-items { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.cot-sum-items li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); color: #CBD5E1; }
.cot-sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
.cot-sum-total span { color: #94A3B8; } .cot-sum-total em { font-style: normal; }
.cot-sum-total strong { font-family: 'Manrope'; font-size: 2rem; color: #67E8F9; }
.cot-sum-note, .cot-sum-saving { font-size: .82rem; margin-top: .3rem; }
.cot-sum-note { color: #94A3B8; } .cot-sum-saving { color: #4ADE80; }
.cot-summary .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.cot-summary .form-control::placeholder { color: #64748B; }
.cot-summary .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; display: block; }
.cot-summary .btn-ghost:hover { background: rgba(255,255,255,.1); }
.cot-summary .btn-cta { display: block; }
.cot-summary .btn-ghost { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); }
.cot-summary .btn-ghost:hover { background: rgba(255,255,255,.1) !important; }

/* trial banner /app */
.trial-banner { border-left: 4px solid var(--lizzy-accent); }

/* Isotipo en marcas */
.brand-mark { height: 1.6rem; width: auto; margin-right: .45rem; vertical-align: middle; }
.auth-mark img { background:#fff; border-radius:1rem; padding:.45rem; }

/* ---------- Admin Track A (TSK-A07..A14): estados, tablas, formularios ---------- */
.badge.st { font-weight: 600; text-transform: capitalize; background: #E2E8F0; color: #334155; }
.st-activa, .st-asignada, .st-aprobada, .st-pagada, .st-activo, .st-convertida { background: #DCFCE7 !important; color: #166534 !important; }
.st-trial, .st-disponible, .st-pendiente, .st-emitida, .st-demo { background: #DBEAFE !important; color: #1E40AF !important; }
.st-en_gracia, .st-parcial, .st-generada { background: #FEF3C7 !important; color: #92400E !important; }
.st-suspendida, .st-vencida, .st-expirada, .st-suspendido, .st-agotado, .st-alta, .st-en_proceso, .st-internal { background: #FFEDD5 !important; color: #9A3412 !important; }
.st-abierto, .st-media, .st-contabilizado, .st-ingreso { background: #DBEAFE !important; color: #1E40AF !important; }
.st-borrador, .st-cerrado, .st-costo, .st-pasivo { background: #F1F5F9 !important; color: #475569 !important; }
.st-activo { background: #DCFCE7 !important; color: #166534 !important; }
.st-patrimonio { background: #F3E8FF !important; color: #6B21A8 !important; }
.st-gasto { background: #FFEDD5 !important; color: #9A3412 !important; }
.st-resuelto, .st-baja { background: #DCFCE7 !important; color: #166534 !important; }
.st-critica { background: #FEE2E2 !important; color: #991B1B !important; }
.ticket-msg { padding: .75rem 0; border-bottom: 1px solid var(--lz-border, #E5E7EB); }
.ticket-msg:last-child { border-bottom: 0; }
.ticket-msg-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.ticket-msg-internal { background: #FFFBEB; padding: .75rem; border-radius: .5rem; }
.st-cancelada, .st-cancelado, .st-rechazada, .st-anulada, .st-purgada, .st-archivada { background: #FEE2E2 !important; color: #991B1B !important; }
.row-inactive td { opacity: .55; }
.form-narrow { max-width: 880px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.admin-filters .form-control, .admin-filters .form-select { width: auto; min-width: 160px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: #64748B; font-weight: 500; }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid #CBD5E1; padding: 0 0 .9rem .9rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--lizzy-primary, #1E40AF); }
.action-card { border: 1px solid #E2E8F0; border-radius: .75rem; padding: 1rem; background: #fff; }
.json-diff { font-size: .78rem; white-space: pre-wrap; word-break: break-word; max-width: 360px; margin: 0; }
.table-scroll { overflow-x: auto; }

/* ===================== LISTADO ADMIN (patrón v2 · cards con muesca) ===================== */
/* Card genérica de listado */
.liz-card {
    position: relative;
    background: #fff; border: 1px solid #E2E8F0; border-radius: .9rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
    /* overflow visible: la muesca puzzle sobresale del borde */
}
.liz-card-hd {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .95rem 1.1rem;
}
.liz-card-bd { padding: .9rem 1.1rem; }
.liz-card-ft {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: .6rem; padding: .7rem 1.1rem;
    background: #F8FAFC; border-top: 1px solid #E2E8F0;
    border-radius: 0 0 .9rem .9rem;
}

/* Muesca One UI: dock cóncavo en esquina superior derecha (inverted border radius)
   Réplica de .oneui-top-dock del kit — el hueco usa el color del fondo de página. */
.muesca-dock {
    position: absolute; top: -1px; right: -1px;
    width: 64px; height: 64px;
    background: var(--lizzy-bg); border-bottom-left-radius: 24px;
    display: flex; align-items: center; justify-content: center; z-index: 10;
}
.muesca-dock::before {
    content: ''; position: absolute; top: 0; left: -18px;
    width: 18px; height: 18px; background: transparent;
    border-top-right-radius: 18px;
    box-shadow: 6px -6px 0 6px var(--lizzy-bg); pointer-events: none;
}
.muesca-dock::after {
    content: ''; position: absolute; bottom: -18px; right: 0;
    width: 18px; height: 18px; background: transparent;
    border-top-right-radius: 18px;
    box-shadow: 6px -6px 0 6px var(--lizzy-bg); pointer-events: none;
}
/* Botón circular anidado en la muesca */
.dock-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--lizzy-primary); color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30,64,175,.35);
    transition: transform .15s ease, background .15s ease;
}
.dock-btn:hover { background: var(--lizzy-primary-hover); color: #fff; transform: scale(1.08); }
.dock-btn:active { transform: scale(.95); }
.dock-btn.db-danger { background: var(--lizzy-danger); box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.dock-btn.db-danger:hover { background: #B91C1C; }
/* Espacio reservado para el hueco en cards con muesca */
.liz-card.has-dock .liz-card-hd { padding-right: 78px; }
.liz-card.has-dock .data-notch { padding-right: 78px; }

/* Encabezado de página (título + subtítulo) */
.ph-text h2 { font-family: 'Manrope', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--lizzy-dark); margin: 0; }
.ph-text p { margin: 0; font-size: .83rem; color: #64748B; }

/* Header clickable del card de filtros */
.lc-hd-btn {
    display: flex; align-items: center; gap: .55rem; width: 100%;
    background: none; border: 0; padding: .75rem 1.1rem; text-align: left;
    border-radius: .9rem;
}
.lc-hd-btn:hover { background: #F8FAFC; }
.lc-title { font-size: .86rem; font-weight: 700; color: #334155; }
.lc-chev { margin-left: auto; color: #94A3B8; transition: transform .2s ease; }
.lc-hd-btn[aria-expanded="true"] .lc-chev { transform: rotate(180deg); }

/* Muesca del card de datos: tabs a la izquierda, acción a la derecha */
.data-notch {
    display: flex; align-items: stretch; justify-content: space-between; gap: .75rem;
    padding-left: .9rem; background: #F8FAFC; border-bottom: 1px solid #E2E8F0;
    border-radius: .9rem .9rem 0 0;
}
.trow-btn { cursor: pointer; }
.trow-btn:hover td { background: #F8FAFC; }
.notch-tabs { display: flex; align-items: flex-end; gap: .2rem; overflow-x: auto; min-width: 0; padding-top: .5rem; scrollbar-width: none; }
.notch-tabs::-webkit-scrollbar { display: none; }
.ntab {
    display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
    padding: .55rem .95rem; font-size: .84rem; font-weight: 600;
    color: #64748B; text-decoration: none; border-radius: .55rem .55rem 0 0;
    border: 1px solid transparent; border-bottom: 0;
}
.ntab:hover { color: var(--lizzy-primary); background: #F1F5F9; }
.ntab.active {
    background: var(--lizzy-primary); color: #fff;
    border-color: var(--lizzy-primary);
}
.ntab-n {
    font-size: .72rem; font-weight: 700; line-height: 1;
    background: #E2E8F0; color: #475569; border-radius: 1rem; padding: .2rem .45rem;
}
.ntab.active .ntab-n { background: rgba(255,255,255,.22); color: #fff; }
.notch-search {
    display: flex; align-items: center; gap: .5rem; align-self: center; flex: none;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 999px;
    padding: .42rem .85rem; margin-right: .7rem; color: #94A3B8; max-width: 16rem;
}
.notch-search:focus-within { border-color: #C7D2FE; }
.notch-search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 9rem; font-size: .84rem; color: #334155; }
@media (max-width: 575.98px) { .notch-search { display: none; } }

/* Badges-filtro (sustituyen tabs en el notch) */
.fbadges {
    display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
    padding: .65rem .9rem .65rem .2rem; min-width: 0;
}
.fbadge {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: .38rem .85rem; font-size: .8rem; font-weight: 600;
    color: #64748B; background: #fff; border: 1px solid #E2E8F0;
    border-radius: 999px; text-decoration: none; transition: all .15s;
}
.fbadge:hover { color: var(--lizzy-primary); border-color: #C7D2FE; }
.fbadge.active {
    background: var(--lizzy-primary); border-color: var(--lizzy-primary);
    color: #fff; box-shadow: 0 4px 10px -4px rgba(37,99,235,.5);
}

/* Paginación dentro del footer del card */
.lp-info { font-size: .82rem; color: #64748B; }
.liz-card-ft .pagination { margin: 0; }
.liz-card-ft .page-link { color: var(--lizzy-primary); border-color: #E2E8F0; }
.liz-card-ft .page-item.active .page-link {
    background: var(--lizzy-primary); border-color: var(--lizzy-primary);
}

/* Breadcrumb del topbar (sustituye título duplicado) */
.topbar-crumb { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: #94A3B8; }
.topbar-crumb strong { color: #1E293B; font-weight: 600; }
.topbar-crumb .crumb-sep { color: #CBD5E1; }

/* Stat cards de estado (clicables, sustituyen a los tabs) */
.state-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .7rem; margin-top: 1rem;
}
.state-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: .8rem;
    padding: .75rem 1rem; display: flex; flex-direction: column; gap: .1rem;
    text-decoration: none; box-shadow: 0 1px 3px rgba(15,23,42,.04);
    transition: all .15s ease;
}
.state-card:hover { border-color: var(--lizzy-primary); transform: translateY(-1px); }
.state-num { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--lizzy-dark); line-height: 1.1; }
.state-label { font-size: .78rem; font-weight: 600; color: #64748B; }
.state-card.active {
    background: var(--lizzy-primary); border-color: var(--lizzy-primary);
}
.state-card.active .state-num, .state-card.active .state-label { color: #fff; }

/* Filas clickeables */
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #F8FAFC; }

/* Muesca inferior derecha (estilo oneui-br-dock): scoop cóncavo abajo-derecha */
.muesca-dock-br {
    position: absolute; bottom: -1px; right: -1px;
    width: 64px; height: 64px;
    background: var(--lizzy-bg); border-top-left-radius: 24px;
    display: flex; align-items: center; justify-content: center; z-index: 10;
}
.muesca-dock-br::before {
    content: ''; position: absolute; top: -18px; right: 0;
    width: 18px; height: 18px; background: transparent;
    border-bottom-right-radius: 18px;
    box-shadow: 6px 6px 0 6px var(--lizzy-bg); pointer-events: none;
}
.muesca-dock-br::after {
    content: ''; position: absolute; bottom: 0; left: -18px;
    width: 18px; height: 18px; background: transparent;
    border-bottom-right-radius: 18px;
    box-shadow: 6px 6px 0 6px var(--lizzy-bg); pointer-events: none;
}
/* Reservar espacio bajo el hueco inferior */
.liz-card.has-dock-br .liz-card-bd { padding-bottom: 76px; }

/* Fecha anidada en la muesca */
.dock-date {
    display: flex; flex-direction: column; align-items: center; line-height: 1.05;
}
.dock-date .dd { font-family: 'Manrope', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--lizzy-dark); }
.dock-date .dm { font-size: .62rem; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .04em; }

/* ===================== PORTAL CONTADOR (/app) =====================
   Sidebar lateral (shell compartido con admin) + consola del
   contador (dashboard). */
.app-shell { background: var(--lizzy-bg); min-height: 100vh; font-family: 'Inter', sans-serif; color: #334155; }
.app-shell h1, .app-shell h2, .app-shell h3, .op-hero .big, .bignum .v, .mini .mv { font-family: 'Manrope', sans-serif; }

.ndot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem; flex-shrink: 0; margin-top: .35rem; }
.nd-ok { background: var(--lizzy-success); } .nd-info { background: var(--lizzy-accent); }
.nd-warn { background: var(--lizzy-warning); } .nd-bad { background: var(--lizzy-danger); }

.app-main { max-width: 1500px; }


}
.cav-1 { background: linear-gradient(135deg, #6366F1, #4F46E5); } .cav-2 { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.cav-3 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); } .cav-4 { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.cav-5 { background: linear-gradient(135deg, #F59E0B, #D97706); } .cav-6 { background: linear-gradient(135deg, #EC4899, #DB2777); }


/* ---------- Feeds, tareas, calendario ---------- */
.feed-item { display: flex; gap: .4rem; padding: .5rem 0; border-bottom: 1px solid #F1F5F9; color: inherit; text-decoration: none; }
.feed-item:last-child { border-bottom: 0; }
.feed-link:hover p { color: var(--lizzy-primary); }
.feed-body { min-width: 0; }
.feed-body p { margin: 0; font-size: .88rem; color: #334155; }
.feed-body span { font-size: .76rem; color: #94A3B8; }

.task-item {
    display: flex; align-items: center; gap: .7rem; padding: .55rem 0;
    border-bottom: 1px solid #F1F5F9; color: inherit; text-decoration: none;
}
.task-item:last-child { border-bottom: 0; }
.task-item:hover .task-label { color: var(--lizzy-primary); }
.task-check { width: 1.05rem; height: 1.05rem; border: 1.5px solid #CBD5E1; border-radius: .3rem; flex-shrink: 0; }
.task-label { flex: 1; min-width: 0; font-size: .88rem; color: #334155; }

.cal-in { font-size: .74rem; font-weight: 700; color: #64748B; white-space: nowrap; margin-left: auto; }
.cal-in.is-warn { color: var(--lizzy-warning); } .cal-in.is-bad { color: var(--lizzy-danger); }

/* ---------- Mini calendario fiscal ---------- */
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
    margin-bottom: 12px;
}
.cdw { font-size: .62rem; font-weight: 800; color: #94A3B8; text-align: center; padding: 2px 0; text-transform: uppercase; }
.cd {
    position: relative; aspect-ratio: 1; display: grid; place-items: center;
    font-size: .74rem; font-weight: 600; color: #475569; border-radius: 8px;
}
.cd-out { visibility: hidden; }
.cd-today { background: var(--lizzy-primary); color: #fff; font-weight: 800; }
.cd-due::after {
    content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: var(--lizzy-primary);
}
.cd-due.cd-crit::after { background: var(--lizzy-danger); }
.cd-due.cd-warn::after { background: var(--lizzy-warning); }
.cd-due.cd-today::after { background: #fff; }
.cd-due:not(.cd-today) { cursor: help; }
.cd-due.cd-crit:not(.cd-today) { background: #FEF2F2; color: var(--lizzy-danger); font-weight: 800; }
.cd-due.cd-warn:not(.cd-today) { background: #FFFBEB; color: #B45309; font-weight: 800; }




/* ---------- Lista de celdas One UI ---------- */
.cell-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .9rem 1rem; border: 1px solid #E2E8F0; border-radius: 1rem;
    color: inherit; text-decoration: none; background: #fff;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cell-item + .cell-item { margin-top: .7rem; }
.cell-item:hover {
    border-color: rgba(30,64,175,.45); box-shadow: 0 6px 18px rgba(15,23,42,.07);
    transform: translateY(-1px); color: inherit;
}
.cell-avatar {
    width: 3.1rem; height: 3.1rem; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: .86rem; letter-spacing: .02em;
    box-shadow: 0 0 0 4px #F1F5F9, 0 2px 6px rgba(15,23,42,.12);
}
.cell-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .28rem; }
.cell-line1 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cell-line1 strong { font-size: .9rem; color: var(--lizzy-dark); }
.cell-badge {
    font-size: .62rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px;
    text-transform: none; line-height: 1.3;
}
.cell-badge.est-ok   { background: rgba(22,163,74,.12); color: var(--lizzy-success); }
.cell-badge.est-warn { background: rgba(217,119,6,.12); color: var(--lizzy-warning); }
.cell-badge.est-bad  { background: rgba(220,38,38,.12); color: var(--lizzy-danger); }
.cell-badge.cb-demo  { background: rgba(14,165,233,.14); color: var(--lizzy-accent); }
.cell-sub { font-size: .76rem; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-go {
    width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%;
    background: #F1F5F9; color: var(--lizzy-primary);
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
}
.cell-item:hover .cell-go { background: var(--lizzy-primary); color: #fff; }
@media (max-width: 575.98px) {
    .cell-sub { white-space: normal; }
}

/* ---------- Sidebar /app (shell compartido con admin) ---------- */
.sb-sec {
    padding: 1rem .75rem .35rem; font-size: .66rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: #475569;
}
.sb-group {
    display: flex !important; align-items: center; gap: .55rem;
    font-size: .9rem !important;
}
.sb-group .sb-chev { margin-left: auto; transition: transform .2s ease; color: #64748B; flex-shrink: 0; }
.sb-group[aria-expanded="true"] .sb-chev { transform: rotate(90deg); }
.sb-dot { width: .55rem; height: .55rem; border-radius: 50%; flex-shrink: 0; }
.sb-sub { padding: .1rem 0 .3rem 1.5rem; border-left: 1px solid rgba(148,163,184,.18); margin-left: 1rem; }
.sb-sub a { font-size: .83rem !important; padding: .4rem .75rem !important; }
.sb-empty { display: block; padding: .4rem .75rem; color: #64748B; font-size: .82rem; font-style: italic; }
.sb-add { color: var(--lizzy-accent) !important; font-size: .86rem !important; }
.sb-add:hover { color: #fff !important; }


.salud-note { font-size: .82rem; font-weight: 600; color: var(--lizzy-success); }
.salud-bar { display: flex; height: .55rem; border-radius: 1rem; overflow: hidden; background: #F1F5F9; margin: .9rem 0 .7rem; }
.salud-bar span { display: block; height: 100%; transition: width .4s ease; }
.salud-bar .sb-ok { background: var(--lizzy-success); }
.salud-bar .sb-warn { background: var(--lizzy-warning); }
.salud-bar .sb-bad { background: var(--lizzy-danger); }
.salud-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; font-weight: 600; color: #475569; }
.salud-legend .ndot { margin-right: .4rem; margin-top: .25rem; }

/* Celda: contador de pendientes */
.cell-pend {
    flex-shrink: 0; font-size: .72rem; color: #94A3B8; text-align: center; line-height: 1.15;
    min-width: 3.6rem;
}
.cell-pend b { display: block; font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 800; color: #475569; }
.cell-pend.cp-warn, .cell-pend.cp-warn b { color: var(--lizzy-warning); }
.cell-pend.cp-bad, .cell-pend.cp-bad b { color: var(--lizzy-danger); }
@media (max-width: 575.98px) { .cell-pend { display: none; } }

/* Vencimiento apagado (próximamente) */

/* Panel con scroll (notificaciones/tareas) */
.scroll-panel { max-height: 21rem; overflow-y: auto; scrollbar-width: thin; }
.scroll-panel::-webkit-scrollbar { width: 5px; }
.scroll-panel::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
@media (max-width: 991.98px) {
    .app-shell, .admin-shell { overflow-x: clip; }
}

/* ---------- Hello (saludo) ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.hello-t { font-size: 1.55rem; font-weight: 800; color: var(--lizzy-dark); margin: 0; }
.hello-d { color: #64748B; font-size: .88rem; margin: .25rem 0 0; }
.hello-act { display: flex; gap: .5rem; flex-wrap: wrap; }
.pillbtn {
    display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #E2E8F0;
    background: #fff; color: #334155; border-radius: 999px; padding: .5rem 1.05rem;
    font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.pillbtn:hover { border-color: #C7D2FE; color: var(--lizzy-primary); }
.pillbtn.primary { background: var(--lizzy-primary); border-color: var(--lizzy-primary); color: #fff; }
.pillbtn.primary:hover { background: var(--lizzy-primary-hover); color: #fff; }
.pillbtn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Grilla de paneles (patrón dashboard_cobertura) ---------- */
.opgrid { display: grid; gap: 16px; margin-bottom: 16px; align-items: start; }
.opgrid.r1 { grid-template-columns: minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr); }
.opgrid.r2 { grid-template-columns: minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr); }
.opgrid.r2w { grid-template-columns: minmax(0,2.65fr) minmax(0,1fr); }
@media (max-width: 760px) { .opgrid.r2w { grid-template-columns: 1fr; } }
.opcol { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1100px) {
    .opgrid.r1, .opgrid.r2 { grid-template-columns: 1fr 1fr; }
    .opgrid.r1 > .op-panel:nth-child(2) { grid-column: 1/-1; order: -1; }
    .opgrid.r2 > .opcol:nth-child(2) { grid-column: 1/-1; order: -1; }
}
@media (max-width: 760px) { .opgrid.r1, .opgrid.r2 { grid-template-columns: 1fr; } }

/* ---------- Panel colapsable ---------- */
.op-panel {
    position: relative; background: #fff; border: 1px solid rgba(17,19,18,.07);
    border-radius: 20px; padding: 16px 18px; min-width: 0;
}
.op-panel.has-dock { overflow: visible; }
.op-panel.has-dock .op-ph { padding-right: 74px; }
.op-ph { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.op-ico {
    width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #F1F5F9;
    color: #64748B; display: grid; place-items: center; flex: none;
}
.op-ph h2 { font-size: .95rem; font-weight: 700; color: var(--lizzy-dark); margin: 0; }
.op-ph .desc { font-size: .75rem; color: #94A3B8; margin: .12rem 0 0; }
.colbtn {
    width: 2.15rem; height: 2.15rem; border-radius: 50%; border: 1px solid #E2E8F0; background: #F1F5F9;
    color: #475569; display: grid; place-items: center; flex: none; margin-left: auto;
    transition: background .15s, color .15s;
}
.colbtn:hover { background: var(--lizzy-primary); border-color: var(--lizzy-primary); color: #fff; }
.colbtn svg { transition: transform .2s ease; }
.colbtn[aria-expanded="false"] svg { transform: rotate(-90deg); }

/* ---------- Hero numérico dentro de panel ---------- */
.op-hero .lbl { display: flex; justify-content: space-between; font-size: .72rem; color: #94A3B8; font-weight: 600; }
.op-hero .big { font-size: 2.3rem; font-weight: 800; color: var(--lizzy-dark); line-height: 1.1; margin: .2rem 0 0; }
.op-hero .big small { font-size: 1.1rem; font-weight: 700; color: #94A3B8; }

/* ---------- Minis (stat tiles) ---------- */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .95rem; }
.minis.auto { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.mini {
    display: block; background: #F8FAFC; border-radius: 14px; padding: .7rem .8rem;
    text-decoration: none; color: inherit;
}
.mini:hover { background: #F1F5F9; }
.mini .mv { display: block; font-weight: 800; font-size: 1.12rem; color: var(--lizzy-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ml { display: block; font-size: .7rem; color: #94A3B8; font-weight: 600; margin-top: .1rem; }

/* ---------- Big number + badge ---------- */
.bignum { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .2rem; }
.bignum .v { font-size: 2.1rem; font-weight: 800; color: var(--lizzy-dark); }
.badge-pill { font-size: .66rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; }
.bp-crit { background: #FEE2E2; color: #DC2626; }
.bp-warn { background: #FEF3C7; color: #B45309; }
.bp-ok   { background: #DCFCE7; color: #15803D; }

/* ---------- Lista simple (.alist) ---------- */
.alist { list-style: none; margin: .3rem 0 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px solid #F1F5F9; font-size: .85rem; }
.alist li:first-child { border-top: 0; }
.alist li a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; border-radius: .5rem; }
.alist li a:hover b { color: var(--lizzy-primary); }
.alist li.is-off { border-top: 1px dashed #E2E8F0; padding-top: .7rem; }
.due-date { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; flex: none; }
.due-date b { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--lizzy-dark); line-height: 1; }
.due-date i { font-style: normal; font-size: .6rem; font-weight: 700; text-transform: uppercase; color: #94A3B8; letter-spacing: .04em; }
.due-body { min-width: 0; }
.due-body b { display: block; font-size: .85rem; color: #334155; }
.due-body i { font-style: normal; font-size: .74rem; color: #94A3B8; }

/* ---------- Buscador dentro de panel ---------- */
.op-search {
    display: flex; align-items: center; gap: .55rem; background: #F8FAFC;
    border: 1px solid #E9EEF2; border-radius: 999px; padding: .5rem .95rem;
    color: #94A3B8; margin-bottom: .8rem;
}
.op-search:focus-within { border-color: #C7D2FE; background: #fff; }
.op-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: .86rem; color: #334155; }
.op-foot {
    display: flex; justify-content: space-between; align-items: center; gap: .8rem;
    margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #F1F5F9; font-size: .8rem;
}
.op-foot span { color: #94A3B8; }
.op-foot a { color: var(--lizzy-primary); font-weight: 600; text-decoration: none; }
.bar-fill.w-5 { width: 5%; }
.bar-fill.w-10 { width: 10%; }
.bar-fill.w-15 { width: 15%; }
.bar-fill.w-20 { width: 20%; }
.bar-fill.w-25 { width: 25%; }
.bar-fill.w-30 { width: 30%; }
.bar-fill.w-35 { width: 35%; }
.bar-fill.w-40 { width: 40%; }
.bar-fill.w-45 { width: 45%; }
.bar-fill.w-50 { width: 50%; }
.bar-fill.w-55 { width: 55%; }
.bar-fill.w-60 { width: 60%; }
.bar-fill.w-65 { width: 65%; }
.bar-fill.w-70 { width: 70%; }
.bar-fill.w-75 { width: 75%; }
.bar-fill.w-80 { width: 80%; }
.bar-fill.w-85 { width: 85%; }
.bar-fill.w-90 { width: 90%; }
.bar-fill.w-95 { width: 95%; }
.bar-fill.w-100 { width: 100%; }
