:root {
    /* Color Palette - Dark Industrial Mode (Default) */
    --brand-bg: #0A0A0A;
    --brand-surface: #121212;
    --brand-dark: #000000;
    --brand-primary: #71BC47;
    --brand-primary-rgb: 113, 188, 71;
    --brand-accent: #9CD07E;
    --brand-text: #F5F5F7;
    /* Apple-style off-white */
    --brand-muted: #86868B;
    /* Apple-style muted gray */
    --brand-secondary: #1D1D1F;
    --brand-purple: #41056D;
    --brand-white: #ffffff;
    --brand-border: rgba(255, 255, 255, 0.08);
    /* Unified translucent border */
    --brand-action: #71BC47;
    --brand-action-hover: #5DA535;

    /* Semantic Tokens */
    --glass-bg: rgba(18, 18, 18, 0.72);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;

    /* Multi-layered Shadows (Stripe/Apple style) */
    --shadow-premium:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 2px 2px rgba(0, 0, 0, 0.1),
        0 4px 4px rgba(0, 0, 0, 0.1),
        0 8px 8px rgba(0, 0, 0, 0.1),
        0 16px 16px rgba(0, 0, 0, 0.1);

    --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.05);

    /* Motion Bezier Tokens */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --motion-slow: 0.8s var(--ease-out-expo);
    --motion-medium: 0.5s var(--ease-out-expo);
    --motion-fast: 0.3s var(--ease-out-expo);

    /* Typography Optimized Tracking */
    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-technical: 0.12em;

    /* Harmonic Spacing Scale (8px baseline) */
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2.5rem;
    /* 40px */
    --space-5: 4rem;
    /* 64px */
    --space-6: 6.5rem;
    /* 104px */
    --space-7: 10.5rem;
    /* 168px */

    /* Typography Families */
    --font-heading: 'Helveticish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-technical: 'Montserrat', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Typographic scale inherited and refined */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    --fs-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
    --fs-body: clamp(1rem, 0.5vw + 0.5rem, 1.125rem);
    --fs-label: 0.7rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-family: var(--font-technical);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Global Layout Base */
.page-wrapper {
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll from decorative elements */
    position: relative;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

[data-theme="light"] {
    /* ... existing light mode vars ... */
    --brand-bg: #FFFFFF;
    --brand-surface: #F8F9FA;
    --brand-dark: #1A1A1A;
    --brand-text: #222222;
    --brand-muted: #666666;
    --brand-border: #E5E5E5;
    --brand-action-hover: #395E24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--brand-bg);
    font-family: var(--font-body);
    color: var(--brand-text);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Premium Noise Texture Layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%32");
    opacity: 0.025;
    /* Ultra-subtle noise */
    pointer-events: none;
    z-index: 9999;
}

/* Light Leak Accents - Contained within parent width */
.light-leak {
    position: absolute;
    width: 60vw;
    max-width: 800px;
    height: 60vw;
    max-height: 800px;
    background: radial-gradient(circle, rgba(113, 188, 71, 0.08) 0%, transparent 70%);
    top: -10vw;
    right: 0;
    /* Changed from -10vw to prevent overflow */
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

/* =============================================
   GLOBAL TYPOGRAPHIC HIERARCHY
   Scale: Perfect Fourth (×1.333) | Units: REM
   Viewport: 320px – 1440px via clamp()
   WCAG 2.1 AA — colour contrast 4.5:1 min
============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--brand-text);
    margin-bottom: 0.5em;
}

h1 {
    /* Hero title — max impact, tightest tracking */
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    line-height: var(--lh-display);
    letter-spacing: -0.04em;
}

h2 {
    /* Section headers — editorial authority */
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: -0.03em;
}

h3 {
    /* Subsections — legible, medium weight */
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
}

h4,
h5,
h6 {
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
}

p {
    /* Base body text — let components override */
    line-height: var(--lh-body);
    font-weight: var(--fw-regular);
}

/* Lead — introductory paragraph, large + light */
.text-lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    font-weight: var(--fw-light);
    color: var(--brand-muted);
    max-width: 65ch;
}

/* Technical label — UPPERCASE caption, Montserrat */
.text-label {
    font-size: var(--fs-label);
    font-family: var(--font-technical);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-muted);
}

/* =============================================
   COMPONENT TYPOGRAPHY (uses fluid scale)
============================================= */

/* Hero — title + body */
.hero-uvp h1 {
    color: white;
    font-size: var(--fs-h1);
    line-height: var(--lh-display);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-4);
}

.text-accent {
    color: var(--brand-primary);
    position: relative;
    display: inline-block;
}

.hero-uvp .text-lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-5);
}

.hero-trust-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: var(--font-technical);
    font-weight: 600;
}

.hero-trust-clients {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-technical);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-technical.visible .hero-trust-clients {
    opacity: 1;
    transform: translateY(0);
}

