/**
 * EnClave Libre - Estilos principales
 * Universidad Liberté v1.2.3
 * 
 * CSS principal para el sistema EnClave Libre
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --gray-color: #6b7280;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #059669 100%);
    
    --font-family: 'Inter', sans-serif;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Body y layout base */
body {
    font-family: var(--font-family);
    background: var(--gradient-primary);
    min-height: 100vh;
    line-height: 1.6;
    color: #374151;
}

/* Clases de utilidad para EnClave Libre */
.categoria-badge {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    display: inline-block;
}

/* Estados de modalidad */
.modalidad-presencial { 
    background-color: #fbbf24; 
    color: #92400e; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.modalidad-virtual { 
    background-color: #34d399; 
    color: #065f46; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.modalidad-hibrido { 
    background-color: #a78bfa; 
    color: #5b21b6; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Estados de enclaves */
.estado-abierto { 
    background-color: var(--success-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-programado { 
    background-color: var(--gray-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-en_curso { 
    background-color: var(--warning-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-completo { 
    background-color: var(--danger-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-finalizado { 
    background-color: var(--gray-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-cancelado { 
    background-color: var(--danger-color); 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.estado-borrador { 
    background-color: #9ca3af; 
    color: white; 
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px dashed #6b7280;
    position: relative;
}

.estado-borrador::after {
    content: "DRAFT";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

/* Componentes de interfaz */
.spinner {
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Estilos de formularios mejorados */
.error-field {
    border-color: var(--danger-color) !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.success-field {
    border-color: var(--success-color) !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Cards y contenedores */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.enclave-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
}

.enclave-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.orador-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.orador-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Secciones específicas */
.hero-bg {
    background: var(--gradient-hero);
}

.hero-section {
    background: var(--gradient-hero);
}

.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.floating-action:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.floating-inscription {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.progress-bar {
    background: linear-gradient(90deg, var(--success-color) 0%, #059669 100%);
    border-radius: var(--border-radius);
    height: 8px;
    transition: width 0.6s ease;
}

/* Layout responsivo */
.calendar-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .calendar-view {
        grid-template-columns: 1fr;
    }
    
    .floating-action,
    .floating-inscription {
        bottom: 1rem;
        right: 1rem;
    }
}