/* =====================================================================
   EUROVIP — Design System
   Paleta: menta #B3FFF3 · aqua #74F2E6 · blanco · tinta (negro)
   Base: patrón BackTiTan (/Diseno/Sistema GRUPOVDT / Vuelokey: hero con
   gradiente g1→g2→g3) llevado a una UI moderna de tarjetas flotantes.
   ===================================================================== */

:root {
    /* Marca */
    --ev-mint: #B3FFF3;
    --ev-aqua: #74F2E6;
    --ev-teal: #2BD4C4;          /* aqua profundo para contraste en hover/estados */
    --ev-deep: #0E8F86;          /* texto de acento sobre blanco (AA) */
    --ev-ink: #0B1215;           /* "un poco de negro" */
    --ev-ink-2: #1B262B;

    /* Gradientes (mismo esquema g1/g2/g3 que Diseno_Sistema) */
    --ev-g1: #B3FFF3;
    --ev-g2: #74F2E6;
    --ev-g3: #2BD4C4;
    --ev-grad: linear-gradient(135deg, var(--ev-g1) 0%, var(--ev-g2) 55%, var(--ev-g3) 100%);
    --ev-grad-soft: linear-gradient(160deg, #F2FFFC 0%, #DDFBF6 100%);

    /* Superficies */
    --ev-bg: #E9FBF8;
    --ev-surface: #FFFFFF;
    --ev-surface-2: #F5FBFA;
    --ev-line: #E2EFED;
    --ev-text: #0B1215;
    --ev-muted: #66807C;

    /* Forma */
    --ev-r-xl: 32px;
    --ev-r-lg: 24px;
    --ev-r-md: 16px;
    --ev-r-sm: 12px;
    --ev-shadow: 0 1px 2px rgba(11,18,21,.04), 0 12px 32px -12px rgba(14,143,134,.22);
    --ev-shadow-lg: 0 30px 80px -30px rgba(11,18,21,.35);
    --ev-ease: cubic-bezier(.2,.8,.2,1);

    --ev-sidebar-w: 264px;
    --ev-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
    --ev-bg: #071012;
    --ev-surface: #0F1A1D;
    --ev-surface-2: #142326;
    --ev-line: #1F3236;
    --ev-text: #E8FFFB;
    --ev-muted: #8DB3AE;
    --ev-deep: #74F2E6;
    --ev-grad-soft: linear-gradient(160deg, #0F1A1D 0%, #10262A 100%);
    --ev-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: var(--ev-font);
    background: var(--ev-bg);
    color: var(--ev-text);
    -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--ev-aqua); color: var(--ev-ink); }

/* ---------- App shell (panel blanco flotante) ---------- */
.ev-shell {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    gap: 24px;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(116,242,230,.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(179,255,243,.6), transparent 60%),
        var(--ev-bg);
}

/* ---------- Sidebar en tarjeta con gradiente ---------- */
.ev-sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    width: var(--ev-sidebar-w);
    flex-shrink: 0;
    background: var(--ev-grad);
    border-radius: var(--ev-r-xl);
    padding: 22px 0 16px 18px;
    display: flex;
    flex-direction: column;
    color: var(--ev-ink);
    box-shadow: var(--ev-shadow);
    transition: width .35s var(--ev-ease);
    overflow: hidden;
}

.ev-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px 0 8px;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.ev-brand-mark {
    width: 42px; height: 42px;
    border-radius: 14px;
    background: var(--ev-ink);
    color: var(--ev-aqua);
    display: grid; place-items: center;
    font-weight: 800; font-size: 18px;
    letter-spacing: -.5px;
    box-shadow: 0 8px 20px -6px rgba(11,18,21,.5);
}
.ev-brand-name { font-weight: 800; font-size: 21px; letter-spacing: -.6px; line-height: 1; }
.ev-brand-name span { font-weight: 500; opacity: .65; }
.ev-brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 4px; }

.ev-nav-label {
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    opacity: .55; padding: 14px 18px 8px 10px;
}

