.b24-form-btn {
    margin: 0;
    padding: 15px 20px;
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 4px;
    background-color: #004e59;
    color: rgba(255, 255, 255, 1);
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.09);
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b24-form-control-container {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.b24-form-control {
    background-color: #e6e8ea;
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.b24-form-control:focus {
    background-color: white;
    outline: none;
    border-color: #007bff;
}

.b24-form-control-label {
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 12px;
    transition: 0.2s ease all;
    color: #999;
    background-color: transparent;
    font-size: 16px;
    z-index: 2;
}

/* Cuando el input/textarea está enfocado o tiene texto */
.b24-form-control:not(:-moz-placeholder) ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}
.b24-form-control:focus ~ .b24-form-control-label,
.b24-form-control:not(:placeholder-shown) ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}

.b24-form-control-required {
    color: #ff4444;
}

.b24-form-control-alert-message {
    visibility: hidden;
    opacity: 0;
    background-color: #ff4444;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    position: absolute;
    z-index: 1;
    top: calc(100% + 5px);
    left: 0;
    width: auto;
    white-space: nowrap;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.b24-form-control-alert-message::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ff4444;
}

.b24-form-control-container:hover .b24-form-control-alert-message {
    visibility: visible;
    opacity: 1;
}

/* Estilos para el select personalizado */
.b24-select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 35px;
    cursor: pointer;
}

.b24-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* SOLUCIÓN PARA SELECTS - CSS PURO */
.b24-select:focus ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}

/* Cuando el select tiene una opción válida seleccionada */
.b24-select:not([value=""]):not(:focus) ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #666;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}

.b24-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Comportamiento para textarea */
.b24-textarea:not(:-moz-placeholder) ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}
.b24-textarea:focus ~ .b24-form-control-label,
.b24-textarea:not(:placeholder-shown) ~ .b24-form-control-label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #007bff;
    background-color: white;
    padding: 0 5px;
    font-weight: 500;
}

.b24-form-btn:hover {
    background-color: #004e49;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.b24-form-control-optional {
    color: #6c757d;
    font-size: 0.75em;
    font-weight: normal;
    margin-left: 4px;
}

/* Ajuste para texto opcional cuando la etiqueta flota */
.b24-form-control:not(:-moz-placeholder)
    ~ .b24-form-control-label
    .b24-form-control-optional, .b24-textarea:not(:-moz-placeholder)
    ~ .b24-form-control-label
    .b24-form-control-optional {
    font-size: 0.7em;
}
.b24-form-control:focus ~ .b24-form-control-label .b24-form-control-optional,
.b24-form-control:not(:placeholder-shown)
    ~ .b24-form-control-label
    .b24-form-control-optional,
.b24-textarea:focus ~ .b24-form-control-label .b24-form-control-optional,
.b24-textarea:not(:placeholder-shown)
    ~ .b24-form-control-label
    .b24-form-control-optional,
.b24-select:focus ~ .b24-form-control-label .b24-form-control-optional,
.b24-select:not([value=""]):not(:focus)
    ~ .b24-form-control-label
    .b24-form-control-optional {
    font-size: 0.7em;
}

h3 {
    color: #004f44;
    margin-top: 40px;
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

h2 {
    text-align: center;
    background-color: #cadb36;
    padding: 0.3456em;
    color: #fff;
    margin-bottom: 30px;
    font-size: 28px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #acbc22;
}

.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eeeeee;
    margin-top: 0;
}

/* Estilos específicos para checkboxes manteniendo la misma tipografía */
.b24-checkbox-container {
    margin-bottom: 0.75rem;
}

.b24-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s ease;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.b24-checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.b24-checkbox-input {
    display: none;
}

.b24-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b24-checkbox-input:checked + .b24-checkbox-custom {
    background: #4f46e5;
    border-color: #4f46e5;
}

.b24-checkbox-input:checked + .b24-checkbox-custom::after {
    content: "";
    width: 10px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    position: absolute;
    top: 4px;
    left: 3px;
}

.b24-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

/* Estados de focus consistentes con inputs */
.b24-checkbox-input:focus + .b24-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-color: #4f46e5;
}

.b24-checkbox-label:has(.b24-checkbox-input:checked) {
    background: #f8faff;
    border-color: #e0e7ff;
}

/* ========================================================================== */
/* ESTILOS PARA SELECT2 SIMPLE */
/* ========================================================================== */

