body { 
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: left;
}

.traductor {
    display: flex;
    flex-direction: right;
    justify-content: left;
    align-items: center;
    color: #fff;
    margin-right: 20px;
}

.espacio {
    margin-right: 10px;
}

.bandera{
    margin-left: 10px;
    width: 30px;
    height: 20px;
}

.nav-links {
    display: flex;
    flex-direction: right;
    list-style-type: none;
    justify-content: right;
    margin: 0;
    padding: 0;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 5px;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 4px 0px;
}

.menu li a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    padding: 5px 5px;
    transition: 0.3s;
}

.menu li :hover {
    background-color: #007bff;
    border-radius: 5px;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-links li {
    margin-right: 10px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
}

.idiomas{
    display: flex;
    justify-content: left;
    align-items: left;
    width: 20px;
    height: 15px;
}

header {
    background-color: #003399;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-weight: bold;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: left 0.5s ease-in-out;
}

header:hover::after {
    left: 100%;
}
    /*Header lo de arriba*/

main {
    margin: 15px;
}

h1, h2 {
    color: #007bff;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background-color: #218838;
}

footer {
    background-color: #003399;
    padding: 10px;
    text-align: center;
}

footer a{
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

footer p {
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.social-icons i {
    color: #fff;
    margin: 0 5px;
    font-size: 24px;
}


.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 10px;
    display: none;
    text-align: center;
}

.cookie-popup button {
    background: #007bff;
    margin: 10px;
}

.cookie-popup button:hover {
    background: #0056b3;
}

@media screen and (max-width: 800px) {
    body{
        padding: 10px;
    }
    header nav {
        flex-direction: column;
    }

    .nav-links {
        position: static;
        right: 0px;
        height: 450px;
        margin-top: 10px;
        background-color: #003399;
        display: none;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .contenido h1 {
        font-size: 1.5em;
    }

    .boton-cta {
        font-size: 0.9em;
    }

    .burger {
        margin-top: 10px;
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu li {
        margin: 10px 0;
    }
}

.nav-active {
    display: flex;
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.active .line2 {
    opacity: 0;
}

.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}