/* ==========================================================================
   VICVER REAL ESTATE — DASHBOARD DE AGENTES
   Versión: 2.0.12
   Premium SaaS / Responsive / Accesible
   ========================================================================== */

/* --------------------------------------------------------------------------
   VARIABLES
   -------------------------------------------------------------------------- */

.vr-dashboard {
    --vr-sidebar: #111315;
    --vr-sidebar-2: #181b1e;
    --vr-sidebar-border: rgba(255,255,255,.08);
    --vr-sidebar-text: #d7d9dc;
    --vr-sidebar-muted: #8d9298;

    --vr-bg: #f5f5f3;
    --vr-surface: #ffffff;
    --vr-surface-soft: #fafaf8;
    --vr-border: #e7e7e3;

    --vr-text: #171918;
    --vr-text-soft: #636865;
    --vr-text-muted: #929793;

    --vr-gold: #b69a62;
    --vr-gold-dark: #927847;
    --vr-gold-soft: #f2eadb;

    --vr-success: #3e8062;
    --vr-success-soft: #e8f2ec;

    --vr-danger: #b85f5f;
    --vr-shadow: 0 12px 35px rgba(18, 20, 20, .055);
    --vr-shadow-hover: 0 18px 45px rgba(18, 20, 20, .09);

    --vr-radius: 18px;
    --vr-radius-sm: 12px;

    --vr-sidebar-width: 258px;
    --vr-topbar-height: 76px;

    box-sizing: border-box;
}

.vr-dashboard *,
.vr-dashboard *::before,
.vr-dashboard *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   RESET LOCAL
   -------------------------------------------------------------------------- */

.vr-dashboard,
.vr-dashboard h1,
.vr-dashboard h2,
.vr-dashboard h3,
.vr-dashboard p,
.vr-dashboard ul,
.vr-dashboard ol {
    margin: 0;
    padding: 0;
}

.vr-dashboard a {
    color: inherit;
    text-decoration: none;
}

.vr-dashboard button,
.vr-dashboard input,
.vr-dashboard select,
.vr-dashboard textarea {
    font: inherit;
}

.vr-dashboard button {
    border: 0;
}

/* --------------------------------------------------------------------------
   CONTENEDOR PRINCIPAL
   -------------------------------------------------------------------------- */

.vr-dashboard {
    width: 100%;
    min-height: 100vh;
    display: flex;
    position: relative;
    background: var(--vr-bg);
    color: var(--vr-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */

.vr-dashboard-sidebar {
    width: var(--vr-sidebar-width);
    min-width: var(--vr-sidebar-width);
    min-height: 100vh;
    background: var(--vr-sidebar);
    color: var(--vr-sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 25px 16px 18px;
}

.vr-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 10px 25px;
    border-bottom: 1px solid var(--vr-sidebar-border);
}

.vr-dashboard-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(182,154,98,.55);
    color: var(--vr-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1;
}

.vr-dashboard-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: .18em;
    font-weight: 700;
}

.vr-dashboard-brand small {
    display: block;
    margin-top: 4px;
    color: var(--vr-sidebar-muted);
    font-size: 8px;
    line-height: 1;
    letter-spacing: .2em;
    font-weight: 600;
}

.vr-dashboard-label {
    margin: 27px 11px 10px;
    color: #70767c;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .18em;
}

.vr-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vr-dashboard-nav-item {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--vr-sidebar-text);
    font-size: 13px;
    font-weight: 500;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.vr-dashboard-nav-item:hover {
    background: rgba(255,255,255,.055);
    color: #fff;
}

.vr-dashboard-nav-item.active {
    background: rgba(182,154,98,.13);
    color: #fff;
}

.vr-dashboard-nav-item.active .vr-nav-icon {
    color: var(--vr-gold);
}

.vr-nav-icon {
    width: 23px;
    min-width: 23px;
    text-align: center;
    color: #8e9499;
    font-size: 17px;
    line-height: 1;
}

.vr-dashboard-sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--vr-sidebar-border);
}

/* --------------------------------------------------------------------------
   MAIN
   -------------------------------------------------------------------------- */

.vr-dashboard-main {
    min-width: 0;
    flex: 1 1 auto;
    background: var(--vr-bg);
}

/* --------------------------------------------------------------------------
   TOPBAR
   -------------------------------------------------------------------------- */