.ev-nav { list-style: none; margin: 0; padding: 0; }
.ev-nav a {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 9px 14px;
    margin: 1px 0;
    font-weight: 600; font-size: 14px;
    border-radius: 14px 0 0 14px;
    white-space: nowrap;
    color: var(--ev-ink);
    opacity: .78;
    transition: background .25s var(--ev-ease), opacity .2s, padding .25s var(--ev-ease);
}
.ev-nav a i { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.ev-nav a:hover { opacity: 1; background: rgba(255,255,255,.35); }

/* Pestaña activa "recortada" que se funde con el panel (como la referencia Vitality) */
.ev-nav a.active {
    opacity: 1;
    background: var(--ev-bg);
    color: var(--ev-ink);
}
.ev-nav a.active::before,
.ev-nav a.active::after {
    content: "";
    position: absolute; right: 0;
    width: 20px; height: 20px;
    background: transparent;
    pointer-events: none;
}
.ev-nav a.active::before { top: -20px; border-bottom-right-radius: 16px; box-shadow: 6px 6px 0 6px var(--ev-bg); }
.ev-nav a.active::after  { bottom: -20px; border-top-right-radius: 16px; box-shadow: 6px -6px 0 6px var(--ev-bg); }

.ev-nav .ev-pill {
    margin-left: auto; margin-right: 8px;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 99px;
    background: var(--ev-ink); color: var(--ev-aqua);
}

.ev-sidebar-foot { flex-shrink: 0; padding: 12px 18px 0 0; }
.ev-promo {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--ev-r-lg);
    padding: 16px;
    margin-bottom: 14px;
    font-size: 13px;
}
.ev-promo b { display: block; font-size: 14px; margin-bottom: 4px; }
.ev-logout {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer;
    background: var(--ev-ink); color: #fff;
    font: 600 14px var(--ev-font);
    padding: 12px; border-radius: 14px;
    transition: transform .2s var(--ev-ease), box-shadow .2s;
}
.ev-logout:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(11,18,21,.7); }

/* ---------- Main ---------- */
.ev-main {
    flex: 1;
    min-width: 0;
    background: var(--ev-surface);
    border-radius: var(--ev-r-xl);
    box-shadow: var(--ev-shadow);
    padding: 26px 32px 40px;
}

.ev-topbar {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px;
}
.ev-tabs { display: flex; gap: 28px; }
.ev-tabs a {
    font-weight: 600; font-size: 14.5px; color: var(--ev-muted);
    padding-bottom: 6px; position: relative;
}
.ev-tabs a.active { color: var(--ev-text); }
.ev-tabs a.active::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 24px; height: 3px; border-radius: 3px; background: var(--ev-teal);
}
.ev-search {
    margin-left: auto;
    display: flex; align-items: center; gap: 10px;
    background: var(--ev-surface-2);
    border: 1px solid var(--ev-line);
    border-radius: 14px;
    padding: 10px 14px;
    flex: 0 1 340px;
    min-width: 120px;
    color: var(--ev-muted);
}
.ev-search input { min-width: 0; }
.ev-user-text { white-space: nowrap; }
@media (max-width: 1240px) { .ev-user-text { display: none; } .ev-search kbd { display: none; } }
.ev-search input { border: 0; outline: 0; background: transparent; flex: 1; font: 500 14px var(--ev-font); color: var(--ev-text); }
.ev-search kbd { font: 600 11px var(--ev-font); background: var(--ev-surface); border: 1px solid var(--ev-line); color: var(--ev-muted); border-radius: 6px; padding: 2px 6px; }

.ev-icon-btn {
    position: relative;
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    border: 1px solid var(--ev-line);
    background: var(--ev-surface);
    color: var(--ev-text);
    cursor: pointer;
    transition: background .2s, transform .2s var(--ev-ease);
}
.ev-icon-btn:hover { background: var(--ev-mint); transform: translateY(-1px); }
.ev-icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: #FF7A59; border: 2px solid var(--ev-surface); }

.ev-user { display: flex; align-items: center; gap: 10px; }
.ev-avatar {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--ev-ink); color: var(--ev-aqua);
    display: grid; place-items: center;
    font-weight: 800; font-size: 15px;
}
.ev-user small { display: block; color: var(--ev-muted); font-size: 12px; }
.ev-user b { font-size: 14px; }

/* ---------- Componentes ---------- */
.ev-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-r-lg);
    padding: 22px;
}
.ev-card-soft { background: var(--ev-surface-2); border-color: transparent; }

.ev-section-title { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.ev-section-title h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.ev-section-title a { font-size: 13px; font-weight: 600; color: var(--ev-muted); }
.ev-section-title a:hover { color: var(--ev-deep); }

.ev-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700;
    padding: 5px 10px; border-radius: 99px;
    background: var(--ev-mint); color: var(--ev-ink);
}
.ev-chip.dark { background: var(--ev-ink); color: var(--ev-aqua); }
.ev-chip.ghost { background: var(--ev-surface-2); color: var(--ev-muted); }

