/* Estilos generales del header */
header {
    width: 100%;
    background: #f00000e8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img {
    width: 150px;
    cursor: pointer;
}

header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    justify-content: flex-end;
    transition: all 0.3s ease-in-out;
}

header li {
    margin-left: 30px;
    font-size: 15px;
}

header .center-links{
    display: flex;
    width: 350px;
    gap: 35px;
    align-items: center;
    height: fit-content;
}
header .icons{
    display: flex;
    align-items: center;
    height: fit-content;
    gap: 15px;
    padding: 15px;
    
}
header a {
    color: #FFF;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 16px;
}

/*header a:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid white; 
}*/


header a::after {
    content: ''; /* Pseudo-elemento para la línea */
    position: absolute;
    bottom: 0; /* Línea en la parte inferior */
    left: 0;
    width: 0; /* Línea invisible al inicio */
    height: 3px; /* Grosor de la línea */
    background-color: white; /* Color de la línea */
    transition: width 0.3s ease, transform 0.3s ease; /* Animación de la línea */
}

header a:hover::after {
    width: 100%; /* La línea se extiende al hacer hover */
}

header a:hover {
    transform: translateY(-5px); /* El enlace se mueve hacia arriba */
}

header a.activo {
    transform: translateY(-5px); 
    background: transparent !important;
    
}

header a.activo::after {
    width: 100%; /* La línea del enlace activo permanece extendida */
    transform: translateY(-3px); /* Ajuste adicional para que la línea suba ligeramente */
}
/* Ícono del menú hamburguesa */
.menu_toggle {
    display: none;
    font-size: 30px;
    color: #FFF;
    cursor: pointer;
}

/* Media Query para pantallas menores a 1000px */
@media screen and (max-width: 1100px) {
    header {
        justify-content: space-between;
    }

    .menu_toggle {
        display: block;
    }

    header img {
        height: 3%;
    }

    header .center-links {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        height: fit-content;
        background-color: #8E0A05 !important;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: 999;
    }

    header .icons {
        position: absolute;
        
        display: flex; /* Asegúrate de que este sea el display principal */
        justify-content: center; /* Centra los iconos horizontalmente */
        align-items: center; /* Centra los iconos verticalmente */
        top: 370px; 
        right: 0px;
        background-color: #8E0A05;;
        bottom: 10px; /* Coloca los iconos en la parte inferior */
        width: 100%; /* Asegúrate de ocupar todo el ancho */
        text-align: center; /* Centra el texto o los íconos */
        border-top: 1px solid #ccc; /* Línea divisoria */
        opacity: 0; /* Oculta inicialmente */
        visibility: hidden; /* Oculta inicialmente */
        transform: translateY(-20px); /* Efecto de entrada */
        transition: all 0.4s ease-in-out; /* Animación */
        z-index: 999; /* Encima de otros elementos */
    }

    /* Mostrar cuando esté activo */
    .center-links.active, .icons.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    header img {
        width: 20%;
    }

    header li:hover {
        background-color: #8e0a05a8;
    }
}

@media  screen and (max-width: 980px) {

    
}
/* Media Query para pantallas menores a 700px */
@media screen and (max-width: 700px) {
    
    header img {
        width: 30%;
    }

    .menu_toggle {
        font-size: 28px;
        margin-right: 5px;
    }

    header ul {
        top: 80px;
        height: fit-content;
        background-color: #8E0A05 !important;
    }

    header li {
        font-size: 18px;
    }
}

@media screen and (max-width: 468px){
    header img{
        width: 40%;
    }
}