.hero-trust-clients span:hover {
    color: var(--brand-primary);
    text-shadow: 0 0 15px rgba(113, 188, 71, 0.4);
    cursor: default;
}

.hero-trust-sep {
    color: var(--brand-primary);
    margin: 0 10px;
}

/* Hero Conversion Form */
.hero-conversion-form {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--brand-primary);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-conversion-form h3 {
    color: var(--brand-text);
    font-family: var(--font-technical);
    font-size: var(--text-md);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-conversion-form p {
    color: var(--brand-muted);
    font-size: var(--text-sm);
    margin-bottom: 30px;
}

.hero-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--brand-border);
    background: var(--brand-bg);
    color: var(--brand-text);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.hero-form-btn {
    background: var(--brand-action);
    color: white;
    font-weight: var(--fw-black);
    padding: 18px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-technical);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    font-size: var(--text-base);
}

.hero-form-btn:hover {
    background: var(--brand-action-hover);
    transform: translateY(-2px);
}

.hero-form-note {
    text-align: center;
    color: var(--brand-muted);
    font-size: var(--text-xs);
}

/* Stats counters */
.stat-number {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    /* Fluid counter */
    letter-spacing: -3px;
    line-height: 1;
    font-family: var(--font-technical);
    color: var(--brand-purple);
}

.stat-symbol {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
    /* Fluid +/% symbol */
    color: var(--brand-purple);
}

[data-theme="light"] .stat-number {
    color: var(--brand-primary);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section headers — "Nosotros", "Servicios" */
.section-eyebrow {
    color: var(--brand-primary);
    margin-bottom: 15px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    font-size: var(--fs-label);
    letter-spacing: 3px;
    font-family: var(--font-technical);
}

.section-title {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    letter-spacing: -0.03em;
    margin-bottom: 25px;
    max-width: 800px;
}

.section-subtitle {
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    max-width: 700px;
}

.container {
    /* Using unified container in base section */
}

/* =============================================
   HEADER — Premium Floating Nav (Linear/Stripe)
   Transparent → Glassmorphic on scroll
============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: #FFFFFF !important;
    /* Force Solid White for visibility */
    transition: all var(--motion-medium);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* Force dark links on white header regardless of theme */
.nav-link,
.header-actions .theme-toggle-btn {
    color: #1A1A1A !important;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--brand-primary) !important;
}

/* Tooltip Visibility Fix */
.tooltip-trigger {
    color: #FFFFFF !important;
    /* Force white letters for tooltips */
    cursor: help;
    font-style: normal;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 4px;
    border-radius: 4px;
    display: inline-block;
}

[data-theme="light"] .tooltip-trigger {
    background: rgba(0, 0, 0, 0.4);
}

.tooltip-trigger:hover {
    background: var(--brand-primary);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

/* Center Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    font-family: var(--font-technical);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #1A1A1A;
    /* Force dark text for white header */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    opacity: 0.7;
}

/* Pill hover effect — subtle background appears */
.nav-link:hover,
.nav-link.active {
    opacity: 1;
    background: rgba(128, 128, 128, 0.08);
}

.nav-link.active {
    font-weight: 600;
}

/* Right Actions Zone */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* CTA Button — "Presupuesto" */
.header-cta {
    font-family: var(--font-technical);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background: var(--brand-primary);
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--brand-action-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(113, 188, 71, 0.25);
}

/* =============================================
   Móvil: HAMBURGER (Premium CSS-Only Animation)
============================================= */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    /* Increased gap */
    width: 44px;
    /* Larger touch target */
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 1px;
    /* Ultra thin, premium look */
    background: var(--brand-text);
    /* Auto-adapts to theme */
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

/* Animated X state */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =============================================
   MOBILE DRAWER — Fullscreen Overlay Anti-Slop
============================================= */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    /* Deep dark */
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(15px);
}

[data-theme="light"] .mobile-drawer-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px; /* Reduced from 90px in media queries to keep it centered */
    pointer-events: none;
}

.mobile-drawer.active {
    pointer-events: all;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
    width: 100%;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3rem);
    /* Huge typography */
    font-weight: 500;
    color: var(--brand-text);
    text-decoration: none;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: -1px;
}

.mobile-drawer.active .drawer-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for drawer links */
.mobile-drawer.active .drawer-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-drawer.active .drawer-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-drawer.active .drawer-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-drawer.active .drawer-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-drawer.active .drawer-cta {
    transition-delay: 0.35s;
}

.drawer-link:hover {
    color: var(--brand-primary);
}

