/* === FUTURITÉ 2026 DESIGN SYSTEM === */
:root {
    /* Colors */
    --clr-primary: #2D4FE6;   /* Vibrant Blue */
    --clr-accent: #CAFE67;    /* Lime Green */
    --clr-base: #FFFFFF;      /* Snow White */
    --clr-contrast: #0A0F25;  /* Night Blue */
    --clr-text: #333333;      /* Dark Gray for readable body text */
    --clr-muted: #6B7280;     /* Muted gray */

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', 'Manrope', sans-serif;
    
    /* Spacing & Layout */
    --section-pad: 120px 0;
    --container-width: 1200px;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 20px 40px rgba(10, 15, 37, 0.05);
    --shadow-float: 0 30px 60px rgba(45, 79, 230, 0.15);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

/* === RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-base);
    overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title {
    font-family: var(--font-heading);
    color: var(--clr-contrast);
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), #6B8BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white { color: var(--clr-base) !important; }

.title-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-muted);
    margin-bottom: 24px;
}

/* === LAYOUT === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === COMPONENTS === */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 100px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-lime {
    background-color: var(--clr-accent);
    color: var(--clr-contrast);
}

.btn-lime:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(202, 254, 103, 0.4);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 79, 230, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-base);
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-primary);
    display: inline-flex;
    gap: 8px;
}
.btn-text:hover {
    gap: 12px;
}

/* Setup Reveal Anim */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 44px; /* Scaled cleanly for the navigation bar */
    width: auto;
    display: block;
    transition: var(--transition-fast);
}
.nav-logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-primary); /* Primary blue to match screenshot */
    transition: var(--transition-fast);
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Dropdown specific */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--clr-base);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-fast);
    list-style: none;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--clr-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: rgba(45, 79, 230, 0.05);
    color: var(--clr-primary);
    padding-left: 28px; /* Smooth indent hover */
}

.nav-btn {
    padding: 10px 24px;
    font-size: 1rem;
}

.nav-btn-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
    z-index: 1001;
}

/* Navbar Responsive Queries */
@media(max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-btn {
        display: none; /* Ocultar el botón original en mobile */
    }

    .nav-btn-mobile {
        display: inline-block;
        margin-top: 32px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--clr-base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-smooth);
        z-index: 1000;
        gap: 24px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
    }
    
    .nav-dropdown {
        flex-direction: column;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: none;
        text-align: center;
        padding-top: 16px;
    }

    /* Mostrar menú al hacer hover o al activar clase para mobile */
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
}

/* === 1. HERO SECTION === */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--clr-base);
    overflow: hidden;
}

/* Creative Moving Background Video */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px); /* Reduced blur to avoid browser compositor crash / invisibility */
    opacity: 0.5; /* Increased opacity to make it visibly apparent */
    transform: scale(1.05); /* Lighter scale */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Let the video breathe more on the right */
    background: linear-gradient(90deg, var(--clr-base) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 80vw;
    height: 80vw;
    min-width: 1000px;
    min-height: 1000px;
    background: radial-gradient(circle, rgba(45, 79, 230, 0.5) 0%, rgba(45, 79, 230, 0) 70%); /* Lightened the opacity slightly for a gentler aura */
    border-radius: 50%;
    transform: translate(20%, -50%); /* Anchor heavily into the right quadrant */
    z-index: 2; /* Middle layer: ABOVE pulse, BELOW astronaut */
    pointer-events: none;
    filter: blur(80px); /* Massive blur for a true glowing aura effect */
}

.hero-visual-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Push elements to the right edge */
    z-index: 0;
    pointer-events: none;
}

.hero-bg-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    aspect-ratio: 1; /* Guarantees the width keeps up with 100% height to form a perfect box */
    min-width: 600px;
    background-image: url('./assets/home-img-header.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom; /* Anchored to sit flush on the bottom baseline */
    z-index: 3;
    transform: translateX(50%); /* Moved back further right */
}

.hero-visual-right .radar-circle {
    position: absolute;
    right: 0%; /* Aligned to hide just a fraction of the central icon behind the astronaut's form */
    margin: 0;
    z-index: 1;
    opacity: 0.8;
}

