/* ==========================================================================
   VARIABLES & SETUP (DARK LUXURY)
   ========================================================================== */
   :root {
    /* Base Colors */
    --c-bg-main: #080808;
    --c-bg-surface-1: #0D0D0D;
    --c-bg-surface-2: #121212;
    --c-bg-surface-3: #171717;
    --c-bg-surface-4: #1C1C1C;
    
    /* Accent Colors (Champagne Gold) */
    --c-gold: #C9A45C;
    --c-gold-light: #E0C27A;
    
    /* Text Colors */
    --c-text-main: #F5F2EA;
    --c-text-sec: #B8B5AE;
    --c-text-tert: #77756F;
    
    /* Typography */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --header-height: 80px;
    --container-max: 1400px;
    --padding-section: 70px 0;
    
    /* Border Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    
    /* Transitions */
    --t-smooth: 350ms ease;
    --t-slow: 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .logo, .logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--c-text-main);
}

.title-large {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    letter-spacing: 0.02em;
}

.title-medium {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: 0.01em;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-text-tert);
    margin-bottom: 1.5rem;
}

.text-body {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    color: var(--c-text-sec);
    max-width: 600px;
    font-weight: 300;
}

.text-tert { color: var(--c-text-tert); }
.text-accent { color: var(--c-gold); }
.italic { font-style: italic; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.align-center { align-items: center; }
.section-padding { padding: var(--padding-section); }

.mt-2 { margin-top: 0.8rem; }
.mt-3 { margin-top: 1.2rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.2rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.img-fluid { width: 100%; height: auto; display: block; object-fit: cover; }
.image-radius { border-radius: var(--radius-lg); }

/* ==========================================================================
   GLASSMORPHISM & COMPONENTS
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    transition: transform var(--t-smooth), border-color var(--t-smooth), box-shadow var(--t-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 164, 92, 0.3); /* Subtle gold border on hover */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--t-smooth);
}

.btn-glass {
    background: rgba(201, 164, 92, 0.08);
    border: 1px solid rgba(201, 164, 92, 0.55);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--c-gold-light);
}

.btn-glass:hover {
    background: rgba(201, 164, 92, 0.16);
    border-color: rgba(224, 194, 122, 0.9);
    box-shadow: 0 0 30px rgba(201, 164, 92, 0.12);
    transform: translateY(-2px);
    color: var(--c-text-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--c-text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 8, 8, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 164, 92, 0.12);
    z-index: 1000;
    transition: var(--t-smooth);
}

.header.scrolled {
    background: rgba(8, 8, 8, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--c-text-sec);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: var(--t-smooth);
}

.nav-link:hover {
    color: var(--c-text-main);
    text-shadow: 0 0 10px rgba(245, 242, 234, 0.3);
}

.mobile-only { display: none; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--c-text-main);
    position: absolute;
    transition: var(--t-smooth);
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { bottom: 0; }

.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* 2. Hero */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 30%;
    right: 20%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.05) 0%, rgba(8, 8, 8, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-image-wrapper {
    height: 60vh;
    min-height: 400px;
    position: relative;
}

.hero-image-wrapper img {
    height: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.deco-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 50%;
    z-index: -1;
}

/* 3. Nosotros */
.nosotros-image-wrapper {
    height: 500px;
    padding-right: 1.5rem;
}

.nosotros-image-wrapper img {
    height: 100%;
}

.nosotros-content {
    padding-left: 2rem;
}

/* 4. Servicios */
.services-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 2rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-number {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--c-text-main);
}

.service-desc {
    font-size: 1rem;
    color: var(--c-text-sec);
    font-weight: 300;
}

.service-item:hover .service-title {
    color: var(--c-gold-light);
}

/* 5. Portafolio */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    align-items: center;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    transition: transform var(--t-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-smooth);
}

.portfolio-item:hover .glass-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--t-smooth);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.project-category {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--c-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.project-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* Asymmetrical Layout */
.p-industrial { grid-column: 1 / 7; }
.p-branding { grid-column: 8 / 13; margin-top: 60px; }
.p-web { grid-column: 2 / 10; margin-top: 40px; }
.p-arte { grid-column: 9 / 13; margin-top: -40px; }

/* 6. Frase */
.frase-editorial {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}

/* 7. Proceso */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 3rem;
}

.process-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(201,164,92,0.8) 0%, rgba(201,164,92,0) 100%);
}

.step-num {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1;
}

.step-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--c-text-main);
}

.step-desc {
    color: var(--c-text-sec);
    font-size: 0.95rem;
    font-weight: 300;
}

/* 8. Testimonio */
.quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.4;
    color: var(--c-text-main);
}

.author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.clients-list ul {
    list-style: none;
}

.clients-list li {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--c-text-tert);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
    transition: color var(--t-smooth);
}

.clients-list li:hover {
    color: var(--c-text-main);
}

/* 9. Contacto */
.contacto-info {
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: var(--c-text-sec);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    transition: var(--t-smooth);
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}

.contact-link:hover {
    color: var(--c-gold-light);
    border-bottom: 1px solid var(--c-gold-light);
}

/* 10. Footer */
.footer {
    background: linear-gradient(180deg, rgba(8,8,8,0.88), rgba(8,8,8,0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-main);
    margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.8rem; }

.footer-links a, .footer-links li {
    color: var(--c-text-tert);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    transition: var(--t-smooth);
}

.footer-links a:hover {
    color: var(--c-text-main);
}

.text-small {
    font-size: 0.8rem;
}

/* ==========================================================================
   ANIMATIONS (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2 { gap: 2rem; }
    
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    .process-line { display: none; } /* Simpler on tablet */

    .nosotros-image-wrapper { height: 500px; padding-right: 0; }
    .nosotros-content { padding-left: 0; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .hamburger { display: block; }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(8,8,8,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-150%);
        transition: transform var(--t-slow);
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-heading);
        color: var(--c-text-main);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .hero-image-wrapper { height: 50vh; min-height: 300px; margin-top: 2rem; }
    .deco-circle { display: none; }
    
    .nosotros .grid-2 { display: flex; flex-direction: column-reverse; }
    .nosotros-image-wrapper { height: 400px; margin-top: 2rem; }
    
    .services-list { grid-template-columns: 1fr; }
    
    .portfolio-gallery { display: flex; flex-direction: column; }
    .portfolio-item { margin-top: 2rem !important; }
    
    .process-timeline { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-link { align-self: center; }
    
    .delay-1, .delay-2, .delay-3 {
        transition-delay: 0ms; /* Better UX on mobile scroll */
    }
}
