/* 1. UN SOLO SCROLL NATIVO EN TODA LA PÁGINA (CERO BARRAS SECUNDARIAS EN SECCIONES) */
        html {
            max-width: 100% !important;
            overflow-x: clip !important;
            overflow-y: auto !important;
        }
        body {
            max-width: 100% !important;
            overflow-x: clip !important;
            overflow-y: visible !important;
            transition: background-color 0.5s ease;
        }
        /* Garantiza que ninguna <section> cree jamás una barra de scroll vertical propia */
        section {
            overflow: visible !important;
            max-width: 1400px !important;
            margin-inline: auto !important;
        }

        /* 2. ESPACIADO SUPERIOR DEL HERO PARA QUE LA BARRA SUPERIOR NUNCA TAPE EL TÍTULO */
        #hero {
            padding-top: clamp(122px, 15vh, 155px) !important;
        }

        /* 3. CARRUSEL DE PROYECTOS: FLECHAS < / > + DESLIZAMIENTO TÁCTIL Y TRACKPAD 100% FLUIDOS */
        .projects-slider-container {
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            -webkit-overflow-scrolling: touch !important;
            cursor: grab;
        }
        .projects-slider-container.dragging {
            cursor: grabbing;
            scroll-behavior: auto !important;
        }
        .projects-slider-container::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* 4. CABECERA DEL COMPARADOR ANTES Y DESPUÉS (NUNCA TEXTO APILADO EN VERTICAL) */
        .ba-top-header-bar {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 12px !important;
        }
        .ba-top-header-bar > .ba-title-block,
        .ba-top-header-bar > div:first-child {
            flex: 0 1 auto !important; height: auto !important; min-height: 0 !important;
            min-width: min(100%, 250px) !important;
        }
        #baCurrentCategoryTag,
        #baCurrentServiceTitle {
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: break-word !important;
            line-height: 1.35 !important;
        }

        /* 5. AJUSTES RESPONSIVOS MÓVILES Y TABLETS (VERTICAL & HORIZONTAL) */
        @media (max-width: 1080px) {
            #hero {
                padding-top: 118px !important;
            }
            .reveal-left,
            .reveal-right {
                transform: translateY(24px) !important;
            }
            .reveal-left.active,
            .reveal-right.active {
                transform: translateY(0) !important;
            }
            header,
            #mainHeader {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                max-width: 100vw !important;
                box-sizing: border-box !important;
                padding: 0.55rem 14px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 8px !important;
                z-index: 1000 !important;
            }
            header .logo,
            #mainHeader .logo {
                max-width: calc(100vw - 72px) !important;
                min-width: 0 !important;
                flex: 1 1 auto !important;
                overflow: hidden !important;
            }
            header .logo svg.jgg-dynamic-logo-svg,
            #mainHeader .logo svg.jgg-dynamic-logo-svg {
                max-width: 100% !important;
                width: auto !important;
                height: clamp(22px, 5.8vw, 30px) !important;
            }
            .menu-toggle {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 40px !important;
                height: 40px !important;
                flex: 0 0 40px !important;
                margin-left: auto !important;
                visibility: visible !important;
                opacity: 1 !important;
                z-index: 1015 !important;
            }
            nav ul:not(.active) {
                transform: translateX(105%) !important;
                visibility: hidden !important;
                pointer-events: none !important;
                right: 0 !important;
            }
            nav ul.active {
                transform: translateX(0) !important;
                visibility: visible !important;
                pointer-events: auto !important;
                right: 0 !important;
            }
        }

        @media (max-width: 860px) {
            .ba-top-header-bar {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 10px !important;
            }
            .ba-nav-controls-row {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 1fr auto 1fr !important;
                gap: 8px !important;
            }
            .ba-nav-controls-row button {
                justify-content: center !important;
                width: 100% !important;
            }
        }