.vr-dashboard-topbar {
    min-height: var(--vr-topbar-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 34px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--vr-border);
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.vr-dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--vr-text-muted);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
}

.vr-dashboard-breadcrumb span,
.vr-dashboard-breadcrumb strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-dashboard-breadcrumb b {
    color: #c4c6c3;
    font-weight: 400;
}

.vr-dashboard-breadcrumb strong {
    color: var(--vr-text);
}

.vr-dashboard-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.vr-dashboard-icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vr-border);
    border-radius: 50%;
    background: #fff;
    color: var(--vr-text-soft);
    cursor: pointer;
    font-size: 17px;
    transition:
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.vr-dashboard-icon-button:hover {
    color: var(--vr-gold-dark);
    border-color: rgba(182,154,98,.45);
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.vr-dashboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vr-dashboard-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vr-sidebar);
    color: var(--vr-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.vr-dashboard-user strong {
    display: block;
    color: var(--vr-text);
    font-size: 12px;
    line-height: 1.25;
}

.vr-dashboard-user small {
    display: block;
    margin-top: 2px;
    color: var(--vr-text-muted);
    font-size: 9px;
    line-height: 1.2;
}

.vr-dashboard-mobile-toggle,
.vr-dashboard-mobile-brand {
    display: none;
}

/* --------------------------------------------------------------------------
   CONTENIDO
   -------------------------------------------------------------------------- */

.vr-dashboard-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 34px;
}

.vr-dashboard-section {
    display: none;
    animation: vrDashboardFadeIn .25s ease both;
}

.vr-dashboard-section.active {
    display: block;
}

@keyframes vrDashboardFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   WELCOME
   -------------------------------------------------------------------------- */

.vr-dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.vr-dashboard-eyebrow,
.vr-panel-kicker {
    display: block;
    color: var(--vr-gold-dark);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vr-dashboard-welcome h1 {
    margin-top: 8px;
    color: var(--vr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -.025em;
}

.vr-dashboard-welcome p {
    max-width: 650px;
    margin-top: 10px;
    color: var(--vr-text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.vr-primary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--vr-sidebar);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.vr-primary-button:hover {
    background: #262a2c;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(17,19,21,.13);
}

/* --------------------------------------------------------------------------
   KPI
   -------------------------------------------------------------------------- */

.vr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.vr-kpi-card {
    min-width: 0;
    min-height: 166px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    background: var(--vr-surface);
    border: 1px solid var(--vr-border);
    border-radius: var(--vr-radius);
    box-shadow: var(--vr-shadow);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.vr-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vr-shadow-hover);
    border-color: #deded9;
}

.vr-kpi-card::after {
    content: "";
    width: 90px;
    height: 90px;
    position: absolute;
    right: -42px;
    top: -42px;
    border-radius: 50%;
    background: rgba(182,154,98,.045);
}

.vr-kpi-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border: 1px solid #e5e4de;
    border-radius: 10px;
    color: var(--vr-gold-dark);
    font-size: 17px;
}

.vr-kpi-value {
    color: var(--vr-text);
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1;
    font-weight: 650;
    letter-spacing: -.035em;
}

.vr-kpi-label {
    margin-top: 8px;
    color: var(--vr-text-soft);
    font-size: 11px;
    font-weight: 500;
}

.vr-kpi-trend {
    display: inline-flex;
    margin-top: 11px;
    padding: 4px 7px;
    border-radius: 5px;
    background: var(--vr-success-soft);
    color: var(--vr-success);
    font-size: 9px;
    font-weight: 700;
}

.vr-kpi-gold {
    background: #1a1c1d;
    border-color: #1a1c1d;
}

.vr-kpi-gold .vr-kpi-icon {
    border-color: rgba(182,154,98,.35);
    color: var(--vr-gold);
}

.vr-kpi-gold .vr-kpi-value {
    color: #fff;
}

.vr-kpi-gold .vr-kpi-label {
    color: #a7abad;
}

.vr-kpi-gold .vr-kpi-trend {
    background: rgba(182,154,98,.13);
    color: #d2bb8c;
}

/* --------------------------------------------------------------------------
   COLUMNAS / PANELES
   -------------------------------------------------------------------------- */

.vr-dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
    margin-top: 20px;
}