.hero-container {
    position: relative;
    z-index: 10; /* Ensures ALL text is unconditionally above the mega graphics layer */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Forced overrides to break out of the 1200px max-width wrapper */
    max-width: 100% !important;
    margin: 0 5rem !important;
    padding: 0 !important;
}

.hero-content {
    max-width: 700px; /* Slightly wider to accommodate bold statements nicely */
    text-align: left;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trust-badges {
    display: flex;
    gap: 40px; /* Increased the separation spacing significantly per user feedback */
    align-items: center;
}

.partner-logo {
    height: 70px; /* Scaled up for better readability and authority */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps the logos look natural against the white background if they aren't fully transparent */
}

/* Hero Graphic Mockup */
.hero-graphic {
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-float);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0); }
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.primary { background: var(--clr-primary); }
.dot.lime { background: var(--clr-accent); }

.trend-label {
    display: inline-block;
    background: rgba(202, 254, 103, 0.2);
    color: #557700;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
}

.bar {
    flex: 1;
    background: var(--clr-primary);
    border-radius: 6px 6px 0 0;
    opacity: 0;
    animation: chartRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bar-1 { height: 30%; animation-delay: 0.1s; }
.bar-2 { height: 45%; animation-delay: 0.2s; }
.bar-3 { height: 60%; animation-delay: 0.3s; }
.bar-4 { height: 35%; animation-delay: 0.4s; }
.bar-5 { height: 90%; background: var(--clr-accent); animation-delay: 0.5s; }

@keyframes chartRise {
    from { height: 0; opacity: 0; }
    to { opacity: 1; }
}

/* === 2. SERVICIOS SECT === */
.servicios {
    padding: var(--section-pad);
    background: #F8F9FA;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 0;
    margin: 60px 5rem 0 5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.servicio-card {
    padding: 50px 40px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--clr-base);
    border-radius: 0; /* flat edges */
}

/* Hover Effect without translation so it stays flush */
.servicio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.08); /* slight brightness overlay */
    opacity: 0;
    transition: var(--transition-fast);
}
.servicio-card:hover::before { opacity: 1; }

/* Asymmetric Masonry Mapping */
.servicio-card:nth-child(1) { 
    grid-column: span 2; 
    background-color: var(--clr-contrast); 
    color: var(--clr-base);
}
.servicio-card:nth-child(2) { 
    grid-column: span 1; 
    grid-row: span 2; 
    background-color: var(--clr-primary); 
    color: var(--clr-base);
}
.servicio-card:nth-child(3) { 
    grid-column: span 2; 
    background-color: var(--clr-accent); 
    color: var(--clr-contrast);
}
.servicio-card:nth-child(4) { 
    background-color: var(--clr-base); 
    color: var(--clr-contrast);
}
.servicio-card:nth-child(5) { 
    background-color: var(--clr-contrast); 
    color: var(--clr-base);
}
.servicio-card:nth-child(6) { 
    background-color: #4A6CFF; /* Lighter blue to break the vertical visual bar */
    color: var(--clr-base);
}

.servicio-card:hover {
    z-index: 10;
}

.servicio-card h3 {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    color: inherit; /* inherit from the card's text color */
}

.servicio-card p {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    color: inherit;
    opacity: 0.9;
}

.sv-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.08); /* adaptive background */
    border-radius: 16px;
    color: inherit;
}
.servicio-card:nth-child(1) .sv-icon,
.servicio-card:nth-child(2) .sv-icon,
.servicio-card:nth-child(5) .sv-icon,
.servicio-card:nth-child(6) .sv-icon {
    background: rgba(255, 255, 255, 0.1);
}
.asym-medium .sv-icon {
    background: rgba(255,255,255,0.1);
}

