/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors - Dark Premium Theme (#363636 base) */
    --color-bg: #363636;
    --color-bg-alt: #2D2D2D;
    --color-surface: #444444;
    --color-surface-elevated: #4E4E4E;
    --color-text: #F0F0F0;
    --color-text-muted: rgba(255, 255, 255, 0.55);
    --color-accent: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Rhythm */
    --section-padding: var(--space-xl) 0;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.text-center { text-align: center; }
.mb-medium { margin-bottom: var(--space-lg); }
.mt-small { margin-top: var(--space-xs); }

/* Globals */
.container {
    width: 100%;
    max-width: 1400px; /* Layout largo premium */
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: 1000px;
}

.section-dark {
    background-color: var(--color-bg-alt);
    color: var(--color-text);
}

.section-dark h2, 
.section-dark h3 {
    color: #FFFFFF;
}

.section-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.text-light {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: #FFFFFF;
    color: #1A1A1A;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1A1A1A;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-primary:hover {
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #1A1A1A;
}

.btn-outline {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    background: transparent;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: #1A1A1A;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    max-width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    color: #FFFFFF;
}

.link-arrow svg {
    transition: transform 0.3s ease;
}

.link-arrow:hover svg {
    transform: translateX(5px);
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.link-arrow:hover::after {
    width: 100%;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1A1A1A;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-brand {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.2em;
    animation: pulse 2s infinite ease-in-out;
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-fade {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.reveal-text.active, 
.reveal-fade.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
