/* ========================================
   MK POWER ELECTRI - ESTILOS PRINCIPALES
   CSS PURO (Sin Tailwind)
   ======================================== */

/* ========================================
   VARIABLES CSS GLOBALES
   ======================================== */

:root {
    /* --- MK ELITE INDUSTRIAL SYSTEM 2026 --- */
    
    /* 1. Core Palette: Electric & Deep */
    --primary: #0066FF;         /* Updated to Mono-Blue */
    --corporate-blue: #0066FF;  /* SEMANTIC ALIAS: Primary Brand Color */
    --primary-dark: #0044BB;    /* Deep Electric Blue */
    --primary-light: #4D8AFF;   /* Arc Flash */
    --primary-glow: rgba(0, 102, 255, 0.4);
    
    --accent: #00CCFF;          /* Cyan Accent (Replaces Orange) */
    --accent-dark: #0099CC;
    --accent-glow: rgba(0, 204, 255, 0.3);

    /* 2. Neutral: Titanium & Carbon */
    --slate-50: #F8FAFC;
    --technical-gray: #F8FAFC;  /* SEMANTIC ALIAS: Structure/Backgrounds */
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --text-dark: #001F3F;       /* SEMANTIC ALIAS: Deep Blue Text (No Black) */
    --black-pure: #001F3F;      /* Deep Blue (Replaces Void Black) */

    /* 3. Thematic Backgrounds */
    --bg-body: #FFFFFF;         /* SEMANTIC ALIAS: Pure White Background */
    --bg-white: #FFFFFF;        /* Explicit White Variable */
    --bg-surface: #F8FAFC;
    --brand-deep: #001F3F;      /* Deep Blue for premium sections */
    --brand-dark-surface: #001F3F;

    /* 4. Glassmorphism & Materials */
    --glass-clear: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(2, 6, 23, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;

    /* 5. Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --tracking-tight: -0.03em;
    --tracking-wide: 0.05em;

    /* 6. Elevation & Glows (The "Modern" Touch) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-elevation: 0 10px 30px -10px rgba(0, 163, 255, 0.15);
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 20px rgba(0, 163, 255, 0.3);
    
    /* 7. Gradients */
    --gradient-primary: linear-gradient(135deg, #00A3FF 0%, #0055FF 100%);
    --gradient-premium: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    --gradient-text: linear-gradient(90deg, #00A3FF, #0066FF);
}

/* ========================================
   ESTILOS BASE
   ======================================== */

/* ========================================
   ESTILOS BASE - INDUSTRIAL PREMIUM
   ======================================== */

* {
    box-sizing: border-box;
}

main {
    display: block;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    padding: 0;
    background-color: var(--bg-white); /* Updated: Pure White */
    color: var(--text-dark); /* Updated: High Contrast Dark */
    line-height: 1.6; /* +Legibilidad */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* GLOBAL RESPONSIVE LOCK REMOVED (User Request 2026-01-22) */
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    letter-spacing: -0.02em; /* Tracking ajustado */
    margin: 0;
}

body.dark {
    background-color: var(--brand-deep);
    color: var(--text-inverse);
}

/* ========================================
   HEADER PRINCIPAL - GLASSMORPHISM
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 1); /* Solid White */
    backdrop-filter: none; /* No blur needed for solid */
    -webkit-backdrop-filter: none;
    
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding-top: 0;
    padding-bottom: 0;
}

.main-header.dark {
    background-color: rgba(11, 17, 32, 0.85);
    border-bottom-color: rgba(30, 41, 59, 0.6);
}

.header-container {
    max-width: 100%; /* Full width to push logo to edge */
    margin: 0 auto;
    padding: 0 2rem; /* Comfortable edge padding */
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0; /* No gap, text touches logo spacing area */
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1em;
    margin-right: 0; /* Removed extra margin */
}

.logo-icon-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

.logo-icon-text {
    color: white;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800; /* Uniform bold */
    letter-spacing: -0.025em;
    color: var(--slate-900);
    margin: 0;
    margin-left: -0.9rem; /* Negative margin to pull text closer to small icon */
}

.logo-text.dark {
    color: white;
}

.logo-accent {
    color: var(--slate-900); /* Single black color */
    font-weight: 800; /* Match main text weight */
}

/* Navegación desktop - Pill Style */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--slate-100);
    padding: 0.375rem;
    border-radius: 9999px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: inline-flex;
    }
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--slate-900);
    background-color: rgba(0,0,0,0.05);
}

.nav-link.active {
    background-color: white;
    color: var(--slate-900);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background-color: #0066FF;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 48px;
    padding: 0 5px 0 20px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 150ms;
}

@media (min-width: 640px) {
    .header-cta {
        display: flex;
    }
}

.header-cta:hover {
    background-color: #0055FF; /* Subtle darken on hover, stay Blue */
    transform: translateY(-0.125rem);
    box-shadow: none; /* Removed glow */
}

.header-cta-icon,
.custom-arrow-icon {
    font-size: 18px;
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* Arrow icon — white circle wrapper, blue arrow */
.custom-arrow-icon,
.btn-arrow-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    padding: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    vertical-align: middle;
    display: inline-block;
    box-sizing: border-box;
}

.hamburger-btn {
    display: block;
    padding: 0.5rem;
    color: var(--slate-600);
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 150ms;
    z-index: 70;
    position: relative;
}

.hamburger-btn:hover {
    background-color: var(--slate-100);
}

@media (min-width: 768px) {
    .hamburger-btn {
        display: none;
    }
}

/* Menú móvil */
.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid var(--slate-200);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 60;
    position: relative;
}

.mobile-menu.show {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-nav {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    border-bottom: 1px solid var(--slate-100);
    transition: color 150ms;
    position: relative;
    z-index: 61;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-cta-container {
    padding-top: 1rem;
}

.mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 150ms;
}

.mobile-cta:hover {
    background-color: var(--primary-dark);
}

/* ========================================
   HERO SECTION COMPARTIDA
   ======================================== */

/* Hero Section - Consolidated Definition */
/* Hero Section - Consolidated Definition */
.hero-section {
    position: relative;
    min-height: calc(100vh - 7rem); /* Adjusted for top/bottom margins */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0; /* Content centered naturally */
    overflow: hidden;
    /* border-bottom: 4px solid var(--accent); REMOVED per user visual */
    
    /* Card Style Layout */
    margin: 0.75rem;
    margin-top: 5rem; /* Exactly touches the 5rem fixed header */
    border-radius: 0.75rem; /* Reduced from 1.5rem */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Subtle depth */
    min-height: calc(100vh - 6rem); /* Fill screen on mobile (5rem top + 1rem bot) */
}

@media (max-width: 1024px) {
    .hero-section {
        height: auto;
        min-height: calc(100vh - 6rem);
        padding-top: 4rem; 
        padding-bottom: 3rem;
        margin: 0.5rem;
        margin-top: 5rem;
        border-radius: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        margin: 1.5rem 0.5rem; /* Wider: 1.5rem top/bottom, 0.5rem sides */
        margin-top: 5rem; /* Touch header exactly */
        border-radius: 1.25rem; /* Reduced from 2.5rem */
        min-height: calc(102.5vh - 6.50rem); /* Fill screen: 100vh - 5rem(header) - 1.5rem(margin) */
    }
}

.hero-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; /* Tech Grid Pattern */
    pointer-events: none;
    z-index: 1;
}

