#contenedor-form {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    max-width: 100%;
    margin: 0;
    padding: 25px 50px 50px 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 30px;    
}

#contenedor-form .fl-form-group {
    margin-bottom: 0;
    min-width: 0;
    padding-bottom: 10px;
}

#contenedor-form .fl-check-row.fl-form-group {
    padding-bottom: 4px;
}

#contenedor-form label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
}

#contenedor-form .fl-req {
    color: #ef4444;
    margin-left: 2px;
}

#contenedor-form .fl-input,
#contenedor-form .form-control {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #111827;
    height: 32px;
    padding: 4px 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
}

#contenedor-form .fl-input:focus,
#contenedor-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
    outline: none;
}

#contenedor-form .fl-input-highlight {
    background: #eff6ff;
}

#contenedor-form .fl-input-file {
    display: none;
}

#contenedor-form .fl-upload-area {
    border: 1px dashed #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    background: #f8faff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

#contenedor-form .fl-upload-area:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

#contenedor-form .fl-upload-area.dragover {
    background: #dbeafe;
    border-color: #3b82f6;
    border-style: solid;
}


#contenedor-form .fl-uploaded-file {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 4px;
}

#contenedor-form .fl-uploaded-file.show {
    display: flex !important;
}

#contenedor-form .fl-file-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

#contenedor-form .fl-file-icon {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

#contenedor-form .fl-file-name {
    font-size: 0.8rem;
    color: #374151;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#contenedor-form .fl-btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#contenedor-form .fl-btn-remove-file:hover {
    color: #b91c1c;
}

#contenedor-form .select2-container {
    width: 100% !important;
    box-sizing: border-box;
    display: block;
    padding-bottom: 0;
}

#contenedor-form .fl-form-group:has(.select2-container) {
    padding-bottom: 10px;
}

#contenedor-form .select2-container .select2-selection--single {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    height: 32px;
    font-size: 0.8rem;
    width: 100% !important;
    box-sizing: border-box;
}

#contenedor-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #111827;
    padding-left: 8px;
    font-size: 0.8rem;
}

#contenedor-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

#contenedor-form .select2-container--focus .select2-selection--single,
#contenedor-form .select2-container--open .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
    outline: none;
}


#contenedor-form .fl-row-between {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

#contenedor-form .fl-label-actividades {
    font-size: 0.8rem;
    color: #374151;
}

#contenedor-form .fl-label-bloque {
    font-size: 0.9rem !important;
    font-weight: 700;
}

#contenedor-form .fl-link-btn-bloque {
    font-size: 0.9rem !important;
}


#contenedor-form .fl-link-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    width: auto !important;
    display: inline !important;
}

#contenedor-form .fl-link-btn:hover {
    color: #2563eb;
}


#contenedor-form .fl-form-group-switch {
    margin-bottom: 8px;
}

#contenedor-form .fl-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#contenedor-form .fl-switch-input {
    display: none;
}

#contenedor-form .fl-switch-label {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background: #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    margin: 0;
}

#contenedor-form .fl-switch-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}

#contenedor-form .fl-switch-input:checked + .fl-switch-label {
    background: #3b82f6;
}

#contenedor-form .fl-switch-input:checked + .fl-switch-label::after {
    left: 19px;
}

#contenedor-form .fl-switch-text {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}


#contenedor-form .fl-check-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

#contenedor-form .fl-check-row input[type="checkbox"],
#contenedor-form .fl-check-row input[type="radio"] {
    width: 13px;
    height: 13px;
    margin-top: 5.5px;
    accent-color: #3b82f6;
    flex-shrink: 0;
    cursor: pointer;
}

#contenedor-form .fl-check-row label {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

#contenedor-form .fl-chk-termino + label {
    font-size: 0.75rem;
}


#contenedor-form .fl-btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    width: auto !important;
}

#contenedor-form .fl-btn-primary:hover,
#contenedor-form .fl-btn-primary:focus {
    background: #2563eb;
    color: #fff;
}

