/* =========================================================
   IMPORTADORA DE VEHÍCULOS UNCIÓN
   ESTILO GENERAL DE LA PLATAFORMA
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    /* Identidad de marca */
    --primary: #B3122D;
    --primary-bright: #E31B2D;
    --primary-dark: #7F0D20;
    --primary-light: #FCE8EC;

    --secondary: #1D2B8F;
    --secondary-light: #E9ECFA;

    --graphite: #171A21;
    --graphite-soft: #242832;
    --graphite-light: #343946;

    /* Fondos */
    --background: #F4F6F8;
    --card: #FFFFFF;
    --surface-soft: #F8F9FB;

    /* Texto */
    --text: #1F2937;
    --text-secondary: #667085;
    --text-light: #98A2B3;

    /* Bordes */
    --border: #D9DEE7;
    --border-soft: #EAECF0;

    /* Estados */
    --success: #15803D;
    --success-bg: #EAF7EE;

    --danger: #B3122D;
    --danger-bg: #FCE8EC;

    --warning: #B7791F;
    --warning-bg: #FFF4D9;

    /* Sombras */
    --shadow-sm:
        0 2px 8px rgba(17, 24, 39, 0.05);

    --shadow-md:
        0 8px 24px rgba(17, 24, 39, 0.08);

    --shadow-lg:
        0 20px 55px rgba(17, 24, 39, 0.16);
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--background);

    -webkit-font-smoothing: antialiased;
}

.app-body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #F8F9FB 0%,
            var(--background) 100%
        );
}

a {
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(227, 27, 45, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(29, 43, 143, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #11141A 0%,
            #1A1E27 50%,
            #2A1017 100%
        );
}

.login-body::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255, 255, 255, 0.035);

    border-radius: 50%;

    top: -250px;
    right: -130px;
}

.login-body::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(255, 255, 255, 0.025);

    border-radius: 50%;

    bottom: -180px;
    left: -100px;
}

.login-container {
    width: 100%;
    max-width: 1100px;

    padding: 40px;

    display: grid;
    grid-template-columns: 1fr 450px;

    align-items: center;

    gap: 85px;

    position: relative;

    z-index: 2;
}

.login-brand {
    color: white;
}

.login-logo {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--primary-bright),
            var(--primary-dark)
        );

    color: white;

    font-size: 34px;
    font-weight: 800;

    box-shadow:
        0 16px 35px rgba(179, 18, 45, 0.32);
}

.login-brand h1 {
    margin: 0;

    font-size: 40px;
    font-weight: 750;

    letter-spacing: -1px;
}

.login-brand h2 {
    margin-top: 5px;

    font-size: 40px;
    font-weight: 750;

    color: #FFFFFF;
}

.login-brand p {
    max-width: 420px;

    margin-top: 22px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 16px;
    line-height: 1.6;
}

.login-card {
    position: relative;

    padding: 42px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    box-shadow: var(--shadow-lg);
}

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 35px;
    right: 35px;

    height: 3px;

    border-radius: 0 0 10px 10px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-bright),
            var(--secondary)
        );
}

.login-card-header {
    margin-bottom: 30px;
}

.login-card-header h3 {
    margin-bottom: 8px;

    color: var(--graphite);

    font-size: 27px;
    font-weight: 750;
}

.login-card-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.5;
}

.login-step {
    display: inline-block;

    margin-bottom: 18px;

    padding: 6px 12px;

    border-radius: 30px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 11px;
    font-weight: 750;

    letter-spacing: 0.5px;
}

.login-button {
    width: 100%;
    min-height: 48px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-bright)
        );

    color: white;

    font-weight: 650;

    box-shadow:
        0 5px 15px rgba(179, 18, 45, 0.22);
}

.login-button:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(179, 18, 45, 0.28);
}

.login-footer {
    margin-top: 26px;

    text-align: center;

    color: var(--text-secondary);

    font-size: 12px;
}

.token-input {
    text-align: center;

    font-size: 25px;
    font-weight: 750;

    letter-spacing: 8px;
}

.form-help {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 12px;
}

