* {
    font-family: 'Nunito', sans-serif;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    gap: 20px;
}

.formulario {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 450px !important;
    margin-left: 50px !important;
}

.btnComprar {
    max-width: 500px;
    text-align: center;
    margin: auto;
}

/* ──────────────────────────────────────────────────────────────
 *  Botón "Comprar tickets" + modal de selección de fecha
 *  Prefijo .btnComprar para ganar especificidad al reset.css del
 *  tema hello-elementor (mismo patrón que .sll-tabla más abajo).
 * ────────────────────────────────────────────────────────────── */
.btnComprar .btb-comprar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background-color: #f0f8e8;
    color: #8fc33a;
    border: 2px solid #8fc33a;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btnComprar .btb-comprar-trigger:hover,
.btnComprar .btb-comprar-trigger:focus {
    background-color: #8fc33a;
    color: #ffffff;
    border-color: #8fc33a;
}

.btnComprar .btb-comprar-trigger .btb-arrow {
    font-size: 18px;
    line-height: 1;
}

.btb-modal {
    width: min(420px, calc(100% - 32px));
    padding: 28px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    color: #002856;
    font-family: 'Nunito', sans-serif;
}

.btb-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.btb-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    line-height: 1;
    font-size: 20px;
    font-weight: 700;
    color: #c0392b;
    background: #ffffff;
    border: 1px solid #c0392b;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.btb-modal__close:hover,
.btb-modal__close:focus {
    background: #c0392b;
    color: #ffffff;
}

.btb-modal__title {
    margin: 0 0 6px;
    padding-right: 40px;
    font-size: 22px;
    font-weight: 800;
    color: #002856;
}

.btb-modal__subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6c757d;
}

.btb-modal__date {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #1d6fe0;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #002856;
    background: #ffffff;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.btb-modal__date:focus {
    outline: none;
    border-color: #1d6fe0;
    box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.2);
}

.btb-modal__cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #4caf50;
    color: #ffffff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.btb-modal__cta:hover,
.btb-modal__cta:focus {
    background: #3f9c43;
    color: #ffffff;
}

.btb-modal__cta[hidden] {
    display: none;
}

/* ──────────────────────────────────────────────────────────────
 *  Botonera "Nueva búsqueda" + "Descargar PDF"
 *  Prefijo .btb-acciones para ganar especificidad al reset.css
 *  del tema (que pinta los <button> en rosa #c36 por defecto).
 * ────────────────────────────────────────────────────────────── */
.btb-acciones {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btb-acciones .btb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 50px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btb-acciones .btb-btn:hover {
    transform: translateY(-1px);
}

.btb-acciones .btb-btn-back,
.btb-acciones .btb-btn-back:hover,
.btb-acciones .btb-btn-back:focus,
.btb-acciones .btb-btn-back:active {
    background: #8fc33a;
    color: #ffffff;
    border: none;
}

.btb-acciones .btb-btn-back {
    box-shadow: 0 4px 12px rgba(143, 195, 58, 0.3);
}

.btb-acciones .btb-btn-back:hover,
.btb-acciones .btb-btn-back:focus {
    background: #7db032;
    box-shadow: 0 6px 18px rgba(143, 195, 58, 0.4);
}

.btb-acciones .btb-btn-pdf,
.btb-acciones .btb-btn-pdf:hover,
.btb-acciones .btb-btn-pdf:focus,
.btb-acciones .btb-btn-pdf:active {
    background: #002856;
    color: #ffffff;
    border: none;
}

.btb-acciones .btb-btn-pdf {
    box-shadow: 0 4px 12px rgba(0, 40, 86, 0.3);
}

.btb-acciones .btb-btn-pdf:hover,
.btb-acciones .btb-btn-pdf:focus {
    background: #001a3c;
    box-shadow: 0 6px 18px rgba(0, 40, 86, 0.4);
}

.btb-acciones .btb-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 16px;
}

.btb-acciones .btb-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ──────────────────────────────────────────────────────────────
 *  Versión imprimible (Descargar PDF usa window.print)
 * ────────────────────────────────────────────────────────────── */
@media print {
    .btb-comprar-trigger,
    .btb-acciones,
    .btn-back,
    .btb-modal,
    .btnComprar {
        display: none !important;
    }

    .resultados-busqueda {
        width: 100% !important;
    }

    .resultado {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        background: #ffffff !important;
    }
}

.tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.tab-buttons {
    display: flex;
    align-items: center;
}

.resultados-busqueda h2 {
    font-family: "Raleway", Sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
}

.encabezado {
    color: black;
    font-weight: 800;
    font-size: 14px;
}

.tablink {
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    text-align: left;
    color: #aaa;
    transition: color 0.3s;
}

.tablink.active {
    color: #002856;
    font-weight: bold;
}

.switch-group {
    display: flex;
    align-items: center;
}

.switch-group .label-icon {
    margin-right: 10px;
    color: #aaa;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #8fc33a;
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.input-group {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background-color: #fff;
}

.label-icon {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 5px;
}

.label-icon img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-container img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.destino-container {
    position: relative;
}

.destino-container .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    margin: 0;
}

.destino-container .select2-container {
    width: 100% !important;
}

.destino-container .select2-container--default .select2-selection--single {
    height: auto;
    padding: 6px 32px 6px 0;
    background: transparent;
    border: 1px solid #d9e0e6 !important;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.destino-container .select2-container--default .select2-selection--single:hover,
.destino-container .select2-container--default.select2-container--focus .select2-selection--single,
.destino-container .select2-container--default.select2-container--open .select2-selection--single {
    border: 1px solid #8fc33a !important;
    box-shadow: 0 0 0 3px rgba(143, 195, 58, 0.15);
}

.destino-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    color: #002856;
    font-size: 16px;
    line-height: 1.4;
}

.destino-container .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #7a7a7a;
}

.destino-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.destino-container .select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 28px;
    color: #aaa;
}

.select2-container--default .select2-results__option {
    background-color: #ffffff;
    color: #002856;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
    font-size: 15px;
}

.select2-container--default .select2-results__option:last-child {
    border-bottom: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f3f8ea !important;
    color: #002856 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f3f8ea !important;
    color: #002856 !important;
}

.formulario select:hover,
.formulario select:focus {
    background-color: transparent;
}

.travel-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.formulario .travel-type-btn {
    border: 1px solid #8fc33a;
    background-color: #f0f8e8;
    color: #8fc33a;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.formulario .travel-type-btn:hover:not(.active),
.formulario .travel-type-btn:focus:not(.active) {
    background-color: #f0f8e8;
    color: #8fc33a;
    border-color: #8fc33a;
}

.formulario .travel-type-btn.active,
.formulario .travel-type-btn.active:hover,
.formulario .travel-type-btn.active:focus {
    background-color: #8fc33a;
    color: #ffffff;
    border-color: #8fc33a;
}


select,
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: #002856;
    outline: none;
    box-sizing: border-box;
}

