:root {
    --vm-black: #050607;
    --vm-black-2: #0b0f14;
    --vm-black-3: #111827;
    --vm-teal: #08aaa2;
    --vm-teal-2: #0ec9be;
    --vm-teal-soft: #e5fbf9;
    --vm-border: #e5e7eb;
    --vm-border-dark: rgba(255, 255, 255, .10);
    --vm-text: #111827;
    --vm-muted: #667085;
    --vm-surface: #ffffff;
    --vm-page: #f3f6f8;
    --vm-danger: #dc2626;
    --vm-warning: #f59e0b;
    --vm-success: #059669;
}

html, body { min-height: 100%; }
body { background: var(--vm-page); color: var(--vm-text); }
a { color: var(--vm-teal); }

.vm-shell { display: flex; min-height: 100vh; }
.vm-sidebar {
    width: 292px;
    background: radial-gradient(circle at top left, rgba(8,170,162,.22), transparent 35%), linear-gradient(180deg, #050607 0%, #0b0f14 55%, #050607 100%);
    color: #fff;
    padding: 20px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 12px 0 35px rgba(0,0,0,.22);
}
.vm-brand {
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    text-decoration: none;
}
.vm-brand img { width: 100%; display: block; }
.vm-sidebar-section {
    color: rgba(255,255,255,.48);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .72rem;
    font-weight: 800;
    margin: 20px 10px 8px;
}
.vm-nav { display: grid; gap: 6px; }
.vm-nav a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    transition: all .15s ease;
}
.vm-nav a:hover,
.vm-nav a.active {
    background: rgba(8, 170, 162, .16);
    color: #fff;
    border-color: rgba(8, 170, 162, .38);
}
.vm-nav a.active::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vm-teal-2);
}
.vm-main { flex: 1; min-width: 0; }
.vm-topbar {
    min-height: 88px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--vm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}