/* Statistics Strip */
.stats-section {
    background-color: var(--slate-900);
    padding: 2rem 0; /* Compacted from 3rem */
    color: white;
    border-top: 1px solid var(--slate-700);
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cols is fine for mobile */
    gap: 1.5rem; /* Slightly tighter gap */
    text-align: center;
    padding: 0 1rem; /* Safety padding */
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 1 col for very small screens */
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.parallax-divider {
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('https://res.cloudinary.com/dmiejasbn/image/upload/q_auto,dpr_auto,f_auto/torre_de_poder_imagen_ievxgp.jpg'); /* Industrial texture */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 255, 0.2); /* Tint blue */
    ;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 20;
}

@media (min-width: 1024px) {
    .hero-split {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
}

/* Hero Layout Fix */
/* Removed duplicate .hero-section definition */

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-gradient {
    /* Removed gradient overlay as per user request */
    background: transparent;
    backdrop-filter: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-glass-panel {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: 42rem;
    transform: translateY(0);
}

.hero-glass-panel:hover {
    transform: none;
    box-shadow: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--slate-200);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent); /* Amber for critical status */
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-badge-text {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.05;
    letter-spacing: -0.04em; /* Tight editorial tracking */
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Stronger shadow for readability without panel */
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-gradient {
    /* "Divine Sapphire" - Pure, Deep, Sharp */
    background: linear-gradient(
        135deg, 
        #0033CC 30%,    /* Deep Sapphire */
        #0055FF 50%,    /* Pure Electric (Divine) */
        #0033CC 70%     /* Deep Sapphire */
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: divineShine 8s linear infinite;
    /* REMOVED: all fuzzy glow/blur filters per user request */
    filter: none; 
    /* Added: Sharp drop shadow for solid depth */
    text-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3); 
}

@keyframes divineShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-description {
    font-size: 1.125rem;
    color: #e2e8f0; /* Lighter for contrast against video */
    font-weight: 500;
    max-width: 100%;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: var(--slate-900);
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
    font-size: 1rem;
}

.hero-btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-0.125rem);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
    font-size: 1rem;
}

.hero-btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-0.125rem);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 1.5rem; /* Larger radius */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 102, 255, 0.25); /* Harmonious Blue Shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Slight zoom for cinema effect */
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Harmonious Gradient Overlay */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 78, 204, 0.4), transparent 60%);
    pointer-events: none;
}

/* Active Indicator Border */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 10;
    transition: width 0.3s;
    animation: progressLine 4s linear infinite;
}

@keyframes progressLine {
    0% { width: 0%; opacity: 1; }
    90% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 550px; /* Taller on desktop */
    }
}

/* Wave Separator Removed - Industrial Edge Applied on .hero-section */

/* ========================================
   TRUST BAR (AUTHORITY)
   ======================================== */
.trust-bar {
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 0; /* Compacted from 1.5rem */
    position: relative;
    z-index: 20;
    margin-top: -1px; /* Visual fix */
}

.trust-bar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-logos {
    display: flex;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    flex-wrap: wrap; /* Fix: Prevent off-screen icons */
    justify-content: center;
}

.services-section {
    padding: 3rem 0; /* Minimized padding */
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--slate-200) 50%, transparent 100%);
}

.services-section.dark {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--background-dark) 100%);
}

.services-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem; /* Dead space eliminated */
}

@media (min-width: 1024px) {
    .services-header {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem; /* Compacted from 4rem for correlation */
        align-items: center;
        text-align: left;
    }
}

.services-header-content {
    max-width: 54rem;
    display: flex;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Super tight gap for visual harmony */
    align-items: center; /* Center on mobile */
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem; /* Compact padding */
    background: rgba(0, 102, 255, 0.1);
    border-radius: 2rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem; /* Minimal bottom margin */
    width: fit-content;
}

@media (min-width: 1024px) {
    .services-header-content {
        align-items: flex-start;
    }
}

.services-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1rem; /* Tighter title */
}

@media (min-width: 768px) {
    .services-title {
        font-size: 4rem;
    }
}

.services-title.dark {
    color: white;
}

.services-description {
    font-size: 1.25rem;
    color: var(--slate-600);
    line-height: 1.6;
    font-weight: 400;
    max-width: 100%; /* Allow full width in grid */
}

/* Visual Grid Styles - OCULTAR TARJETAS PEQUEÑAS */
.services-visual-grid {
    display: none !important; /* Ocultar completamente las tarjetas pequeñas */
}

.visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* Compact card padding */
    background: var(--background-alt);
    border-radius: 1rem;
    gap: 0.5rem; /* Tighter internal elements */
    transition: all 300ms ease;
    border: 1px solid transparent;
}

.visual-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.visual-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    padding: 0.75rem;
    border-radius: 1rem;
    transition: all 300ms;
}

.visual-card:hover .visual-icon {
    background: var(--primary);
    color: white;
}

/* Custom SVG Icon Handling */
.visual-icon.custom-icon-container {
    display: flex; /* Override font icon display */
    align-items: center;
    justify-content: center;
    width: auto; /* Let padding define size or set fixed */
    padding: 0; /* Remove padding to control size via flex */
    width: 4rem; /* Fixed size container like others */
    height: 4rem;
}

.custom-svg-icon {
    width: 2.5rem; /* Icon size inside container */
    height: 2.5rem;
    object-fit: contain;
    transition: all 300ms;
    /* Force black SVG to be specific blue #0066ff */
    filter: invert(32%) sepia(85%) saturate(2333%) hue-rotate(202deg) brightness(98%) contrast(106%);
}

.visual-card:hover .custom-svg-icon {
    /* Make white on hover */
    filter: brightness(0) invert(1);
}

/* ========================================
   ESTRUCTURA MEJORADA - HEADER DE TEXTO CENTRADO
   ======================================== */

.services-text-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.services-text-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.services-title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.services-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.services-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.services-link-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.services-link:hover .services-link-icon {
    transform: translateX(4px);
}

/* ========================================
   SEPARADOR VISUAL ELEGANTE
   ======================================== */

.services-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    padding: 0 2rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--slate-200) 50%, transparent 100%);
    max-width: 200px;
}

