/* 1. FORZAR CENTRADO DEL BLOQUE AZUL EN LA PÁGINA */
.vp-contenedor-principal {
    display: flex !important;
    justify-content: center !important; /* Centra el bloque azul horizontalmente */
    width: 100% !important;
    margin: 40px 0 !important;
    padding: 0 !important;
}

.vp-caja-buscador {
    background: #0054a6 !important;
    padding: 30px !important;
    border-radius: 15px !important;
    width: 100% !important;
    max-width: 850px !important; /* Ancho máximo del buscador */
    margin: 0 auto !important; /* Refuerza el centrado */
    box-sizing: border-box !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* 2. TÍTULO */
.vp-titulo {
    color: white !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    font-family: sans-serif !important;
}

/* 3. DISTRIBUCIÓN EN FILAS Y 2 COLUMNAS (CORREGIDO) */
#vp-formulario-buscador {
    display: flex !important;
    flex-direction: column !important; /* Apilamos las filas */
    gap: 15px !important;
}

.vp-fila {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
}

#vp-formulario-buscador .vp-campo {
    flex: 0 0 48% !important; /* Dos columnas reales */
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 10px !important;
}

#vp-formulario-buscador label {
    color: white !important;
    margin-bottom: 5px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

#vp-formulario-buscador input, 
#vp-formulario-buscador select {
    background-color: #ffffff !important; /* Fondo blanco puro */
    color: #333333 !important;            /* Texto gris oscuro/negro para que se lea bien */
    padding: 12px 15px !important;       /* Un poco más de espacio interno */
    border-radius: 8px !important;       /* Bordes redondeados elegantes */
    border: 2px solid #eeeeee !important; /* Un borde sutil para dar forma */
    font-size: 16px !important;           /* Tamaño de letra cómodo */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Efecto cuando el usuario hace clic para escribir */
#vp-formulario-buscador input:focus, 
#vp-formulario-buscador select:focus {
    border-color: #ffcc00 !important;    /* Resalte amarillo al escribir */
    background-color: #ffffff !important;
    outline: none !important;
}

/* 4. EL BOTÓN (FILA ÚNICA) */
.vp-fila:last-child {
    justify-content: center !important;
    margin-top: 20px !important;
}

#vp-formulario-buscador .vp-boton-buscar {
    background: #ffcc00 !important;
    color: #003366 !important;
    padding: 15px 60px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: transform 0.2s !important;
}

#vp-formulario-buscador .vp-boton-buscar:hover {
    transform: scale(1.05) !important;
}

/* 5. RESPONSIVE PARA MÓVIL */
@media (max-width: 600px) {
    #vp-formulario-buscador .vp-campo {
        flex: 0 0 100% !important; /* En móvil, una sola columna */
    }
}

/* 6. RESPONSIVE PARA MÓVIL */
@media (max-width: 600px) {
    #vp-formulario-buscador .vp-campo {
        flex: 0 0 100% !important;
    }
}

.vp-titulo i {
    margin-left: 12px !important;
    color: #ffcc00 !important;
    font-size: 0.8em !important; /* Un poco más pequeño que el texto */
    vertical-align: middle !important; /* Para que no parezca que se cae */
    opacity: 0.9 !important; /* Para que no brille más que las letras */
}

/* Spinner para Vuelos Pro */
.vp-spinner {
    display: none; /* Oculto por defecto */
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: vp-girar 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes vp-girar {
    to { transform: rotate(360deg); }
}

/* Clase para cuando el botón está trabajando */
.vp-boton-buscar:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}

/* Estilo unificado para el campo de Notas */
.vp-campo-completo {
    flex: 0 0 100% !important;
    margin-top: 15px !important;
    padding: 0 10px !important; /* Alinea con los márgenes de los campos de arriba */
}

#vp_notas {
    width: 100% !important;
    background-color: #ffffff !important; /* Fondo Blanco */
    color: #333 !important; /* Texto oscuro para que se lea bien */
    padding: 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ccc !important; /* Borde sutil como los demás */
    font-family: inherit !important;
    font-size: 14px !important;
    resize: none !important;
    box-sizing: border-box !important;
}

/* Ajuste del icono y etiqueta de notas */
.vp-campo-completo label {
    color: white !important;
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}