/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f1f5f9;
}

:root {
    --primary-orange: #F0841D;
    --primary-orange-hover: #d6731a;
    --primary-orange-light: rgba(240, 132, 29, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --border-light: #475569;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    
    /* Responsive breakpoints */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --nav-height: 70px;
    
    /* Variables para transiciones suaves en desktop */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Extended Responsive System */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    --breakpoint-3xl: 1600px;
    
    /* Fluid Typography Scale */
    --fluid-min-width: 320;
    --fluid-max-width: 1400;
    --fluid-min-size: 16;
    --fluid-max-size: 18;
    --fluid-min-ratio: 1.2;
    --fluid-max-ratio: 1.333;
    
    /* Container Max Widths */
    --container-xs: 100%;
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
    
    /* Grid Gaps */
    --grid-gap-xs: 0.5rem;
    --grid-gap-sm: 1rem;
    --grid-gap-md: 1.5rem;
    --grid-gap-lg: 2rem;
    --grid-gap-xl: 3rem;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
}

/* Responsive container adjustments */
@media (max-width: 1400px) {
    :root {
        --container-max-width: 1100px;
        --container-padding: 1.5rem;
    }
}

/* ===== RESPONSIVE UTILITY SYSTEM ===== */

/* Fluid Typography */
.fluid-text-xs { font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem); }
.fluid-text-sm { font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1rem); }
.fluid-text-base { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem); }
.fluid-text-lg { font-size: clamp(1.125rem, 1rem + 0.625vw, 1.25rem); }
.fluid-text-xl { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem); }
.fluid-text-2xl { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.fluid-text-3xl { font-size: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem); }
.fluid-text-4xl { font-size: clamp(2.25rem, 1.9rem + 1.75vw, 3rem); }
.fluid-text-5xl { font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem); }
.fluid-text-6xl { font-size: clamp(3.75rem, 3rem + 3.75vw, 5rem); }

/* Responsive Spacing */
.space-responsive-xs { padding: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem); }
.space-responsive-sm { padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem); }
.space-responsive-md { padding: clamp(1rem, 0.8rem + 1vw, 2rem); }
.space-responsive-lg { padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem); }
.space-responsive-xl { padding: clamp(2rem, 1.6rem + 2vw, 4rem); }

/* Responsive Margins */
.margin-responsive-xs { margin: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem); }
.margin-responsive-sm { margin: clamp(0.5rem, 0.4rem + 0.5vw, 1rem); }
.margin-responsive-md { margin: clamp(1rem, 0.8rem + 1vw, 2rem); }
.margin-responsive-lg { margin: clamp(1.5rem, 1.2rem + 1.5vw, 3rem); }
.margin-responsive-xl { margin: clamp(2rem, 1.6rem + 2vw, 4rem); }

/* Responsive Container */
.container-responsive {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Responsive Grid */
.grid-responsive {
    display: grid;
    gap: clamp(var(--grid-gap-sm), var(--grid-gap-sm) + 1vw, var(--grid-gap-lg));
}

/* Responsive Flexbox */
.flex-responsive {
    display: flex;
    gap: clamp(var(--grid-gap-sm), var(--grid-gap-sm) + 1vw, var(--grid-gap-lg));
}

/* Responsive Images */
.img-responsive {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Responsive Buttons */
.btn-responsive {
    padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem) clamp(1rem, 0.8rem + 1vw, 2rem);
    font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    min-height: clamp(2.5rem, 2.25rem + 1.25vw, 3.5rem);
}

/* Responsive Cards */
.card-responsive {
    padding: clamp(1rem, 0.8rem + 1vw, 2rem);
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

/* Responsive Navigation */
.nav-responsive {
    height: clamp(55px, 50px + 2.5vw, 70px);
    padding: 0 clamp(1rem, 0.8rem + 1vw, 2rem);
}

/* Responsive Sections */
.section-responsive {
    padding: clamp(2rem, 1.6rem + 2vw, 4rem) 0;
    min-height: clamp(50vh, 40vh + 10vw, 80vh);
}

/* Responsive Hero */
.hero-responsive {
    padding: clamp(3rem, 2.4rem + 3vw, 6rem) 0;
    min-height: clamp(60vh, 50vh + 10vw, 90vh);
}

/* Responsive Forms */
.form-responsive {
    gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.form-responsive input,
.form-responsive textarea {
    padding: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
}

/* Responsive Solutions Grid */
.solutions-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 250px + 15vw, 400px), 1fr));
    gap: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
}

/* Responsive Contact Grid */
.contact-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 200px + 25vw, 400px), 1fr));
    gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

/* ===== ADVANCED RESPONSIVE BREAKPOINTS ===== */

/* Ultra Large Screens (1600px+) */
@media (min-width: 1600px) {
    :root {
        --container-max-width: 1400px;
        --container-padding: 3rem;
        --nav-height: 80px;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 3rem + 2.5vw, 5rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
        max-width: 800px;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 2.2rem + 1.5vw, 3.5rem);
    }
    
    .solution-card {
        padding: 2.5rem;
        min-height: 500px;
    }
}

