/* Index page styles extracted from index.html */

/* Loader Premium */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.6s var(--ease-out-expo),
                       visibility 0.6s var(--ease-out-expo);
        }
        .page-loader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(37, 99, 235, 0.15);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            animation: spin 0.8s var(--ease-in-out-circ) infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* CSS crítico above-the-fold - Premium Design System */
        :root {
            /* Colores Premium - Azul Royal + Cian Vibrante */
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #3b82f6;
            --accent: #00d4ff;
            --accent-hover: #0099cc;
            --accent-dark: #0077aa;
            --dark: #0F1419;
            --dark-secondary: #1a1f25;
            --gray-800: #1f2937;
            --gray-600: #4b5563;
            --gray-400: #9ca3af;
            --gray-200: #e5e7eb;
            --gray-100: #f3f4f6;
            --light: #F8FAFC;
            --white: #ffffff;
            --wa: #25D366;

            /* Tipografía */
            --font-display: 'Montserrat', sans-serif;
            --font-body: 'DM Sans', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Dimensiones */
            --navbar-height: 80px;
            --hero-min-height: 80vh;
            --hero-min-height-mobile: 70vh;
            --hero-min-height-small: 65vh;

            /* Espaciado */
            --section-padding: 80px;
            --section-padding-mobile: 60px;
            --section-padding-small: 50px;
            --hero-padding-bottom: 60px;
            --hero-padding-bottom-mobile: 40px;
            --hero-padding-bottom-small: 30px;

            /* Bordes y sombras */
            --card-border-radius: 20px;
            --portfolio-card-radius: 16px;
            --btn-border-radius: 12px;

            /* Animaciones */
            --transition-speed: 0.25s;
            --transition-speed-slow: 0.4s;
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        /* Fallback font metrics para reducir CLS */
        @font-face {
            font-family: 'DM Sans Fallback';
            src: local('Arial');
            size-adjust: 100%;
            ascent-override: 92%;
            descent-override: 24%;
            line-gap-override: 0%;
        }

        body {
            font-family: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
            color: var(--dark);
            margin: 0;
            padding: 0;
            padding-top: 84px;
            line-height: 1.65;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .fa-3x {
            font-size: 3em;
            line-height: 1;
        }

        /* Navbar crítico Premium */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1030;
            background: rgba(15, 20, 25, 0.85) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            transition: background var(--transition-speed) var(--ease-out-expo);
        }

        .navbar-brand img {
            height: 52px;
            width: auto;
            transition: transform var(--transition-speed) var(--ease-out-expo);
        }

        .navbar-brand:hover img {
            transform: scale(1.05);
        }

        .navbar-brand {
            margin-right: 2rem;
        }

        .navbar-nav .nav-link {
            padding-left: 1.2rem !important;
            padding-right: 1.2rem !important;
            font-family: var(--font-display);
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: rgba(255, 255, 255, 0.9) !important;
            transition: all var(--transition-speed) var(--ease-out-expo);
            position: relative;
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 80%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            transition: transform var(--transition-speed) var(--ease-out-expo);
        }

        .navbar-nav .nav-link:hover {
            transform: translateY(-1px);
            color: var(--accent) !important;
        }

        .navbar-nav .nav-link:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

        .navbar-nav .nav-link.active {
            color: var(--accent) !important;
        }

        /* Hero section crítico */
        .hero-section {
            min-height: var(--hero-min-height);
            height: var(--hero-min-height); /* Altura fija para evitar CLS */
            display: flex;
            align-items: center;
            position: relative;
            color: white;
            background: linear-gradient(135deg, #0F1419 0%, #0d1b2a 60%, #0a1f3d 100%);
            padding: var(--section-padding) 0 var(--hero-padding-bottom);
            text-align: center;
            overflow: hidden;
            contain: layout style paint; /* Aislamiento completo para reducir reflows */
            will-change: transform; /* Optimizar para GPU */
        }

        .hero-section::after {
            content: '';
            position: absolute;
            top: 10%;
            left: -10%;
            width: 200px;
            height: 200px;
            background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
            border-radius: 50%;
            z-index: 1;
            animation: float 6s ease-in-out infinite;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            bottom: 15%;
            right: -5%;
            width: 150px;
            height: 150px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            z-index: 1;
            animation: float 8s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }

        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
            opacity: 0;
            transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
            transform: scale(1.02);
            filter: saturate(1.05) contrast(1.03);
        }

        .hero-section.hero-video-ready .hero-video {
            opacity: 1;
        }

        .hero-watermark {
            position: absolute;
            bottom: 30px;
            right: 30px;
            width: 120px;
            height: auto;
            opacity: 0;
            z-index: 0;
            transform: translateY(8px);
            transition: opacity 0.45s ease, transform 0.45s ease;
            filter: brightness(0) invert(1);
            pointer-events: none;
        }

        .hero-section.hero-video-ready .hero-watermark {
            opacity: 0.15;
            transform: translateY(0);
            transition-delay: 0.25s;
        }

        .hero-section.hero-video-ready .hero-watermark:hover {
            opacity: 0.25;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg,
                rgba(15, 20, 25, 0.35) 0%,
                rgba(15, 20, 25, 0.35) 40%,
                rgba(37, 99, 235, 0.35) 100%);
            z-index: -1;
            animation: breathe 5s ease-in-out infinite;
        }

        .hero-overlay::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
                        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
                        radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.12) 0%, transparent 70%);
            z-index: 1;
            animation: gradientShift 12s ease-in-out infinite;
            mix-blend-mode: screen;
        }

        @keyframes breathe {
            0%, 100% { opacity: 0.92; }
            50% { opacity: 0.85; }
        }

        @keyframes gradientShift {
            0%, 100% {
                background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
                           radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
                           radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.12) 0%, transparent 70%);
            }
            33% {
                background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 55%),
                           radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                           radial-gradient(circle at 60% 40%, rgba(29, 78, 216, 0.14) 0%, transparent 65%);
            }
            66% {
                background: radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.22) 0%, transparent 60%),
                           radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
                           radial-gradient(circle at 70% 60%, rgba(29, 78, 216, 0.12) 0%, transparent 50%);
            }
        }

        /* Glassmorphism container para hero content */
        .hero-content-glass {
            background: rgba(15, 20, 25, 0.64);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-radius: 28px;
            padding: 2.5rem 3.5rem;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
            position: relative;
            z-index: 2;
            animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
        }

        .hero-badge-wrapper {
            display: inline-block;
            margin-bottom: 1rem;
        }

        .hero-title {
            font-family: var(--font-display);
            font-size: clamp(0.625rem, 1.2vw, 0.7rem);
            font-weight: 700;
            color: #35dcff;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.45rem 1.1rem;
            background: rgba(7, 30, 48, 0.88);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid rgba(53, 220, 255, 0.45);
            border-radius: 30px;
            display: inline-block;
            text-shadow: none;
            box-shadow: 0 4px 12px rgba(7, 30, 48, 0.35);
        }

        .hero-header {
            font-family: var(--font-body);
            font-size: clamp(1rem, 2.5vw, 1.125rem);
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1.5rem;
            letter-spacing: 0.01em;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
        }

        .hero-main-title {
            font-family: var(--font-display);
            font-size: clamp(2.25rem, 6vw, 4rem);
            font-weight: 700;
            margin: 0.75rem 0 1rem;
            color: #ffffff;
            letter-spacing: -0.02em;
            line-height: 1.1;
            text-shadow: none;
            animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
        }

        .hero-subtitle {
            font-family: var(--font-body);
            font-size: clamp(0.95rem, 2.2vw, 1.1rem);
            color: rgba(255, 255, 255, 0.92);
            max-width: 620px;
            margin: 0 auto 2rem;
            line-height: 1.6;
            font-weight: 400;
            text-shadow: none;
            animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
        }

        /* Reservar espacio para CTA antes de que cargue la fuente */
        .hero-content-glass .mt-4 {
            min-height: 56px;
            animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
        }

        @media (prefers-reduced-motion: reduce) {
            .hero-main-title,
            .hero-subtitle,
            .hero-content-glass .mt-4 {
                animation: none;
            }
        }

        @media (max-width: 768px) {
            .hero-content-glass {
                padding: 2rem 1.75rem;
                border-radius: 24px;
            }
        }

        @media (max-width: 576px) {
            .hero-main-title {
                font-size: clamp(1.75rem, 6vw, 2.5rem);
                line-height: 1.2;
            }
            .hero-content-glass {
                padding: 1.5rem;
                margin: 0 0.5rem;
            }
            .btn-hero-cta {
                min-height: 44px;
                padding: 0.875rem 1.75rem;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .hero-content-glass {
                padding: 2.25rem 2.5rem;
            }
        }

        .hero-description {
            font-family: var(--font-body);
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: rgba(255, 255, 255, 0.85);
            max-width: 750px;
            margin: 0 auto;
            line-height: 1.7;
            font-weight: 400;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
            animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s both;
        }

        .hero-description p {
            margin-bottom: 0.8rem;
        }

        .hero-badges {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 1.1s both;
        }

        .hero-badge {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(6px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.85rem;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 25px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .hero-badge:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
                will-change: transform, opacity;
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes heroFadeUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Botón CTA vibrante con efectos suaves */
        .btn-hero-cta {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 1rem 2.25rem;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #0a1628;
            border: none;
            border-radius: var(--btn-border-radius);
            font-family: var(--font-display);
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4),
                       0 8px 40px rgba(0, 212, 255, 0.25),
                       inset 0 1px 0 rgba(255, 255, 255, 0.3);
            transition: all 0.4s var(--ease-out-expo);
            overflow: hidden;
            animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s both;
        }

        .btn-hero-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(
                to right,
                transparent 0%,
                rgba(255, 255, 255, 0.25) 50%,
                transparent 100%
            );
            transition: left 0.5s ease;
        }

        .btn-hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 28px rgba(0, 212, 255, 0.5),
                       0 12px 56px rgba(0, 212, 255, 0.35),
                       inset 0 1px 0 rgba(255, 255, 255, 0.4);
            color: #0a1628;
        }

        .btn-hero-cta:hover::before {
            left: 150%;
        }

        .btn-hero-cta:active {
            transform: translateY(0) scale(0.98);
        }

        .btn-hero-cta i {
            transition: transform 0.4s var(--ease-out-expo);
        }

        .btn-hero-cta:hover i {
            transform: translateX(4px);
        }

        /* Section titles con tipografía distintiva */
        .section-title {
            font-family: var(--font-display);
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--dark);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 50%, transparent 100%);
            border-radius: 2px;
            box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
        }

        /* Skeleton loaders para imágenes */
        .img-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
        }

        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Performance optimizations */
        img {
            max-width: 100%;
            height: auto;
            will-change: auto;
        }

        .lazy {
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lazy.loaded {
            opacity: 1;
        }

        /* Carrusel de Proyectos Destacados */
        #proyectos-destacados {
            overflow: hidden;
        }

        #proyectos-destacados .projects-header {
            margin-bottom: 2rem !important;
        }

        #proyectos-destacados .projects-header .section-title {
            margin-bottom: 1.25rem;
        }

        #proyectos-destacados .projects-header p {
            margin-bottom: 0;
        }

        .carousel-container {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .carousel-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            height: 550px;
            perspective: 2000px;
            transition: transform 0.15s ease-out;
        }

        .carousel-card {
            position: absolute;
            top: 0;
            width: 400px;
            height: 500px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 0;
            transform: translateX(0) scale(0.8) rotateY(0deg);
            pointer-events: none;
            overflow: hidden;
            transform-style: preserve-3d;
        }

        .carousel-card.active {
            opacity: 1;
            transform: translateX(0) scale(1) rotateY(0deg) translateZ(0);
            z-index: 3;
            pointer-events: auto;
            cursor: pointer;
        }

        .carousel-card.prev {
            opacity: 0.7;
            transform: translateX(-420px) scale(0.88) rotateY(-25deg) translateZ(-100px);
            z-index: 2;
            pointer-events: auto;
            cursor: pointer;
        }

        .carousel-card.next {
            opacity: 0.7;
            transform: translateX(420px) scale(0.88) rotateY(25deg) translateZ(-100px);
            z-index: 2;
            pointer-events: auto;
            cursor: pointer;
        }

        .carousel-card.prev-2 {
            opacity: 0.4;
            transform: translateX(-700px) scale(0.75) rotateY(-45deg) translateZ(-200px);
            z-index: 1;
            pointer-events: auto;
            cursor: pointer;
        }

        .carousel-card.next-2 {
            opacity: 0.4;
            transform: translateX(700px) scale(0.75) rotateY(45deg) translateZ(-200px);
            z-index: 1;
            pointer-events: auto;
            cursor: pointer;
        }

        .carousel-card.active:hover {
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            transform: translateX(0) scale(1.05) rotateY(0deg) translateZ(20px);
        }

        .carousel-card.prev:hover {
            opacity: 0.85;
            transform: translateX(-420px) scale(0.92) rotateY(-20deg) translateZ(-80px);
        }

        .carousel-card.next:hover {
            opacity: 0.85;
            transform: translateX(420px) scale(0.92) rotateY(20deg) translateZ(-80px);
        }

        .carousel-card.prev-2:hover {
            opacity: 0.6;
            transform: translateX(-700px) scale(0.78) rotateY(-40deg) translateZ(-180px);
        }

        .carousel-card.next-2:hover {
            opacity: 0.6;
            transform: translateX(700px) scale(0.78) rotateY(40deg) translateZ(-180px);
        }

        .card-image {
            width: 100%;
            height: 60%;
            overflow: hidden;
            position: relative;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .carousel-card:hover .card-image img {
            transform: scale(1.1);
        }

        .card-content {
            padding: 25px;
            height: 40%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        .card-link-hint {
            position: absolute;
            bottom: 15px;
            right: 20px;
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .carousel-card.active:hover .card-link-hint {
            opacity: 1;
        }

        .card-title {
            font-family: var(--font-display);
            font-size: 22px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 10px;
            line-height: 1.3;
            letter-spacing: -0.01em;
        }

        .card-description {
            font-family: var(--font-body);
            font-size: 15px;
            color: var(--gray-600);
            line-height: 1.6;
            margin: 0;
        }

        /* Flechas de navegación */
        .carousel-arrows {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: none;
            z-index: 10;
            padding: 0 10px;
        }

        .carousel-arrow {
            pointer-events: auto;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            font-size: 20px;
            color: var(--primary);
        }

        .carousel-arrow:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
        }

        .carousel-arrow:active {
            transform: scale(0.95);
        }

        .carousel-arrow.left {
            margin-left: -10px;
        }

        .carousel-arrow.right {
            margin-right: -10px;
        }

        /* Dots de navegación */
        .carousel-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 40px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #d1d5db;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }

        .dot:hover {
            background: #9ca3af;
            transform: scale(1.2);
        }

        .dot.active {
            background: var(--primary);
            width: 32px;
            border-radius: 6px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .carousel-card {
                width: 350px;
                height: 450px;
            }

            .carousel-card.prev {
                transform: translateX(-380px) scale(0.88) rotateY(-25deg) translateZ(-100px);
            }

            .carousel-card.next {
                transform: translateX(380px) scale(0.88) rotateY(25deg) translateZ(-100px);
            }

            .carousel-card.prev:hover {
                transform: translateX(-380px) scale(0.92) rotateY(-20deg) translateZ(-80px);
            }

            .carousel-card.next:hover {
                transform: translateX(380px) scale(0.92) rotateY(20deg) translateZ(-80px);
            }

            .carousel-card.prev-2 {
                transform: translateX(-650px) scale(0.75) rotateY(-45deg) translateZ(-200px);
            }

            .carousel-card.next-2 {
                transform: translateX(650px) scale(0.75) rotateY(45deg) translateZ(-200px);
            }

            .carousel-card.prev-2:hover {
                transform: translateX(-650px) scale(0.78) rotateY(-40deg) translateZ(-180px);
            }

            .carousel-card.next-2:hover {
                transform: translateX(650px) scale(0.78) rotateY(40deg) translateZ(-180px);
            }
        }

        @media (max-width: 768px) {
            .carousel-wrapper {
                height: 480px;
                padding: 0 15px;
            }

            .carousel-card {
                width: 300px;
                height: 400px;
                border-radius: 24px;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.3);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                           0 2px 8px rgba(0, 0, 0, 0.08);
            }

            .carousel-card.active {
                transform: translateX(0) scale(1) translateY(0);
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                           0 8px 24px rgba(37, 99, 235, 0.1);
            }

            .carousel-card.prev {
                opacity: 0.6;
                transform: translateX(-180px) scale(0.85) translateY(10px);
                filter: brightness(0.9);
                pointer-events: auto;
            }

            .carousel-card.next {
                opacity: 0.6;
                transform: translateX(180px) scale(0.85) translateY(10px);
                filter: brightness(0.9);
                pointer-events: auto;
            }

            .carousel-card.prev:hover,
            .carousel-card.next:hover {
                opacity: 0.8;
                transform: translateX(-180px) scale(0.88) translateY(5px);
                filter: brightness(0.95);
            }

            .carousel-card.next:hover {
                transform: translateX(180px) scale(0.88) translateY(5px);
            }

            .carousel-card.prev-2,
            .carousel-card.next-2 {
                display: none;
            }

            .carousel-arrow {
                width: 52px;
                height: 52px;
                font-size: 20px;
                background: rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.3);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            }

            .carousel-arrow:hover {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                transform: scale(1.05);
                box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
            }

            .carousel-arrows {
                padding: 0 15px;
            }

            .card-content {
                padding: 22px;
                background: linear-gradient(to bottom, 
                    rgba(255, 255, 255, 0.95) 0%, 
                    rgba(248, 250, 252, 0.98) 100%);
            }

            .card-title {
                font-size: 19px;
                font-weight: 700;
                background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .card-description {
                font-size: 14px;
                color: #64748b;
                line-height: 1.6;
            }

            .card-image {
                height: 55%;
                position: relative;
                overflow: hidden;
            }

            .card-image::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, 
                    rgba(37, 99, 235, 0.1) 0%, 
                    rgba(59, 130, 246, 0.05) 100%);
                z-index: 1;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .carousel-card:hover .card-image::before {
                opacity: 1;
            }
        }

        @media (max-width: 480px) {
            .carousel-container {
                padding: 0 8px;
            }

            .carousel-wrapper {
                height: 420px;
                padding: 0 10px;
            }

            .carousel-card {
                width: 280px;
                height: 360px;
                border-radius: 20px;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(25px);
                -webkit-backdrop-filter: blur(25px);
                border: 1px solid rgba(255, 255, 255, 0.4);
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                           0 4px 12px rgba(0, 0, 0, 0.05);
            }

            .carousel-card.active {
                transform: translateX(0) scale(1) translateY(0);
                box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12),
                           0 10px 30px rgba(37, 99, 235, 0.08);
            }

            .carousel-card.prev {
                opacity: 0.5;
                transform: translateX(-140px) scale(0.82) translateY(8px);
                filter: brightness(0.85) saturate(0.9);
                pointer-events: auto;
            }

            .carousel-card.next {
                opacity: 0.5;
                transform: translateX(140px) scale(0.82) translateY(8px);
                filter: brightness(0.85) saturate(0.9);
                pointer-events: auto;
            }

            .carousel-card.prev:hover,
            .carousel-card.next:hover {
                opacity: 0.7;
                transform: translateX(-140px) scale(0.86) translateY(4px);
                filter: brightness(0.9) saturate(0.95);
            }

            .carousel-card.next:hover {
                transform: translateX(140px) scale(0.86) translateY(4px);
            }

            .card-content {
                padding: 18px;
                background: linear-gradient(to bottom, 
                    rgba(255, 255, 255, 0.98) 0%, 
                    rgba(249, 250, 251, 1) 100%);
            }

            .card-title {
                font-size: 18px;
                font-weight: 700;
                background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                margin-bottom: 8px;
            }

            .card-description {
                font-size: 13px;
                color: #64748b;
                line-height: 1.5;
                font-weight: 400;
            }

            .carousel-arrow {
                width: 48px;
                height: 48px;
                font-size: 18px;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border: 1px solid rgba(255, 255, 255, 0.4);
                box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
            }

            .carousel-arrow:hover {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                transform: scale(1.08);
                box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
            }

            .carousel-arrows {
                padding: 0 8px;
            }

            .carousel-arrow.left {
                margin-left: 0;
            }

            .carousel-arrow.right {
                margin-right: 0;
            }

            .card-image {
                height: 52%;
                position: relative;
                overflow: hidden;
            }

            .card-image::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, 
                    rgba(59, 130, 246, 0.12) 0%, 
                    rgba(37, 99, 235, 0.06) 100%);
                z-index: 1;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .carousel-card:hover .card-image::before {
                opacity: 1;
            }

            .card-link-hint {
                font-size: 11px;
                bottom: 12px;
                right: 15px;
            }

            /* Touch-friendly improvements */
            .carousel-card {
                transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            }

            .carousel-arrow {
                transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            }

            /* Better dots for mobile */
            .carousel-dots {
                margin-top: 30px;
                gap: 10px;
            }

            .dot {
                width: 10px;
                height: 10px;
                background: #cbd5e1;
            }

            .dot.active {
                width: 28px;
                height: 10px;
                border-radius: 5px;
                background: linear-gradient(135deg, var(--primary), var(--secondary));
            }

            /* Separar botón del carrusel en mobile */
            .portfolio-link-cta {
                position: relative;
                z-index: 20;
                padding-top: 0.75rem;
            }
        }

        /* Garantizar que el botón siempre quede sobre el carrusel */
        .portfolio-link-cta {
            position: relative;
            z-index: 20;
        }