.vm-topbar h1 { margin: 0; font-size: 1.55rem; font-weight: 850; color: var(--vm-black); }
.vm-page-kicker { font-size: .75rem; color: var(--vm-muted); text-transform: uppercase; letter-spacing: .10em; font-weight: 800; }
.vm-content { padding: 28px 32px 42px; }
.vm-userbox { display: flex; align-items: center; gap: 12px; color: #344054; }
.vm-userbox form { margin: 0; }
.vm-user-avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--vm-teal-soft); color: #08756f; font-weight: 900; border: 1px solid #b8efea; }
.vm-user-meta strong, .vm-user-meta span { display: block; line-height: 1.1; }
.vm-user-meta span { color: var(--vm-muted); font-size: .8rem; margin-top: 3px; }
.vm-card { background: #fff; border: 1px solid var(--vm-border); border-radius: 22px; padding: 22px; box-shadow: 0 20px 55px rgba(16, 24, 40, .07); }
.vm-card-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 850; }
.vm-grid { display: grid; gap: 18px; }
.vm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vm-kpi { position: relative; overflow: hidden; }
.vm-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--vm-teal); }
.vm-kpi span, .vm-muted { color: var(--vm-muted); font-size: .88rem; }
.vm-kpi strong { display: block; font-size: 1.75rem; margin-top: 8px; color: var(--vm-black); }
.vm-action-card { display: block; background: #fff; border: 1px solid var(--vm-border); border-radius: 22px; padding: 22px; text-decoration: none; color: var(--vm-text); box-shadow: 0 20px 55px rgba(16, 24, 40, .07); transition: all .15s ease; }
.vm-action-card strong { display: block; font-size: 1.05rem; color: var(--vm-black); }
.vm-action-card span { color: var(--vm-muted); }
.vm-action-card:hover { border-color: var(--vm-teal); transform: translateY(-2px); box-shadow: 0 22px 60px rgba(8,170,162,.14); color: var(--vm-text); }
.vm-action-card .vm-module-state { display: inline-block; margin-top: 14px; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 800; color: #08756f; background: var(--vm-teal-soft); }
.vm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vm-search { display: flex; gap: 10px; flex: 1; max-width: 680px; }
.vm-table { background: #fff; }
.vm-table thead th { background: #f8fafc; color: #475467; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--vm-border); }
.vm-table td { border-color: #eef2f6; vertical-align: middle; }
.vm-form .form-control, .vm-form .form-select { border-radius: 13px; border-color: #d0d5dd; min-height: 44px; }
.vm-form .form-control:focus, .vm-form .form-select:focus { border-color: var(--vm-teal); box-shadow: 0 0 0 .2rem rgba(8,170,162,.12); }
.vm-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vm-preview div { background: #f8fafc; border: 1px solid var(--vm-border); border-radius: 16px; padding: 14px; }
.vm-preview span { display: block; color: var(--vm-muted); font-size: .82rem; }
.vm-preview strong { display: block; margin-top: 4px; color: var(--vm-black); }
.vm-note { background: var(--vm-teal-soft); border: 1px solid #a9eee8; color: #075e59; border-radius: 16px; padding: 14px; }
.vm-badge { display: inline-block; border-radius: 999px; background: var(--vm-teal-soft); color: #08756f; padding: 5px 10px; font-size: .8rem; font-weight: 800; }
.btn-primary { background: var(--vm-teal); border-color: var(--vm-teal); color: #fff; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background: #078f88; border-color: #078f88; color: #fff; }
.btn-outline-dark { border-color: #d0d5dd; color: #344054; }
.btn-outline-dark:hover { background: var(--vm-black); border-color: var(--vm-black); }

/* Login empresarial */
.vm-auth-body {
    min-height: 100vh;
    background: radial-gradient(circle at 16% 20%, rgba(8,170,162,.28), transparent 34%), linear-gradient(135deg, #050607 0%, #0b0f14 48%, #0a1f21 100%);
    color: #fff;
}
.vm-auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
.vm-auth-left { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.vm-auth-logo-box { width: min(520px, 90%); background: #fff; border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.vm-auth-logo-box img { width: 100%; display: block; }
.vm-auth-copy { max-width: 620px; }
.vm-auth-copy h1 { font-size: clamp(2rem, 4vw, 4.5rem); line-height: .95; font-weight: 900; margin: 36px 0 18px; }
.vm-auth-copy p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 520px; }
.vm-auth-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.vm-auth-features span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.78); font-size: .86rem; }
.vm-auth-right { background: rgba(255,255,255,.96); color: var(--vm-text); display: flex; align-items: center; justify-content: center; padding: 34px; box-shadow: -24px 0 70px rgba(0,0,0,.25); }
.vm-auth-card { width: 100%; max-width: 390px; }
.vm-auth-card .vm-auth-mark { width: 80px; height: 80px; border-radius: 24px; background: #fff; border: 1px solid var(--vm-border); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 16px 40px rgba(16,24,40,.10); overflow: hidden; }
.vm-auth-card .vm-auth-mark img { width: 76px; height: 76px; object-fit: contain; }
.vm-auth-card h2 { font-weight: 900; color: var(--vm-black); margin: 0; }
.vm-auth-card p { color: var(--vm-muted); margin: 8px 0 24px; }
.vm-auth-card .form-control { border-radius: 14px; min-height: 48px; border-color: #d0d5dd; }
.vm-auth-card .form-control:focus { border-color: var(--vm-teal); box-shadow: 0 0 0 .2rem rgba(8,170,162,.12); }
.vm-auth-card .btn { border-radius: 14px; min-height: 48px; }
.vm-auth-footer { color: rgba(255,255,255,.48); font-size: .85rem; }

@media (max-width: 1150px) {
    .vm-sidebar { width: 252px; }
    .vm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .vm-shell { display: block; }
    .vm-sidebar { position: relative; width: 100%; height: auto; }
    .vm-grid-4, .vm-grid-3, .vm-grid-2, .vm-preview { grid-template-columns: 1fr; }
    .vm-auth-shell { grid-template-columns: 1fr; }
    .vm-auth-left { display: none; }
    .vm-auth-right { min-height: 100vh; }
}