.divider-icon {
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.divider-icon .material-symbols-outlined {
    font-size: 2rem;
    color: white;
}

/* ========================================
   SHOWCASE DE SOLUCIONES - SECCIÓN INDEPENDIENTE
   ======================================== */

.solutions-showcase {
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Ajustar el grid para mejor espaciado */
.premium-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    grid-template-rows: auto auto;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px; /* Ancho ajustado para 2 columnas */
    padding: 0 2rem;
}

/* ========================================
   RESPONSIVE MEJORADO PARA NUEVA ESTRUCTURA
   ======================================== */

@media (max-width: 1024px) {
    .services-title {
        font-size: 2.75rem;
    }
    
    .services-description {
        font-size: 1.125rem;
    }
    
    .premium-solutions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .services-divider {
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    .services-text-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .services-title {
        font-size: 2.25rem;
    }
    
    .services-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .services-link {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .premium-solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem;
    }
    
    .services-divider {
        margin: 2.5rem 0;
    }
    
    .divider-icon {
        width: 50px;
        height: 50px;
        margin: 0 1.5rem;
    }
    
    .divider-icon .material-symbols-outlined {
        font-size: 1.75rem;
    }
    
    .divider-line {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.875rem;
    }
    
    .services-text-header {
        margin-bottom: 2.5rem;
    }
    
    .solutions-showcase {
        padding: 1rem 0;
    }
}

/* ========================================
   TARJETAS BASE - ARQUITECTURA MODULAR
   ======================================== */

.solution-card {
    position: relative;
    border-radius: 32px; /* More organic curve */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--black-pure); /* Deepest OLED Black */
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Subtle bezel */
    will-change: transform;
    /* ADAPTIVE CARD DESIGN: Fixed Ratio */
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 85, 255, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.solution-card:hover::before {
    opacity: 1;
}

/* ========================================
   VARIANTES DE TARJETAS - JERARQUÍA VISUAL (IGUALADA)
   ======================================== */

/* Todas las tarjetas iguales */
.solution-card--primary,
.solution-card--secondary,
.solution-card--featured {
    /* min-height removed for aspect-ratio scaling */
    grid-column: auto;
    grid-row: auto;
}

@media (max-width: 1024px) {
    /* Mantenemos grid 2x2 en tablet, sin spans */
    .solution-card--primary, 
    .solution-card--featured {
        grid-column: auto;
        grid-row: auto;
        /* min-height removed */
    }
}

@media (max-width: 768px) {
    .solution-card--primary,
    .solution-card--secondary,
    .solution-card--featured {
        grid-column: span 1;
        grid-row: span 1;
        /* min-height removed */
    }
}

/* ========================================
   ELEMENTOS INTERNOS - DISEÑO SOFISTICADO
   ======================================== */

.solution-card__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.solution-card:hover .solution-card__background {
    transform: scale(1.08);
}

.solution-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: all 0.6s ease;
    z-index: 2;
}

.solution-card:hover .solution-card__overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 102, 255, 0.85) 0%,
        rgba(0, 102, 255, 0.6) 40%,
        rgba(0, 51, 204, 0.9) 100%
    );
}

.solution-card__content {
    position: relative;
    height: 100%;
    padding: 3rem 2.5rem; /* Increased padding for grand feel */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Groups items at top */
    align-items: center; 
    text-align: center; 
    gap: 2rem; /* Consistent gap between Header, Body and spacing */
    z-index: 3;
}

/* ========================================
   HEADER DE TARJETA - ELEMENTOS SUPERIORES
   ======================================== */

.solution-card__header {
    display: flex;
    justify-content: center; /* Center Icon */
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.solution-card__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Slightly larger */
    height: 80px;
    background: rgba(255, 255, 255, 0.1); /* Lighter */
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.solution-card:hover .solution-card__icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.solution-card__icon {
    font-size: 2.5rem; /* Larger icon */
    color: white;
    transition: all 0.4s ease;
}

/* Fix for SVG icons (img tags) */
img.solution-card__icon {
    width: 3rem; /* Match approximately the font-size */
    height: 3rem;
    filter: brightness(0) invert(1); /* Forces SVG to white */
    object-fit: contain;
}

/* ========================================
   BADGES - ELEMENTOS DE ESTADO
   ======================================== */

.solution-card__badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.solution-card__badge--energy {
    background: linear-gradient(135deg, #ffb800 0%, #ff9500 100%);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: #000;
    font-weight: 700;
}

.solution-card:hover .solution-card__badge {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ========================================
   CONTENIDO PRINCIPAL - TIPOGRAFÍA PREMIUM
   ======================================== */

.solution-card__body {
    flex: 0 1 auto; /* Do not grow to fill space */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.solution-card__title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.solution-card:hover .solution-card__title {
    transform: translateY(-2px);
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.solution-card__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    transition: all 0.4s ease;
}

.solution-card:hover .solution-card__subtitle {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* ========================================
   CARACTERÍSTICAS - LISTA PREMIUM
   ======================================== */

.solution-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-bullet {
    color: #ffb800;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.solution-card:hover .feature-item {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.solution-card:hover .feature-bullet {
    color: #fff;
    transform: scale(1.2);
}

/* ========================================
   CTA - CALL TO ACTION (Visible en todas en hover)
   ======================================== */

.solution-card__cta {
    display: flex; /* Mostrar en todas para igualdad */
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto; /* Push to bottom */
    cursor: pointer;
    transition: all 0.4s ease;
    width: fit-content;
}

.solution-card__cta:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.solution-card__cta:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(0, 0, 0);
    letter-spacing: 0.025em;
}

.cta-arrow {
    font-size: 1.25rem;
    color: white;
    transition: transform 0.3s ease;
}

.solution-card__cta:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.solution-card__cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ========================================
   EFECTOS DE GLOW - ILUMINACIÓN PREMIUM
   ======================================== */

.solution-card__glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 255, 0.3) 0%,
        rgba(0, 51, 204, 0.2) 50%,
        rgba(0, 102, 255, 0.3) 100%
    );
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    filter: blur(8px);
}

.solution-card:hover .solution-card__glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* ========================================
   ANIMACIONES SIMPLIFICADAS - SIN EFECTO 3D
   ======================================== */

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 102, 255, 0.15);
}

.solution-card--primary:hover {
    transform: translateY(-12px);
}

/* Efecto de brillo deslizante */
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 4;
}

.solution-card:hover::after {
    left: 100%;
}

/* ========================================
   EFECTOS PREMIUM ADICIONALES
   ======================================== */

/* Efecto Ripple para clicks */
.card-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========================================
   ANIMACIONES DE ENTRADA SECUENCIAL MEJORADAS
   ======================================== */

/* Animación para el header de texto */
.services-text-header {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
}

/* Animación para el separador */
.services-divider {
    opacity: 0;
    transform: scale(0.8);
    animation: fade-in-scale 0.6s ease-out 0.8s forwards;
}

