/* ============================================
   MAIN.CSS - Variables, Reset y Utilidades Base
   ============================================ */

:root {
    /* Colores principales */
    --lila-primary: #7C3AED;
    --lila-dark: #5B21B6;
    --lila-light: #A78BFA;
    --lila-pale: #EDE9FE;
    --lila-accent: #8B5CF6;
    
    /* Colores de fondo */
    --dark: #0F0A1A;
    --dark-light: #1A1225;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    
    /* Gradientes */
    --gradient-lila: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #C084FC 100%);
    --gradient-dark: linear-gradient(180deg, #0F0A1A 0%, #1A1225 100%);
    
    /* Tipografía */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Espaciado */
    --section-padding: 100px;
    --container-max: 1400px;
    
    /* Bordes y sombras */
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 50px;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--lila-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lila-light);
}

/* Utilidades de texto */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animaciones globales */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(5deg) rotateX(-5deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slide {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(0, 0); }
}

/* Utilidades de layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-xl);
    color: var(--lila-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(124, 58, 237, 0.1);
    border-top-color: var(--lila-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}