:root {
    /* Tipografía */
    --font-heading--family: "Science Gothic", sans-serif;
    --font-button--family: "Science Gothic", sans-serif;
    --font-body--family: "Inter", sans-serif;

    /* Azul Marino Profundo (cintillas, bloques alternos) */
    --primary-navy: #0F1E3D;
}

/* Tipografía de títulos */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading--family) !important;
    text-transform: uppercase !important;
}

.header-1.header-floating:hover,
.header-1.header-sticky.scrolled-past-header,
.header-1.scrolled-past-header,
.header-1.is-sticky,
.header-1.sticky {
    background: linear-gradient(180deg, #010510 0%, #02132D 100%) !important;
    --color-background: transparent !important;
}

footer,
.footer-main,
.footer-animated-bg {
    background-image: linear-gradient(-45deg, #02091c, #02132D, #010510, #02132D, #000000) !important;
    background-size: 400% 400% !important;
    /* background-position: 0% 50% !important; */
    animation: gradientShift 20s ease-in-out infinite !important;
}

footer .footer-widget,
footer .footer-main>div {
    background: transparent !important;
}

/* Caja del icono (Fondo azul marino con icono dorado) */
.multicolumn-page .card-icon {
    background-color: var(--primary-navy) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.tech-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.multicolumn .multicolumn-card:focus,
.multicolumn .multicolumn-card:hover {
    --color-background: rgba(2, 19, 45, 1);
    --color-foreground: rgba(255, 255, 255, 1);
    --color-foreground-heading: rgba(255, 255, 255, 1);
}

.multicolumn-page .card-icon:hover {
    border: 1px solid #00D4ff !important;
}


@media (max-width: 1399px) {
    .text-90 {
        font-size: 48px !important;
    }
}

@media (max-width: 1399px) {
    .text-90 {
        font-size: 48px !important;
    }
}

/* ========================================================
   HEADER SPACING & GRID FIX (Evitar solapamientos)
   ======================================================== */
.header-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.header-logo {
    max-width: 320px !important;
    flex-shrink: 0 !important;
}

.header-nav.drawer-menu {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.header-menu {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.menu-link-main {
    padding: 30px 18px !important;
    font-size: 16px !important;
    white-space: nowrap !important;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 1279px) {
    .header-logo {
        max-width: 260px !important;
    }
    .menu-link-main {
        padding: 24px 10px !important;
        font-size: 14.5px !important;
    }
}



/* ========================================================
   LANGUAGE SWITCHER (Segmented Switch - Electric Cyan & White Glow)
   ======================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 3px;
    background: rgba(2, 19, 45, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 8px;
    user-select: none;
    z-index: 2;
}

.lang-switcher:hover {
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 12px rgba(0, 212, 255, 0.12);
}

.lang-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-heading--family, 'Science Gothic', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-transform: uppercase;
}

.lang-btn:hover:not(.active) {
    color: #FFFFFF;
    background: rgba(0, 212, 255, 0.12);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

/* Active State: Electric Cyan Glow & White Text */
.lang-btn.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4) 0%, rgba(0, 114, 255, 0.7) 100%) !important;
    border: 1px solid #00D4FF !important;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.4) !important;
    cursor: default;
}

/* Press Feedback (Pulsación al hacer clic) */
.lang-btn:active {
    transform: scale(0.90);
    transition: transform 0.1s ease;
}

/* Pulse animation triggered on click */
@keyframes langPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.85);
    }
    60% {
        box-shadow: 0 0 0 12px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

.lang-btn.is-pulsing {
    animation: langPulseGlow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile Drawer Switcher Layout */
.header-drawer-lang {
    padding: 20px 24px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.header-drawer-lang .lang-switcher {
    width: 100%;
    justify-content: center;
    padding: 6px;
    background: rgba(15, 30, 61, 0.85);
}

.header-drawer-lang .lang-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
}

/* ========================================================
   VIDEO LIGHTBOX MODAL
   ======================================================== */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox .lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-lightbox .lightbox-close:hover,
.video-lightbox .lightbox-close:focus {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00D4FF;
    transform: scale(1.1);
    outline: none;
}

.video-lightbox .lightbox-inner {
    width: 100%;
    max-width: 960px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-lightbox video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}