/* Font Awesome Custom: Solo íconos usados - Inline para evitar request */
            @font-face {
                font-family: 'Font Awesome 6 Free';
                font-style: normal;
                font-weight: 900;
                src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
                font-display: swap;
            }
            @font-face {
                font-family: 'Font Awesome 6 Brands';
                font-style: normal;
                font-weight: 400;
                src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
                font-display: swap;
            }
            .fas, .fab {
                display: inline-block;
                font-style: normal;
                font-variant: normal;
                text-rendering: auto;
                line-height: 1;
            }
            .fas {
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
            }
            .fab {
                font-family: 'Font Awesome 6 Brands';
                font-weight: 400;
            }
            /* Íconos sólidos */
            .fa-arrow-up:before { content: "\f062"; }
            .fa-pen-nib:before { content: "\f5ad"; }
            .fa-shopping-cart:before { content: "\f07a"; }
            .fa-mobile-alt:before { content: "\f3cd"; }
            .fa-search:before { content: "\f002"; }
            .fa-tools:before { content: "\f7d9"; }
            .fa-cogs:before { content: "\f085"; }
            .fa-arrow-right:before { content: "\f061"; }
            .fa-chevron-left:before { content: "\f053"; }
            .fa-chevron-right:before { content: "\f054"; }
            .fa-external-link-alt:before { content: "\f35d"; }
            /* Íconos de marcas */
            .fa-whatsapp:before { content: "\f232"; }
            .fa-facebook:before { content: "\f09a"; }
            .fa-x-twitter:before { content: "\e61b"; }
            .fa-instagram:before { content: "\f16d"; }
            .fa-youtube:before { content: "\f167"; }
            .fa-wordpress:before { content: "\f19a"; }

            /* Estilos elegantes para títulos de sección */
            .section-title {
                position: relative;
                display: inline-block;
                padding: 15px 30px;
                background: rgba(248, 249, 250, 0.8);
                border-radius: 10px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
                border: 1px solid rgba(0, 123, 255, 0.1);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                margin: 0 auto;
            }

            .section-title::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 40px;
                height: 2px;
                background: #007bff;
                border-radius: 1px;
                opacity: 0.7;
                transition: width 0.3s ease, opacity 0.3s ease;
            }

            .section-title:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
                border-color: rgba(0, 123, 255, 0.3);
                background: linear-gradient(135deg, #f8f9fa 0%, #eef5ff 100%);
            }

            .section-title:hover::after {
                width: 60px;
                opacity: 1;
            }

            /* Google Reviews Cards - Inline para mejor performance */
            .section-padding {
                padding: 80px 0;
            }

            .google-review-card {
                background: white;
                border-radius: 12px;
                padding: 24px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                transition: all 0.3s ease;
                height: 100%;
                min-height: 220px;
                display: flex;
                flex-direction: column;
                border: 1px solid #e8eaed;
            }

            .google-review-card:hover {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
                transform: translateY(-4px);
            }

            .review-header {
                display: flex;
                align-items: center;
                margin-bottom: 12px;
            }

            .review-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: #4285f4;
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 500;
                font-size: 18px;
                margin-right: 12px;
                flex-shrink: 0;
            }

            .review-author-info {
                flex: 1;
            }

            .review-author {
                font-weight: 600;
                color: #202124;
                font-size: 14px;
                margin-bottom: 2px;
            }

            .review-meta {
                font-size: 12px;
                color: #5f6368;
            }

            .review-rating {
                color: #fbbc04;
                font-size: 16px;
                margin-bottom: 8px;
                letter-spacing: 2px;
            }

            .review-date {
                font-size: 12px;
                color: #70757a;
                margin-bottom: 12px;
            }

            .review-text {
                font-size: 14px;
                color: #3c4043;
                line-height: 1.6;
                flex-grow: 1;
            }

            .btn-luxe-outline {
                border: 2px solid #4285f4;
                color: #4285f4;
                padding: 12px 32px;
                border-radius: 8px;
                font-weight: 600;
                text-decoration: none;
                transition: all 0.3s ease;
                display: inline-block;
            }

            .btn-luxe-outline:hover {
                background: #4285f4;
                color: white;
                text-decoration: none;
            }

            /* Carousel Controls */
            #reviewsCarousel .carousel-control-prev,
            #reviewsCarousel .carousel-control-next {
                width: 50px;
                height: 50px;
                background: rgba(66, 133, 244, 0.9);
                border-radius: 50%;
                opacity: 1;
                top: 60%;
            }

            #reviewsCarousel .carousel-control-prev {
                left: -60px;
            }

            #reviewsCarousel .carousel-control-next {
                right: -60px;
            }

            #reviewsCarousel .carousel-control-prev:hover,
            #reviewsCarousel .carousel-control-next:hover {
                background: rgba(66, 133, 244, 1);
            }

            #reviewsCarousel .carousel-control-prev-icon,
            #reviewsCarousel .carousel-control-next-icon {
                width: 20px;
                height: 20px;
            }

            /* Responsive */
            @media (max-width: 768px) {
                #reviewsCarousel {
                    overflow: hidden;
                }

                #reviewsCarousel .carousel-inner {
                    display: flex;
                    overflow-x: auto;
                    padding: 0 4px 12px;
                    scroll-snap-type: x mandatory;
                    scroll-behavior: smooth;
                    -webkit-overflow-scrolling: touch;
                    scrollbar-width: thin;
                }

                #reviewsCarousel .carousel-inner::-webkit-scrollbar {
                    height: 6px;
                }

                #reviewsCarousel .carousel-inner::-webkit-scrollbar-thumb {
                    background: rgba(66, 133, 244, 0.45);
                    border-radius: 999px;
                }

                #reviewsCarousel .carousel-item {
                    display: block !important;
                    flex: 0 0 auto;
                    width: auto !important;
                    margin-right: 1rem !important;
                    transform: none !important;
                }

                #reviewsCarousel .carousel-item .row {
                    display: flex;
                    flex-wrap: nowrap;
                    gap: 1rem;
                    margin: 0;
                    --bs-gutter-x: 0;
                }

                #reviewsCarousel .carousel-item .col-md-4 {
                    flex: 0 0 min(86vw, 360px);
                    max-width: min(86vw, 360px);
                    padding: 0;
                    scroll-snap-align: start;
                }

                .google-review-card {
                    margin-bottom: 0;
                    min-height: 220px;
                }

                .section-padding {
                    padding: 60px 0;
                }

                #reviewsCarousel .carousel-control-prev,
                #reviewsCarousel .carousel-control-next {
                    display: none;
                }
            }

            /* Resto de estilos no críticos */
            @font-face {
                font-family: 'Font Awesome';
                src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
                font-display: swap;
            }
            @font-face {
                font-family: 'Font Awesome Brands';
                src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
                font-display: swap;
            }
            /* Modern Portfolio Cards */
            .portfolio-card-link {
                text-decoration: none;
                display: block;
                height: 100%;
                color: inherit;
            }

            .portfolio-card-link:hover {
                text-decoration: none;
                color: inherit;
            }

            .portfolio-card {
                background: #fff;
                border: 3px solid rgba(203, 213, 225, 1);
                border-radius: var(--portfolio-card-radius);
                overflow: hidden;
                box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                            box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                height: 100%;
                display: flex;
                flex-direction: column;
                min-height: 380px;
                background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
                position: relative;
                contain: layout style; /* Reducir reflows */
                will-change: transform; /* GPU acceleration */
            }

            .portfolio-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 4px;
                background: linear-gradient(90deg, var(--primary), var(--secondary));
                border-radius: 20px 20px 0 0;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .portfolio-card-link:hover .portfolio-card {
                transform: translateY(-8px);
                box-shadow: 0 16px 64px rgba(37, 99, 235, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
                border-color: rgba(37, 99, 235, 0.6);
            }

            .portfolio-card-link:hover .portfolio-card::before {
                opacity: 1;
            }

            .portfolio-card-image {
                height: 200px;
                overflow: hidden;
                background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
                position: relative;
            }

            .portfolio-card-image::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .portfolio-card-link:hover .portfolio-card-image::after {
                opacity: 1;
            }

            .portfolio-card-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
            }

            .portfolio-card-image video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                opacity: 0;
                transition: opacity 0.3s ease;
                z-index: 1;
            }

            .portfolio-card-link:hover .portfolio-card-image img {
                transform: scale(1.08);
            }

            .portfolio-card-body {
                padding: 24px;
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            .portfolio-card-title {
                font-size: 1.25rem;
                font-weight: 600;
                color: #1e293b;
                margin: 0;
                line-height: 1.4;
                font-family: 'Inter', sans-serif;
                letter-spacing: -0.025em;
            }

            .portfolio-card-text {
                font-size: 0.95rem;
                color: #64748b;
                line-height: 1.6;
                margin: 0;
                flex-grow: 1;
                font-weight: 400;
            }

            .portfolio-card-footer {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-top: auto;
                gap: 12px;
            }

            .portfolio-badge {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                color: white;
                font-size: 0.75rem;
                font-weight: 600;
                padding: 8px 16px;
                border-radius: 50px;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
                position: relative;
                overflow: hidden;
            }

            .portfolio-badge::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;
            }

            .portfolio-card-link:hover .portfolio-badge::before {
                left: 100%;
            }

            .portfolio-btn {
                color: var(--primary);
                font-size: 0.9rem;
                font-weight: 600;
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 12px 20px;
                border-radius: 12px;
                background: rgba(37, 99, 235, 0.05);
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                border: 1px solid rgba(37, 99, 235, 0.1);
            }

            .portfolio-btn:hover {
                color: white;
                background: var(--primary);
                transform: translateY(-2px);
                box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
                border-color: var(--primary);
            }

            .portfolio-btn i {
                font-size: 0.85rem;
                transition: transform 0.3s ease;
            }

            .portfolio-btn:hover i {
                transform: translateX(2px);
            }

            @media (max-width: 768px) {
                .portfolio-card {
                    min-height: 360px;
                }

                .portfolio-card-image {
                    height: 160px;
                }

                .portfolio-card-body {
                    padding: 20px;
                    gap: 12px;
                }

                .portfolio-card-title {
                    font-size: 1.15rem;
                }

                .portfolio-card-text {
                    font-size: 0.9rem;
                }

                .portfolio-card-footer {
                    flex-direction: column;
                    gap: 12px;
                    align-items: stretch;
                    text-align: center;
                }

                .portfolio-btn {
                    justify-content: center;
                    padding: 10px 16px;
                }

                .portfolio-badge {
                    align-self: center;
                    padding: 6px 14px;
                }
            }
            
            /* Premium Service Cards */
            #servicios .card {
                background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
                border: 2px solid transparent;
                border-radius: var(--card-border-radius);
                padding: 20px;
                transition: transform var(--transition-speed-slow) cubic-bezier(0.4, 0, 0.2, 1),
                            box-shadow var(--transition-speed-slow) cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
                overflow: hidden;
                box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
                contain: layout style; /* Reducir reflows */
                will-change: transform; /* GPU acceleration */
            }

            #servicios .card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                border-radius: 24px;
                padding: 2px;
                background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.2));
                -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                mask-composite: exclude;
                opacity: 0;
                transition: opacity 0.5s ease;
            }

            #servicios .card::after {
                content: '';
                position: absolute;
                top: -50%;
                left: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
                opacity: 0;
                transition: opacity 0.5s ease;
            }
            
            #servicios .card:hover {
                transform: translateY(-12px) scale(1.02);
                box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
            }

            #servicios .card:hover::before {
                opacity: 1;
            }

            #servicios .card:hover::after {
                opacity: 1;
            }

            #servicios .card-body {
                position: relative;
                z-index: 1;
            }

            #servicios .card-body i {
                width: 80px;
                height: 80px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
                border-radius: 20px;
                margin-bottom: 24px;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
                font-size: 2.5rem;
            }

            #servicios .card:hover .card-body i {
                transform: rotateY(360deg) scale(1.1);
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                color: white !important;
                box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
            }

            #servicios .card-title {
                font-family: var(--font-display);
                font-size: 1.35rem;
                font-weight: 700;
                color: var(--dark);
                margin-bottom: 16px;
                letter-spacing: -0.02em;
                transition: all 0.3s var(--ease-out-expo);
            }

            #servicios .card:hover .card-title {
                color: var(--accent);
                transform: translateY(-2px);
            }

            #servicios .card-text {
                font-family: var(--font-body);
                font-size: 1rem;
                line-height: 1.7;
                color: var(--gray-600);
                transition: color 0.3s ease;
            }

            #servicios .card:hover .card-text {
                color: var(--gray-800);
            }

            #scrollToTop, #whatsappBtn {
                position: fixed;
                bottom: 30px;
                border-radius: 50%;
                color: white;
                text-align: center;
                cursor: pointer;
                transition: all 0.3s var(--ease-out-expo);
                z-index: 1000;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
                backdrop-filter: blur(10px);
            }

            #scrollToTop {
                right: 30px;
                width: 52px;
                height: 52px;
                background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
                line-height: 52px;
                display: none;
                font-size: 18px;
                color: #0a1628;
            }

            #scrollToTop:hover {
                transform: translateY(-4px) scale(1.08);
                box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
            }

            #whatsappBtn {
                left: 30px;
                width: 62px;
                height: 62px;
                background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
                line-height: 62px;
                font-size: 32px;
                text-decoration: none;
            }

            #whatsappBtn:hover {
                transform: translateY(-4px) scale(1.08) rotate(5deg);
                box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
            }

            /* CSS centralizado en css/components/header.css */

            .social-links a {
                transition: color 0.3s ease;
                text-decoration: none;
            }

            .social-links a:hover {
                color: var(--secondary) !important;
            }

            .btn-primary {
                background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
                border: none;
                border-radius: var(--btn-border-radius);
                font-family: var(--font-display);
                font-weight: 600;
                letter-spacing: -0.01em;
                color: #0a1628;
                box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35),
                           inset 0 1px 0 rgba(255, 255, 255, 0.3);
                transition: all 0.35s var(--ease-out-expo);
            }

            .btn-primary:hover {
                transform: translateY(-2px) scale(1.02);
                box-shadow: 0 8px 28px rgba(0, 212, 255, 0.5),
                           inset 0 1px 0 rgba(255, 255, 255, 0.4);
                color: #0a1628;
            }

            /* btn-hero-cta styles moved to critical CSS above */

            .form-control {
                border: 1px solid #dee2e6;
                padding: 0.8rem;
                transition: all 0.3s ease;
                background-color: white;
            }

            .form-control:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.1);
            }

            @media (max-width: 768px) {
                .navbar-nav {
                    text-align: center;
                }

                .hero-section {
                    padding: var(--section-padding-mobile) 0 var(--hero-padding-bottom-mobile);
                    min-height: var(--hero-min-height-mobile);
                }
                
                #whatsappBtn {
                    width: 44px;
                    height: 44px;
                    line-height: 44px;
                    font-size: 22px;
                    left: 16px;
                    bottom: 16px;
                    padding: 0;
                }
            /* Fix mobile menu overflow */
            .navbar-collapse {
                max-height: 70vh;
                overflow-y: auto;
            }
            /* Ensure scroll-to-top button is visible and sized for mobile */
            #scrollToTop {
                width: 44px;
                height: 44px;
                line-height: 44px;
                right: 16px;
                bottom: 16px;
                font-size: 22px;
            }
            }
            
            /* Estilos adicionales para móviles pequeños */
            @media (max-width: 576px) {
                .hero-section {
                    padding: var(--section-padding-small) 0 var(--hero-padding-bottom-small);
                    min-height: var(--hero-min-height-small);
                }
                
                .hero-title {
                    margin-bottom: 1.5rem;
                }
                
                .hero-subtitle {
                    margin: 0.8rem 0;
                }
            }

