/* =========================================
   ESTILOS DE LA TARJETA (CLONADO EXACTO)
   ========================================= */

.acb-parada-item{margin-bottom: 20px;}

/* Contenedor Principal Azul (.elementor-element-0937ec5) */
.acb-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 7px;
    padding: 15px 25px;
    background-color: var( --e-global-color-secondary ); /* Color azul de fondo */
    margin-bottom: 0; /* Pegado al acordeón */
    cursor: pointer; /* Para indicar que se abre */
    transition: opacity 0.3s;

}

.acb-card-wrapper:hover {
    opacity: 0.95;
}

/* Fila Superior (.elementor-element-a5ac68d) */
.acb-row-top {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}

/* Columna Izquierda (.elementor-element-e3848c6) */
.acb-col-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1; /* Ocupa el espacio disponible */
}

/* Nombre Parada - Icon List (.elementor-element-7c2fb31) */
.acb-stop-title {
    margin: -5px 0px -10px 0px;
    --e-icon-list-icon-size: 20px;
    --icon-vertical-align: flex-start;
    --icon-vertical-offset: 12px;
}
.acb-stop-title .elementor-icon-list-item > .elementor-icon-list-text {
    font-family: "Alsa", Sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var( --e-global-color-5d09a58 ); /* Blanco/Claro */
}
.acb-stop-title svg {
    fill: #fff;
}

/* Descripción (.elementor-element-ceaf0f6) */
.acb-desc-widget {
    margin-left: 27px;
}
.acb-desc-widget .elementor-heading-title {
    font-family: "Alsa", Sans-serif;
    font-size: 17px!important;
    font-weight: 300!important;
    color: #ffffff!important;
}

/* Columna Derecha - OG1 (.elementor-element-6200ffd) */
.acb-col-right {
    display: flex;
    justify-content: flex-end;
}

/* Line Code OG1 (.elementor-element-5c3e797) */
.acb-line-code {
    --e-icon-list-icon-size: 33px;
    --e-icon-list-icon-align: center;
}
.acb-line-code .elementor-icon-list-item > .elementor-icon-list-text {
    font-family: "Alsa", Sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 41px;
    color: var( --e-global-color-5d09a58 );
}
.acb-line-code svg {
    fill: #fff;
}

/* Divider (.elementor-element-34e3093) */
.acb-divider-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
}
.acb-divider-widget {
    --divider-border-style: solid;
    --divider-color: #FFFFFFB3; /* Blanco semi-transparente */
    --divider-border-width: 1px;
}
.acb-divider-widget .elementor-divider-separator {
    width: 100%;
    border-top: 1px solid #FFFFFFB3;
}
.acb-divider-widget .elementor-divider-separator hr{
    border-top: 0;
}
/* Fila Inferior (.elementor-element-8c97967) */
.acb-row-bottom {
    display: flex;
    width: 100%;
}
.acb-col-bottom-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* Ciudad (.elementor-element-0d8cbf5) */
.acb-city-widget .elementor-heading-title {
    font-family: "Alsa", Sans-serif;
    font-size: 20px!important;
    font-weight: 300!important;
    color: #ffffff!important;
}

/* Botón Ver Parada (.elementor-element-9f6d066) */
.acb-btn-widget .elementor-button {
    background-color: transparent !important;
    font-family: "Alsa", Sans-serif;
    font-size: 18px;
    font-weight: 600!important;
    color: #ffffff;
    padding: 0;
    text-decoration: none;

    fill: var(--e-global-color-5d09a58);
    color: var(--e-global-color-5d09a58);
    padding: 0px 0px 0px 0px;

}
.acb-btn-widget .elementor-button:hover {
    color: var( --e-global-color-d3a9d12 ); /* Hover color */
}