.token-back {
    margin-top: 22px;

    text-align: center;
}

.token-back a {
    color: var(--primary);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.token-back a:hover {
    text-decoration: underline;
}


/* =========================================================
   HEADER
   ========================================================= */

.main-header {
    width: 100%;

    position: relative;

    z-index: 20;

    background: white;

    box-shadow:
        0 4px 20px rgba(23, 26, 33, 0.07);
}

.header-top {
    width: 100%;
    max-width: 1500px;

    min-height: 94px;

    margin: auto;

    padding: 12px 32px;

    display: grid;
    grid-template-columns: 285px 1fr auto;

    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO Y MARCA
   ========================================================= */

.brand-horizontal {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.main-logo {
    display: block;

    width: 245px;
    max-width: 100%;

    height: 68px;

    object-fit: contain;
    object-position: left center;
}

.header-system {
    min-height: 48px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 28px;

    border-left:
        1px solid var(--border);
}

.system-title {
    color: var(--graphite);

    font-size: 15px;
    font-weight: 750;

    letter-spacing: 0.1px;
}

.system-subtitle {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 11px;
}


/* =========================================================
   USUARIO
   ========================================================= */

.header-user {
    display: flex;
    align-items: center;

    gap: 12px;
}

.user-circle {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary-bright),
            var(--primary-dark)
        );

    color: white;

    font-size: 14px;
    font-weight: 750;

    box-shadow:
        0 6px 16px rgba(179, 18, 45, 0.2);
}

.user-data strong {
    display: block;

    color: var(--graphite);

    font-size: 13px;
    font-weight: 700;
}

.user-data span {
    display: block;

    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 11px;
}

.logout-button {
    margin-left: 7px;

    padding: 9px 14px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: white;

    color: var(--graphite);

    text-decoration: none;

    font-size: 12px;
    font-weight: 650;
}

.logout-button:hover {
    background: var(--primary-light);

    border-color: var(--primary);

    color: var(--primary);
}


/* =========================================================
   MENÚ HORIZONTAL
   ========================================================= */

.main-navigation {
    width: 100%;

    background:
        linear-gradient(
            90deg,
            #12151B 0%,
            var(--graphite) 45%,
            var(--graphite-soft) 100%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
    width: 100%;
    max-width: 1500px;

    min-height: 58px;

    margin: auto;

    padding: 0 32px;

    display: flex;
    align-items: stretch;
}

.nav-option {
    min-height: 58px;

    padding: 0 21px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(255, 255, 255, 0.70);

    text-decoration: none;

    font-size: 12px;
    font-weight: 650;

    white-space: nowrap;

    border: 0;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

a.nav-option:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.045);
}

.nav-option.active {
    color: white;

    background:
        rgba(255, 255, 255, 0.055);
}

.nav-option.active::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 0;

    height: 3px;

    border-radius:
        10px 10px 0 0;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-bright)
        );

    box-shadow:
        0 -2px 10px
        rgba(227, 27, 45, 0.48);
}

.nav-option.disabled {
    opacity: 0.38;

    cursor: default;

    user-select: none;
}


/* =========================================================
   CONTENIDO GENERAL
   ========================================================= */

.main-content {
    width: 100%;

    flex: 1;
}

.page-title-bar {
    padding: 23px 32px 18px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--border-soft);
}

.page-title-bar > div {
    max-width: 1436px;

    margin: auto;
}

.page-title-bar h2 {
    margin: 0;

    color: var(--graphite);

    font-size: 21px;
    font-weight: 750;

    letter-spacing: -0.2px;
}

.title-accent {
    width: 44px;
    height: 3px;

    margin-top: 9px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-bright)
        );
}

.content-area {
    width: 100%;
    max-width: 1500px;

    margin: auto;

    padding: 32px;
}


/* =========================================================
   ENCABEZADO DE PÁGINAS
   ========================================================= */