/* === 3. SECCION "SABEMOS DE..." === */
.formula-section {
    padding: var(--section-pad);
    background-color: var(--clr-contrast);
    color: var(--clr-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.formula-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 0 5rem; /* El ensanche solicitado */
}

.formula-box {
    margin: 60px 0;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.formula-equation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.math-op {
    color: var(--clr-accent);
}

.result-text {
    font-size: 2.5rem;
}

.lime-glow {
    color: var(--clr-accent);
    text-shadow: 0 0 20px rgba(202, 254, 103, 0.3);
}

.formula-copy {
    font-size: 1.5rem;
    max-width: 800px;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}
.formula-copy strong {
    color: var(--clr-base);
}

/* === 4. POR QUÉ INVERTIR === */
.why-invest {
    padding: var(--section-pad);
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-contrast);
    margin-bottom: 24px;
}

.why-text p {
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.market-stats {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
    text-align: center;
}

.market-stat {
    flex: 1;
    background: var(--clr-base);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(45, 79, 230, 0.05);
    box-shadow: 0 10px 40px rgba(45, 79, 230, 0.08); /* Soft glowing aura */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.market-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(45, 79, 230, 0.18); /* Stronger glow on hover */
}

.market-stat h3 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -2px;
    white-space: nowrap;
}

.market-stat p {
    color: var(--clr-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.radar-circle {
    width: 120vh;
    height: 120vh;
    min-width: 1200px;
    min-height: 1200px;
    border-radius: 50%;
    border: 1px solid rgba(45, 79, 230, 0.1); /* Subtle large outer border */
    position: relative;
    margin: 0 auto;
}

.radar-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80px; /* Reduced as requested for a tighter core aesthetic */
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-logo-center img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

.radar-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background: var(--clr-primary);
    border-radius: 50%;
}

.shadow-1, .shadow-2 {
    background: transparent;
    border: 2px solid var(--clr-primary);
    animation: ripple 3s infinite;
}

.shadow-1 { animation-delay: 0.5s; width: 100%; height: 100%; }
.shadow-2 { animation-delay: 1.5s; width: 100%; height: 100%; }

@keyframes ripple {
    0% { width: 20px; height: 20px; opacity: 0.8; }
    100% { width: 120vh; height: 120vh; opacity: 0; }
}

/* === 4.5 NORTH STAR BADGE === */
.north-star-wrapper {
    position: absolute; /* Lock to the top border of the section it sits in */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensure it floats over other section boundaries */
    display: flex;
    justify-content: center;
}

.ns-badge {
    position: absolute;
    top: -75px; /* Pull it up exactly half its height so it overlaps the border symmetrically */
    width: 150px;
    height: 150px;
    background: var(--clr-base); /* Crisp white center */
    border-radius: 50%; /* Perfect circle */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Establish stacking context so child fillets can tuck behind the background */
    /* Box shadow removed to allow the CSS fillets to merge organically */
}

/* Fillets for the organic S-curve sweep cutout */
.ns-fillet-left, .ns-fillet-right {
    position: absolute;
    top: 50%;
    width: 40px; /* Extended to 40px to overlap interior */
    height: 30px;
    pointer-events: none; /* Ignore clicks */
    z-index: -1; /* Tuck perfectly behind the main white badge circle */
}

.ns-fillet-left {
    left: -30px;
    /* Draws a box that is white on the top-right, transparent on bottom-left */
    background: radial-gradient(circle at 0% 100%, transparent 30px, var(--clr-base) 30.5px);
}

.ns-fillet-right {
    right: -30px;
    /* Draws a box that is white on the top-left, transparent on bottom-right */
    background: radial-gradient(circle at 100% 100%, transparent 30px, var(--clr-base) 30.5px);
}

.ns-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: ns-rotate 25s linear infinite; /* Slow, hypnotic spin */
}

@keyframes ns-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ns-svg text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    fill: var(--clr-primary); /* Brand blue for the text */
}

.ns-icon-wrapper {
    position: relative;
    font-size: 2.8rem;
    color: var(--clr-accent); /* Vibrant lime green astronaut */
    z-index: 2;
}


/* === 5. PORTAFOLIO & CLIENTES === */
.portafolio {
    padding: var(--section-pad);
    background: var(--clr-primary); /* Vibrant Blue Base */
    position: relative;
}

.portafolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./assets/bg_luna.webp') center/cover no-repeat;
    opacity: 0.2; /* 20% Texture Opacity */
    pointer-events: none;
    z-index: 0;
}

