/* Dispositivos móviles */
@media only screen and (max-width: 600px) {
    header {
        padding: 20px 20px !important;
    }

    .index-hero {
        padding: 130px 0 70px !important;
    }

    .index-content {
        margin: 0 !important;
    }

    .text-content h1{
        font-size: 40px !important;
    }

    hr {
        display: none;
    }

    .feature.movil3 {
        padding-left: 10% !important;
    }

    #nueva-noti {
        margin-left: 12%;
    }

    .index-stats {
        display: none !important;
    }

    .feature.fade-in.orden {
        margin-left: -40px !important;
        margin-top: -50px;
        margin-bottom: -120px !important;
        order: -1; /* Coloca el div con la clase fade-in arriba */
    }

    .index-image {
        display: none !important;
    }

    #trabajamos-con {
        font-size: 30px !important;
        text-align: center !important;
    }

    .empresas img {
        width: 150px !important;
    }

    .catalogo img {
        width: 350px !important;
        padding: 0 !important;
    }

    .catalogo {
        margin-top: -30px !important;
        padding: 0 !important;
    }

    .hero {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .content-container {
        width: 90% !important; 
    }

    .hero.movil {
        text-align: center;
    }

    .hero.movil1 h1 {
        font-size: 35px !important;
    }

    .content-group.detalles {
        flex: 0 0 90%; /* En móviles ocupa el 90% del ancho */
        flex-direction: column; /* Los elementos se apilan uno encima del otro */
        align-items: center; /* Centra el contenido */
    }

    .content-group.detalles img {
        order: -1;
        width: 80% !important;
    }

    .hero.movil h1 {
        width: 100%;
        font-size: 23px; /* Ajusta el tamaño de la fuente si es necesario */
        margin-bottom: 20px; /* Añade espacio entre el título y el botón */
    }

    .ico-cert {
        margin-bottom: 5%;
    }

    .hero.detalles {
        margin-top: -55% !important;
    }

    .contact-header {
        display: none;
    }

    .faq-item {
        padding: 3% !important;
    }

    .features {
        flex-direction: column !important;
        align-items: center !important;
        padding: 30px 20px !important;
    }

    .features.movil2 {
        margin-top: -135px !important;
    }

    .features.cert {
        text-align: center;
    }
    
    .features.cert h1 {
        width: 100%;
        font-size: 24px; /* Ajusta el tamaño de la fuente si es necesario */
        margin-bottom: 20px; /* Añade espacio entre el título y el botón */
    }

    .feature {
        margin-bottom: 40px !important;
        padding: 30px !important;
    }

    .features.numeros {
        margin-left: 10%;
        align-items: flex-start !important;
    }

    .certificaciones img {
        width: 18% !important; 
        max-width: 80px !important; 
    }

    .feature-vehiculos {
        margin: 0 !important;
    }

    .feature:last-child {
        margin-bottom: 0 !important;
    }

    #empleos2 {
        font-size: 35px !important;
    }

    .two-columns-section {
        flex-direction: column;
    }
    
    .column {
        width: auto !important;
    }

    .faq-container {
        margin: 0 !important;
        padding: 10px !important;
        margin: auto !important;
        margin-bottom: 40px !important;
    }

    #form-contacto {
        width: 100% !important;
        padding: 0 !important;
        margin-top: -50px !important;
        margin-bottom: 40px !important;
    }

    .faq-question {
        align-items: center;
    }

    .faq-icon {
        margin: 5px !important;
    }

    /* Menú hamburguesa */
    .menu {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-content {
        display: flex !important;
        align-items: center !important;
    }

    .lang-hamb {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 40px !important;
    }

    .anim1 {
        margin-bottom: -100px !important;
    }

    .anim1 img {
        width: 300px !important;
    }

    .news-column {
        flex-direction: column-reverse !important;
    }

    .news-column img {
        width: 300px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .news-text {
        padding: 10px !important;
    }

    .modal-content{
        margin: 5%;
        font-size: 15px;
    }

}
  
/* Tablets */
@media only screen and (min-width: 601px) and (max-width: 1080px) {
    .menu {
        padding: 0 !important;
    }

    .index-content {
        margin: 0 !important;
        padding: 0 80px !important;
    }

    .index-image {
        display: none !important;
    }

    .catalogo {
        padding-right: 50px !important;
    }

    .empresas {
        gap: 50px !important;
    }

    .features {
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 40px !important;
    }

    .feature {
        margin-bottom: 60px !important;
    }

    .feature-vehiculos {
        margin: 0 !important;
    }

    .feature:last-child {
        margin-bottom: 0 !important;
    }

    form {
        margin-top: -45px !important;
    }

    .faq-container {
        width: 80% !important;
    }

    .anim1 {
        margin-bottom: -70px !important;
    }
}
  
/* Animaciones */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dropdownOpen {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Estilos */
body {
    height: 100vh;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    position: fixed;
    background-color: #fff;
    padding: 20px 40px;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
    box-sizing: border-box;
    z-index: 1000; 
    height: 125px; 
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff6600;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px; 
    position: relative;
}

.lang img {
    width: 45px; 
}

.lang p {
    margin: 0;
    font-weight: 600; 
}

/* Estilos del menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
}

/* Menú desplegable para móviles */
.mobile-menu {
    display: none; 
    position: absolute;
    top: 90px; 
    right: 0;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.show {
    display: block;
    animation: dropdownOpen 0.3s forwards;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li a {
    padding: 15px 23px;
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.mobile-menu li a:hover {
    border-radius: 5px;
    background-color: #f1f1f1;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 160px 0 60px 0; 
    background-color: #fff;
}

.hero-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    padding: 0 40px;
}

.text-content {
    flex: 1;
    animation: slideInDown 1s ease-out forwards;
    opacity: 0;
}

.text-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.ctaa {
    padding: 15px 40px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.ctaa-other-web {
    padding: 15px 40px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.ctaa-other-web a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stats div {
    text-align: center;
}

.index-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.index-stats div {
    text-align: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInDown 1s ease-out forwards;
    opacity: 0;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 60px 40px;
    /* background-color: #f0f0f0; */
}

.feature {
    text-align: center;
    max-width: 600px;
}

.feature h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.enhancements {
    padding: 60px 40px;
    text-align: center;
    background-color: #fff;
}

.enhancements h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.enhancement-options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.enhancement {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    width: 180px;
    font-weight: 600;
}

.trabajamos-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    margin-top: 70px;
    margin-left: 50px;
    margin-right: 50px;
    border-radius: 15px;
    background-color: #f1f1f1;
}

.animate-h1 {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s, transform 1s;
}

.animate-h1.animate {
    animation: slideInTop 1s ease-out forwards;
}

.empresas {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
    margin-top: 25px;
}

.empresas img {
    width: 150px;
    object-fit: contain;
}

.animate-h2 {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s, transform 1s;
}

.animate-h2.animate {
    animation: slideInTop 1s ease-out forwards;
}

footer {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 40px;
    background-color: #333;
    color: #fff;
    text-align: center;
    margin-top: auto;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 130%;
    left: -11px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 100px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
    display: block;
    animation: dropdownOpen 0.3s forwards;
}

.dropdown-content a {
    padding: 15px 23px;
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.dropdown-content a:hover {
    border-radius: 5px;
    background-color: #f1f1f1;
}

.language-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 2px; 
}

.language-link img {
    width: 25px;
    margin-top: -2.3px;
    border-radius: 25px;
    vertical-align: middle; 
}

.lang-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: black;
}

.contact-header {
    width: 90%;
    height: 90%;
    margin-right: 25px;
    margin-left: 25px;
    padding: 20px 60px 60px;
    border-radius: 15px;
    color: white;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)), 
        url('../flota.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.faq-container {
    width: 90%;
    margin: 50px auto 45px auto;
    background-color: #00000009;
    border-radius: 25px;
    padding: 20px 60px;
}

.faq-container h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #212529;
}

.titulo-faq {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s, transform 1s;
    padding: 15px 20px; 
    border-radius: 12px;
}

.titulo-faq.animate {
    animation: slideInTop 1s ease-out forwards;
}

.faq-item {
    padding: 20px 0;
}

.faq-item:first-of-type {
    border-top: none;
}

.faq-question {
    display: flex;
    font-size: 1.2em;
    cursor: pointer;
    color: #212529;
}

.faq-question span {
    font-weight: bold;
    margin-right: 25px;
    font-size: 40px;
    font-family: 'Michroma', sans-serif;
}

.faq-answer {
    margin-top: 15px;
    font-size: 1em;
    line-height: 1.5;
    color: #6c757d;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px; 
}

.faq-icon {
    font-size: 1.5em;
    color: #ff6600;
    margin-left: auto;
    transition: transform 0.3s ease;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%; 
    margin: 0 auto; 
}

label {
    margin-top: 30px;
    margin-bottom: 5px;
    font-weight: bold; 
    text-align: left;
    width: 100%;
}

input[type="text"],
textarea {
    width: 100%;
    height: 50px;
    padding: 10px;
    margin-bottom: 20px; 
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

input[type="password"],
textarea {
    width: 100%;
    height: 50px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

textarea {
    height: 200px; 
    resize: none; 
}

.two-columns-section {
    display: flex;
    justify-content: space-around; 
    gap: 40px;
}

.column {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.content-group {
    display: flex;
    align-items: center; 
}

.content-group img {
    width: 30px; 
    height: auto;
    margin-right: 20px;
}

.content-group p {
    flex: 1; 
    font-size: 14px;
    line-height: 1.5;
}

.content-group.contacto {
    display: flex;
    align-items: center; 
}

.content-group.contacto img {
    width: 30px; 
    height: auto;
    margin-right: 20px;
}

.content-group.contacto p {
    flex: 1; 
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.sobre-nosotros-img {
    width: 100%;
    border-radius: 12px;
}

.tooltip-container {
    position: relative;
    transition: all 0.2s;
    font-size: 15px;
    padding: 1rem 0;
    width: fit-content;
    box-sizing: border-box;
    --bg: linear-gradient(135deg, #a940fd, #5b46e8);
    --color: #fff;
    --tooltip-bg: #303030;
    --tooltip-color: #fff;
    --margin: 0.5rem;
}
  
.tooltip {
    position: absolute;
    top: calc(-1 * var(--margin));
    left: 50%;
    transform: translateX(-50%) translateY(0%) scale(0);
    padding: 0.5em 0.6em;
    width: 155px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    background: var(--tooltip-bg);
    color: var(--tooltip-color);
    border-radius: 0.5rem;
    z-index: 99999;
}
  
.tooltip::before {
    position: absolute;
    content: "";
    height: 0.6em;
    width: 0.6em;
    bottom: -0.2em;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    background: var(--tooltip-bg);
    border-bottom-right-radius: 0.175rem;
}
  
.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-100%) scale(1);
}
  
.inline {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}   

.inline p {
    margin-left: 10px; 
    margin-top: 18px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px 30px 60px 30px;
    border-radius: 10px;
    text-align: center;
}

.modal.fade-in {
    animation: fadeIn 0.5s forwards;
}

.modal.fade-out {
    animation: fadeOut 0.5s forwards;
}

.close {
    display: flex;
    justify-content: flex-end;
    font-size: 3vh;
    color: #ff6600;
    cursor: pointer;
}