.page-header {
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.page-header h3 {
    margin: 0 0 5px;

    color: var(--graphite);

    font-size: 22px;
    font-weight: 750;

    letter-spacing: -0.3px;
}

.page-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.content-card,
.form-card {
    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid var(--border-soft);

    border-radius: 15px;

    box-shadow: var(--shadow-sm);
}

.content-card {
    overflow: hidden;
}

.form-card {
    padding: 30px;
}

.content-card:hover,
.form-card:hover {
    border-color:
        rgba(179, 18, 45, 0.10);
}


/* =========================================================
   TABLAS
   ========================================================= */

.table {
    margin-bottom: 0;

    color: var(--text);
}

.table thead th {
    padding: 15px 18px;

    background:
        linear-gradient(
            180deg,
            #FAFBFC,
            #F4F6F8
        );

    border-bottom:
        1px solid var(--border);

    color: #475467;

    font-size: 11px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 16px 18px;

    border-color:
        var(--border-soft);

    vertical-align: middle;

    font-size: 13px;
}

.table tbody tr {
    transition:
        background 0.15s ease;
}

.table tbody tr:hover {
    background: #FFFAFB;
}

.table-secondary-text {
    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 12px;
}

.vin-code {
    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 11px;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 750;
}

.status-success {
    background: var(--success-bg);

    color: var(--success);
}

.status-danger {
    background: var(--danger-bg);

    color: var(--danger);
}

.status-warning {
    background: var(--warning-bg);

    color: var(--warning);
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.form-section-title {
    margin-bottom: 20px;

    padding-bottom: 10px;

    border-bottom:
        1px solid var(--border-soft);

    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 750;

    letter-spacing: 0.1px;
}

.form-label {
    margin-bottom: 7px;

    color: var(--graphite);

    font-size: 12px;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: white;

    color: var(--text);

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #BCC4D0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(179, 18, 45, 0.09);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 105px;

    resize: vertical;
}

.form-actions {
    margin-top: 30px;

    padding-top: 22px;

    border-top:
        1px solid var(--border-soft);

    display: flex;

    justify-content: flex-end;

    gap: 10px;
}

.field-error {
    margin-top: 5px;

    color: var(--danger);

    font-size: 11px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    border-radius: 8px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-bright)
        );

    border-color: var(--primary);

    color: white;

    box-shadow:
        0 4px 12px
        rgba(179, 18, 45, 0.16);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    border-color:
        var(--primary-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 18px
        rgba(179, 18, 45, 0.20);
}

.btn-outline-primary {
    color: var(--primary);

    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);

    border-color: var(--primary);

    color: white;
}

.btn-outline-secondary {
    color: #475467;

    border-color: #98A2B3;
}

.btn-outline-secondary:hover {
    background: var(--graphite);

    border-color: var(--graphite);

    color: white;
}

.btn-outline-dark:hover {
    background: var(--graphite);

    border-color: var(--graphite);
}


/* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.empty-state {
    padding: 70px 20px !important;

    text-align: center;
}

.empty-state h4 {
    margin-top: 15px;

    color: var(--graphite);

    font-size: 17px;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);

    font-size: 13px;
}

.empty-icon {
    color: var(--primary);

    font-size: 38px;
}


/* =========================================================
   AUDITORÍA
   ========================================================= */

.audit-summary {
    color: var(--primary);

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.audit-summary:hover {
    color: var(--primary-dark);
}

.audit-detail {
    min-width: 420px;

    margin-top: 12px;

    padding-top: 2px;
}

.audit-detail p {
    color: var(--text-secondary);

    font-size: 12px;
}

.audit-detail strong {
    display: block;

    margin-top: 10px;
    margin-bottom: 5px;

    color: var(--primary-dark);

    font-size: 11px;
}

.audit-detail pre {
    margin-bottom: 10px;

    padding: 12px;

    border:
        1px solid var(--border-soft);

    border-radius: 8px;

    background: #F8F9FB;

    color: #344054;

    font-size: 10px;
    line-height: 1.5;

    white-space: pre-wrap;

    word-break: break-word;
}


/* =========================================================
   VEHÍCULOS - LISTADO
   ========================================================= */

.vehicle-actions {
    display: flex;

    justify-content: flex-end;

    gap: 7px;

    flex-wrap: wrap;
}

.clear-filter-link {
    color: var(--primary);

    text-decoration: none;

    font-size: 12px;
    font-weight: 650;
}

.clear-filter-link:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================================
   DETALLE DEL VEHÍCULO
   ========================================================= */

.vehicle-detail-actions {
    display: flex;

    gap: 10px;
}

.vehicle-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 1fr);

    gap: 24px;
}

