html, body {
    width: 100%;
    overflow-x: hidden;
}

.act-horarios-form {
    text-align: center;
    background-color: transparent;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 5px 0;
}

.form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: nowrap; 
}

.select-container {
    width: 48%;
}

select {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 18px;
    color: #333;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

select:focus {
    background-color: #fff;
    outline: none;
}

label {
    font-size: 18px;
    font-weight: bold;
    color: #2754A2;
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

button[type="submit"] {
    margin-top: 15px;
    padding: 15px 25px;
    font-size: 16px;
    background-color: #2754A2 !important;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #F0652B !important;
}

#swap {
    background-color: #2754A2;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#swap:hover {
    background-color: #F0652B;
    transition: all .3s;
    border-radius: 50px;
    color: white;
}

.select2-container--default .select2-selection--single {
    width: 100%;
    height: 100%;
    border: none !important;
    border-bottom: 3px solid #F0652B !important;
}

.elementor-109 .elementor-element.elementor-element-1eff16b2 > .elementor-element-populated {
    padding: 10px 10px 10px 10px !important;
}

.origen-form, .destino-form {
    font-size: 18px;
    font-weight: bold;
    color: #2754A2 !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
    text-align: left;
    margin-left: 10px !important;
    letter-spacing: 3px !important;
}

.origen-form {
    margin-top: 0;
}

.destino-form {
    margin-top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #2754A2 transparent transparent transparent !important;
}

/* Filtro avanzado y Resultados */	

.resultados-busqueda h1, .filtros-avanzados h3, .resultados-titulo {
    color: #2754A2 !important; 
    letter-spacing: 2px;
    font-weight: bold;
    text-align: left;
    font-size: 30px !important;
}

.resultados-busqueda h2 {
    font-size: 30px !important;
}

.filtros-avanzados {
    margin-bottom: 30px;
}

.filtros-avanzados form {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.filtros-avanzados .filtros-selectores {
    display: flex;
    gap: 20px;
    width: 100%;
}

.filtros-avanzados label {
    font-size: 16px;
    font-weight: bold;
    color: #2754A2;
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

.filtros-avanzados select {
    width: 100%;
    /*max-width: 200px;*/
    padding: 10px;
    border-radius: 5px;
    border-bottom: 3px solid #F0652B !important;
    background-color: #fff !important;
    font-size: 16px;
}

.filtros-avanzados button[type="submit"] {
    width: 100%;
    max-width: 200px;
    background-color: #2754A2;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.filtros-avanzados button[type="submit"]:hover {
    background-color: #F0652B;
    border-radius: 50px;
}

.tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    border: 1px solid #ddd;
}

.tabla-resultados th, .tabla-resultados td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabla-resultados th {
    background-color: #2754A2;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.tabla-resultados tr:hover {
    background-color: #f4f4f4;
}

.tabla-resultados td {
    font-size: 14px;
    color: #333;
}

.tabla-resultados td:first-child, .tabla-resultados th:first-child {
    text-align: center;
}

.volver-atras {
    margin-top: 30px;
    text-align: center;
}

.volver-atras button {
    background-color: #F0652B;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.volver-atras button:hover {
    background-color: #c9511d;
}

label.filtro-label {
    font-size: 18px;
    font-weight: bold;
    color: #2754A2;
    display: inline-flex;
    align-items: center; 
    justify-content: flex-start;   
}


@media (max-width: 1024px) {
    .form-container {
        justify-content: center;
        gap: 20px;
    }

    .filtros-avanzados select {
        width: 48%;
    }

    .filtros-avanzados button[type="submit"] {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }

    .tabla-resultados th,
    .tabla-resultados td {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .form-container {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .select-container {
        width: 100%;
    }

    select {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    button[type="submit"] {
        font-size: 14px;
        width: 100% !important;
        padding: 12px;
    }

    #swap {
        font-size: 22px;
        width: 100%;
        padding: 12px;
    }

    .tabla-resultados {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        table-layout: auto;
        display: block;
    }

    .tabla-resultados th, .tabla-resultados td {
        font-size: 12px;
        padding: 10px;
        min-width: 100px;
    }

    .tabla-resultados th {
        font-size: 14px;
    }

    .tabla-resultados td:first-child, .tabla-resultados th:first-child {
        text-align: center;
    }

    .tabla-resultados th:nth-child(n+5), 
    .tabla-resultados td:nth-child(n+5) {
        display: table-cell;
    }
    .filtros-avanzados form {
        flex-direction: column;
    }

    .filtros-avanzados select {
        width: 100%; 
        margin-bottom: 10px;
    }

    .filtros-avanzados button[type="submit"] {
        width: 100%; 
        margin-top: 15px;
    }
    h2.resultados-titulo {
        font-size: 18px !important; 
    }
    .submit-container {
        width: 100%;
    }
    .filtros-avanzados .filtros-selectores {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%; 
    }

    .filtros-avanzados .filtros-selectores > * {
        width: 100%; 
    }

}

@media (max-width: 480px) {
    .filtros-avanzados select {
        font-size: 12px;
        padding: 8px;
    }

    .filtros-avanzados button[type="submit"] {
        font-size: 12px;
        padding: 10px;
    }

    .tabla-resultados th, .tabla-resultados td {
        font-size: 10px;
        padding: 8px;
    }

    .tabla-resultados th:nth-child(n+4), 
    .tabla-resultados td:nth-child(n+4) {
        display: table-cell;
    }
    .filtros-avanzados select {
        font-size: 14px;
        padding: 8px;
    }

    .filtros-avanzados button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
    .filtros-avanzados .filtros-selectores {
        display: flex;
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
    }
    .filtros-avanzados .filtros-selectores > * {
        width: 100%; 
    }
}
/* Estilos formulario de contacto */
form.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form.wpcf7-form h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.cf7-form-group {
    margin-bottom: 15px;
}

.cf7-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}
.cf7-input-text, .cf7-input-textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.cf7-input-text:focus, .cf7-input-textarea:focus {
    border-color: #2754A2;
}
.cf7-submit-btn {
    background-color: #2754A2 !important;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
}

.cf7-submit-btn:hover {
    background-color: #F0652B !important;
}
/* Ajuste a logo de footer */
.img-logo-footer img {
    max-width: 250px;
    height: auto;
}

