/* 
   UI UX PRO MAX - DESIGN SYSTEM PARA MESADAS
   Filosofía: Premium, Oscuro, Contraste Cálido (maderas/dorados), Limpio.
*/

:root {
    /* Colors */
    --bg-main: #0B0B0E;        /* Ultra dark para premium feel */
    --bg-darker: #060608;      /* Fondos alternativos */
    --surface: #141419;        /* Tarjetas */
    --surface-light: #202028;  /* Hover tarjetas */
    
    --primary: #D2A45C;        /* Tono madera clara / granito dorado */
    --primary-hover: #b58c49;
    
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    
    --border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --t-fast: 0.2s ease;
    --t-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Rule Enforcements */
html {
    scroll-behavior: smooth; /* UI UX Pro Max Rule */
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.container-narrow {
    max-width: 800px;
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-12 { margin-top: 3rem; }
.bg-darker { background-color: var(--bg-darker); }

/* Typography system */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}
p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.style-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(to right, #FFF, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.desc-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-smooth);
    border: none;
    font-family: var(--font-main);
}
.btn-primary {
    background-color: var(--primary);
    color: var(--bg-main);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(210, 164, 92, 0.2);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(210, 164, 92, 0.05);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Floating WhatsApp */
.float-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all var(--t-smooth);
}
.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.wa-icon {
    width: 32px;
    height: 32px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: background-color var(--t-fast), padding var(--t-fast);
    background-color: transparent;
}
.navbar.scrolled {
    background-color: rgba(11, 11, 14, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}
.logo-icon {
    color: var(--primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--t-fast);
}
.nav-link:hover {
    color: var(--text-main);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(11, 11, 14, 0.95) 0%, rgba(11, 11, 14, 0.7) 100%);
}
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(210, 164, 92, 0.1);
    color: var(--primary);
    border: 1px solid rgba(210, 164, 92, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    max-width: 600px;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 6rem 0;
}
.problem-section {
    border-bottom: 1px solid var(--border);
}

/* Materials Cards */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.material-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--t-smooth), border-color var(--t-smooth);
}
.material-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
}
.material-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.material-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.material-card:hover .material-img {
    transform: scale(1.05);
}
.material-content {
    padding: 2rem;
}
.material-features {
    margin-top: 1.5rem;
}
.material-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.material-features li svg {
    color: var(--primary);
    width: 18px; height: 18px;
    flex-shrink: 0;
}

/* Target Boxes */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.target-box {
    background-color: var(--surface);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.target-icon {
    width: 60px; height: 60px;
    background-color: rgba(210, 164, 92, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Process */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 4rem;
    gap: 2rem;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px; height: 48px;
    background-color: var(--primary);
    color: var(--bg-main);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.step-arrow {
    display: flex;
    align-items: center;
    margin-top: 12px;
    color: var(--text-muted);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-main));
    border-top: 1px solid var(--border);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background-color: var(--bg-darker);
}

/* Combo Section */
.combo-banner {
    background: linear-gradient(135deg, rgba(210, 164, 92, 0.1) 0%, rgba(210, 164, 92, 0.02) 100%);
    border: 1px solid rgba(210, 164, 92, 0.3);
    border-radius: 16px;
    padding: clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 5vw, 3rem);
    flex-wrap: wrap;
}
.combo-info {
    flex: 1 1 250px;
}
.combo-img {
    flex: 1 1 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.combo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}


/* Responsive */
@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--t-smooth);
        z-index: -1;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .btn-large {
        width: 100%;
    }
}

/* GSAP Utils */
.gsap-hero-reveal {
    opacity: 0;
    transform: translateY(30px);
}
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}
