@import 'colors.css';

@media (min-width: 1080px) {

    .div-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../media/banner.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: right;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%; /* Asegura que el menú ocupe todo el ancho */
        z-index: 1000; /* Garantiza que el menú esté por encima de otros elementos */
        border-bottom: 3px solid var(--azul1);
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 10px 0;

    }

    .img-i {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 15%;
    }

    .img-menu {
        width: 80%;
        height: 80%;
        cursor: none;
    }

    .ul-menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        list-style: none;        
        border-radius: 20px 0 0 20px;
        min-width: 60%;
    }

    .li-menu {        
        padding:10px 15px;
        background: #1e769b;
        border-radius: 20px;
        margin-right: 10px;
        min-width: 140px;
        text-align:center ;
    }

    .li-menu a {
        color: var(--blanco);
        text-decoration: none;
        font-family:"MiFuente", sans-serif;
        font-size: 14px;
        margin-right: 7px;
    }

    .li-menu:hover {
        background: var(--blanco);
        border: 2px solid var(--rojo);
        border-radius: 20px; 
        padding: 10px 12px;     
    }
    .li-menu:hover a{        
        color: var(--rojo);
        font-weight: 900;
        font-style: italic;
    }

    .fa-bars {
        display: none;
    }
    .fa-xmark {
        display: none;
    }
}

@media (min-width: 600px) and (max-width:1079px) {
    .div-menu {
        display: flex;
        justify-content: center;
        align-items: center;        
        width: 100%; 
                     
    }

    .nav-menu {
        display: flex;
        justify-content:flex-start;
        align-items:flex-start;
        flex-direction: column;        
        width: 100%;
         
    }

    .img-i {
        display: flex;
        justify-content: space-between;
        align-items:center;
        background-image: url("../media/banner.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;   
        position:fixed;
        z-index: 2;   
        padding: 15px 0;  
        border-bottom: 5px solid var(--azul1);
    }

    .img-menu {
        width: 20%;
        height: 20%;
        cursor: none;
        margin-left: 10px;
    }

    .ul-menu {
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        align-items: center;
        list-style: none;
        background:#2e75a8 ; 
        min-width: 30%;
        width:40%;
        height: 100vh;
        margin-top:15.5%;
        left: -60%;
        overflow-x: hidden;
        transition: 0.5s;
        position: fixed;
        z-index:2;
    }
    #li-inicio{
        margin-top:50px;
    }
    .li-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        margin:15px 0;
    }
    
    .li-menu a {
        color: var(--blanco);
        text-decoration: none;        
        font-size: 26px;           
        padding: 5px 15px; /* Espaciado interno del texto */        
        font-weight: bold; /* Texto en negrita */        
        margin: 0 10px; /* Espaciado entre las líneas y el texto */
        text-align: center; /* Centra el texto */   
        font-family:"MiFuente", sans-serif;  
    }

    .li-menu a:hover {
        color: var(--rojo)
    }

    .fa-bars {
        display: flex;
        font-size: 40px;
        color: var(--rojo); 
        margin-right:40px;      
    }
    .fa-xmark {
        display: none;
        font-size: 40px;
        color: var(--rojo); 
        margin-right:40px;        
    }
}

@media (max-width: 599px) {
    .div-menu {
        display: flex;
        justify-content: center;
        align-items: center;        
        width: 100%; 
                     
    }

    .nav-menu {
        display: flex;
        justify-content:flex-start;
        align-items:flex-start;
        flex-direction: column;        
        width: 100%;
         
    }

    .img-i {
        display: flex;
        justify-content: space-between;
        align-items:center;
        background-image: url("../media/banner.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;   
        position:fixed;
        z-index: 2;   
        padding: 15px 0;  
        border-bottom: 5px solid var(--azul1);
    }

    .img-menu {
        width: 20%;
        height: 20%;
        cursor: none;
        margin-left: 10px;
    }

    .ul-menu {
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        align-items: center;
        list-style: none;
        background:#2e75a8 ; 
        min-width: 30%;
        width:40%;
        height: 100vh;
        margin-top:12.5%;
        left: -60%;
        overflow-x: hidden;
        transition: 0.5s;
        position: fixed;
        z-index:2;
    }
    #li-inicio{
        margin-top:50px;
    }
    .li-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        margin:15px 0;
    }
    
    .li-menu a {
        color: var(--blanco);
        text-decoration: none;        
        font-size: 26px;           
        padding: 5px 15px; /* Espaciado interno del texto */        
        font-weight: bold; /* Texto en negrita */        
        margin: 0 10px; /* Espaciado entre las líneas y el texto */
        text-align: center; /* Centra el texto */   
        font-family:"MiFuente", sans-serif;  
    }

    .li-menu a:hover {
        color: var(--rojo)
    }

    .fa-bars {
        display: flex;
        font-size: 30px;
        color: var(--rojo); 
        margin-right:40px;      
    }
    .fa-xmark {
        display: none;
        font-size: 30px;
        color: var(--rojo); 
        margin-right:40px;        
    }
}
/* Ajustes para cuando el dispositivo esté en modo horizontal */
@media (min-width: 600px) and (max-width:1079px) and (orientation: landscape) {
    .img-i {
        display: flex;
        justify-content: space-between;
        align-items:center;
        background-image: url("../media/banner.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;   
        position:fixed;
        z-index: 2;   
        padding:0;  
        border-bottom: 3px solid var(--azul1);
    }

    .img-menu {
        width: 15%;
        height: 15%;
        cursor: none;
        margin-left: 15px;
    }
    .ul-menu {
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        align-items: center;
        list-style: none;
        background-color: var(--azul1); 
        min-width: 30%;
        height: 100vh;
        margin-top:9.5%;
        left:-60%;
        position:fixed;
        z-index:2;
        transition: transform 0.5s ease-in-out;        
        overflow-y: auto; /* Permite desplazamiento vertical */
    }
    #li-inicio{
        margin-top:30px;
    }
    .li-menu {
        padding: 5px;
        margin:5px 0;
    }
    
    .li-menu a {
        color: var(--blanco);
        text-decoration: none;
        font-family:"MiFuente", sans-serif;
        font-size: 18px;        
    }
    #icono-barras {
        display: flex;
        font-size: 35px;
        color: var(--rojo); 
        margin-right:40px;      
    }
    #icono-cruz {
        display: none;
        font-size: 35px;
        color: var(--rojo); 
        margin-right:40px;        
    }
}