/* Hero */
.ev-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--ev-r-xl);
    background: var(--ev-grad);
    color: var(--ev-ink);
    padding: 34px 36px;
    min-height: 230px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
}
.ev-hero h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin: 10px 0 10px; }
.ev-hero p { margin: 0 0 22px; font-weight: 500; opacity: .75; max-width: 46ch; }
.ev-hero-art { position: absolute; right: -10px; bottom: -6px; width: 56%; max-width: 560px; pointer-events: none; }
.ev-hero-content { position: relative; z-index: 1; }

.ev-btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: 0; cursor: pointer;
    font: 700 14px var(--ev-font);
    padding: 13px 20px; border-radius: 14px;
    background: var(--ev-ink); color: #fff;
    transition: transform .2s var(--ev-ease), box-shadow .2s;
}
.ev-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(11,18,21,.6); color: #fff; }
.ev-btn.light { background: rgba(255,255,255,.7); color: var(--ev-ink); backdrop-filter: blur(8px); }
.ev-btn.light:hover { color: var(--ev-ink); }

/* KPIs */
.ev-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.ev-kpi { display: flex; align-items: center; gap: 14px; }
.ev-kpi-icon {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center; font-size: 20px;
    background: var(--ev-mint); color: var(--ev-ink);
}
.ev-kpi:nth-child(2) .ev-kpi-icon { background: var(--ev-aqua); }
.ev-kpi:nth-child(3) .ev-kpi-icon { background: var(--ev-ink); color: var(--ev-aqua); }
.ev-kpi:nth-child(4) .ev-kpi-icon { background: var(--ev-surface-2); border: 1px solid var(--ev-line); }
.ev-kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.ev-kpi-label { font-size: 12.5px; color: var(--ev-muted); font-weight: 600; margin-top: 4px; }

/* Módulos */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ev-module {
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    padding: 20px;
    border-radius: var(--ev-r-lg);
    background: var(--ev-surface);
    border: 1px solid var(--ev-line);
    transition: transform .3s var(--ev-ease), box-shadow .3s var(--ev-ease), border-color .3s;
    overflow: hidden;
}
.ev-module::after {
    content: ""; position: absolute; inset: auto -40% -60% auto;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(116,242,230,.45), transparent 70%);
    opacity: 0; transition: opacity .35s;
}
.ev-module:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow); border-color: var(--ev-aqua); }
.ev-module:hover::after { opacity: 1; }
.ev-module-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center; font-size: 22px;
    background: var(--ev-grad); color: var(--ev-ink);
}
.ev-module h3 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.ev-module p { font-size: 13px; color: var(--ev-muted); margin: 0; line-height: 1.5; }
.ev-module-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ev-module-go {
    width: 34px; height: 34px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--ev-surface-2); color: var(--ev-text);
    transition: background .2s, transform .3s var(--ev-ease);
}
.ev-module:hover .ev-module-go { background: var(--ev-ink); color: var(--ev-aqua); transform: rotate(-45deg); }

/* Layout Home: contenido + rail derecho */
.ev-home { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
.ev-rail { display: flex; flex-direction: column; gap: 16px; }

/* Anillo de progreso */
.ev-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 10px; }
.ev-ring svg { transform: rotate(-90deg); }
.ev-ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ev-ring-label b { font-size: 30px; font-weight: 800; letter-spacing: -1px; display: block; line-height: 1; }
.ev-ring-label small { color: var(--ev-muted); font-size: 12px; font-weight: 600; }

/* Timeline */
.ev-timeline { list-style: none; margin: 0; padding: 0; }
.ev-timeline li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.ev-timeline li:not(:last-child)::before {
    content: ""; position: absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--ev-line);
}
.ev-step {
    width: 28px; height: 28px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 13px;
    background: var(--ev-surface-2); color: var(--ev-muted); border: 1px solid var(--ev-line);
}
.ev-step.done { background: var(--ev-ink); color: var(--ev-aqua); border-color: var(--ev-ink); }
.ev-step.now { background: var(--ev-aqua); color: var(--ev-ink); border-color: var(--ev-aqua); }
.ev-timeline b { font-size: 13.5px; display: block; }
.ev-timeline small { font-size: 12px; color: var(--ev-muted); }

/* Animación de entrada */
.ev-rise { animation: evRise .6s var(--ev-ease) both; }
.ev-rise.d1 { animation-delay: .06s; } .ev-rise.d2 { animation-delay: .12s; }
.ev-rise.d3 { animation-delay: .18s; } .ev-rise.d4 { animation-delay: .24s; }
@keyframes evRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev-rise { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .ev-home { grid-template-columns: 1fr; }
    .ev-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
}
@media (max-width: 1100px) {
    .ev-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ev-hero { grid-template-columns: 1fr; }
    .ev-hero-art { opacity: .35; width: 80%; }
}
@media (max-width: 900px) {
    .ev-shell { padding: 12px; gap: 12px; }
    .ev-sidebar {
        position: fixed; z-index: 50; top: 12px; left: 12px; height: calc(100vh - 24px);
        transform: translateX(-120%); transition: transform .35s var(--ev-ease);
    }
    body.ev-menu-open .ev-sidebar { transform: none; }
    .ev-main { padding: 20px 16px 32px; }
    .ev-tabs { display: none; }
    .ev-search { width: auto; flex: 1; }
    .ev-user-text { display: none; }
}
@media (min-width: 901px) { .ev-menu-btn { display: none; } }