#contenedor-form .fl-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    width: auto !important;
}

#contenedor-form .fl-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

#contenedor-form .fl-btn-inscribir {
    width: 100%;
    padding: 7px;
    font-size: 0.8rem;
    margin-top: 6px;
}

#contenedor-form .fl-btn-icon-danger {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}

#contenedor-form .fl-btn-icon-danger:hover {
    color: #b91c1c;
}


#contenedor-form .fl-btn-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

#contenedor-form .fl-btn-row .fl-btn-primary,
#contenedor-form .fl-btn-row .fl-btn-secondary {
    flex: 1;
}


#contenedor-form .fl-table-actividades th,
#contenedor-form .fl-table-actividades td,
#contenedor-form .fl-table-invitados th,
#contenedor-form .fl-table-invitados td {
    font-size: 0.8rem;
    padding: 5px 8px;
    vertical-align: middle;
}

#contenedor-form .fl-act-row {
    cursor: pointer;
}

#contenedor-form .fl-act-detalle {
    background: #eff6ff;
}

#contenedor-form .fl-detalle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

#contenedor-form .fl-table-ofertas th,
#contenedor-form .fl-table-ofertas td {
    font-size: 0.8rem;
    padding: 4px 6px;
    vertical-align: middle;
}

#contenedor-form .fl-badge-grupal {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.8rem;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 3px;
    font-weight: 600;
}


#contenedor-form .fl-modal-footer-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contenedor-form .fl-modal-footer-between span {
    font-size: 0.8rem;
    color: #6b7280;
}


#modalActividades .modal-content,
#modalInvitados .modal-content,
#modalParticipantes .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#modalActividades .modal-header,
#modalInvitados .modal-header,
#modalParticipantes .modal-header {
    background: #111111;
    border: none;
    padding: 20px 24px;
}

#modalActividades .modal-title,
#modalInvitados .modal-title,
#modalParticipantes .modal-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 14px;
    border-left: 3px solid #3b82f6;
    line-height: 1.4;
}

#modalActividades .modal-header .close,
#modalInvitados .modal-header .close,
#modalParticipantes .modal-header .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
}

#modalActividades .modal-header .close:hover,
#modalInvitados .modal-header .close:hover,
#modalParticipantes .modal-header .close:hover {
    opacity: 1;
}


#contenedor-form .modal-body {
    padding: 30px;
}


#contenedor-form .fl-invitados-section {
    margin-top: 14px;
}

#contenedor-form .fl-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

#contenedor-form .fl-empty-msg {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.8rem;
    padding: 10px !important;
}


.select2-container[data-select2-id*="fl_main_"] .select2-results__option,
.select2-dropdown .select2-results__option {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.select2-dropdown .select2-search--dropdown .select2-search__field {
    font-size: 0.8rem;
    padding: 3px 6px;
    border: 1px solid #e5e7eb;
    outline: none;
    box-shadow: none;
    border-radius: 10px;
}


#contenedor-form .has-error .form-control,
#contenedor-form .has-error .fl-input {
    border-color: #ef4444;
}


#contenedor-form .fl-s2-error .select2-selection,
.fl-s2-error .select2-selection {
    border-color: #ef4444 !important;
}

#contenedor-form .swal2-title {
    margin: 0px !important;
}

#contenedor-form input[type="checkbox"] {
    display: none !important;
}

/* ============================================================
   FIXES NEUTRALIZANTES PARA ELEMENTOS WP (No tocar)
   ============================================================ */

#contenedor-form .select2-container .select2-selection--single .select2-selection__arrow b::before,
#contenedor-form .select2-container .select2-selection--single .select2-selection__arrow b::after {
    content: none !important;
    display: none !important;
}

#contenedor-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    width: 20px !important;
    top: 0 !important;
    right: 4px !important;
    margin-right: 0 !important;
    line-height: normal !important;
}

