/**
 * Visual Effects CSS - UIT Unión Innova Textil
 * Efectos visuales avanzados: tema oscuro, partículas, gradientes dinámicos
 */

/* ===== TEMA OSCURO/CLARO ===== */
:root {
    /* Colores del tema claro */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
    /* Colores del tema oscuro */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #2d2d2d;
    --input-bg: #3a3a3a;
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* Transición suave para cambio de tema */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}













/* ===== EFECTOS DE FONDO DINÁMICOS ===== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%, 
        rgba(0, 184, 148, 0.1) 25%, 
        rgba(0, 160, 133, 0.1) 50%, 
        rgba(0, 143, 122, 0.1) 75%, 
        rgba(0, 212, 170, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: -1;
}

/* ===== CARDS CON EFECTOS AVANZADOS ===== */
.enhanced-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 170, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

/* ===== BOTONES CON EFECTOS AVANZADOS ===== */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--uit-green), #00b894);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .theme-toggle {
        width: 45px;
        height: 22px;
        margin-left: 0.5rem;
    }
    
    .theme-icon {
        font-size: 10px;
    }
    
    .particles-container {
        opacity: 0.3;
    }
    
    .enhanced-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 40px;
        height: 20px;
    }
    
    .theme-icon {
        font-size: 9px;
    }
    
    .vector-illustration {
        max-width: 250px;
    }
}