/* ==========================================
   Hero Secondary CTA
   ========================================== */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================
   Trust Bar
   ========================================== */
.trust-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    white-space: nowrap;
}
.trust-item i {
    color: var(--accent, #00d4ff);
    font-size: 1rem;
}
.trust-item strong {
    color: #fff;
}
@media (max-width: 767.98px) {
    .trust-bar-inner {
        gap: 0.8rem 1.5rem;
        justify-content: center;
    }
    .trust-item {
        font-size: 0.8rem;
    }
}

/* ==========================================
   Case Studies
   ========================================== */
#casos-reales {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
#casos-reales .section-title {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#casos-reales .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
.case-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}
.case-header {
    margin-bottom: 1rem;
}
.case-title {
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.case-type {
    font-size: 0.8rem;
    color: var(--accent, #00d4ff);
    font-weight: 500;
}
.case-body {
    flex: 1;
}
.case-problem,
.case-solution {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.case-problem strong,
.case-solution strong {
    color: rgba(255, 255, 255, 0.95);
}
.case-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.case-metric {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.case-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-display, 'Montserrat', sans-serif);
}
.case-before {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}
.case-after {
    font-size: 2rem;
    font-weight: 800;
    color: #22c55e;
}
.case-numbers i {
    color: var(--accent, #00d4ff);
    font-size: 0.9rem;
}
#casos-reales .btn-outline-primary {
    color: var(--accent, #00d4ff);
    border-color: var(--accent, #00d4ff);
}
#casos-reales .btn-outline-primary:hover {
    background: var(--accent, #00d4ff);
    color: #0f172a;
}

/* ==========================================
   Solution Cards
   ========================================== */
.solution-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.solution-card .card-title {
    font-size: 1.1rem;
}
.solution-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
}
.solution-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #2563eb);
}
.solution-card:hover .solution-link {
    text-decoration: underline;
}

/* ==========================================
   Process Steps
   ========================================== */
.process-step {
    padding: 1rem;
}
.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    color: #fff;
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