/* Animación para el showcase */
.solutions-showcase {
    opacity: 0;
    transform: translateY(40px);
    animation: fade-in-up 0.8s ease-out 1.2s forwards;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de entrada escalonada para tarjetas - MEJORADA */
/* Animación de entrada escalonada para tarjetas - DESACTIVADA */
.solution-card {
    opacity: 1; /* Visible inmediatamente */
    transform: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.solution-card.animate-in {
    opacity: 1;
    transform: none;
}

/* Delays específicos desactivados */
.solution-card:nth-child(1) { animation-delay: 0s; }
.solution-card:nth-child(2) { animation-delay: 0s; }
.solution-card:nth-child(3) { animation-delay: 0s; }
.solution-card:nth-child(4) { animation-delay: 0s; }

/* Efecto de magnetismo en hover */
.solution-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Animación de carga inicial del grid */
.premium-solutions-grid {
    animation: grid-fade-in 1.2s ease-out;
}

@keyframes grid-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE PREMIUM - ADAPTACIÓN PERFECTA
   ======================================== */

@media (max-width: 480px) {
    .solution-card__content {
        padding: 1.5rem;
    }
    
    .solution-card--primary .solution-card__content {
        padding: 2rem;
    }
    
    .solution-card__title {
        font-size: 1.75rem;
    }
    
    .solution-card--primary .solution-card__title {
        font-size: 2.25rem;
    }
    
    .solution-card__icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .solution-card--primary .solution-card__icon-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .solution-card__icon {
        font-size: 1.75rem;
    }
    
    .solution-card--primary .solution-card__icon {
        font-size: 2rem;
    }
}

.visual-label {
    font-weight: 700;
    color: var(--slate-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-description.dark {
    color: var(--slate-400);
}

.services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease-out;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background: rgba(0, 102, 255, 0.05);
}

.services-link:hover {
    color: white;
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.3);
}

.services-link-icon {
    font-size: 1.25rem;
    transition: transform 200ms ease-out;
}

.services-link:hover .services-link-icon {
    transform: translateX(0.25rem);
}

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

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        grid-template-areas:
            "card1 card2 card2 card3"
            "card4 card2 card2 card5";
    }
    
    /* Configuración Bento Grid */
    .service-card:nth-child(2) {
        grid-area: card2;
        height: 100%; /* El card central es más grande */
        background: linear-gradient(135deg, var(--slate-900) 0%, var(--surface-dark) 100%);
        border-color: var(--slate-700);
    }
    
    .service-card:nth-child(2) .service-card-title {
        color: white;
        font-size: 2rem;
    }
    
    .service-card:nth-child(2) .service-card-description {
        color: var(--slate-300);
        font-size: 1.125rem;
        line-clamp: 6;
        -webkit-line-clamp: 6;
    }
    
    .service-card:nth-child(2) .service-icon {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
        width: 5rem;
        height: 5rem;
    }
    
    .service-card:nth-child(2) .service-icon-text {
        font-size: 2.5rem;
    }
}

.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate; /* Create new stacking context */
}

.service-card * {
    position: relative;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
    transform: none;
    transition: background 400ms ease;
    z-index: 1;
}

.service-card:hover::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9) 0%, rgba(0, 78, 204, 0.8) 100%);
}

/* Removed previous hover effect as we now use full overlay */

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 184, 0, 0.5);
}

.service-card.dark {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--slate-800) 100%);
    border-color: var(--slate-700);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--slate-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 400ms ease;
    border: 1px solid var(--slate-100);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2);
}

.service-icon-text {
    color: var(--primary);
    font-size: 1.75rem;
    transition: all 300ms ease-out;
}

.service-icon-svg {
    width: 1.75rem;
    height: 1.75rem;
    filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(7500%) hue-rotate(220deg) brightness(100%) contrast(100%);
    /* Sin transición para evitar colores intermedios */
}

.service-card:hover .service-icon-text {
    color: white;
}

.service-card:hover .service-icon-svg {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.service-card-header-content {
    flex: 1;
    min-width: 0;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: white; /* Force white text on image cards */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-card-title.dark {
    color: white;
}

.service-card-description {
    color: var(--slate-200); /* Lighter text for dark backgrounds */
    line-height: 1.5;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-description.dark {
    color: var(--slate-400);
}

.service-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.service-card-arrow {
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--slate-50);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--slate-100);
}

.service-card:hover .service-card-arrow {
    background-color: var(--accent);
    color: var(--slate-900);
    border-color: var(--accent);
    transform: translateX(0.25rem) scale(1.05);
}

/* Card content wrapper for better spacing */
.service-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-main {
    flex-grow: 1;
}

/* ========================================
   SERVICES - NUEVOS ELEMENTOS MEJORADOS
   ======================================== */

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 82, 204, 0.15) 100%);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 102, 255, 0.1);
    backdrop-filter: blur(10px);
}

.services-title-accent {
    color: var(--primary);
    position: relative;
}

.services-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #0052cc 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.services-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding: 4rem 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    position: relative;
}

.services-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    
    border-radius: 2px;
}

@media (min-width: 768px) {
    .services-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.services-features.dark {
    border-color: var(--slate-800);
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    transition: all 300ms ease-out;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--slate-200);
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.3);
    transition: all 300ms ease-out;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.4);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feature-title.dark {
    color: white;
}

.feature-description {
    color: var(--slate-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-description.dark {
    color: var(--slate-400);
}

.service-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.service-feature {
    color: var(--slate-700);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.service-feature.dark {
    color: var(--slate-300);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

/* ========================================
   ABOUT SECTION - ESTILO TARJETAS
   ======================================== */

.about-section {
    padding: 3rem 0; /* Aggressive compaction */
    background-color: var(--background-alt);
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo geométrico */
.about-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

.about-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem; /* Compacted */
    max-width: 54rem;
    margin-left: auto;
    margin-right: auto;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section Upgrades */
@media (min-width: 768px) {
    .about-header {
        margin-bottom: 3rem; /* Compacted from 4rem */
    }
}

.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* Tighter gap */
    align-items: center;
}

.about-text-content {
    order: 2;
}

.about-image-container {
    order: 1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@media (min-width: 1024px) {
    .about-split {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    .about-text-content {
        order: 1;
    }
    .about-image-container {
        order: 2;
    }
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.about-description {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Feature Upgrades */
.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-feature-simple {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 300ms;
    border: 1px solid var(--slate-100);
    position: relative;
    overflow: hidden;
}

.about-feature-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Subtle texture */
    transition: opacity 300ms;
    z-index: 0;
}

.about-feature-simple:hover::before {
    opacity: 0.1;
}

.about-feature-simple * {
    position: relative;
    z-index: 1;
}

.about-feature-simple:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.about-feature-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 400ms ease;
    transform-origin: center;
}

.about-feature-simple:hover::before {
    transform: scaleX(1);
}

.about-feature-icon {
    width: 5rem;
    height: 5rem;
    background: var(--slate-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 400ms ease;
    color: var(--primary);
}

.about-feature-simple:hover .about-feature-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.25);
}

.about-feature-icon-text {
    font-size: 2.5rem;
    transition: inherit;
}

.about-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about-feature-description {
    color: var(--slate-500);
    line-height: 1.6;
    font-size: 1rem;
}

/* Dark mode support */
.about-section.dark {
    background-color: var(--background-dark);
}

.about-section.dark::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.about-title.dark,
.about-feature-simple.dark .about-feature-title {
    color: white;
}

.about-description.dark,
.about-feature-simple.dark .about-feature-description {
    color: var(--slate-400);
}

.about-feature-simple.dark {
    background: var(--surface-dark);
    border-color: var(--slate-700);
}

.about-feature-simple.dark .about-feature-icon {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   CATALOG CTA SECTION
   ======================================== */

.catalog-cta-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.catalog-cta-section.dark {
    background-color: var(--background-dark);
}

.catalog-cta-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.catalog-cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.catalog-cta-bg-1,
.catalog-cta-bg-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.catalog-cta-bg-1 {
    width: 20rem;
    height: 20rem;
    top: -10rem;
    right: -10rem;
}

.catalog-cta-bg-2 {
    width: 16rem;
    height: 16rem;
    bottom: -8rem;
    left: -8rem;
}

.catalog-cta-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
}

@media (min-width: 1024px) {
    .catalog-cta-content {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
    }
}

.catalog-cta-text {
    color: white;
}

.catalog-cta-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .catalog-cta-title {
        font-size: 3rem;
    }
}

.catalog-cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.catalog-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .catalog-cta-buttons {
        flex-direction: row;
    }
}

.catalog-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
}

.catalog-btn-primary:hover {
    background-color: var(--slate-100);
    transform: translateY(-0.125rem);
}

.catalog-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
}

.catalog-btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-0.125rem);
}

