/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
   :root {
    --bg-dark: #030305;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Neon Aura Colors */
    --neon-cyan: #00E5FF;
    --neon-purple: #D500F9;
    --neon-blue: #2979FF;
    
    /* Grid & Cards */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);

    /* Swiss Typography System (Helvetica Style) */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html, body {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: auto; /* Let Lenis handle it */
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Re-enabled for custom aura cursor */
}

@media (max-width: 1024px) {
    html, body {
        cursor: auto; /* Disable custom cursor on mobile/tablet */
    }
}

/* Navbar (Tubik Aesthetic) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5vw;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link-staggered {
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Slightly wider for non-italic bold */
    color: #999;
    height: 1.2rem;
    overflow: hidden;
    display: flex;
    transition: color 0.3s ease;
}

.nav-link-staggered:hover {
    color: #fff;
}

.letter-wrap {
    display: inline-block;
    position: relative;
    height: 1.2rem;
    line-height: 1.2rem;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link-staggered:hover .letter-wrap {
    transform: translateY(-100%);
}

.letter-bottom {
    position: absolute;
    top: 100%;
    left: 0;
}

.nav-logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3vw;
    }
    .nav-logo {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-link-staggered {
        font-size: 0.75rem;
    }
    .nav-right {
        gap: 1rem;
    }
    .nav-cta-outline {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        display: none; /* Hide button on very small mobile to save space */
    }
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3rem;
}

/* Monopo-style Language Selector Styles */
.monopo-lang-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease;
}

.monopo-lang-selector:hover {
    opacity: 0.8;
}

.lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.lang-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
    overflow: hidden;
    height: 32px; /* Fixed height to accommodate both lines cleanly */
    position: relative;
}

.lang-top {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    transform: translateY(0);
}

.lang-bottom {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease, font-weight 0.4s ease;
    transform: translateY(0);
}

.monopo-lang-selector:hover .lang-bottom {
    color: rgba(255, 255, 255, 0.9);
}

/* Animation class for switching */
.lang-stack.is-switching .lang-top {
    transform: translateY(-120%);
    opacity: 0;
}
.lang-stack.is-switching .lang-bottom {
    transform: translateY(-120%);
    font-weight: 800;
    color: #fff;
    font-size: 0.75rem;
}

