/* ================================
   VW HEADER & NAVIGATION STYLES
   ================================ */

/* Header Container */
.vw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /*background-color: #ffffff;*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.vw-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Styles */
.vw-logo {
    flex-shrink: 0;
    z-index: 1001;
}

.vw-logo a {
    display: block;
}

.vw-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* Desktop Menu - ALWAYS HIDDEN */
.vw-desktop-menu {
    display: none !important;
}

/* Hamburger Button - ALWAYS VISIBLE */
.vw-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.vw-hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #FFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.vw-hamburger:hover .vw-hamburger-line {
    background-color: #003d82;
}

.vw-hamburger.active .vw-hamburger-line {
    background-color: #FFF;
}

.vw-hamburger.active .vw-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.vw-hamburger.active .vw-hamburger-line:nth-child(2) {
    opacity: 0;
}

.vw-hamburger.active .vw-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.vw-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.vw-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen Mobile Menu */
.vw-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #001e50 0%, #003d82 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.vw-mobile-menu.active {
    transform: translateX(0);
}

.vw-mobile-menu-content {
    position: relative;
    min-height: 100vh;
    padding: 100px 30px 40px;
    display: flex;
    flex-direction: column;
}

/* Hamburger se mantiene visible cuando el menú está abierto */
.vw-header.menu-open .vw-hamburger {
    position: fixed;
    z-index: 1001;
}

/* Mobile Navigation */
.vw-mobile-nav {
    flex: 1;
}

.vw-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vw-mobile-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    margin-bottom: 5px;
}

.vw-mobile-menu.active .vw-mobile-item {
    opacity: 1;
    transform: translateX(0);
}

.vw-mobile-menu.active .vw-mobile-item:nth-child(1) { transition-delay: 0.1s; }
.vw-mobile-menu.active .vw-mobile-item:nth-child(2) { transition-delay: 0.15s; }
.vw-mobile-menu.active .vw-mobile-item:nth-child(3) { transition-delay: 0.2s; }
.vw-mobile-menu.active .vw-mobile-item:nth-child(4) { transition-delay: 0.25s; }
.vw-mobile-menu.active .vw-mobile-item:nth-child(5) { transition-delay: 0.3s; }

.vw-mobile-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vw-mobile-link:hover {
    color: #ffffff;
    text-decoration: none;
    padding-left: 15px;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Contact */
.vw-mobile-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.35s;
}

.vw-mobile-menu.active .vw-mobile-contact {
    opacity: 1;
    transform: translateY(0);
}

.vw-mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vw-mobile-contact-link:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

.vw-mobile-contact-link i {
    font-size: 20px;
}

/* Body Lock when Menu Open */
body.menu-open {
    overflow: hidden;
}

/* Sticky Header on Scroll */
.vw-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);    background-color: #002c67;
}

.vw-header.scrolled .vw-logo img {
    height: 45px;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .vw-mobile-menu {
        max-width: 450px;
    }

    .vw-mobile-link {
        font-size: 36px;
        padding: 20px 0;
    }

    .vw-mobile-menu-content {
        padding: 120px 50px 50px;
    }
}

/* Responsive - Desktop - SIEMPRE MODO MOBILE */
@media (min-width: 992px) {
    .vw-header-container {
        padding: 0 40px;
    }

    .vw-logo img {
        height: 55px;
    }
    
    /* Mantener menú mobile en desktop */
    .vw-mobile-menu {
        max-width: 500px;
    }
}

@media (min-width: 1200px) {
    .vw-header-container {
        padding: 0 60px;
    }
    
    /* Menú más ancho en pantallas grandes */
    .vw-mobile-menu {
        max-width: 550px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ajuste para contenido debajo del header */
body {
    padding-top: 80px;
}

/* Fix para que el contenido no quede oculto bajo el header fixed */
.boxed {
    padding-top: 0 !important;
}

/* Asegurar que los links internos tengan scroll offset */
html {
    scroll-padding-top: 100px;
}

/* Mejoras de accesibilidad */
.vw-hamburger:focus,
.vw-mobile-close:focus {
    outline: 2px solid #001e50;
    outline-offset: 4px;
}

.vw-menu-link:focus,
.vw-mobile-link:focus {
    outline: 2px solid #001e50;
    outline-offset: 2px;
}