.portafolio .container {
    position: relative;
    z-index: 2;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-header h2,
.portfolio-header p {
    color: var(--clr-base); /* High contrast white text for the blue bg */
}

/* Masonry Gallery */
.portfolio-gallery {
    column-count: 3;
    column-gap: 30px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    background-color: var(--clr-base);
    transition: transform var(--transition-fast);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%);
    border-radius: 12px;
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--clr-accent);
    color: var(--clr-contrast);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    z-index: 10;
}

.portfolio-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 10;
    margin: 0;
}

/* Marquee */
.clients-marquee {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    background: var(--clr-accent); /* Vibrant Green Background */
}

.marquee-title {
    text-align: center;
    font-weight: 700;
    color: var(--clr-contrast); /* Dark text for contrast against green */
    margin-bottom: 32px;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 180s linear infinite; /* Extremely slow, elegant pacing */
}

.marquee-content {
    display: flex;
    gap: 80px;
    padding: 0 40px;
    align-items: center; /* Center differing heights */
}

.client-logo-img {
    height: 60px; /* Standardize height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6); /* Desaturate for professional vibe */
    transition: var(--transition-fast);
}

.client-logo-img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === 6. STATS DE CONFIANZA === */
.stats {
    padding: 100px 0;
    background: var(--clr-contrast);
    color: var(--clr-base);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    flex: 1;
    min-width: 250px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.8;
}

/* === FOOTER === */
.footer {
    background: #050814;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.footer-bottom {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* === 7. CONTACT SECTION === */
.contact-section {
    padding: var(--section-pad);
    background-color: var(--clr-base);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #6B7280;
    margin-bottom: 48px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px 24px;
    border: none;
    background-color: #F3F4F6;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text);
    outline: none;
    transition: background-color var(--transition-fast);
}

.contact-form input {
    border-radius: 100px;
}

.contact-form textarea {
    border-radius: var(--border-radius-lg);
    resize: vertical;
    font-family: monospace;
    padding-top: 24px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9CA3AF;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #E5E7EB;
}

.contact-submit {
    align-self: center;
    margin-top: 16px;
}

@media(max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-heading {
        font-size: 2.2rem;
    }
    .contact-submit {
        align-self: stretch;
        text-align: center;
    }
}

/* === MEDIA QUERIES === */
@media(max-width: 992px) {
    .why-container, .formula-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 0; /* Clear the 5rem margin for mobile */
        padding: 0 24px;
    }
    .hero-container {
        justify-content: center; /* Center the text container */
        margin: 0 24px !important; /* Remove 5rem margin on mobile */
    }
    .hero-content { 
        text-align: center; 
        max-width: 100%;
    }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { align-items: center; }

    /* Responsive Hero Visuals: Become a watermark on small screens */
    .hero-visual-right {
        width: 100%;
    }
    .hero-bg-img {
        transform: translateX(0);
        background-position: center;
        opacity: 0.15; /* Turn astronaut into watermark so text is readable */
        min-width: 0;
    }
    .hero-visual-right .radar-circle {
        right: auto;
        transform: none;
        width: 500px;
        height: 500px;
        min-width: 0;
        min-height: 0;
    }

    .formula-equation { flex-wrap: wrap; }
    .featured-case { grid-template-columns: 1fr; }
    
    .servicios-grid { 
        grid-template-columns: repeat(2, 1fr); 
        margin: 60px 24px 0 24px; /* Adjust 5rem down to a padding size */
    }
    .servicio-card:nth-child(1),
    .servicio-card:nth-child(2),
    .servicio-card:nth-child(3),
    .servicio-card:nth-child(4),
    .servicio-card:nth-child(5),
    .servicio-card:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media(max-width: 768px) {
    h2 { font-size: 2.25rem; }
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    .servicios-grid { 
        grid-template-columns: 1fr; 
        margin: 40px 16px 0 16px; /* Tighter padding for mobile */
    }
    .market-stats {
        flex-direction: column;
        gap: 40px;
    }
    .stats-new-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .stats-new-title-col h2 {
        font-size: 4rem !important;
    }
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 32px 0;
    }
    .stat-desc {
        text-align: left;
        max-width: 100%;
        color: var(--clr-muted);
    }
}

