.horario-header{
    background: rgba(0, 56, 99, 1);
    position: relative;
}
.horario-header-title-div{
    color: #ffffff;
    padding: 4.875rem 0 4.75rem 0;
}
.horario-header .horario-header-img {
    position: absolute;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 50%;
    z-index: 1;
    left: 50%;
    top: 0;
    bottom: 0;
}
.horario-section,
.trayecto-section,
.mapa-section
{
    scroll-margin-top: 7rem;
}

.title-direction{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.trayecto-section .title-direction{
    margin-top: 0;
    margin-bottom: 1rem;
}

.direction{
    background: #003863;
    color: #ECF1F7;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 6.25rem;
    padding: 0.25rem 0.625rem;
}
.leyenda-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    justify-content: flex-start;

}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.leyenda-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(209, 57, 44, 1);
    border-radius: 8px;
    font-weight: 700;
    color: #003366;
    width: 40px;
    height: 40px;
}

.leyenda-text {
    color: #003366;
    font-size: 1rem;
}

.text-hour{
    padding: 1.5rem 2rem 0.5rem;
    background: #003863;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}
.subtext-hour{
    background: #003863;
    color: #ffffff;
    padding: 0 2rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.hours{
    background: #fff;
    color: rgba(0, 56, 99, 1);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 3rem;
    column-gap: 0;
}
.hours div {
    display: inline-block;
    width: 100%;
    padding: 0.5rem 2rem;
    white-space: nowrap;
    background: #fff;
    border-bottom: 1px solid rgba(0, 56, 99, 0.2);
}
.hours.columns2 {
    column-count: 2;
}

.hours.columns3 {
    column-count: 3;
}

.hours.columns4 {
    column-count: 4;
}

.hours.columns5 {
    column-count: 5;
}

.hours.columns6 {
    column-count: 6;
}

.hours.columns7 {
    column-count: 7;
}

.hours.columns8 {
    column-count: 8;
}

.div-title-hours{
    margin-top: 2rem;
}
.div-title-hours h2{
    margin-bottom: 0;
}

.btn-dwl{
    background: #003863;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 2rem;
    height: 3rem;
    border-radius: 100px;
    margin: 2rem 0 2rem 0;
    text-decoration: none;
}
.btn-dwl.btn-red {
    background: rgba(209, 57, 44, 1);
}

.tarjeta{
    background: rgba(236, 241, 247, 1);
    padding:0 2rem 2.5rem;
    box-sizing: border-box;
    border-radius: 1rem;
    overflow: hidden;
    height: 14.25rem;
}
.tarjeta .header{
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.icon-container{
    margin-top: 2rem;
}
.icon-container .fas,
.icon-container .far{
    font-size: 1.25rem;
}
.tarjeta h3{
    margin-block-start: 0;
    margin: 1.5rem 0 0.5rem 0;
}
.tarjeta span{
    background: white;
    padding: 1rem;
    border-radius: 100px;
}
.tarjeta p{
    margin-bottom: 2rem;
}
.tarjeta .btn-more{
    margin-top: 4rem;
}
.btn-more{
    background: rgba(209, 57, 44, 1);
    border-radius: 100px;
    font-size: 1rem;
    padding: 0.625rem 2rem;
    text-decoration: none;
    color: #ffffff !important;
}
.trayecto-section{
    margin-top: 2rem;
    margin-bottom: 4.625rem;
}
.trayecto-section .title-item{
    font-weight: 500;
}
.trayecto-section .row {
    display: flex;
    justify-content: space-evenly;
}
.trayecto-section .row .title-item{
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(236, 241, 247, 1) ;
}
.trayecto-section .paradas{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom:0.5rem;
}
.trayecto-section .parada:nth-child(1) {
    margin-top: 1rem;
}
.trayecto-section .parada {
    display: flex;
    gap: 0.5rem;
}
.trayecto-section .parada i{
    color: rgba(209, 57, 44, 1);
}
.map{
    height: 22rem;
}

@media (max-width: 768px) {
    .horario-header .horario-header-img {
        width: 100%;
        left: 0;
        height: 60%;
        top: 0;
    }
    .horario-header-title-div {
        margin-top: 20rem;
    }
    .btn-dwl{
        margin-top: 0;
    }
    .tarjeta-header{
        flex-direction: row;
        gap: 0.5rem;

    }
    .leyenda-container{
        justify-content: start;
    }
    .hours.columns5,
    .hours.columns6,
    .hours.columns7,
    .hours.columns8 {
        column-count: 4;
    }

}
@media (max-width: 576px) {
    .trayecto-section .paradas, .tarjeta{
        margin-bottom: 2.5rem;
    }
    .trayecto-section {
        margin-bottom: 0;
    }
    .horario-header-title-div h1{
        font-size: 1.75rem !important;
    }
    .title-direction {
        flex-direction: column-reverse;
        align-items: start;
        gap: 0;
    }
    .title-direction h2{
        font-size: 1.5rem !important;
    }
    .tarjeta{
        margin: 1rem;
        height: 11.875rem;
        padding: 0.5rem 2rem 0;
    }
    .tarjeta .header{
        margin-bottom: 1rem;
        flex-direction: row;
        justify-content: start;
        gap: 1rem;
    }
    .hours div {
        font-size: 14px;
        padding: 0.5rem 1rem;
    }
}