.catalog-cta-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
}

.catalog-cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-cta-image-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
    z-index: 20;
}

.catalog-cta-image-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.catalog-cta-image-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========================================
   FOOTER PRINCIPAL COMPARTIDO
   ======================================== */

.main-footer {
    background-color: white;
    border-top: 4px solid var(--accent); /* Corporate Accent */
    padding-top: 2rem; /* Compacted from 4rem */
    padding-bottom: 1.5rem;
}

.main-footer.dark {
    background-color: var(--background-dark);
    border-top-color: var(--slate-800);
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* Compacted from 3rem */
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.25rem;
}

.footer-logo-icon-text {
    font-size: 1.25rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
}

.footer-logo-text.dark {
    color: white;
}

.footer-description {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-description.dark {
    color: var(--slate-400);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--slate-100);
    color: var(--slate-600);
    border-radius: 0.5rem;
    transition: all 150ms;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-0.125rem);
}

.footer-social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-section-title {
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

.footer-section-title.dark {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--slate-500);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 150ms;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link.dark {
    color: var(--slate-400);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.footer-contact-list.dark {
    color: var(--slate-400);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item.center {
    align-items: center;
}

.footer-contact-icon {
    color: var(--primary);
    font-size: 1.125rem;
}

.footer-bottom {
    border-top: 1px solid var(--slate-100);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom.dark {
    border-top-color: var(--slate-800);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin: 0;
}

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

.footer-legal-link {
    font-size: 0.75rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 150ms;
}

.footer-legal-link:hover {
    color: var(--slate-600);
}

.footer-legal-link.dark:hover {
    color: var(--slate-200);
}

/* ========================================
   UTILIDADES GENERALES
   ======================================== */

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Responsive utilities */
@media (max-width: 767px) {
    .md\:hidden {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }
    
    .md\:flex {
        display: flex !important;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0; /* Start hidden */
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; animation-fill-mode: forwards; }

/* ========================================
   MINI SERVICE CARDS (Solutions Section)
   ======================================== */
.mini-service-card {
    position: relative;
    height: 8rem; /* Compact height */
    border-radius: 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Text at bottom */
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--slate-100);
}

.mini-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.mini-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
    transition: background 300ms;
    z-index: 1;
}

.mini-service-card:hover .mini-card-overlay {
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 78, 204, 0.95) 100%);
}

.mini-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.mini-card-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: color 300ms;
}

.mini-service-card:hover .mini-card-icon {
    color: white;
}

.mini-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   BOTÓN FLOTANTE DE WHATSAPP (HOME)
   ======================================== */

.floating-whatsapp-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.floating-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
    transition: all 300ms;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.floating-whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.floating-whatsapp-text {
    line-height: 1.3;
}

.floating-whatsapp-arrow {
    font-size: 1.125rem;
    transition: transform 300ms;
}

.floating-whatsapp-button:hover .floating-whatsapp-arrow {
    transform: translateX(0.25rem);
}

@media (max-width: 640px) {
    .floating-whatsapp-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .floating-whatsapp-button {
        justify-content: center;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}
@media (max-width: 640px) { .catalogo-whatsapp-container { bottom: 1rem; right: 1rem; left: 1rem; } .catalogo-whatsapp-button { max-width: none; padding: 1rem 1.25rem; font-size: 1rem; border-radius: 1.5rem; } }

/* ========================================
   LAYOUT FIXES FOR SOLUTION CARDS
   ======================================== */
.solution-card--primary {
    min-height: auto !important; 
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.solution-card--primary .solution-card__body {
    justify-content: center;
    padding-bottom: 2rem;
}

/* ========================================
   GLOBAL PREMIUM WHATSAPP BUTTON (COPIED FROM CATALOGO)
   ======================================== */
.catalogo-whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 9999;
    pointer-events: auto;
    transform: translateZ(0);
}

.catalogo-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    max-width: 20rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.catalogo-whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.catalogo-whatsapp-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.catalogo-whatsapp-button:hover::before {
    left: 100%;
}

.catalogo-whatsapp-icon-container {
    position: relative;
    flex-shrink: 0;
}

.catalogo-whatsapp-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.catalogo-whatsapp-notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.catalogo-whatsapp-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.catalogo-whatsapp-text {
    line-height: 1.3;
    font-weight: 600;
}

.catalogo-whatsapp-expansion {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalogo-whatsapp-expansion.expanded {
    max-height: 2rem;
    opacity: 1;
}

.catalogo-whatsapp-expansion-text {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
}

.catalogo-whatsapp-arrow {
    font-size: 1.125rem;
    transition: transform 300ms;
}

.catalogo-whatsapp-button:hover .catalogo-whatsapp-arrow {
    transform: translateX(0.25rem);
}

.catalogo-whatsapp-button:hover .catalogo-whatsapp-expansion { max-height: 2rem; opacity: 1; }
.catalogo-info-banner {
    background-color: var(--primary);
    color: white;
    
    /* CONTROL DE GROSOR (BANNER ESCRITORIO) */
    /* Ajusta el primer valor (0.5rem) para hacerlo más grueso o delgado */
    /* 0.25rem = Muy delgado | 0.5rem = Medio | 1rem = Grueso */
    padding: 0.5rem 1rem; 
    
    line-height: 1.1; 
    
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    margin-top: 5rem;
    position: relative;
    z-index: 40;
    width: 100%;
}

.catalogo-info-banner p {
    margin: 0;
}

@media (max-width: 768px) {
    .catalogo-info-banner {
        margin-top: 4rem; /* Reduced from 5rem to fix top gap */
    }
}
/* ========================================
   BRAND CAROUSEL (INFINITE SCROLL)
   ======================================== */
.brand-carousel-section {
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--slate-200);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.brand-carousel-section.dark {
    background-color: var(--surface-dark);
    border-bottom-color: var(--slate-800);
}

.brand-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.brand-carousel-title {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.brand-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Gradient masks to fade out edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-carousel-track {
    display: flex;
    align-items: center;
    gap: 4rem; /* Espacio entre logos */
    width: max-content; /* Permitir que sea tan ancho como necesite */
    animation: scrollBrands 40s linear infinite;
    padding: 0 2rem;
}

.brand-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem; /* Altura fija para uniformidad */
    width: auto;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.6);
    transition: all 300ms;
}

.brand-carousel-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.brand-carousel-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

/* Pause animation on hover for better UX */
.brand-carousel-wrapper:hover .brand-carousel-track {
    animation-play-state: paused;
}

/* ========================================
   PREMIUM STATS GRID (AUTHORITY BAR)
   ======================================== */
/* ========================================
   PREMIUM STATS GRID (AUTHORITY BAR)
   ======================================== */
.services-features {
    margin-top: 6rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Asymmetrical split: Text 40% / Card 60% */
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.95); /* More opaque for solidity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem; /* Larger radius */
    padding: 4rem 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15), /* Deeper shadow */
        0 0 0 1px rgba(226, 232, 240, 0.6) inset;
    position: relative;
    overflow: hidden;
    /* Remove previous max-width centering since parent handles grid */
    width: 100%;
}