#contenedor-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 4px 0 4px !important;
    border-color: #6b7280 transparent transparent transparent !important;
    border-style: solid !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -2px !important;
    margin-left: -4px !important;
}

#contenedor-form .fl-check-row label::before,
#contenedor-form .fl-check-row label::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
}

#contenedor-form .fl-check-row label,
#contenedor-form input[type="checkbox"] ~ label,
#contenedor-form input[type="radio"] ~ label {
    padding-left: 0 !important;
    position: static !important;
    display: inline !important;
    margin: 0 !important;
}

#contenedor-form .fl-check-row input[type="checkbox"] {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

#modalActividades .fl-chk-actividad::before,
#modalActividades .fl-chk-actividad::after,
#modalParticipantes input[type="checkbox"]::before,
#modalParticipantes input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

#modalActividades,
#modalParticipantes {
    z-index: 99999 !important;
}

#modalParticipantes .modal-dialog {
    max-width: 700px !important;
}
.modal-backdrop {
    z-index: 99998 !important;
}

.fl-modal-close {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    opacity: 0.7;
    cursor: pointer;
    padding: 0 4px !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-weight: 300;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0;
    transition: none !important;
}

.fl-modal-close:hover {
    opacity: 1;
    color: #fff !important;
    background: none !important;
}

.fl-modal-close::before,
.fl-modal-close::after {
    content: none !important;
    display: none !important;
}

#modalActividades input[type="radio"].fl-chk-actividad,
#modalActividades td input[type="radio"],
#modalActividades input[type="radio"] {
    visibility: visible !important;
    opacity: 1 !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    display: inline-block !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0 auto !important;
}

#modalActividades input[type="checkbox"].fl-chk-actividad,
#modalActividades td input[type="checkbox"],
#modalActividades input[type="checkbox"] {
    visibility: visible !important;
    opacity: 1 !important;
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    position: static !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0 auto !important;
}

#contenedor-form input[type="radio"] {
    visibility: visible !important;
    opacity: 1 !important;
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    position: static !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
    accent-color: #3b82f6;
    cursor: pointer;
}

#fl-btn-confirmar-actividades:hover,
#fl-btn-confirmar-actividades:focus {
    background: #2563eb !important;
    color: #fff !important;
}

.fl-modal-close {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    align-self: flex-start !important;
}

#contenedor-form .select2-container,
#contenedor-form .form-group.fl-form-group:has(.select2-container) {
    padding-bottom: 10px;
}

#contenedor-form .fl-form-group .select2-container {
    margin-bottom: 0;
}

#contenedor-form input[type="text"],
#contenedor-form input[type="tel"],
#contenedor-form input[type="email"] {
    margin: 0 !important;
    width: 100% !important;
}

#contenedor-form .fl-label-actividades {
    line-height: 1.3;
    white-space: nowrap;
}

#contenedor-form hr {
    background-color: #e5e7eb !important;
    border-color: #e5e7eb !important;
    opacity: 1 !important;
    height: 1px !important;
    margin: 10px 0 !important;
}

#modalActividades .fl-btn-primary,
#modalActividades #fl-btn-confirmar-actividades {
    background-color: #3b82f6 !important;
    background: #3b82f6 !important;
    color: #fff !important;
    width: auto !important;
}

#modalActividades .fl-btn-primary:hover,
#modalActividades #fl-btn-confirmar-actividades:hover {
    background-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    font-family: 'Montserrat', sans-serif !important;
    padding: 0.5rem 1rem 0 !important;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    font-size: 0.85rem !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #374151 !important;
}

div:where(.swal2-container) .swal2-actions button {
    font-size: 0.8rem !important;
    width: auto !important;
    padding: 6px 20px !important;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    width: 25em !important;
    font-size: 0.9rem !important;
}

#modalParticipantes {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
}

#modalParticipantes .modal-body {
    padding: 30px;
}

