/* ESTILOS FINALES VUELOS BARATOS PRÓXIMOS */
.vbp-tabla-vuelos {
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: white;
    width: 100%;
    font-family: 'Manrope', sans-serif;
}

.vbp-tabla-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.vbp-tabla {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* CABECERA - Títulos centrados vertical y horizontalmente, fuente 13px */
.vbp-tabla thead {
    background: #ff5e3a;
}

.vbp-tabla th {
    color: white;
    padding: 16px 5px;
    font-weight: 700;
    font-size: 13px; /* AJUSTE 2: Títulos a 13px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e04a2a;
    text-align: center; /* AJUSTE 3: Centrado horizontal */
    vertical-align: middle; /* AJUSTE 3: Centrado vertical */
    height: 60px;
    font-family: 'Onest', sans-serif;
    line-height: 1.2;
}

/* FILAS - Texto a 13px, alineaciones */
.vbp-tabla td {
    padding: 15px 5px;
    border-bottom: 1px solid #dee2e6;
    text-align: center; /* Por defecto, todo centrado */
    vertical-align: middle;
    font-size: 13px; /* AJUSTE 2: Texto general a 13px */
    height: 70px;
    font-family: 'Manrope', sans-serif;
    line-height: 1.4;
}

/* DISTRIBUCIÓN Y ALINEACIÓN DE COLUMNAS */
/* Columna FECHAS - Alineada a la izquierda con padding extra */
.vbp-tabla th.vbp-col-fechas,
.vbp-tabla td.vbp-col-fechas {
    width: 30%;
    text-align: left; /* AJUSTE 1 & 3: Texto alineado a la izquierda */
    padding-left: 18px; /* AJUSTE 1: 15px + 3px de margen solicitado */
    padding-right: 10px;
}

/* OTRAS COLUMNAS - Aseguramos centrado horizontal (ya hereda de td) */
.vbp-tabla th.vbp-col-duracion,
.vbp-tabla td.vbp-col-duracion {
    width: 20%;
}

.vbp-tabla th.vbp-col-escalas,
.vbp-tabla td.vbp-col-escalas {
    width: 25%;
}

.vbp-tabla th.vbp-col-precio,
.vbp-tabla td.vbp-col-precio {
    width: 25%;
    padding-right: 15px;
}

/* EFECTOS DE FILAS */
.vbp-tabla tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.vbp-tabla tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}

/* BADGE DE PRECIO - Fuente 13px, clickeable */
.vbp-precio-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px; /* AJUSTE 2: Texto del badge a 13px */
    font-weight: 700;
    min-width: 100px;
    background: #2ecc71;
    color: white;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
    cursor: pointer;
    text-align: center; /* Asegura centrado dentro del badge */
}

.vbp-precio-badge:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.4);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 767px) {
    .vbp-tabla {
        width: 100%;
        table-layout: auto; /* Para mejor adaptación */
    }
    
    /* OCULTAR COLUMNA ESCALAS EN MÓVIL */
    .vbp-ocultar-movil,
    .vbp-tabla th.vbp-col-escalas,
    .vbp-tabla td.vbp-col-escalas {
        display: none;
    }
    
    /* REDISTRIBUIR ANCHO DE COLUMNAS VISIBLES */
    .vbp-tabla th.vbp-col-fechas,
    .vbp-tabla td.vbp-col-fechas {
        width: 45%;
        padding-left: 18px; /* Mantiene el padding extra en móvil */
    }
    
    .vbp-tabla th.vbp-col-duracion,
    .vbp-tabla td.vbp-col-duracion {
        width: 25%;
    }
    
    .vbp-tabla th.vbp-col-precio,
    .vbp-tabla td.vbp-col-precio {
        width: 30%;
        padding-right: 10px;
    }
    
    /* BADGE MÁS PEQUEÑO EN MÓVIL */
    .vbp-precio-badge {
        min-width: 85px;
        padding: 6px 10px;
        font-size: 12px; /* Ligeramente más pequeño en móvil */
    }
}