/* Header Menu Styles - Unificado para todas las páginas */

/* Header */
.header {
    position: relative;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header.transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: none;
}
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.header.sticky.transparent {
    background: rgba(255, 255, 255, 0.95);
}
.header.sticky.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.header.sticky.transparent.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img,
.logo .logo-default {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--header-hover);
}

/* Mobile Menu Overlay - Oculto por defecto */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--header-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
}

/* Ocultar hamburger cuando el menú está abierto */
.mobile-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: var(--header-bg);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--header-hover);
}

.mobile-menu-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

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

.mobile-nav-list li {
    margin: 0;
    padding: 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 1.5rem 0;
    color: var(--header-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

.mobile-nav-list li a:hover {
    color: var(--header-hover);
    padding-left: 1rem;
    background: rgba(0,0,0,0.05);
}

.mobile-menu-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-cta-btn {
    display: block;
    background: var(--header-button);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
    background: var(--header-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones CTA y del mapa - separados del menú principal */
.cta-btn, .mapa-btn {
    background: var(--header-button);
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--header-button);
    font-size: 0.95rem;
    margin-left: 1rem;
}
.cta-btn:hover, .mapa-btn:hover {
    background: var(--header-button-hover);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 89, 239, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 10001;
    }

    .nav-links {
        display: none;
    }

    .cta-btn, .mapa-btn {
        display: none; /* Ocultar botones CTA en móvil - aparecerán dentro del menú hamburger */
    }

    .logo img,
    .logo .logo-default {
        height: 40px;
    }
}