:root {
            /* ... tus variables existentes ... */
            --section-pad-top: clamp(4rem, 7vh, 5.5rem);
            --section-pad-bot: clamp(3rem, 5vh, 4rem);
            --header-margin-bot: 2.5rem;

            --bg-dark: #03050C;
            --bg-card: rgba(8, 14, 28, 0.94);
            --border-glow: rgba(0, 240, 255, 0.25);
            --text-main: #F1F5F9;
            --text-muted: #CBD5E1;

            --color-holding: #00F0FF;
            --b2b-blue: #0052FF;
            --b2c-neon: #7FD443;
            --smart-gold: #D4AF37;

            --active-accent: var(--color-holding);
            --transition-speed: 0.5s;

        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
        }

        html,
        body {
            overflow-x: clip;
            width: 100%;
            max-width: 100%;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
        }

        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
            background: radial-gradient(circle at 50% 50%, rgba(3, 5, 12, 1) 0%, rgba(1, 2, 5, 1) 100%);
        }

        /* Elimina o comenta los margin-bottom sueltos en grid-2 y grid-4 dentro de secciones */
        #gobierno .grid-2,
        #inversionistas .grid-4 {
            margin-bottom: 0;
            /* Deja que el gap natural de la sección controle la distancia */
        }

        .mouse-spotlight {
            position: fixed;
            top: 0;
            left: 0;
            width: 800px;
            height: 800px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 0;
            transition: opacity 0.3s, background 0.5s ease;
            mix-blend-mode: screen;
        }

        header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 3%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(3, 5, 12, 0.85);
            backdrop-filter: blur(30px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            z-index: 1000;
            transition: all 0.4s ease;
        }

        header.scrolled {
            padding: 0.6rem 3%;
            background: rgba(3, 5, 12, 0.98);
            border-bottom: 1px solid var(--active-accent);
            box-shadow: 0 4px 30px rgba(0, 240, 255, 0.1);
        }

        .logo {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(0.85rem, 1.4vw, 1.1rem);
            font-weight: 900;
            letter-spacing: 1px;
            color: #FFF;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .logo span {
            color: var(--active-accent);
            text-shadow: 0 0 15px var(--active-accent);
            transition: color var(--transition-speed), text-shadow var(--transition-speed);
        }

        nav {
            margin-left: auto;
            display: flex;
            justify-content: flex-end;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 0.15rem;
            align-items: center;
        }

        nav a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            transition: all 0.3s ease;
            padding: 5px 7px;
            border-radius: 4px;
            position: relative;
            white-space: nowrap;
        }

        nav a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--active-accent);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        nav a:hover {
            color: #FFF;
            background: rgba(255, 255, 255, 0.04);
            text-shadow: 0 0 8px var(--active-accent);
            transform: translateY(-1px);
        }

        nav a:hover::before {
            width: 80%;
            box-shadow: 0 0 10px var(--active-accent);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: #FFF;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1010;
        }

        section {
            padding: 4.5rem 5% 4.5rem 5% !important;
            /* Espaciado superior e inferior simétrico y fijo en todas */
            min-height: auto !important;
            /* Evita que se estiren forzosamente a la pantalla completa */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            z-index: 2;
        }

        @media (min-height: 900px) {
            section {
                min-height: 100vh;
            }
        }

        .section-header {
            margin-bottom: 2.5rem !important;
            /* Margen inferior universal para los títulos */
            text-align: center;
        }

        .section-tag {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(0.7rem, 1.5vw, 0.85rem);
            color: var(--active-accent);
            letter-spacing: 4px;
            text-transform: uppercase;
            margin-bottom: 0.8rem;
            display: inline-block;
            position: relative;
            padding-bottom: 5px;
        }

        .section-tag::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: var(--active-accent);
            box-shadow: 0 0 10px var(--active-accent);
        }

        .section-title {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(1.8rem, 4vw, 3rem);
            font-weight: 900;
            letter-spacing: 1px;
            background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
            text-transform: uppercase;
        }

        .glass-card {
            background: var(--bg-card);
            border: 1px solid rgba(255, 255, 255, 0.14);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-radius: 20px;
            padding: clamp(1.5rem, 3vw, 2.5rem);
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
            transform: rotate(45deg) translateY(100%);
            transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
            z-index: -1;
            pointer-events: none;
        }

        .glass-card:hover::before {
            transform: rotate(45deg) translateY(-20%);
        }

        .glass-card:hover {
            border-color: var(--active-accent);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.05);
            transform: translateY(-8px) scale(1.015);
        }

        .reveal-up {
            opacity: 0;
            transform: translateY(60px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .reveal-left {
            opacity: 0;
            transform: translateX(-60px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .reveal-right {
            opacity: 0;
            transform: translateX(60px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .reveal-scale {
            opacity: 0;
            transform: scale(0.85);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .active.reveal-up,
        .active.reveal-left,
        .active.reveal-right,
        .active.reveal-scale {
            opacity: 1;
            transform: translate(0) scale(1);
        }

        .stagger-1 {
            transition-delay: 0.1s;
        }

        .stagger-2 {
            transition-delay: 0.2s;
        }

        .stagger-3 {
            transition-delay: 0.3s;
        }

        .stagger-4 {
            transition-delay: 0.4s;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.3fr 0.7fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-text h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(2rem, 4.5vw, 3.5rem);
            font-weight: 900;
            line-height: 1.05;
            margin-bottom: 1rem;
            text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        }

        .hero-subtitle {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(1rem, 1.8vw, 1.3rem);
            color: var(--active-accent);
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
        }

        .hero-bio {
            font-size: clamp(0.95rem, 1.4vw, 1.1rem);
            line-height: 1.8;
            color: var(--text-muted);
            margin-bottom: 1.8rem;
        }

        .holding-badge-box {
            background: rgba(0, 240, 255, 0.03);
            border: 1px solid rgba(0, 240, 255, 0.3);
            padding: 1.5rem;
            border-radius: 16px;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
            border-left: 4px solid var(--active-accent);
            transition: all 0.4s;
        }

        .holding-badge-box:hover {
            background: rgba(0, 240, 255, 0.08);
            box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
            transform: translateX(10px);
        }

        .holding-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 3.5rem;
        }

        .unit-card {
            cursor: pointer;
            margin-top: 65px !important;
            padding-top: 4.8rem !important;
            /* Mantiene margen libre debajo del logo en móvil y escritorio */
            padding-bottom: 2rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            overflow: visible !important;
        }

        #card-b2b:hover {
            border-color: var(--b2b-blue);
            box-shadow: 0 20px 50px rgba(0, 82, 255, 0.2);
            transform: translateY(-10px);
        }

        #card-b2c:hover {
            border-color: var(--b2c-neon);
            box-shadow: 0 20px 50px rgba(127, 212, 67, 0.2);
            transform: translateY(-10px);
        }

        #card-smart:hover {
            border-color: var(--smart-gold);
            box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
            transform: translateY(-10px);
        }

        .unit-logo-container {
            width: 110px;
            height: 110px;
            position: absolute;
            top: -55px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            background: #03050C;
            border: 2px solid var(--border-glow);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            z-index: 10;
            padding: 15px;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .unit-card:hover .unit-logo-container {
            transform: translateX(-50%) translateY(-10px) scale(1.05);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 1), 0 0 30px var(--border-glow);
        }

        .unit-logo-container img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
            transition: transform 0.4s;
        }

        .unit-card:hover .unit-logo-container img {
            transform: scale(1.1);
        }

        .unit-badge {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.65rem;
            padding: 6px 14px;
            border-radius: 20px;
            margin: 0 auto 1.2rem auto;
            display: block;
            text-align: center;
            width: fit-content;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .commercial-brand {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.1rem;
            font-weight: 900;
            letter-spacing: 2px;
            margin-bottom: 0.5rem;
            text-align: center;
            width: 100%;
        }

        .btn-portal {
            margin-top: auto;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #FFF;
            padding: 0.8rem 1.5rem;
            border-radius: 10px;
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .btn-portal:hover {
            background: var(--active-accent);
            color: #000 !important;
            border-color: var(--active-accent) !important;
            box-shadow: 0 0 25px var(--active-accent);
            transform: scale(1.05);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.8rem;
        }

        .service-card {
            background: rgba(10, 15, 30, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
        }

        .service-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--active-accent);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .service-card:hover {
            background: rgba(10, 15, 30, 0.9);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        }

        .service-card:hover::after {
            transform: scaleX(1);
            transform-origin: left;
            box-shadow: 0 0 15px var(--active-accent);
        }

        .service-header {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            margin-bottom: 1rem;
        }

        .service-icon {
            font-size: 2rem;
            color: var(--active-accent);
            transition: all 0.4s;
        }

        .service-card:hover .service-icon {
            transform: scale(1.2) rotate(8deg);
            text-shadow: 0 0 15px var(--active-accent);
        }



        #ingenieria .section-header {
            margin-bottom: 1.5rem;
        }

        .engineering-box {
            display: grid;
            grid-template-columns: 350px 1fr;
            /* Columna de botones ligeramente más angosta */
            gap: 1.5rem;
            /* Margen interno entre botones y visor reducido */
            background: rgba(3, 5, 12, 0.7);
            border: 1px solid var(--border-glow);
            border-radius: 24px;
            padding: 1.5rem;
            /* Encapsulado general reducido de 2.5rem a 1.5rem */
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(0, 0, 0, 0.8);
            position: relative;
            backdrop-filter: blur(20px);
        }

        .eng-sidebar {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            width: 100%;
        }

        /* --- ESTILOS CARRUSEL INFINITO H.U.D. --- */
        .hud-carousel-wrapper {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            width: 100%;
            position: relative;
        }

        .hud-carousel-track-container {
            width: 100%;
            overflow: hidden;
            border-radius: 12px;
        }

        .hud-carousel-track {
            display: flex;
            width: 100%;
            position: relative;
        }

        .hud-slide {
            min-width: 100%;
            width: 100%;
            display: none;
            flex-direction: column;
            gap: 0.6rem;
        }

        .hud-slide.active-slide {
            display: flex !important;
            animation: fadeInHud 0.35s ease-in-out forwards;
        }

        @keyframes fadeInHud {
            from {
                opacity: 0;
                transform: translateY(4px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hud-carousel-btn {
            background: rgba(10, 15, 30, 0.9);
            border: 1px solid var(--active-accent);
            color: var(--active-accent);
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(10px);
            box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
            transition: all 0.3s ease;
            flex-shrink: 0;
            z-index: 5;
        }

        .hud-carousel-btn:hover {
            background: var(--active-accent);
            color: #03050C;
            box-shadow: 0 0 20px var(--active-accent);
            transform: scale(1.08);
        }

        .eng-sidebar::-webkit-scrollbar {
            width: 5px;
        }

        .eng-sidebar::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
        }

        .eng-sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .eng-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--active-accent);
        }

        .eng-company-group {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            /* Separación entre botones muy compacta */
            background: rgba(255, 255, 255, 0.01);
            padding: 0.75rem;
            /* Relleno del cuadro de empresa reducido */
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.03);
            transition: all 0.3s;
        }

        .eng-company-group:hover {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.08);
        }

        .eng-company-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            font-weight: 900;
            letter-spacing: 1px;
            padding-left: 4px;
            margin-bottom: 0.3rem;
            /* Margen del título reducido */
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
        }

        .eng-btn {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            padding: 0.6rem 1rem;
            /* ALTURA DE BOTONES DRASTICAMENTE REDUCIDA */
            border-radius: 8px;
            text-align: left;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 0.78rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
        }

        .eng-btn::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: transparent;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .eng-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #FFF;
            transform: translateX(5px);
        }

        .eng-btn.active-b2b {
            color: #FFF;
            background: rgba(0, 82, 255, 0.15);
            border-color: rgba(0, 82, 255, 0.5);
            box-shadow: 0 0 20px rgba(0, 82, 255, 0.2);
        }

        .eng-btn.active-b2b::before {
            background: #0052FF;
            box-shadow: 0 0 10px #0052FF;
        }

        .eng-btn.active-b2c {
            color: #FFF;
            background: rgba(127, 212, 67, 0.15);
            border-color: rgba(127, 212, 67, 0.5);
            box-shadow: 0 0 20px rgba(127, 212, 67, 0.2);
        }

        .eng-btn.active-b2c::before {
            background: #7FD443;
            box-shadow: 0 0 10px #7FD443;
        }

        .eng-btn.active-smart {
            color: #FFF;
            background: rgba(212, 175, 55, 0.15);
            border-color: rgba(212, 175, 55, 0.5);
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
        }

        .eng-btn.active-smart::before {
            background: #D4AF37;
            box-shadow: 0 0 10px #D4AF37;
        }

        .hologram-display {
            --viewer-color: #00F0FF;
            padding: 1.5rem;
            background: #020308;
            border-radius: 16px;
            border: 1px solid var(--viewer-color);
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 50px rgba(0, 0, 0, 0.9);
            display: flex;
            flex-direction: column;
            gap: 1.8rem;
            /* Mayor separación interna */
            position: relative;
            overflow: hidden;
            min-height: 540px;
            /* 👈 Altura general aumentada para dar más espacio */
            transition: all 0.5s;
        }

        .hologram-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
            background-size: 30px 30px;
            z-index: 0;
            perspective: 1000px;
        }

        .scan-line {
            position: absolute;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--viewer-color);
            box-shadow: 0 0 20px var(--viewer-color), 0 0 40px var(--viewer-color);
            opacity: 0.8;
            animation: hologramScan 3.5s linear infinite;
            z-index: 1;
            mix-blend-mode: screen;
        }

        @keyframes hologramScan {
            0% {
                top: -10%;
                opacity: 0;
            }

            10% {
                opacity: 0.8;
            }

            90% {
                opacity: 0.8;
            }

            100% {
                top: 110%;
                opacity: 0;
            }
        }

        .hud-corners::before,
        .hud-corners::after,
        .hologram-display::before,
        .hologram-display::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            border: 3px solid var(--viewer-color);
            z-index: 2;
            transition: border-color 0.4s;
            filter: drop-shadow(0 0 5px var(--viewer-color));
        }

        .hologram-display::before {
            top: 15px;
            left: 15px;
            border-right: none;
            border-bottom: none;
        }

        .hologram-display::after {
            top: 15px;
            right: 15px;
            border-left: none;
            border-bottom: none;
        }

        .hud-corners::before {
            bottom: 15px;
            left: 15px;
            border-right: none;
            border-top: none;
        }

        .hud-corners::after {
            bottom: 15px;
            right: 15px;
            border-left: none;
            border-top: none;
        }

        /* Contenedor del gráfico/canvas del HUD con altura controlada */
        .svg-container {
            height: 440px !important;
            /* 👈 Altura ampliada para que el SVG crezca con amplitud */
            max-height: 52vh !important;
            width: 100%;
            flex-grow: 1;
            position: relative;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 1rem;
        }

        /* Asegura que el elemento <canvas> interno se adapte perfectamente */
        #hologramCanvas {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

        .hologram-data {
            position: relative;
            z-index: 3;
            background: rgba(3, 5, 12, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.4rem;
            border-radius: 10px;
            border-left: 5px solid var(--viewer-color);
            transition: border-left-color 0.4s, box-shadow 0.4s;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            margin-top: auto;
            /* 👈 Empuja el encapsulado de título y descripción más abajo */
        }

        #eng-title {
            color: var(--viewer-color);
            font-family: 'Orbitron', sans-serif;
            font-size: 1.1rem;
            font-weight: 800;
            margin-bottom: 0.8rem;
            min-height: 1.5rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-shadow: 0 0 10px rgba(var(--viewer-color), 0.5);
        }

        #eng-desc {
            color: var(--text-main);
            font-size: 0.9rem;
            line-height: 1.7;
            min-height: 3rem;
        }

        @keyframes flowData {
            to {
                stroke-dashoffset: 0;
            }
        }

        @keyframes flowDataRev {
            to {
                stroke-dashoffset: 200;
            }
        }

        @keyframes pulseSys {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.7;
                filter: drop-shadow(0 0 10px var(--viewer-color));
            }
        }

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

        @keyframes blinkWarn {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.1;
            }
        }

        @keyframes drawPath {
            0% {
                stroke-dashoffset: 1000;
            }

            100% {
                stroke-dashoffset: 0;
            }
        }

        .svg-flow {
            stroke-dasharray: 10;
            stroke-dashoffset: 100;
            animation: flowData 1.5s linear infinite;
        }

        .svg-flow-rev {
            stroke-dasharray: 10;
            stroke-dashoffset: 0;
            animation: flowDataRev 1.5s linear infinite;
        }

        .svg-pulse {
            transform-origin: center;
            animation: pulseSys 2.5s ease-in-out infinite;
        }

        .svg-spin {
            transform-origin: center;
            animation: spinRadar 4s linear infinite;
        }

        .svg-blink {
            animation: blinkWarn 1s infinite;
        }

        .svg-draw {
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: drawPath 3s ease-out forwards;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .filter-container {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2.5rem;
            flex-wrap: wrap;
        }

        .proj-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            padding: 0.6rem 1.4rem;
            border-radius: 25px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s;
            letter-spacing: 1px;
        }

        .proj-btn.active,
        .proj-btn:hover {
            background: var(--active-accent);
            color: #000;
            border-color: var(--active-accent);
            box-shadow: 0 0 20px var(--active-accent);
        }

        /* ESTILOS PARA EL CARRUSEL DE PROYECTOS EN 2 FILAS CON SLIDER HORIZONTAL */
        .projects-carousel-wrapper {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            padding: 0 45px;
        }

        .projects-slider-container {
            display: grid;
            grid-template-rows: repeat(2, minmax(0, 1fr));
            grid-auto-flow: column;
            /* (100% del ancho - 3rem de los 2 gaps internos - 20px de padding lateral) / 3 columnas */
            grid-auto-columns: calc((100% - 3rem - 20px) / 3);
            gap: 1.5rem;
            align-items: stretch;
            overflow-x: hidden;
            scroll-behavior: smooth;
            padding: 1rem 10px;
            /* 10px de margen interno lateral evita que se corte el borde o sombra */
            width: 100%;
        }

        /* Flechas con diseño moderno */
        .carousel-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: rgba(10, 15, 30, 0.85);
            border: 1px solid var(--active-accent);
            color: var(--active-accent);
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(12px);
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .carousel-nav-btn:hover {
            background: var(--active-accent);
            color: #03050C;
            box-shadow: 0 0 25px var(--active-accent), inset 0 0 10px rgba(255, 255, 255, 0.5);
            transform: translateY(-50%) scale(1.12);
        }

        .carousel-prev {
            left: 0px;
        }

        .carousel-next {
            right: 0px;
        }

        /* TARJETAS DE PROYECTO LIMPIAS SIN ENCAPSULADO BLANCO TRANSPARENTE */
        .project-card {
            background: #060913 !important;
            backdrop-filter: none !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            padding: 0.85rem !important;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden !important;
            cursor: pointer;
            /* Mano interactiva en toda la tarjeta */
            transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
        }

        /* Quita el destello radial interno que creaba el aspecto transparentoso */
        .project-card::before {
            display: none !important;
        }

        /* AL PASAR EL MOUSE: NO escala ni desplaza el carrusel; solo cambia el borde y resplandor */
        .project-card:hover {
            transform: none !important;
            /* Impide movimiento de tarjeta o del carrusel completo */
            border-color: var(--active-accent) !important;
            box-shadow: 0 0 20px var(--active-accent), inset 0 0 10px rgba(0, 240, 255, 0.15) !important;
        }

        .project-card.card-b2b:hover {
            border-color: var(--b2b-blue) !important;
            box-shadow: 0 0 25px rgba(0, 82, 255, 0.4), inset 0 0 10px rgba(0, 82, 255, 0.2) !important;
        }

        .project-card.card-b2c:hover {
            border-color: var(--b2c-neon) !important;
            box-shadow: 0 0 25px rgba(127, 212, 67, 0.4), inset 0 0 10px rgba(127, 212, 67, 0.2) !important;
        }

        .project-card.card-smart:hover {
            border-color: var(--smart-gold) !important;
            box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.2) !important;
        }

        .project-img-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            /* Proporción rectangular perfecta (sin aplastar) */
            height: auto !important;
            /* Elimina la altura fija aplastada */
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 0.35rem;
            /* Margen reducido hacia el texto */
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .project-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Ajusta la imagen sin deformarla */
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .project-card h3 {
            font-size: 0.85rem !important;
            margin-bottom: 0.2rem !important;
            line-height: 1.25 !important;
        }

        .project-card p {
            font-size: 0.75rem !important;
            margin-bottom: 0.3rem !important;
            line-height: 1.3 !important;
        }

        .project-card:hover .project-img-wrapper img {
            transform: scale(1.08);
        }

        .btn-gallery-detail {
            margin-top: 0.35rem !important;
            margin-bottom: 0 !important;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #FFF;
            padding: 0.5rem 0.4rem !important;
            /* Botón más compacto */
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.68rem;
            transition: all 0.4s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            white-space: nowrap;
        }

        .btn-gallery-detail:hover {
            background: var(--active-accent);
            color: #000;
            border-color: var(--active-accent);
            box-shadow: 0 0 15px var(--active-accent);
        }

        /* --- LIGHTBOX MODAL SIN SCROLL Y CON PANTALLA COMPLETA --- */
        .lightbox-modal {
            position: fixed;
            inset: 0;
            background: rgba(2, 3, 8, 0.98);
            backdrop-filter: blur(30px);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 0.8rem;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .lightbox-modal.active {
            display: flex;
            opacity: 1;
        }

        /* ==========================================================================
           SISTEMA LIGHTBOX CORPORATIVO & VISOR FULLSCREEN 3D MASTER - JGG HOLDING
           ========================================================================== */
        .lightbox-content {
            position: relative;
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
            background: rgba(10, 15, 30, 0.98);
            border: 1px solid var(--active-accent);
            border-radius: 18px;
            padding: 1.2rem 1.4rem;
            box-shadow: 0 0 50px rgba(0, 240, 255, 0.35);
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            overflow-y: auto !important;
            scrollbar-width: thin;
        }

        .lightbox-content::-webkit-scrollbar {
            width: 6px;
        }

        .lightbox-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 10px;
        }

        .lightbox-content::-webkit-scrollbar-thumb {
            background: var(--active-accent);
            border-radius: 10px;
            box-shadow: 0 0 10px var(--active-accent);
        }

        .lightbox-close {
            position: absolute;
            top: 12px;
            right: 15px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #FFF;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            font-size: 1.1rem;
            cursor: pointer;
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .lightbox-close:hover {
            background: var(--active-accent);
            color: #000;
            border-color: var(--active-accent);
            transform: scale(1.08);
        }

        .lightbox-screen {
            position: relative;
            width: 100%;
            height: clamp(275px, 46vh, 430px);
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.12);
            cursor: pointer;
            flex-shrink: 0;
        }

        .lightbox-screen img,
        .lightbox-screen iframe,
        .lightbox-screen video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border: none;
            outline: none;
            border-radius: 8px;
        }

        .btn-fullscreen-overlay {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(3, 5, 12, 0.88);
            border: 1px solid var(--active-accent);
            color: #FFF;
            padding: 6px 14px;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 10;
            transition: all 0.3s;
            backdrop-filter: blur(8px);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
        }

        .btn-fullscreen-overlay:hover {
            background: var(--active-accent);
            color: #000;
            box-shadow: 0 0 15px var(--active-accent);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #FFF;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 10;
        }

        .lightbox-nav:hover {
            background: var(--active-accent);
            color: #000;
            transform: translateY(-50%) scale(1.1);
        }

        .lightbox-prev {
            left: 12px;
        }

        .lightbox-next {
            right: 12px;
        }

        /* --- TIRA DE MINIATURAS 3D MULTIMEDIA --- */
        .lightbox-thumbnails {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 10px;
            width: 100%;
            overflow-x: auto;
            padding: 8px 4px;
            scrollbar-width: thin;
            flex-shrink: 0;
        }

        .lightbox-thumb {
            width: 65px;
            height: 65px;
            aspect-ratio: 1 / 1;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid rgba(255, 255, 255, 0.12);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            flex-shrink: 0;
            position: relative;
            background: #02040A;
        }

        .lightbox-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .lightbox-thumb.active,
        .lightbox-thumb:hover {
            border-color: var(--active-accent);
            box-shadow: 0 0 15px var(--active-accent);
            transform: translateY(-3px) scale(1.05);
        }

        /* Insignia 3D y Carátula para Video y YouTube */
        .lightbox-thumb.thumb-video::before,
        .lightbox-thumb.thumb-youtube::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(3, 5, 12, 0.7) 100%);
            z-index: 1;
            pointer-events: none;
        }

        .thumb-play-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(3, 5, 12, 0.85);
            border: 1.5px solid var(--active-accent);
            color: var(--active-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            z-index: 2;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 10px var(--active-accent);
            transition: all 0.3s;
        }

        .thumb-youtube .thumb-play-badge {
            border-color: #FF0000;
            color: #FF0000;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 0, 0, 0.6);
        }

        .lightbox-thumb:hover .thumb-play-badge,
        .lightbox-thumb.active .thumb-play-badge {
            transform: translate(-50%, -50%) scale(1.15);
            background: var(--active-accent);
            color: #03050C;
        }

        .lightbox-thumb.thumb-youtube:hover .thumb-play-badge,
        .lightbox-thumb.thumb-youtube.active .thumb-play-badge {
            background: #FF0000;
            color: #FFF;
        }

        .thumb-type-tag {
            position: absolute;
            bottom: 2px;
            left: 2px;
            right: 2px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.45rem;
            font-weight: 800;
            text-align: center;
            background: rgba(3, 5, 12, 0.88);
            color: var(--active-accent);
            border-radius: 3px;
            z-index: 2;
            padding: 1px 0;
            letter-spacing: 0.5px;
        }

        .thumb-youtube .thumb-type-tag {
            color: #FF4444;
        }

        /* --- INFORMACIÓN DEL PROYECTO & ACCIONES --- */
        .lightbox-info {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .lightbox-info h3 {
            font-family: 'Orbitron', sans-serif;
            color: #FFF;
            font-size: 1.25rem;
            margin-bottom: 0.2rem;
            line-height: 1.2;
        }

        .lightbox-info p {
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.55;
            margin: 0;
        }

        .lightbox-actions-row {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin-top: 0.4rem;
        }

        .lightbox-doc-download {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 0.6rem 1.1rem;
            border-radius: 8px;
            color: #FFF;
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            transition: all 0.3s;
        }

        .lightbox-doc-download:hover {
            background: var(--active-accent);
            color: #000;
            border-color: var(--active-accent);
            box-shadow: 0 0 15px var(--active-accent);
        }

        .lightbox-map-external-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0, 240, 255, 0.06);
            border: 1px solid var(--border-glow);
            padding: 0.6rem 1.1rem;
            border-radius: 8px;
            color: var(--color-holding);
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            transition: all 0.3s;
        }

        .lightbox-map-external-btn:hover {
            background: var(--active-accent);
            color: #03050C;
            box-shadow: 0 0 15px var(--active-accent);
        }

        /* --- MÓDULO INTERACTIVO GOOGLE MAPS 3D / STREET VIEW (TÁCTIL CORREGIDO) --- */
        .lightbox-map-container {
            margin-top: 0.5rem;
            background: rgba(3, 5, 12, 0.85);
            border: 1px solid var(--border-glow);
            border-radius: 14px;
            padding: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            transition: all 0.4s ease;
        }

        .lightbox-map-container:hover {
            border-color: var(--active-accent);
            box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
        }

        .lightbox-map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .lightbox-map-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            font-weight: 800;
            color: #FFF;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.5px;
        }

        .lightbox-map-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lightbox-map-badge {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.62rem;
            font-weight: 800;
            color: #00FF88;
            background: rgba(0, 255, 136, 0.12);
            border: 1px solid #00FF88;
            padding: 3px 10px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
        }

        .btn-fullscreen-map {
            background: rgba(0, 240, 255, 0.1);
            border: 1px solid var(--active-accent);
            color: #FFF;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.62rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }

        .btn-fullscreen-map:hover {
            background: var(--active-accent);
            color: #03050C;
            box-shadow: 0 0 15px var(--active-accent);
        }

        .lightbox-map-wrapper {
            position: relative;
            width: 100%;
            height: 280px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: #020308;
            touch-action: none !important;
            /* Desactiva el scroll del modal al tocar el mapa en celular */
        }

        .lightbox-map-wrapper iframe {
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
            touch-action: none !important;
            pointer-events: auto !important;
        }

        /* Modo Inmersivo Expandido para Street View en Celular y PC */
        .lightbox-map-container.expanded {
            position: fixed !important;
            inset: 12px !important;
            z-index: 2500 !important;
            height: calc(100vh - 24px) !important;
            margin: 0 !important;
            background: rgba(3, 5, 12, 0.98) !important;
            box-shadow: 0 0 60px rgba(0, 240, 255, 0.4) !important;
        }

        .lightbox-map-container.expanded .lightbox-map-wrapper {
            height: 100% !important;
        }

        /* --- SLIDER INTERACTIVO ANTES / DESPUÉS (CONTRASTE COGNITIVO LUXURY) --- */
        .ba-slider-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            user-select: none;
            border-radius: 8px;
            background: #000;
            touch-action: none;
            /* Arrastre horizontal puro sin interferir con la pantalla */
        }

        .ba-slider-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
            display: block;
        }

        .ba-slider-before {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
            z-index: 2;
        }

        .ba-slider-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            left: var(--ba-pos, 50%);
            width: 3px;
            background: var(--active-accent);
            box-shadow: 0 0 15px var(--active-accent);
            z-index: 5;
            transform: translateX(-50%);
            cursor: ew-resize;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ba-handle-button {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(3, 5, 12, 0.92);
            border: 2px solid var(--active-accent);
            color: var(--active-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            box-shadow: 0 0 20px var(--active-accent);
            cursor: ew-resize;
            transition: transform 0.2s;
        }

        .ba-slider-handle:hover .ba-handle-button {
            transform: scale(1.15);
            background: var(--active-accent);
            color: #03050C;
        }

        .ba-badge-tag {
            position: absolute;
            top: 14px;
            padding: 5px 12px;
            border-radius: 6px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 1px;
            z-index: 4;
            pointer-events: none;
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
        }

        .ba-badge-before {
            left: 14px;
            background: rgba(255, 46, 147, 0.85);
            color: #FFF;
            border: 1px solid #FF2E93;
        }

        .ba-badge-after {
            right: 14px;
            background: rgba(0, 240, 255, 0.85);
            color: #03050C;
            border: 1px solid #00F0FF;
        }

        /* --- VISOR DE PANTALLA COMPLETA INTERACTIVO (CONTROLES DE VIDEO 100% DESPEJADOS) --- */
        .fullscreen-viewer {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.98);
            z-index: 3000;
            display: none;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 25px 20px 20px 20px;
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            opacity: 0;
            transition: opacity 0.3s ease;
            user-select: none;
            box-sizing: border-box;
        }

        .fullscreen-viewer.active {
            display: flex;
            opacity: 1;
        }

        /* Contenedor central flexible que nunca colisiona con el texto inferior */
        .fullscreen-media-container {
            flex: 1 1 auto;
            width: 100%;
            min-height: 0;
            /* Permite redimensionar el video fluidamente */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 3005;
            margin: 0;
            padding: 0;
        }

        .fullscreen-media-container img,
        .fullscreen-media-container video {
            max-width: 92vw;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 240, 255, 0.2);
            outline: none;
        }

        .fullscreen-media-container iframe {
            width: 88vw;
            height: 100%;
            max-width: 1200px;
            border: none;
            border-radius: 12px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 240, 255, 0.2);
        }

        .fullscreen-close {
            position: absolute;
            top: 20px;
            right: 25px;
            background: rgba(10, 15, 30, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #FFF;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 3020;
            backdrop-filter: blur(10px);
        }

        .fullscreen-close:hover {
            background: #FF2E93;
            border-color: #FF2E93;
            color: #FFF;
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 0 20px #FF2E93;
        }

        /* Flechas Flotantes Laterales */
        .fullscreen-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(8, 12, 24, 0.88);
            border: 1px solid var(--active-accent);
            color: var(--active-accent);
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 3020;
            backdrop-filter: blur(12px);
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
        }

        .fullscreen-nav:hover {
            background: var(--active-accent);
            color: #03050C;
            box-shadow: 0 0 30px var(--active-accent);
            transform: translateY(-50%) scale(1.15);
        }

        .fullscreen-prev {
            left: 25px;
        }

        .fullscreen-next {
            right: 25px;
        }

        /* Barra Inferior en Flujo Natural (Debajo de los controles de video) */
        .fullscreen-caption-bar {
            position: relative;
            bottom: auto;
            left: auto;
            transform: none;
            flex-shrink: 0;
            margin-top: 14px;
            background: rgba(6, 10, 22, 0.94);
            border: 1px solid var(--border-glow);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 14px;
            padding: 12px 22px;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            z-index: 3020;
            width: auto;
            max-width: min(900px, 92vw);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.15);
        }

        .fullscreen-counter {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--active-accent);
            background: rgba(0, 240, 255, 0.1);
            border: 1px solid var(--border-glow);
            padding: 4px 10px;
            border-radius: 8px;
            letter-spacing: 1px;
            white-space: nowrap;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .fullscreen-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 0.84rem;
            color: var(--text-muted);
            white-space: normal;
            word-wrap: break-word;
            overflow-wrap: break-word;
            line-height: 1.5;
            text-align: left;
            flex-grow: 1;
        }

        .fullscreen-text strong {
            color: #FFF;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.88rem;
            letter-spacing: 0.5px;
            line-height: 1.3;
        }

        @media (max-width: 768px) {
            .fullscreen-viewer {
                padding: 15px 10px 12px 10px;
            }

            .fullscreen-caption-bar {
                margin-top: 8px;
                padding: 8px 12px;
                max-width: 96vw;
                gap: 8px;
            }

            .fullscreen-counter {
                font-size: 0.7rem;
                padding: 2px 6px;
            }

            .fullscreen-text {
                font-size: 0.72rem;
                line-height: 1.35;
            }

            .fullscreen-text strong {
                font-size: 0.76rem;
            }

            .fullscreen-nav {
                width: 38px;
                height: 38px;
                font-size: 1rem;
            }

            .fullscreen-prev {
                left: 6px;
            }

            .fullscreen-next {
                right: 6px;
            }
        }

        .timeline {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 3px;
            background: var(--active-accent);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -1.5px;
            box-shadow: 0 0 15px var(--active-accent);
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            background: inherit;
            width: 50%;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            background-color: var(--bg-dark);
            border: 4px solid var(--active-accent);
            top: 15px;
            border-radius: 50%;
            z-index: 1;
            box-shadow: 0 0 10px var(--active-accent);
        }

        .left {
            left: 0;
        }

        .right {
            left: 50%;
        }

        .right::after {
            left: -10px;
        }

        .timeline-content {
            padding: 1.5rem;
            background: rgba(10, 15, 30, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            backdrop-filter: blur(10px);
        }

        .contact-layout {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 3rem;
            align-items: start;
        }

        .contact-card-list {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .contact-filial-card {
            background: rgba(10, 15, 30, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.4s;
            display: flex;
            align-items: center;
            gap: 1.2rem;
        }

        .contact-filial-card:hover,
        .contact-filial-card.active {
            border-color: var(--active-accent);
            background: rgba(10, 15, 30, 0.95);
            transform: translateX(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.05);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--active-accent);
            flex-shrink: 0;
        }

        .form-group {
            margin-bottom: 1.2rem;
        }

        .form-label {
            display: block;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            background: rgba(3, 5, 12, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0.9rem 1.2rem;
            border-radius: 10px;
            color: #FFF;
            font-size: 0.9rem;
            outline: none;
            transition: all 0.4s;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            border-color: var(--active-accent);
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
        }

        footer {
            background: #010205;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 3rem 5% 1.5rem 5%;
            position: relative;
            z-index: 2;
        }

        /* ==========================================
           RESPONSIVIDAD MASTER TOP-LEVEL (MOBILE, TABLET & TV)
           ========================================== */
        @media (max-width: 992px) {
            * {
                max-width: 100%;
                box-sizing: border-box;
            }

            body {
                overflow-x: hidden;
                width: 100%;
                position: relative;
            }

            section {
                padding: 4rem 4% 2.5rem 4% !important;
                min-height: auto !important;
            }

            /* HEADER Y MENÚ DESPLEGABLE */
            header {
                padding: 0.8rem 4%;
            }

            .logo {
                font-size: 0.85rem;
                white-space: normal;
            }

            .menu-toggle {
                display: block;
                font-size: 1.5rem;
                background: none;
                border: none;
                color: #FFF;
                cursor: pointer;
            }

            nav ul {
                position: fixed;
                top: 0;
                right: 0;
                width: 280px;
                height: 100vh;
                background: rgba(3, 5, 12, 0.98);
                backdrop-filter: blur(25px);
                -webkit-backdrop-filter: blur(25px);
                flex-direction: column;
                justify-content: center;
                align-items: stretch;
                padding: 3rem 1.5rem;
                gap: 0.6rem;
                transform: translateX(100%);
                transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
                border-left: 1px solid var(--border-glow);
                box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
                z-index: 1005;
            }

            nav ul.active {
                transform: translateX(0);
            }

            nav a {
                font-size: 0.82rem;
                padding: 10px 15px;
                display: block;
                width: 100%;
                border-radius: 8px;
                text-align: left;
            }

            /* ESTRUCTURA DE REJILLAS Y GRIDS EN MÓVIL */
            .hero-grid,
            .grid-3,
            .grid-4,
            .grid-2,
            .contact-layout {
                grid-template-columns: 1fr !important;
                width: 100%;
                gap: 1.8rem;
            }

            /* AJUSTE TARJETAS DE UNIDADES DE NEGOCIO EN CELULAR */
            .holding-grid {
                grid-template-columns: 1fr !important;
                width: 100%;
                gap: 3.5rem !important;
                margin-top: 2rem !important;
            }

            .unit-card {
                margin-top: 25px !important;
                padding-top: 4.2rem !important;
                padding-left: 1.2rem !important;
                padding-right: 1.2rem !important;
                padding-bottom: 2rem !important;
            }

            .profile-frame-upgrade {
                max-width: 320px;
                margin: 0 auto;
            }

            /* AGENDA HITOS 2026 */
            .timeline {
                max-width: 100%;
            }

            .timeline::after {
                left: 20px;
            }

            .timeline-item {
                width: 100%;
                padding-left: 50px;
                padding-right: 0;
            }

            .timeline-item.right {
                left: 0;
            }

            .timeline-item::after,
            .timeline-item.right::after {
                left: 10px;
            }

            .timeline-content {
                padding: 1.2rem;
            }

            /* VISOR H.U.D. EN CELULAR */
            .engineering-box {
                display: flex;
                flex-direction: column;
                gap: 1.2rem;
                padding: 0;
                width: 100%;
                background: transparent;
                border: none;
                box-shadow: none;
                overflow: visible !important;
            }

            .hologram-display {
                order: 1;
                position: relative !important;
                top: 0 !important;
                z-index: 10;
                min-height: 280px !important;
                max-height: 420px !important;
                padding: 1rem !important;
                background: #020308;
                border: 1px solid var(--viewer-color);
                border-radius: 16px;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
            }

            .svg-container {
                height: 220px !important;
                max-height: 35vh !important;
                padding: 0.5rem !important;
            }

            .hologram-data {
                padding: 1rem !important;
            }

            #eng-title {
                font-size: 0.95rem !important;
                margin-bottom: 0.4rem !important;
            }

            #eng-desc {
                font-size: 0.82rem !important;
                line-height: 1.5 !important;
                min-height: auto !important;
            }

            .eng-sidebar {
                order: 2;
                display: flex !important;
                flex-direction: column !important;
                gap: 1.2rem !important;
                padding: 0 0.2rem 1.5rem 0.2rem !important;
                width: 100% !important;
                max-height: none !important;
                overflow: visible !important;
            }

            .eng-company-group {
                flex-direction: column !important;
                gap: 0.8rem !important;
                padding: 1rem !important;
                background: rgba(10, 15, 30, 0.9) !important;
                border-radius: 16px !important;
                border: 1px solid rgba(255, 255, 255, 0.15) !important;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
            }

            .eng-company-title {
                font-size: 0.9rem !important;
                font-weight: 900 !important;
                margin-bottom: 0.4rem !important;
                padding-bottom: 8px !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            }

            .eng-btn {
                width: 100% !important;
                padding: 0.85rem 1rem !important;
                font-size: 0.82rem !important;
                font-weight: 700 !important;
                background: rgba(255, 255, 255, 0.03) !important;
                border: 1px solid rgba(255, 255, 255, 0.08) !important;
                border-radius: 10px !important;
            }

            /* CARRUSEL DE PROYECTOS EN MÓVIL */
            .projects-carousel-wrapper {
                padding: 0 5px;
            }

            .projects-slider-container {
                grid-template-rows: repeat(2, auto);
                grid-auto-columns: calc(100% - 10px);
                gap: 1rem;
                padding: 0.8rem 5px 1.2rem 5px;
                scroll-padding: 0 5px;
            }

            .carousel-nav-btn {
                width: 36px;
                height: 36px;
                font-size: 0.85rem;
            }

            .carousel-prev {
                left: -5px;
            }

            .carousel-next {
                right: -5px;
            }

            .project-card {
                scroll-snap-align: center;
                padding: 0.85rem !important;
            }

            .btn-gallery-detail {
                white-space: normal !important;
                text-align: center;
                padding: 0.6rem 0.4rem !important;
            }

            /* GALERÍA / LIGHTBOX THUMBNAILS */
            .lightbox-thumbnails {
                display: flex;
                justify-content: flex-start;
                gap: 10px;
                overflow-x: auto;
                grid-template-columns: unset !important;
            }
        }

        @media (max-width: 576px) {
            section {
                padding: 3.5rem 3% 2rem 3% !important;
            }

            .section-title {
                font-size: 1.35rem;
            }

            .hero-text h1 {
                font-size: 1.55rem;
                line-height: 1.15;
            }

            .hero-subtitle {
                font-size: 0.9rem;
            }

            .holding-badge-box {
                padding: 1rem;
            }

            .glass-card {
                padding: 1.2rem;
            }

            .timeline-content h4 {
                font-size: 0.9rem;
            }

            .timeline-content p {
                font-size: 0.78rem;
            }
        }

        /* CORRECCIÓN VISOR HUD: MODO ESCRITORIO VERTICAL Y COLOR DINÁMICO */
        @media (min-width: 993px) {
            .hud-carousel-wrapper {
                display: block !important;
            }

            .hud-carousel-btn {
                display: none !important;
            }

            .hud-carousel-track {
                display: flex !important;
                flex-direction: column !important;
                gap: 0.8rem !important;
            }

            .hud-slide {
                display: flex !important;
                opacity: 1 !important;
                transform: none !important;
                min-width: auto !important;
                width: 100% !important;
            }
        }

        .hologram-display {
            transition: border-color 0.4s ease, box-shadow 0.4s ease;
            border-color: var(--viewer-color, #00F0FF) !important;
        }

        .hologram-data {
            border-left-color: var(--viewer-color, #00F0FF) !important;
            transition: border-left-color 0.4s ease;
        }

        #eng-title {
            color: var(--viewer-color, #00F0FF) !important;
            transition: color 0.4s ease;
        }

        /* CREDENCIAL EXECUTIVE CEO & MODAL HOLO-LUXE */
        .profile-frame-upgrade {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            border: 2px solid var(--color-holding);
            box-shadow: 0 0 35px rgba(0, 240, 255, 0.25), 0 0 60px rgba(0, 240, 255, 0.15);
            background: #02040A;
            width: 100%;
            max-width: 390px;
            margin: 0 auto;
            aspect-ratio: 4/5;
            cursor: pointer;
            transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
            transform-style: preserve-3d;
            perspective: 1000px;
        }

        .profile-frame-upgrade:hover {
            transform: translateY(-8px) rotateX(4deg) rotateY(-4deg) scale(1.02);
            box-shadow: 0 20px 50px rgba(0, 240, 255, 0.5), 0 0 80px rgba(112, 224, 255, 0.35);
            border-color: #70E0FF;
        }

        .hud-badge-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(3, 5, 12, 0.1) 0%, rgba(3, 5, 12, 0.7) 60%, rgba(3, 5, 12, 0.98) 100%);
            z-index: 2;
            pointer-events: none;
        }

        .scan-line-badge {
            position: absolute;
            top: -100%;
            left: 0;
            width: 100%;
            height: 30%;
            background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.25), transparent);
            animation: scanBadge 4s linear infinite;
            z-index: 3;
            pointer-events: none;
        }

        @keyframes scanBadge {
            0% {
                top: -30%;
            }

            100% {
                top: 130%;
            }
        }

        .ceo-status-tag {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(3, 5, 12, 0.85);
            border: 1px solid var(--color-holding);
            backdrop-filter: blur(10px);
            padding: 6px 14px;
            border-radius: 20px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.65rem;
            color: var(--color-holding);
            font-weight: 800;
            letter-spacing: 1.5px;
            z-index: 4;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
        }

        .status-pulse-dot {
            width: 8px;
            height: 8px;
            background-color: #00FF88;
            border-radius: 50%;
            box-shadow: 0 0 10px #00FF88;
            animation: pulseDot 1.5s infinite;
        }

        @keyframes pulseDot {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.4);
                opacity: 0.4;
            }
        }

        /* MODAL HOLO-LUXE CEO */
        .ceo-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(2, 4, 10, 0.92);
            backdrop-filter: blur(25px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .ceo-modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .ceo-modal-container {
            width: 100%;
            max-width: 950px;
            max-height: 90vh;
            background: rgba(8, 12, 24, 0.95);
            border: 1px solid rgba(0, 240, 255, 0.4);
            border-radius: 24px;
            box-shadow: 0 0 60px rgba(0, 240, 255, 0.2), inset 0 0 30px rgba(0, 240, 255, 0.05);
            overflow-y: scroll;
            position: relative;
            padding: 1.8rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            scrollbar-gutter: stable;
        }

        .ceo-modal-container::-webkit-scrollbar {
            width: 6px;
        }

        .ceo-modal-container::-webkit-scrollbar-thumb {
            background: var(--color-holding);
            border-radius: 10px;
        }

        /* ENCABEZADO UNIFICADO Y HOMOGÉNEO */
        .ceo-header-banner {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 1.2rem;
            gap: 1.2rem;
            width: 100%;
        }

        .ceo-header-banner h2 {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.2rem;
            font-weight: 900;
            color: #FFFFFF;
            letter-spacing: 0.5px;
            line-height: 1.3;
            margin-bottom: 0.3rem;
            word-break: normal;
            overflow-wrap: break-word;
        }

        .ceo-header-banner p {
            font-size: 0.8rem;
            line-height: 1.4;
            color: var(--color-holding);
            font-weight: 600;
        }

        .ceo-modal-close {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #FFF;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .ceo-modal-close:hover {
            background: #FF2E93;
            border-color: #FF2E93;
            box-shadow: 0 0 15px #FF2E93;
        }

        /* BARRA DE PESTAÑAS FIJA Y CENTRADA */
        .ceo-tabs-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.6rem;
            border-bottom: 1px solid rgba(0, 240, 255, 0.2);
            padding: 0.5rem 0 0.8rem 0;
            margin-bottom: 0.8rem;
            overflow-x: auto;
            white-space: nowrap;
            flex-shrink: 0 !important;
            position: sticky;
            top: 0;
            background: rgba(8, 12, 24, 0.98);
            z-index: 30;
            -webkit-overflow-scrolling: touch;
        }

        .ceo-tab-btn {
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            padding: 0.6rem 1.2rem;
            border-radius: 10px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .ceo-tab-btn.active,
        .ceo-tab-btn:hover {
            background: var(--color-holding);
            color: #000;
            border-color: var(--color-holding);
            box-shadow: 0 0 15px var(--color-holding);
        }

        .ceo-tab-content {
            display: none;
            padding-top: 0.2rem !important;
            margin-top: 0 !important;
            animation: fadeInTab 0.4s ease forwards;
            width: 100%;
        }

        .ceo-tab-content.active {
            display: block;
        }

        @keyframes fadeInTab {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .holding-grid-modal {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.2rem;
            margin-top: 1rem;
        }

        /* RESPONSIVIDAD ESPECÍFICA MÓVIL (MODAL CEO) */
        @media (max-width: 768px) {
            .ceo-modal-overlay {
                padding: 0.6rem !important;
            }

            .ceo-modal-container {
                padding: 1.2rem 0.9rem !important;
                max-height: 94vh !important;
                border-radius: 18px !important;
                gap: 0.8rem !important;
            }

            .ceo-header-banner {
                flex-direction: row !important;
                align-items: flex-start !important;
                justify-content: space-between !important;
                padding-bottom: 0.8rem !important;
            }

            .ceo-header-banner h2 {
                font-size: 0.98rem !important;
                line-height: 1.25 !important;
                letter-spacing: 0px !important;
            }

            .ceo-header-banner p {
                font-size: 0.72rem !important;
                line-height: 1.3 !important;
            }

            .ceo-tabs-nav {
                justify-content: flex-start !important;
                gap: 0.5rem;
                padding-bottom: 0.6rem;
            }

            .ceo-tab-btn {
                font-size: 0.68rem;
                padding: 0.5rem 0.85rem;
            }

            /* APILAMIENTO VERTICAL TOTAL (PERFILES EJECUTIVOS, EXPANSIÓN Y VISIÓN) */
            .ceo-tab-content .grid-2,
            .ceo-tab-content [class*="grid"],
            .ceo-tab-content div[style*="flex"],
            .ceo-tab-content div[style*="grid"],
            .ceo-tab-content>div,
            .ceo-tab-content>div>div,
            .holding-grid-modal {
                display: flex !important;
                flex-direction: column !important;
                grid-template-columns: 1fr !important;
                gap: 1.2rem !important;
                width: 100% !important;
            }

            /* CENTRADO DE IMAGEN ARRIBA Y TEXTO DEBAJO EN PERFILES EJECUTIVOS */
            .ceo-tab-content .profile-frame-upgrade {
                max-width: 280px !important;
                width: 100% !important;
                height: auto !important;
                margin: 0 auto 1.5rem auto !important;
                align-self: center !important;
                display: block !important;
            }

            .ceo-tab-content img {
                max-width: 100% !important;
                height: auto !important;
                margin: 0 auto 1rem auto !important;
                display: block !important;
            }
        }

        @media (max-width: 768px) {
            .ceo-modal-container {
                padding: 1.2rem 1rem !important;
            }

            .ceo-tabs-nav {
                gap: 0.5rem;
                padding-bottom: 0.6rem;
            }

            .ceo-tab-btn {
                font-size: 0.68rem;
                padding: 0.5rem 0.9rem;
            }
        }

        /* ==========================================================================
           GARANTÍA DE TRANSPARENCIA EN LOGOS PNG DE UNIDADES DE NEGOCIO
           ========================================================================== */
        .unit-logo-container {
            background: #03050C !important;
        }

        .unit-logo-container img {
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16)) !important;
        }

        /* ==========================================================================
           BARRA SUPERIOR EJECUTIVA CONGRUENTE + MENÚ DESPLEGABLE CORPORATIVO
           ========================================================================== */
        header {
            padding: 0.65rem 2.2% !important;
            gap: 0.7rem;
        }

        header {
            padding: 0.65rem clamp(1rem, 2.2vw, 2.5rem) !important;
            gap: 0.75rem;
        }

        header.scrolled {
            padding: 0.5rem clamp(1rem, 2.2vw, 2.5rem) !important;
        }

        nav ul {
            gap: clamp(0.12rem, 0.3vw, 0.35rem) !important;
            flex-wrap: nowrap;
            align-items: center;
        }

        nav a,
        .nav-dropdown-trigger {
            font-family: 'Inter', sans-serif !important;
            font-size: clamp(0.6rem, 0.68vw, 0.74rem) !important;
            font-weight: 700 !important;
            letter-spacing: 0.5px !important;
            text-transform: uppercase !important;
            padding: 6px clamp(5px, 0.55vw, 9px) !important;
            color: var(--text-muted) !important;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 6px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            position: relative;
        }

        .nav-dropdown-trigger::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--active-accent);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-dropdown-trigger:hover,
        nav a:hover,
        nav a.active-nav,
        .nav-dropdown-trigger.active-nav {
            color: #FFF !important;
            background: rgba(255, 255, 255, 0.05);
            text-shadow: 0 0 8px var(--active-accent);
        }

        nav a.active-nav::before,
        .nav-dropdown-trigger:hover::before,
        .nav-dropdown-trigger.active-nav::before {
            width: 80%;
            box-shadow: 0 0 10px var(--active-accent);
        }

        .nav-cta-contacto {
            background: rgba(0, 240, 255, 0.1) !important;
            border: 1px solid var(--active-accent) !important;
            color: #FFF !important;
            padding: 6px clamp(8px, 0.7vw, 12px) !important;
            border-radius: 7px !important;
        }

        .nav-cta-contacto:hover,
        .nav-cta-contacto.active-nav {
            background: var(--active-accent) !important;
            color: #03050C !important;
            box-shadow: 0 0 15px var(--active-accent);
            text-shadow: none !important;
        }

        .nav-dropdown-wrapper {
            position: relative;
        }

        .nav-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 260px;
            background: rgba(3, 5, 12, 0.98);
            border: 1px solid var(--active-accent);
            border-radius: 12px;
            padding: 0.55rem;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 240, 255, 0.18);
            backdrop-filter: blur(24px);
            display: none;
            flex-direction: column;
            gap: 3px;
            z-index: 2000;
        }

        .nav-dropdown-wrapper:hover .nav-dropdown-menu,
        .nav-dropdown-menu.open {
            display: flex;
        }

        .nav-dropdown-menu a {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.7rem !important;
            font-weight: 700 !important;
            letter-spacing: 0.5px !important;
            text-transform: uppercase !important;
            padding: 8px 11px !important;
            color: var(--text-muted) !important;
            border-radius: 7px;
            display: flex !important;
            align-items: center;
            gap: 9px;
            width: 100%;
            border-left: 2px solid transparent;
        }

        .nav-dropdown-menu a::before {
            display: none !important;
        }

        .nav-sec-idx {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.6rem;
            font-weight: 800;
            color: var(--active-accent);
            background: rgba(0, 240, 255, 0.08);
            border: 1px solid rgba(0, 240, 255, 0.25);
            padding: 1px 5px;
            border-radius: 4px;
            min-width: 22px;
            text-align: center;
        }

        .nav-dropdown-menu a:hover,
        .nav-dropdown-menu a.active-nav {
            background: rgba(0, 240, 255, 0.1) !important;
            color: #FFF !important;
            border-left-color: var(--active-accent);
            transform: translateX(3px);
        }

        .mobile-only-nav {
            display: none;
        }

        .mobile-group-divider {
            margin-top: 0.4rem;
            padding: 6px 12px 2px 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-group-divider span {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.62rem;
            font-weight: 800;
            color: var(--active-accent);
            letter-spacing: 1.5px;
        }

        @media (max-width: 1080px) {
            .menu-toggle {
                display: block !important;
            }

            .nav-dropdown-wrapper {
                display: none !important;
            }

            .mobile-only-nav {
                display: block !important;
                width: 100%;
            }

            nav ul {
                position: fixed;
                top: 0;
                right: 0;
                width: 300px;
                height: 100vh;
                background: rgba(3, 5, 12, 0.98);
                backdrop-filter: blur(25px);
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                padding: 4.5rem 1.4rem 2rem 1.4rem;
                gap: 0.45rem !important;
                overflow-y: auto;
                transform: translateX(100%);
                transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
                border-left: 1px solid var(--border-glow);
                box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
                z-index: 1005;
            }

            nav ul.active {
                transform: translateX(0);
            }

            nav a {
                font-size: 0.8rem !important;
                padding: 9px 12px !important;
                width: 100%;
            }
        }

        @media (min-width: 1920px) {
            section {
                max-width: 1820px;
                margin-left: auto;
                margin-right: auto;
            }

            .hero-text h1 {
                font-size: 3.8rem;
            }

            .section-title {
                font-size: 3.2rem;
            }
        }

        @media (max-height: 540px) and (orientation: landscape) {
            header {
                padding: 0.35rem 2% !important;
            }

            section {
                padding: 3.2rem 3% 2rem 3% !important;
            }

            .lightbox-content {
                max-height: 95vh !important;
                padding: 0.75rem 1rem !important;
                gap: 0.5rem !important;
            }

            .lightbox-screen {
                height: 44vh !important;
                min-height: 150px !important;
            }

            .lightbox-map-wrapper {
                height: 190px !important;
            }

            .ceo-modal-container {
                max-height: 95vh !important;
                padding: 1rem !important;
            }

            nav ul {
                overflow-y: auto !important;
                justify-content: flex-start !important;
                padding-top: 3.5rem !important;
            }
        }

        /* Estilos para los Módulos Corporativos */
        .tech-pill-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.68rem;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #E2E8F0;
            transition: all 0.3s ease;
        }

        .tech-pill-badge:hover {
            border-color: var(--active-accent);
            color: var(--active-accent);
            background: rgba(0, 240, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
        }

        .code-terminal-box {
            background: #020409;
            border: 1px solid var(--border-glow);
            border-radius: 14px;
            padding: 1.1rem;
            font-family: 'Courier New', monospace;
            font-size: 0.78rem;
            color: #00FF88;
            line-height: 1.55;
            overflow-x: auto;
            box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
        }

        .noc-metric-box {
            background: rgba(4, 10, 24, 0.9);
            border: 1px solid rgba(0, 240, 255, 0.22);
            border-radius: 14px;
            padding: 1rem 1.2rem;
            display: flex;
            flex-direction: column;
            gap: 4px;
            transition: all 0.3s ease;
        }

        .noc-metric-box:hover {
            border-color: var(--active-accent);
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.18);
        }

        /* CARRUSEL MULTI-SERVICIO ANTES Y DESPUÉS CON ETIQUETAS <IMG> REALES */
        .ba-compare-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: 460px;
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid var(--active-accent);
            background: #02050A;
            user-select: none;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
        }

        .ba-compare-wrapper img.ba-slider-img {
            width: 100%;
            height: 100%;
            object-fit: cover !important;
            display: block;
        }

        .ba-service-pills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
            gap: 8px;
            margin-bottom: 1.2rem;
        }

        .ba-service-pill-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #CBD5E1;
            padding: 8px 10px;
            border-radius: 10px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.65rem;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ba-service-pill-btn i {
            color: var(--active-accent);
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .ba-service-pill-btn:hover,
        .ba-service-pill-btn.active {
            background: rgba(0, 240, 255, 0.14);
            border-color: var(--active-accent);
            color: #FFF;
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.22);
            transform: translateY(-2px);
        }

        .faq-item-box {
            background: rgba(6, 10, 22, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-item-box.open {
            border-color: var(--active-accent);
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
        }

        .faq-question-btn {
            width: 100%;
            background: transparent;
            border: none;
            color: #FFF;
            padding: 1rem 1.25rem;
            text-align: left;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.82rem;
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            gap: 1rem;
            line-height: 1.4;
        }

        .faq-answer-body {
            display: none;
            padding: 0 1.25rem 1.15rem 1.25rem;
            color: var(--text-muted);
            font-size: 0.84rem;
            line-height: 1.7;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .faq-item-box.open .faq-answer-body {
            display: block;
        }

        /* MEGA FOOTER CORPORATIVO SOBRIO Y CONGRUENTE */
        .mega-footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
            gap: 2.2rem;
            padding-bottom: 2.2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        @media (max-width: 992px) {
            .mega-footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 576px) {
            .mega-footer-grid {
                grid-template-columns: 1fr;
            }
        }

        .footer-col-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            font-weight: 800;
            color: #FFF;
            letter-spacing: 1px;
            margin-bottom: 1rem;
            text-transform: uppercase;
            border-left: 3px solid var(--active-accent);
            padding-left: 8px;
        }

        .footer-links-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }

        .footer-links-list a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .footer-bullet {
            color: var(--active-accent);
            font-weight: 800;
            font-size: 0.95rem;
            line-height: 1;
        }

        .footer-links-list a:hover {
            color: #FFF;
            transform: translateX(4px);
        }

        /* ==========================================================================
           V19.0 — CORRECCIÓN INTEGRAL ANTES/DESPUÉS + VIDEO 100% CENTRADO MULTIDISPOSITIVO
           ========================================================================== */
        .ba-top-header-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 0.85rem;
        }

        .ba-nav-controls-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .ba-mobile-select-wrap {
            display: none;
            margin-bottom: 0.75rem;
        }

        .ba-mobile-dropdown {
            width: 100%;
            background: rgba(3, 7, 18, 0.95);
            border: 1px solid var(--active-accent);
            color: #FFF;
            padding: 10px 12px;
            border-radius: 10px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            outline: none;
        }

        /* Insignias Antes y Después dentro del comparador sin superponerse jamás */
        .ba-compare-wrapper .ba-badge-before {
            top: 10px !important;
            left: 10px !important;
            right: auto !important;
            bottom: auto !important;
            max-width: 46% !important;
            font-size: clamp(0.52rem, 1.4vw, 0.65rem) !important;
            line-height: 1.25 !important;
            padding: 5px 9px !important;
            white-space: normal !important;
            text-align: left !important;
        }

        .ba-compare-wrapper .ba-badge-after {
            top: 10px !important;
            right: 10px !important;
            left: auto !important;
            bottom: auto !important;
            max-width: 46% !important;
            font-size: clamp(0.52rem, 1.4vw, 0.65rem) !important;
            line-height: 1.25 !important;
            padding: 5px 9px !important;
            white-space: normal !important;
            text-align: right !important;
        }

        /* Barra de control deslizante con etiquetas arriba y slider 100% abajo */
        .ba-slider-controls-box {
            margin-top: 0.85rem;
            background: rgba(2, 6, 18, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.65rem 0.9rem;
        }

        .ba-slider-labels-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }

        .ba-lbl-left {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(0.6rem, 1.8vw, 0.72rem);
            color: #FF2E93;
            font-weight: 800;
        }

        .ba-lbl-center {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.58rem;
            color: #94A3B8;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .ba-lbl-right {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(0.6rem, 1.8vw, 0.72rem);
            color: #00FF88;
            font-weight: 800;
            text-align: right;
        }

        .ba-range-input-full {
            width: 100%;
            accent-color: var(--active-accent);
            cursor: pointer;
            height: 6px;
            display: block;
        }

        /* Ficha Ejecutiva del Caso (Tarjetas 100% horizontales, nunca texto en vertical) */
        .ba-executive-dossier {
            margin-top: 0.95rem;
            background: rgba(2, 5, 14, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 1.15rem;
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
        }

        .ba-dossier-cards-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.85rem;
            width: 100%;
        }

        .ba-dossier-card {
            width: 100%;
            min-width: 0;
            padding: 0.85rem 1rem;
            border-radius: 10px;
            font-size: 0.84rem;
            line-height: 1.55;
            word-break: normal;
            overflow-wrap: break-word;
            text-align: left;
        }

        .ba-card-before {
            background: rgba(255, 46, 147, 0.07);
            border: 1px solid rgba(255, 46, 147, 0.3);
            color: #FECDD3;
        }

        .ba-card-before strong {
            color: #FF2E93;
            display: block;
            margin-bottom: 4px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.72rem;
        }

        .ba-card-after {
            background: rgba(0, 255, 136, 0.07);
            border: 1px solid rgba(0, 255, 136, 0.3);
            color: #BBF7D0;
        }

        .ba-card-after strong {
            color: #00FF88;
            display: block;
            margin-bottom: 4px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.72rem;
        }

        .ba-dossier-footer-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .ba-norma-info {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .ba-audit-cta-btn {
            padding: 0.6rem 1.1rem !important;
            font-size: 0.7rem !important;
            justify-content: center !important;
            text-align: center !important;
            white-space: nowrap;
        }

        /* Lightbox Top Bar, Stage Centrado & Controls Bar */
        .lightbox-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .lightbox-top-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .lightbox-type-pill {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.65rem;
            font-weight: 800;
            color: #E2E8F0;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 4px 10px;
            border-radius: 8px;
        }

        .lightbox-counter-pill {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.68rem;
            font-weight: 800;
            color: var(--active-accent);
            background: rgba(0, 240, 255, 0.1);
            border: 1px solid var(--active-accent);
            padding: 4px 10px;
            border-radius: 8px;
        }

        .lightbox-close-inline {
            background: rgba(239, 68, 68, 0.16);
            border: 1px solid rgba(239, 68, 68, 0.5);
            color: #FCA5A5;
            padding: 5px 12px;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.68rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.25s;
        }

        .lightbox-close-inline:hover {
            background: #EF4444;
            color: #FFF;
        }

        .lightbox-media-stage {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000;
        }

        .jgg-video-center-stage {
            position: relative;
            width: 100%;
            height: 100%;
            padding: 4px 6px 8px 6px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000;
        }

        .jgg-centered-html5-video {
            display: block !important;
            width: calc(100% - 8px) !important;
            height: calc(100% - 10px) !important;
            max-width: calc(100% - 8px) !important;
            max-height: calc(100% - 10px) !important;
            margin: auto !important;
            object-fit: contain !important;
            background: #000 !important;
            border-radius: 6px;
        }

        .lightbox-controls-bar {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr) minmax(0, 1fr);
            align-items: center;
            gap: 6px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .lightbox-ctrl-btn {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #F8FAFC;
            padding: 7px 6px;
            border-radius: 9px;
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(0.53rem, 2vw, 0.65rem);
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.25s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lightbox-ctrl-btn:hover {
            background: var(--active-accent);
            color: #03050C;
            border-color: var(--active-accent);
        }

        .lightbox-ctrl-fullscreen {
            border-color: var(--active-accent);
            color: var(--active-accent);
            background: rgba(0, 240, 255, 0.08);
        }

        @media (max-width: 860px) {
            .ba-mobile-select-wrap {
                display: block;
            }

            /* En móvil y vertical, las 12 píldoras se muestran como carrusel horizontal deslizable compacto */
            .ba-service-pills {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                gap: 8px !important;
                padding-bottom: 6px !important;
                margin-bottom: 0.85rem !important;
                -webkit-overflow-scrolling: touch;
            }

            .ba-service-pill-btn {
                flex: 0 0 auto !important;
                width: auto !important;
                max-width: 240px !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                padding: 7px 11px !important;
            }

            /* En móvil, colocar ANTES arriba a la izquierda y DESPUÉS abajo a la derecha para 0% superposición */
            .ba-compare-wrapper {
                aspect-ratio: 4 / 3 !important;
                min-height: 220px !important;
            }

            .ba-compare-wrapper .ba-badge-before {
                top: 8px !important;
                left: 8px !important;
                max-width: 68% !important;
            }

            .ba-compare-wrapper .ba-badge-after {
                top: auto !important;
                bottom: 8px !important;
                right: 8px !important;
                max-width: 68% !important;
            }

            .ba-lbl-center {
                display: none;
            }

            .ba-dossier-cards-grid {
                grid-template-columns: 1fr !important;
            }

            .ba-dossier-footer-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .ba-audit-cta-btn {
                width: 100%;
                white-space: normal;
            }

            .lightbox-content {
                width: 96% !important;
                padding: 0.85rem !important;
            }

            .lightbox-screen {
                height: clamp(255px, 44vh, 390px) !important;
            }
        }
    
        /* V39 FIX: Barra Inferior de Pantalla Completa con Contador Integrado en Cabecera (Cero Espacio Vacío Debajo de 4/36) */
        .fullscreen-caption-bar {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 6px !important;
            padding: 12px 16px !important;
            width: min(900px, 95vw) !important;
            max-width: 95vw !important;
            max-height: 28vh !important;
            overflow-y: auto !important;
        }
        .fullscreen-header-row {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
        }
        .fullscreen-counter {
            margin-top: 0 !important;
            padding: 3px 9px !important;
            font-size: 0.75rem !important;
            flex-shrink: 0 !important;
        }
        .fullscreen-title-inline {
            color: #FFFFFF !important;
            font-family: 'Orbitron', sans-serif !important;
            font-size: 0.84rem !important;
            font-weight: 800 !important;
            line-height: 1.3 !important;
            letter-spacing: 0.3px !important;
            flex: 1 1 auto !important;
            min-width: 0 !important;
        }
        .fullscreen-text {
            width: 100% !important;
            font-size: 0.78rem !important;
            line-height: 1.42 !important;
            color: #CBD5E1 !important;
        }
        @media (max-width: 768px) {
            .fullscreen-caption-bar {
                padding: 10px 12px !important;
                gap: 5px !important;
                max-height: 26vh !important;
            }
            .fullscreen-header-row {
                gap: 8px !important;
                align-items: flex-start !important;
            }
            .fullscreen-counter {
                font-size: 0.68rem !important;
                padding: 2px 7px !important;
                margin-top: 1px !important;
            }
            .fullscreen-title-inline {
                font-size: 0.75rem !important;
                line-height: 1.28 !important;
            }
            .fullscreen-text {
                font-size: 0.72rem !important;
                line-height: 1.36 !important;
            }
        }

    
        /* V41: PROPORCIÓN EJECUTIVA EQUILIBRADA EN TARJETAS DE PROYECTOS (NI EXCESO DE ESPACIO NI APLASTADO) */
        .projects-slider-container {
            grid-template-rows: repeat(2, auto) !important;
            gap: 1.05rem !important;
            padding: 0.5rem 10px 0.75rem 10px !important;
        }
        .project-card {
            padding: 0.75rem 0.85rem !important;
            border-radius: 14px !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            gap: 0.25rem !important;
            height: auto !important;
        }
        .project-img-wrapper {
            aspect-ratio: auto !important;
            height: 156px !important;
            min-height: 156px !important;
            max-height: 156px !important;
            margin-bottom: 0.35rem !important;
            border-radius: 9px !important;
        }
        .proj-balanced-meta-row {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            margin-bottom: 0.2rem !important;
            flex-wrap: wrap !important;
        }
        .proj-balanced-date {
            font-size: 0.7rem !important;
            color: #CBD5E1 !important;
            font-weight: 700 !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
        }
        .project-card h3.proj-balanced-title {
            font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif !important;
            font-size: 0.92rem !important;
            font-weight: 800 !important;
            color: #FFFFFF !important;
            line-height: 1.3 !important;
            margin: 0.1rem 0 0.2rem 0 !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }
        .project-card p.proj-balanced-desc {
            color: #CBD5E1 !important;
            font-size: 0.77rem !important;
            line-height: 1.42 !important;
            margin: 0 0 0.3rem 0 !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 3 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }
        .proj-balanced-spec {
            font-size: 0.72rem !important;
            color: #94A3B8 !important;
            line-height: 1.35 !important;
            margin-bottom: 0.18rem !important;
        }
        .proj-balanced-addr {
            font-size: 0.72rem !important;
            font-weight: 700 !important;
            line-height: 1.35 !important;
            margin-bottom: 0.3rem !important;
            display: block !important;
        }
        .project-card .btn-gallery-detail {
            margin-top: auto !important;
            padding: 0.48rem 0.5rem !important;
            font-size: 0.72rem !important;
            border-radius: 8px !important;
        }
        @media (max-width: 768px) {
            /* En móvil mostramos 1 fila con proporción amplia y elegante para que no se aplasten 2 tarjetas en pantallas pequeñas */
            .projects-slider-container {
                grid-template-rows: 1fr !important;
                gap: 0.9rem !important;
                padding: 0.5rem 6px 0.8rem 6px !important;
            }
            .project-img-wrapper {
                height: 162px !important;
                min-height: 162px !important;
                max-height: 162px !important;
            }
            .project-card {
                padding: 0.8rem 0.85rem !important;
            }
        }

    
        /* OPTIMIZACIÓN V46: CORRECCIÓN DE ESPACIO VACÍO VERTICAL EN #comparador-servicios (ANTES Y DESPUÉS), MENÚ MÓVIL COMPACTO Y #proyecto1 */
        .ba-top-header-bar > .ba-title-block,
        .ba-top-header-bar > div:first-child {
            flex: 1 1 auto !important;
            height: auto !important;
            min-height: 0 !important;
        }
        @media (max-width: 860px) {
            .ba-top-header-bar {
                flex-direction: column !important;
                align-items: stretch !important;
                justify-content: flex-start !important;
                gap: 8px !important;
                margin-bottom: 0.65rem !important;
                height: auto !important;
                min-height: 0 !important;
            }
            .ba-top-header-bar > .ba-title-block,
            .ba-top-header-bar > div:first-child {
                flex: 0 0 auto !important;
                width: 100% !important;
                height: auto !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
            }
        }
        .projects-filter-bar .mob-txt {
            display: none;
        }
        .projects-filter-bar .desk-txt {
            display: inline;
        }
        @media (max-width: 1080px) {
            nav ul {
                padding: 3.1rem 1.1rem 0.8rem 1.1rem !important;
                gap: 2px !important;
            }
            nav ul li {
                margin: 0 !important;
            }
            nav a {
                font-size: 0.72rem !important;
                padding: 4.5px 10px !important;
                line-height: 1.18 !important;
            }
            .mobile-group-divider {
                margin-top: 0.2rem !important;
                padding: 3px 10px 1px 10px !important;
            }
            .mobile-group-divider span {
                font-size: 0.58rem !important;
            }
        }
        @media (max-width: 768px) {
            .projects-filter-bar {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 0.45rem !important;
                max-width: 420px;
                margin-left: auto;
                margin-right: auto;
            }
            .projects-filter-bar .desk-txt {
                display: none !important;
            }
            .projects-filter-bar .mob-txt {
                display: inline !important;
            }
            .projects-filter-bar .proj-btn {
                padding: 0.52rem 0.4rem !important;
                font-size: 0.72rem !important;
                text-align: center;
                width: 100%;
            }
            .projects-filter-bar .proj-btn-all {
                grid-column: 1 / -1 !important;
            }
            .projects-filter-bar .proj-btn-b2c:not(.active) {
                border-color: rgba(16, 185, 129, 0.55) !important;
                color: #34d399 !important;
            }
            .projects-filter-bar .proj-btn-b2b:not(.active) {
                border-color: rgba(56, 189, 248, 0.55) !important;
                color: #38bdf8 !important;
            }
            .projects-filter-bar .proj-btn-smart:not(.active) {
                border-color: rgba(212, 175, 55, 0.6) !important;
                color: #fbbf24 !important;
            }
        }
    
        /* =====================================================================
           V66: CALIBRACIÓN DE PORTADA #HERO PARA QUE TÍTULO, DESCRIPCIÓN,
           INNOVACIÓN Y FOTO DEL CEO QUEPAN EN 1 SOLA PANTALLA SIN HACER SCROLL
           ===================================================================== */
        @media (min-width: 1024px) {
            #hero {
                padding-top: 84px !important;
                padding-bottom: 18px !important;
                min-height: calc(100vh - 10px) !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            #hero .hero-grid {
                grid-template-columns: 1.38fr 0.62fr !important;
                gap: 2.2rem !important;
                align-items: center !important;
                width: 100% !important;
                max-width: 1280px !important;
                margin: 0 auto !important;
            }
            #hero .hero-text .section-tag {
                margin-bottom: 0.4rem !important;
                font-size: 0.72rem !important;
                display: inline-block !important;
            }
            #hero .hero-text h1 {
                font-size: clamp(1.65rem, 2.55vw, 2.35rem) !important;
                line-height: 1.12 !important;
                margin-bottom: 0.5rem !important;
                letter-spacing: 0.5px !important;
            }
            #hero .hero-subtitle {
                font-size: clamp(0.84rem, 1.12vw, 0.98rem) !important;
                line-height: 1.35 !important;
                margin-bottom: 0.65rem !important;
            }
            #hero .hero-bio {
                font-size: 0.86rem !important;
                line-height: 1.55 !important;
                margin-bottom: 0.85rem !important;
            }
            #hero .holding-badge-box {
                padding: 0.85rem 1.15rem !important;
                margin-top: 0 !important;
                border-radius: 14px !important;
            }
            #hero .holding-badge-box > div:first-child {
                font-size: 0.86rem !important;
                margin-bottom: 4px !important;
            }
            #hero .holding-badge-box p {
                font-size: 0.78rem !important;
                line-height: 1.48 !important;
                margin: 0 !important;
            }
            #hero .profile-frame-upgrade {
                max-width: 315px !important;
                max-height: 395px !important;
                width: 100% !important;
                aspect-ratio: 4 / 4.85 !important;
                margin: 0 auto !important;
                align-self: center !important;
            }
        }


        /* V68: CERO TARJETAS BORROSAS O DIFUMINADAS + MODO VISTA EN FILA REAL + ACORDEÓN POR EMPRESA */
        .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
            opacity: 1 !important;
            transform: none !important;
            filter: none !important;
        }
        .glass-card, .glass-card * {
            filter: none;
        }
        .projects-slider-container.projects-grid-mode {
            display: grid !important;
            grid-template-rows: unset !important;
            grid-auto-flow: row !important;
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            grid-auto-columns: unset !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
            cursor: default !important;
            gap: 1.25rem !important;
            padding: 0.5rem 0 !important;
        }
        @media (max-width: 992px) {
            .projects-slider-container.projects-grid-mode {
                grid-template-columns: 1fr !important;
            }
        }
        .faq-company-accordion {
            background: rgba(8, 14, 28, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 16px;
            margin-bottom: 1rem;
            overflow: hidden;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }
        .faq-company-accordion.open {
            border-color: var(--company-accent, var(--active-accent));
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        }
        .faq-company-header-btn {
            width: 100%;
            background: rgba(12, 20, 40, 0.9);
            border: none;
            color: #FFF;
            padding: 1.05rem 1.25rem;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            cursor: pointer;
        }
        .faq-company-header-btn:hover {
            background: rgba(18, 30, 58, 0.95);
        }
        .faq-company-questions-panel {
            display: none;
            padding: 0.9rem 1rem 0.4rem 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(4, 8, 18, 0.92);
        }
        .faq-company-accordion.open .faq-company-questions-panel {
            display: block;
        }
        .faq-company-chevron {
            transition: transform 0.25s ease;
        }
        .faq-company-accordion.open .faq-company-chevron {
            transform: rotate(180deg);
        }
