.horarios-hero { background: linear-gradient(135deg, var(--navy) 0%, #0055b3 100%); padding: 8rem 0 3.5rem; color: white; text-align: center; }
.horarios-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.horarios-hero p { opacity: .8; font-size: 1.1rem; }
.filtro-bar { background: white; border-radius: 20px; box-shadow: 0 4px 24px rgba(0,53,128,.08); padding: 1.8rem 2rem; margin-bottom: 2rem; }
.filtro-title { font-size: .78rem; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.filtro-grid { display: grid; grid-template-columns: .6fr 1.1fr 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
@media(max-width:1000px) { .filtro-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media(max-width:700px)  { .filtro-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px)  { .filtro-grid { grid-template-columns: 1fr; } }
@media(max-width:768px) {
    .horarios-hero { padding: 9rem 0 3rem; }
    .horarios-hero h1 { font-size: 1.8rem; }
    .horarios-hero p  { font-size: .88rem; }
    .filtro-bar { padding: 1.2rem; border-radius: 14px; }
    .vuelo-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
        padding: 1rem;
    }
    .vuelo-codigo { min-width: auto; }
    .vuelo-ruta   { width: 100%; }
    .vuelo-horario { min-width: auto; text-align: left; display: flex; gap: 1.5rem; }
    .vuelo-duracion { min-width: auto; }
    .vuelo-avion  { min-width: auto; font-size: .78rem; }
}
@media(max-width:480px) {
    .horarios-hero { padding: 8rem 0 2.5rem; }
    .horarios-hero h1 { font-size: 1.5rem; }
    .filtro-bar { padding: 1rem; border-radius: 12px; }
    .vuelo-horario { flex-direction: column; gap: .2rem; }
}
.filtro-field label { display: block; font-size: .78rem; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.filtro-field input {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: .65rem .9rem; font-size: .9rem; font-family: inherit;
    background: #f8faff; outline: none; color: #1a202c;
    transition: border-color .2s, box-shadow .2s;
}
.filtro-field input:focus { border-color: #0069cc; background: white; box-shadow: 0 0 0 3px rgba(0,105,204,.1); }

.ac-wrap { position: relative; }
.ac-input {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: .65rem .9rem; font-size: .9rem; font-family: inherit;
    background: #f8faff; outline: none; color: #1a202c;
    transition: border-color .2s, box-shadow .2s;
}
.ac-input:focus { border-color: #0069cc; background: white; box-shadow: 0 0 0 3px rgba(0,105,204,.1); }
.ac-list {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: white; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,53,128,.14);
    border: 1px solid #e2e8f0; z-index: 200; max-height: 220px; overflow-y: auto;
}
.ac-list.open { display: block; }
.ac-item { padding: .55rem 1rem; font-size: .88rem; cursor: pointer; color: #1a202c; display: flex; align-items: center; gap: .6rem; }
.ac-item:hover, .ac-item.active { background: #eef4ff; color: #0069cc; }
.ac-code { font-weight: 700; font-size: .8rem; background: #dde8ff; color: #003580; border-radius: 6px; padding: .1rem .4rem; flex-shrink: 0; }
.ac-clear { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; display: none; font-size: 1rem; line-height: 1; padding: 0; }
.ac-clear:hover { color: #dc2626; }

.select-wrap-h { position: relative; }
.select-wrap-h::after { content:''; position:absolute; right:.6rem; top:50%; transform:translateY(-50%); width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; pointer-events:none; opacity:.6; }
select.estado-select { appearance: none; -webkit-appearance: none; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: .65rem 2rem .65rem .9rem; font-size: .88rem; font-family: inherit; font-weight: 600; outline: none; cursor: pointer; transition: all .2s; width: 100%; background: #f8faff; color: #1a202c; }
select.estado-select:focus { border-color: #0069cc; box-shadow: 0 0 0 3px rgba(0,105,204,.1); background: white; }
.btn-filtrar { background: linear-gradient(135deg, #003580, #0069cc); color: white; border: none; border-radius: 12px; padding: .68rem 1.5rem; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; box-shadow: 0 4px 12px rgba(0,105,204,.3); white-space: nowrap; width: 100%; }
.btn-filtrar:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,105,204,.4); }
.btn-limpiar-h { display: inline-flex; align-items: center; gap: .3rem; color: #64748b; font-size: .82rem; font-weight: 600; text-decoration: none; margin-top: .8rem; }
.btn-limpiar-h:hover { color: #0069cc; }
.vuelo-row { background: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 1.2rem 1.5rem; margin-bottom: .8rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; transition: box-shadow .2s; }
.vuelo-row:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.vuelo-codigo { font-weight: 800; color: var(--navy); font-size: 1rem; min-width: 80px; }
.vuelo-ruta { flex: 1; }
.vuelo-ruta .origen { font-weight: 700; color: var(--navy); }
.vuelo-ruta .destino { color: #555; }
.vuelo-horario { text-align: center; min-width: 140px; }
.vuelo-horario .hora { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.vuelo-horario .etiqueta { font-size: .75rem; color: #888; }
.vuelo-duracion { font-size: .85rem; color: #888; text-align: center; min-width: 80px; }
.vuelo-avion { font-size: .8rem; color: #888; min-width: 180px; }
.estado-badge { border-radius: 50px; padding: .3rem .9rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.estado-Programado  { background: #d4edda; color: #155724; }
.estado-Retrasado   { background: #fff3cd; color: #856404; }
.estado-Cancelado   { background: #f8d7da; color: #721c24; }
.estado-Finalizado  { background: #f1f5f9; color: #475569; }
.no-vuelos { text-align: center; padding: 3rem; color: #888; background: white; border-radius: 16px; }
