/* 
 * Sistema de Configuración de Colores - Aurora Moreno Olmo
 * Este archivo permite cambiar fácilmente los colores del sitio web
 */

:root {
    /* =================================
       PALETA PRINCIPAL - Fácil de modificar
       ================================= */
    
    /* Colores principales del brand */
    --color-primary: #8a2be2;       /* Púrpura - Color principal */
    --color-secondary: #ffb961;     /* Marrón - Color secundario */
    --color-tertiary: #6d4c41;      /* Beige - Color terciario */
    --color-light: #faf3e0;         /* Crema - Fondos claros */
    --color-neutral: #E8E3DD;       /* Gris claro - Elementos neutros */
    --color-white: #FFFFFF;         /* Blanco puro */
    --color-black: #4a148c;         /* Negro suave */
    
    /* Colores para SHALS (amarillo y verde) */
    --shals-primary: #F7DC6F;       /* Amarillo suave */
    --shals-secondary: #58D68D;     /* Verde fresco */
    --shals-accent: #48C9B0;        /* Verde agua */
    --shals-dark: #27AE60;          /* Verde oscuro */
    --shals-light: #FFFEF2;         /* Crema claro */
    
    /* Colores adicionales para elementos específicos */
    --angel-gold: #FFD700;          /* Dorado para elementos angelicales */
    --angel-light: #FFF8DC;         /* Luz angelical */
    --angel-purple: #9370DB;        /* Púrpura místico */
    
    /* =================================
       FUENTES - Colores según fondo
       ================================= */
    
    /* Fuente para fondos claros */
    --font-color-dark: #1A1A1A;
    --font-color-dark-secondary: #4A4A4A;
    --font-color-dark-muted: #6B7280;
    
    /* Fuente para fondos oscuros */
    --font-color-light: #FFFFFF;
    --font-color-light-secondary: #F3F4F6;
    --font-color-light-muted: #D1D5DB;
    
    /* =================================
       GRADIENTES PREDEFINIDOS
       ================================= */
    
    /* Gradiente principal */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-tertiary));
    
    /* Gradiente SHALS */
    --gradient-shals: linear-gradient(135deg, var(--shals-primary), var(--shals-secondary), var(--shals-accent));
    
    /* Gradiente celestial */
    --gradient-celestial: linear-gradient(135deg, var(--color-primary) 0%, var(--angel-purple) 50%, var(--angel-gold) 100%);
    
    /* Gradiente místico */
    --gradient-mystical: linear-gradient(135deg, #2E1A47, #4A2B68, var(--color-primary));
    
    /* =================================
       SOMBRAS
       ================================= */
    
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Sombras de color */
    --shadow-primary: 0 10px 30px rgba(107, 58, 91, 0.3);
    --shadow-shals: 0 10px 30px rgba(88, 214, 141, 0.3);
    
    /* =================================
       ESPACIADO Y LAYOUT
       ================================= */
    
    --section-padding: 80px;
    --container-max: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
    
    /* =================================
       TIPOGRAFÍA
       ================================= */
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Tamaños de fuente */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* =================================
       TRANSICIONES
       ================================= */
    
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   CLASES UTILITARIAS DE COLOR
   ================================= */

/* Fondos */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-tertiary { background-color: var(--color-tertiary); }
.bg-light { background-color: var(--color-light); }
.bg-neutral { background-color: var(--color-neutral); }

/* Fondos SHALS */
.bg-shals-primary { background-color: var(--shals-primary); }
.bg-shals-secondary { background-color: var(--shals-secondary); }
.bg-shals-accent { background-color: var(--shals-accent); }

/* Textos para fondos claros */
.text-on-light { color: var(--font-color-dark); }
.text-on-light-secondary { color: var(--font-color-dark-secondary); }
.text-on-light-muted { color: var(--font-color-dark-muted); }

/* Textos para fondos oscuros */
.text-on-dark { color: var(--font-color-light); }
.text-on-dark-secondary { color: var(--font-color-light-secondary); }
.text-on-dark-muted { color: var(--font-color-light-muted); }

/* Gradientes */
.gradient-primary { background: var(--gradient-primary); }
.gradient-shals { background: var(--gradient-shals); }
.gradient-celestial { background: var(--gradient-celestial); }
.gradient-mystical { background: var(--gradient-mystical); }

/* =================================
   ANIMACIONES DE GRADIENTE
   ================================= */

.gradient-animate {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =================================
   EFECTOS HOVER PERSONALIZADOS
   ================================= */

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hover-glow-primary:hover {
    box-shadow: var(--shadow-primary);
}

.hover-glow-shals:hover {
    box-shadow: var(--shadow-shals);
}

/* =================================
   GLASS MORPHISM
   ================================= */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* =================================
   BOTONES PERSONALIZADOS
   ================================= */

.btn-primary {
    background-color: var(--color-primary);
    color: var(--font-color-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-shals {
    background: var(--gradient-shals);
    color: var(--font-color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-shals:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-shals);
}

/* =================================
   CARDS PERSONALIZADAS
   ================================= */

.card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    overflow: hidden;
}

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

.card-shals {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card-shals::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-shals);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-shals:hover::before {
    opacity: 1;
}

/* =================================
   UTILIDADES RESPONSIVE
   ================================= */

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
    }
}

/* =================================
   CLASES GLOBALES
   ================================= */

/* Footer con fondo oscuro */
.footer-dark {
    background-color: #4a148c!important;
}

/* Clases de fuente */
.font-display { 
    font-family: var(--font-display); 
}

.font-body { 
    font-family: var(--font-body); 
}


/* =================================
   BOTÓN WHATSAPP FLOTANTE
   ================================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 640px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* =================================
   ICONOS DE REDES SOCIALES
   ================================= */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 640px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}