/* Large Desktop (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    :root {
        --container-max-width: 1300px;
        --container-padding: 2.5rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    }
    
    .hero-description {
        font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
        max-width: 700px;
    }
    
    .section-title {
        font-size: clamp(2.25rem, 2rem + 1.25vw, 3rem);
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    :root {
        --container-max-width: 1150px;
        --container-padding: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2.75rem, 2.25rem + 2.5vw, 3.5rem);
    }
    
    .hero-description {
        font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
        max-width: 650px;
    }
    
    .section-title {
        font-size: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
    }
}

/* Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    :root {
        --container-max-width: 1000px;
        --container-padding: 1.75rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 2rem + 2.5vw, 3.25rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 0.875rem + 0.625vw, 1.25rem);
        max-width: 600px;
    }
    
    .section-title {
        font-size: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    }
}

/* Tablet Large (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --container-max-width: 100%;
        --container-padding: 1.5rem;
        --nav-height: 65px;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(1rem, 0.875rem + 0.625vw, 1.125rem);
        max-width: 550px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 1.375rem + 1.875vw, 2.25rem);
        text-align: center;
    }
    
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 1rem;
    }
}

/* Tablet Small (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    :root {
        --container-padding: 1.25rem;
        --nav-height: 60px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 1.5rem + 2.5vw, 2.5rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 0.8rem + 0.75vw, 1.125rem);
        max-width: 500px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.625rem, 1.25rem + 1.875vw, 2rem);
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Large (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    :root {
        --container-padding: 1rem;
        --nav-height: 55px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.25rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 0.75rem + 0.75vw, 1rem);
        max-width: 450px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 1.125rem + 1.875vw, 1.875rem);
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Mobile Small (320px - 359px) */
@media (min-width: 320px) and (max-width: 359px) {
    :root {
        --container-padding: 0.75rem;
        --nav-height: 50px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 0.7rem + 0.75vw, 0.95rem);
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.375rem, 1rem + 1.875vw, 1.75rem);
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Ultra Small Mobile (≤319px) */
@media (max-width: 319px) {
    :root {
        --container-padding: 0.5rem;
        --nav-height: 45px;
    }
    
    .hero-title {
        font-size: clamp(1.25rem, 0.75rem + 2.5vw, 1.75rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 0.65rem + 0.75vw, 0.9rem);
        max-width: 350px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.25rem, 0.875rem + 1.875vw, 1.625rem);
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 240px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ===== EXTREME SCREEN SIZES ===== */

/* 4K and Ultra-HD Screens (2560px+) */
@media (min-width: 2560px) {
    :root {
        --container-max-width: 1800px;
        --container-padding: 4rem;
        --nav-height: 90px;
    }
    
    .hero-title {
        font-size: clamp(4rem, 3.5rem + 2.5vw, 6rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
        max-width: 1000px;
    }
    
    .section-title {
        font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    }
    
    .solution-card {
        padding: 3rem;
        min-height: 600px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1.5rem 3rem;
        font-size: 1.25rem;
        min-height: 4rem;
        border-radius: 1rem;
    }
}

/* Ultra-Wide Screens (3440px+) */
@media (min-width: 3440px) {
    :root {
        --container-max-width: 2000px;
        --container-padding: 5rem;
    }
    
    .hero-title {
        font-size: clamp(4.5rem, 4rem + 2.5vw, 7rem);
    }
    
    .hero-description {
        font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
        max-width: 1200px;
    }
    
    .section-title {
        font-size: clamp(3.5rem, 3rem + 2.5vw, 5rem);
    }
}

/* 8K Screens (7680px+) */
@media (min-width: 7680px) {
    :root {
        --container-max-width: 3000px;
        --container-padding: 6rem;
        --nav-height: 100px;
    }
    
    .hero-title {
        font-size: clamp(6rem, 5rem + 5vw, 10rem);
    }
    
    .hero-description {
        font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
        max-width: 1800px;
    }
    
    .section-title {
        font-size: clamp(5rem, 4rem + 5vw, 8rem);
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 2rem 4rem;
        font-size: 1.75rem;
        min-height: 5rem;
        border-radius: 1.5rem;
    }
}

/* Micro Mobile (≤240px) - Very old or specialized devices */
@media (max-width: 240px) {
    :root {
        --container-padding: 0.25rem;
        --nav-height: 40px;
    }
    
    .hero-title {
        font-size: clamp(1rem, 0.5rem + 2.5vw, 1.5rem);
        text-align: center;
    }
    
    .hero-description {
        font-size: clamp(0.75rem, 0.6rem + 0.75vw, 0.85rem);
        max-width: 300px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: clamp(1.125rem, 0.75rem + 1.875vw, 1.5rem);
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 200px;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        min-height: 2rem;
    }
    
    .hero-image-container {
        min-height: 120px;
        padding: 0 0.125rem;
    }
    
    .hero-image {
        max-height: 15vh;
    }
}

/* ===== PRINT AND ACCESSIBILITY ===== */

/* Print styles */
@media print {
    .intro-sequence,
    .bottom-nav,
    .mobile-nav-indicators,
    .mobile-scroll-hint,
    .floating-nav,
    .algorithm-background {
        display: none !important;
    }
    
    .main-content {
        overflow: visible !important;
        height: auto !important;
    }
    
    .h-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        color: #000;
    }
    
    .hero-description {
        font-size: 1rem;
        color: #333;
    }
    
    .section-title {
        font-size: 1.5rem;
        color: #000;
    }
    
    .solution-card {
        border: 1px solid #ccc;
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #FF6600;
        --primary-blue: #0066CC;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #FFFFFF;
        --bg-secondary: #F0F0F0;
        --border-light: #666666;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .solution-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .intro-sequence {
        animation: none !important;
    }
    
    .hero-image {
        animation: none !important;
    }
}

/* ===== ORIENTATION RESPONSIVE DESIGN ===== */

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --nav-height: 50px;
        --container-padding: 1rem;
    }
    
    .hero-responsive {
        padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem) 0;
        min-height: clamp(40vh, 35vh + 5vw, 60vh);
    }
    
    .section-responsive {
        padding: clamp(1rem, 0.8rem + 1vw, 2rem) 0;
        min-height: clamp(30vh, 25vh + 5vw, 50vh);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 0.7rem + 0.75vw, 1rem);
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 2.5rem;
    }
    
    .hero-image-container {
        min-height: 120px;
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        max-height: 25vh;
    }
}

/* Portrait Mobile Optimizations */
@media (min-height: 600px) and (orientation: portrait) {
    .hero-responsive {
        padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0;
        min-height: clamp(70vh, 60vh + 10vw, 85vh);
    }
    
    .section-responsive {
        padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0;
        min-height: clamp(60vh, 50vh + 10vw, 75vh);
    }
    
    .hero-title {
        font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: clamp(1rem, 0.875rem + 0.625vw, 1.25rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .hero-image-container {
        min-height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        max-height: 40vh;
    }
}

/* ===== ASPECT RATIO RESPONSIVE DESIGN ===== */

/* Square-ish screens (aspect ratio close to 1:1) */
@media (min-aspect-ratio: 0.8) and (max-aspect-ratio: 1.2) {
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Very wide screens (ultra-wide monitors) */
@media (min-aspect-ratio: 2.5) {
    .container-responsive {
        max-width: 1600px;
    }
    
    .home-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 3rem + 2.5vw, 5rem);
    }
    
    .hero-description {
        font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
        max-width: 900px;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 2.2rem + 1.5vw, 3.5rem);
    }
}

/* Very tall screens (portrait monitors) */
@media (max-aspect-ratio: 0.6) {
    .hero-responsive {
        min-height: 70vh;
        padding: clamp(2rem, 1.6rem + 2vw, 3rem) 0;
    }
    
    .section-responsive {
        min-height: 60vh;
        padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem) 0;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 0.75rem + 0.75vw, 1.125rem);
    }
}

/* ===== RESPONSIVE COMPONENT SYSTEM ===== */

/* Responsive Solution Cards */
.solution-card-responsive {
    padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    border-radius: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    min-height: clamp(300px, 250px + 25vw, 500px);
    transition: all var(--transition-smooth);
}

.solution-card-responsive h3 {
    font-size: clamp(1.25rem, 1rem + 1.25vw, 2rem);
    margin-bottom: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
}

.solution-card-responsive .solution-subtitle {
    font-size: clamp(0.95rem, 0.8rem + 0.75vw, 1.25rem);
    margin-bottom: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.solution-card-responsive .solution-description p {
    font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
    line-height: clamp(1.4, 1.3 + 0.1vw, 1.6);
    margin-bottom: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
}

/* Responsive Contact Form */
.contact-form-responsive {
    padding: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    border-radius: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.contact-form-responsive .form-grid {
    gap: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.contact-form-responsive .form-group {
    gap: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

.contact-form-responsive label {
    font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
    margin-bottom: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
}

.contact-form-responsive input,
.contact-form-responsive textarea {
    padding: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
    border-radius: clamp(0.375rem, 0.3rem + 0.375vw, 0.75rem);
    min-height: clamp(2.5rem, 2.25rem + 1.25vw, 3.5rem);
}

.contact-form-responsive .submit-btn {
    padding: clamp(0.875rem, 0.7rem + 0.875vw, 1.75rem);
    font-size: clamp(0.95rem, 0.8rem + 0.75vw, 1.25rem);
    min-height: clamp(2.75rem, 2.5rem + 1.25vw, 3.75rem);
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

/* Responsive Navigation */
.bottom-nav-responsive {
    height: clamp(50px, 45px + 2.5vw, 70px);
    padding: 0 clamp(1rem, 0.8rem + 1vw, 2rem);
    gap: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

.bottom-nav-responsive .nav-brand img {
    height: clamp(35px, 30px + 2.5vw, 50px);
}

.bottom-nav-responsive .nav-menu {
    gap: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
}

.bottom-nav-responsive .nav-item {
    font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
    padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

.bottom-nav-responsive .nav-cta {
    padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem) clamp(1rem, 0.8rem + 1vw, 2rem);
    font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
    min-height: clamp(2.25rem, 2rem + 1.25vw, 3.25rem);
}

/* Responsive Grid Layouts */
.solutions-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 250px + 15vw, 400px), 1fr));
    gap: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    padding: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.contact-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 200px + 25vw, 400px), 1fr));
    gap: clamp(1rem, 0.8rem + 1vw, 2rem);
    padding: clamp(1rem, 0.8rem + 1vw, 2rem);
}