.nav-cta-outline {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-cta-outline:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Custom Cursor (Instant Engine) */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

@media (max-width: 1024px) {
    .cursor, .cursor-follower {
        display: none !important;
    }
}

/* Navbar Responsive Helpers */
@media (min-width: 769px) {
    .burger-menu { display: none !important; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* Burger Menu Icon */
.burger-menu {
    width: 60px; /* Bigger as requested */
    height: 60px;
    background: rgba(255, 255, 255, 0.08); /* More visible */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    position: relative;
    transition: all 0.3s ease;
}

.burger-menu span {
    width: 24px; /* Longer lines */
    height: 2px;
    background-color: #fff;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

/* Burger to X Animation */
.burger-menu.is-active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger-menu.is-active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030305;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 10vw;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-overlay.is-active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.mobile-link {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mobile-lang-wrap {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mobile-lang-wrap span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.mobile-lang-wrap span.active {
    color: var(--neon-cyan);
}

.mobile-info {
    text-align: center;
    color: var(--text-muted);
}



/* ==========================================================================
   NOISE TEXTURE (Premium Grain Effect)
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   COMPONENT 1: FIXED HERO (Huge Inc Style)
   ========================================================================== */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    z-index: 1; /* Remains at the bottom */
    overflow: hidden;
}

.scrolling-wrapper {
    position: relative;
    z-index: 5; /* This layer moves over the fixed hero */
}

.viewport-spacer {
    height: 100vh;
    background: transparent;
    pointer-events: none;
}

/* Aura Background Container */
.aura-container {
    position: absolute;
    inset: 0; /* Fills the whole fixed area */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

/* Aura Floating Tags */
.aura-tags {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#aura-canvas {
    width: 1100px;
    height: 1100px;
    filter: drop-shadow(0 0 80px rgba(0, 229, 255, 0.2)) blur(45px);
    transform: scale(1.1); /* Compensate for edge blur */
}

@media (max-width: 768px) {
    #aura-canvas {
        width: 150vw; /* Allow it to be slightly wider than screen for full coverage */
        height: 150vw;
        max-width: 500px;
        max-height: 500px;
        filter: blur(40px); /* Hardware accelerated blur for mobile! */
        transform: scale(1.3); /* Ensure outer blur crop is hidden */
    }
}

/* Aura Floating Tags */
.aura-tags {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.aura-tag {
    position: absolute;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Auric Orb Aesthetic */
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(213, 0, 249, 0.1) 0%, rgba(0, 229, 255, 0.05) 70%, transparent 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2), 
        inset 0 0 20px rgba(0, 229, 255, 0.05);
    
    pointer-events: auto; /* Enable hover/drag */
    cursor: grab;
    transition: box-shadow 0.4s ease;
    user-select: none;
}

.aura-tag:hover {
    box-shadow: 
        0 8px 40px rgba(213, 0, 249, 0.4), 
        inset 0 0 30px rgba(0, 229, 255, 0.3);
}

.aura-tag:active {
    cursor: grabbing;
}

/* Responsive adjustment for tags to prevent overlap */
@media (max-width: 1024px) {
    .aura-tag {
        width: 110px;
        height: 110px;
        font-size: 0.8rem;
    }
    .tag-branding { left: 35% !important; }
    .tag-ux { left: 65% !important; }
}

@media (max-width: 768px) {
    .aura-tag {
        width: 90px;
        height: 90px;
        font-size: 0.7rem;
    }
    .tag-branding { left: 28% !important; bottom: 12% !important; }
    .tag-ux { left: 72% !important; bottom: 12% !important; }
    
    .tag-ai { left: 8% !important; bottom: 28% !important; }
    .tag-frontend { right: 8% !important; bottom: 28% !important; }
    
    .tag-meta { left: 8% !important; top: 22% !important; }
    .tag-web { right: 8% !important; top: 22% !important; }

    .tag-graphic { left: 4% !important; }
    .tag-marketing { right: 4% !important; }
}

.tag-branding {
    bottom: 10%;
    left: 40%;
    transform: translateX(-50%);
    animation: floatingTag 7s ease-in-out infinite;
}

.tag-ux {
    bottom: 10%;
    left: 60%;
    transform: translateX(-50%);
    animation: floatingTag 8.5s ease-in-out infinite reverse;
}

.tag-marketing {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    animation: floatingTag 9s ease-in-out infinite;
}

.tag-graphic {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    animation: floatingTag 11s ease-in-out infinite;
}

.tag-web {
    top: 25%;
    right: 15%;
    animation: floatingTag 6.5s ease-in-out infinite;
}

.tag-meta {
    top: 25%;
    left: 15%;
    animation: floatingTag 12s ease-in-out infinite;
}

.tag-frontend {
    bottom: 25%;
    right: 15%;
    animation: floatingTag 8s ease-in-out infinite reverse;
}

.tag-ai {
    bottom: 25%;
    left: 15%;
    animation: floatingTag 10s ease-in-out infinite;
}

@keyframes floatingTag {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

/* ==========================================================================
   COMPONENT 1: HERO FIXED (ORB & BRAND)
   ========================================================================== */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    z-index: 1;
}

.hero-brand-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2; /* Behind the canvas container (z-index 3) */
}

.hero-brand {
    font-family: var(--font-main);
    font-size: clamp(8rem, 30vw, 45rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.04); /* Very subtle to feel like part of the background */
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.aura-container {
    position: relative;
    z-index: 3; /* Floating over the text */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#aura-canvas {
    transition: transform 0.2s ease-out; /* Smooth 3D tilt */
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh; /* Fixed positioning rel to hero */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
/* ==========================================================================
   COMPONENT 2: FULL-SCREEN WIPE PANEL
   ========================================================================== */
.full-wipe-panel {
    position: relative;
    min-height: 80vh; /* Reduced from 100vh for tighter flow */
    width: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 -100px 100px rgba(0, 0, 0, 0.8);
    padding-bottom: 0; /* Tight with next section */
}

@media (max-width: 768px) {
    .full-wipe-panel {
        display: none !important; /* Hide Bloque 2 on mobile */
    }
}

.panel-content {
    text-align: center;
    width: 100%;
}

.wipe-title.huge-typo {
    font-size: clamp(4.5rem, 18vw, 16rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #fff;
    line-height: 0.85;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

@media (max-width: 768px) {
    .wipe-title.huge-typo {
        font-size: 5.5rem; /* Larger font for mobile as requested */
        line-height: 0.8;
    }
}

.typo-row {
    display: block;
}

.block-left {
    align-self: flex-start;
}

/* ==========================================================================
   BLOCK 2 KINETIC STAGGER (GOOD DESIGN MECHANICS)
   ========================================================================== */
.intro-line-wrap {
    overflow: hidden;
    position: relative;
    /* Padded mathematically to permit huge ascenders/descenders without clipping */
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin-top: -0.2em;
    margin-bottom: -0.2em;
}

.intro-line-inner {
    display: inline-flex; 
    align-items: center; 
    transform: translateY(120%) rotateZ(3deg); /* Hidden state with brutalist skew */
    opacity: 0;
    transform-origin: left bottom;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
    will-change: transform;
}

/* Structural enforcement for nested rows */
.split-inner {
    display: flex;
    align-items: center;
}
.flex-row-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Cascading Slide Triggers governed by panel-content.is-visible JS hook */
.panel-content.is-visible .intro-line-wrap:nth-child(1) .intro-line-inner { transition-delay: 0.05s; }
.panel-content.is-visible .intro-line-wrap:nth-child(2) .intro-line-inner { transition-delay: 0.15s; }
.panel-content.is-visible .intro-line-wrap:nth-child(3) .intro-line-inner { transition-delay: 0.25s; }

.panel-content.is-visible .intro-line-inner {
    transform: translateY(0) rotateZ(0);
    opacity: 1;
}

/* ==========================================================================
   THE "O" SPLIT INTERACTION (BRUTALIST HOVER)
   ========================================================================== */
.split-interaction {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.magic-letter {
    font-size: inherit;
    font-weight: inherit;
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
    transition: max-width 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, margin 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.closed-o {
    max-width: 1.5em; /* Safely bounds the huge O */
    opacity: 1;
}

.open-paren {
    max-width: 0;
    opacity: 0;
}

.o-secret-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(0.7rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0; /* Clear huge typography squeeze */
    color: #fff;
    
    /* Closed State */
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, margin 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    margin: 0;
}

.secret-line {
    display: block;
    text-transform: none; /* Retain mixed case */
}
.indent-1 { padding-left: 1.5em; }
.indent-2 { padding-left: 3em; }

/* The Hover Reveal (Magic Swap) */
.split-interaction:hover .closed-o {
    max-width: 0;
    opacity: 0;
    margin: 0;
}

.split-interaction:hover .open-paren {
    max-width: 1em; /* Opens the bounding box for parenthesis */
    opacity: 1;
}

.split-interaction:hover .o-secret-text {
    max-width: 13em; /* Opens structural gap */
    opacity: 1;
    margin: 0 0.2em; /* Breathes apart */
}

.typo-mid {
    display: flex;
    align-items: center;
    gap: 3vw;
    align-self: flex-start;
}

.typo-small {
    font-size: clamp(0.9rem, 2.8vw, 2.5rem);
    font-family: var(--font-main);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.typo-large {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
}

.text-purple {
    color: var(--neon-purple);
}

.flex-row-mission {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mission-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* ==========================================================================
   COMPONENT 3: ABOUT PRESENTATION
   ========================================================================== */
.about-presentation {
    min-height: auto; /* Allow content to dictate height */
    padding: 5vh 5vw; /* Tight top padding */
    background-color: var(--bg-dark);
}

.presentation-container {
    max-width: 1200px;
    width: 100%;
    /* Reveal animation for the whole typographic block */
    opacity: 0;
    transform: translateY(10vh);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.presentation-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.presentation-main {
    font-family: var(--font-main);
    font-size: clamp(2.8rem, 8vw, 5.5rem); /* Increased for mobile */
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .presentation-main {
        font-size: 3.2rem;
        line-height: 1;
    }
}

/* Vertical Text Slider (Infinite Wheel Style) */
.text-slider-container {
    display: inline-flex;
    height: 1.15em;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.15em;
    margin-left: 0.25em;
}

.text-slider-list {
    display: flex;
    flex-direction: column;
    animation: infiniteWheel 8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    will-change: transform;
}

.slide-word {
    display: block;
    height: 1.15em;
    line-height: 1.15em;
    color: var(--neon-purple); /* Aura Lila */
    text-shadow: 0 0 15px rgba(213, 0, 249, 0.2);
    white-space: nowrap;
    text-align: left;
}

@keyframes infiniteWheel {
    0%, 20% { transform: translateY(0); filter: blur(0); }
    22%, 25% { filter: blur(2px); } /* Fast blur during transition */
    25%, 45% { transform: translateY(-20%); filter: blur(0); }
    47%, 50% { filter: blur(2px); }
    50%, 70% { transform: translateY(-40%); filter: blur(0); }
    72%, 75% { filter: blur(2px); }
    75%, 95% { transform: translateY(-60%); filter: blur(0); }
    97%, 100% { transform: translateY(-80%); filter: blur(0); }
}



.accent-text {
    color: var(--text-muted);
}

/* ==========================================================================
   COMPONENT: TYPEWRITER SECTION
   ========================================================================== */
.typing-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.typing-container {
    text-align: left;
    max-width: 1000px;
}

.type-main {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 2rem;
    min-height: 2.2em; /* Prevent layout shift */
}

/* Masked Reveal Styles (Dribbble Influence) */
.line-mask {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reveal-content {
    display: block;
    transform: translateY(115%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.is-visible .reveal-content {
    transform: translateY(0);
}

/* Staggered lines */
.line-mask:nth-child(2) .reveal-content {
    transition-delay: 0.1s;
}

.line-mask:nth-child(3) .reveal-content {
    transition-delay: 0.2s;
}

/* Scroll Reveal Base State (Alternative) */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.selection-box {
    position: absolute;
    inset: 0;
    background: #4D4DFF;
    z-index: -1;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    /* Slower and more precise transition */
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.8s ease;
}

.highlight-wrapper.is-selected .selection-box {
    opacity: 0.35;
    transform: scaleX(1);
}

.type-sub {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: #111;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.chat-btn:hover {
    background: #222;
    transform: translateY(-5px);
}

.arrow {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Scroll Reveal Base State */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   COMPONENT 3: PORTFOLIO GRID
   ========================================================================== */
.portfolio-section {
    padding: 10vh 5vw;
    background-color: var(--bg-dark);
}

.section-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.grid-container {
    display: grid;
    /* Modern Grid equivalent to SliverGridDelegate */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    /* Base shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Smooth transition for MouseRegion onHover */
    transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 300ms ease;
}

.portfolio-card:hover {
    transform: scale(1.03); /* Requested scale effect */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.08); /* Parallax inner effect */
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 3, 5, 0.8) 0%, transparent 50%);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   COMPONENT: SERVICES CLOUD (Removed)
   ========================================================================== */

/* ==========================================================================
   COMPONENT: EXPANDING FLEX CARDS
   ========================================================================== */
.portfolio-flex-section {
    padding: 10vh 0;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.portfolio-flex-container {
    display: flex;
    width: 100vw;
    height: 90vh;
    gap: 1px; /* Subtle architectural separation */
    background-color: rgba(255, 255, 255, 0.05);
}

.portfolio-flex-item {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: flex 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-flex-item:hover, .portfolio-flex-item.mobile-active {
    flex: 4;
}

.flex-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0.3;
    mix-blend-mode: multiply;
    transition: opacity 0.5s ease;
}

.portfolio-flex-item:hover .flex-overlay, .portfolio-flex-item.mobile-active .flex-overlay {
    opacity: 0.5;
}

.flex-content {
    position: absolute;
    bottom: 5vh;
    left: 4rem;
    right: 4rem;
    color: white;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.portfolio-flex-item:hover .flex-content, .portfolio-flex-item.mobile-active .flex-content {
    opacity: 1;
    transform: translateY(0);
}

.flex-title {
    font-size: clamp(1.2rem, 3vw, 2.8rem);
    font-weight: 800;
}

.flex-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 400px;
    margin-top: 1rem;
}

.flex-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.flex-btn:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .portfolio-flex-container {
        flex-direction: column;
        height: 120vh;
    }
    
    .flex-content {
        left: 2rem;
        right: 2rem;
    }
    
    .flex-title {
        font-size: 1.5rem;
    }
    
    .portfolio-flex-item:hover, .portfolio-flex-item.mobile-active {
        flex: 2;
    }
}

/* ==========================================================================
   COMPONENT 4: FOOTER
   ========================================================================== */
.footer {
    background-color: #010101; /* Very dark solid background */
    padding: 15vh 5vw 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--card-border);
}

.footer-top {
    text-align: center;
    margin-bottom: 10vh;
}

.footer-prompt {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.selectable-email {
    font-family: var(--font-main);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--text-main);
    /* Make text selectable easily */
    user-select: text; 
    transition: color 0.3s ease;
    cursor: text;
}

/* ==========================================================================
   COMPONENT: NATURE DESIGN HERO
   ========================================================================== */
.nature-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 4vw;
    color: #F4F4EB; /* Pale cream/off-white */
    overflow: hidden;
    z-index: 10;
}

/* Subtle dark gradient overlay to ensure text stands out over the landscape */
.nature-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.nature-hero > * {
    position: relative;
    z-index: 2;
}

/* Top Navigation Grid */
.nature-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nature-col.text-center { text-align: center; }
.nature-col.text-right { text-align: right; }

/* Main Typography Block */
.nature-main {
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
}

.nature-row {
    line-height: 0.9;
}

.nature-title {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: clamp(4rem, 15vw, 15rem);
    letter-spacing: -0.04em;
    margin: 0;
    display: inline-block;
}

.nature-arrow {
    font-weight: 300;
}

.overlap-row {
    display: flex;
    align-items: flex-end; /* Align the script with the bottom of "proceso" */
}

.pb-overlap {
    margin-left: 10vw; /* Offset secondary line like the reference */
}

.nature-script {
    font-family: 'Times New Roman', Times, serif; /* Elegant serif script fallback */
    font-style: italic;
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 2vw;
    transform: translateY(15%); /* Pull down slightly to overlap */
}

/* Graphic Overlay Overlay */
.nature-graph {
    position: absolute;
    bottom: 15vh; /* Hangs over the bottom section naturally */
    left: 0;
    width: 100%;
    height: 40vh;
    pointer-events: none;
    z-index: 1;
}

.nature-graph svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-line {
    stroke: rgba(244, 244, 235, 0.7);
    stroke-width: 1.5;
}

.graph-point {
    fill: #F4F4EB;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.graph-text {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1.1rem;
    fill: #F4F4EB;
    letter-spacing: 0.05em;
}

/* Bottom Footer Grid */
.nature-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: 2vh;
}

.nature-stars {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}


/* ==========================================================================
   COMPONENT: KINETIC SLICE MANIFESTO
   ========================================================================== */
.kinetic-manifesto {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    padding: 10vh 5vw;
}

.manifesto-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Reduced to bring it tighter */
    gap: 6vw; /* Reduced from 10vw for improved proximity */
}

.slice-container {
    position: relative;
    text-transform: uppercase;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(3rem, 9vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: transparent; 
}

.slice-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    will-change: transform;
}

.slice-layer h2 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

/* Hard geometric slicing using clip-path */
.slice-1 { clip-path: polygon(0% 0%, 20% 0%, 20% 100%, 0% 100%); }
.slice-2 { 
    clip-path: polygon(20% 0%, 40% 0%, 40% 100%, 20% 100%); 
    opacity: 0.8;
}
.slice-3 { clip-path: polygon(40% 0%, 60% 0%, 60% 100%, 40% 100%); }
.slice-4 { 
    clip-path: polygon(60% 0%, 80% 0%, 80% 100%, 60% 100%); 
}
.slice-5 { clip-path: polygon(80% 0%, 100% 0%, 100% 100%, 80% 100%); }

/* ==========================================================================
   COMPONENT: EXPERIMENTAL PREMIUM SWITCH
   ========================================================================== */
.switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.premium-switch {
    width: 90px;
    height: 200px;
    border-radius: 45px;
    background: #080808;
    box-shadow: 
        inset 0 10px 25px #000, 
        inset 0 -2px 5px rgba(255,255,255,0.05), 
        0 0 0 4px #1a1a1a,
        0 20px 40px rgba(0,0,0,0.8);
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.switch-track-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: var(--neon-cyan);
    filter: blur(15px);
    opacity: 0.2;
    transition: all 0.4s ease;
}

.premium-switch.is-active .switch-track-glow {
    background: var(--neon-purple);
    opacity: 0.6;
}

.tactile-lever {
    width: 100%;
    height: 60%;
    border-radius: 35px;
    background: linear-gradient(180deg, #3a3a3a 0%, #0a0a0a 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.4),
        0 15px 25px rgba(0,0,0,0.9);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Height is 200px. Track size = 180px. Lever 60% = 108px. Offset down = 72px */
.premium-switch.is-active .tactile-lever {
    transform: translateY(72px);
    box-shadow: 
        inset 0 -2px 4px rgba(255,255,255,0.1),
        0 -15px 25px rgba(0,0,0,0.9);
}

.lever-ridges {
    width: 40px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    box-shadow: 0 12px 0 #000, 0 -12px 0 #000;
    opacity: 0.8;
}

.switch-label {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: #fff;
    margin: 0;
    opacity: 0.8;
}

/* ==========================================================================
   CURIOUS OVERLAY
   ========================================================================== */
.curious-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.curious-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.curious-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    text-align: center;
    padding: 0 5vw;
}

.curious-message {
    font-family: var(--font-main);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    max-width: 900px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.curious-switch-container {
    transform: scale(0.9);
}

@media (max-width: 900px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 5vh; /* Reduced gap from 15vh */
        text-align: center;
    }
    .slice-container {
        font-size: 6rem; /* Even larger */
        line-height: 0.9;
        margin-top: 5vh;
    }
    .kinetic-manifesto.reveal-item {
        transform: translateY(50px);
        opacity: 0;
        transition: all 1s ease;
    }
    .kinetic-manifesto.reveal-item.is-visible {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   COMPONENT: GOOD DESIGN KINETIC SECTION
   ========================================================================== */
.good-design-section {
    background-color: #fff;
    color: #000;
    min-height: 60vh;
    padding: 10vh 4vw; /* Slightly increased side padding for optical balance with left/right alignments */
    display: flex;
    justify-content: center; /* Center to allow full width 100% to fill */
    align-items: center;
    position: relative;
    z-index: 10;
}

.gd-text {
    font-size: clamp(3rem, 12vw, 15rem); /* Scaled down slightly as requested */
    font-weight: 900;
    line-height: 0.85; 
    letter-spacing: -0.06em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.line-wrap {
    overflow: hidden;
    position: relative;
    padding-bottom: 0.05em; 
    padding-top: 0.25em; /* Expanded the upper 'window' to fully reveal the Ñ tilde */
    margin-top: -0.15em; /* Pulls the box up to maintain tight line-spacing */
    margin-bottom: -0.05em;
    width: 100%;
}

.line-wrap:nth-child(odd) {
    text-align: left; /* 'EL BUEN' and 'ES BUEN' to extreme left */
}

.line-wrap:nth-child(even) {
    text-align: right; /* 'DISEÑO' and 'NEGOCIO' to extreme right */
}

.line-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Hard Mechanical Stagger Effect */
.line-wrap:nth-child(1) .line-inner { transition-delay: 0.0s; }
.line-wrap:nth-child(2) .line-inner { transition-delay: 0.08s; }
.line-wrap:nth-child(3) .line-inner { transition-delay: 0.16s; }
.line-wrap:nth-child(4) .line-inner { transition-delay: 0.24s; }

/* The trigger class set via IntersectionObserver */
.good-design-section.is-revealed .line-inner {
    transform: translateY(0);
}

/* ==========================================================================
   COMPONENT 5: INFORMATIONAL FOOTER (HUGE STYLE)
   ========================================================================== */
.aura-footer {
    position: relative;
    background-color: #000;
    color: #fff;
    padding: 10vh 5vw 5vh;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 10vh;
}

.footer-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
    max-width: 500px;
}

.newsletter-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.footer-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.4s ease;
}

.footer-input:focus {
    border-color: var(--neon-cyan);
}

.footer-submit {
    align-self: flex-start;
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-submit:hover {
    background: var(--neon-cyan);
    transform: translateY(-5px);
}

.footer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-purple);
}

.contact-group {
    margin-bottom: 2.5rem;
}

.region-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

.contact-item:hover {
    color: #fff;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5vh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.back-to-top {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.back-to-top:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-main {
        grid-column: span 2;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .col-main {
        grid-column: span 1;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* ==========================================================================
   PORTFOLIO MODAL (FULL SCREEN)
   ========================================================================== */
.portfolio-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.portfolio-modal-wrapper.is-active {
    opacity: 1;
    pointer-events: all;
}

.modal-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.modal-content-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 10vh 5vw 5vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    z-index: 2;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 5vh;
    right: 5vw;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
}

.modal-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 5vh auto 0;
    width: 100%;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
}

.modal-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.modal-tagline {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--neon-cyan);
    font-weight: 300;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.specs-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.specs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.specs-list li {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.specs-list li strong {
    font-weight: 700;
    color: #fff;
    margin-right: 0.5rem;
}

.modal-desc p {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.modal-project-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

.modal-footer-right {
    display: flex;
    gap: 1.5rem;
}

.modal-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-btn.outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.modal-btn.outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-btn.solid {
    background-color: var(--neon-cyan); /* The user asked for an accented color */
    color: #000;
    border: 1px solid var(--neon-cyan);
}

.modal-btn.solid:hover {
    background-color: #fff;
    border-color: #fff;
}

@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .modal-footer-right {
        width: 100%;
        flex-direction: column;
    }
    
    .modal-btn {
        text-align: center;
        width: 100%;
    }
}

/* ==========================================================================
   COMPONENT: AGENDA TU LLAMADA
   ========================================================================== */
.agenda-section {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 15vh 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.agenda-title {
    font-family: var(--font-main);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.agenda-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

.agenda-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 1.2rem 2.5rem;
    background-color: var(--neon-cyan);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.agenda-cta:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   LEGAL MODAL SYSTEM
   ========================================================================== */
.legal-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.legal-modal-wrapper.is-active {
    opacity: 1;
    pointer-events: all;
}

.legal-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    background-color: #fff;
    color: #333;
    border-radius: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.legal-scroll-area {
    padding: 4rem 3rem;
    overflow-y: auto;
    flex: 1;
}

.legal-policy-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 0.2rem;
}

.legal-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
}

.legal-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

.legal-divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 2rem 0;
}

.legal-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.legal-scroll-area p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.legal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 600px) {
    .legal-scroll-area {
        padding: 2.5rem 1.5rem;
    }
    .legal-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* HIDE CURSOR ON MOBILE */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none !important;
    }
}