.drawer-cta {
    font-family: var(--font-technical);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000;
    background: var(--brand-primary);
    padding: 18px 40px;
    border-radius: 4px;
    margin-top: 40px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer.active .drawer-cta {
    opacity: 1;
    transform: translateY(0);
}

.drawer-cta:hover {
    background: var(--brand-action-hover);
    color: #fff;
}

/* =============================================
   RESPONSIVE — Mobile breakpoint
============================================= */
@media (max-width: 768px) {
    .site-header {
        padding: 14px 20px;
    }

    .site-header.scrolled {
        padding: 10px 20px;
    }

    /* Hide desktop nav & CTA on mobile */
    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
}


.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #1A1A1A;
    /* Force dark for white header */
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    width: 36px;
    height: 36px;
}

.theme-toggle-btn:hover {
    background: rgba(128, 128, 128, 0.1);
    color: var(--brand-dark);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 18px;
    height: 18px;
}

/* Default (Dark Mode) State */
.theme-toggle-btn .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle-btn .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Light Mode State */
[data-theme="light"] .theme-toggle-btn .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Hero - Logisco Style (Centered, Dark Overlay) */
.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Switched to a stunning 4K industrial stock photo to look truly international.
       The previous WhatsApp image was too low-resolution to stretch full screen and looked messy. */
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Premium vignette effect: pure desaturated dark gray */
    background: radial-gradient(circle at center, rgba(15, 15, 15, 0.6) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    /* Serious gray instead of green */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: var(--font-technical);
    font-size: 0.85rem;
    padding: 8px 16px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle white border */
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-text-centered h1 {
    font-family: var(--font-heading);
    color: white;
    /* White text on dark bg */
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    /* Slightly larger */
    line-height: 1.05;
    /* Tighter line height */
    letter-spacing: -1.5px;
    /* Tighter tracking for international corporate look */
    margin-bottom: 25px;
    text-wrap: balance;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly brighter gray muted */
    font-size: 1.25rem;
    /* Slightly larger */
    max-width: 750px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    text-wrap: pretty;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05) !important;
    /* Ghost button */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    /* White text */
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.hero-btn:hover {
    background: white !important;
    color: var(--brand-dark) !important;
    /* Dark text on hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero .logo-carousel-container {
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

/* Make logos bright and elegant */
.hero .logo-slide img {
    filter: brightness(0) invert(1) opacity(0.85);
    /* Much more visible, solid white feel */
    height: 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero .logo-slide:hover img {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.05);
}

.client-logo-themeable {
    filter: brightness(0) invert(1) opacity(0.5);
    transition: all 0.3s ease;
}

[data-theme="light"] .client-logo-themeable {
    filter: brightness(0) opacity(0.5);
    /* Black in light mode */
}

.client-logo-themeable:hover {
    opacity: 1 !important;
}

.technical-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.technical-badge {
    font-family: var(--font-technical);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(113, 188, 71, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(113, 188, 71, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .technical-badge {
    background: var(--color-secondary-bg, rgba(65, 5, 109, 0.05));
    color: var(--brand-dark);
    border-color: rgba(65, 5, 109, 0.1);
}

.service-card:hover .technical-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Bento Stats Refinement - Monolithic Corporate */
.stats-bento {
    background: var(--brand-dark);
    /* Solid midnight slate */
    border-radius: var(--radius-m);
    /* Sharp curves */
    padding: 100px 80px;
    /* Massive breathing room */
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15);
    /* Deep shadow */
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--brand-primary);
    font-family: var(--font-technical);
    line-height: 1;
    margin-bottom: 5px;
}

/* Services Section - 5-Column Ultra-Minimalist */
.services-section {
    padding: 100px 0;
    background: var(--brand-bg);
}

.services-section h2 {
    color: #ffffff;
}

[data-theme="light"] .services-section h2 {
    color: var(--brand-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Forced 5 columns for desktop horizontal look */
    gap: 24px;
    /* Reduced gap to fit all items horizontally */
    margin-top: 60px;
    width: 100%;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s ease;
    position: relative;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.service-icon-minimal {
    display: none;
    /* Removed for extreme minimalism as per reorder request */
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--brand-text);
    letter-spacing: -0.5px;
    margin: 5px 0;
    line-height: 1.2;
}

.service-card p {
    color: var(--brand-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Badges Reordered to Top */
.technical-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.technical-badge {
    font-size: 0.6rem;
    font-family: var(--font-technical);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 0;
    color: var(--brand-muted);
    background: transparent;
    border: none;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-card:hover .technical-badge {
    color: var(--brand-primary);
    opacity: 1;
}

/* Tooltip System */
.tooltip-trigger {
    cursor: help;
    display: inline-flex;
    align-items: center;
    position: relative;
    color: var(--brand-primary);
    font-size: 0.75rem;
    width: 28px;
    /* Increased hitbox */
    height: 28px;
    /* Increased hitbox */
    justify-content: center;
    border: 1px solid rgba(113, 188, 71, 0.3);
    border-radius: 50%;
    margin-left: 6px;
    font-style: normal;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    background: rgba(113, 188, 71, 0.05);
}

.tooltip-trigger:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--brand-primary);
}

.tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: var(--brand-surface);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    text-align: left;
    padding: 15px;
    border-radius: 8px;
    position: absolute;
    z-index: 100;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    line-height: 1.5;
    pointer-events: none;
    box-shadow: var(--shadow-premium);
}

.tooltip-trigger:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   LIGHT MODE TOOLTIP OVERRIDES (definitive)
============================================= */
[data-theme="light"] .tooltip-trigger {
    color: #1A1A1A !important;
    background: rgba(113, 188, 71, 0.15) !important;
    border: 1px solid var(--brand-primary) !important;
}

[data-theme="light"] .tooltip-trigger:hover {
    color: #FFFFFF !important;
    background: var(--brand-primary) !important;
}

[data-theme="light"] .tooltip-content,
[data-theme="light"] .tooltip-content * {
    background-color: #1A1A1A !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Minimal Gallery Link (Green Text Only Link) */
button.gallery-trigger {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--brand-primary) !important;
    padding: 0 !important;
    font-family: var(--font-technical);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    /* Pushes to bottom of flex container */
    width: fit-content;
    transition: opacity 0.3s ease, text-decoration 0.3s ease;
    border-radius: 0 !important;
}

button.gallery-trigger:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.service-gallery {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    /* Floating gallery to avoid pushing layout */
    background: var(--brand-surface);
    padding: 0;
    z-index: 50;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-gallery.active {
    max-height: 500px;
    padding: 10px;
    margin-top: 10px;
}

.gallery-img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Dark/Light mode Consistency */
[data-theme="light"] .service-card h3 {
    color: var(--brand-dark);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Section - Minimalist Industrial */
.contact-section {
    padding: 120px 0;
    border-top: 1px solid var(--brand-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* More balanced ratio */
    gap: 80px;
    align-items: start;
}

.contact-info-card {
    background: transparent;
    /* Remove background for minimalism */
    color: var(--brand-text);
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    /* Remove shadows */
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: var(--brand-text);
}

.contact-subtitle {
    color: var(--brand-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 90%;
}

.contact-details {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-detail-item {
    border-left: 2px solid var(--brand-primary);
    padding-left: 24px;
}

.detail-label {
    font-family: var(--font-technical);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--brand-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.detail-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-text);
    line-height: 1.5;
}

.accent-link {
    color: var(--brand-primary);
    transition: opacity 0.3s ease;
}

.accent-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.social-links-minimal {
    margin-top: 20px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-3px);
}

/* Form Styling - Refined Minimalist */
.form-card {
    background: var(--brand-surface);
    padding: 60px;
    border: 1px solid var(--brand-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    /* Added subtle depth for visual impact */
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand-purple), var(--brand-primary));
}

[data-theme="light"] .form-card::before {
    background: var(--brand-primary);
}

.form-row-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 45px;
    letter-spacing: -1px;
    font-family: var(--font-heading);
    color: var(--brand-text);
}

.input-wrapper-minimal {
    position: relative;
}

.form-group-minimal {
    margin-bottom: 35px;
    position: relative;
    flex: 1;
}

.form-group-minimal input[type="text"],
.form-group-minimal input[type="tel"],
.form-group-minimal input[type="email"],
.form-group-minimal textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    /* Slightly smaller for technical precision */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group-minimal input:focus,
.form-group-minimal textarea:focus {
    outline: none;
    border-bottom-color: var(--brand-purple);
    padding-left: 8px;
    /* Subtle movement on focus */
}

[data-theme="light"] .form-group-minimal input:focus,
[data-theme="light"] .form-group-minimal textarea:focus {
    border-bottom-color: var(--brand-primary);
}

.form-label-technical {
    display: block;
    font-family: var(--font-technical);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--brand-muted);
    margin-bottom: 20px;
    font-weight: 700;
}

.radio-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Force single line */
    gap: 15px;
    /* Tighten gap slightly to fit 3 options */
    margin-top: 10px;
}

.radio-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Tighten inner gap */
    cursor: pointer;
    font-size: 0.78rem;
    /* Slightly smaller to fit */
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.radio-minimal:hover {
    color: var(--brand-primary);
}

.radio-minimal input {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-minimal input:checked+.radio-mark {
    border-color: var(--brand-primary);
    background: rgba(113, 188, 71, 0.1);
}

.radio-minimal input:checked+.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
}

.btn-submit-minimal {
    width: 100%;
    margin-top: 25px;
    padding: 20px;
    background: var(--brand-dark);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-technical);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-minimal:hover {
    background: var(--brand-primary);
    color: var(--brand-dark);
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(113, 188, 71, 0.3);
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-bg);
    color: var(--brand-text);
    line-height: 1.7;
    /* Increased for airy, breathable text */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.2px;
    /* Slight tightening for modern sans */
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    line-height: 1.15;
    /* Tighter headings */
    font-weight: 400;
    /* Let the Aleo serif speak for itself */
    letter-spacing: -1px;
    /* Multinational solid look */
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

/* --- NEW NOSOTROS SECTION STYLES --- */
.nosotros-section {
    padding: 120px 0;
    overflow: hidden;
}

.nosotros-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.experience-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 40px 0;
}

.experience-branding .bracket {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--brand-purple);
    font-family: var(--font-heading);
    opacity: 0.8;
}

[data-theme="light"] .experience-branding .bracket {
    color: var(--brand-primary);
}

.experience-count {
    display: flex;
    align-items: center;
    gap: 20px;
}

.experience-count .number {
    font-family: var(--font-technical);
    font-size: 6rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    letter-spacing: -3px;
}

.experience-count .label {
    font-family: var(--font-technical);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--brand-text);
}

