/* ===== ESTILOS REGISTRO ===== */

/* Contenedor principal */
.registro-wrapper {
    position: relative;
    z-index: 2;
}

/* Tarjeta principal */
.registro-wrapper .col-lg-6.col-md-8.col-sm-12.mx-auto {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 32px !important;
    box-shadow: 0 30px 50px rgba(44, 69, 104, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset,
                0 0 30px rgba(108, 167, 226, 0.2) !important;
    transition: all 0.4s ease;
    padding: 30px !important;
}

/* Efecto hover en la tarjeta */
.registro-wrapper .col-lg-6.col-md-8.col-sm-12.mx-auto:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 40px 60px rgba(44, 69, 104, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset,
                0 0 50px rgba(108, 167, 226, 0.3) !important;
    transform: translateY(-5px);
}

/* Título principal */
.registro-wrapper h2 {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50px !important;
    padding: 15px 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 25px rgba(44, 69, 104, 0.15);
    margin-bottom: 30px !important;
}

.registro-wrapper h2 spam {
    font-size: 1rem !important;
    color: #2C4568;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* Texto de instrucción */
.registro-wrapper .h5 {
    color: #2C4568;
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.registro-wrapper .h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, #6CA7E2, transparent);
}

/* Select y inputs con estilo glass */
.registro-wrapper select.form-select,
.registro-wrapper input.form-control {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    color: #2C4568 !important;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(44, 69, 104, 0.1);
    transition: all 0.3s ease;
}

.registro-wrapper select.form-select:focus,
.registro-wrapper input.form-control:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 20px rgba(44, 69, 104, 0.15),
                0 0 0 2px rgba(108, 167, 226, 0.5) inset !important;
    border-color: transparent !important;
    outline: none;
}

.registro-wrapper select.form-select option {
    background: white;
    color: #2C4568;
}

/* Labels */
.registro-wrapper label {
    color: #2C4568;
    font-weight: 500;
    margin-bottom: 8px;
    margin-left: 5px;
    font-size: 0.95rem;
}

.registro-wrapper label i {
    color: #6CA7E2;
    margin-right: 5px;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* Botón REGISTRAR */
.registro-wrapper .btn#btn22 {
    background: radial-gradient(circle at top left, 
        rgba(0,60,130,0.9), 
        rgba(0,110,160,0.75)
    ) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50px !important;
    padding: 14px 20px !important;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 60, 130, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    color: white !important;
}

.registro-wrapper .btn#btn22:hover {
    background: radial-gradient(circle at top left, 
        rgba(0,110,160,0.9), 
        rgba(0,60,130,0.9)
    ) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 60, 130, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.registro-wrapper .btn#btn22:active {
    background: radial-gradient(circle at top left, 
        rgba(0,60,130,1), 
        rgba(0,110,160,0.9)
    ) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 60, 130, 0.5);
}

/* Mensajes de validación */
.registro-wrapper #msgMatricula {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 15px !important;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.registro-wrapper #msgMatricula a.btn {
    background: linear-gradient(135deg, #2C4568, #003c82);
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.registro-wrapper #msgMatricula a.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(44, 69, 104, 0.3);
}

/* Estilos para los campos readonly  */
.registro-wrapper input.form-control[readonly] {
    background: rgba(108, 167, 226, 0.15) !important;
    border-color: rgba(108, 167, 226, 0.3) !important;
    color: #2C4568 !important;
    font-weight: 600;
}

/* Animación de entrada */
@keyframes registroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(12px);
    }
}

.registro-wrapper .col-lg-6.col-md-8.col-sm-12.mx-auto {
    animation: registroFadeIn 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .registro-wrapper .col-lg-6.col-md-8.col-sm-12.mx-auto {
        padding: 20px !important;
        margin: 0 15px;
    }
    
    .registro-wrapper h2 spam {
        font-size: 0.85rem !important;
    }
    
    .registro-wrapper .h5 {
        font-size: 1rem;
    }
}
