/* Header Styles */
.header-container {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1000;
    background-color: transparent;
}

/* Responsive styles */
@media (max-width: 767px) {
    .header-container .container-fluid.pl-100 {
        padding-left: 25px !important;
    }
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Oculto por defecto */
    gap: 15px;
    z-index: 1002; /* Mayor que el menú para que permanezca visible */
}

/* Mostrar selector de idioma solo cuando el menú está abierto */
.menu-container.active ~ .language-selector,
.menu-toggle-fixed.active ~ .language-selector {
    display: flex;
}

.language-item {
    font-family: "Switzer Variable", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -4%;
    text-align: center;
    color: #F5F5F5;
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.language-item:hover {
    color: #F3B707;
    text-decoration: none;
}

.language-item.active {
    border-bottom: 2px solid #F3B707;
    color: #F5F5F5;
}

/* Logo Styles */
.header-logo {
    padding: 20px 0;
    position: relative;
    z-index: 1002; /* Mayor que el menú para que permanezca visible */
}

/* Menu Container Styles */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #376AAD;
    z-index: 999;
    display: none;
    padding: 180px 0 0 0; /* Padding superior para dejar espacio al logo */
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    overflow-y: auto; /* Cambiado de hidden a auto para permitir scroll vertical */
}

.menu-container.active {
    display: block;
    transform: translateX(0);
}

.menu-content-wrapper {
    padding: 0 100px;
    /* Eliminado height: 100% para permitir que el contenido se expanda si es necesario */
}

/* Menu Items Styles - Columna izquierda */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0;
}

.menu-link {
    font-family: "Switzer Variable", sans-serif;
    font-size: 67px;
    font-weight: 700;
    font-style: normal;
    line-height: 140px;
    letter-spacing: -4%;
    color: #F3D126;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

/* Estilo para el ítem de menú activo */
.menu-item.active .menu-link,
.menu-item.active .contact-menu-item {
    color: #D9A50C !important; /* Usar !important para asegurar que sobrescriba otros estilos */
}

.menu-link:hover {
    color: #F5F5F5;
    text-decoration: none;
}

.contact-menu-item {
    color: #F3D126; /* Color más oscuro para el contacto inactivo */
}

/* Menu Description Styles - Columna derecha */
.menu-description-column {
    display: flex;
    align-items: flex-end;
    height: calc(100vh - 180px); /* Altura total menos el padding superior del contenedor */
    padding-bottom: 100px; /* Espacio en la parte inferior */
}

.menu-description-text {
    font-family: "Switzer Variable", sans-serif;
    font-size: 48px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: -4%;
    text-align: right;
    color: #F5F5F5;
    margin-left: auto; /* Alinear a la derecha */
    max-width: 90%;
    padding-left: 30px;
}

/* Menu Toggle Button Styles - Cuadrado azul fijo */
.menu-toggle-fixed {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 100px;
    height: 100px;
    background-color: #376AAD; /* Color azul */
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-lines {
    width: 60px;
    height: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-lines .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #F5F5F5;
    transition: transform 0.4s ease-in-out;
}

/* Animation for the menu toggle */
.menu-toggle-fixed.active .line1 {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle-fixed.active .line2 {
    transform: rotate(-45deg) translate(19px, -17px);
}

/* Responsive Adjustments */
@media (max-width: 999px) {
    .menu-toggle-fixed {
        width: 70px;
        height: 70px;
        top: 0px;
        right: 0px;
    }
    
    .hamburger-lines {
        width: 40px;
        height: 25px;
    }
    
    /* Ajustar transformaciones para la X en tabletas */
    .menu-toggle-fixed.active .line1 {
        transform: rotate(45deg) translate(9px, 9px);
    }
    
    .menu-toggle-fixed.active .line2 {
        transform: rotate(-45deg) translate(9px, -9px);
    }
    
    /* Reducir tamaño fuente menú en tablets */
    .menu-link {
        font-size: 50px;
        line-height: 100px;
    }
    
    .menu-description-text {
        font-size: 36px;
    }
}

/* Responsive Adjustments para pantallas hasta 755px */
@media (max-width: 755px) {
    .language-selector {
        margin-top: 25px;
        margin-left: 25px;
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .menu-toggle-fixed {
        width: 60px;
        height: 60px;
        top: 0px;
        right: 0px;
    }
    
    .hamburger-lines {
        width: 40px;
        height: 25px;
    }
    
    /* Ajustar transformaciones para la X en móviles */
    .menu-toggle-fixed.active .line1 {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle-fixed.active .line2 {
        transform: rotate(-45deg) translate(11px, -10px);
    }
    
    /* Ajustar tamaño fuente menú en móviles */
    .menu-link {
        font-size: 44px;
        line-height: 85px;
    }
    
    .menu-description-text {
        font-size: 24px;
        padding-left: 15px;
    }
    
    .menu-content-wrapper {
        padding: 0 30px;
    }
    
    /* Reposicionar selector de idioma para que esté debajo del logo en móviles */
    .language-selector {
        position: absolute;
        top: 70px;
        left: 15px;
        right: auto;
        transform: none;
        display: none; /* Se mantiene oculto por defecto */
    }
    
    /* Cuando el menú está activo, mostrar los botones de idioma */
    .menu-container.active ~ .language-selector,
    .menu-toggle-fixed.active ~ .language-selector {
        display: flex;
    }
    
    /* Ajuste de espacio para el logo en móvil */
    .header-logo {
        padding: 15px 0;
    }
    
    /* Reducir tamaño de fuente para selector de idioma */
    .language-item {
        font-size: 14px;
    }
}