.detail-section-title {
    margin-bottom: 18px;

    padding-bottom: 10px;

    border-bottom:
        1px solid var(--border-soft);

    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 750;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.detail-item {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.detail-item span {
    color: var(--text-secondary);

    font-size: 11px;
}

.detail-item strong {
    color: var(--graphite);

    font-size: 13px;
    font-weight: 700;
}

.detail-status-success {
    color: var(--success) !important;
}

.detail-status-danger {
    color: var(--danger) !important;
}

.detail-status-warning {
    color: var(--warning) !important;
}

.detail-description {
    padding: 16px;

    border:
        1px solid var(--border-soft);

    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #FAFBFC,
            #F7F8FA
        );

    color: var(--text);

    font-size: 13px;
    line-height: 1.6;
}

.detail-section-header p {
    margin-top: -10px;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   HISTORIAL DEL VEHÍCULO
   ========================================================= */

.history-list {
    display: flex;

    flex-direction: column;
}

.history-item {
    padding: 14px 0;

    border-bottom:
        1px solid var(--border-soft);
}

.history-item:last-child {
    border-bottom: 0;
}

.history-item strong {
    display: block;

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 750;
}

.history-item span {
    display: block;

    margin-top: 4px;

    color: var(--text);

    font-size: 12px;
}

.history-meta {
    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 10px;
}

.empty-history {
    padding: 15px 0;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.main-footer {
    width: 100%;

    min-height: 60px;

    margin-top: auto;

    padding: 0 32px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-top:
        3px solid var(--primary);

    background:
        linear-gradient(
            90deg,
            #12151B,
            var(--graphite)
        );

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 10px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #ECEFF3;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: #BEC5CF;
}

::-webkit-scrollbar-thumb:hover {
    background: #9EA7B4;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .header-top {
        grid-template-columns:
            225px
            1fr
            auto;

        padding:
            12px 20px;
    }

    .main-logo {
        width: 205px;
        height: 58px;
    }

    .header-system {
        padding-left: 20px;
    }

    .system-title {
        font-size: 13px;
    }

    .nav-container {
        padding: 0 20px;

        overflow-x: auto;
    }

    .content-area {
        padding:
            28px 20px 40px;
    }

    .page-title-bar {
        padding:
            21px 20px 17px;
    }

    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    .login-container {
        max-width: 520px;

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 25px 18px;
    }

    .login-brand {
        text-align: center;
    }

    .login-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .login-brand h1,
    .login-brand h2 {
        font-size: 30px;
    }

    .login-card {
        padding: 30px 24px;
    }


    .header-top {
        grid-template-columns:
            minmax(150px, 1fr)
            auto;

        gap: 10px;

        min-height: 78px;

        padding:
            9px 15px;
    }

    .main-logo {
        width: 175px;
        height: 54px;
    }

    .header-system {
        display: none;
    }

    .user-data {
        display: none;
    }

    .user-circle {
        width: 36px;
        height: 36px;

        border-radius: 10px;
    }

    .logout-button {
        margin-left: 0;

        padding:
            8px 10px;
    }

    .nav-container {
        padding:
            0 10px;
    }

    .nav-option {
        min-height: 52px;

        padding:
            0 15px;
    }

    .page-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .vehicle-detail-actions {
        width: 100%;

        flex-wrap: wrap;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .audit-detail {
        min-width: 280px;
    }

    .form-card {
        padding: 22px;
    }

    .main-footer {
        min-height: 75px;

        padding:
            15px;

        flex-direction: column;

        align-items: flex-start;
        justify-content: center;

        gap: 4px;
    }
}


/* =========================================================
   LOGIN CORPORATIVO CON LOGO
   ========================================================= */

.login-brand-corporate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.login-brand-image {
    display: block;

    width: 100%;
    max-width: 520px;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 35px rgba(0, 0, 0, 0.38)
        );
}

.login-brand-line {
    width: 90px;
    height: 3px;

    margin: 26px 0 17px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--primary-bright),
            var(--secondary)
        );
}

