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;
}

#inicio {
    text-align: center;
    padding: 100px 20px;
    background: #333;
    background-size: cover;
    background-position: center;
    color: #fff;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.eslogan {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.contenedor-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.texto-cta {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.boton-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffd700;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.boton-cta:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.texto-boton {
    margin-right: 10px;
}

.boton-cta i {
    transition: transform 0.3s ease;
}

.boton-cta:hover i {
    transform: translateX(5px);
}

.contenido {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.imagen-coche {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.imagen-coche:hover {
    transform: scale(1.05);
}

.galeria{
    display: flex;
    flex-direction: right;
    flex-wrap: nowrap;
}

.imagen-info-coche {
    width: 25%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.imagen-info-coche:hover {
    transform: scale(1.05);
}

.caracteristicas {
    margin-top: 30px;
}

.caracteristicas h2 {
    font-size: 1.8em;
    color: #003399;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.caracteristicas h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffcc00;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.caracteristicas h2:hover::after {
    transform: translateX(0);
}

.elemento-caracteristica {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 20px;
}

.elemento-caracteristica::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease-in-out;
}

.elemento-caracteristica:hover::before {
    transform: scale(1.2);
}

.elemento-caracteristica strong {
    color: #003399;
}

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;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1300px) {
    .contenido {
        padding: 15px;
    }

    .imagen-coche {
        max-width: 100%;
    }

    .galeria {
        flex-wrap: wrap;
        justify-content: center;
    }

    .imagen-info-coche {
        width: 45%;
        margin: 10px;
    }
}

@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);
}
