*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    
    text-align: center;
}

nav {
    background-color: black; 
    color: white;
    padding: 5px 20px;
    display: flex;
    align-items: center; /* Centra los elementos verticalmente */
    position: relative; /* Necesario para que el h2 se centre respecto al nav */
}

nav img {
    width: 220px;
    height: 80px;
}

nav h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Lo coloca exactamente en el centro */
    margin: 0;
}
main img{
    margin-top: 40px;
    width: 600px;
    height: 600px;
}
img{
    width: 60px;
    height: 60px;
}

.titulo{
    text-align: center;
    font-weight: bold;
}

footer{
    margin: auto;
    background-color: black;
    text-align: center;
    align-content: center;
    height: 10%;
    color: white;
    margin-top: 5%;

    & div a{
            color: white;
           text-decoration: none; 
        }
}

#login,#registro{
    margin-top: 20px;
    background-color: #ffcc00;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

#login:hover,#registro:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: black; 
}

.lenguaje {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical exacto */
    display: flex;
    align-items: center;
    gap: 10px;
}

.bandera {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
}

.bandera img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.bandera:hover {
    opacity: 1;
}

.bandera--activa {
    opacity: 1;
    transform: scale(1.3);
}

.bandera--activa img {
    box-shadow: 0 0 0 2px white;
}