.acb-btn-widget .elementor-button .elementor-button-content-wrapper .elementor-button-text{ background-color: #70707000;}


@media (max-width: 767px) {
    .acb-card-wrapper {

        padding: 15px 15px;

    }

    .acb-stop-title .elementor-icon-list-item > .elementor-icon-list-text {

    font-size: 24px;

    line-height: 41px;
}

    .acb-desc-widget .elementor-heading-title {
    font-family: "Alsa", Sans-serif;
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #ffffff !important;

}

    .acb-line-code .elementor-icon-list-item > .elementor-icon-list-text {
    font-family: "Alsa", Sans-serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 41px;

}
}


/* =========================================
   ESTILOS ACORDEÓN (REJILLA DE 2 COLUMNAS)
   ========================================= */

/* El contenedor principal */
.acb-schedule-body {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 15px 30px;
    border-radius: 0 0 7px 7px;
}

/* La Fila: Aquí definimos la "Tabla" */
.acb-horario-row {
    display: grid; /* Activa el modo rejilla */

    /* ESTO ES LA MAGIA:
       Columna 1 (Hora): 60px fijos.
       Columna 2 (Texto): 1fr (El resto del espacio disponible).
    */
    grid-template-columns: 60px 1fr;

    /* Separación entre columnas (el hueco en medio) */
    gap: 30px;

    /* Alineación vertical */
    align-items: center;

    /* Borde inferior para separar filas */
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

/* Columna 1: La Hora */
.acb-h-time {
    font-family: "Alsa", Sans-serif;
    font-size: 18px;
    font-weight: 400; /* Negrita */
    color: #333;
    text-align: left; /* Alineado a la izquierda de su columna */
}

/* Columna 2: La Descripción */
.acb-h-cond {
    font-family: "Alsa", Sans-serif;
    font-size: 18px;
    font-weight: 300; /* Normal */
    color: #444;
    text-align: left;

    /* Si hay icono (i), lo separamos al final */
    display: flex;
    justify-content: space-between;
}

/* Icono (i) */
.acb-info-i {
    width: 20px; height: 20px;
    border: 1px solid #6ab0de;
    color: #6ab0de;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    flex-shrink: 0;
}

/* Quitar borde a la última fila */
.acb-horario-row:last-child {
    border-bottom: none;
}

/* =========================================
   ESTILOS BUSCADOR (RESPONSIVE)
   ========================================= */


/* El Formulario (Flexbox) */
#filtro-acb {
    display: flex;
    /* MÓVIL (Por defecto): Todo en columna vertical */
    flex-direction: column;
    gap: 20px; /* Espacio entre cajas */
}

/* Cada grupo de Input (Label + Select) */
.acb-input-group {
    width: 100%;
}

/* CAJA BLANCA DEL SELECT */
.acb-select-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid #7070703d;
    border-radius: 7px;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.2s;
        height: 100%;
}

.acb-select-wrapper:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ETIQUETA PEQUEÑA (Arriba dentro de la caja) */
.acb-input-group label {
        display: block;
    font-family: "Alsa", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #38333B;
    margin-bottom: 2px;
    pointer-events: none;
}

/* EL SELECTOR (Valor) */
.acb-select-wrapper select {
        width: 100%;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    font-family: "Alsa", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #38333B;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 2;
    position: relative;
    line-height: 55px;
}

/* ICONOS (Flecha y Reloj) */
.acb-icon-arrow, .acb-icon-clock {
    position: absolute;
    right: 15px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #e57373; /* Color rosado */
    pointer-events: none;
}
.acb-icon-clock { color: #888; }

/* BOTÓN FILTRAR */
#btn-filtrar-acb {
    background-color: #555;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Alsa", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    height: 56px; /* Misma altura que los inputs */
    width: 100%;
    transition: background 0.3s;
}
#btn-filtrar-acb:hover { background-color: #333; }


/* =========================================
   MEDIA QUERY: VERSIÓN ESCRITORIO (>768px)
   ========================================= */
@media (min-width: 768px) {

    #filtro-acb {
        /* Cambiamos a fila horizontal */
        flex-direction: row;
        /* Alineamos todo abajo para que el botón cuadre */
        align-items: flex-end;
    }

    .acb-input-group {
        /* Hacemos que los inputs compartan el espacio */
        flex: 1;
    }

    #btn-filtrar-acb {
        /* El botón ocupa menos espacio, o lo que necesite */
        width: auto;
        padding: 0 40px;
        /* O si quieres que sea la 4ª columna exacta, usa: flex: 1; */
    }
}


.acb-boton-horarios {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
   font-family: Alsa;


    gap: 8px;
    transition: all 0.3s ease;
}

/* El texto */
.acb-boton-horarios span {
       color: white;
    font-size: 17px;
    font-weight: 500;
}

/* La flecha inicial */
.flecha-animada {
    width: 12px;
    height: auto;
    transition: transform 0.3s ease; /* Para que gire suavemente */
}

/* LA CLAVE: Cuando el botón tenga la clase 'activo', la flecha gira */
.acb-boton-horarios.activo .flecha-animada {
    transform: rotate(180deg);
}


.acb-separador-ciudad {
        background: #e8e8e8;
    font-weight: 900;
    font-size: 14px;
    padding: 10px 15px;
    margin: 20px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    display: block;
    border-radius: 5px;
    text-align: center;
    font-family: 'Alsa';
    color: #38333c;
}