/* Responsive Spacing System */
.section-spacing-responsive {
    padding: clamp(2rem, 1.6rem + 2vw, 4rem) 0;
    margin: clamp(1rem, 0.8rem + 1vw, 2rem) 0;
}

.content-spacing-responsive {
    padding: clamp(1rem, 0.8rem + 1vw, 2rem);
    margin: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

/* Responsive Typography Scale */
.text-scale-responsive-xs { font-size: clamp(0.75rem, 0.65rem + 0.5vw, 1rem); }
.text-scale-responsive-sm { font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem); }
.text-scale-responsive-base { font-size: clamp(1rem, 0.875rem + 0.625vw, 1.25rem); }
.text-scale-responsive-lg { font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem); }
.text-scale-responsive-xl { font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem); }
.text-scale-responsive-2xl { font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem); }
.text-scale-responsive-3xl { font-size: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem); }
.text-scale-responsive-4xl { font-size: clamp(2.25rem, 1.875rem + 1.875vw, 3.25rem); }
.text-scale-responsive-5xl { font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem); }

/* Responsive Button System */
.btn-scale-responsive-xs {
    padding: clamp(0.375rem, 0.3rem + 0.375vw, 0.75rem) clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    font-size: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
    min-height: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
}

.btn-scale-responsive-sm {
    padding: clamp(0.5rem, 0.4rem + 0.5vw, 1rem) clamp(1rem, 0.8rem + 1vw, 2rem);
    font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
    min-height: clamp(2.25rem, 2rem + 1.25vw, 3rem);
}

.btn-scale-responsive-md {
    padding: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem) clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
    font-size: clamp(1rem, 0.875rem + 0.625vw, 1.25rem);
    min-height: clamp(2.5rem, 2.25rem + 1.25vw, 3.25rem);
}

.btn-scale-responsive-lg {
    padding: clamp(1rem, 0.8rem + 1vw, 2rem) clamp(1.5rem, 1.25rem + 1.25vw, 3rem);
    font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    min-height: clamp(2.75rem, 2.5rem + 1.25vw, 3.5rem);
}

.btn-scale-responsive-xl {
    padding: clamp(1.25rem, 1rem + 1.25vw, 2.5rem) clamp(2rem, 1.5rem + 2.5vw, 4rem);
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem);
    min-height: clamp(3rem, 2.75rem + 1.25vw, 3.75rem);
}

@media (max-width: 1200px) {
    :root {
        --container-max-width: 1000px;
        --container-padding: 1.25rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-max-width: 900px;
        --container-padding: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-max-width: 100%;
        --container-padding: 1rem;
        --nav-height: 60px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --nav-height: 55px;
    }
}

/* Intro Sequence (from Web2) */
.intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(15, 23, 42, 0.95) 30%,
        rgba(30, 41, 59, 0.95) 70%, 
        rgba(0, 0, 0, 0.95) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 1s ease;
}

.intro-sequence.hidden {
    opacity: 0;
    pointer-events: none;
}

.ai-sunrise-container {
    position: relative;
    width: 500px;
    height: 400px;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .ai-sunrise-container {
        width: 450px;
        height: 360px;
    }
}

@media (max-width: 1024px) {
    .ai-sunrise-container {
        width: 400px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .ai-sunrise-container {
        width: 300px;
        height: 250px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .ai-sunrise-container {
        width: 250px;
        height: 200px;
        margin-bottom: 1.5rem;
    }
}

.ai-sunrise {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: aiSunriseSequence 2s ease-out 0.3s forwards;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: neuralNetworkAppear 1.5s ease-out 0.7s forwards;
}

.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-orange);
    opacity: 0;
    animation: nodeActivation 2s ease-in-out infinite;
}

.neural-node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0.1s; }
.neural-node:nth-child(2) { top: 25%; right: 25%; animation-delay: 0.3s; }
.neural-node:nth-child(3) { bottom: 35%; left: 25%; animation-delay: 0.5s; }
.neural-node:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 0.7s; }
.neural-node:nth-child(5) { top: 30%; left: 50%; transform: translateX(-50%); animation-delay: 0.9s; }
.neural-node:nth-child(6) { top: 45%; left: 15%; animation-delay: 1.1s; }
.neural-node:nth-child(7) { bottom: 20%; left: 65%; animation-delay: 1.3s; }

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-orange), transparent, var(--primary-orange));
    opacity: 0;
    animation: connectionPulse 2s ease-in-out infinite;
}

.neural-connection:nth-child(8) { top: 54px; left: 58px; width: 260px; transform: rotate(15deg); animation-delay: 0.2s; }
.neural-connection:nth-child(9) { top: 104px; right: 88px; width: 200px; transform: rotate(-45deg); animation-delay: 0.4s; }
.neural-connection:nth-child(10) { bottom: 124px; left: 88px; width: 180px; transform: rotate(35deg); animation-delay: 0.6s; }
.neural-connection:nth-child(11) { bottom: 64px; right: 68px; width: 150px; transform: rotate(-60deg); animation-delay: 0.8s; }
.neural-connection:nth-child(12) { top: 180px; left: 60px; width: 140px; transform: rotate(25deg); animation-delay: 1.0s; }
.neural-connection:nth-child(13) { bottom: 80px; left: 220px; width: 160px; transform: rotate(-25deg); animation-delay: 1.2s; }

.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    opacity: 0;
    animation: aiCoreAwaken 1.5s ease-out 0.8s forwards;
}

.core-ring {
    position: absolute;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    opacity: 0.3;
}

.core-ring:nth-child(1) { width: 120px; height: 120px; animation: coreRingPulse 3s ease-in-out infinite; }
.core-ring:nth-child(2) { width: 80px; height: 80px; top: 20px; left: 20px; animation: coreRingPulse 3s ease-in-out infinite 0.5s; }
.core-ring:nth-child(3) { width: 40px; height: 40px; top: 40px; left: 40px; animation: coreRingPulse 3s ease-in-out infinite 1s; }

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-orange);
    animation: coreHeartbeat 2s ease-in-out infinite;
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: dataStreamsFlow 1.5s ease-out 1.3s forwards;
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-orange), transparent);
    animation: streamFlow 1.5s ease-in-out infinite;
}

.data-stream:nth-child(1) { top: 10%; left: 30%; animation-delay: 0s; }
.data-stream:nth-child(2) { top: 20%; right: 35%; animation-delay: 0.3s; }
.data-stream:nth-child(3) { bottom: 25%; left: 40%; animation-delay: 0.6s; }
.data-stream:nth-child(4) { bottom: 15%; right: 30%; animation-delay: 0.9s; }

