header{
    padding: 1em;
    color: white;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: black;
}
.logo{
    width: 20%;
    padding: 1em;
}
.Conversion{
    animation: CambiarColorAmarillo 2s infinite alternate;
}
.menu{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    list-style: none;
    }

.menu li a {
    color: white;
    text-decoration: none;
    transition: color 1s;
    border: 2px solid rgb(255, 234, 0);
    animation: colorChange 2s infinite alternate;
    padding:1em;
    animation: CambiarColoraRojo 2s infinite alternate;
}
.menu li a:hover{
    color: yellow;
    transition: color 0,3s;
}
.menuDesplegable {
    display: none;
}
    /*Animacion basica*/
 @keyframes CambiarColoraRojo {
    from {
        border-color: rgb(255, 0, 0);
    }
    to {
        border-color: yellow;
    }
}
@keyframes CambiarColorAmarillo {
    from {
        color: rgb(255, 255, 255);
    }
    to {
        color: yellow;
    }
}

.creador{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    margin: auto;
}
footer{
    color: white;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    position: sticky;
    bottom: 0;
}
/*ocultamos las opciones secundarias para ahorrar espacio*/
@media screen and (max-width: 950px) {
    .menu li:nth-child(3),.menu li:nth-child(4) {
        display: none;
    }

    footer p, footer label{
        font-size: 18px;
    }
}

/* Ajustes para pantallas menores de 600px */
@media screen and (max-width: 600px) {
    .menu:before/*Ponemos el logo antes del menu*/ {
        content: url("../img/UTY LogoMini.png");
        display: block;
        height: auto;
        margin: 1em;
        margin-left: 0;
        
    }
    .menu {
        display: none; /* Ocultar el menú por defecto */
        flex-direction: column;
        background-color: black;
        position: absolute;
        top: 30px;
        width: 200px;
        height: 100vh; /* Ocupa todo el alto del navegador */
        justify-content: center; /* Centra los elementos horizontalmente */
        align-items: center; /* Centra los elementos verticalmente */
        border: 1px solid white;
        justify-content: flex-start; /* Alinear las opciones hacia la parte superior */
        align-items: flex-start; /* Alinear los elementos hacia la parte superior */
        margin-top: 1em;
    }

    .menu.mostrar {
        display: flex; /* Hacer que el menú funcione */
    }
    /*Terminamos de ajustar correctamente el menu*/
    .menu li:nth-child(1){
        margin-top: 2em;
    }
    .menu li {
        text-align: center;
        border-bottom: 1px solid white;
        margin: none;
        padding: 0;
        
    }

    .menu li a {
        display: block;
        width: 120px;
        color: white;
        text-decoration: none;
    }

    .menu li a:hover {
        background-color: yellow;
        color: black;
    }

    .menuDesplegable {
        display: block; /* Mostrar el botón de menú */
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        top: 10px;
        left: 10px; 

    }
    /*Mostramos los hijos de nuevo*/
    .menu li:nth-child(3),.menu li:nth-child(4) {
        display: flex;
    }
    footer p,footer label{
        font-size: 12px;
    }
    .logo{
        display: none;
    }
    header{
        padding-top:2em;
        padding-right:0em;
    }
}
