/* ====================================
   CSS CORE - Variables y Estilos Base
   DRESS - Custom Apparel & Accessories
   ==================================== */

/* Variables CSS */
:root {
    /* Colores Principales */
    --primary-color: #FF8C42;
    --primary-dark: #E67A39;
    --secondary-color: #2C2C2C;
    --background-black: #000000;
    --background-dark: #1A1A1A;
    --background-light: #0A0A0A;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #6B6B6B;
    --border-color: #333333;
    
    /* Tipografía */
    --font-family: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 30px;
    --spacing-3xl: 40px;
    --spacing-4xl: 50px;
    --spacing-5xl: 60px;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    --border-width: 2px;
    
    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(255, 140, 66, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(255, 140, 66, 0.1);
    --shadow-xl: 0 20px 40px rgba(255, 140, 66, 0.1);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* Z-index */
    --z-navbar: 1000;
    --z-modal: 2000;
    --z-overlay: 3000;
}

/* Reset y Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-black);
    overflow-x: hidden;
    cursor: default;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-color);
}

/* Botones Base */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: var(--border-width) solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Estados de Loading */
.loading {
    cursor: wait !important;
}

.loading * {
    pointer-events: none !important;
}

/* Utilidades */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animaciones base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.spin {
    animation: spin 1s linear infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Estados de Focus para Accesibilidad */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Estados de Error y Éxito */
.error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.success {
    color: #00C851;
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid rgba(0, 200, 81, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.warning {
    color: #FF8800;
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid rgba(255, 136, 0, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}