/* 
Fecha: 2025-12-29
Path: /var/www/oberdomo/app-client/css/variables.css
Descripción: Variables CSS del sistema de diseño OberDomo
             Colores Loxone-inspired, espaciado, tipografía
*/

:root {
    /* === COLORES PRINCIPALES === */
    --color-primary: #84c814;           /* Verde Loxone */
    --color-primary-dark: #6ba311;      /* Verde oscuro */
    --color-primary-light: #9dd42a;     /* Verde claro */
    --color-primary-alpha: rgba(132, 200, 20, 0.1);
    
    /* === COLORES NEUTRALES === */
    --color-bg-dark: #1a1a1a;           /* Fondo oscuro principal */
    --color-bg-darker: #0d0d0d;         /* Fondo más oscuro */
    --color-bg-light: #2a2a2a;          /* Fondo cards/elementos */
    --color-bg-lighter: #3a3a3a;        /* Fondo hover */
    
    --color-text-primary: #ffffff;      /* Texto principal */
    --color-text-secondary: #a0a0a0;    /* Texto secundario */
    --color-text-tertiary: #707070;     /* Texto terciario */
    
    --color-border: #333333;            /* Bordes */
    --color-border-light: #404040;      /* Bordes claros */
    
    /* === COLORES DE ESTADO === */
    --color-success: #84c814;           /* Éxito (mismo que primary) */
    --color-warning: #ffa726;           /* Advertencia */
    --color-error: #ef5350;             /* Error */
    --color-info: #42a5f5;              /* Información */
    
    --color-online: #84c814;            /* Estado online */
    --color-offline: #707070;           /* Estado offline */
    
    /* === GRADIENTES === */
    --gradient-primary: linear-gradient(135deg, #84c814 0%, #6ba311 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    
    /* === SOMBRAS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    
    --shadow-primary: 0 4px 12px rgba(132, 200, 20, 0.3);
    --shadow-glow: 0 0 20px rgba(132, 200, 20, 0.4);
    
    /* === TIPOGRAFÍA === */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                        'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 
                        'Courier New', monospace;
    
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* === ESPACIADO === */
    --spacing-xs: 0.25rem;      /* 4px */
    --spacing-sm: 0.5rem;       /* 8px */
    --spacing-md: 1rem;         /* 16px */
    --spacing-lg: 1.5rem;       /* 24px */
    --spacing-xl: 2rem;         /* 32px */
    --spacing-2xl: 3rem;        /* 48px */
    --spacing-3xl: 4rem;        /* 64px */
    
    /* === BORDER RADIUS === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* === TRANSICIONES === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* === Z-INDEX === */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* === LAYOUT === */
    --header-height: 60px;
    --sidebar-width: 280px;
    --container-max-width: 1200px;
    
    /* === BREAKPOINTS (para uso en JS) === */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    
    /* === COMPONENTES ESPECÍFICOS === */
    --card-bg: var(--color-bg-light);
    --card-padding: var(--spacing-lg);
    --card-radius: var(--radius-lg);
    
    --input-height: 44px;
    --input-padding: var(--spacing-md);
    --input-border: var(--color-border);
    --input-focus-border: var(--color-primary);
    
    --button-height: 44px;
    --button-padding-x: var(--spacing-lg);
    --button-padding-y: var(--spacing-sm);
    --button-radius: var(--radius-md);
    
    /* === ANIMACIONES === */
    --animation-spin: spin 1s linear infinite;
    --animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --animation-bounce: bounce 1s infinite;
}

/* === KEYFRAMES === */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