.nosotros-content {
    text-align: left;
}

.nosotros-content .section-eyebrow {
    color: var(--brand-primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-family: var(--font-technical);
}

.nosotros-content .section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--brand-text);
    text-align: left;
    margin-left: 0;
    max-width: 100%;
}

.nosotros-content .section-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--brand-text);
    margin-bottom: 40px;
    opacity: 0.85;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    text-transform: uppercase;
    font-family: var(--font-technical);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

.btn-read-more:hover {
    background: var(--brand-primary);
    color: #000;
    transform: translateX(5px);
}


.btn-primary:hover {
    background: var(--brand-bg);
    color: var(--brand-dark);
    border: 1px solid var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

/* Infinite Logo Carousel - Hero Refinement */
.logo-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    overflow: hidden;
}

.logo-carousel-container h4 {
    color: var(--brand-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    opacity: 0.9;
    text-align: center;
    /* Ensure centered text */
}

.logo-track {
    display: flex;
    width: calc(160px * 8);
    /* Adjusted for wider spacing */
    animation: scroll 30s linear infinite;
    /* Slightly slower, smoother */
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-160px * 4));
        /* Matches slide width */
    }
}

.logo-slide {
    width: 160px;
    /* Wider slide for more breathing room */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 15px;
    /* Added padding */
}

