/**
 * Main CSS Variables and Base Styles
 */

:root {
    /* Colors */
    --xtech-primary: #FF8C00;
    --xtech-primary-dark: #cc7000;
    --xtech-secondary: #FF4500;
    --xtech-gradient: linear-gradient(135deg, var(--xtech-primary), var(--xtech-secondary));
    
    --xtech-bg-base: #0a0a0a;
    --xtech-bg-elevated: #1a1a1a;
    --xtech-bg-glass: rgba(26, 26, 26, 0.7);
    
    --xtech-text-main: #f5f5f5;
    --xtech-text-secondary: #e0e0e0;
    --xtech-text-muted: #9e9e9e;
    --xtech-text-dim: #555555;
    
    --xtech-border: #333333;
    
    /* Status Colors */
    --xtech-success: #10b981;
    --xtech-warning: #f59e0b;
    --xtech-error: #ef4444;

    /* Typography */
    --xtech-font-body: 'Montserrat', sans-serif;
    --xtech-font-heading: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --xtech-container-width: 1400px;
    --xtech-radius-sm: 0.375rem;
    --xtech-radius: 0.5rem;
    --xtech-radius-lg: 0.75rem;
    --xtech-radius-xl: 1rem;
    
    --xtech-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --xtech-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --xtech-shadow-glow: 0 0 20px rgba(255, 140, 0, 0.2);
}

/* Base Safari/Chrome Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--xtech-bg-base);
    color: var(--xtech-text-main);
    font-family: var(--xtech-font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--xtech-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--xtech-text-main);
    margin-bottom: 1rem;
}

a {
    color: var(--xtech-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--xtech-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.xtech-main {
    min-height: calc(100vh - 400px);
    padding-top: 5rem;
}

.xtech-section {
    padding: 4rem 0;
}

.xtech-section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.xtech-section-heading__title {
    font-size: 2.25rem;
    font-weight: 800;
}

.xtech-section-heading__line {
    width: 60px;
    height: 4px;
    background: var(--xtech-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.xtech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--xtech-radius);
    font-weight: 600;
    font-family: var(--xtech-font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.xtech-btn--primary {
    background: var(--xtech-gradient);
    color: #fff !important;
}

.xtech-btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--xtech-shadow-glow);
}

.xtech-btn--outline {
    background: transparent;
    color: var(--xtech-text-main) !important;
    border: 1px solid var(--xtech-border);
}

.xtech-btn--outline:hover {
    border-color: var(--xtech-primary);
    color: var(--xtech-primary) !important;
}

.xtech-btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Badges */
.xtech-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.xtech-badge--nuevo {
    background-color: var(--xtech-success);
}

.xtech-badge--usado {
    background-color: var(--xtech-warning);
}