.vr-dashboard-columns-bottom {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.vr-dashboard-panel {
    min-width: 0;
    padding: 24px;
    background: var(--vr-surface);
    border: 1px solid var(--vr-border);
    border-radius: var(--vr-radius);
    box-shadow: var(--vr-shadow);
}

.vr-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.vr-panel-heading h2,
.vr-quick-panel h2 {
    margin-top: 6px;
    color: var(--vr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -.02em;
}

.vr-panel-heading > a {
    flex: 0 0 auto;
    padding-top: 3px;
    color: var(--vr-gold-dark);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.vr-panel-heading > a:hover {
    color: var(--vr-text);
}

/* --------------------------------------------------------------------------
   PIPELINE
   -------------------------------------------------------------------------- */

.vr-pipeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.vr-pipeline-stage {
    min-width: 0;
}

.vr-pipeline-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.vr-pipeline-stage-top span {
    min-width: 0;
    color: var(--vr-text-soft);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-pipeline-stage-top strong {
    color: var(--vr-text);
    font-size: 14px;
    font-weight: 700;
}

.vr-pipeline-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #ecece8;
}

.vr-pipeline-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--vr-gold);
}

.vr-pipeline-stage small {
    display: block;
    margin-top: 7px;
    color: var(--vr-success);
    font-size: 9px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   TAREAS
   -------------------------------------------------------------------------- */

.vr-task-list {
    display: flex;
    flex-direction: column;
}

.vr-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeeb;
}

.vr-task:first-child {
    padding-top: 0;
}

.vr-task:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vr-task-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    border: 1.5px solid #c9cbc7;
    border-radius: 50%;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.vr-task-check:hover {
    border-color: var(--vr-gold);
}

.vr-task-check.is-complete,
.vr-task.is-complete .vr-task-check {
    border-color: var(--vr-success);
    background: var(--vr-success);
}

.vr-task-check.is-complete::after,
.vr-task.is-complete .vr-task-check::after {
    content: "";
    width: 7px;
    height: 4px;
    position: absolute;
    left: 4px;
    top: 5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
}

.vr-task > div {
    min-width: 0;
}

.vr-task strong {
    display: block;
    color: var(--vr-text);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 650;
}

.vr-task small {
    display: block;
    margin-top: 3px;
    color: var(--vr-text-muted);
    font-size: 9px;
    line-height: 1.4;
}

.vr-task.is-complete strong {
    color: var(--vr-text-muted);
    text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   PROPIEDADES MINI
   -------------------------------------------------------------------------- */

.vr-property-mini-list {
    display: flex;
    flex-direction: column;
}

.vr-property-mini {
    min-width: 0;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeeb;
}

.vr-property-mini:first-child {
    padding-top: 0;
}

.vr-property-mini:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vr-property-mini-image {
    width: 66px;
    height: 52px;
    overflow: hidden;
    border-radius: 9px;
    background-color: #e6e5df;
    background-size: cover;
    background-position: center;
}

.vr-mini-image-one {
    background-image:
        linear-gradient(135deg, rgba(40,40,38,.15), rgba(255,255,255,.05)),
        url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=300&q=75");
}

.vr-mini-image-two {
    background-image:
        linear-gradient(135deg, rgba(40,40,38,.15), rgba(255,255,255,.05)),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=300&q=75");
}

.vr-mini-image-three {
    background-image:
        linear-gradient(135deg, rgba(40,40,38,.15), rgba(255,255,255,.05)),
        url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=300&q=75");
}

.vr-property-mini > div:nth-child(2) {
    min-width: 0;
}

.vr-property-mini strong {
    display: block;
    color: var(--vr-text);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-property-mini span {
    display: block;
    margin-top: 4px;
    color: var(--vr-text-muted);
    font-size: 9px;
}

.vr-property-mini > b {
    color: var(--vr-text-soft);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   ACCESOS RÁPIDOS
   -------------------------------------------------------------------------- */

.vr-quick-panel {
    background: #1a1c1d;
    border-color: #1a1c1d;
    color: #fff;
}

.vr-quick-panel .vr-panel-kicker {
    color: var(--vr-gold);
}

.vr-quick-panel h2 {
    color: #fff;
}

.vr-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
}

.vr-quick-grid a {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #e3e4e4;
    font-size: 10px;
    font-weight: 600;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.vr-quick-grid a:hover {
    background: rgba(182,154,98,.1);
    border-color: rgba(182,154,98,.3);
    color: #fff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   SECCIONES MODULARES
   -------------------------------------------------------------------------- */

.vr-dashboard-section:not(#vr-inicio) {
    min-height: 420px;
}

.vr-dashboard-section:not(#vr-inicio) {
    padding-bottom: 30px;
}

.vr-dashboard-section:not(#vr-inicio)::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 250px;
    border-radius: var(--vr-radius);
    background:
        radial-gradient(circle at 85% 15%, rgba(182,154,98,.10), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f8f8f5 100%);
    border: 1px solid var(--vr-border);
    box-shadow: var(--vr-shadow);
}

/* --------------------------------------------------------------------------
   LOGIN
   -------------------------------------------------------------------------- */

.vr-login-required {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 80% 20%, rgba(182,154,98,.08), transparent 30%),
        var(--vr-bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.vr-login-card {
    width: min(100%, 460px);
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--vr-border);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(17,19,21,.09);
}

.vr-login-card .vr-dashboard-brand-mark {
    margin: 0 auto 18px;
    background: var(--vr-sidebar);
}

.vr-login-card h1 {
    color: var(--vr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;
}

.vr-login-card p {
    margin: 11px auto 25px;
    max-width: 340px;
    color: var(--vr-text-soft);
    font-size: 12px;
    line-height: 1.7;
}

.vr-login-card a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 9px;
    background: var(--vr-sidebar);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   FOCUS / ACCESIBILIDAD
   -------------------------------------------------------------------------- */

.vr-dashboard a:focus-visible,
.vr-dashboard button:focus-visible,
.vr-dashboard [tabindex]:focus-visible {
    outline: 2px solid var(--vr-gold);
    outline-offset: 3px;
}

.vr-dashboard-mobile-toggle:focus-visible {
    outline-color: var(--vr-gold);
}

/* --------------------------------------------------------------------------
   TABLET GRANDE
   -------------------------------------------------------------------------- */

@media (max-width: 1250px) {

    .vr-dashboard-content {
        padding: 28px;
    }

    .vr-dashboard-topbar {
        padding: 0 28px;
    }

    .vr-dashboard-welcome h1 {
        font-size: 35px;
    }

    .vr-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vr-dashboard-columns,
    .vr-dashboard-columns-bottom {
        grid-template-columns: 1fr;
    }

}

/* --------------------------------------------------------------------------
   TABLET
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {

    .vr-dashboard {
        --vr-sidebar-width: 230px;
    }

    .vr-dashboard-sidebar {
        width: var(--vr-sidebar-width);
        min-width: var(--vr-sidebar-width);
    }

    .vr-dashboard-content {
        padding: 24px;
    }

    .vr-dashboard-topbar {
        padding: 0 24px;
    }

    .vr-dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .vr-primary-button {
        width: auto;
    }

    .vr-pipeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 20px;
    }

}

/* --------------------------------------------------------------------------
   MÓVIL
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {

    .vr-dashboard {
        display: block;
        min-height: 100svh;
    }

    .vr-dashboard-sidebar {
        width: min(82vw, 300px);
        min-width: 0;
        height: 100svh;
        min-height: 100svh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,.2);
        z-index: 300;
    }

    .vr-dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .vr-dashboard.is-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 250;
        background: rgba(0,0,0,.45);
    }

    .vr-dashboard-main {
        width: 100%;
    }

    .vr-dashboard-topbar {
        min-height: 64px;
        height: 64px;
        padding: 0 16px;
        gap: 12px;
        position: sticky;
    }

    .vr-dashboard-mobile-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 0 0 40px;
        border-radius: 9px;
        background: var(--vr-sidebar);
        cursor: pointer;
    }

    .vr-dashboard-mobile-toggle span {
        width: 17px;
        height: 1.5px;
        display: block;
        background: #fff;
        transition: transform .2s ease;
    }

    .vr-dashboard-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .vr-dashboard-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .vr-dashboard-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .vr-dashboard-mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .vr-dashboard-mobile-brand .vr-dashboard-brand-mark {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 16px;
    }

    .vr-dashboard-mobile-brand strong {
        color: var(--vr-text);
        font-size: 11px;
        letter-spacing: .16em;
    }

    .vr-dashboard-breadcrumb {
        display: none;
    }

    .vr-dashboard-top-actions {
        gap: 9px;
    }

    .vr-dashboard-icon-button {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .vr-dashboard-user > div {
        display: none;
    }

    .vr-dashboard-avatar {
        width: 35px;
        height: 35px;
    }

    .vr-dashboard-content {
        padding: 22px 16px 35px;
    }

    .vr-dashboard-welcome {
        margin-bottom: 23px;
        gap: 17px;
    }

    .vr-dashboard-welcome h1 {
        font-size: 30px;
    }

    .vr-dashboard-welcome p {
        font-size: 12px;
    }

    .vr-primary-button {
        width: 100%;
    }

    .vr-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .vr-kpi-card {
        min-height: 145px;
        padding: 17px;
        border-radius: 14px;
    }

    .vr-kpi-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 13px;
    }

    .vr-kpi-value {
        font-size: 25px;
    }

    .vr-kpi-label {
        font-size: 10px;
    }

    .vr-dashboard-columns,
    .vr-dashboard-columns-bottom {
        gap: 13px;
        margin-top: 13px;
    }

    .vr-dashboard-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .vr-panel-heading {
        margin-bottom: 19px;
    }

    .vr-panel-heading h2,
    .vr-quick-panel h2 {
        font-size: 20px;
    }

    .vr-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .vr-property-mini {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .vr-property-mini-image {
        width: 58px;
        height: 48px;
    }

    .vr-property-mini > b {
        display: none;
    }

    .vr-quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vr-login-card {
        padding: 32px 22px;
    }
}

/* --------------------------------------------------------------------------
   MÓVIL PEQUEÑO
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {

    .vr-dashboard-content {
        padding-left: 13px;
        padding-right: 13px;
    }

    .vr-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vr-kpi-card {
        min-height: 136px;
        padding: 15px;
    }

    .vr-kpi-value {
        font-size: 22px;
    }

    .vr-kpi-label {
        line-height: 1.35;
    }

    .vr-kpi-trend {
        font-size: 8px;
    }

    .vr-dashboard-panel {
        padding: 16px;
    }

    .vr-pipeline {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vr-pipeline-stage {
        display: grid;
        grid-template-columns: minmax(85px, .45fr) 1fr auto;
        align-items: center;
        gap: 9px;
    }

    .vr-pipeline-stage-top {
        margin: 0;
    }

    .vr-pipeline-bar {
        height: 5px;
    }

    .vr-pipeline-stage small {
        margin: 0;
        text-align: right;
    }

    .vr-quick-grid {
        grid-template-columns: 1fr;
    }

    .vr-quick-grid a {
        min-height: 48px;
    }

    .vr-property-mini {
        gap: 10px;
    }

    .vr-property-mini-image {
        width: 54px;
        height: 45px;
    }

    .vr-property-mini strong {
        font-size: 9px;
    }

    .vr-property-mini span {
        font-size: 8px;
    }

    .vr-login-card {
        padding: 28px 18px;
    }
}

/* --------------------------------------------------------------------------
   MUY PEQUEÑO
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {

    .vr-dashboard-mobile-brand strong {
        font-size: 10px;
    }

    .vr-dashboard-top-actions {
        gap: 6px;
    }

    .vr-dashboard-icon-button {
        display: none;
    }

    .vr-dashboard-welcome h1 {
        font-size: 27px;
    }

    .vr-kpi-grid {
        gap: 8px;
    }

    .vr-kpi-card {
        padding: 13px;
    }

    .vr-kpi-value {
        font-size: 20px;
    }

    .vr-kpi-label {
        font-size: 9px;
    }
}

/* --------------------------------------------------------------------------
   REDUCCIÓN DE MOVIMIENTO
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .vr-dashboard *,
    .vr-dashboard *::before,
    .vr-dashboard *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --------------------------------------------------------------------------
   ALTO CONTRASTE / PRINT
   -------------------------------------------------------------------------- */

@media print {

    .vr-dashboard-sidebar,
    .vr-dashboard-topbar,
    .vr-dashboard-mobile-toggle {
        display: none !important;
    }

    .vr-dashboard-main {
        width: 100%;
    }

    .vr-dashboard-content {
        padding: 0;
    }

    .vr-dashboard {
        background: #fff;
    }

    .vr-dashboard-panel,
    .vr-kpi-card {
        box-shadow: none;
    }
}