/* Clubs Alumno - Estilos */
.cbta256-clubs-alumno-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.alumno-header {
    text-align: center;
    margin-bottom: 30px;
}

.alumno-header h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.alumno-descripcion {
    color: #7f8c8d;
    font-size: 1.1em;
}

.alumno-seccion {
    margin-bottom: 30px;
}

/* Búsqueda CURP */
.curp-input-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.curp-input-container label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.curp-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    text-transform: uppercase;
}

.curp-input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-buscar {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buscar:hover {
    background-color: #2980b9;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
    animation: slideDown 0.3s;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    animation: slideDown 0.3s;
}

/* Info Alumno */
.alumno-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.alumno-info-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.alumno-detalle {
    margin: 8px 0;
    font-size: 1em;
}

/* Club Actual */
.club-actual-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.club-actual-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.club-nombre-actual {
    font-size: 1.5em;
    color: #27ae60;
    font-weight: 600;
    margin: 20px 0;
}

.btn-cambiar {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.btn-cambiar:hover {
    background-color: #e67e22;
}

.mensaje-aviso {
    color: #856404;
    background-color: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #ffeeba;
}

/* Clubs Disponibles */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.club-disponible-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.club-disponible-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.club-disponible-card.club-sin-cupo {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.club-disponible-card.club-sin-cupo:hover {
    transform: none;
    border-color: #e0e0e0;
}

.club-card-header h4 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.club-card-body p {
    margin: 8px 0;
    color: #7f8c8d;
}

.club-profesor,
.club-cupo {
    font-size: 0.95em;
}

.sin-cupo-text {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 10px;
}

.no-clubs {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    padding: 40px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.modal-contenido {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.modal-contenido h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#modal-mensaje-inscripcion {
    margin: 20px 0;
    line-height: 1.6;
}

#modal-mensaje-inscripcion small {
    color: #7f8c8d;
    display: block;
    margin-top: 10px;
}

.modal-acciones {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-confirmar,
.btn-cancelar {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-confirmar {
    background-color: #27ae60;
    color: white;
}

.btn-confirmar:hover {
    background-color: #229954;
}

.btn-cancelar {
    background-color: #95a5a6;
    color: white;
}

.btn-cancelar:hover {
    background-color: #7f8c8d;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loader-overlay p {
    margin-top: 20px;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .cbta256-clubs-alumno-wrapper {
        padding: 10px;
    }
    
    .alumno-header h2 {
        font-size: 1.5em;
    }
    
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    
    .curp-input-container {
        padding: 20px;
    }
    
    .modal-contenido {
        width: 95%;
        padding: 20px;
    }
    
    .modal-acciones {
        flex-direction: column;
    }
    
    .btn-confirmar,
    .btn-cancelar {
        width: 100%;
    }
}
