header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;/* Altura de la barra */
}

#checkbox2 {
    display: none;
}

.toggle2 {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition-duration: .5s;
}

.bars {
    width: 100%;
    height: 6px;
    background-color: #00AD57;
    border-radius: 6px;
}

#bar5 {
    transition-duration: .8s;
}

#bar4,
#bar6 {
    width: 80%;
}

#checkbox2:checked+.toggle2 .bars {
    position: absolute;
    transition-duration: .5s;
}

#checkbox2:checked+.toggle2 #bar5 {
    transform: scaleX(0);
    transition-duration: .5s;
}

#checkbox2:checked+.toggle2 #bar4 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s;
}

#checkbox2:checked+.toggle2 #bar6 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}

#checkbox2:checked+.toggle2 {
    transition-duration: .5s;
    transform: rotate(180deg);
}

/* Animacion del burger */
#checkbox2:checked~.burger-menu {
    transform: translateX(0);
    /* Activa el menú cuando se selecciona */
}


/* Mostrar burger y ajustar logo en móviles */
@media (max-width: 768px) {
    .menu ul {
        display: none;/* Oculta las secciones estándar del menú */
    }

    .main-header {
        padding: 0.5rem;
    }

    .main-header .logo {
        margin-top: 2rem;
    }

    /* Ocultar los textos ES y EN */
    .languages {
        display: none;
    }

    .burger-menu {
        position: fixed;
        top: 9.69%;
        right: 0rem;
        height: 100%;
        width: 75%;
        background-color: #000;
        z-index: 1000;
        transform: translateX(100%);/* Fuera de la pantalla por defecto */
        transition: transform 0.3s ease-in-out;
        margin-top: 4.05rem;
    }

    .burger-menu.active {
        transform: translateX(0);/* Muestra el menú cuando está activo */
        margin-top: 4.05rem;
        right: -1rem;
    }

    .burger-menu ul {
        list-style: none;
        padding: 2rem;
        margin: 0;
    }

    .burger-menu ul li {
        margin-bottom: 1rem;
    }

    .burger-menu ul li a {
        color: white;
        font-size: 1.2rem;
        text-decoration: none;
        transition: color 0.3s;
    }

    .burger-menu ul li a:hover {
        color: #00AD57;
    }

    .main-header .logo img {
        max-width: 70%;/* Ajusta el tamaño según sea necesario */
        height: auto;/* Mantén la proporción */
        margin: 0 auto;
    }

    .trapezoid {
        margin-right: -2.58rem;
        height: 80%;
        width: 117%;
    }

    .playstore-button {
        padding: 0.265rem 1.2rem;
        margin-left: 0.2rem;
    }
    
    .playstore-button:hover {
        background-color: #ffffff;
        color: rgba(0, 0, 0, 1);
    }

    .icon {
        height: 1rem;
        width: 1rem;
    }

    .slider {
        margin-top: 36%;/* Desplaza el slider para evitar superposición */
        height: 28rem;
        position: sticky;
        z-index: 999; /* Asegura que el slider esté por encima de otros elementos */
    }

    .slider img {
        height: 100%;
        width: auto;
    }

    .info {
        max-width: 100%;
        height: 130%;
        left: 0%;
        scale: 0.72;
        margin-top: -15%;
    }

    .info button {
        scale: 1.3;
        margin-left: 9.7rem;
    }

    .button {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .button:before,
    .button:after {
        display: none;
    }

    .links-container {
        clip-path: polygon(10% 0%, 93% 0%, 80% 164%, 0% 106%);
        margin-left: 1.5rem;
    }

    /* Ajustar ícono de traducción */
    .translate-icon {
        display: none; /* Cambiar a block despues de hacer las secciones en diferentes idiomas*/
        position: relative;
        margin-right: auto;
        margin-left: 10px;
        align-items: center;
        justify-content: center;
    }

    .translate-icon img {
        width: 52px;/* Tamaño del ícono en móviles */
        height: auto;
        align-items: center;
    }

    /* Ocultar texto centrado y redes sociales */
    .top-bar span,
    .social-login-icons {
        display: none;
    }

    .info-section {
        padding: 2rem;
    }

    .info-content {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        max-width: 100%;
        margin-bottom: -2rem;
    }

    .text-container {
        max-width: 100%;
    }

    .app-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .app-buttons {
        margin-bottom: 1rem;
    }

    .playstore-button,
    .appstore-button {
        padding: 0.5rem 0.8rem;
    }

    .icon {
        height: 1.5rem;
        width: 1.5rem;
    }

    .texts {
        font-size: 0.9rem;
    }
    
    .drivers-banner .banner-content{
        margin-top: 40%;
    }

    .contact-form {
        margin-top: 40%;
    }
    
    .contact-form h1 {
        margin-left: 33%;
    }

    .contact-form .contacto-info a {
        text-decoration: none;
        color: #00AD57;
    }

    .contact-form .contacto-info a:hover {
        color: #007f3d;/* Cambia a un tono diferente al pasar el mouse */
        text-decoration: underline;/* Opcional: agrega subrayado al pasar el mouse */
    }

    .contact-form .contacto-visual h2,
    .contact-form .contacto-visual p {
        margin-left: 5%;
    }
}

/* Ocultar burger en resoluciones superiores a móviles */
@media (min-width: 768px) {
    #bar4, #bar5, #bar6 {
        display: none;
    }
    
    .toggle2 {
        display: none;/* Oculta la burger en pantallas mayores */
    }

    .menu ul {
        display: flex;
        /* Asegura que el menú completo sea visible en desktop */
        gap: 2rem;
        justify-content: flex-end;
    }

    .languages {
        display: flex;
        /* Mostrar los textos ES y EN */
        justify-content: space-between;
    }

    .translate-icon {
        display: none;
        /* Ocultar el ícono de traducción */
    }

    .contact-form {
        position: relative;
        width: 100%;
        height: 450px;
        overflow: hidden;
        background-color: black;
        margin-top: 10%;
    }

    .contact-form h1 {
        margin-left: 45%;
    }

    .contact-form .contacto-info a {
        text-decoration: none;
        color: #00AD57;
    }

    .contact-form .contacto-info a:hover {
        color: #007f3d;/* Cambia a un tono diferente al pasar el mouse */
        text-decoration: underline;/* Opcional: agrega subrayado al pasar el mouse */
    }

    .contact-form .contacto-visual h2,
    .contact-form .contacto-visual p {
        margin-left: 30%;
    }
}