/* Reset de m谩rgenes y padding para evitar espacios no deseados */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/** Menu **/
.menu {
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #003456;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.menu_items {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.menu_items li {
    margin: 0 25px;
}

.menu_items li a {
    padding: 7px 13px;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    color: var(--gris-claro);
    transition: all 0.5s;
}

.menu_items li:hover, li.active {
    transition: .4s;
}

.menu li a:hover {
    color: var(--gris-hover);
}

.btn_menu {
    margin-right: 30px;
    font-size: 25px;
    color: var(--gris-claro);
    display: none;
}

.btn_menu_pointer {
    cursor: pointer;
}

.logo_show {
    display: none;
}


/** Estilos para m贸viles **/
@media screen and (max-width: 850px) {
    .menu {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        position: relative;
        right: 25px;
        z-index: 4;
    }
    
    .btn_menu {
        display: inline-flex;
        position: relative;
        left: 15px;
        z-index: 4;
    }
    
    .menu_items {
        position: fixed;
        z-index: 3;
        width: 80%;
        height: 100vh; /* Ajustado para que cubra toda la pantalla */
        top: -100vh;
        left: 0;
        text-align: left;
        transition: all .3s;
        flex-direction: column;
        margin: 0;
        background-color: #002842;
        overflow-y: auto;
        padding-top: 50px; /* Espaciado para evitar que los elementos queden pegados arriba */
    }
    
    .menu_items li {
        margin: 15px 0;
        line-height: 50px;
        position: relative;
        left: 20px; /* Alineado correctamente */
    }
    
    .menu_items li a {
        font-size: 16px;
        color: white;
    }
    
    .menu_items li a:hover {
        color: var(--gris-hover);
    }

    .logo {
        padding-left: 35px;
    }
    
    .logo_show {
        display: block;
        z-index: 3;
    }
    
    ul.show {
        top: 0;
        opacity: 1;
        pointer-events: unset;
    }

    ul {
        top: 0;
        opacity: 0;
        pointer-events: none;
    }
}


/* ESTILOS ESPECÍFICOS PARA BOTONES DE SESIÓN */
.main-header .menu .btn-login,
.main-header .menu .btn-logout {
    display: inline-block !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 20px !important; /* Separación del menú */
    font-size: 0.9rem !important;
}

/* Botón INICIAR SESIÓN */
.main-header .menu .btn-login {
    background: #f8c32e !important; 
    color: #003356 !important;
    border: 2px solid transparent !important;
}

.main-header .menu .btn-login:hover {
    background: #003356 !important;
    color: #f8c32e !important;
    border-color: #f8c32e !important;
    box-shadow: 0 4px 15px rgba(248, 195, 46, 0.3) !important;
}

/* Botón CERRAR SESIÓN */
.main-header .menu .btn-logout {
    background: #003356 !important;
    color: #f8c32e !important;
    border: 2px solid #f8c32e !important;
}

.main-header .menu .btn-logout:hover {
    background: #f8c32e !important;
    color: #003356 !important;
    border-color: #003356 !important;
    box-shadow: 0 4px 15px rgba(0, 51, 86, 0.3) !important;
}

/* Ajustes para modo landscape en m贸viles */
@media screen and (max-width: 850px) and (orientation: landscape) {
    .menu_items li {
        margin: 5px 0;
        top: 100px;
    }
    
    .menu_items {
        overflow-y: auto;
    }
}

/** Barra de contacto m贸vil **/
.contact_bar_mobil {
    display: none;
}

@media (max-width: 850px) {
    .contact_bar_mobil {
        position: fixed;
        width: 100%;
        height: 50px;
        background-color: #002842;
        z-index: 2;
        bottom: -50px;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: all 0.9s;
    }
    
    .icon_contact {
        margin: 0px 10px;
    }
    
    .contact_bar_mobil.show {
        opacity: 1;
        bottom: 0;
    }
}





/* Botones de sesión - Estilos base */
.menu .btn-login, 
.menu .btn-logout {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none !important; /* Fuerza quitar subrayado */
    white-space: nowrap; /* Evita saltos de línea */
    margin-left: 15px !important;
}

/* Mobile: Ajustar tamaño y posición */
@media (max-width: 850px) {
    .menu .btn-login, 
    .menu .btn-logout {
        margin: 10px 20px !important;
        width: calc(100% - 40px); 
        justify-content: center;
        order: 3; /* Lo coloca debajo del menú */
    }
    
    /* Asegurar visibilidad en móvil */
    .menu_items.show + .btn-login,
    .menu_items.show + .btn-logout {
        display: inline-flex !important;
        position: relative;
        z-index: 999;
    }
}
