:root {
    --linea--borde-relleno: #434344;
    --linea--borde-vacio: #bcbcbc;
    --accent: #2f6fbf;
    --bg: rgba(255, 255, 255, 0.75);
    /* ligera transparencia */
    --glass: rgba(0, 0, 0, 0.06);
    --radius: 10px;
}

.disclaimer{    
    font-size: 11px;
    color:#616263;
}
.bg-transp {
  background: rgba(255, 255, 255, 0.7);
  /* 75% opacidad */
  backdrop-filter: blur(2px);
  /* opcional: efecto glass */
}


/** {
    box-sizing: border-box;
}*/

/*body {
    background-color: aliceblue;
    font-family: 'Muli', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}*/
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(135deg, #e6f0ff 0%, #f7f9ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body,
html {
    height: 100%;
}

.bg-lightinstituto {
    background-image: url("../img/fondo.jpg");
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

#formulario {
    display: none;
}

/* Arreglar problemas de overflow y centrado */
#formulario {
    width: 100%;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
}

#formulario .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

#frmadmissionrequest {
    margin: 0 auto;
}

/* Asegurar que no haya scroll horizontal */
.container-fluid {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mejoras táctiles para móviles */
@media (max-width: 767px) {
    /* Área táctil más grande para tabs */
    .tab-label {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Espaciado táctil para checkboxes */
    .form-check {
        padding: 8px 0;
    }
    
    /* Inputs con altura táctil adecuada */
    input, select, textarea {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Prevenir zoom en iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Scrollbar más visible en móvil */
    .panels::-webkit-scrollbar {
        width: 6px;
    }
    
    .panels::-webkit-scrollbar-thumb {
        background: #14b8a6;
        border-radius: 3px;
    }
    
    /* Forzar columnas apiladas en móvil */
    .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Tabs header responsive */
    .tabs-header {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
    }
    
    /* File inputs en móvil */
    input[type="file"] {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Header del formulario compacto */
    #formulario > .row > div[style*="background"] {
        padding: 10px !important;
        font-size: 0.9rem;
    }
    
    /* Info de consentimiento más pequeña */
    .alert-info {
        padding: 8px;
        font-size: 0.75rem;
    }
    
    /* Espaciado del título del periodo */
    #admision_period_title {
        font-size: 1rem !important;
    }
    
    #admision_period_name {
        font-size: 0.85rem !important;
    }
    
    /* Asegurar que el formulario no tenga overflow */
    #frmadmissionrequest {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Tabs card responsive */
    .tabs-card {
        margin: 0 !important;
        border-radius: 8px;
    }
    
    /* Panels sin padding excesivo */
    .panels {
        padding: 10px !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Panel content */
    .panel-aspirante,
    .panel-madre,
    .panel-padre {
        width: 100%;
        padding: 0;
    }
    
    /* Todos los divs dentro del panel */
    .panel > div,
    .panel .row > div {
        box-sizing: border-box;
    }
}

/* Responsive por tamaño de pantalla */
@media (max-width: 767px) {
    #formulario {
        padding: 5px !important;
        margin-top: 5px !important;
    }
    
    #frmadmissionrequest {
        max-width: 100% !important;
        padding: 12px !important;
        margin-left: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .tabs-card {
        max-width: 100% !important;
    }
    
    #formulario .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Ajustar márgenes y padding para móvil */
    #formulario .row {
        min-height: auto !important;
    }
    
    /* Título del formulario más pequeño */
    #formulario h3,
    #formulario h4 {
        font-size: 1.1rem;
    }
    
    #formulario h5 {
        font-size: 0.95rem;
    }
    
    /* Botón enviar más grande en móvil */
    #btn_send_admission {
        width: 100%;
        padding: 14px !important;
        font-size: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    #frmadmissionrequest {
        max-width: 700px !important;
        margin-left: -100px !important;
    }
    
    .tabs-card {
        max-width: 100% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    #frmadmissionrequest {
        max-width: 800px !important;
        margin-left: -150px !important;
    }
}

@media (min-width: 1600px) {
    #frmadmissionrequest {
        max-width: 850px !important;
        margin-left: -150px !important;
    }
}