#modalParticipantes .modal-footer {
    padding: 12px 30px;
    border-top: 1px solid #e5e7eb;
}

#modalParticipantes label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
}

#modalParticipantes .fl-req {
    color: #ef4444;
    margin-left: 2px;
}

#modalParticipantes .fl-input,
#modalParticipantes .form-control {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #111827;
    height: 32px;
    padding: 4px 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
    width: 100% !important;
    margin: 0 !important;
}

#modalParticipantes .fl-input:focus,
#modalParticipantes .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
    outline: none;
}

#modalParticipantes .fl-form-group {
    margin-bottom: 0;
    padding-bottom: 10px;
}

#modalParticipantes .fl-check-row.fl-form-group {
    padding-bottom: 4px;
}

#modalParticipantes .select2-container {
    width: 100% !important;
    box-sizing: border-box;
    display: block;
}

#modalParticipantes .select2-container .select2-selection--single {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    height: 32px;
    font-size: 0.8rem;
    width: 100% !important;
    box-sizing: border-box;
}

#modalParticipantes .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #111827;
    padding-left: 8px;
    font-size: 0.8rem;
}

#modalParticipantes .select2-container .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

#modalParticipantes .select2-container--focus .select2-selection--single,
#modalParticipantes .select2-container--open .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
    outline: none;
}

#modalParticipantes .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    width: 20px !important;
    top: 0 !important;
    right: 4px !important;
    margin-right: 0 !important;
    line-height: normal !important;
    position: absolute !important;
}

#modalParticipantes .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 4px 0 4px !important;
    border-color: #6b7280 transparent transparent transparent !important;
    border-style: solid !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -2px !important;
    margin-left: -4px !important;
    display: block !important;
}

#modalParticipantes .select2-container--default .select2-selection--single .select2-selection__arrow b::before,
#modalParticipantes .select2-container--default .select2-selection--single .select2-selection__arrow b::after {
    content: none !important;
    display: none !important;
}

#modalParticipantes .fl-btn-primary {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: auto !important;
}

#modalParticipantes .fl-btn-primary:hover,
#modalParticipantes .fl-btn-primary:focus {
    background: #2563eb !important;
    color: #fff !important;
}

#modalParticipantes .fl-btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    width: auto !important;
}

#modalParticipantes .fl-btn-secondary:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
}

#modalParticipantes .fl-btn-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

#modalParticipantes .fl-btn-row .fl-btn-primary,
#modalParticipantes .fl-btn-row .fl-btn-secondary {
    flex: 1;
}

#modalParticipantes .fl-btn-icon-danger {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

#modalParticipantes .fl-btn-icon-danger:hover {
    color: #b91c1c;
}

#modalParticipantes input[type="checkbox"],
#modalParticipantes input[type="radio"] {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    position: static !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    clip: auto !important;
    clip-path: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
}

#modalParticipantes .fl-check-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

#modalParticipantes .fl-check-row input[type="checkbox"] {
    margin-top: 5.5px !important;
}

#modalParticipantes .fl-check-row label {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
    padding-left: 0 !important;
    position: static !important;
    display: inline !important;
}

#modalParticipantes .fl-check-row label::before,
#modalParticipantes .fl-check-row label::after {
    content: none !important;
    display: none !important;
}

#modalParticipantes .fl-table-participantes th,
#modalParticipantes .fl-table-participantes td {
    font-size: 0.8rem;
    padding: 5px 8px;
    vertical-align: middle;
}

#modalParticipantes .fl-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px !important;
    font-style: italic !important;
}

#modalParticipantes .fl-participantes-section {
    margin-top: 14px;
}

#modalParticipantes .fl-empty-msg {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.8rem;
    padding: 10px !important;
}

#modalParticipantes .has-error .form-control,
#modalParticipantes .has-error .fl-input {
    border-color: #ef4444;
}

#modalParticipantes .fl-s2-error .select2-selection {
    border-color: #ef4444 !important;
}