/* Ocultar el select nativo cuando Select2 está activo */
.select2-container ~ select.b24-form-control {
    display: none !important;
}

/* Contenedor principal de Select2 */
.select2-container {
    width: 100% !important;
    margin-bottom: 25px;
}

/* Selección principal de Select2 */
.select2-container .select2-selection--single {
    background-color: #e6e8ea !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    height: 46px !important;
    padding: 8px 10px !important;
    transition: all 0.3s ease !important;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
}

/* Texto renderizado */
.select2-container .select2-selection__rendered {
    color: #333 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.select2-container .select2-selection__placeholder {
    color: #999 !important;
}

/* Flecha del dropdown */
.select2-container .select2-selection__arrow {
    height: 44px !important;
    right: 8px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container .select2-selection__arrow b {
    border-color: #333 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    transition: all 0.2s ease !important;
}

.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent #333 transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Clear button */
.select2-container .select2-selection__clear {
    margin-right: 25px !important;
    color: #666 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.select2-container .select2-selection__clear:hover {
    color: #ff4444 !important;
}

/* Dropdown styles */
.select2-container .select2-dropdown {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    background-color: white !important;
    z-index: 1060 !important;
}

/* Search en dropdown */
.select2-container .select2-search--dropdown {
    padding: 10px !important;
}

.select2-container .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    background-color: #e6e8ea !important;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container .select2-search--dropdown .select2-search__field:focus {
    background-color: white !important;
    border-color: #007bff !important;
    outline: none !important;
}

/* Opciones del dropdown */
.select2-container .select2-results__option {
    padding: 8px 12px !important;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: #333 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
}

.select2-container .select2-results__option--highlighted {
    background-color: #004e59 !important;
    color: white !important;
}

.select2-container .select2-results__option--selected {
    background-color: #e6f2ff !important;
    color: #004e59 !important;
}

.select2-container .select2-results__option[aria-selected="true"] {
    background-color: #f8f9fa !important;
}

/* Estados de focus */
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    background-color: white !important;
    border-color: #007bff !important;
    outline: none !important;
}

/* ========================================================================== */
/* COMPORTAMIENTO DEL LABEL FLOTANTE PARA SELECT2 */
/* ========================================================================== */

/* Estados para el label flotante con Select2 */
.b24-form-control-container.select2-focused .b24-form-control-label {
    top: -8px !important;
    left: 8px !important;
    font-size: 12px !important;
    color: #007bff !important;
    background-color: white !important;
    padding: 0 5px !important;
    font-weight: 500 !important;
    z-index: 11 !important;
}

.b24-form-control-container.select2-has-value .b24-form-control-label {
    top: -8px !important;
    left: 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    background-color: white !important;
    padding: 0 5px !important;
    font-weight: 500 !important;
    z-index: 11 !important;
}

/* Ajuste para texto opcional en Select2 */
.b24-form-control-container.select2-focused
    .b24-form-control-label
    .b24-form-control-optional,
.b24-form-control-container.select2-has-value
    .b24-form-control-label
    .b24-form-control-optional {
    font-size: 0.7em !important;
}

/* ========================================================================== */
/* ESTADOS DE VALIDACIÓN PARA SELECT2 */
/* ========================================================================== */

.select2-container.is-invalid .select2-selection--single {
    border-color: #ff4444 !important;
}

.select2-container.is-valid .select2-selection--single {
    border-color: #28a745 !important;
}

/* Loading state */
.select2-container .select2-results__option--loading {
    color: #999 !important;
    font-style: italic !important;
}

/* Disabled state */
.select2-container .select2-selection--disabled {
    background-color: #f8f9fa !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

@media (max-width: 768px) {
    .select2-container .select2-selection--single {
        font-size: 16px !important;
        height: 44px !important;
    }

    .select2-container .select2-dropdown {
        font-size: 16px !important;
    }
}

/* Asegurar que el contenedor de Select2 ocupe todo el ancho */
.b24-form-control-container .select2 {
    width: 100% !important;
}

/* Asegurar que el label esté por encima de Select2 */
.b24-form-control-container .b24-form-control-label {
    z-index: 12 !important;
}

/* Ocultar el select nativo cuando Select2 está presente */
.b24-form-control-container .select2-container + select {
    display: none !important;
}

.verCarrera {
    display: none;
}

.verSede {
    display: none;
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
    margin: 15px 0;
    display: inline-block;
}

#recaptcha-error {
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
}

/* Asegurar que el reCAPTCHA sea responsive */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