.contenedor {

    font-family: 'Muli', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.progreso-contenedor {
    display: flex;
    justify-content: space-between;
    position: relative;
    /* margin-bottom: 30px;*/
    max-width: 100%;
    width: 550px;
}


.progreso-contenedor::before {
    content: '';
    background-color: var(--linea--borde-vacio);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: -1;
    transition: 0.4s ease;
}

.progreso {
    background-color: var(--linea--borde-relleno);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    z-index: -1;
    transition: 0.4s ease;
}

.circulo {
    background-color: #fff;
    color: #434344;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--linea--borde-vacio);
    transition: 0.4s ease;
}

.circulo.active {
    border-color: var(--linea--borde-relleno);
}

.btn {
    background-color: var(--linea--borde-relleno);
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 24px;
    margin: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: 0;
}

.btn:disabled {
    background-color: var(--linea--borde-vacio);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilos modernos para inputs y selects del formulario */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 32px !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.form-control:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="date"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #d1d5db !important;
}

/* Estilos para inputs con error */
.form-control.error,
input.error,
input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
input[type="number"].error,
input[type="date"].error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    border-width: 2px !important;
}

.form-control.error:focus,
input.error:focus,
input[type="text"].error:focus,
input[type="email"].error:focus,
input[type="tel"].error:focus,
input[type="number"].error:focus,
input[type="date"].error:focus,
select.error:focus,
textarea.error:focus {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-control.error:hover,
input.error:hover {
    border-color: #ef4444 !important;
}

/* Estilos para file inputs */
input[type="file"] {
    padding: 6px !important;
    font-size: 0.85rem !important;
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Estilos mejorados para botones Bootstrap en el formulario */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-warning:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-info {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4) !important;
}

/* Estilos para labels del formulario */
label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* Estilos para los grupos de checkbox y radio */
.form-check-input {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #14b8a6;
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.form-check-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-check-label {
    font-weight: 500;
    color: #4b5563;
}

/* Estilos para botones pequeños */
.btn-sm {
    padding: 5px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
}

/* Placeholder styles */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #9ca3af;
}

::-ms-input-placeholder {
    color: #9ca3af;
}

/* Estilos para campos de solo lectura */
.readonly-field,
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
    opacity: 0.8 !important;
}

.readonly-field:focus,
input[readonly]:focus,
textarea[readonly]:focus,
select[readonly]:focus {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    box-shadow: 0 0 0 3px rgba(209, 213, 219, 0.1) !important;
}

/* Estilos para el mensaje de respuesta (#respuesta) */
#respuesta .card {
    animation: slideInUp 0.6s ease-out;
}

#respuesta .card-header i {
    animation: scaleIn 0.8s ease-out 0.3s both;
}

#respuesta .card-body {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Estilos para el mensaje de error (#mensaje) */
#mensaje .card {
    animation: slideInUp 0.6s ease-out;
}

#mensaje .card-header i {
    animation: shake 0.8s ease-out 0.3s;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Mejoras adicionales para respuestams */
#respuestams h3, #respuestams h4 {
    color: #065f46;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#respuestams p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

#respuestams strong {
    color: #14b8a6;
}

/* Estilo especial para el botón de enviar solicitud */
#btn_send_admission {
    position: relative;
    overflow: hidden;
}

#btn_send_admission:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.6), 0 0 30px rgba(13, 148, 136, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

#btn_send_admission:active {
    transform: translateY(-1px) scale(1) !important;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5) !important;
}

#btn_send_admission::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#btn_send_admission:hover::before {
    width: 300px;
    height: 300px;
}

/* Animación de pulso para el botón */
@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5), 0 0 20px rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(20, 184, 166, 0.6), 0 0 30px rgba(13, 148, 136, 0.5);
    }
}

#btn_send_admission {
    animation: pulse-button 2s ease-in-out infinite;
}

