/* =========================================================
   IMPRESOS LG3 — NAVBAR COMPARTIDO
   Estilos extraídos de styles.css
   ========================================================= */

   /* =========================================
   TIPOGRAFÍA NAVBAR
========================================= */

.navbar {
    font-family: 'Manrope', sans-serif;
}

:root {
    --header-height: 92px;
}

/* Encabezado transparente, fijo y ocultable al desplazarse */
.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    background: transparent;
    transform: translateY(0);
    transition: transform 650ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.site-header.is-hidden {
    transform: translateY(-110%);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: 200px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    object-position: left center;
}

/* Botón del menú móvil */
.menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    background: rgba(12,35,58,.42);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú desplegable móvil */
.nav-links {
    position: absolute;
    top: calc(100% - 2px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 12px;
    list-style: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(10, 68, 115, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-links.is-open {
    display: flex;
}

.nav-links a {
    display: block;
    padding: 11px 13px;
    border-radius: 7px;
    color: white;
    font-size: .88rem;
    font-weight: 700;
    background: rgba(23, 55, 109, .65);
    transition: background .2s, transform .2s;
}

.nav-links a:hover {
    background: rgba(23,55,109,.92);
    transform: translateX(3px);
}

/* Tablet y escritorio */
@media (min-width: 768px) {
    :root {
        --header-height: 140px;
    }

    .navbar {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar.container {
        width: min(100% - 64px, 1200px);
    }

    .brand-logo {
        width: 285px;
        max-height: 90px;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 7px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links a {
        padding: 9px 13px;
        font-size: .78rem;
        background: rgba(23, 55, 109, .65);
    }
}

/* Ajustes para celulares */
@media (max-width: 768px) {
    .brand img {
        width: 165px;
        height: auto;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .menu-toggle span,
    .nav-links a {
        transition-duration: .01ms !important;
    }
}

/* =========================================
   NAVBAR - QUITAR SUBRAYADO DE ENLACES
========================================= */

.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
    text-decoration: none;
}