.logo-slide img {
    max-width: 120px;
    max-height: 45px;
    filter: grayscale(1) opacity(0.3) contrast(1.2);
    /* Softer, premium look */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-slide img:hover {
    filter: grayscale(0) opacity(1) contrast(1);
    transform: scale(1.05);
}

/* Social Proof Grid Logos */
.client-logo {
    filter: grayscale(100%) opacity(0.6) contrast(120%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1) contrast(100%);
    transform: scale(1.05);
}


/* Micro-interactions (Apple-style Modern Scroll Animations) */

/* Micro-interactions (Apple-style Modern Scroll Animations) */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-100 {
    transition-delay: 150ms;
}

.delay-200 {
    transition-delay: 300ms;
}

.delay-300 {
    transition-delay: 450ms;
}


/* Corporate Accordion - Mission, Vision, Values */
.corporate-accordion {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: left;
}

.accordion-item {
    border-bottom: 1px solid var(--nav-separator);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-text);
    font-family: var(--font-technical);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--brand-primary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
    color: var(--brand-muted);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    color: var(--brand-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Large enough for content */
    padding-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--brand-text);
}

.value-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
}

/* Minimalist Site Footer */
.site-footer {
    background: var(--brand-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 35px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
    opacity: 0.8;
}

.footer-copyright {
    opacity: 0.4;
    font-size: 0.75rem;
    font-family: var(--font-technical);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
}

/* Footer Map - Two-Column Layout */
.footer-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 50px auto 0;
    max-width: 900px;
    text-align: left;
}

.footer-map {
    width: 100%;
    height: 240px;
    border: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    filter: grayscale(100%) invert(90%) contrast(85%);
    opacity: 0.65;
    transition: opacity 0.4s ease, filter 0.4s ease;
    display: block;
}

.footer-map:hover {
    opacity: 1;
    filter: grayscale(0%) invert(0%) contrast(100%);
}

.footer-address-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-address-label {
    font-family: var(--font-technical);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-primary);
    font-weight: 700;
}

.footer-address-main {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-weight: 300;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-technical);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 4px;
}

.footer-map-link:hover {
    color: var(--brand-primary);
}

.footer-address-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .radio-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Gallery - now hidden inline, opened via modal */
.service-gallery {
    display: none;
    /* Images live here but are cloned into the modal */
}

