/* 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 */

            /* Paleta del logo nuevo: rojo/azul/índigo/tinta son APROXIMADOS, confirmar con el manual de marca */
            --ece-rojo: #E52521;
            --ece-azul: #2E6BD8;
            --ece-indigo: #3B1FA6;
            --ece-tinta: #14161F;
            --ece-crema: #F1EDE5; /* medido del fondo del logo: el header y el menú deben usar exactamente este */
        }

        /* Mismo fondo que el logo para que no se vea como un recuadro */
        .site-header {
            background-color: var(--ece-crema);
            border-bottom: 1px solid rgba(20, 22, 31, 0.06);
        }

        .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;
        }

        /* ===== Botón del menú móvil (hamburguesa que se convierte en X) ===== */
        .menu-toggle {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background-color: transparent;
            border: 1px solid rgba(20, 22, 31, 0.15);
            color: var(--ece-tinta);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
        }

        .menu-toggle:hover {
            background-color: rgba(20, 22, 31, 0.06);
        }

        .menu-toggle:active {
            transform: scale(0.95);
        }

        /* Con el menú abierto solo se usa la X del panel */
        .menu-toggle[aria-expanded="true"] {
            visibility: hidden;
        }

        .menu-toggle-bars {
            position: relative;
            width: 20px;
            height: 14px;
        }

        .menu-toggle-bars span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            border-radius: 2px;
            background-color: currentColor;
        }

        .menu-toggle-bars span:nth-child(1) { top: 0; }
        .menu-toggle-bars span:nth-child(2) { top: 6px; }
        .menu-toggle-bars span:nth-child(3) { top: 12px; }

        /* Foco visible con teclado en controles de navegación */
        .menu-toggle:focus-visible,
        .mobile-menu a:focus-visible,
        .mobile-menu-close:focus-visible,
        .desktop-link:focus-visible,
        .project-photo:focus-visible {
            outline: 2px solid var(--ece-azul);
            outline-offset: 2px;
        }

        .desktop-link.is-active {
            color: var(--ece-indigo);
        }

        /* ===== Menú lateral móvil ===== */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: min(85vw, 320px);
            z-index: 60;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background-color: var(--ece-crema);
            box-shadow: 0 0 40px rgba(20, 22, 31, 0.25);
            transform: translateX(-100%);
            visibility: hidden;
            transition: transform 0.25s ease-out, visibility 0s linear 0.25s;
        }

        .mobile-menu.menu-open {
            transform: translateX(0);
            visibility: visible;
            transition: transform 0.25s ease-out;
        }

        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 16px 16px 20px;
            border-bottom: 1px solid rgba(20, 22, 31, 0.08);
        }

        .mobile-menu-logo {
            height: 44px;
            width: auto;
            border-radius: 6px;
        }

        .mobile-menu-close {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 1.125rem;
            color: var(--ece-tinta);
            background-color: rgba(20, 22, 31, 0.05);
            transition: background-color 0.2s ease;
        }

        .mobile-menu-close:hover {
            background-color: rgba(20, 22, 31, 0.1);
        }

        .mobile-menu-list {
            list-style: none;
            margin: 0;
            padding: 12px;
        }

        .mobile-link {
            display: flex;
            align-items: center;
            gap: 14px;
            min-height: 52px;
            padding: 0 12px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            color: var(--ece-tinta);
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .mobile-link:hover {
            background-color: rgba(59, 31, 166, 0.06);
        }

        .mobile-link:active {
            background-color: rgba(59, 31, 166, 0.12);
        }

        .mobile-link.is-active {
            color: var(--ece-indigo);
            background-color: rgba(59, 31, 166, 0.06);
            box-shadow: inset 3px 0 0 var(--ece-rojo);
        }

        .mobile-link-icon {
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 8px;
            color: var(--ece-azul);
            background-color: rgba(46, 107, 216, 0.1);
        }

        .mobile-menu-footer {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 16px 20px 24px;
            border-top: 1px solid rgba(20, 22, 31, 0.08);
        }

        .mobile-menu-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 48px;
            margin-bottom: 8px;
            border-radius: 12px;
            font-weight: 700;
            color: #ffffff;
            background-color: var(--ece-indigo);
            text-decoration: none;
            transition: filter 0.2s ease;
        }

        .mobile-menu-cta:hover {
            filter: brightness(1.15);
        }

        .mobile-menu-contact {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 36px;
            font-size: 0.875rem;
            color: #4b5563;
            text-decoration: none;
        }

        .mobile-menu-contact i {
            width: 16px;
            color: var(--ece-azul);
        }

        /* El menú ya tiene su propio botón de WhatsApp */
        body.menu-abierto .whatsapp-float {
            display: none;
        }

        /* Fondo oscuro detrás del menú (tocar para cerrar) */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(20, 22, 31, 0.5);
            z-index: 55; /* encima del header (z-50), debajo del panel (z-60) */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        @media (min-width: 1024px) {
            .mobile-menu,
            .mobile-menu-overlay {
                display: none;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .mobile-menu,
            .mobile-menu.menu-open,
            .mobile-menu-overlay,
            .menu-toggle,
            .menu-toggle-bars span {
                transition: none;
            }

            .reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }

            .whatsapp-float {
                animation: none;
            }
        }

        /* ===== Formulario "Trabaja con nosotros" ===== */
        .campo-etiqueta {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #374151;
        }

        .campo {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            background-color: #ffffff;
            color: var(--ece-tinta);
            font-size: 1rem;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .campo:focus {
            outline: none;
            border-color: var(--ece-azul);
            box-shadow: 0 0 0 3px rgba(46, 107, 216, 0.2);
        }

        .intentado .campo:invalid {
            border-color: #dc2626;
        }

        .opcion-tipo {
            display: block;
            cursor: pointer;
        }

        .opcion-tipo-caja {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            border: 2px solid #e5e7eb;
            border-radius: 14px;
            background-color: #ffffff;
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .opcion-tipo-caja i {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 10px;
            color: var(--ece-azul);
            background-color: rgba(46, 107, 216, 0.1);
        }

        .opcion-tipo-caja strong,
        .opcion-tipo-caja small {
            display: block;
        }

        .opcion-tipo-caja small {
            color: #6b7280;
        }

        .opcion-tipo:hover .opcion-tipo-caja {
            border-color: #c7d2fe;
        }

        .opcion-tipo input:checked + .opcion-tipo-caja {
            border-color: var(--ece-indigo);
            background-color: rgba(59, 31, 166, 0.05);
        }

        .opcion-tipo input:checked + .opcion-tipo-caja i {
            color: #ffffff;
            background-color: var(--ece-indigo);
        }

        .opcion-tipo input:focus-visible + .opcion-tipo-caja,
        #curriculum:focus-visible + .zona-archivo {
            outline: 2px solid var(--ece-azul);
            outline-offset: 2px;
        }

        .zona-archivo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 24px 16px;
            border: 2px dashed #cbd5e1;
            border-radius: 14px;
            background-color: #ffffff;
            color: var(--ece-azul);
            text-align: center;
            cursor: pointer;
            word-break: break-word;
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .zona-archivo:hover {
            border-color: var(--ece-azul);
            background-color: rgba(46, 107, 216, 0.04);
        }

        .zona-archivo span:not(.text-sm) {
            color: var(--ece-tinta);
        }

        .intentado #curriculum:invalid + .zona-archivo {
            border-color: #dc2626;
        }

        .faq {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            background-color: #ffffff;
        }

        .faq summary {
            padding: 16px 20px;
            font-weight: 600;
            color: var(--ece-tinta);
            cursor: pointer;
        }

        .faq summary:focus-visible {
            outline: 2px solid var(--ece-azul);
            outline-offset: 2px;
            border-radius: 14px;
        }

        .faq[open] summary {
            color: var(--ece-indigo);
        }

        .faq > div {
            padding: 0 20px 18px;
            color: #4b5563;
        }

        /* Equipo: ícono por cargo en lugar de foto */
        .equipo-icono {
            width: 160px;
            height: 160px;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 3.5rem;
            color: var(--ece-indigo);
            background-color: var(--ece-crema);
            border: 4px solid #ffffff;
            box-shadow: 0 10px 25px rgba(20, 22, 31, 0.12), inset 0 0 0 2px rgba(59, 31, 166, 0.08);
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .reveal:hover .equipo-icono {
            transform: translateY(-4px);
            color: var(--ece-azul);
        }

        /* 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 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 de fondo del hero: cubre toda la sección */
        .hero-section {
            background-color: var(--primary-color); /* se ve mientras carga el video */
        }

        .hero-video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        /* Texto del hero en móviles */
        @media (max-width: 768px) {
            .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);
            }
        }

        @media (max-width: 480px) {
            .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);
            }
        }

        /* 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;
            }
        }