/* ---------- Barra superior: campana + menú de usuario ---------- */
.ev-pop-wrap { position: relative; }
button.ev-user { border: 1px solid transparent; background: transparent; padding: 4px 10px 4px 4px; border-radius: 18px; cursor: pointer; font: inherit; color: inherit; text-align: left; transition: background .2s, border-color .2s; }
button.ev-user:hover, button.ev-user[aria-expanded="true"] { background: var(--ev-surface); border-color: var(--ev-line); }
.ev-user-chev { font-size: 12px; color: var(--ev-muted); transition: transform .25s var(--ev-ease); }
button.ev-user[aria-expanded="true"] .ev-user-chev { transform: rotate(180deg); }
.ev-avatar { overflow: hidden; flex-shrink: 0; }
.ev-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-avatar.xl { width: 56px; height: 56px; border-radius: 18px; font-size: 19px; }
.ev-badge { position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #FF5A36; color: #fff;
            font: 800 10.5px/19px var(--ev-font); text-align: center; border: 2px solid var(--ev-surface); animation: evBadge .4s var(--ev-ease); }
@keyframes evBadge { from { transform: scale(.3); } to { transform: none; } }
#evBell.sonando i { display: inline-block; animation: evRing .9s ease; }
@keyframes evRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

.ev-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; border-radius: 22px; background: var(--ev-surface); border: 1px solid var(--ev-line);
          box-shadow: var(--ev-shadow-lg); animation: evPop .22s var(--ev-ease); transform-origin: top right; }
@keyframes evPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.ev-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.ev-pop-h b { font-size: 16px; font-weight: 800; }
.ev-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ev-surface-2); }
.ev-seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; font: 700 12px var(--ev-font); color: var(--ev-muted); cursor: pointer; }
.ev-seg button.on { background: var(--ev-ink); color: var(--ev-aqua); }
.ev-pop-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid var(--ev-line); }
.ev-pop-f button, .ev-pop-f a { border: 0; background: transparent; font: 700 12.5px var(--ev-font); color: var(--ev-deep); cursor: pointer; text-decoration: none; padding: 6px 4px; }
.ev-pop-f button:disabled { opacity: .45; cursor: default; }

.ev-notif { width: 400px; max-width: calc(100vw - 24px); }
.ev-notif-lista { max-height: 430px; overflow-y: auto; padding: 0 8px 6px; }
.ev-notif-dia { font: 800 10.5px var(--ev-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ev-muted); padding: 10px 10px 4px; }
.ev-notif-it { position: relative; display: flex; gap: 12px; padding: 10px; border-radius: 16px; color: var(--ev-text); text-decoration: none; transition: background .2s; }
.ev-notif-it:hover { background: var(--ev-surface-2); }
.ev-notif-it .ni { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 17px; background: var(--ev-surface-2); border: 1px solid var(--ev-line); }
.ev-notif-it.carga .ni { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.ev-notif-it.error .ni { background: #FEE4E2; color: #B42318; border-color: #FECDCA; }
.ev-notif-it.proceso .ni { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.ev-notif-it.cambio .ni { background: #E0F2FE; color: #075985; border-color: #BAE6FD; }
.ev-notif-it.alerta .ni { background: var(--ev-ink); color: var(--ev-aqua); border-color: var(--ev-ink); }
.ev-notif-it b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ev-notif-it span.tx { display: block; color: var(--ev-muted); font-size: 12.5px; font-weight: 500; margin-top: 2px; line-height: 1.35; }
.ev-notif-it small { color: var(--ev-muted); font-size: 11.5px; font-weight: 600; }
.ev-notif-it.nueva { background: color-mix(in srgb, var(--ev-mint) 28%, transparent); }
.ev-notif-it.nueva::after { content: ""; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-teal); }
.ev-notif-vacio { padding: 34px 20px; text-align: center; color: var(--ev-muted); font-weight: 600; font-size: 13.5px; }
.ev-notif-vacio i { display: block; font-size: 34px; margin-bottom: 8px; color: var(--ev-teal); }
.ev-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ev-line); border-top-color: var(--ev-teal); animation: evGira .8s linear infinite; vertical-align: -2px; }
@keyframes evGira { to { transform: rotate(360deg); } }

.ev-menu-user { width: 280px; padding: 8px; }
.ev-mu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--ev-line); margin-bottom: 6px; }
.ev-mu-head b { display: block; font-size: 15px; font-weight: 800; }
.ev-mu-head small { color: var(--ev-muted); font-size: 12px; font-weight: 600; }
.ev-menu-user a, .ev-menu-user button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent;
                                        font: 700 13.5px var(--ev-font); color: var(--ev-text); text-decoration: none; cursor: pointer; text-align: left; }