/* Metallic/Tech Shine Effect */
.stats-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.8;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

@media (max-width: 1024px) {
    .services-features {
        grid-template-columns: 1fr; /* Stack on tablet/mobile */
        gap: 3rem;
        text-align: center; /* Center text when stacked */
    }
    
    .section-header {
        text-align: center !important; /* Force center on mobile */
        margin-bottom: 2rem !important;
    }

    .section-header p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Vertical Dividers with fade */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--slate-300), transparent);
}

.stat-value {
    font-size: 4.5rem; /* Massive Scale */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum" on, "lnum" on; /* Tabular numbers aligned */
    filter: drop-shadow(0 4px 6px rgba(0, 102, 255, 0.1));
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1.5rem;
    }
    
    .stat-item:not(:last-child)::after {
        width: 60%;
        height: 1px;
        right: auto;
        bottom: -1.5rem;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to right, transparent, var(--slate-300), transparent);
    }
}
@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 2rem)); /* Mover la mitad exacta (porque duplicamos el contenido) */
    }
}

@media (max-width: 768px) {
    .brand-carousel-track {
        gap: 2rem;
    }
    .brand-carousel-item {
        height: 2.5rem;
    }
}
/* ========================================
   BRAND WALL CAOUSEL V2 (2 ROWS - SPLIT)
   ======================================== */

.brand-carousel-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--slate-200);
    overflow: hidden;
}

.brand-carousel-title {
    font-size: 1.25rem; /* Larger title */
    color: var(--slate-500);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3.5rem;
    text-align: center;
}

.brand-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-carousel-track {
    display: flex;
    align-items: center;
    gap: 5rem; /* Balanced gap */
    width: max-content;
    padding: 1.5rem 0;
    animation: scrollBrands 50s linear infinite;
}

.brand-carousel-track.reverse {
    animation-direction: reverse;
    animation-duration: 60s; /* Different speed for dynamic feel */
}

.brand-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7rem; /* SUPER LARGE LOGOS (Was 3.5 -> 6 -> 7) */
    min-width: 160px; /* Ensure space for aspect ratio */
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.6);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-carousel-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
    z-index: 10;
}

.brand-carousel-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 220px;
}

.brand-carousel-wrapper:hover .brand-carousel-track {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2.5rem)); } /* Half of gap */
}

@media (max-width: 768px) {
    .brand-carousel-track {
        gap: 3rem;
    }
    .brand-carousel-item {
        height: 4.5rem; /* Still big on mobile */
        min-width: 100px;
    }
}
/* ========================================
   SMART ASSISTANT (WHATSAPP 2026)
   ======================================== */

.smart-assistant-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000; /* Highest Priority */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Container passes clicks through */
}

.smart-assistant-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 0.75rem; /* SYMMETRIC padding for perfect centering in collapsed state */
    border-radius: 3rem; /* Fully rounded */
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    max-width: 4rem; /* 0.75 padding + 2.5 icon + 0.75 padding = 4rem */
    min-height: 4rem; /* Square aspect ratio initially */
    position: relative;
}

/* Efecto de brillo */
.smart-assistant-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* Estado Expandido */
.smart-assistant-pill.expanded,
.smart-assistant-pill:hover {
    max-width: 17rem;
    padding-right: 1.5rem; /* Extra padding on right for text balance */
    padding-left: 0.75rem; /* Keep left padding consistent */
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.smart-assistant-pill:hover::before {
    left: 100%;
}

/* ========================================
   MOBILE APP EXPERIENCE (NATIVE FEEL)
   ======================================== */
.mobile-bottom-nav, .mobile-top-bar {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Hide Traditional Header */
    .main-header {
        display: none !important;
    }
    
    /* Mobile Top Bar (Minimalist) */
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        height: 60px; /* Explicit ergonomic height */
    }

    .mobile-logo-text {
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        font-size: 1.5rem;
        letter-spacing: -0.05em;
        color: var(--brand-deep);
    }
    
    .mobile-actions .icon-btn {
        background: none;
        border: none;
        color: var(--slate-600);
        padding: 0.5rem;
    }

    /* Adjust Body Padding for fixed bars */
    body {
        padding-top: 60px; /* Space for top bar */
        padding-bottom: 90px; /* Space for bottom bar + safe area */
    }

    /* Sticky Bottom Tab Bar */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: white; /* Clean white background */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px; /* Comfortable height */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom, 10px); /* iPhone Home Bar Safe Area */
        border-top: 1px solid rgba(0,0,0,0.03);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--slate-400);
        flex: 1;
        height: 100%;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .nav-label {
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    /* SVG Image Icon in Bottom Nav (e.g. icon_grid.svg for Catálogo) */
    .nav-icon-img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        opacity: 0.4; /* Match inactive grey of Material icons */
        filter: invert(49%) sepia(7%) saturate(500%) hue-rotate(182deg) brightness(95%) contrast(90%);
        transition: opacity 0.2s ease, filter 0.2s ease;
    }

    .nav-item.active .nav-icon-img {
        opacity: 1;
        filter: invert(27%) sepia(98%) saturate(1650%) hue-rotate(210deg) brightness(100%) contrast(98%); /* var(--primary) #0066FF */
    }

    /* Floating Center Button (Cotizar) */
    .nav-item-center-wrapper {
        position: relative;
        top: -20px; /* Float above */
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }

    .nav-item-center {
        width: 56px;
        height: 56px;
        background: var(--brand-deep); /* Navy Blue weight */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        box-shadow: 0 8px 20px rgba(11, 17, 32, 0.3);
        border: 4px solid white; /* Cutout effect */
        transition: transform 0.2s;
    }
    
    .nav-item-center:active {
        transform: scale(0.95);
    }

    .nav-label-center {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--brand-deep);
        margin-top: 4px;
    }

    /* REPOSITION WHATSAPP ASSISTANT FLOATING BUTTON */
    .smart-assistant-container {
        bottom: 90px; /* Above the bottom nav (70px + 20px buffer) */
        right: 1rem;
    }
    
    .smart-assistant-pill {
        /* EXPERT UX FIX: Generous padding for visual breathing room */
        padding: 0.75rem 2.5rem 0.75rem 1.25rem !important; 
        min-height: 3.5rem !important; /* Taller touch target */
        width: auto !important;
        max-width: none !important;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .smart-assistant-pill.expanded, 
    .smart-assistant-pill:hover {
        max-width: 95vw !important; 
    }
    
    .assistant-text-content {
        display: flex; /* Always show text on mobile if possible, or keep hidden? User said "text seems to go out", implying it IS visible but cut off */
        /* If original design hid it on mobile initially, we might want to keep it minimal, but user request implies they see it. 
           Let's assume the issue is on Desktop/Tablet or expanded mobile where it clips. 
           The user provided image shows it expanded.
           Let's keep text content visible or correctly toggled. */
    }
    
    .smart-assistant-pill.expanded .assistant-text-content {
        display: flex;
    }
    
    /* Make icon smaller proportional to new pill size */
    .assistant-icon-wrapper {
        width: 2rem !important;
        height: 2rem !important;
        flex-shrink: 0;
    }
    
    .assistant-icon {
        width: 1.2rem !important;
        height: 1.2rem !important;
    }
}