.login-brand-title {
    margin: 0;

    color: white;

    font-size: 19px;
    font-weight: 700;
}

.login-brand-description {
    max-width: 460px;

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 12px;
    line-height: 1.7;
}

.login-security {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: var(--text-secondary);

    font-size: 10px;
}

.login-security-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 8px rgba(21, 128, 61, 0.45);
}


@media (max-width: 760px) {

    .login-brand-corporate {
        align-items: center;
        text-align: center;
    }

    .login-brand-image {
        max-width: 360px;
    }

    .login-brand-line {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================
   TOKEN / VERIFICACION DE ACCESO
   ========================================== */

.login-brand-main-title {
    margin: 0 0 18px 0;
    color: white;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
}

.token-help-text {
    margin-top: 8px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.token-back-link {
    margin-top: 26px;
    text-align: center;
}

.token-back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.token-back-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.field-error {
    margin-top: 8px;
    color: #dc3545;
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .login-brand-main-title {
        font-size: 2.1rem;
        text-align: center;
    }
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-hero {
    position: relative;
    overflow: hidden;

    min-height: 170px;

    margin-bottom: 30px;
    padding: 32px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(227, 27, 45, 0.22),
            transparent 38%
        ),
        linear-gradient(
            115deg,
            #11141A 0%,
            #1B1F28 65%,
            #281119 100%
        );

    color: white;

    box-shadow: var(--shadow-md);
}

.dashboard-hero::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -100px;
    top: -220px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #FF596B;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.dashboard-hero h3 {
    margin: 0;

    font-size: 27px;
    font-weight: 750;
}

.dashboard-hero p {
    max-width: 650px;

    margin: 9px 0 0;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 13px;
}

.dashboard-status {
    position: relative;
    z-index: 2;

    padding: 9px 14px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.06);

    font-size: 11px;

    white-space: nowrap;
}

.dashboard-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #3BC36E;

    box-shadow:
        0 0 10px rgba(59, 195, 110, 0.7);
}


/* SECCIONES */

.dashboard-section-header {
    margin-bottom: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.dashboard-section-header h4 {
    margin: 0;

    color: var(--graphite);

    font-size: 16px;
    font-weight: 750;
}

.dashboard-section-header p {
    margin: 4px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
}

.dashboard-section-spacing {
    margin-top: 30px;
}

.dashboard-section-link {
    color: var(--primary);

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
}

.dashboard-section-link:hover {
    color: var(--primary-dark);
}


/* VEHÍCULOS */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;

    min-height: 140px;

    padding: 21px 22px;

    border:
        1px solid var(--border-soft);

    border-radius: 14px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.dashboard-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;
}

.dashboard-card-blue::before {
    background: var(--secondary);
}

.dashboard-card-green::before {
    background: var(--success);
}

.dashboard-card-red::before {
    background: var(--primary);
}

.dashboard-card-amber::before {
    background: var(--warning);
}

.dashboard-card-label {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 650;
}

.dashboard-card strong {
    display: block;

    margin-top: 10px;

    color: var(--graphite);

    font-size: 32px;
    font-weight: 800;
}

.dashboard-card small {
    display: block;

    margin-top: 4px;

    color: var(--text-light);

    font-size: 10px;
}


/* COMERCIAL */

.dashboard-commercial-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.dashboard-finance-card {
    padding: 21px 22px;

    border:
        1px solid var(--border-soft);

    border-radius: 14px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.dashboard-finance-card span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
}

.dashboard-finance-card strong {
    display: block;

    margin-top: 9px;

    color: var(--graphite);

    font-size: 22px;
    font-weight: 800;
}

.dashboard-profit-card strong {
    color: var(--success);
}