.ev-menu-user a:hover, .ev-menu-user button:hover { background: var(--ev-surface-2); }
.ev-menu-user i { font-size: 16px; color: var(--ev-deep); width: 18px; }
.ev-menu-user form { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--ev-line); }
.ev-menu-user .salir, .ev-menu-user .salir i { color: #B42318; }
@media (prefers-reduced-motion: reduce) { .ev-pop, .ev-badge, #evBell.sonando i { animation: none !important; } }

/* ---------- Menú lateral: zona desplazable + grupos plegables ---------- */
.ev-sidebar-scroll {
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 0 10px;
    scrollbar-width: thin; scrollbar-color: rgba(11,18,21,.25) transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}
.ev-sidebar-scroll::-webkit-scrollbar { width: 6px; }
.ev-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(11,18,21,.22); border-radius: 99px; }
.ev-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
button.ev-nav-label {
    display: flex; align-items: center; justify-content: space-between; width: calc(100% - 18px);
    border: 0; background: transparent; cursor: pointer; color: var(--ev-ink);
    font: 700 11px var(--ev-font); letter-spacing: .14em; text-transform: uppercase;
    padding: 12px 8px 6px 10px; margin-top: 4px; border-radius: 10px; opacity: .6; transition: opacity .2s;
}
button.ev-nav-label:hover { opacity: 1; }
button.ev-nav-label i { font-size: 11px; transition: transform .3s var(--ev-ease); }
.ev-grupo.cerrado button.ev-nav-label i { transform: rotate(-90deg); }
.ev-grupo .ev-nav { max-height: 640px; transition: max-height .3s var(--ev-ease); }
.ev-grupo.animando .ev-nav, .ev-grupo.cerrado .ev-nav { overflow: hidden; }
.ev-grupo.cerrado .ev-nav { max-height: 0; }
.ev-nav a.pronto { opacity: .5; cursor: default; }
.ev-nav a.pronto:hover { background: transparent; }
.ev-sidebar-foot .ev-logout { padding: 10px; font-size: 13.5px; }
@media (max-height: 720px) {
    .ev-brand { margin-bottom: 6px; }
    .ev-nav a { padding: 7px 14px; }
    button.ev-nav-label { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ev-grupo .ev-nav, button.ev-nav-label i { transition: none; } }

/* Foco visible al moverse con el teclado (botones, enlaces, tarjetas) — accesibilidad */
:where(a, button, [tabindex], summary, label.ev-btn):focus-visible { outline: 3px solid var(--ev-teal); outline-offset: 2px; border-radius: 10px; }

/* Opciones del menú lateral que solo hacen falta en el móvil (arriba se ocultan las pestañas) */
.solo-movil { display: none; }
@media (max-width: 900px) { .solo-movil { display: block; } }

/* Buscador global (resultados bajo la barra de arriba) */
.ev-search { position: relative; }
.ev-busq { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; max-height: 70vh; overflow-y: auto; z-index: 300;
           background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: 18px; box-shadow: var(--ev-shadow-lg); padding: 6px; }
.ev-busq .g { font: 800 11px var(--ev-font); letter-spacing: .06em; text-transform: uppercase; color: var(--ev-muted); padding: 10px 10px 4px; }
.ev-busq a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--ev-text); text-decoration: none; }
.ev-busq a i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ev-mint); color: var(--ev-deep); flex-shrink: 0; }
.ev-busq a span { display: grid; min-width: 0; }
.ev-busq a b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-busq a small { color: var(--ev-muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-busq a:hover, .ev-busq a.act { background: var(--ev-surface-2); }
.ev-busq a.act { box-shadow: inset 3px 0 0 var(--ev-teal); }
.ev-busq .vacio { padding: 14px; color: var(--ev-muted); font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.ev-busq-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ev-line); border-top-color: var(--ev-teal); animation: evGiro .7s linear infinite; }
@keyframes evGiro { to { transform: rotate(360deg); } }