.intro-title {
    opacity: 0;
    animation: logoReveal 1s ease-out 2.2s forwards;
    z-index: 1001;
    position: relative;
}

.intro-logo {
    width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
    transform: scale(1);
    animation: logoGrow 1s ease-out 2.2s forwards;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .intro-logo {
        width: 400px;
    }
}

@media (max-width: 1024px) {
    .intro-logo {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .intro-logo {
        width: 280px;
        max-width: 80vw;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        width: 240px;
        max-width: 75vw;
    }
}

@keyframes logoGrow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}



/* Keyframes */
@keyframes aiSunriseSequence {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes neuralNetworkAppear {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes nodeActivation {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--primary-orange); }
    50% { transform: scale(1.2); box-shadow: 0 0 25px var(--primary-orange); }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes aiCoreAwaken {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes coreRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes coreHeartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px var(--primary-orange); }
    50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 40px var(--primary-orange); }
}

@keyframes dataStreamsFlow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes streamFlow {
    0% { transform: translateY(-50px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}

@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.5) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}



/* Dynamic Homepage Animations */
@keyframes imageFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-12px);
    }
    50% { 
        transform: translateY(-8px);
    }
    75% {
        transform: translateY(-18px);
    }
}

@keyframes imageBreath {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 10px 30px rgba(240, 132, 29, 0.2));
    }
    50% { 
        transform: scale(1.03);
        filter: drop-shadow(0 18px 40px rgba(240, 132, 29, 0.3));
    }
}

@keyframes backgroundShift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1);
    }
    25% {
        transform: translateX(5px) translateY(-3px) scale(1.01);
    }
    50% { 
        transform: translateX(-3px) translateY(5px) scale(1);
    }
    75% {
        transform: translateX(2px) translateY(-2px) scale(1.005);
    }
}

/* Animación específica para móvil */
@keyframes mobileBackgroundShift {
    0%, 100% { 
        opacity: 0.15;
        transform: scale(1.2) rotate(0deg);
    }
    33% { 
        opacity: 0.25;
        transform: scale(1.3) rotate(3deg);
    }
    66% { 
        opacity: 0.2;
        transform: scale(1.25) rotate(-2deg);
    }
}

@keyframes codeFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    20% {
        transform: translateY(-12px) translateX(5px);
        opacity: 0.95;
    }
    40% { 
        transform: translateY(-18px) translateX(-3px);
        opacity: 0.9;
    }
    60% {
        transform: translateY(-8px) translateX(7px);
        opacity: 0.95;
    }
    80% {
        transform: translateY(-15px) translateX(-2px);
        opacity: 1;
    }
}

@keyframes enhancedFloatMove {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-25px) translateX(15px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(0.95);
        opacity: 0.95;
    }
    75% {
        transform: translateY(20px) translateX(22px) scale(1.15);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Optimizaciones específicas para desktop */
@media (min-width: 769px) {
    /* Mejorar rendimiento de scroll horizontal */
    .horizontal-wrapper {
        transform-style: preserve-3d;
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Optimizar transiciones en desktop */
    .h-section {
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
    
    /* Mejorar rendimiento de elementos animados */
    .floating-elements *,
    .algorithm-background *,
    .code-lines * {
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
    
    /* Optimizar navegación para desktop */
    .bottom-nav * {
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
}

.main-content.show {
    opacity: 1;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    z-index: 1000;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, backdrop-filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px;
    width: auto;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .nav-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 28px;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: gap;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.75rem;
    }
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    /* Mejorar rendimiento en desktop */
    will-change: color, transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

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

.nav-cta {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-cta {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

.nav-cta:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
}

/* Horizontal Container */
.horizontal-wrapper {
    display: flex;
    height: 100vh;
    width: 300vw;
    /* Transition will be applied dynamically in JavaScript for better control */
    padding-bottom: var(--nav-height);
    /* Mejorar rendimiento en desktop */
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Ensure sections maintain their position during transitions */
    contain: layout style paint;
    /* Prevent layout shifts during transitions */
    position: relative;
}

.h-section {
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    /* Mejorar rendimiento en desktop */
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Ensure smooth scrolling within sections */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Prevent scroll position from affecting transitions */
    scroll-snap-type: none;
    /* Prevent layout shifts during transitions */
    flex-shrink: 0;
    flex-grow: 0;
}

/* Desktop: Ensure contact section is fully scrollable */
.h-section[data-section="2"] {
    /* Make sure contact section can scroll if content overflows */
    overflow-y: auto !important;
    /* Ensure proper height calculation */
    height: calc(100vh - var(--nav-height)) !important;
    /* Better scrolling performance */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) transparent;
}

/* Desktop: Webkit scrollbar styling for contact section */
.h-section[data-section="2"]::-webkit-scrollbar {
    width: 8px;
}

.h-section[data-section="2"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.h-section[data-section="2"]::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.h-section[data-section="2"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-hover);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, padding;
}

/* Dynamic Home Section */
.algorithm-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: backgroundShift 12s ease-in-out infinite;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: opacity, transform;
}

@media (max-width: 1024px) {
    .algorithm-background {
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    .algorithm-background {
        opacity: 0.6; /* Más visible en móvil para llenar el espacio */
    }
}

.code-lines {
    position: absolute;
    top: 10%;
    right: 5%;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-orange);
    font-weight: 500;
    animation: codeFloat 10s ease-in-out infinite;
    transform-origin: center;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
}

@media (max-width: 1200px) {
    .code-lines {
        font-size: 0.95rem;
        right: 3%;
    }
}

@media (max-width: 1024px) {
    .code-lines {
        font-size: 0.9rem;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .code-lines {
        font-size: 0.9rem; /* Más grande y visible */
        right: 2%;
        top: 5%;
        opacity: 0.8; /* Más visible */
    }
}

@media (max-width: 480px) {
    .code-lines {
        font-size: 0.7rem;
        right: 0.5%;
        top: 5%;
    }
}

.code-lines::before {
    content: 'function processData() {\n  const result = analyze(input);\n  return optimize(result);\n}\n\nclass AIEngine {\n  constructor() {\n    this.neural = new Network();\n  }\n}';
    position: absolute;
    top: -150px;
    left: -200px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-orange);
    opacity: 0.6;
    white-space: pre-line;
    pointer-events: none;
}

/* Home Page - Líneas flotantes específicas */
[data-section="0"] .code-lines::after {
    content: 'function processData() {\n  const results = [];\n  for (let i = 0; i < dataset.length; i++) {\n    results.push(transform(dataset[i]));\n  }\n  return results;\n}\n\nconst enterprise = new AIEngine();\nenterprise.deploy();';
    position: absolute;
    bottom: -180px;
    right: -150px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-orange);
    opacity: 0.5;
    white-space: pre-line;
    pointer-events: none;
}

/* About Page - Líneas flotantes específicas */
[data-section="1"] .code-lines::after {
    content: 'class MLModel {\n  constructor(config) {\n    this.layers = config.layers;\n    this.weights = this.initialize();\n  }\n  \n  forward(input) {\n    return this.layers.reduce((data, layer) => {\n      return layer.process(data);\n    }, input);\n  }\n}';
    position: absolute;
    bottom: -180px;
    right: -150px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-orange);
    opacity: 0.5;
    white-space: pre-line;
    pointer-events: none;
}

/* Contact Page - Líneas flotantes específicas */
[data-section="2"] .code-lines::after {
    content: 'async function sendEmail(formData) {\n  const response = await emailjs.send(\n    "service_id",\n    "template_id",\n    {\n      from_name: formData.name,\n      message: formData.message,\n      reply_to: formData.email\n    }\n  );\n  return response.status === 200;\n}';
    position: absolute;
    bottom: -180px;
    right: -150px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-orange);
    opacity: 0.5;
    white-space: pre-line;
    pointer-events: none;
}

.code-line {
    opacity: 0;
    animation: codeAppear 0.5s ease-out forwards;
    animation-delay: var(--delay);
    margin-bottom: 0.6rem;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(240, 132, 29, 0.3);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .code-line {
        margin-bottom: 0.4rem;
        opacity: 0.9; /* Más visible en móvil */
        text-shadow: 0 0 8px rgba(240, 132, 29, 0.5); /* Sombra más visible */
        /* Mejorar suavidad de las transiciones en móvil */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity, transform;
    }
}

@media (max-width: 480px) {
    .code-line {
        margin-bottom: 0.3rem;
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .floating-elements {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .floating-elements {
        opacity: 0.8; /* Más visible en móvil para llenar el espacio */
    }
    
    /* Hacer elementos flotantes más grandes y visibles en móvil */
    .floating-circle,
    .floating-square,
    .floating-triangle,
    .floating-hexagon,
    .floating-diamond,
    .floating-pentagon,
    .floating-octagon,
    .floating-rhombus,
    .floating-star {
        transform: scale(1.8); /* Mucho más grandes en móvil */
        opacity: 0.95; /* Más visibles */
        /* Mejorar suavidad de las transiciones en móvil */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }
    
    /* Añadir elementos de fondo adicionales para móvil */
    .algorithm-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 30%, rgba(240, 132, 29, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 40%);
        pointer-events: none;
        animation: mobileBackgroundShift 8s ease-in-out infinite;
        /* Mejorar suavidad de las transiciones */
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        /* Hacer la animación más prominente en móvil */
        transform: scale(1.2);
    }
}

.floating-circle,
.floating-square,
.floating-triangle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    opacity: 0.8;
    animation: enhancedFloatMove 12s ease-in-out infinite;
    animation-delay: var(--delay);
    transform-style: preserve-3d;
    pointer-events: none;
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.floating-nav {
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-smooth);
    z-index: 10;
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.floating-nav:hover {
    transform: scale(1.4);
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(240, 132, 29, 0.8));
    animation-play-state: paused;
}

.floating-nav::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.floating-nav:hover::after {
    opacity: 1;
}

/* Hide floating navigation on mobile devices */
.mobile-device .floating-nav {
    display: none !important;
}



.floating-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-orange);
    box-shadow: 0 0 15px rgba(240, 132, 29, 0.6);
}

