:root {
    --primary: #0a4a96;
    --secondary: #ff9901;
    --bg-body: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
}

#headerNav {
    background: #480048;
    background: -webkit-linear-gradient(left, #0169b3, #133482);
    /* background: #133482; */
    background: linear-gradient(to right, #0169b3, #133482);
    z-index: 1;
}

.validation-wrapper {
    background-color: var(--bg-body);
    min-height: 85vh;
    padding-top: 130px;
    padding-bottom: 4rem;
    font-family: system-ui, -apple-system, sans-serif;
    z-index: 99999;
}

.search-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(10, 74, 150, 0.15);
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.header-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.form-label-styled {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Inputs --- */
.form-control-styled {
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    padding-left: 15px;
    transition: all 0.2s;
    background-color: #fff;
}

.form-control-styled:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 74, 150, 0.1);
    outline: none;
}

/* Icono Input Group */
.input-group-text-styled {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: var(--primary);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 1.2rem; /* Un poco más grande para mejor visibilidad */
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px; /* Asegura ancho fijo para que no salte */
}

.form-control-with-icon {
    border-left: none;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.form-control-with-icon:disabled {
    background-color: #f1f5f9;
}

/* --- FIX SELECT2 --- */
.select2-container .select2-selection--single {
    height: 50px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    line-height: normal !important;
    padding-left: 15px !important;
    font-size: 1rem;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    top: 1px !important;
    right: 10px !important;
}

.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(10, 74, 150, 0.1);
}

/* --- Botón --- */
.btn-search {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(255, 153, 1, 0.2);
}

.btn-search:hover:not(:disabled) {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 153, 1, 0.3);
    color: white;
}

.btn-search:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loader */
.loader-container {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--secondary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}