.tabs-card {
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px var(--glass);
    overflow: visible;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(47, 111, 191, 0.08);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tabs-card {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .tabs-card {
        max-width: 850px;
    }
}

/* hide native radios */
.tabs-card input[type="radio"] {
    display: none
}

.tabs-header {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
}

.tab-label {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #385276;
    transition: all .18s ease;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.tab-label i {
    font-size: 0.95rem
}

/* inactive look */
.tab-label:hover {
    transform: translateY(-2px)
}

/* panels container */
.panels {
    padding: 5px;
    height: auto;
    min-height: auto !important;
    max-height: 750px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

/* Ajustar panels según resolución */
@media (max-width: 767px) {
    .panels {
        padding: 12px;
        min-height: 450px !important;
        max-height: 650px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .panels {
        padding: 14px;
        min-height: 500px !important;
        max-height: 700px;
    }
}

/* Estilo moderno para la barra de scroll en panels */
.panels::-webkit-scrollbar {
    width: 8px;
}

.panels::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.panels::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 10px;
}

.panels::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

/* Asegurar que todos los campos sean visibles */
.panel {
    min-height: 100%;
    overflow: visible;
}

.panel .row {
    width: 100%;
}

/* Asegurar visibilidad de campos en los 3 tabs */
#tab-aspirante:checked ~ .panels,
#tab-madre:checked ~ .panels,
#tab-padre:checked ~ .panels {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Forzar altura adecuada cuando hay mucho contenido */
.panel-aspirante,
.panel-madre,
.panel-padre {
    height: auto;
    min-height: 100%;
    padding-bottom: 20px;
}

/* Prevenir que los campos se escondan */
.tabs-card {
    overflow: visible !important;
}

.panels {
    position: relative;
    display: block;
}

/* Asegurar scroll suave */
.panels {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Indicador visual de scroll */
.panels::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(243, 245, 249, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.panels:not(:hover)::after {
    opacity: 0;
}

.panel {
    display: none
}

/* Espaciado compacto entre filas dentro de los panels */
.panel .row {
    margin-bottom: 0.5rem;
}

.panel .row:last-child {
    margin-bottom: 0;
}

/* Reducir márgenes en columnas */
.panel .col-md-6,
.panel .col-md-12 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

/* Checkboxes con espaciado reducido */
.panel .form-check {
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
}

/* show panel depending on checked radio */
#tab-aspirante:checked~.tabs-header label[for="tab-aspirante"] {
    background: linear-gradient(90deg, #ff5a5a, #ff5a5a);
    color: white;
    box-shadow: 0 6px 14px rgba(47, 111, 191, 0.18);
}

#tab-padre:checked~.tabs-header label[for="tab-padre"] {
    background: linear-gradient(90deg, #5aa1ff, #5aa1ff);
    color: white;
    box-shadow: 0 6px 14px rgba(47, 111, 191, 0.18);
}

#tab-madre:checked~.tabs-header label[for="tab-madre"] {
    background: linear-gradient(90deg, #616263, #616263);
    color: white;
    box-shadow: 0 6px 14px rgba(47, 111, 191, 0.18);
}

#tab-aspirante:checked~.panels .panel.panel-aspirante,
#tab-padre:checked~.panels .panel-panel-padre,
#tab-madre:checked~.panels .panel.panel-madre {
    display: block;
}

/* fix: use explicit selectors for each panel */
#tab-aspirante:checked~.panels .panel-aspirante {
    display: block
}

#tab-padre:checked~.panels .panel-padre {
    display: block
}

#tab-madre:checked~.panels .panel-madre {
    display: block
}

/* simple content styling */
.panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.meta {
    font-size: 0.95rem;
    color: #42536a;
}

/* Estilos para el modal de captcha */
#captcha_modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#captcha_modal .modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#captcha_modal .modal-body {
    padding: 2rem;
}

#captcha_modal_img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#captcha_modal_img:hover {
    transform: scale(1.02);
}

#captcha_modal_input {
    font-size: 1.1rem;
    padding: 0.6rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#captcha_modal_input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 191, 0.1);
}

#captcha_modal_error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

#btn_validate_captcha {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#btn_validate_captcha:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 111, 191, 0.3);
}

#btn_validate_captcha:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#captcha_modal .btn-link {
    text-decoration: none;
    font-size: 0.875rem;
}

#captcha_modal .btn-link:hover {
    text-decoration: underline;
}

/* Estilos para el modal de consentimiento de datos */
#lopdp_modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#lopdp_modal .modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#lopdp_modal .modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

#lopdp_modal #data_consent {
    line-height: 1.6;
    color: #333;
}

#lopdp_modal .btn-success {
    padding: 0.6rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#lopdp_modal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