.select2-container--default .select2-selection--single {
    border: none !important;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
    background-color: #ffffff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    color: #002856;
    outline: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('assets/icons/arrow-down.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

input[type="date"] {
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    outline: 0;
    padding: .75rem;
    position: relative;
    width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="submit"] {
    background-color: #8fc33a;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #7cb030;
}

.resultados-busqueda {
    width: 1000px;
}

.resultados-busqueda .resultado {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.resultados-busqueda .resultado-detalles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    width: 180px;
}

.resultados-busqueda .icono-tipo {
    max-width: 100px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.resultados-busqueda .icono-tipo img {
    max-width: 100%;
    height: auto;
}

.resultados-busqueda .logo-bus {
    max-height: 28px;
    width: auto;
}

.resultados-busqueda .resultado-cuerpo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.resultados-busqueda .resultado-trayecto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.resultados-busqueda .resultado-ciudad {
    color: #002856;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.resultados-busqueda .resultado-linea {
    flex: 0 0 70px;
    position: relative;
    border-top: 2px dashed #8fc33a;
    height: 0;
}

.resultados-busqueda .resultado-bus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0 6px;
    line-height: 0;
    display: block;
}

.resultados-busqueda .resultado-bus-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.resultados-busqueda .resultado-tiempos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.resultados-busqueda .resultado-hora {
    color: #002856;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
    margin: 0;
}

.resultados-busqueda .resultado-hora--salida,
.resultados-busqueda .resultado-hora--llegada {
    flex-shrink: 0;
}

.resultados-busqueda .resultado-hora--llegada {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resultados-busqueda .resultado-duracion {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.resultados-busqueda .resultado-next-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8fc33a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

.resultados-busqueda .dias-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
}

.resultados-busqueda .dia {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    font-size: 9px;
    color: white;
    flex-shrink: 0;
}

/* Estilos heredados (mantener por compatibilidad con resto del plugin) */

.ciudad {
    font-size: 18px;
    color: #002856;
    font-weight: bold;
}

.tipo {
    font-size: 14px;
    color: #aaa;
}

.resultado-icono {
    display: none;
}

.resultado-icono img {
    width: 125px;
    height: auto;
}

.resultado-paradas {
    color: #8fc33a;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.resultado-paradas .arrow-down {
    border: solid #8fc33a;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 5px;
    transform: rotate(45deg);
}

.resultado-comprar {
    background-color: #8fc33a;
    border: none;
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
}

/* Nuevos estilos para Salidas y Llegadas */

@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 0 12px;
        margin-top: 18px;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .formulario {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0;
        padding: 14px;
        box-sizing: border-box;
    }

    .formulario .input-group {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .formulario .label-icon {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .formulario .label-icon img {
        width: 18px;
        height: 18px;
    }

    .formulario select,
    .formulario input[type="date"] {
        padding: 8px;
        font-size: 15px;
    }

    .formulario input[type="submit"] {
        padding: 12px 16px;
        font-size: 15px;
    }

    .resultados-busqueda {
        width: 100%;
    }

    .resultados-busqueda h2 {
        font-size: 1.5rem;
        margin: 18px 0 12px;
    }

    /* Tarjeta apilada verticalmente: logo, días, trayecto, tiempos */
    .resultados-busqueda .resultado {
        flex-direction: column;
        align-items: center;
        padding: 14px 12px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .resultados-busqueda .resultado-detalles {
        width: auto;
        flex-direction: column;
        gap: 6px;
    }

    .resultados-busqueda .icono-tipo {
        max-width: 90px;
    }

    .resultados-busqueda .logo-bus {
        max-height: 24px;
    }

    .resultados-busqueda .dias-container {
        gap: 2px;
    }

    .resultados-busqueda .dia {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 8px;
    }

    .resultados-busqueda .resultado-cuerpo {
        width: 100%;
        gap: 6px;
    }

    .resultados-busqueda .resultado-trayecto {
        gap: 8px;
        width: 100%;
    }

    .resultados-busqueda .resultado-ciudad {
        font-size: 13px;
        flex-shrink: 1;
        min-width: 0;
    }

    .resultados-busqueda .resultado-linea {
        flex: 1 1 40px;
        min-width: 30px;
    }

    .resultados-busqueda .resultado-bus-icon svg {
        width: 16px;
        height: 16px;
    }

    .resultados-busqueda .resultado-tiempos {
        gap: 10px;
        width: 100%;
        justify-content: space-evenly;
    }

    .resultados-busqueda .resultado-hora {
        font-size: 17px;
    }

    .resultados-busqueda .resultado-duracion {
        font-size: 11px;
    }

    .resultados-busqueda .resultado-next-day {
        font-size: 9px;
        padding: 1px 5px;
    }

    /* Botonera de acciones se mantiene en fila pero compacta */
    .btb-acciones {
        gap: 10px;
        margin: 14px 0;
    }

    .btb-acciones .btb-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .btnComprar .btb-comprar-trigger {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Botón inferior heredado */
    .resultado-icono { margin: 20px 0; }
    .resultado-comprar { width: 80%; padding: 10px 20px; }
    .resultado-icono img { width: 100px; height: auto; }
}

/* ──────────────────────────────────────────────────────────────
 *  Tablet (769px – 1024px)
 *  El layout escritorio pone formulario (~500px) + resultados (1000px)
 *  en flex-row → requiere ~1520px y se desborda en iPad/portrait/landscape.
 *  Apilamos en columna y dejamos cada bloque al 100% del ancho disponible,
 *  manteniendo las tipografías mayores que en móvil porque hay sitio.
 * ────────────────────────────────────────────────────────────── */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 20px;
        box-sizing: border-box;
    }

    .formulario {
        width: 100% !important;
        max-width: 700px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .resultados-busqueda {
        width: 100%;
        max-width: 900px;
    }

    .sll-tabla {
        max-width: 100%;
    }

    .sll-row {
        grid-template-columns: 90px 90px 1fr 70px 90px;
        column-gap: 10px;
        padding: 12px 18px;
    }

    /* La página la maquetan en Elementor con columnas lado a lado.
       En tablet forzamos a apilar TODAS las columnas (verde + formulario + salidas)
       de cualquier sección/contenedor de Elementor que albergue uno de nuestros
       shortcodes. Esto cubre Elementor v2 (.elementor-section/.elementor-column)
       y Elementor Flexbox v3 (.e-con). */
    .elementor-section:has(.bt-buscador-wrapper) .elementor-column,
    .elementor-section:has(.bt-results) .elementor-column,
    .elementor-section:has(.sll-tabla) .elementor-column,
    .elementor-top-section:has(.bt-buscador-wrapper) .elementor-column,
    .elementor-top-section:has(.bt-results) .elementor-column,
    .elementor-top-section:has(.sll-tabla) .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .elementor-section:has(.bt-buscador-wrapper) .elementor-container,
    .elementor-section:has(.bt-results) .elementor-container,
    .elementor-section:has(.sll-tabla) .elementor-container,
    .elementor-section:has(.bt-buscador-wrapper) .elementor-row,
    .elementor-section:has(.bt-results) .elementor-row,
    .elementor-section:has(.sll-tabla) .elementor-row {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    /* Elementor v3 — contenedores flex (.e-con / .e-con-inner) */
    .e-con:has(.bt-buscador-wrapper),
    .e-con:has(.bt-results),
    .e-con:has(.sll-tabla),
    .e-con-inner:has(.bt-buscador-wrapper),
    .e-con-inner:has(.bt-results),
    .e-con-inner:has(.sll-tabla) {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .e-con:has(.bt-buscador-wrapper) > .e-con,
    .e-con:has(.bt-results) > .e-con,
    .e-con:has(.sll-tabla) > .e-con,
    .e-con:has(.bt-buscador-wrapper) > .elementor-widget,
    .e-con:has(.bt-results) > .elementor-widget,
    .e-con:has(.sll-tabla) > .elementor-widget {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

.dias-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

.dia {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
}

.activo {
    background-color: #8fc33a;
}

.inactivo {
    background-color: #ddd;
    /* gris */
    color: #555;
}

/* ──────────────────────────────────────────────────────────────
 *  Shortcode [salidas_llegadas_beta]
 *  Tabla de próximas salidas / llegadas en tiempo real
 * ────────────────────────────────────────────────────────────── */
.sll-tabla {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Nunito', sans-serif;
    /* overflow:hidden clipa los rincones blancos que asomaban detrás de los tabs.
       El tooltip de paradas usa position:fixed, así que no le afecta. */
    overflow: hidden;
}

.sll-tabs {
    border-radius: 0 0 10px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: #ffffff;
    position: relative;
}

/* Prefijo .sll-tabla en TODAS las reglas de tabs para subir la especificidad
   por encima del reset.css de hello-elementor, que con [type="button"]:hover
   pinta los botones en rosa (#c36). Sin este prefijo, su regla empata con
   la nuestra y, al cargarse después, gana en cascada. */

.sll-tabla .sll-tab {
    background: #eef0f2;
    border: none;
    color: #6c757d;
    padding: 18px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
}

/* Solo se redondea la esquina externa de cada pestaña. La esquina
   interna (donde las dos pestañas se tocan) queda recta para evitar
   que el fondo blanco de .sll-tabs asome por la muesca. */
.sll-tabla .sll-tab:first-child {
    border-top-left-radius: 12px;
}

.sll-tabla .sll-tab:last-child {
    border-top-right-radius: 12px;
}

/* Defender estado inactivo de hover/focus del reset.css */
.sll-tabla .sll-tab:hover,
.sll-tabla .sll-tab:focus {
    background: #eef0f2;
    color: #6c757d;
    border: none;
}

.sll-tabla .sll-tab.active,
.sll-tabla .sll-tab.active:hover,
.sll-tabla .sll-tab.active:focus {
    background: #8fc33a;
    color: #ffffff;
    border: none;
    position: relative;
}

.sll-tabla .sll-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #8fc33a;
    z-index: 999;
}

.sll-panel {
    /* padding: 8px 0 0 0; */
    /* ~5 filas visibles + cabecera. El resto se ve haciendo scroll. */
    max-height: 410px;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 42, 71, 0.25) transparent;
}

.sll-panel::-webkit-scrollbar {
    width: 6px;
}

.sll-panel::-webkit-scrollbar-track {
    background: transparent;
}

.sll-panel::-webkit-scrollbar-thumb {
    background-color: rgba(14, 42, 71, 0.25);
    border-radius: 999px;
}

.sll-row {
    display: grid;
    grid-template-columns: 110px 110px 1fr 80px 100px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    column-gap: 12px;
}

.sll-row:last-child {
    border-bottom: none;
}

.sll-row.sll-header {
    padding-top: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    /* La cabecera queda fija mientras la lista hace scroll. */
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

.sll-row.sll-header .sll-col {
    color: #8fc33a;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.sll-col {
    display: block;
    line-height: 1.3;
}

.sll-col.sll-linea {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sll-col.sll-linea .sll-badge {
    display: inline-block;
    background: #8fc33a;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.sll-col.sll-linea img {
    max-width: 90px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.sll-col.sll-salida {
    text-align: center;
}

.sll-col.sll-salida .sll-min-pill {
    display: inline-block;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.5;
}

.sll-col.sll-salida .sll-pill-urgent {
    background: #fde2e2;
    color: #c62828;
}

.sll-col.sll-salida .sll-pill-soon {
    background: #fff4cc;
    color: #b07000;
}

.sll-col.sll-salida .sll-pill-ok {
    background: #e6f4d2;
    color: #4f7d22;
}

.sll-col.sll-salida .sll-pill-now {
    background: #d6e9fb;
    color: #1565c0;
}

.sll-col.sll-salida .sll-hora {
    display: block;
    color: #002856;
    font-weight: 700;
    font-size: 17px;
}

.sll-col.sll-destino .sll-ciudad {
    display: block;
    color: #002856;
    font-weight: 700;
    font-size: 16px;
}

.sll-col.sll-destino .sll-recorrido {
    display: inline-block;
    position: relative;
    color: #9aa0a6;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
    cursor: default;
}

.sll-col.sll-destino .sll-recorrido-text {
    display: inline;
}

.sll-paradas-tooltip {
    display: none;
    position: fixed;            /* escapa cualquier overflow del panel */
    z-index: 1000;
    left: 0;
    top: 0;                     /* el JS reescribe top/left al hacer hover */
    background: #1a1d28;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    min-width: 220px;
    max-width: 360px;
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
    line-height: 1.5;
}

.sll-paradas-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #1a1d28;
    transform: rotate(45deg);
}

/* Si no hay sitio debajo, el JS marca esta clase y la flecha se va al pie */
.sll-paradas-tooltip--above::before {
    top: auto;
    bottom: -6px;
}

.sll-paradas-tooltip ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sll-paradas;
}

.sll-paradas-tooltip li {
    counter-increment: sll-paradas;
    color: #ffffff;
    padding: 3px 0;
}

.sll-paradas-tooltip li::before {
    content: counter(sll-paradas) ". ";
    color: #ffffff;
    font-weight: 600;
    margin-right: 4px;
}

/* El JS de sll.js controla display + posición del tooltip (necesario porque
   position:fixed pide top/left explícitos y porque hay que decidir arriba/abajo
   según el espacio disponible en el viewport). */

.sll-col.sll-anden {
    display: flex;
    justify-content: center;
}

.sll-col.sll-anden .sll-circle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #8fc33a;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.sll-col.sll-anden .sll-circle-empty {
    color: #b9bec3;
    font-weight: 700;
    font-size: 18px;
}

.sll-col.sll-aviso {
    color: #8a8a8a;
    font-size: 12px;
}

.sll-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #aaa;
    padding: 24px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sll-row {
        grid-template-columns: 80px 80px 1fr 60px;
        column-gap: 8px;
        padding: 12px 14px;
    }
    .sll-col.sll-aviso {
        display: none;
    }
    .sll-col.sll-anden .sll-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .sll-col.sll-destino .sll-recorrido {
        font-size: 10px;
    }
}