/* ========================================
   MOBILE APP EXPERIENCE (NATIVE FEEL)
   ======================================== */
.mobile-bottom-nav, .mobile-top-bar {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Hide Traditional Header */
    .main-header {
        display: none !important;
    }
    
    /* Mobile Top Bar (Minimalist) */
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        height: 60px; /* Explicit ergonomic height */
    }

    .mobile-logo-text {
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        font-size: 1.5rem;
        letter-spacing: -0.05em;
        color: var(--brand-deep);
    }
    
    .mobile-actions .icon-btn {
        background: none;
        border: none;
        color: var(--slate-600);
        padding: 0.5rem;
    }

    /* Adjust Body Padding for fixed bars */
    body {
        padding-top: 60px; /* Space for top bar */
        padding-bottom: 90px; /* Space for bottom bar + safe area */
    }

    /* Sticky Bottom Tab Bar */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: white; /* Clean white background */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px; /* Comfortable height */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom, 10px); /* iPhone Home Bar Safe Area */
        border-top: 1px solid rgba(0,0,0,0.03);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--slate-400);
        flex: 1;
        height: 100%;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .nav-label {
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    /* Floating Center Button (Cotizar) */
    .nav-item-center-wrapper {
        position: relative;
        top: -20px; /* Float above */
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }

    .nav-item-center {
        width: 56px;
        height: 56px;
        background: var(--brand-deep); /* Navy Blue weight */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        box-shadow: 0 8px 20px rgba(11, 17, 32, 0.3);
        border: 4px solid white; /* Cutout effect */
        transition: transform 0.2s;
    }
    
    .nav-item-center:active {
        transform: scale(0.95);
    }

    .nav-label-center {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--brand-deep);
        margin-top: 4px;
    }

    /* REPOSITION WHATSAPP ASSISTANT - CORRECTO */
    .smart-assistant-container {
        bottom: 90px; /* Above the bottom nav (70px + 20px buffer) */
        right: 1rem;
    }
    
    /* En móvil: mantener tamaño base (4rem), NO colapsar a 3rem */
    .smart-assistant-pill {
        padding: 0.75rem !important; 
        min-height: 4rem !important;
        max-width: 4rem !important;  /* Igual al base - círculo visible */
        width: 4rem !important;
    }
    
    /* Texto oculto en estado colapsado (hover lo muestra en desktop) */
    /* En móvil, collapsed state solo muestra ícono */
    .assistant-text-content {
        display: none;
    }
    
    /* Icono al tamaño correcto */
    .assistant-icon-wrapper {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .assistant-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Icon Wrapper circle - OPTIMIZED SIZE */
.assistant-icon-wrapper {
    position: relative;
    width: 2.5rem; /* Reduced from 2.75 - better proportion */
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-icon {
    width: 1.5rem; /* Proportional */
    height: 1.5rem;
    fill: #25d366;
}

.status-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background: #10B981;
    border: 2px solid #25d366; /* Match green background */
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.assistant-text-content {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 300ms ease;
    transition-delay: 50ms;
    justify-content: center;
    gap: 1px; /* Minimal gap between lines */
}

/* Mostrar texto al expandir */
.smart-assistant-pill.expanded .assistant-text-content,
.smart-assistant-pill:hover .assistant-text-content {
    opacity: 1;
    transform: translateX(0);
}

.assistant-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1; /* Tight line height for optical centering */
    color: white;
}

.assistant-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1; /* Tight line height */
    margin-top: 3px; /* Controlled spacing */
}

.assistant-cta-expand {
    display: none;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 640px) {
    .smart-assistant-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Hero Video Background */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-overlay, .hero-tech-overlay {
    z-index: 1; /* Ensure overlays stay on top of video */
}

/* REMOVE BLUE FILTER OVERRIDE */
.hero-gradient {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%) !important; /* Neutral dark fade instead of blue */
    mix-blend-mode: normal !important;
}

.hero-overlay {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* ensure text is readable without the heavy overlay */
.hero-title, .hero-description, .hero-badge {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ========================================
   VISUAL REFINEMENT 2026 (ARCHITECTURAL CLEANUP)
   ======================================== */

/* 
   Z-INDEX LAYERING SYSTEM (STRICT)
   ---------------------------------
   Level 1: Backgrounds (-1 to 5)
   Level 2: Content (10 to 50)
   Level 3: Sticky Navigation (100)
   Level 4: Floating Actions/Modals (200+)
*/

/* LEVEL 1: BACKGROUND */
.hero-bg-video {
    z-index: -1;
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0) 100%) !important;
    backdrop-filter: none;
}

.hero-tech-overlay {
    z-index: 1;
    background-color: transparent;
}

/* LEVEL 2: MAIN CONTENT */
.hero-content {
    position: relative;
    z-index: 10;
}

/* 1. Logo Hierarchy (30% Bigger) */
.header-container .logo-icon {
    width: 6.8rem; /* Increased 30% from 5.2rem */
    height: 6.8rem;
}