#lopdp_modal .btn-danger {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#lopdp_modal .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* responsive mejorado para móviles */
@media (max-width:480px) {
    /* Tabs más compactos */
    .tab-label {
        font-size: 0.75rem;
        padding: 6px 4px;
        gap: 3px;
    }

    .tab-label i {
        font-size: 0.8rem;
    }
    
    .tabs-header {
        padding: 5px;
        gap: 3px;
    }
    
    /* Panels más compactos */
    .panels {
        padding: 8px !important;
        min-height: 450px !important;
        max-height: 600px !important;
    }
    
    /* Formulario adaptado */
    #frmadmissionrequest {
        padding: 10px !important;
    }
    
    /* Inputs y campos más grandes para táctil */
    .panel .form-control,
    .panel input[type="text"],
    .panel input[type="email"],
    .panel input[type="tel"],
    .panel input[type="number"],
    .panel input[type="date"],
    .panel select {
        min-height: 36px !important;
        font-size: 14px !important;
        padding: 8px !important;
    }
    
    /* Botones más grandes para táctil */
    .btn {
        min-height: 40px;
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
    
    /* Labels más pequeños */
    label {
        font-size: 0.8rem !important;
        margin-bottom: 3px;
    }
    
    /* Rows más compactas */
    .panel .row {
        margin-bottom: 0.4rem;
    }
    
    /* Tabs card sin bordes excesivos */
    .tabs-card {
        border-radius: 8px;
    }

    #captcha_modal .modal-body {
        padding: 1rem;
    }

    #captcha_modal_img {
        width: 160px;
        height: auto;
    }
    
    /* Checkboxes más grandes */
    .form-check-input {
        width: 18px;
        height: 18px;
    }
    
    .form-check-label {
        font-size: 0.85rem;
    }
    
    /* Título del periodo más compacto */
    #formulario h3,
    #formulario h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* Modales en móvil */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Botón de enviar full width */
    #btn_send_admission {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    
    /* File inputs en móvil */
    input[type="file"] {
        font-size: 0.75rem !important;
    }
    
    input[type="file"]::-webkit-file-upload-button {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    /* Selects más visibles */
    select {
        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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 12px 12px;
    }
    
    /* Columnas apiladas verticalmente */
    .panel .col-md-6,
    .panel .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Rows sin márgenes negativos */
    .panel .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    
    /* Container del panel */
    .panel {
        width: 100%;
        padding: 0;
    }
    
    /* Tabs card sin overflow */
    .tabs-card {
        overflow-x: hidden !important;
        width: 100%;
    }
    
    /* Form control 100% ancho */
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Checkboxes en móvil */
    .form-check {
        width: 100%;
        padding-left: 25px;
    }
    
    .form-check-input {
        margin-left: -25px;
    }
}

/* Tablets pequeñas */
@media (min-width: 481px) and (max-width: 767px) {
    .tab-label {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .panels {
        padding: 12px !important;
        min-height: 480px !important;
        max-height: 650px !important;
    }
    
    #frmadmissionrequest {
        padding: 15px !important;
    }
    
    #btn_send_admission {
        width: 100%;
        padding: 12px !important;
    }
}

/* Ajustes generales para todo móvil y tablet */
@media (max-width: 991px) {
    /* Columnas en móvil ocupan todo el ancho */
    .panel .col-md-6,
    .panel .col-6,
    .panel .col-md-12,
    .panel .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.5rem;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Reducir espacios en formulario */
    .panel .row {
        margin-bottom: 0.3rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Alert info más compacto */
    .alert {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Tabs card ancho completo */
    .tabs-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
    }
    
    /* Inputs ocupan todo el ancho */
    .panel input:not([type="checkbox"]):not([type="radio"]),
    .panel select,
    .panel textarea {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Labels en móvil */
    .panel label {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* ========================================================================
   ESTILOS PARA LOS MODALES MEJORADOS
   ======================================================================== */

/* Modal de Captcha */
#captcha_modal .modal-content {
    animation: slideInDown 0.3s ease-out;
}

#captcha_modal .btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

#captcha_modal .btn:active {
    transform: translateY(0);
}

#captcha_modal_input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
}

/* Modal de Consentimiento LOPDP */
#lopdp_modal .modal-content {
    animation: slideInUp 0.3s ease-out;
}

#lopdp_modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#lopdp_modal .modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

#lopdp_modal .modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

#lopdp_modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

#lopdp_modal .btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

#lopdp_modal .btn:active {
    transform: translateY(0);
}

/* Animaciones para los modales */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================
   CLASES REUTILIZABLES PARA BOTONES
   ======================================================================== */

/* Botón principal con gradiente teal (enviar solicitud, realizar otra solicitud) */
.btn-gradient-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5), 0 0 20px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gradient-teal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.6), 0 0 30px rgba(13, 148, 136, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-gradient-teal:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

/* Botón de siguiente período (academic_periods_form) */
.btn-next-period {
    font-weight: normal;
}

/* Botones del modal LOPDP */
.btn-modal-close {
    border-radius: 25px;
    font-weight: 500;
}

.btn-modal-confirm {
    border: none;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: white;
}

/* Botón de recargar captcha */
.btn-reload-captcha {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #14b8a6;
    color: #14b8a6;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.15);
}

.btn-reload-captcha:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-color: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Botón de cancelar en modal captcha */
.btn-modal-cancel {
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Botón de validar captcha */
.btn-validate-captcha {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    color: white;
}

.btn-validate-captcha:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    color: white;
}

/* Botón de intentar nuevamente */
.btn-retry {
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

/* Botón estándar con padding */
.btn-lg-padding {
    padding: 12px 40px;
}

.btn-md-padding {
    padding: 10px 30px;
}

.btn-sm-padding {
    padding: 8px 20px;
}

/* Responsive para botones */
@media (max-width: 767px) {
    .btn-gradient-teal {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-modal-confirm {
        padding: 10px 20px;
    }
    
    .btn-retry {
        width: 100%;
        padding: 12px 20px;
    }
}