*{
    box-sizing: border-box;
    
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', 'sans-seriff';
    display: flex;
    flex-direction: column;
    min-height: 100vh;  /* al menos la altura de la ventana */
   /* overflow-x: hidden; */
}

html, body {
  height: 100%;       /* que ocupen toda la ventana */
  margin: 0;          /* quitar márgenes por defecto */
}

.cuerpo {
  flex: 1;            /* este contenedor crecerá para empujar el footer abajo */
}


h1{ font-size: 2.5em; margin-top: 0;}
h2{ font-size: 2em; }
h3{ font-size: 1.75em; }
p{ font-size: 1.3em; }
ul{list-style: none;}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
    background-color: rgb(196, 148, 51);
    cursor: pointer;
}

button:hover{
    background-color: rgb(117, 89, 33);
}

.container{
    max-width: 1080px;
    margin: auto;
}

header{
    background-color: rgb(21, 76, 134);
}

header .image-container {
    background-image: url(../imagenes/uaslogo.png);
}

header .image-container1{
    background-image: url(../imagenes/logo.png);
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 2rem;
   
}

/* original
header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header nav{
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgb(21, 76, 134);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: start;
}
*/

/* Original */

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;              
    background-color: rgb(21, 76, 134);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(-100%); 
    transition: transform 0.3s ease;
    z-index: 999;
    
}


#sidebar.open {
    transform: translateX(0);
}

#menu-toggle {
    position: fixed;
    top: 2rem;
    left: 1rem;
    z-index: 1000;
    background-color: rgb(196, 148, 51);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    
}

#menu-toggle:focus {
    outline: 2px solid rgba(255,255,255,0.6);
}

header nav{
    background-color: rgb(21, 76, 134);
    gap: 1rem;
    font-weight: bold;
    font-size: 1.25em;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 2rem;
}

/* Original */
.login-container{
    display: none;
    padding-bottom: 25px;
}

header .image-container2{
    position: absolute;
    margin-left: 35%;
    background-image: url(../imagenes/favicon.png);
    height: 60px;
    width: 60px;
    background-repeat: no-repeat;
    background-size: cover;
    
}

header a{
    text-decoration: none;
    color: rgb(235, 235, 235);
    padding: 5px 12px;
    font-weight: bold;
}


header a:hover{
    color: rgb(196, 148, 51);
}



.footer {
    background-color: rgb(21, 76, 134);
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-top: 5px solid rgb(196, 148, 51);
}

.footer_info {
    display: flex;
    justify-content: space-around;
}

.footer_col {
    flex: 1;
    padding: 10px;
}

.footer_rights {
    font-size: 0.9em;
    opacity: 0.8;
    color: rgb(60, 126, 197); 
}

.footer_slogan {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
}

.footer a{
    color: white;
}

.footer a:hover{
    color: rgb(196, 148, 51);
}

@media (min-width: 720px){

    .container{
        max-width: 1200px;
        margin: auto;
    }

    header{
        position: fixed;
        width: 100%;
        z-index: 1000;
    }

    header .image-container,
    header .image-container1 {
        padding: 30px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        margin: 0;
    }

    header .image-container{
        padding: 25px;
    }

    header .container{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 0;
    }

    .login-container {
        display: flex;
        align-items: center;

        padding-bottom: 0;
    }

    .login-container a:first-child{
    margin-left: 5px;
        
    }

    .login-container .image-container1{
        margin-right: 8px;
    }

    .login-sidebar{
        display: none;
    }

        .login-button {
        font-size: 1em;
        background-color: rgb(21, 76, 134);
        color: rgb(235, 235, 235);
        padding: 5px 12px;
        font-weight: bold;
        border: none;
        box-shadow: none;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .login-button:hover {
        color: rgb(196, 148, 51);
        background-color: rgb(21, 76, 134);
    }

    .dropdown {
    position: relative;
    display: inline-block;
    width: auto;
    }

    /* Menú oculto por defecto */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: rgb(21, 76, 134);
        min-width: 160px;
        
        z-index: 1;
        right: 0;
        margin-top: 10%;
    }

    /* Enlaces del menú */
    .dropdown-content a {
        color: white;
        padding: 10px 12px;
        text-decoration: none;
        display: block;
        align-content: start;
        
    }

    .dropdown-content a:first-child{
        padding-left: 5px;
        margin-left: 0;
    }

    .dropdown-content a:nth-child(2){
        padding-left: 5px;
    }

    /* Hover sobre enlaces */
    .dropdown-content a:hover {
        background-color: rgb(18, 61, 108);
    }

    /* Mostrar el menú cuando se active */
    .dropdown.show .dropdown-content {
        display: block;
    }

    header .image-container2{
        display: none;
    }

    #sidebar {
        position: static;         
        transform: none;      
        margin-left: 12%;           
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 0;
        height: auto;
        width: auto;              
      }

    #menu-toggle{
        display: none;
    }

}