/* PARTE INFERIOR */

.dashboard-lower-grid {
    margin-top: 26px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.dashboard-panel {
    padding: 24px;

    border:
        1px solid var(--border-soft);

    border-radius: 15px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.dashboard-panel-heading {
    margin-bottom: 20px;

    padding-bottom: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid var(--border-soft);
}

.dashboard-panel-tag {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.dashboard-panel-heading h4 {
    margin: 0;

    color: var(--graphite);

    font-size: 15px;
    font-weight: 750;
}

.dashboard-panel-values {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.dashboard-panel-values div {
    padding: 8px 0;
}

.dashboard-panel-values span,
.dashboard-audit-total span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
}

.dashboard-panel-values strong,
.dashboard-audit-total strong {
    display: block;

    margin-top: 5px;

    color: var(--graphite);

    font-size: 25px;
    font-weight: 800;
}


/* ACTIVIDAD */

.dashboard-activity-panel {
    margin-top: 20px;
}

.dashboard-activity-list {
    display: flex;
    flex-direction: column;
}

.dashboard-activity-item {
    min-height: 58px;

    display: grid;

    grid-template-columns:
        4px
        minmax(0, 1fr)
        140px
        150px;

    align-items: center;

    gap: 15px;

    border-bottom:
        1px solid var(--border-soft);
}

.dashboard-activity-item:last-child {
    border-bottom: 0;
}

.dashboard-activity-indicator {
    width: 4px;
    height: 25px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            var(--primary-bright),
            var(--primary-dark)
        );
}

.dashboard-activity-main strong {
    display: block;

    color: var(--graphite);

    font-size: 11px;
    font-weight: 750;
}

.dashboard-activity-main span {
    display: block;

    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 10px;
}

.dashboard-activity-user,
.dashboard-activity-date {
    color: var(--text-secondary);

    font-size: 10px;
}

.dashboard-empty {
    padding: 25px;

    color: var(--text-secondary);

    text-align: center;

    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-commercial-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .dashboard-hero {
        align-items: flex-start;

        flex-direction: column;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-item {
        padding: 12px 0;

        grid-template-columns:
            4px 1fr;
    }

    .dashboard-activity-user,
    .dashboard-activity-date {
        grid-column: 2;
    }

}

/* =========================================================
   AUDITORÍA - DETALLE DESPLEGABLE
   ========================================================= */

.audit-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: auto;

    padding: 7px 12px;

    color: var(--primary);

    background: transparent;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    list-style: none;

    transition: all 0.2s ease;
}

.audit-summary::-webkit-details-marker {
    display: none;
}

.audit-summary::before {
    content: "▶";

    font-size: 8px;

    transition: transform 0.2s ease;
}

details[open] .audit-summary::before {
    transform: rotate(90deg);
}

.audit-summary:hover {
    background: var(--primary-light);

    border-color:
        rgba(179, 18, 45, 0.15);
}

.audit-summary:focus,
.audit-summary:focus-visible {
    outline: none;
    box-shadow: none;
}


/* CONTENIDO DEL DETALLE */

.audit-detail {
    margin-top: 12px;

    padding: 16px;

    min-width: 420px;

    border:
        1px solid var(--border-soft);

    border-radius: 10px;

    background: #F8F9FB;
}

.audit-detail p {
    margin: 0 0 14px;

    color: var(--text-secondary);

    font-size: 11px;
}

.audit-detail strong {
    display: block;

    margin: 12px 0 6px;

    color: var(--primary-dark);

    font-size: 10px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.audit-detail pre {
    margin: 0;

    padding: 12px 14px;

    max-width: 100%;

    overflow-x: auto;

    white-space: pre-wrap;
    word-break: break-word;

    border:
        1px solid var(--border-soft);

    border-radius: 8px;

    background: white;

    color: #303744;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;
    line-height: 1.6;
}


/* Cuando el detalle está abierto */

details[open] .audit-summary {
    color: var(--primary-dark);

    background: var(--primary-light);

    border-color:
        rgba(179, 18, 45, 0.14);
}