/* ==========================================
   ESTILOS DE TARJETAS DE HORARIOS
   ========================================== */

.default__section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark-color, #00123f);
    margin: 25px 0 10px 0;
    text-align: center;
}

.card-horarios-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 15px 40px 15px;
}

.card-horario {
    flex: 1 1 380px;
    max-width: 460px;
    display: flex;
}

.card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* HEADER */
.card-header {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #00123f 0%, #0063a4 100%), url("../img/autobuses/bus-card.webp?v=2.0.5") center/cover no-repeat;
}

.card-header .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 18, 63, 0.85), rgba(0, 99, 164, 0.5));
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    color: #ffffff;
}

.header-content h2,
.header-content .zona {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.region {
    font-size: 11px;
    letter-spacing: 1.5px;
    opacity: 0.85;
    text-transform: uppercase;
}

/* BODY */
.card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.route {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.route .bar {
    width: 4px;
    height: 24px;
    background: var(--orange-dark-color, #ea5b0c);
    border-radius: 4px;
    flex-shrink: 0;
}

.route h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

/* SCHEDULE */
.schedule {
    margin-top: 5px;
}

.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 10px;
    margin-top: 15px;
    text-transform: uppercase;
}

.label:first-child {
    margin-top: 0;
}

.times {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.time {
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-block;
}

.morning {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.afternoon {
    background: #ffedd5;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* BOTONES DE NAVEGACIÓN DE RUTAS */
.route-buttons-container {
    width: 90%;
    max-width: 500px;
    margin: 30px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.route-btn {
    padding: 12px 32px;
    border: 2px solid var(--blue-dark-color, #00123f);
    background-color: transparent;
    color: var(--blue-dark-color, #00123f);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 150px;
}

.route-btn:hover {
    background-color: rgba(0, 18, 63, 0.05);
    transform: translateY(-2px);
}

.route-btn.active {
    background-color: var(--blue-dark-color, #00123f);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 18, 63, 0.2);
}

@media screen and (max-width: 576px) {
    .card-horario {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .card-body {
        padding: 18px;
    }

    .route h3 {
        font-size: 15px;
    }
}

/* ==========================================
   SCHEDULE TICKET CARDS (Interactive Screenshots match)
   ========================================== */
.ticket-schedule-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    font-family: inherit;
}

.ticket-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header-title .date-span {
    font-weight: 500;
    color: #64748b;
    font-size: 1rem;
}

.ticket-card-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.ticket-card-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ticket-card-item.featured {
    border: 2px solid #f472b6;
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.2);
}

.ticket-badges-floating {
    position: absolute;
    top: -12px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge-pill-para-ti {
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.badge-pill-frecuente {
    background: #ec4899;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.3);
}

.ticket-logo-col {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-logo-img {
    max-width: 75px;
    height: auto;
}

.ticket-times-col {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.ticket-main-line {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-time-bold {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.ticket-scales-info {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-details-link {
    display: inline-block;
    margin-top: 4px;
    color: #ea5b0c;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
}

.ticket-price-col {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ticket-price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.ticket-price-currency {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-left: 4px;
}

.ticket-btn-asientos {
    background-color: #002740;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.ticket-btn-asientos:hover {
    background-color: #ea5b0c;
    color: #ffffff;
}

.ticket-btn-asientos.secondary {
    background-color: transparent;
    border: 1.5px solid #002740;
    color: #002740;
}

.ticket-btn-asientos.secondary:hover {
    background-color: #002740;
    color: #ffffff;
}

.ticket-route-summary-bar {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.92rem;
    color: #334155;
}

.ticket-route-summary-bar strong {
    color: #0f172a;
}

/* ==========================================
   TABLA DE HORARIOS DE RUTAS (UX/UI Limpio y Elegante)
   ========================================== */
.tabla-rutas-container {
    width: 100%;
    max-width: 1100px;
    margin: 25px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 18, 63, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.tabla-rutas-header {
    background: linear-gradient(135deg, #00123f 0%, #003366 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabla-rutas-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.tabla-rutas-header .subtitle {
    font-size: 0.88rem;
    color: #ffffff;
    opacity: 0.95;
    background: rgba(255,255,255,0.18);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.tabla-rutas-wrapper {
    overflow-x: auto;
}

.tabla-rutas {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tabla-rutas th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.tabla-rutas td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.tabla-rutas tr:hover td {
    background-color: #f8fafc;
}

.tabla-rutas .time-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
}

.tabla-rutas .price-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ea5b0c;
}

.btn-tabla-comprar {
    display: inline-block;
    background: #ea5b0c;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-tabla-comprar:hover {
    background: #c2410c;
    transform: translateY(-1px);
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .tabla-rutas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}