/* 2. Color Symbiosis (Clean White - No Effects) */
/* Conflicting rule removed to allow main gradient to work */
/* .hero-title .hero-title-gradient { ... } removed */

@keyframes sapphireSheen {
    /* Removed */
}

/* ensure text is readable */
.hero-title {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Basic readability shadow only */
}

.hero-description, .hero-badge {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ensure text is readable without the heavy overlay */
.hero-title, .hero-description, .hero-badge {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 3. Button Corrections (Solid Hovers, No Transparency) */
/* Strong specificity to override generic button styles */
.hero-buttons .hero-btn-primary {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-buttons .hero-btn-primary:hover {
    background: #ff8c00; /* Vibrant Orange Solid */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    border-color: #ff8c00;
}

.hero-buttons .hero-btn-secondary {
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-buttons .hero-btn-secondary:hover {
    background: #004ecc; /* Deep Navy Solid */
    color: white;
    border-color: #004ecc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 78, 204, 0.3);
    opacity: 1; /* FORCE VISIBILITY */
}

/* 4. Animations */
@keyframes fadeInUpElite {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUpElite 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 5. Mobile Adjustments (Fixed & Layered Correctly) */
@media (max-width: 768px) {
    /* Sticky Bottom Nav - Level 3 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 100; /* High priority */
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* WhatsApp Button - Level 4 (Above Nav) */
    .smart-assistant-container {
        position: fixed;
        bottom: 100px; /* Above nav height (assume ~70px) */
        right: 1.5rem;
        z-index: 101; /* Above Nav */
    }
}

/* ========================================
   ELITE FOOTER (MK 2026)
   ======================================== */

.main-footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--slate-200);
    padding: 5rem 0 2rem;
    position: relative;
    color: var(--slate-600);
    overflow: hidden;
}

/* Footer Mesh Gradient Background */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 85, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

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

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate-900);
}

@media (max-width: 640px) {
    .footer-logo {
        justify-content: center;
    }
}

.footer-logo-icon-text {
    font-size: 2rem;
    color: var(--corporate-blue);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-description {
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 300px;
}

@media (max-width: 640px) {
    .footer-description {
        margin: 0 auto;
    }
}

.footer-section-title {
    color: var(--slate-900);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--corporate-blue);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-social {
    display: flex;
    gap: 1rem;
}

@media (max-width: 640px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: all 0.3s ease;
    border: 1px solid var(--slate-200);
}


.footer-social-link:hover {
    background: var(--corporate-blue);
    border-color: var(--corporate-blue);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   MOBILE STICKY BOTTOM NAV
   Clean White Corporate Design (Ref: Image)
   ======================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.98); /* Bright White */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 30px; /* Match image definition */
    border-top-right-radius: 30px;
    z-index: 1000;
    display: none; /* Hidden by default on Desktop */
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.06); /* Soft, clean shadow */
    border-top: 1px solid rgba(241, 245, 249, 1); /* Slate-100 */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex; /* Visible on Mobile */
    }
    
    body {
        padding-bottom: 100px;
    }

    #whatsappButton,
    .whatsapp-container-float {
        bottom: 95px !important; 
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94A3B8; /* Slate 400 - Inactive Gray */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 6px; /* Slightly more gap */
    transition: all 0.3s ease;
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.nav-item .material-symbols-outlined {
    font-size: 28px;
    font-weight: 400; /* Regular weight */
    transition: all 0.3s ease;
    font-variation-settings: 'FILL' 0; /* Outline by default */
}

/* Active State */
.nav-item.active {
    color: #0055FF; /* Corporate Blue */
}

.nav-item.active .material-symbols-outlined {
    transform: translateY(-2px);
    font-weight: 400;
    text-shadow: 0 4px 12px rgba(0, 85, 255, 0.2);
}

/* Hover State */
.nav-item:hover {
    color: #475569; /* Darker gray on hover */
}

.nav-item.active:hover {
    color: #0055FF;
}

/* CTA Item - Integrated Style (No floating bubble) */
.nav-item-cta {
    background-color: #0066FF;
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    border-radius: 16px; /* Slightly more rounded than standard 12px */
    transform: translateY(-8px); /* Pop out effect */
}

.nav-item-cta .material-symbols-outlined {
    font-size: 28px;
    color: inherit;
}

.nav-item-cta:hover {
    transform: none;
    box-shadow: none;
}

/* Pulse Effect for Touch */
.nav-item:active {
    transform: scale(0.95);
}

/* Custom SVG Icon Support */
.nav-icon-custom {
    width: 28px;
    height: 28px;
    background-color: currentColor; /* Inherits color from parent (.nav-item) */
    -webkit-mask-image: url('/images/StashPeopleGroup.svg');
    mask-image: url('/images/StashPeopleGroup.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: all 0.3s ease;
}

/* ========================================
   MODERN HERO REDESIGN (2026)
   Full-width layout with red CTAs
   ======================================== */

.hero-content-modern {
    position: relative;
    z-index: 20;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 2rem 4rem 3rem; /* Left align close to edge (3rem to match visual weight of logo) */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end; /* Push to bottom */
    flex: 1; /* Take up available space to allow push to bottom */
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: white; /* Strategic: Aligned with primary brand */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Blue glow */
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title-modern {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    max-width: 800px;
    text-transform: uppercase;
    text-shadow: none;
}

.hero-subtitle-modern {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary-industrial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #0056D2;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary-industrial:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.btn-ghost-industrial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: transparent;
    color: #FFFFFF;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-industrial:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

.hide-mobile {
    display: inline;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary-red {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #0066FF 0%, #0044BB 100%);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary-red:hover {
    background: linear-gradient(135deg, #3399FF 0%, #0044CC 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(0, 85, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-icon-circle {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.arrow-mask {
    width: 18px;
    height: 18px;
    background-color: #000000; /* Black Arrow */
    -webkit-mask: url('/images/flecha_direccion.svg') no-repeat center;
    mask: url('/images/flecha_direccion.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transform: rotate(-135deg); /* Point Top-Right */
}

.btn-primary-red:hover .btn-icon-circle {
    transform: translateX(4px);
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #FFFFFF;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.2);
}




/* ========================================
   STATISTICS SHOWCASE SECTION
   ======================================== */

.stats-showcase {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 85, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-showcase-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr; /* Mobile First: 1 Column */
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .stats-showcase-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Columns */
    }
}

@media (min-width: 1024px) {
    .stats-showcase-container {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 Columns */
        gap: 3rem;
    }
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: white; /* Strategic: Clean White on Dark Background */
    text-shadow: 0 4px 20px rgba(0, 85, 255, 0.3); /* Subtle blue depth */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3.5rem;
    }
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* 
   NAVIGATION TYPOGRAPHY UPDATE (2026) 
   Ref: User Request - Inter, 14px, #4A5568, Medium
*/
.desktop-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4A5568 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background-color: #FFFFFF;
    color: #000000 !important;
    font-weight: 600;
}