/* Gallery Lightbox Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(6px);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-modal-inner {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    max-width: 1000px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--brand-border);
    padding-bottom: 20px;
}

.gallery-modal-title {
    font-family: var(--font-technical);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-primary);
    font-weight: 700;
}

.gallery-modal-close {
    background: none;
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.gallery-modal-close:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.gallery-modal-close i {
    width: 16px;
    height: 16px;
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gallery-modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.gallery-modal-img:hover {
    transform: scale(1.02);
    opacity: 0.9;
    cursor: zoom-in;
}

/* Single image fullscreen viewer */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 10000;
    /* Above gallery modal */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    pointer-events: all;
}

.image-viewer-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-viewer-close:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #000;
}

.image-viewer-close i {
    width: 20px;
    height: 20px;
}

.gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =============================================
   BASE LAYOUT — Desktop (moved from inline)
============================================= */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.horizontal-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    text-align: center;
}

/* =============================================
   RESPONSIVE — Tablet Landscape (≤1024px)
============================================= */
@media (max-width: 1024px) {
    .hero-split {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-location {
        gap: 30px;
    }
}

/* =============================================
   RESPONSIVE — Tablet Portrait (≤768px)
============================================= */
@media (max-width: 768px) {

    /* Header (already handled above but keep grouped) */
    .site-header {
        padding: 14px 20px;
    }

    .site-header.scrolled {
        padding: 10px 20px;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero — stack vertically */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-uvp p,
    .hero-uvp .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust p {
        white-space: normal;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding-top: 0;
    }

    /* Stats — keep 3 columns but smaller */
    .horizontal-stats {
        gap: 40px;
        justify-content: center;
    }

    /* Services — 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .services-section {
        padding: 60px 0;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-grid {
        flex-wrap: wrap;
    }

    /* Footer location — stack */
    .footer-location {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-map {
        height: 200px;
    }

    /* Gallery modal */
    .gallery-modal-inner {
        width: 95vw;
        padding: 24px;
    }

    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* General spacing */
    .container {
        padding: 0 16px;
    }
}

/* =============================================
   RESPONSIVE — Mobile (≤600px)
============================================= */
@media (max-width: 600px) {

    /* Hero */
    .hero {
        padding: 100px 0 40px;
    }

    .hero-split {
        gap: 30px;
    }

    /* Stats — stack to 1 column */
    .horizontal-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item h3 .counter {
        font-size: 3.5rem;
    }

    /* Services — 1 column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Accordion */
    .accordion-header {
        font-size: 0.9rem;
        padding: 16px 0;
    }

    /* Contact */
    .contact-section .container {
        padding: 0 16px;
    }

    .form-card {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-address-main {
        font-size: 0.95rem;
    }

    /* Mobile drawer width */
    .mobile-drawer {
        width: 100vw;
        max-width: 100vw;
        padding: 40px; /* Center properly */
    }

    /* Gallery */
    .gallery-modal-inner {
        padding: 20px;
        max-height: 90vh;
    }

    .gallery-modal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =============================================
   RESPONSIVE — Small Mobile (≤480px)
============================================= */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        letter-spacing: -1px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }

    .section-title,
    .services-section h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    /* Stat numbers smaller */
    .stat-item h3 .counter {
        font-size: 2.8rem;
    }

    .stat-item h3 span:not(.counter) {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Form inputs */
    .form-group-minimal input,
    .form-group-minimal textarea {
        font-size: 0.9rem;
    }

    .btn-submit-minimal {
        font-size: 0.8rem;
        padding: 14px;
    }

    /* Gallery viewer */
    .image-viewer-img {
        max-width: 98vw;
        max-height: 85vh;
    }
}

/* =========================================================================
   UI/UX ARCHITECTURE REFINEMENT (CSS-ONLY)
   Prioridad: Jerarquía, Espaciado, Profundidad y Micro-interacciones
   ========================================================================= */

/* 1. Refinamiento Tipográfico Global */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.section-title {
    letter-spacing: -0.03em !important;
    /* Tighter tracking para un look editorial/corporativo */
}

/* 2. Jerarquía de Espacio (Macro White-Space) */
section {
    padding: 140px 0 !important;
    /* Incremento del ritmo vertical para monumentalidad */
}

/* 3. Profundidad Óptica (Premium Layering) */
:root {
    /* Sombras multicapa para suavidad extrema */
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 10px 15px -5px rgba(0, 0, 0, 0.4);
    --shadow-premium-light: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] {
    --shadow-premium: var(--shadow-premium-light);
}

/* Tratamiento de la Tarjeta de Formulario */
.form-card {
    box-shadow: var(--shadow-premium) !important;
    border-radius: 8px !important;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 15px 25px -10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .form-card:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 15px 25px -10px rgba(0, 0, 0, 0.08) !important;
}

/* Tratamiento Estructural de Service Cards */
.service-card {
    padding: 30px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-theme="light"] .service-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(65, 5, 109, 0.6) !important;
    /* purple border */
    box-shadow: 0 30px 60px -15px rgba(65, 5, 109, 0.2), 0 15px 25px -10px rgba(0, 0, 0, 0.5) !important;
    /* purple glow */
}

[data-theme="light"] .service-card:hover {
    background: #FFFFFF !important;
    border-color: rgba(113, 188, 71, 0.4) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 15px 25px -10px rgba(0, 0, 0, 0.08) !important;
}

/* 4. Refinamiento de Interfaz de Formulario (Inputs) */
.form-group-minimal input,
.form-group-minimal textarea {
    padding: 16px 4px !important;
    font-size: 1.05rem !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-theme="light"] .form-group-minimal input,
[data-theme="light"] .form-group-minimal textarea {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.form-group-minimal input:focus,
.form-group-minimal textarea:focus {
    border-bottom-color: var(--brand-purple) !important;
    background: linear-gradient(to top, rgba(65, 5, 109, 0.1) 0%, transparent 100%) !important;
    padding-left: 12px !important;
}

[data-theme="light"] .form-group-minimal input:focus,
[data-theme="light"] .form-group-minimal textarea:focus {
    border-bottom-color: var(--brand-primary) !important;
    background: linear-gradient(to top, rgba(113, 188, 71, 0.05) 0%, transparent 100%) !important;
}

/* =========================================================================
   PREMIUM ANIMATION SYSTEM (ANTI-SLOP / PRECISE & TECHNICAL)
   Física: Gravedad alta, fricción alta (cubic-bezier), distancias cortas.
   ========================================================================= */

/* 1. Core Reveal Animation (Precise & Technical) */
.reveal-technical {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    /* Short travel, hardware accelerated */
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.reveal-technical.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* 2. Orchestrated Staggering (Sequence Delays) */
/* Usado para que los elementos hijos aparezcan uno tras otro (Ej: Hero, Stats) */
.stagger-container.is-visible .stagger-item-1 {
    transition-delay: 0.1s;
}

.stagger-container.is-visible .stagger-item-2 {
    transition-delay: 0.2s;
}

.stagger-container.is-visible .stagger-item-3 {
    transition-delay: 0.3s;
}

.stagger-container.is-visible .stagger-item-4 {
    transition-delay: 0.4s;
}

.stagger-container.is-visible .stagger-item-5 {
    transition-delay: 0.5s;
}

/* 3. Button / Action Hover (Magnetic Feel) */
.btn-primary,
.btn-read-more,
.btn-submit-minimal {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
    will-change: transform, box-shadow;
}

.btn-primary:hover,
.btn-read-more:hover,
.btn-submit-minimal:hover {
    transform: translateY(-2px) scale(1.02) !important;
    /* Extremely subtle physical lift */
}

/* 4. Fix for old .fade-in-up to map to new curve for consistency */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    /* Reduced from 50px */
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* =========================================================================
   MOBILE RESPONSIVE REFINEMENTS (ANTI-SLOP ADAPTATION)
   ========================================================================= */
@media (max-width: 968px) {

    /* Header & Navigation */
    .site-header {
        width: 100%;
        padding: 15px 20px;
    }

    .nav-links,
    .header-cta {
        display: none;
        /* Hide standard nav and desktop CTA */
    }

    /* Hamburger visibility */
    .hamburger {
        display: flex;
    }

    /* Hero section */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-conversion-form {
        padding: 30px !important;
        margin-top: 20px;
    }

    /* Nosotros section */
    .nosotros-split {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
        /* Keep left alignment, don't center */
    }

    .experience-branding {
        justify-content: flex-start;
        /* Keep left */
    }

    .experience-branding .bracket {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        /* Reduce bracket size */
    }

    /* Services Grid & Other Grids */
    .services-grid,
    .hero-grid,
    .stats-bento,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .horizontal-stats {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .service-card {
        padding: 24px !important;
        /* Slightly less padding */
    }

    /* Forms */
    .form-card {
        padding: 30px !important;
    }

    .form-row-minimal {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-minimal[style*="margin-left: 30px;"] {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0 !important;
        /* Reduce macro white-space on very small screens */
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =============================================
   EXPO 2025 SECTION — Duo Grid Minimalista
============================================= */
.expo-section {
    margin-top: 0;
    margin-bottom: 80px;
}

/* Dos columnas iguales */
.expo-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Tarjeta individual */
.expo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Contenedor de imagen con overlay */
.expo-card-img-wrap {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    aspect-ratio: 4 / 3;
}

.expo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Overlay oscuro con ícono de zoom */
.expo-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.expo-zoom-icon {
    width: 32px;
    height: 32px;
    color: white;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.expo-card-img-wrap:hover .expo-card-img {
    transform: scale(1.04);
}

.expo-card-img-wrap:hover .expo-card-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.expo-card-img-wrap:hover .expo-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Etiqueta debajo */
.expo-card-label {
    font-family: var(--font-technical);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0;
}

/* Mobile: apilan */
@media (max-width: 640px) {
    .expo-duo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* =============================================
   FLOATING WHATSAPP BUTTON (Expert Design)
============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 3000;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    z-index: 2;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}



/* =============================================
   ANTI-AUTOFILL: Prevent browser white backgrounds on inputs
============================================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--brand-surface) inset !important;
    -webkit-text-fill-color: var(--brand-text) !important;
    caret-color: var(--brand-text);
    transition: background-color 5000s ease-in-out 0s;
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #F8F9FA inset !important;
    -webkit-text-fill-color: #222222 !important;
}

/* =============================================
   MOBILE — Comprehensive Responsive Fixes
   Covers all new sections added in this session
   Breakpoints: 768px (phones) and 480px (small phones)
============================================= */
@media (max-width: 768px) {


    /* ── Hero Trust (Proveedores de Confianza) ── */
    .hero-trust {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-trust-clients {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        font-size: 0.8rem;
    }

    .hero-trust-sep {
        display: none;
        /* Hide separators on mobile to allow clean wrapping */
    }

    /* ── Expo 2025 Section ── */
    .expo-section {
        margin-top: 60px;
        margin-bottom: 80px;
    }

    .expo-grid {
        flex-direction: column;
        padding: 28px 20px;
        gap: 24px;
    }

    .expo-image-container {
        max-width: 100%;
        width: 100%;
    }

    .expo-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: -1px;
        text-align: center;
    }

    .expo-content {
        text-align: center;
    }

    /* ── WhatsApp Floating Button ── */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }

    /* ── Contact Section & Form Card ── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-card {
        padding: 24px 18px !important;
    }

    .form-title {
        font-size: 1rem;
    }

    /* ── Hero Conversion Form ── */
    .hero-conversion-form {
        padding: 24px 18px !important;
    }

    /* ── Nosotros split ── */
    .nosotros-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ── Services Grid (2 cols on phone) ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px !important;
    }

    /* ── Footer Location ── */
    .footer-location {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ── Stats horizontal ── */
    .horizontal-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* ── Tooltips: larger hit target on touch ── */
    .tooltip-trigger {
        width: 32px !important;
        height: 32px !important;
    }

    .tooltip-content {
        width: 180px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
    }

    .tooltip-trigger:hover .tooltip-content {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 480px) {

    /* ── Very small phones ── */
    .expo-grid {
        padding: 20px 16px;
    }

    .expo-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .horizontal-stats {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}


/* =============================================
   FIX: Alineaci�n de service cards
   Altura m�nima en badges para que todas las
   tarjetas arranquen al mismo nivel visual.
============================================= */
.technical-badges {
    min-height: 2.4rem;
}

/* =============================================
   UI REFINEMENT: Senior Designer Standard
   Jerarqu�a, Espaciado y Orden de Ingeniero
============================================= */

.hero-uvp {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-uvp h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    max-width: 16ch;
    text-wrap: balance;
}

.hero-uvp .text-lead {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 3rem !important;
    max-width: 50ch;
}

.hero-badge {
    margin-bottom: 0 !important;
    background: rgba(113, 188, 71, 0.15) !important;
    border-color: rgba(113, 188, 71, 0.3) !important;
    color: var(--brand-primary) !important;
}

/* =============================================
   REFACTOR: Extracted from index.php
   ============================================= */

.hero-conversion-form {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--brand-primary);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-conversion-form h3 {
    color: var(--brand-text);
    font-family: var(--font-technical);
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-conversion-form .form-subtitle {
    color: var(--brand-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-conversion-form form {
    display: grid;
    gap: 14px;
}

.hero-conversion-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--brand-border);
    background: var(--brand-bg);
    color: var(--brand-text);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn-action-hero {
    background: var(--brand-action);
    color: white;
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-technical);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 4px;
}

.hero-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--brand-muted);
    font-size: 0.75rem;
    opacity: 0.9;
}

.hero-form-footer svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.5;
}

.stats-bar-section {
    margin: 80px auto 20px auto;
    position: relative;
    z-index: 10;
}

.stats-bar-inner {
    padding: 20px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
}

.stat-item h3 {
    font-family: var(--font-technical);
    color: var(--brand-text);
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 3.5rem; /* Match the bento stats size */
    margin-bottom: 5px;
}

.stat-item h3 .tooltip-trigger {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    border-width: 2px;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.expo-section .section-eyebrow {
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.expo-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    color: var(--brand-text);
    margin-bottom: 60px;
}

.identidad-section-pilar {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--nav-separator);
}

.identidad-section h2, .identidad-section h3 {
    color: var(--brand-text);
}

.contact-form-accent-text {
    color: var(--brand-primary);
    font-family: var(--font-technical);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -30px;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-text-logo-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}