/* === NEW ASYMMETRIC STATS SECTION === */
.stats-new {
    background-color: var(--clr-contrast); /* Deep dark background */
    padding: 120px 0;
    color: var(--clr-base);
}

.stats-new-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Light divider for dark background */
}

.stat-row:first-child {
    padding-top: 0;
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-big {
    font-size: 6.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--clr-accent); /* Lime green numbers */
    letter-spacing: -3px;
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
}

.stat-big .symbol {
    font-size: 3rem;
    font-weight: 700;
    margin-left: 4px;
}

.stat-desc {
    font-size: 1rem;
    color: var(--clr-base);
    opacity: 0.9;
    max-width: 280px;
    text-align: right;
    line-height: 1.4;
    font-weight: 500;
}

/* === 6. FAQ SECTION === */
.faq-section {
    font-family: var(--font-body);
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: -1px; /* collapse double borders */
}

.faq-question {
    list-style: none; /* Hide default arrow */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-contrast); /* Changed to black/dark for visual weight */
    padding: 32px 0;
    position: relative;
    padding-right: 40px; /* Make space for the new + icon */
    transition: opacity var(--transition-fast);
}

.faq-question::-webkit-details-marker {
    display: none; /* hides arrow in safari webkit */
}

/* Accordion PLUS sign indicator */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--clr-accent);
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding-bottom: 32px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--clr-contrast);
    opacity: 0.9; /* Slight mute */
    margin-bottom: 24px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #4B90FF; /* Soft digital blue for links */
    text-decoration: underline;
}

.faq-item[open] .faq-question {
    color: var(--clr-contrast);
    font-weight: 700;
}

.faq-item[open] .faq-question::after {
    content: '−'; /* Change to mathematical minus when open */
    transform: translateY(-50%) rotate(180deg); /* Small animation pop */
}

.faq-question:hover {
    opacity: 0.7;
}

@media(max-width: 900px) {
    .portfolio-gallery {
        column-count: 2;
    }
}

@media(max-width: 600px) {
    .portfolio-gallery {
        column-count: 1;
    }
}
/* === FOOTER CREATIVO === */
.footer-alt {
    background-color: #050a16; /* Dark Space Blue */
    color: var(--clr-base);
    padding: 80px 0 30px;
    font-family: var(--font-body);
}

.footer-alt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 24px;
}

.footer-alt-col {
    position: relative;
    display: flex;
    flex-direction: column;
}

.footer-alt-col:nth-child(1) {
    padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-alt-col:nth-child(2) {
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-alt-col:nth-child(3) {
    padding-left: 40px;
}

.footer-alt-brand {
    justify-content: space-between;
    align-items: flex-start; /* Stops flex column from horizontally distorting the logo */
}

.footer-alt-logo {
    width: 220px; /* Healthy responsive sizing */
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform var(--transition-smooth);
}

.footer-alt-desc {
    color: var(--clr-base);
    opacity: 0.6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    margin-top: 40px; /* Pushes to bottom */
}

/* Middle Col Links */
.footer-alt-links {
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 60px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-links-col a {
    color: var(--clr-base);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--clr-primary);
}

/* Right Col Huge Links */
.footer-alt-contact {
    justify-content: flex-start;
    gap: 24px;
}

.footer-big-link {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--clr-accent); /* Vibrant Matrix Green */
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    align-self: flex-start;
    transition: var(--transition-fast);
}

.footer-big-link:hover {
    opacity: 0.8;
}

.footer-alt-socials {
    margin-top: 40px; /* push down */
    color: var(--clr-base);
    opacity: 0.6;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.footer-alt-socials a:hover {
    color: var(--clr-accent);
    opacity: 1;
}

.footer-alt-bottom {
    text-align: center;
    color: var(--clr-base);
    opacity: 0.6;
    font-size: 0.95rem;
}

.footer-alt-bottom strong {
    color: var(--clr-base);
    font-weight: 700;
}

@media(max-width: 992px) {
    .footer-alt-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-alt-col {
        padding: 0 !important;
        border-right: none !important;
    }
    
    .footer-alt-links {
        justify-content: space-between;
        gap: 20px;
    }
    
    .footer-big-link {
        font-size: 1.8rem;
    }
}
