/* =========================================================
   SICOV - BASE GLOBAL + NAVBAR COMPACTO
========================================================= */

:root {
    --rto-azul-oscuro: #0f172a;
    --rto-azul-header: #1e293b;
    --rto-azul-acento: #60a5fa;
    --rto-verde-acento: #22c55e;
    --rto-fondo: #f3f4f6;
    --rto-texto: #111827;
}

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

body {
    background-color: var(--rto-fondo);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: var(--rto-texto);
    overflow-x: hidden;
}

a {
    color: #0d6efd;
}

a:hover,
a:focus {
    color: var(--rto-azul-acento);
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: #000;
    color: #fff;
    border-radius: 0.45rem;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    z-index: 10000;
    font-size: 0.85rem;
}

.skip-link:focus {
    transform: translateY(0);
}

/* =========================================================
   NAVBAR SICOV COMPACTO
========================================================= */

.rto-header {
    width: 100%;
    background: #0f172a;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.sicov-navbar {
    width: 100%;
    min-height: 58px;
    padding-top: 4px;
    padding-bottom: 4px;
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #111827,
            #1e293b
        );
}

.sicov-navbar .container-fluid {
    min-height: 50px;
}

.sicov-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 390px;
    padding: 0;
    margin: 0;
}

.navbar-logo-img {
    height: 42px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

.sicov-brand-text {
    min-width: 0;
    line-height: 1.05;
}

.sicov-brand-text span {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sicov-brand-text small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

/* Toggler */
.sicov-toggler {
    padding: 3px 7px;
    border-color: rgba(255, 255, 255, 0.22);
}

.sicov-toggler:focus {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}

/* Menú principal */
.sicov-menu {
    gap: 2px;
}

.sicov-navbar .nav-link {
    min-height: 42px;
    padding: 6px 9px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    line-height: 1.05;
    font-weight: 700;
    border-radius: 7px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sicov-navbar .nav-link i {
    font-size: 14px;
    line-height: 1;
}

.sicov-navbar .nav-link:hover,
.sicov-navbar .nav-link:focus {
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd !important;
}

.sicov-navbar .dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: middle;
}

/* Usuario */
.sicov-user-link {
    gap: 6px !important;
}

.sicov-user-img,
.sicov-user-placeholder {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
}

.sicov-user-img {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sicov-user-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.18);
    color: #fff;
}

.sicov-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu-dark {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 5px;
}

.dropdown-item {
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 13px;
    line-height: 1.2;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.dropdown-header {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 9px 4px;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 4px 0;
}

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

.rto-footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    font-size: 13px;
    color: #e5e7eb;
    padding-bottom: 1.5rem;
}

.rto-footer h5,
.rto-footer h6 {
    color: #fff;
    letter-spacing: 0.5px;
}

.rto-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.rto-footer a:hover {
    color: var(--rto-verde-acento);
    text-decoration: underline;
}

.rto-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.rto-footer p {
    color: #cbd5e1;
}

/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-float {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 44px !important;
    height: 44px !important;
    background-color: #22c55e !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 34px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
    z-index: 99999 !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease !important;
}

.whatsapp-float:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55) !important;
}

/* =========================================================
   RESPONSIVE NOTEBOOK
========================================================= */

@media (max-width: 1320px) {
    .sicov-navbar .nav-link {
        padding: 6px 7px !important;
        font-size: 12.5px;
    }

    .sicov-navbar .nav-link i {
        font-size: 13px;
    }

    .sicov-brand {
        max-width: 350px;
    }

    .sicov-brand-text span {
        font-size: 17px;
    }

    .sicov-brand-text small {
        font-size: 10px;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 1200px) {
    .sicov-navbar {
        min-height: 56px;
    }

    .sicov-menu {
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .sicov-navbar .nav-link {
        justify-content: flex-start;
        width: 100%;
        min-height: 36px;
        padding: 8px 10px !important;
    }

    .dropdown-menu-dark {
        margin-bottom: 5px;
    }
}

/* =========================================================
   RESPONSIVE CELULARES
========================================================= */

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .sicov-navbar {
        min-height: 54px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .sicov-navbar .container-fluid {
        min-height: 48px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .navbar-logo-img {
        height: 38px;
    }

    .sicov-brand {
        max-width: calc(100vw - 76px);
        gap: 7px;
    }

    .sicov-brand-text span {
        font-size: 16px;
    }

    .sicov-brand-text small {
        max-width: 230px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 9.5px;
        letter-spacing: 0.08em;
    }

    .sicov-navbar .nav-link {
        min-height: 35px;
        font-size: 13px;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 7px 9px;
    }

    .whatsapp-float {
        width: 42px !important;
        height: 42px !important;
        right: 16px !important;
        bottom: 16px !important;
        font-size: 31px !important;
    }
}

@media (max-width: 420px) {
    .navbar-logo-img {
        height: 34px;
    }

    .sicov-brand-text span {
        font-size: 15px;
    }

    .sicov-brand-text small {
        max-width: 185px;
        font-size: 8.8px;
    }

    .sicov-toggler {
        padding: 2px 6px;
    }
}