
    body { background-color: #f8f9fa; }
    .card-form { border: none; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
    .form-section { border: 1px solid #e9ecef; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; background: #fff; }
    .form-section-title { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 10px; }
    .form-section-subtitle { font-size: 0.85rem; color: #6c757d; margin-bottom: 1.2rem; }
    .form-label { font-size: 0.85rem; font-weight: 600; color: #444; margin-bottom: 0.4rem; }
    .form-control, .form-select { border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 0.95rem; }
    .form-control:focus, .form-select:focus { border-color: #fc7e00; box-shadow: 0 0 0 0.25rem rgba(252, 126, 0, 0.15); }
    .btn-primary { background-color: #fc7e00; border-color: #fc7e00; font-weight: 600; padding: 12px 24px; border-radius: 8px; font-size: 1.05rem; transition: all 0.3s ease; }
    .btn-primary:hover { background-color: #e06f00; border-color: #e06f00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252, 126, 0, 0.3); }
    .form-check-input:checked { background-color: #fc7e00; border-color: #fc7e00; }
    .footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding: 0; margin: 0; }
    .footer-legal li { list-style: none; margin: 0; }
    .footer-legal li:nth-child(odd) { text-align: left; }
    .footer-legal li:nth-child(even) { text-align: right; }
    .input-otra { display: none; margin-top: 0.5rem; }
    /* ============================================
   SELECT2: igualar apariencia a .form-select de Bootstrap 5
   ============================================ */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: calc(1.5em + 1.2rem + 2px);
    padding: 0.4rem 2.25rem 0.4rem 0.75rem;
    border: 1px solid #d4d4d4 !important;
    border-radius: 12px;
    background-color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    width: 2rem;
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin: 0;
    position: static;
    top: auto;
    left: auto;
    border-color: #495057 transparent transparent transparent;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #fc7e00;
    box-shadow: 0 0 0 0.25rem rgba(252, 126, 0, 0.15);
    outline: 0;
}

/* Botón "x" de limpiar selección */
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0 0.25rem;
    z-index: 1;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid #d4d4d4 !important;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #fc7e00;
    box-shadow: 0 0 0 0.15rem rgba(252, 126, 0, 0.15);
}

.select2-container--default .select2-results__option {
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #fc7e00 !important;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #fff3e0;
    color: #333;
}

/* Estados de validación Bootstrap sobre Select2 */
.was-validated select.select2-hidden-accessible:invalid + .select2-container--default .select2-selection--single,
select.select2-hidden-accessible.is-invalid + .select2-container--default .select2-selection--single {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

select.select2-hidden-accessible.is-valid + .select2-container--default .select2-selection--single {
    border-color: #198754;
}

.select2-selection {
    border-radius:8px !important;
}