.floating-square {
    width: 12px;
    height: 12px;
    background: rgba(240, 132, 29, 0.8);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(240, 132, 29, 0.4);
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid rgba(240, 132, 29, 0.7);
    filter: drop-shadow(0 0 8px rgba(240, 132, 29, 0.3));
}

/* New unique geometric shapes for each page */
.floating-hexagon {
    width: 12px;
    height: 12px;
    background: rgba(99, 102, 241, 0.7);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.floating-diamond {
    width: 10px;
    height: 10px;
    background: rgba(34, 197, 94, 0.7);
    transform: rotate(45deg);
    border-radius: 2px;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
}

.floating-pentagon {
    width: 12px;
    height: 12px;
    background: rgba(168, 85, 247, 0.7);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.floating-star {
    width: 12px;
    height: 12px;
    background: rgba(245, 158, 11, 0.7);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.floating-octagon {
    width: 12px;
    height: 12px;
    background: rgba(236, 72, 153, 0.7);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.floating-rhombus {
    width: 10px;
    height: 10px;
    background: rgba(14, 165, 233, 0.7);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .data-flow {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .data-flow {
        opacity: 0.7; /* Más visible en móvil */
    }
}

.flow-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    opacity: 0.4;
    animation: dataFlow 3s ease-in-out infinite;
}

.flow-horizontal {
    height: 1px;
}

.flow-vertical {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--primary-orange), transparent);
}

.home-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1200px) {
    .home-content {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .home-content {
        gap: 2rem;
        padding: 1rem 0; /* Mejor espaciado en móvil */
    }
    
    /* Mejorar espaciado del título en móvil */
    .hero-title {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Mejorar espaciado de la descripción en móvil */
    .hero-description {
        margin-bottom: 2rem;
        padding: 0 1rem;
        line-height: 1.6;
    }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1400px) {
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

.highlight-text {
    color: var(--primary-orange);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem; /* Más espacio entre botones */
        margin-top: 1rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 300px; /* Botones más anchos en móvil */
        text-align: center;
        padding: 12px 24px; /* Botones más altos en móvil */
        min-height: 52px;
        /* Mejorar suavidad de las transiciones en móvil */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, background-color, box-shadow;
    }
}

/* Dynamic Hero Image Container */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 500px;
    animation: imageFloat 8s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform;
    backface-visibility: hidden;
}

@media (max-width: 1200px) {
    .hero-image-container {
        max-width: 600px;
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .hero-image-container {
        max-width: 500px;
        height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        max-width: 500px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        max-width: 400px;
        height: 320px;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-slow);
    animation: imageBreath 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(240, 132, 29, 0.2));
    /* Mejorar rendimiento en desktop */
    will-change: transform, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.hero-image:hover {
    transform: scale(1.02) rotateY(2deg);
    filter: drop-shadow(0 15px 40px rgba(240, 132, 29, 0.3));
}

.image-overlay {
    display: none;
}











@keyframes codeAppear {
    0% { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes outputAppear {
    0% { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 0.75rem;
    }
}

.section-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-brain,
.icon-services,
.icon-contact {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(240, 132, 29, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .icon-brain,
    .icon-services,
    .icon-contact {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .icon-brain,
    .icon-services,
    .icon-contact {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .icon-brain,
    .icon-services,
    .icon-contact {
        width: 45px;
        height: 45px;
    }
}

.icon-brain::before {
    content: '';
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.icon-brain::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: iconSpin 2s linear infinite;
}

.icon-services::before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.icon-services::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    top: 60%;
    animation: iconPulse 2s ease-in-out infinite;
}

.icon-contact::before {
    content: '';
    width: 22px;
    height: 16px;
    border: 3px solid white;
    border-radius: 4px;
    position: relative;
}

.icon-contact::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 1px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 -4px 0 white, 0 4px 0 white;
}

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

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

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes codeAppear {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes floatMove {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(0px) translateX(10px); }
    75% { transform: translateY(10px) translateX(5px); }
}

@keyframes dataFlow {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.2; transform: scale(1); }
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.4rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .section-subtitle {
        max-width: 550px;
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .section-subtitle {
        max-width: 500px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .section-subtitle {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* Buttons */
.btn-primary {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.btn-primary:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    /* Mejorar rendimiento en desktop */
    will-change: transform, border-color, color;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .btn-secondary {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .btn-secondary {
        padding: 8px 18px;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .btn-secondary {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* Solutions Section - Enhanced Style */
.solutions-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1200px) {
    .solutions-grid.enhanced {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .solutions-grid.enhanced {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .solutions-grid.enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.solution-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    /* Mejorar rendimiento en desktop */
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .solution-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .solution-card {
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    .solution-card {
        padding: 0.8rem;
    }
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-card.featured {
    border: 2px solid var(--primary-orange);
    background: linear-gradient(135deg, 
        rgba(240, 132, 29, 0.15) 0%, 
        rgba(240, 132, 29, 0.12) 50%,
        rgba(240, 132, 29, 0.15) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(240, 132, 29, 0.3);
}

.solution-card.featured::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.solution-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, color;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .solution-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .solution-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .solution-icon {
        font-size: 1.6rem;
    }
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .solution-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .solution-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .solution-card h3 {
        font-size: 1rem;
    }
}

.solution-card.featured h3,
.solution-card.featured p,
.solution-card.featured .solution-subtitle {
    color: var(--text-primary) !important;
    text-shadow: none;
}

.solution-card.featured .benefit span {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.solution-card.featured .solution-highlight {
    background: rgba(30, 41, 59, 0.3);
    color: var(--text-primary) !important;
}

/* Professional subtle hover effects */
.enhanced-card {
    transition: all 0.3s ease;
}

.enhanced-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Glassmorphism Cards */
.glass-solution-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.glass-solution-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(240, 132, 29, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featured-glass {
    background: rgba(240, 132, 29, 0.12);
    border: 2px solid rgba(240, 132, 29, 0.25);
    position: relative;
}

.featured-glass::before {
    background: linear-gradient(135deg, 
        rgba(240, 132, 29, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(240, 132, 29, 0.15) 100%);
    opacity: 0.6;
}

.featured-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: linear-gradient(135deg, rgba(240, 132, 29, 0.9), rgba(255, 107, 53, 0.9));
    backdrop-filter: blur(15px);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.glass-content {
    position: relative;
    z-index: 3;
}

.glass-solution-card .solution-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(240, 132, 29, 0.3));
}

.glass-solution-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.glass-solution-card .solution-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(240, 132, 29, 0.9);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(240, 132, 29, 0.1);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(240, 132, 29, 0.2);
}

.glass-solution-card .solution-description {
    margin-bottom: 1.2rem;
}

.glass-solution-card .solution-description p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.glass-benefit {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem 0.6rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-benefit::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.6s ease;
}

.glass-benefit:hover::before {
    left: 100%;
}

.glass-benefit:hover {
    transform: translateY(-3px);
    background: rgba(240, 132, 29, 0.15);
    border-color: rgba(240, 132, 29, 0.3);
    box-shadow: 0 8px 20px rgba(240, 132, 29, 0.15);
}

.glass-benefit .benefit-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: block;
}

.glass-benefit span {
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.glass-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

.glass-highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(240, 132, 29, 0.4),
        rgba(99, 102, 241, 0.4),
        rgba(34, 197, 94, 0.4),
        rgba(240, 132, 29, 0.4));
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.solution-subtitle {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solution-description {
    margin-bottom: 0.8rem;
}

.solution-description p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.solution-benefits {
    margin-bottom: 0.8rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.benefit span {
    color: var(--text-primary);
    font-weight: 500;
}

.solution-highlight {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary-orange);
}

.solution-highlight strong {
    color: var(--primary-orange);
}

.cta-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}



/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    transition: var(--transition-smooth);
    /* Asegurar que el layout no se estire demasiado */
    max-width: 1200px;
    margin: 0 auto;
    /* Mejorar rendimiento en desktop */
    will-change: transform, gap;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1200px) {
    .contact-layout {
        gap: 2.5rem;
        max-width: 1000px;
    }
    
    .contact-item {
        min-height: 180px;
        max-height: 230px;
        padding: 1.5rem; /* Mantener padding consistente */
    }
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        min-height: 160px;
        max-height: 200px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-layout {
        gap: 1.5rem;
        max-width: 100%; /* En móvil usar todo el ancho disponible */
    }
    
    /* Solo para móvil: mantener tamaño mínimo sin afectar scroll */
    .contact-item {
        min-height: 120px;
        max-height: none; /* En móvil permitir altura flexible */
        padding: 1rem;
    }
    
    /* Ocultar botón "Get Consultation" en móvil */
    .nav-cta {
        display: none;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, box-shadow, background-color;
    /* Dimensiones fijas para mantener forma consistente */
    min-height: 200px;
    max-height: 250px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .contact-item {
        padding: 1.5rem; /* Mantener padding consistente en desktop */
    }
}

@media (max-width: 768px) {
    .contact-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 0.75rem;
        min-height: 110px;
    }
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem; /* Espaciado consistente */
    transition: all 0.3s ease;
    /* Asegurar que el título no cambie de tamaño */
    line-height: 1.2;
    min-height: 1.4rem;
}

@media (max-width: 1024px) {
    .contact-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-item h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-item h4 {
        font-size: 0.9rem;
    }
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    /* Asegurar que el párrafo mantenga tamaño consistente */
    min-height: 2.7rem;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .contact-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .contact-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-item p {
        font-size: 0.75rem;
    }
}

.email-link {
    display: inline-block;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: color, border-bottom-color;
    /* Asegurar tamaño consistente */
    min-height: 2.5rem;
    line-height: 1.2;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .email-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .email-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .email-link {
        font-size: 0.85rem;
    }
}

.email-link:hover {
    border-bottom-color: var(--primary-orange);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, box-shadow;
    /* Asegurar tamaño consistente */
    min-height: 3rem;
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 1024px) {
    .linkedin-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .linkedin-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .linkedin-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

.linkedin-link:hover {
    background: #005885;
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .linkedin-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .linkedin-icon svg {
        width: 16px;
        height: 16px;
    }
}

.contact-form-wrapper {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .contact-form-wrapper {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 0.75rem;
    }
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .contact-form h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .contact-form h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-form h3 {
        font-size: 1rem;
    }
}

.form-grid,
.form-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid-compact {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}



.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    background: rgba(51, 65, 85, 0.8);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    /* Mejorar rendimiento en desktop */
    will-change: border-color, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-form input,
    .contact-form textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.contact-form input.full-width,
.contact-form textarea.full-width {
    grid-column: 1 / -1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: var(--transition-smooth);
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, color;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .submit-btn {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Center hero actions on tablet */
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Device Adaptive Styles */
.mobile-device .horizontal-wrapper {
    flex-direction: column;
    height: auto;
    width: 100vw;
    transform: none !important; /* Allow natural scroll on mobile */
    /* Ensure sections stack vertically */
    display: flex;
    flex-direction: column;
}

.mobile-device .main-content {
    overflow-y: auto;
    height: 100vh;
    /* Simple mobile scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Ensure scroll works everywhere */
    pointer-events: auto;
}

/* Mobile: Adjust container for better mobile layout */
.mobile-device .container {
    padding: 1rem;
    max-width: 100%;
}

.mobile-device .section-header {
    margin-bottom: 2rem;
}

.mobile-device .solutions-grid {
    margin-bottom: 2rem;
}

.mobile-device .contact-layout {
    margin-bottom: 2rem;
}

/* Mobile: Better spacing for contact form */
.mobile-device .contact-form-wrapper {
    margin-bottom: 0.5rem; /* Further reduced space before bottom menu */
}

.mobile-device .contact-form {
    padding-bottom: 0; /* No bottom padding to get very close to Send Message button */
}

/* Mobile: Make form more compact with symmetric spacing */
.mobile-device .contact-form h3 {
    margin-bottom: 0.5rem; /* Spacing from title to form */
}

.mobile-device .form-grid-compact {
    gap: 0.25rem; /* Gap between form fields */
}

.mobile-device .form-grid-compact input,
.mobile-device .form-grid-compact textarea {
    padding: 0.4rem; /* Padding inside inputs */
    margin-bottom: 0.15rem; /* Margin between fields */
}

.mobile-device .submit-btn {
    margin-top: 0.5rem; /* Same spacing as title (0.5rem) - SYMMETRIC */
}

/* Mobile: Form spacing cleaned up */

/* Mobile: Stack sections vertically instead of horizontally */
.mobile-device .horizontal-wrapper {
    flex-direction: column;
    width: 100vw !important; /* Override the 300vw from desktop */
    height: auto;
    /* Simple mobile optimization */
    transition: none;
}

.mobile-device .h-section {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    position: relative;
    overflow: visible;
    /* Simple mobile layout */
    flex-shrink: 0;
    /* Ensure sections are scrollable */
    pointer-events: auto;
}

/* Mobile: Ensure contact section has proper positioning for scroll layer */
.mobile-device .h-section[data-section="2"] {
    position: relative;
    z-index: 1;
}

/* Mobile: Simple approach - let everything work normally */

/* Mobile: Ensure contact section elements don't block scroll */
.mobile-device .contact-layout,
.mobile-device .contact-info,
.mobile-device .contact-item,
.mobile-device .contact-form-wrapper,
.mobile-device .contact-form {
    position: relative;
    z-index: 3; /* Above the scroll layers */
}

/* Mobile: Simple button styling */

/* Mobile: Simple form styling */

/* Mobile: Simple section optimization */

/* Mobile: Ensure proper spacing between sections */
.mobile-device .section-header {
    margin-bottom: 2rem;
}

.mobile-device .solutions-grid {
    margin-bottom: 2rem;
}

.mobile-device .contact-layout {
    margin-bottom: 2rem;
}

/* Mobile: Ensure all containers allow scrolling */
.mobile-device .container,
.mobile-device .home-content,
.mobile-device .solutions-grid,
.mobile-device .contact-layout {
    /* Ensure these containers don't interfere with scroll */
    touch-action: pan-y;
    -webkit-touch-action: pan-y;
    pointer-events: auto;
}

/* Mobile: Let all interactive elements work normally */

/* Mobile: Add bottom padding to prevent overlap with menu */
.mobile-device .main-content {
    padding-bottom: 60px; /* Reduced space for bottom navigation */
}

.mobile-device .horizontal-wrapper {
    padding-bottom: 60px; /* Reduced space at the bottom */
}

/* Mobile: Ensure bottom navigation is always accessible */
.mobile-device .bottom-nav {
    z-index: 3000 !important; /* Highest z-index to stay on top */
    position: fixed !important; /* Always fixed at bottom */
}

/* Mobile: Navigation button colors */
.mobile-device .nav-item {
    color: #f1f5f9 !important; /* White by default - force override */
    transition: color 0.3s ease;
}

.mobile-device .nav-item[data-section="2"] {
    color: #F0841D !important; /* Contact button always orange */
}

.mobile-device .nav-item:not([data-section="2"]) {
    color: #f1f5f9 !important; /* All other buttons always white */
}

/* Mobile: Ensure bottom navigation is always accessible */

/* Mobile: Force scroll to work in contact section */
.mobile-device .h-section[data-section="2"] {
    /* Ensure scroll works everywhere in this section */
    touch-action: pan-y !important;
    -webkit-touch-action: pan-y !important;
    /* Make sure the entire section is scrollable */
    overflow: visible !important;
}

/* Mobile: Simple touch optimization */
.mobile-device * {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: Adjust hero image size and position */
.mobile-device .hero-image {
    width: 100%; /* Full width on mobile for better visibility */
    height: auto;
    max-height: 40vh; /* Increased max height for better visibility */
    margin-bottom: 1rem; /* Add some space below the image */
    margin-top: 0; /* Reset top margin */
    object-fit: contain; /* Ensure image is fully visible */
    object-position: center; /* Center the image */
}

/* Mobile: Responsive image sizing based on screen height */
@media (max-height: 600px) {
    .mobile-device .hero-image {
        max-height: 30vh; /* Smaller for very short screens */
    }
}

@media (max-height: 500px) {
    .mobile-device .hero-image {
        max-height: 25vh; /* Even smaller for extremely short screens */
    }
}

@media (max-height: 400px) {
    .mobile-device .hero-image {
        max-height: 20vh; /* Minimal height for very small screens */
    }
}

/* Mobile: Landscape orientation optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-device .hero-image {
        max-height: 35vh; /* Slightly larger in landscape for better visibility */
    }
    
    .mobile-device .hero-image-container {
        min-height: 200px;
        padding: 0 1rem;
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    .mobile-device .hero-image {
        max-height: 30vh; /* Optimized for very short landscape screens */
    }
    
    .mobile-device .hero-image-container {
        min-height: 150px;
        padding: 0 0.5rem;
    }
}

/* Mobile: Responsive image sizing based on screen width */
@media (max-width: 480px) {
    .mobile-device .hero-image {
        max-height: 35vh; /* Optimized for small mobile screens */
    }
    
    .mobile-device .hero-image-container {
        padding: 0 0.5rem;
        min-height: 200px;
    }
}

@media (max-width: 360px) {
    .mobile-device .hero-image {
        max-height: 30vh; /* Optimized for very small mobile screens */
    }
    
    .mobile-device .hero-image-container {
        padding: 0 0.25rem;
        min-height: 180px;
    }
}

@media (max-width: 320px) {
    .mobile-device .hero-image {
        max-height: 25vh; /* Optimized for extremely small mobile screens */
    }
    
    .mobile-device .hero-image-container {
        padding: 0 0.125rem;
        min-height: 160px;
    }
}

/* Mobile: Ensure image container is properly sized */
.mobile-device .hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Mobile: Ensure image is properly contained */
.mobile-device .hero-image {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Mobile: Increase text size for better readability */
.mobile-device p,
.mobile-device .section-subtitle,
.mobile-device .solution-subtitle,
.mobile-device .solution-description p,
.mobile-device .solution-benefits span,
.mobile-device .solution-highlight,
.mobile-device .contact-item p,
.mobile-device .contact-item h4,
.mobile-device .form-grid-compact label {
    font-size: 1.1rem !important; /* Larger text for better mobile readability */
    line-height: 1.6; /* Better line spacing for larger text */
}

.mobile-device .solution-description p {
    font-size: 1.15rem !important; /* Slightly larger for solution descriptions */
    margin-bottom: 1rem; /* Better spacing between paragraphs */
}

.mobile-device .solution-benefits .benefit {
    font-size: 1.1rem !important; /* Larger text for benefit items */
    margin-bottom: 0.5rem; /* Better spacing between benefits */
}

.mobile-device .solution-highlight {
    font-size: 1.1rem !important; /* Larger text for highlights */
    line-height: 1.5; /* Tighter line height for highlights */
}

/* Mobile: Show concise descriptions for better mobile experience */
.mobile-device .solution-description .desktop-description {
    display: none; /* Hide long descriptions on mobile */
}

.mobile-device .solution-description .mobile-description {
    display: block; /* Show concise descriptions on mobile */
}

/* Desktop: Show full descriptions */
.desktop-description {
    display: block;
}

.mobile-description {
    display: none; /* Hidden by default on desktop */
}

/* Mobile: Simple body optimization */

.mobile-device input,
.mobile-device textarea,
.mobile-device button {
    /* Allow text selection in form elements */
    -webkit-user-select: text;
    user-select: text;
}

/* Mobile: Only disable background decorative elements */
.mobile-device .algorithm-background,
.mobile-device .floating-elements,
.mobile-device .data-flow,
.mobile-device .code-lines,
.mobile-device .floating-circle,
.mobile-device .floating-square,
.mobile-device .floating-triangle,
.mobile-device .floating-hexagon,
.mobile-device .floating-diamond,
.mobile-device .floating-pentagon,
.mobile-device .floating-star,
.mobile-device .floating-octagon,
.mobile-device .floating-rhombus {
    pointer-events: none;
}

/* Mobile: Clean scroll configuration */
.mobile-device .main-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Mobile: Simple body scroll */
.mobile-device body {
    overflow: auto;
}

.mobile-device .h-section {
    width: 100vw;
    height: auto;
    min-height: auto;
    position: relative;
    overflow: visible;
    display: block;
    flex-shrink: 0;
    pointer-events: auto;
}

/* Mobile: Home section specific */
.mobile-device .h-section[data-section="0"] {
    padding-top: 2rem;
    padding-bottom: 0.25rem; /* Significantly reduced bottom padding to bring About section much closer */
}

/* Mobile: Reduce spacing between sections for tighter layout */
.mobile-device .h-section {
    margin-bottom: 0; /* Remove any gaps between sections */
}

/* Mobile: About section starts closer to home */
.mobile-device .h-section[data-section="1"] {
    padding-top: 0.5rem; /* Minimal top padding to start very close to home section */
}

/* Mobile: Add floating code background between image and title */
.mobile-device .floating-code-bridge {
    position: absolute;
    top: -2rem; /* Position it to bridge the gap */
    left: 0;
    right: 0;
    height: 3rem;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mobile-device .floating-code-bridge .code-line {
    position: absolute;
    color: rgba(240, 132, 29, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: floatCode 8s ease-in-out infinite;
    opacity: 0.6;
}

.mobile-device .floating-code-bridge .code-line:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.mobile-device .floating-code-bridge .code-line:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.mobile-device .floating-code-bridge .code-line:nth-child(3) {
    top: 50%;
    left: 15%;
    animation-delay: 2s;
}

.mobile-device .floating-code-bridge .code-line:nth-child(4) {
    top: 70%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes floatCode {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-5px) translateX(3px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(3px) translateX(-2px);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-2px) translateX(4px);
        opacity: 0.7;
    }
}

/* Mobile menu styles removed */



/* Mobile Navigation Indicators */
.mobile-nav-indicators {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.mobile-device .mobile-nav-indicators {
    display: none; /* Hide mobile navigation indicators on mobile */
}

.nav-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(240, 132, 29, 0.3);
    border: 2px solid rgba(240, 132, 29, 0.5);
    transition: var(--transition-smooth);
    cursor: pointer;
    /* Mejorar rendimiento en desktop */
    will-change: transform, background-color, border-color, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.nav-indicator.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 12px rgba(240, 132, 29, 0.6);
    transform: scale(1.2);
}

.nav-indicator:hover {
    background: rgba(240, 132, 29, 0.7);
    transform: scale(1.1);
}

/* Mobile Scroll Hint */
.mobile-scroll-hint {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.mobile-device .mobile-scroll-hint {
    display: none; /* Ocultar el indicador "Scroll to explore" en móvil */
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    animation: scrollArrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}

/* Hide scroll hint after user starts scrolling */
.mobile-device.has-scrolled .mobile-scroll-hint {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Hide scroll hint when at bottom of page */
.mobile-device.at-bottom .mobile-scroll-hint {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    transform: translateY(20px) !important;
}

/* Additional bottom detection for better reliability */
.mobile-device.at-bottom .mobile-scroll-hint,
.mobile-device.at-bottom .scroll-arrow,
.mobile-device.at-contact-section .mobile-scroll-hint,
.mobile-device.at-contact-section .scroll-arrow {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid,
    .form-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bottom-nav {
        padding: 0 1rem;
    }
    
    /* Hide floating elements on mobile for better performance */
    .floating-elements {
        display: none;
    }
    
    /* Simplify animations on mobile */
    .algorithm-background {
        opacity: 0.3;
    }
    
    .code-lines {
        font-size: 1.2rem; /* Más grandes en móvil */
        opacity: 0.9; /* Más visibles */
    }
    
    /* Reduce motion for better mobile performance */
    .code-line {
        animation: none;
        opacity: 0.95; /* Más visibles en móvil */
        text-shadow: 0 0 15px rgba(240, 132, 29, 0.8); /* Sombra más prominente */
        margin-bottom: 0.8rem; /* Más espacio entre líneas */
    }
    
    .data-flow {
        opacity: 0.8; /* Más visible en móvil */
        transform: scale(1.3); /* Más grande en móvil */
    }
    
    /* Optimize intro sequence for mobile */
    .ai-sunrise-container {
        width: 380px; /* Más grande en móvil */
        height: 320px; /* Más alto en móvil */
    }
    
    .neural-node {
        animation-duration: 3s;
        transform: scale(1.6); /* Mucho más grandes en móvil */
        box-shadow: 0 0 30px var(--primary-orange); /* Sombra más prominente */
        /* Mejorar suavidad de las transiciones en móvil */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, box-shadow;
    }
    
    /* Hacer conexiones neurales más visibles en móvil */
    .neural-connection {
        opacity: 0.9; /* Más visible */
        box-shadow: 0 0 25px var(--primary-orange); /* Sombra más prominente */
        /* Mejorar suavidad de las transiciones en móvil */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity, box-shadow;
    }
    
    /* Optimize intro logo for mobile */
    .intro-logo {
        width: 350px; /* Más grande en móvil */
        max-width: 85vw; /* Más ancho en móvil */
    }
    
    .intro-title {
        padding: 0 1rem;
    }
    
    @keyframes logoGrow {
        0% { transform: scale(1); }
        100% { transform: scale(1.05); }
    }
    
    /* Better touch targets */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        font-size: 1rem;
    }
    
    .nav-cta {
        min-height: 44px;
        padding: 0 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Fix navigation spacing on mobile */
    .bottom-nav {
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Fix Send Message button position on mobile */
    .contact-form-wrapper {
        padding-bottom: 100px; /* Space for bottom navigation */
    }
    
    .submit-btn {
        margin-bottom: 20px; /* Extra space above bottom nav */
    }
    
    /* Center and stack hero actions on mobile */
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .intro-logo {
        width: 240px;
        max-width: 75vw;
    }
    
    @keyframes logoGrow {
        0% { transform: scale(1); }
        100% { transform: scale(1.02); }
    }
    
    .ai-sunrise-container {
        width: 250px;
        height: 200px;
    }
    
    /* Optimize hero image for very small screens */
    .hero-image-container {
        padding: 0 0.5rem;
        min-height: 200px;
    }
    
    .hero-image {
        max-height: 30vh;
    }
}

/* Ultra small screens optimization */
@media (max-width: 360px) {
    .hero-image-container {
        padding: 0 0.25rem;
        min-height: 180px;
    }
    
    .hero-image {
        max-height: 25vh;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Extremely small screens optimization */
@media (max-width: 320px) {
    .hero-image-container {
        padding: 0 0.125rem;
        min-height: 160px;
    }
    
    .hero-image {
        max-height: 20vh;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        max-width: 220px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}