/* Estilos personalizados y configuración de Tailwind */
        body {
            font-family: 'Inter', sans-serif;
            color: #1a202c; /* Equivalent to text-gray-800 */
        }

        :root {
            --primary-color: #0d274d;
            --secondary-color: #FBB03B;
            --accent-color: #059669; /* Emerald 600 */
        }

        .gradient-bg {
            background-image: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
        }
        
        .section-title {
            color: var(--primary-color);
        }
        
        .section-divider {
            height: 4px;
            width: 70px;
            background: var(--secondary-color);
            margin: 0 auto 2rem;
            border-radius: 2px;
        }

        /* Animación para el menú móvil con efecto transparente */
        #mobile-menu {
            transition: transform 0.3s ease-in-out;
            background-color: rgba(255, 255, 255, 0.95) !important; /* Fondo semi-transparente */
            backdrop-filter: blur(10px) saturate(150%) !important; /* Efecto glass/blur */
            -webkit-backdrop-filter: blur(10px) saturate(150%) !important; /* Safari compatibility */
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .menu-open {
            transform: translateX(0) !important;
        }

        /* Contenedor interno del menú con fondo adicional para legibilidad */
        #mobile-menu .p-6 {
            background-color: rgba(255, 255, 255, 0.8) !important;
            border-radius: 12px;
            margin: 8px;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        /* Mejorar legibilidad del menú móvil con texto contrastante */
        #mobile-menu .mobile-link {
            color: #1f2937 !important; /* text-gray-800 más oscuro para mejor contraste */
            font-weight: 600 !important; /* font-semibold para mayor peso */
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Sombra blanca sutil */
            background-color: rgba(255, 255, 255, 0.7) !important;
            border: 1px solid rgba(255, 255, 255, 0.3);
            margin-bottom: 4px;
        }

        #mobile-menu .mobile-link:hover {
            color: #1e40af !important; /* text-blue-800 */
            background-color: rgba(219, 234, 254, 0.9) !important; /* bg-blue-50 más opaco */
            border-color: rgba(59, 130, 246, 0.3);
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        /* Iconos con mejor contraste y efectos */
        #mobile-menu .mobile-link i {
            color: #3b82f6 !important; /* blue-500 para mejor visibilidad */
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
        }

        #mobile-menu .mobile-link:hover i {
            color: #1d4ed8 !important; /* blue-700 en hover */
            transform: scale(1.1);
        }

        /* Logo del menú móvil mejorado */
        #mobile-menu .text-lg.font-bold {
            color: #111827 !important;
            text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
            font-weight: 700 !important;
        }

        /* Botón de cerrar mejorado */
        #mobile-menu #close-menu {
            background-color: rgba(249, 250, 251, 0.9) !important;
            color: #374151 !important;
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        #mobile-menu #close-menu:hover {
            background-color: rgba(239, 68, 68, 0.1) !important;
            color: #dc2626 !important;
            border-color: rgba(239, 68, 68, 0.3);
        }

        /* Asegurar que el overlay del menú móvil sea visible */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 40;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* Animación para contadores */
        .counter {
            transition: all 1s ease-out;
        }

        /* Estilos del Modal */
        #product-modal-backdrop {
            transition: opacity 0.3s ease-in-out;
        }
        #product-modal-content {
            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        }

        /* Animaciones al hacer scroll */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }
        .reveal-visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Estilos para el formulario de Formspree */
        #contact-form-status {
            transition: opacity 0.3s ease-in-out;
        }

        /* Estilos para las tarjetas de servicios */
        .service-card {
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .service-card:hover {
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }
        
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
        }
        
        .service-card:hover::before {
            opacity: 1;
        }

        /* Estilos para la sección de experiencia */
        .project-item {
            transition: all 0.5s ease;
        }
        
        .project-photo {
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .project-photo:hover {
            transform: scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        /* Timeline responsive */
        @media (max-width: 1024px) {
            .project-item {
                padding-left: 2rem;
                border-left: 3px solid #3b82f6;
                position: relative;
            }
            
            .project-item::before {
                content: '';
                position: absolute;
                left: -8px;
                top: 1rem;
                width: 14px;
                height: 14px;
                background: #3b82f6;
                border-radius: 50%;
                border: 3px solid white;
                box-shadow: 0 0 0 3px #dbeafe;
            }
        }

        /* Video responsivo mejorado */
        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            z-index: 0;
        }

        /* Fallback de imagen de fondo */
        .hero-section {
            background-image: url('../Imagenes/Fondo/Fondo1.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* Ajustes específicos para móviles - Enfoque en centrado horizontal */
        @media (max-width: 768px) {
            .hero-video {
                /* Usar cover pero con posición centrada horizontalmente */
                object-fit: cover;
                object-position: center center; /* Centrar horizontalmente para mostrar la persona completa */
                width: 100%;
                height: 100%;
                transform: translate(-50%, -50%);
                /* Escalar ligeramente para mostrar más contenido horizontal */
                min-width: 120%;
                min-height: 100%;
            }
            
            /* En móviles, si el video no cubre completamente, mostrar la imagen de fondo */
            .hero-section {
                min-height: 100vh;
                height: 100vh;
                background-position: center center;
                background-size: cover;
            }

            /* Ajustar texto en móviles */
            .hero-title-mobile {
                font-size: 1.75rem;
                line-height: 2rem;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            }

            .hero-subtitle-mobile {
                font-size: 0.875rem;
                line-height: 1.25rem;
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
            }
        }

        /* Para dispositivos muy pequeños - Priorizar contenido horizontal central */
        @media (max-width: 480px) {
            .hero-video {
                /* Usar object-fit cover con posición central para mostrar persona completa horizontalmente */
                object-fit: cover;
                object-position: center center; /* Mantener centrado horizontal y vertical */
                width: 100%;
                height: 100%;
                transform: translate(-50%, -50%);
                /* Reducir el escalado para mostrar más contenido */
                min-width: 110%;
                min-height: 100%;
            }

            .hero-title-mobile {
                font-size: 1.5rem;
                line-height: 1.75rem;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            }

            .hero-subtitle-mobile {
                text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
            }
        }

        /* Para tablets en orientación portrait - Centrado horizontal optimizado */
        @media (min-width: 481px) and (max-width: 768px) {
            .hero-video {
                object-fit: cover;
                object-position: center center; /* Centrar para mostrar contenido horizontal completo */
                width: 100%;
                height: 100%;
                transform: translate(-50%, -50%);
                min-width: 115%;
            }
        }

        /* Para pantallas muy anchas */
        @media (min-width: 1920px) {
            .hero-video {
                width: 100%;
                height: 100vh;
                object-fit: cover;
                object-position: center center;
            }
        }

        /* Optimización para orientación landscape en móviles */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero-section {
                height: 100vh;
                min-height: 100vh;
            }
            
            .hero-video {
                object-fit: cover;
                object-position: center center;
                width: 100%;
                height: 100vh;
                transform: translate(-50%, -50%);
            }
        }

        /* Soporte para dispositivos con aspect ratio muy alto (móviles modernos) */
        @media (max-width: 768px) and (min-aspect-ratio: 9/16) {
            .hero-video {
                object-fit: cover;
                object-position: center 20%; /* Ajustar posición para pantallas altas */
            }
        }

        /* Fallback adicional para asegurar buena visualización */
        @media (max-width: 576px) {
            .hero-video {
                /* Garantizar que el video no se vea pixelado o mal escalado */
                image-rendering: auto;
                image-rendering: crisp-edges;
                image-rendering: -webkit-optimize-contrast;
            }
        }

        /* Botón flotante de WhatsApp */
        .whatsapp-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #25d366;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: whatsapp-pulse 2s infinite;
        }

        .whatsapp-float:hover {
            background-color: #128c7e;
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
            color: white;
            text-decoration: none;
        }

        .whatsapp-float:active {
            transform: scale(0.95);
        }

        /* Animación de pulso para el botón de WhatsApp */
        @keyframes whatsapp-pulse {
            0% {
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
            }
            70% {
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
            }
            100% {
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }

        /* Responsive para el botón de WhatsApp */
        @media (max-width: 768px) {
            .whatsapp-float {
                width: 55px;
                height: 55px;
                font-size: 26px;
                bottom: 15px;
                right: 15px;
            }
        }

        @media (max-width: 480px) {
            .whatsapp-float {
                width: 50px;
                height: 50px;
                font-size: 24px;
                bottom: 10px;
                right: 10px;
            }
        }