/* ============================================
   NORTHSTAR BROKERAGE - Premium Corporate Website
   Modern redesign preserving brand identity
   ============================================ */

/* Base */
@import url('base/_variables.css');
@import url('base/_reset.css');
@import url('base/_utilities.css');

/* Components */
@import url('components/_preloader.css');
@import url('components/_buttons.css');
@import url('components/_forms.css');
@import url('components/_cards.css');
@import url('components/_audio_player.css');
@import url('components/_chatbot.css');
@import url('components/_overlay.css');

/* Layout */
@import url('layout/_navigation.css');
@import url('layout/_footer.css');

/* Sections */
@import url('sections/_hero.css');
@import url('sections/_marquee.css');
@import url('sections/_headers.css');
@import url('sections/_about.css');
@import url('sections/_services.css');
@import url('sections/_values.css');
@import url('sections/_markets.css');
@import url('sections/_vision-mission.css');
@import url('sections/_team.css');
@import url('sections/_contact.css');
@import url('sections/_page-hero.css');

/* Animations */
@import url('animations/_scroll.css');
@import url('animations/_typing.css');
@import url('animations/_transitions.css');

*::after {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



:root {

    /* Brand Colors */

    --primary-blue: #1a3a6b;

    --primary-blue-light: #254f9c;

    --accent-gold: #c39f76;

    --accent-gold-light: #d4b896;

    --accent-gold-dark: #a8865d;

    --dark: #0d1b2a;

    --dark-secondary: #1b2838;

    --text-primary: #1a1a2e;

    --text-secondary: #4a4a5a;

    --text-light: #8a8a9a;

    --bg-white: #ffffff;

    --bg-light: #f8f9fc;

    --bg-cream: #faf8f5;

    --border-light: rgba(195, 159, 118, 0.15);

    --border-subtle: rgba(26, 58, 107, 0.08);



    /* Typography */

    --font-primary: 'Outfit', sans-serif;

    --font-display: 'Outfit', sans-serif;



    /* Spacing */

    --section-padding: clamp(60px, 8vw, 100px);

    --container-max: 1280px;

    --container-padding: clamp(20px, 4vw, 50px);



    /* Transitions */

    --transition-smooth: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    --transition-fast: all 0.2s ease;

}



html,

body {

    height: 100%;

    margin: 0;

}



body {

    font-family: var(--font-primary);

    color: var(--text-primary);

    line-height: 1.7;

    background: var(--bg-white);

    overflow-x: hidden;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

}



a {

    text-decoration: none;

    color: inherit;

    transition: var(--transition-fast);

}



img {

    max-width: 100%;

    height: auto;

    display: block;

}



ul {

    list-style: none;

}



.container {

    max-width: var(--container-max);

    margin: 0 auto;

    padding: 0 var(--container-padding);

}



section[id] {

    scroll-margin-top: 230px;

}



.container-wide {

    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding: 0 var(--container-padding);

}



/* === PREMIUM PRELOADER (AWWWARDS STYLE) === */

.preloader {

    position: fixed;

    inset: 0;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 10000;

}



/* Elegant background wipe using a pseudo-element */

.preloader::before {

    content: '';

    position: absolute;

    inset: 0;

    background: var(--dark);

    z-index: -1;

    transform-origin: top;

    /* starts moving 0.2s after logo begins fading out */

    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;

}



.preloader.hidden {

    pointer-events: none;

    visibility: hidden;

    transition: visibility 1.5s ease;

}



.preloader.hidden::before {

    transform: scaleY(0);

    /* The curtain wipe up */

}



.preloader-logo {

    width: 600px;

    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);

    animation: preloaderLogoReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;

    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);

}



.preloader.hidden .preloader-logo {

    opacity: 0;

    transform: translateY(-20px) scale(0.98);

}



@keyframes preloaderLogoReveal {

    0% {

        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);

        transform: translateY(30px);

    }



    100% {

        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

        transform: translateY(0);

    }

}



/* === NAVIGATION === */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
    overflow: visible;
    height: auto;
    min-height: auto;
    max-height: none;
}

.nav.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}



.nav-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    max-width: 100%;

    /* Changed from var(--container-max) to allow edge alignment */

    margin: 0 auto;

    padding: 0 40px;

    /* Increased padding for better edge breathing room */

    height: auto;

    min-height: auto;

}



.nav-logo {
    display: flex;
    align-items: center;
    height: auto;
    overflow: visible;
}

.nav-logo img {

    height: 220px;

    /* Larger logo for desktop/PC layout - extends beyond header */

    transition: var(--transition-smooth);

    width: auto;

    object-fit: contain;

    margin-top: -50px;

    margin-bottom: -50px;

}



/* .nav.scrolled .nav-logo img {

    height: 90px;

} */



.nav-links {

    display: flex;

    align-items: center;

    gap: 40px;

    /* Reduced from 50px */

}



.nav-links a {

    font-size: 14px;

    /* Reduced from 18px */

    font-weight: 500;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.8);

    position: relative;

    padding: 4px 0;

}



.nav-links a::after {

    content: '';

    position: absolute;

    bottom: -2px;

    left: 0;

    width: 0;

    height: 1.5px;

    background: var(--accent-gold);

    transition: width 0.3s ease;

}



.nav-links a:hover {

    color: #fff;

}



.nav-links a:hover::after,

.nav-links a.active::after {

    width: 100%;

}



/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .lang-switch {

    font-size: 12px;

    /* Reduced from 16px */

    padding: 6px 18px;

    /* Reduced from 8px 24px */

    border: 1px solid rgba(195, 159, 118, 0.4);

    border-radius: 4px;

    color: var(--accent-gold);

    letter-spacing: 2px;

    background: transparent;

    cursor: pointer;

    font-family: inherit;

    text-transform: uppercase;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    gap: 6px;

}



.nav-links .lang-switch::after {

    content: "▼";

    font-size: 8px;

    transition: transform 0.3s ease;

}



.nav-links .lang-dropdown.active .lang-switch::after {

    transform: rotate(180deg);

}



.nav-links .lang-switch:hover {

    background: var(--accent-gold);

    color: var(--dark);

    border-color: var(--accent-gold);

}



.lang-dropdown-menu {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    background: rgba(13, 27, 42, 0.98);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(195, 159, 118, 0.3);

    border-radius: 4px;

    min-width: 140px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    z-index: 1000;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    overflow: hidden;

}



.lang-dropdown.active .lang-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.lang-option {

    display: block;

    padding: 12px 18px;

    color: rgba(255, 255, 255, 0.8);

    text-decoration: none;

    font-size: 13px;

    letter-spacing: 0.5px;

    transition: all 0.2s ease;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    text-align: center;

}



.lang-option:last-child {

    border-bottom: none;

}



.lang-option:hover {

    background: rgba(195, 159, 118, 0.15);

    color: var(--accent-gold);

}

.close-menu-btn {
    display: none;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 20px;
}

.lang-dropdown.mobile-only {
    display: none;
}

.lang-dropdown.mobile-only .lang-switch {
    font-size: 12px;
    padding: 6px 14px;
    border: 1px solid rgba(195, 159, 118, 0.4);
    border-radius: 4px;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

/* Mobile menu toggle */

.nav-toggle {

    display: none;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;

    z-index: 1001;

}



.nav-toggle span {

    width: 24px;

    height: 2px;

    background: #fff;

    transition: var(--transition-fast);

}



/* === HERO SECTION === */

.hero {

    position: relative;

    height: 100vh;

    min-height: 700px;

    display: flex;

    flex-shrink: 0;

    flex-direction: column;

    justify-content: flex-end;

    padding: 60px 60px 80px;

    background: transparent;

    scroll-snap-align: start;

}



.hero-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: opacity 1.5s ease-in-out, filter 0.8s ease;
}

/* Binary blur state class — disabled for testing */
/* .hero-bg.video-blurred,
.bg-video.video-blurred {
    filter: blur(15px) brightness(0.6);
} */



#bg-video-2 {

    opacity: 0;

}



.bg-video {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: -2;

}



.page-servicios .bg-video {

    filter: blur(12px) brightness(0.6);

}









@keyframes heroZoom {

    0% {

        transform: scale(1.05);

    }



    100% {

        transform: scale(1.15);

    }

}



.hero-overlay {

    position: fixed;

    inset: 0;

    z-index: -1;

    background:
        linear-gradient(to top, var(--dark) 0%, transparent 50%),
        rgba(10, 22, 40, 0.75);

}



.hero-particles {

    position: fixed;

    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;

}



.hero-particle {

    position: absolute;

    width: 2px;

    height: 2px;

    background: var(--accent-gold);

    border-radius: 50%;

    opacity: 0;

    animation: particleFloat 8s ease-in-out infinite;

}



@keyframes particleFloat {

    0% {

        opacity: 0;

        transform: translateY(100vh) scale(0);

    }



    20% {

        opacity: 0.6;

    }



    80% {

        opacity: 0.6;

    }



    100% {

        opacity: 0;

        transform: translateY(-100px) scale(1);

    }

}



.hero-content {

    position: relative;

    z-index: 2;

    text-align: left;

    max-width: 900px;

    padding: 0;

}

/* === HERO TAG (Option A style) === */

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

.hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1px;
    background: var(--accent-gold);
}

/* === HERO TITLE (Option A style) === */

.hero-title {
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 24px;
    padding-bottom: 6px;
    color: #ffffff;
    font-family: var(--font-display);
    overflow: visible;
}

/* Prevent char-level animation containers from clipping descenders */
.hero-title .char-container {
    overflow: visible !important;
}

.hero-title .thin {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

/* === HERO STATS (Option A style) === */

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .hero-stat-number,
.hero-stats .stat-number {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--accent-gold) !important;
    line-height: 1 !important;
    font-family: var(--font-display) !important;
    margin-bottom: 0 !important;
}

.hero-stats .hero-stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}



.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 24px;

    background: rgba(195, 159, 118, 0.1);

    border: 1px solid rgba(195, 159, 118, 0.25);

    border-radius: 100px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 24px;

    animation: fadeInUp 1s ease 0.3s both;

}



.hero-badge .dot {

    width: 6px;

    height: 6px;

    background: var(--accent-gold);

    border-radius: 50%;

    animation: dotPulse 2s ease-in-out infinite;

}



@keyframes dotPulse {



    0%,

    100% {

        opacity: 0.5;

        transform: scale(1);

    }



    50% {

        opacity: 1;

        transform: scale(1.3);

    }

}



/* === HERO TEXT SECTION (PC SPLIT / MOBILE CARD) === */
.hero-text-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.services-split {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.services-left-open {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: relative;
    color: white;
}

.about-content-integrated {
    max-width: 650px;
    margin-right: auto;
}

.about-content-integrated .section-tag {
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
}

.about-content-integrated .section-title {
    color: white;
    margin-bottom: 30px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    font-family: var(--font-display);
}

.about-content-integrated .section-title .gold {
    color: var(--accent-gold);
}

.about-content-integrated .about-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.about-content-integrated .about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.about-content-integrated .about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
}

.feature-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.split-stats-container {
    margin-top: 60px;
}

.about-stats.split-stats {
    display: flex;
    gap: 40px;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-right-tile {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-right-tile .split-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.services-right-tile .split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.2), rgba(13, 27, 42, 0.6));
    z-index: 2;
}

.services-right-tile .split-content {
    position: relative;
    z-index: 3;
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.services-right-tile .split-cta-container {
    margin-top: 0;
}

.services-right-tile h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    color: white;
    margin-bottom: 40px;
}

.services-right-tile h1 .gold {
    color: var(--accent-gold);
}

/* btn-split uses unified base style from _buttons.css */

@media (max-width: 768px) {
    .hero {
        padding: 40px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        height: 100vh;
        height: 100svh;
        min-height: 100svh;
    }

    .hero-content {
        max-width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 20px !important;
        position: relative !important;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .hero-stats .hero-stat-number,
    .hero-stats .stat-number {
        font-size: 32px !important;
    }

    .hero-tag {
        font-size: 10px;
        letter-spacing: 3px;
        padding-left: 0;
        margin-left: 3px;
        text-align: center;
    }

    .hero-tag::before {
        display: none !important;
    }

    .hero-text-section {
        padding: 60px 0;
    }

    .services-split {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }

    /* Hide the left part (text/stats) on mobile to simplify to a card */
    .services-left-open {
        display: none;
    }

    .services-right-tile {
        height: 450px;
        border-radius: 28px;
        width: 100%;
    }

    .services-right-tile .split-content {
        padding: 30px;
        text-align: center;
        margin-top: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .services-right-tile h1 {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 35px;
        text-align: center;
    }

    .btn-split {
        padding: 15px 35px;
        font-size: 13px;
        letter-spacing: 2px;
        background: var(--accent-gold) !important;
        color: var(--dark) !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .btn-split span {
        transform: translateX(5px);
    }
}



.hero-subtitle {

    font-size: 16px;

    color: rgba(255, 255, 255, 0.6);

    font-weight: 300;

    line-height: 1.7;

    max-width: 480px;

    margin: 0;

}



.hero-cta {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 28px;

    font-family: var(--font-primary);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.85);

    background: transparent;

    border: 1px solid rgba(195, 159, 118, 0.4);

    border-radius: 0;

    cursor: pointer;

    transition: all 0.3s ease;

    text-decoration: none;

    white-space: nowrap;

    line-height: 1;

    animation: ctaGlow 3s ease-in-out infinite;

}

@keyframes ctaGlow {
    0% {
        background: rgba(195, 159, 118, 0);
    }

    50% {
        background: rgba(195, 159, 118, 0.15);
    }

    100% {
        background: rgba(195, 159, 118, 0);
    }
}

.hero-cta:hover {

    background: var(--accent-gold);

    border-color: var(--accent-gold);

    color: var(--dark);

    animation: none;

}



.hero-cta .arrow {

    transition: transform 0.3s ease;

}



.hero-cta:hover .arrow {

    transform: translateX(4px);

}



.hero-scroll {

    position: absolute;

    bottom: 30px;

    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 10px;

    font-weight: 400;

    letter-spacing: 3px;

    text-transform: uppercase;

    animation: fadeInUp 1s ease 1.2s both;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 5;

}



.hero-scroll.hidden {

    opacity: 0 !important;

    visibility: hidden;

    animation: fadeOutDown 0.3s ease forwards !important;

}



@keyframes fadeOutDown {

    from {

        opacity: 1;

        transform: translateY(0);

    }



    to {

        opacity: 0;

        transform: translateY(30px);

        visibility: hidden;

    }

}



.hero-scroll-line {

    width: 1px;

    height: 36px;

    background: linear-gradient(to bottom, var(--accent-gold), transparent);

    animation: scrollLine 2s ease-in-out infinite;

}



@keyframes scrollLine {

    0% {

        transform: scaleY(0);

        transform-origin: top;

    }



    50% {

        transform: scaleY(1);

        transform-origin: top;

    }



    51% {

        transform: scaleY(1);

        transform-origin: bottom;

    }



    100% {

        transform: scaleY(0);

        transform-origin: bottom;

    }

}



/* === ABOUT CARD SECTION (SIMPLIFIED) === */
.about-card-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.about-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.about-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.2), rgba(13, 27, 42, 0.6));
    z-index: 2;
}

.about-card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 60px;
    width: 100%;
    max-width: 900px;
}

.about-card-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.5vw, 64px);
    line-height: 1.1;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.about-card-title .gold {
    color: var(--accent-gold);
}

.about-card-cta {
    display: flex;
    justify-content: center;
}

/* btn-card uses unified base style from _buttons.css */

@media (max-width: 768px) {
    .about-card-section {
        padding: 60px 0;
    }

    .about-card {
        height: 450px;
        border-radius: 28px;
        margin: 0 20px;
        width: auto;
    }

    .about-card-content {
        padding: 30px;
    }

    .about-card-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 35px;
    }

    .btn-card {
        padding: 15px 35px;
        font-size: 13px;
        letter-spacing: 2px;
    }
}

/* ==========================================================================

   LEGACY SPLIT LAYOUT (Used by Home Page)

   ========================================================================== */



.services-split {

    display: flex;

    gap: 40px;

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    align-items: stretch;

}



.services-left-open {

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 25px;

    position: relative;

    color: white;

}



.about-content-integrated {

    max-width: 650px;

    margin-right: auto;

}



.about-content-integrated .section-tag {

    color: var(--accent-gold);

    margin-bottom: 20px;

}



.about-content-integrated .section-title {

    color: white;

    margin-bottom: 20px;

    font-size: clamp(24px, 3.5vw, 42px);

    text-align: left;

}



.about-content-integrated .about-text {

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 12px;

    font-size: 15px;

    line-height: 1.5;

}



.about-content-integrated .about-features {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 30px;

}



.about-content-integrated .about-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    color: white;

    font-size: 14px;

}



.feature-bullet {

    width: 6px;

    height: 6px;

    background: var(--accent-gold);

    border-radius: 50%;

    display: inline-block;

    flex-shrink: 0;

}



.about-content-integrated .split-stats-container {

    margin-top: 50px;

    display: flex;

    justify-content: flex-start;

    padding: 0;

    width: 100%;

}



.services-right-tile {

    flex: 1;

    position: relative;

    display: flex;

    flex-direction: column;

    border-radius: 32px;

    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.services-right-tile .split-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: 1;

}



.services-right-tile .split-overlay {

    position: absolute;

    inset: 0;

    background: rgba(13, 27, 42, 0.4);

    z-index: 2;

}



.services-right-tile .split-content {

    position: relative;

    z-index: 3;

    height: 100%;

    display: flex;

    flex-direction: column;

    padding: 0;

}



/* Left With Video Styling */

.services-left-open.with-video {

    position: relative;

    overflow: hidden;

    border-radius: 32px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.services-left-open.with-video .split-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: 1;

}



.services-left-open.with-video .split-overlay {

    position: absolute;

    inset: 0;

    background: rgba(13, 27, 42, 0.7);

    z-index: 2;

}



.services-left-open.with-video .about-content-integrated {

    position: relative;

    z-index: 3;

    max-width: none;

}



/* ==========================================================================

   SERVICIOS PAGE RESTRUCTURE (SLIDE-BASED)

   ========================================================================== */



.services-intro-section,

.services-map-section {

    padding: clamp(140px, 15vw, 200px) 0;

    min-height: 80vh;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 10;

}



.services-intro-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    width: 100%;

}



.services-text-col {

    color: white;

}



.services-text-col .section-tag {

    display: block;

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--accent-gold);

    margin-bottom: 20px;

}



.services-text-col .section-title {

    font-size: clamp(32px, 5vw, 56px);

    line-height: 1.1;

    margin-bottom: 30px;

    font-family: 'Outfit', sans-serif;

    color: #ffffff;

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

}



.services-text-col .about-text {

    font-size: 17px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 1.5rem;

    font-weight: 300;

}



.services-video-col {

    position: relative;

}



.services-glass-tile {

    position: relative;

    aspect-ratio: 4/3;

    border-radius: 32px;

    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(10px);

}



.services-glass-tile .split-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: 1;

}



.services-glass-tile .split-overlay {

    position: absolute;

    inset: 0;

    background: rgba(13, 27, 42, 0.3);

    z-index: 2;

}



/* --- YOUTUBE EMBED SECTION --- */

.services-video-embed {

    padding: 60px 0;

    position: relative;

    z-index: 10;

}



.video-embed-container {

    max-width: 900px;

    margin: 0 auto;

    aspect-ratio: 16/9;

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

}



.video-embed-container iframe {

    width: 100%;

    height: 100%;

    border: none;

}



/* Map Section Adjustment */

.services-map-section {

    padding-top: clamp(140px, 15vw, 200px);

    padding-bottom: 80px;

    min-height: auto;

    display: flex;

    align-items: center;

    justify-content: center;

}



.services-right-map {

    width: 100%;

    max-width: 1100px;

    /* Slightly tighter */

    margin: 0 auto;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: auto;

    /* Shrink to fit content */

    max-height: 70vh;

    /* Don't overflow viewport */

    background: rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(25px);

    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 32px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    padding: 0;

    /* No padding to hug the map */

    overflow: hidden;

}



.animated-map-svg {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    /* Removed scaling */
    transform-origin: center;
    transition: transform 1s ease;
}



.map-silhouette {

    opacity: 0.4;

    filter: invert(100%) brightness(1.6);

}



.map-connections path {

    fill: transparent;

}



.map-path-bg {

    stroke: var(--accent-gold);

    stroke-width: 1px;

    stroke-opacity: 0.2;

}



.map-path-anim {

    stroke: var(--accent-gold);

    stroke-width: 2px;

    stroke-dasharray: 15 45;

    stroke-linecap: round;



    opacity: 0.8;

    animation: dashMove 8s linear infinite;

}



@keyframes dashMove {

    from {

        stroke-dashoffset: -120;

    }



    to {

        stroke-dashoffset: 0;

    }

}



.services-right-map {
    position: relative;
}

/* Floating HUD Element Styling */
.map-hud {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.8s both;
}



.map-hud-dot-container {

    position: relative;

    width: 10px;

    height: 10px;

}



.map-hud-dot {

    width: 10px;

    height: 10px;

    background: var(--accent-gold);

    border-radius: 50%;

}



.map-hud-dot-pulse {

    position: absolute;

    inset: 0;

    background: var(--accent-gold);

    border-radius: 50%;

    animation: hudPulse 2s ease-in-out infinite;

    opacity: 0.6;

}



@keyframes hudPulse {

    0% {

        transform: scale(1);

        opacity: 0.6;

    }



    100% {

        transform: scale(2.5);

        opacity: 0;

    }

}



.map-hud-content {

    display: flex;

    flex-direction: column;

}



.map-hud-title {

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #fff;

}



.map-hud-status {

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.4);

    margin-top: 2px;

}



/* Responsiveness for new layout */

@media (max-width: 1200px) {

    .animated-map-svg {

        transform: scale(1.2);

    }

}



@media (max-width: 992px) {

    .services-left-open.with-video {

        min-height: 400px;

    }



    .services-right-map {

        min-height: 350px;

        overflow: hidden;

    }



    .animated-map-svg {

        transform: scale(1.1);

    }



    .services-map-section .container-wide {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .map-hud {
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 20px auto !important;
        display: inline-flex !important;
        width: auto !important;
    }

}



@media (max-width: 768px) {

    .services-left-open.with-video {

        padding: 40px 20px;

    }



    .about-content-integrated .section-title {

        font-size: 32px;

    }



    .map-marker-text {

        font-size: 6px;

    }

    /* Remove glow animation on mobile — matches hero-cta style */
    .about-content-integrated .btn-split {
        animation: none !important;
    }

}



@keyframes dashMove {

    from {

        stroke-dashoffset: -120;

    }



    to {

        stroke-dashoffset: 0;

    }

}



.map-marker-group {

    cursor: default;

}



.map-marker-dot {

    fill: var(--accent-gold);

    stroke: rgba(255, 255, 255, 0.3);

    stroke-width: 0.5px;

    transition: all 0.4s ease;

}



.map-marker-text {

    font-family: var(--font-primary);

    font-size: 7px;

    fill: rgba(255, 255, 255, 0.3);

    text-transform: uppercase;

    letter-spacing: 0.4em;

    font-weight: 300;

    pointer-events: none;

    transition: all 0.4s ease;

    text-anchor: middle;

}



.map-marker-group:hover .map-marker-dot {

    fill: white;

}



.map-marker-group:hover .map-marker-text {

    fill: var(--accent-gold);

}



.title-wrap {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 40px 0;

    text-align: center;

}



.title-wrap h1 {

    font-family: var(--font-display);

    font-size: clamp(26px, 3.5vw, 48px) !important;

    line-height: 1.3 !important;

    margin: 0 !important;

    color: white;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

}



/* Common CTA Container for Alignment */

.split-cta-container {

    padding: 40px;

    display: flex;

    justify-content: center;

    margin-top: auto;

}

/* CTA button in left section (not on image) */
.about-cta-left {
    padding: 0;
    margin-top: 0;
    margin-left: 24px;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

/* Make stats container flex to display stats and button side by side */
.about-content-integrated .split-stats-container {
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 4;
}



/* Shared Styles */

.split-stats {

    background: var(--primary-blue) !important;

    padding: 20px 28px !important;

    border-radius: 12px !important;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;

    display: flex !important;

    gap: 24px !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    width: fit-content;

    /* Neutralize legacy absolute positioning */

    position: relative !important;

    bottom: auto !important;

    right: auto !important;

}



.split-stats .stat-number {

    font-size: 24px !important;

    color: var(--accent-gold) !important;

    font-weight: 700 !important;

}



.split-stats .stat-label {

    font-size: 9px !important;

    color: rgba(255, 255, 255, 0.7) !important;

    text-transform: uppercase;

    letter-spacing: 1px;

}



/* btn-split uses unified base style from _buttons.css */



/* Apply same progressive glow as hero CTA for the about CTA button */
.about-content-integrated .btn-split {

    animation: ctaGlow 3s ease-in-out infinite;

}

.about-content-integrated .btn-split:hover {

    animation: none;

}



@media (max-width: 1200px) {

    .services-left-open .split-stats-container {

        position: relative;

        bottom: 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        right: 0;

        margin-top: 40px;

        justify-content: center;

    }

}



@media (max-width: 992px) {

    .services-split {

        flex-direction: column;

        padding: 0 20px;

        gap: 60px;

    }



    .services-right-tile {

        height: 50vh;

        min-height: 400px;

    }



    .about-content-integrated {

        max-width: 100%;

        text-align: center;

    }



    .about-content-integrated .section-title {

        text-align: center;

    }



    .services-left-open .split-cta-container {

        justify-content: center;

    }

    /* Keep stats horizontal on mobile */
    .about-stats.split-stats {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}





/* === MARQUEE === */

.marquee-section {

    position: fixed;

    bottom: 0;

    left: 0;

    width: 100%;

    z-index: 990;

    background: var(--dark);

    padding: 12px 0;

    overflow: hidden;

    border-top: 1px solid rgba(195, 159, 118, 0.1);

    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;

}



.marquee-section.hidden {

    transform: translateY(100%);

    opacity: 0;

    pointer-events: none;

}



.marquee-track {

    display: flex;

    animation: marquee 30s linear infinite;

    gap: 60px;

    width: max-content;

}



.marquee-item {

    white-space: nowrap;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: rgba(195, 159, 118, 1);

    display: flex;

    align-items: center;

    gap: 60px;

}



.marquee-item::after {

    content: '◆';

    font-size: 6px;

    color: rgba(195, 159, 118, 0.8);

}



@keyframes marquee {

    0% {

        transform: translateX(0);

    }



    100% {

        transform: translateX(-50%);

    }

}



/* === SECTION HEADERS === */

.section-header {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 80px;

}



.section-tag {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 20px;

}



.section-tag::before,

.section-tag::after {

    content: '';

    width: 30px;

    height: 1px;

    background: var(--accent-gold);

    opacity: 0.4;

}



.section-title {

    font-family: var(--font-display);

    font-size: clamp(28px, 3.5vw, 44px);

    font-weight: 400;

    line-height: 1.2;

    color: #ffffff;

    margin-bottom: 20px;

}



.section-title .gold {

    color: var(--accent-gold);

}



.section-desc {

    font-size: 16px;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.8;

}



.dark-section .section-title,

.page-nosotros .section-title,

.page-contacto .section-title,

.page-servicios .section-title {

    color: #ffffff !important;

}



.dark-section .section-desc,

.page-nosotros .section-desc,

.page-contacto .section-desc,

.page-servicios .section-desc {

    color: rgba(255, 255, 255, 0.8) !important;

}



.dark-section .section-tag,

.page-nosotros .section-tag,

.page-contacto .section-tag,

.page-servicios .section-tag {

    color: var(--accent-gold) !important;

}



.about-text,

.page-nosotros p,

.page-contacto p,

.page-servicios p,

.team-intro p {

    color: rgba(255, 255, 255, 0.85) !important;

}



.about-feature {

    color: #ffffff !important;

}



.page-hero .breadcrumb {

    font-size: 13px;

    color: rgba(255, 255, 255, 0.8) !important;

    letter-spacing: 1px;

}



.page-hero .breadcrumb a {

    color: var(--accent-gold) !important;

}



.page-hero .section-tag {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 16px;

    font-weight: 600;

}



/* === ABOUT SECTION === */

.about-section {

    padding: var(--section-padding) 0;

    background: var(--bg-white);

}



.about-section.dark-theme {

    background: transparent;

}



.about-section.dark-theme .section-title {

    color: #fff;

}



.about-section.dark-theme .about-text {

    color: rgba(255, 255, 255, 0.8);

}



.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

}



.about-image-wrapper {

    position: relative;

}



.about-image {

    border-radius: 8px;

    overflow: hidden;

    position: relative;

}



.about-image img {

    width: 100%;

    height: 500px;

    object-fit: cover;

    transition: transform 0.6s ease;

}



.about-image:hover img {

    transform: scale(1.03);

}



.about-image-accent {

    position: absolute;

    top: -20px;

    left: -20px;

    width: 100px;

    height: 100px;

    border-top: 2px solid var(--accent-gold);

    border-left: 2px solid var(--accent-gold);

    opacity: 0.4;

}



.about-stats {

    position: absolute;

    bottom: -30px;

    right: -30px;

    background: var(--primary-blue);

    color: #fff;

    padding: 28px 36px;

    border-radius: 8px;

    display: flex;

    gap: 36px;

    box-shadow: 0 20px 60px rgba(26, 58, 107, 0.3);

}



.stat-item {

    text-align: center;

}



.stat-number {

    font-family: var(--font-display);

    font-size: 32px;

    font-weight: 700;

    color: var(--accent-gold);

    line-height: 1;

}



.stat-label {

    font-size: 11px;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.7);

    margin-top: 6px;

}



.about-content {

    padding-left: 20px;

}



.about-content .section-tag {

    justify-content: flex-start;

}



.about-content .section-tag::before {

    display: none;

}



.about-content .section-title {

    text-align: left;

}



.about-text {

    font-size: 16px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.85);

    margin-bottom: 32px;

}



.about-features {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin-bottom: 40px;

}



.about-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    font-weight: 500;

    color: #ffffff;

}



.about-feature .icon {

    width: 32px;

    height: 32px;

    background: rgba(195, 159, 118, 0.1);

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--accent-gold);

    font-size: 14px;

    flex-shrink: 0;

}



.btn-primary {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 14px 36px;

    background: var(--primary-blue);

    color: #fff;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    border-radius: 0;

    border: none;

    cursor: pointer;

    transition: var(--transition-smooth);

}



.btn-primary:hover {

    background: var(--primary-blue-light);

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);

}



/* === SERVICES SECTION === */

.services-section {

    padding: var(--section-padding) 0;

    background: transparent;

}



.services-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 32px;

}



.service-card {

    background: rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-radius: 20px;

    padding: 40px 30px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.1);

    transition: var(--transition-smooth);

    position: relative;

    overflow: hidden;

}

@media (max-width: 768px) {
    .service-card.is-selected {
        background: var(--primary-blue) !important;
        border-color: var(--primary-blue) !important;
    }

    .service-card.is-selected * {
        color: #fff !important;
    }

    .service-card.is-selected .service-icon img {
        animation: anim9-morph 4s ease-in-out infinite alternate !important;
    }
}

.service-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));

    transform: scaleX(0);

    transition: transform 0.4s ease;

}



.service-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

    border-color: transparent;

}



.service-card:hover::before {

    transform: scaleX(1);

}



.service-icon {

    width: 60px;

    height: 60px;

    margin: 0 auto 28px;

    display: block;

    object-fit: contain;

    transition: var(--transition-smooth);

}



.service-card:hover .service-icon {

    animation: anim9-morph 2.4s ease-in-out infinite;

}



.service-card h3 {

    font-family: var(--font-display);

    font-size: 20px;

    font-weight: 500;

    margin-bottom: 16px;

    color: #ffffff;

}



.service-card p {

    font-size: 14px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.8);

}



/* === VALUES SECTION === */

.values-section {

    padding: 100px 0 0;

    /* Removed bottom padding */

    background: transparent;

    position: relative;

    overflow: hidden;

    min-height: 650px;

    /* Tighter min-height */

    display: flex;

    flex-direction: column;

    justify-content: center;

    margin-bottom: 0;

    /* Removed section margin */

}



.values-bg-image {

    position: absolute;

    left: -60px;

    bottom: 0;

    width: 480px;

    /* Reduced width for better balance */

    max-height: 100%;

    object-fit: contain;

    object-position: bottom left;

    opacity: 0.8;

    z-index: 1;

    pointer-events: none;

    filter: brightness(0.7);

}



.values-grid {

    display: grid !important;

    grid-template-columns: repeat(5, 1fr) !important;

    /* Strictly force 5 columns */

    gap: 0;

    position: relative;

    z-index: 2;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    margin-bottom: 60px;

    /* Added dedicated tighter margin for tiles */

}



.value-card {

    padding: 40px 30px;

    /* Match services card padding */

    text-align: left;

    border-right: 1px solid rgba(255, 255, 255, 0.1);

    transition: var(--transition-smooth);

    position: relative;

    background: rgba(255, 255, 255, 0.02);

    min-width: 0;

    /* Allow cards to shrink */

    box-sizing: border-box;

}



.value-card:last-child {

    border-right: none;

}



.value-card::before {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 0;

    height: 2px;

    background: var(--accent-gold);

    transition: width 0.4s ease;

}



.value-card:hover::before {

    width: 60px;

}



.value-card:hover {

    background: rgba(255, 255, 255, 0.03);

}



.value-bullet {

    width: 30px;

    height: 2px;

    background: var(--accent-gold);

    display: block;

    margin-bottom: 24px;

}



.value-icon {

    width: 50px;

    height: 50px;

    margin-bottom: 24px;

    display: block;

    transition: var(--transition-smooth);

    object-fit: contain;

}



@keyframes anim9-morph {

    0%,
    100% {

        border-radius: 50%;

        transform: scale(1) rotate(0deg);

    }

    25% {

        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;

        transform: scale(1.08) rotate(90deg);

    }

    50% {

        border-radius: 50%;

        transform: scale(0.95) rotate(180deg);
    }

    75% {

        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;

        transform: scale(1.08) rotate(270deg);

    }

}

@keyframes anim2-pulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 0.7;

    }

    50% {

        transform: scale(1.25);

        opacity: 1;

    }

}



.value-card:hover .value-icon {

    animation: anim9-morph 2.4s ease-in-out infinite;

}



.value-card h3 {

    font-family: var(--font-display);

    font-size: 22px;

    color: #ffffff;

    margin-bottom: 15px;

    font-weight: 500;

}



.value-card p {

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.7);

    font-size: 15px;

}



/* === MARKET DATA SECTION === */

.market-section {

    padding: var(--section-padding) 0;

    background: var(--bg-white);

}



.market-widget-container {

    background: var(--bg-white);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);

    border: 1px solid var(--border-subtle);

}



.market-tabs {

    display: flex;

    gap: 0;

    border-bottom: 1px solid var(--border-subtle);

    background: var(--bg-light);

}



.market-tab {

    padding: 16px 28px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: var(--text-secondary);

    cursor: pointer;

    transition: var(--transition-fast);

    border-bottom: 2px solid transparent;

    position: relative;

}



.market-tab.active {

    color: var(--primary-blue);

    border-bottom-color: var(--accent-gold);

    background: var(--bg-white);

}



.market-tab:hover:not(.active) {

    color: var(--text-primary);

    background: rgba(0, 0, 0, 0.02);

}



.market-table {

    width: 100%;

    border-collapse: collapse;

}



.market-table th {

    padding: 14px 20px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: var(--text-light);

    text-align: left;

    border-bottom: 1px solid var(--border-subtle);

    background: var(--bg-light);

}



.market-table td {

    padding: 14px 20px;

    font-size: 14px;

    color: var(--text-primary);

    border-bottom: 1px solid rgba(0, 0, 0, 0.03);

    font-variant-numeric: tabular-nums;

}



.market-table tr:hover {

    background: rgba(195, 159, 118, 0.03);

}



.price-up {

    color: #22c55e;

    font-weight: 600;

}



.price-down {

    color: #ef4444;

    font-weight: 600;

}



.market-table-panel {

    display: none;

}



.market-table-panel.active {

    display: block;

}



/* === VISION / MISSION === */

/* === DYNAMIC VISION/MISSION SPLIT === */
.vm-section-dynamic {
    width: 100%;
    background: transparent;
    overflow: visible;
    position: relative;
    z-index: 10;
    display: block;
    padding: clamp(140px, 15vw, 200px) 0;
    margin-bottom: 0;
}

/* Desktop: Ensure split container is visible and styled as tiles */
@media (min-width: 993px) {
    .vm-section-dynamic {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        padding: clamp(140px, 15vw, 200px) 0 !important;
        position: relative !important;
        z-index: 10 !important;
        margin-bottom: 0 !important;
    }

    .vm-split-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        gap: 30px !important;
        padding: 0 40px !important;
        position: relative !important;
    }

    .vm-pane {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 1 !important;
        height: auto !important;
        min-height: 500px !important;
        padding: 60px 50px !important;
        align-items: flex-end !important;
        border-radius: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

.vm-split-container {
    display: flex;
    height: 90vh;
    min-height: 700px;
    width: 100%;
}

.vm-pane {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 80px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo in top left corner */
.vm-pane-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    z-index: 15;
    object-fit: contain;
    animation: anim2-pulse 1.6s ease-in-out infinite;
}

.vm-pane:last-child {
    border-right: none;
}

.vm-pane:hover {
    flex: 1.6;
}

/* Background Reveal Effect */
.vm-pane-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: saturate(0) brightness(0.5);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease;
    z-index: 1;
}

.vm-pane.vision .vm-pane-bg {
    background-image: url('../assets/images/vision-bg.png');
    /* Fallback to a nice dark texture if image missing */
    background-color: #0d1b2a;
}

.vm-pane.mission .vm-pane-bg {
    background-image: url('../assets/images/mission-bg.png');
    background-color: #1a3a6b;
}

.vm-pane:hover .vm-pane-bg {
    transform: scale(1.08);
    opacity: 0.4;
    filter: saturate(0.5) brightness(0.7);
}

/* Content Layout */
.vm-pane-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-pane:hover .vm-pane-content {
    transform: translateY(-20px);
}

.vm-pane-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.vm-pane-number {
    font-family: var(--font-display);
    font-size: 140px;
    font-weight: 700;
    line-height: 0.8;
    color: var(--accent-gold);
    opacity: 0.1;
    margin-bottom: -20px;
    margin-left: -10px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vm-pane:hover .vm-pane-number {
    opacity: 0.3;
    transform: translateX(10px);
}

.vm-pane-title {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: -2px;
    transition: color 0.4s ease;
}

.vm-pane.vision:hover .vm-pane-title,
.vm-pane.mission:hover .vm-pane-title {
    color: var(--accent-gold);
}

.vm-pane-body {
    opacity: 0.4;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-pane:hover .vm-pane-body {
    opacity: 1;
    transform: translateY(0);
}

.vm-pane-body p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.vm-pane-line {
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.vm-pane:hover .vm-pane-line {
    width: 100%;
}

/* Mobile Adjustments for vm-section-dynamic (Carousel Mode) */
@media (max-width: 992px) {
    .vm-section-dynamic {
        padding: 60px 0;
        min-height: auto;
        background: transparent !important;
        /* Remove deep dark background to allow hero to show through */
    }

    .vm-split-container {
        display: flex !important;
        flex-direction: row !important;
        height: auto;
        gap: 24px;
        padding: 0 24px 40px;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Hide Scrollbar */
    .vm-split-container::-webkit-scrollbar {
        display: none;
    }

    .vm-pane {
        flex: 0 0 88% !important;
        width: 88% !important;
        min-height: clamp(420px, 72svh, 520px);
        padding: 50px 35px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 32px;
        background: transparent !important;
        background-color: transparent !important;
        /* Ensure absolute transparency */
        scroll-snap-align: center !important;
        cursor: default;
        position: relative;
        overflow: hidden;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 0 rgba(195, 159, 118, 0);
    }

    .vm-pane-logo {
        top: 20px !important;
        left: 20px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .vm-pane.focused {
        box-shadow: inset 0 0 40px rgba(195, 159, 118, 0.15), 0 0 20px rgba(195, 159, 118, 0.1);
        border-color: rgba(195, 159, 118, 0.4) !important;
    }

    .vm-pane.focused .vm-pane-line {
        width: 100% !important;
    }

    .vm-pane.focused .vm-pane-body {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .vm-pane:hover {
        flex: 0 0 88% !important;
        /* Disable expansion on mobile */
    }

    .vm-pane-bg {
        display: none;
        /* Remove image reveal on mobile for cleaner look */
    }

    .vm-pane-content {
        max-width: 100%;
        transform: none !important;
    }

    .vm-pane-header {
        margin-bottom: 30px;
        position: relative;
    }

    .vm-pane-number {
        font-size: 100px;
        position: absolute;
        top: -10px;
        left: -5px;
        opacity: 0.08 !important;
        margin: 0;
        pointer-events: none;
    }

    .vm-pane-title {
        font-size: 60px;
        position: relative;
        z-index: 2;
        margin-top: 20px;
    }

    .vm-pane-body {
        opacity: 1 !important;
        transform: none !important;
        margin-top: 20px;
    }

    .vm-pane-body p {
        font-size: 16px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.8);
    }

    .vm-pane-line {
        width: 60px;
        margin-top: 25px;
    }
}



.page-nosotros .bg-video {

    filter: blur(8px) brightness(0.4);

}



/* === TEAM SECTION (Nosotros Page) === */

.team-section {

    padding: clamp(140px, 15vw, 200px) 0;

    background: transparent;

    position: relative;

    z-index: 10;

}



.team-intro {

    max-width: 1400px;

    margin: 0 auto clamp(60px, 8vw, 100px);

    text-align: center;

}



.team-section .section-title {

    color: #fff;

    margin-bottom: 30px;

}



.team-intro p {

    font-size: clamp(16px, 1.2vw, 19px);

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.85);

    font-weight: 300;

    max-width: 700px;

    margin-left: auto;

    margin-right: auto;

}



/* Desktop: Normal container, no carousel */
.team-carousel-container {
    width: 100%;
    position: relative;
    padding-bottom: 20px;
}

/* Mobile: Carousel with horizontal scroll */
@media (max-width: 768px) {
    .team-carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Scroll snap for sequential card scrolling */
        scroll-snap-type: x mandatory;
        /* Custom scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
    }
}

/* Desktop: Hide carousel indicators and fade gradients */
@media (min-width: 769px) {

    .carousel-fade-left,
    .carousel-fade-right,
    .carousel-indicator-text {
        display: none !important;
    }
}

/* Mobile: Fade gradients to indicate scrollability */
@media (max-width: 768px) {

    .carousel-fade-left,
    .carousel-fade-right {
        position: absolute;
        top: 0;
        bottom: 20px;
        width: 40px;
        pointer-events: none;
        z-index: 0;
        transition: opacity 0.3s ease;
    }

    .carousel-fade-left {
        left: 0;
        background: linear-gradient(to right, rgba(13, 27, 42, 0.6), transparent);
        opacity: 0;
    }

    .carousel-fade-right {
        right: 0;
        background: linear-gradient(to left, rgba(13, 27, 42, 0.6), transparent);
        opacity: 1;
    }

    .team-carousel-container.scrolled-left .carousel-fade-left {
        opacity: 1;
    }

    .team-carousel-container.scrolled-right .carousel-fade-right {
        opacity: 0;
    }

    .team-carousel-container.scrolled-middle .carousel-fade-left,
    .team-carousel-container.scrolled-middle .carousel-fade-right {
        opacity: 1;
    }

    /* Text indicator below carousel */
    .carousel-indicator-text {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        min-height: 24px;
        position: relative;
    }

    .carousel-indicator-text span {
        display: none;
        text-align: center;
        color: var(--accent-gold);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        animation: pulseText 2s ease-in-out infinite;
    }

    .team-carousel-container.scrolled-left .indicator-text-right {
        display: inline-block;
    }

    .team-carousel-container.scrolled-right .indicator-text-left {
        display: inline-block;
    }

    .team-carousel-container.scrolled-middle .indicator-text-both {
        display: inline-block;
    }
}

@keyframes pulseText {

    0%,
    100% {

        opacity: 0.6;

    }

    50% {

        opacity: 1;

    }

}

@media (max-width: 768px) {

    .carousel-fade-left,

    .carousel-fade-right {

        width: 30px;

    }

    .carousel-indicator-text {

        margin-top: 15px;

    }

    .carousel-indicator-text span {

        font-size: 12px;

        letter-spacing: 1.5px;

    }

}

/* Mobile: Custom scrollbar styling */
@media (max-width: 768px) {
    .team-carousel-container::-webkit-scrollbar {
        height: 8px;
    }

    .team-carousel-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .team-carousel-container::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 4px;
    }

    .team-carousel-container::-webkit-scrollbar-thumb:hover {
        background: var(--accent-gold-light);
    }
}

/* Desktop: Grid layout */
@media (min-width: 769px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(4, 280px);
        justify-content: center;
        gap: 40px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile: Flex carousel layout */
@media (max-width: 768px) {
    .team-carousel-container {
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + 2 * var(--container-padding));
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        justify-content: flex-start;
    }

    .team-grid {
        display: flex;
        flex-direction: row;
        gap: 40px;
        width: max-content;
        padding: 0;
        margin: 0;
        padding-left: calc((100vw - 320px) / 2);
        position: relative;
        z-index: 10;
    }

    .team-grid::after {
        content: '';
        flex-shrink: 0;
        width: calc((100vw - 320px) / 2);
    }

    .team-card {
        width: 280px;
        min-width: 280px;
        position: relative;
        z-index: 10;
    }
}



.team-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    z-index: 2;
}

/* Desktop: Normal card sizing */
@media (min-width: 769px) {
    .team-card {
        width: 100%;
        flex-shrink: 1;
    }
}

/* Mobile: Fixed width for carousel with scroll snap */
@media (max-width: 768px) {
    .team-card {
        flex-shrink: 0;
        width: 320px;
        min-width: 320px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}



.team-card:hover,
.team-card.focused {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(195, 159, 118, 0.4);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

/* Override data-animate transform so focused lift is visible */
.team-card.focused[data-animate].visible {
    transform: translateY(-15px);
}

.team-card-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    background: #000;

    z-index: 1;

}



.team-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);

    filter: brightness(0.9);

}



.team-card:hover .team-card-image img,

.team-card.focused .team-card-image img {

    transform: scale(1.1);

    filter: brightness(1.05);

}



.team-card-info {

    padding: 40px;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background: linear-gradient(to top,

            rgba(13, 27, 42, 0.95) 0%,

            rgba(13, 27, 42, 0.4) 50%,

            rgba(13, 27, 42, 0) 100%);

    position: relative;

    z-index: 2;

    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);

}



.team-card:hover .team-card-info,

.team-card.focused .team-card-info {

    padding-bottom: 50px;

}



.team-card-info h3 {

    font-family: var(--font-display);

    font-size: 28px;

    font-weight: 400;

    margin-bottom: 8px;

    color: #fff;

    letter-spacing: 1px;

    transform: translateY(0);

    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);

}



.team-card-info .role {

    font-size: 11px;

    color: var(--accent-gold);

    font-weight: 600;

    margin-bottom: 0;

    line-height: 1.4;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.9;

}



.team-card-contact {

    display: flex;

    flex-direction: column;

    gap: 12px;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);

    border-top: 1px solid rgba(195, 159, 118, 0.2);

    margin-top: 0;

    padding-top: 0;

}



.team-card:hover .team-card-contact,

.team-card.focused .team-card-contact {

    max-height: 120px;

    opacity: 1;

    margin-top: 25px;

    padding-top: 20px;

}



.team-card-contact a {

    font-size: 12px;

    color: rgba(255, 255, 255, 0.7);

    display: flex;

    align-items: center;

    gap: 12px;

    transition: all 0.3s ease;

    letter-spacing: 0.5px;

}



.team-card-contact a:hover {

    color: var(--accent-gold);

    transform: translateX(8px);

}



.contact-icon {

    font-size: 14px;

    color: var(--accent-gold);

    width: 20px;

    display: flex;

    justify-content: center;

    opacity: 0.8;

}



/* Subtle corner accents for AWWWARD feel */

.team-card::before {

    content: '';

    position: absolute;

    top: 20px;

    right: 20px;

    width: 40px;

    height: 40px;

    border-top: 1px solid rgba(195, 159, 118, 0.3);

    border-right: 1px solid rgba(195, 159, 118, 0.3);

    z-index: 3;

    opacity: 0;

    transition: all 0.6s ease;

}



.team-card:hover::before,

.team-card.focused::before {

    opacity: 1;

    top: 30px;

    right: 30px;

}



.market-widget-container {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}



.tradingview-widget-container iframe {

    min-width: 800px;

    margin: 0 auto;

}



.commodity-widget-container iframe {

    min-width: 800px;

    margin: 0 auto;

}



/* === CONTACT PAGE REDESIGN === */

.page-contacto .bg-video {

    filter: blur(8px) brightness(0.4);

}



.contact-section {

    padding: clamp(140px, 15vw, 200px) 0;

    background: transparent;

    position: relative;

    z-index: 10;

}



/* Desktop: Normal container, no carousel */
.offices-carousel-container {
    width: 100%;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 80px;
}

/* Mobile: Carousel with horizontal scroll */
@media (max-width: 768px) {
    .offices-carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Scroll snap for sequential card scrolling */
        scroll-snap-type: x mandatory;
        /* Custom scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
    }
}

/* Desktop: Hide carousel indicators and fade gradients */
@media (min-width: 769px) {

    .offices-carousel-container .carousel-fade-left,
    .offices-carousel-container .carousel-fade-right,
    .offices-carousel-container .carousel-indicator-text {
        display: none !important;
    }
}

/* Mobile: Custom scrollbar styling */
@media (max-width: 768px) {
    .offices-carousel-container::-webkit-scrollbar {
        height: 8px;
    }

    .offices-carousel-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .offices-carousel-container::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 4px;
    }

    .offices-carousel-container::-webkit-scrollbar-thumb:hover {
        background: var(--accent-gold-light);
    }

    /* Fade gradients to indicate scrollability */
    .offices-carousel-container .carousel-fade-left,
    .offices-carousel-container .carousel-fade-right {
        position: absolute;
        top: 0;
        bottom: 20px;
        width: 40px;
        pointer-events: none;
        z-index: 0;
        transition: opacity 0.3s ease;
    }

    .offices-carousel-container .carousel-fade-left {
        left: 0;
        background: linear-gradient(to right, rgba(13, 27, 42, 0.6), transparent);
        opacity: 0;
    }

    .offices-carousel-container .carousel-fade-right {
        right: 0;
        background: linear-gradient(to left, rgba(13, 27, 42, 0.6), transparent);
        opacity: 1;
    }

    .offices-carousel-container.scrolled-left .carousel-fade-left {
        opacity: 1;
    }

    .offices-carousel-container.scrolled-right .carousel-fade-right {
        opacity: 0;
    }

    .offices-carousel-container.scrolled-middle .carousel-fade-left,
    .offices-carousel-container.scrolled-middle .carousel-fade-right {
        opacity: 1;
    }

    /* Text indicator below carousel - sits outside scroll container as sibling */
    .offices-carousel-container + .carousel-indicator-text {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        min-height: 24px;
        position: relative;
    }

    .offices-carousel-container + .carousel-indicator-text span {
        display: none;
        color: var(--accent-gold);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        animation: pulseText 2s ease-in-out infinite;
    }

    .offices-carousel-container.scrolled-left + .carousel-indicator-text .indicator-text-right {
        display: inline-block;
    }

    .offices-carousel-container.scrolled-right + .carousel-indicator-text .indicator-text-left {
        display: inline-block;
    }

    .offices-carousel-container.scrolled-middle + .carousel-indicator-text .indicator-text-both {
        display: inline-block;
    }
}

/* Desktop: Grid layout - 4 cards in one row */
@media (min-width: 769px) {
    .offices-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 1400px;
    }
}

/* Mobile: Flex carousel layout */
@media (max-width: 768px) {
    .offices-grid {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: max-content;
        padding: 0;
        margin: 0;
        padding-left: calc((100vw - 280px) / 2);
    }

    .offices-grid::after {
        content: '';
        flex-shrink: 0;
        width: calc((100vw - 280px) / 2);
    }
}



/* Desktop: Responsive grid adjustments - keep 4 columns on larger tablets */
@media (min-width: 769px) and (max-width: 1200px) {
    .offices-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .office-card {
        width: 100%;
    }
}






.office-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Desktop: Normal card sizing */
@media (min-width: 769px) {
    .office-card {
        width: 100%;
        flex-shrink: 1;
    }
}

/* Mobile: Fixed width for carousel with scroll snap */
@media (max-width: 768px) {
    .offices-carousel-container {
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + 2 * var(--container-padding));
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }

    .offices-grid {
        position: relative;
        z-index: 10;
    }

    .office-card {
        flex-shrink: 0;
        width: 280px;
        min-width: 280px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        position: relative;
        z-index: 10;
    }
}



.office-card:hover,
.office-card.focused {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(195, 159, 118, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Override data-animate transform so focused lift is visible */
.office-card.focused[data-animate].visible {
    transform: translateY(-10px);
}

.office-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 2px;

    height: 0;

    background: var(--accent-gold);

    transition: all 0.6s ease;

}



.office-card:hover {

    transform: translateY(-10px);

    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(195, 159, 118, 0.3);

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);

}



.office-card:hover::before,

.office-card.focused::before {

    height: 100%;

}



.office-card h3 {

    font-family: var(--font-display);

    font-size: 24px;

    color: #fff;

    margin-bottom: 8px;

    letter-spacing: 1px;

}



.office-card .country {

    font-size: 11px;

    color: var(--accent-gold);

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 30px;

    opacity: 0.8;

}



.office-flag {

    position: absolute;

    top: 0;

    right: 0;

    width: 30px;

    height: 20px;

    border-radius: 0 0 0 2px;

    overflow: hidden;

    opacity: 0.15;

    filter: grayscale(0.8);

    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);

    z-index: 2;

}



.office-card:hover .office-flag,

.office-card.focused .office-flag {

    opacity: 0.6;

    filter: grayscale(0.2);

    width: 36px;

    height: 24px;

}



.office-flag img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.office-detail {

    display: flex;

    gap: 15px;

    margin-bottom: 15px;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.6;

    transition: all 0.3s ease;

}



.office-detail a:hover {

    color: var(--accent-gold);

}



.office-detail .label {

    width: 20px;

    color: var(--accent-gold);

    flex-shrink: 0;

    text-align: center;

    opacity: 0.8;

}



/* Contact Form Section */

.contact-form-section {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 80px;

    margin-top: 60px;

    align-items: start;

}



.contact-form-info h3 {

    font-family: var(--font-display);

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.2;

    margin-bottom: 25px;

    color: #fff;

}



.contact-form-info p {

    font-size: 17px;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.8;

    margin-bottom: 45px;

}



.contact-info-items {

    display: flex;

    flex-direction: column;

    gap: 30px;

}



.contact-info-item {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    font-size: 15px;

    color: rgba(255, 255, 255, 0.8);

}



.contact-info-item .icon {

    margin-top: 0;

    flex-shrink: 0;

}



.contact-info-item .icon {

    width: 40px;

    height: 40px;

    background: rgba(195, 159, 118, 0.1);

    border: 1px solid rgba(195, 159, 118, 0.2);

    border-radius: 0px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    color: var(--accent-gold);

    flex-shrink: 0;

    transition: all 0.4s ease;

}



.contact-info-item:hover .icon {

    background: var(--accent-gold);

    color: var(--dark);

}



.contact-info-item>div:not(.icon) {

    display: block;

    flex: 1;

    line-height: 1.6;

    padding-top: 0;

    margin-top: 0;

}



.contact-info-item strong {

    display: block;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--accent-gold);

    margin-bottom: 4px;

    line-height: 1.4;

    margin-top: 0;

    padding-top: 0;

}



.contact-info-item>div br {

    line-height: 0;

    display: none;

    margin: 0;

    padding: 0;

}



.contact-info-item>div>*:not(strong):not(br) {

    display: block;

    margin-top: 4px;

    margin-bottom: 0;

    line-height: 1.6;

    padding-top: 0;

}



/* Glassy Form */

.contact-form {

    background: rgba(255, 255, 255, 0.02);

    backdrop-filter: blur(30px);

    -webkit-backdrop-filter: blur(30px);

    border-radius: 0px;

    padding: clamp(30px, 5vw, 60px);

    border: 1px solid rgba(255, 255, 255, 0.08);

}



.form-group {

    margin-bottom: 25px;

}



.form-group label {

    display: block;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 12px;

    opacity: 0.8;

}



.form-group input,

.form-group textarea {

    width: 100%;

    padding: 16px 0;

    border: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 0;

    font-family: var(--font-primary);

    font-size: 16px;

    color: #fff;

    background: transparent;

    transition: all 0.4s ease;

}



.form-group input:focus,

.form-group textarea:focus {

    outline: none;

    border-bottom-color: var(--accent-gold);

}



.form-group input::placeholder,

.form-group textarea::placeholder {

    color: rgba(255, 255, 255, 0.3);

}



.form-group textarea {

    height: 120px;

    resize: none;

}



.form-check {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 35px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.6);

}



.form-check input[type="checkbox"] {

    appearance: none;

    width: 18px;

    height: 18px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    cursor: pointer;

    position: relative;

    transition: all 0.3s ease;

}



.form-check input[type="checkbox"]:checked {

    background: var(--accent-gold);

    border-color: var(--accent-gold);

}



.form-check input[type="checkbox"]:checked::after {

    content: '✓';

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    color: var(--dark);

    font-size: 12px;

}



.btn-submit {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 20px 45px;

    background: transparent;

    color: var(--accent-gold);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    border: 1px solid var(--accent-gold);

    border-radius: 0;

    cursor: pointer;

    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);

    width: auto;

}



.btn-submit:hover {

    background: var(--accent-gold);

    color: var(--dark);

    transform: translateY(-5px);

    box-shadow: 0 15px 40px rgba(195, 159, 118, 0.2);

}



@media (max-width: 992px) {

    .contact-form-section {

        grid-template-columns: 1fr;

        gap: 60px;

    }



    .contact-form {

        padding: 40px 30px;

    }

}



/* === PAGE HERO (Sub-pages) === */

.page-hero {

    height: 40vh;

    min-height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    background: transparent;

    overflow: hidden;

    margin-top: 0;

    padding-top: 100px;

    text-align: center;

}



.page-hero-bg {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0.3;

    filter: grayscale(0.5);

}



.page-hero-bg-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 0.4;

    filter: grayscale(0.2);

}



.page-hero-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.95));

}



.page-hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

}



.page-hero h1 {

    font-family: var(--font-display);

    font-size: clamp(36px, 5vw, 60px);

    color: #fff;

    font-weight: 400;

    margin-bottom: 12px;

}



.page-hero .breadcrumb {

    font-size: 13px;

    color: rgba(255, 255, 255, 0.8);

    letter-spacing: 1px;

}



.page-hero .breadcrumb a {

    color: var(--accent-gold);

}



.page-hero .section-tag {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 16px;

    font-weight: 600;

}



/* === FOOTER === */

.footer {

    background: var(--dark);

    padding: 40px 0 120px;

    /* Increased bottom padding for marquee */

    margin-top: auto;

    position: relative;

    z-index: 5;

}



.footer-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

    padding-bottom: 30px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    justify-items: center;

    text-align: center;

}



.footer h4 {

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 20px;

}



.footer-links a {

    display: block;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.5);

    margin-bottom: 10px;

    transition: var(--transition-fast);

}



.footer-links a:hover {

    color: #fff;

    transform: translateX(4px);

}



.footer-contact-item {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    color: rgba(255, 255, 255, 0.5);

    margin-bottom: 12px;

}



.footer-contact-item .icon {

    color: var(--accent-gold);

    font-size: 14px;

}



.footer-bottom {

    padding: 20px 0;

    text-align: center;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.3);

}



/* === SCROLL ANIMATIONS === */

[data-animate] {

    opacity: 0;

    transform: translateY(30px);

    transition: opacity 0.8s ease, transform 0.8s ease;

}



[data-animate].visible {

    opacity: 1;

    transform: translateY(0);

}



[data-animate="fade-left"] {

    transform: translateX(-40px);

}



[data-animate="fade-left"].visible {

    transform: translateX(0);

}



[data-animate="fade-right"] {

    transform: translateX(40px);

}



[data-animate="fade-right"].visible {

    transform: translateX(0);

}



[data-animate="scale"] {

    transform: scale(0.95);

}



[data-animate="scale"].visible {

    transform: scale(1);

}



/* === TYPING ANIMATION === */

.typing-section {

    padding: 80px 0;

    background: var(--bg-cream);

    text-align: center;

}



.typing-text {

    font-family: var(--font-display);

    font-size: clamp(20px, 3vw, 32px);

    font-weight: 400;

    color: var(--text-primary);

    max-width: 800px;

    margin: 0 auto;

    line-height: 1.5;

}



.typing-cursor {

    display: inline-block;

    width: 2px;

    height: 1.1em;

    background: var(--accent-gold);

    margin-left: 4px;

    vertical-align: text-bottom;

    animation: blink 1s step-end infinite;

}



@keyframes blink {



    0%,

    100% {

        opacity: 1;

    }



    50% {

        opacity: 0;

    }

}



/* === RESPONSIVE === */

@media (max-width: 1024px) {

    .about-grid {

        grid-template-columns: 1fr;

        gap: 48px;

    }



    .about-stats {

        position: relative;

        bottom: 0;

        right: 0;

        margin-top: 20px;

    }



    .services-grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .values-grid {

        grid-template-columns: repeat(3, 1fr);

    }



    .value-card:nth-child(4),

    .value-card:nth-child(5) {

        border-right: none;

    }



    .office-card {

        width: 300px;

        min-width: 300px;

    }



    .contact-form-section {

        grid-template-columns: 1fr;

    }



    .footer-grid {

        grid-template-columns: 1fr 1fr;

    }



    .team-card {

        width: 280px;

        min-width: 280px;

    }

}



@media (max-width: 768px) {

    /* Fail-safe global mobile fixes */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .nav,
    nav.nav {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        /* Ensure mobile nav stays on top */
        background: rgba(13, 27, 42, 0.6) !important;
        /* Glassy background on mobile */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 15px 0 !important;
    }

    .nav-inner {
        padding: 0 20px !important;
        justify-content: space-between !important;
    }

    /* Hide desktop sound toggle on mobile - it shows up in overlay otherwise */
    .desktop-sound-toggle {
        display: none !important;
    }

    .nav-logo {
        margin-right: auto;
    }

    .nav-logo img,
    nav.nav .nav-logo img {
        height: 70px !important;
        /* Significantly smaller logo for mobile */
    }

    /* Force background on mobile scroll */
    .nav.scrolled {
        padding: 10px 0 !important;
        background: rgba(13, 27, 42, 0.8) !important;
    }

    .hero-bg,
    .bg-video,
    .hero-overlay,
    .hero-particles {
        width: 100% !important;
        height: 100% !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
    }


    .nav-logo img,
    nav.nav .nav-logo img {
        height: 115px !important;
    }

    .marquee-section {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .hero-scroll {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 40px auto 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: 10 !important;
    }

    /* Horizontal scroll for market widgets - apply to WIDGET WRAPPER instead of card */
    .live-market-card {
        overflow: visible !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .futures-card {
        padding: 20px !important;
    }

    .futures-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
    }

    .futures-meta {
        font-size: 9px !important;
    }

    .market-card-title {
        margin-bottom: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        white-space: normal !important;
        letter-spacing: 2px !important;
        line-height: 1.4 !important;
    }

    .tradingview-widget-container,
    .futures-widget-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto !important;
        border-radius: 8px;
    }

    .tradingview-widget-container::-webkit-scrollbar,
    .futures-widget-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .tradingview-widget-container::-webkit-scrollbar-thumb,
    .futures-widget-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 4px;
    }

    .tradingview-widget-container__widget,
    .futures-widget-wrapper iframe {
        width: 100% !important;
        min-width: 1000px !important;
        transform: none !important;
    }

    /* Remove scrollbar from card since we moved it */
    .live-market-card::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        display: flex !important;
        /* Always flex on mobile for transition to work */
        flex-direction: column;
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: var(--dark);
        /* Solid blue header color */
        z-index: 9999;
        /* Account for iOS safe areas so links center within the visible area */
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);

        /* Modern Entrance Animation State: Expanded from Top */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        clip-path: circle(0% at calc(100% - 40px) 40px);
        /* Starts from the hamburger menu position */
        transition: opacity 0.4s ease, visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        clip-path: circle(150% at calc(100% - 40px) 40px);
        /* Expands to cover full screen */
    }

    .nav-toggle {
        display: flex;
        z-index: 10002;
        /* Ensure it stays above everything */
        transition: all 0.3s ease;
        padding: 10px;
        margin: -10px;
        /* Offset padding for same visual position */
    }

    /* Transform hamburger into X when menu is open */
    body.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    body.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hide chat widgets and other floating elements when menu is open */
    body.menu-open .whatsapp-fab,
    body.menu-open #chatbase-button,
    body.menu-open [data-chatbase-button],
    body.menu-open button[aria-label*="Chat"],
    body.menu-open div[role="button"][aria-label*="Chat"],
    body.menu-open .sound-toggle {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* Staggered Link Animation */
    .nav-links a {
        font-size: 20px;
        color: #fff;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;

        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger Delays */
    .nav-links.open a:nth-of-type(1) {
        transition-delay: 0.1s;
    }

    .nav-links.open a:nth-of-type(2) {
        transition-delay: 0.15s;
    }

    .nav-links.open a:nth-of-type(3) {
        transition-delay: 0.2s;
    }

    .nav-links.open a:nth-of-type(4) {
        transition-delay: 0.25s;
    }

    /* Remove redundant close button */
    .close-menu-btn,
    .nav-links.open .close-menu-btn {
        display: none !important;
    }

    .close-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }



    .lang-dropdown.desktop-only {
        display: none !important;
    }

    .lang-dropdown.mobile-only {
        display: block !important;
    }

    /* Reposition translation button to header on mobile */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 10001;
        /* Above everything including menu overlay */
    }

    /* Style the mobile translation button */
    .lang-dropdown.mobile-only .lang-switch {
        display: block !important;
        font-size: 12px;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 4px;
        color: #fff;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-weight: 500;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }

    /* Active state when scrolling */
    .nav.scrolled .lang-dropdown.mobile-only .lang-switch {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
        background: transparent;
    }

    /* Mobile dropdown menu positioning */
    .lang-dropdown.mobile-only .lang-dropdown-menu {
        right: 0;
        left: auto;
    }



    .vm-grid,
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Hide scrollbar for a cleaner look */
    .services-grid::-webkit-scrollbar,
    #values .values-grid::-webkit-scrollbar,
    .vm-section::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Hide any slider indicators */
    .services-grid::-webkit-scrollbar-thumb,
    #values .values-grid::-webkit-scrollbar-thumb,
    .vm-section::-webkit-scrollbar-thumb,
    .services-grid::-webkit-scrollbar-track,
    #values .values-grid::-webkit-scrollbar-track,
    .vm-section::-webkit-scrollbar-track {
        background: transparent !important;
        display: none !important;
    }

    .service-card {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }

    /* Active/Tap state */
    .service-card:active,
    .service-card.tapped {
        transform: translateY(-5px) scale(1.01) !important;
        border-color: var(--accent-gold) !important;
        background: rgba(26, 58, 107, 0.6) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.2s ease !important;
    }

    .service-card:active::before,
    .service-card.tapped::before {
        transform: scaleX(1) !important;
    }

    .service-card:active .service-icon,
    .service-card.tapped .service-icon {
        animation: anim9-morph 2.4s ease-in-out infinite !important;
    }




    #values .container {
        padding: 0 var(--container-padding) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #values .section-header {
        padding: 0 !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #values .section-title {
        font-size: clamp(28px, 8vw, 36px) !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    #values .values-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-top: none !important;
        border-bottom: none !important;
        overflow: visible !important;
    }

    #values .value-card {
        width: 100% !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 40px 30px !important;
        text-align: center !important;
        position: relative !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
        transition: var(--transition-smooth) !important;
        min-height: auto !important;
        height: auto !important;
    }

    #values .value-card:last-child {
        border-bottom: none !important;
    }

    /* Unify Typography - Match Service Cards */
    #values .value-card h3 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
        font-weight: 500 !important;
    }

    #values .value-card p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    #values .value-bullet {
        display: none !important;
    }

    #values .value-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 28px !important;
    }

    #values .value-card:hover .value-icon {
        animation: anim9-morph 2.4s ease-in-out infinite !important;
    }

    /* Add Top Border Animation to match Services */
    #values .value-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 3px !important;
        background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue)) !important;
        transform: scaleX(0) !important;
        transition: transform 0.4s ease !important;
        width: 100% !important;
        /* Override desktop width: 0 */
        bottom: auto !important;
        /* Override desktop bottom: 0 */
    }

    /* Active/Tap State for Values */
    #values .value-card:active,
    #values .value-card.tapped {
        transform: translateY(-5px) scale(1.01) !important;
        border-color: var(--accent-gold) !important;
        background: rgba(26, 58, 107, 0.6) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.2s ease !important;
    }

    #values .value-card:active::before,
    #values .value-card.tapped::before {
        transform: scaleX(1) !important;
    }

    #values .value-card:active .value-icon,
    #values .value-card.tapped .value-icon {
        animation: anim9-morph 2.4s ease-in-out infinite !important;
    }

    /* Visual indicator for values carousel - HIDDEN on mobile */
    #values::after,
    .services-section::after {
        display: none !important;
    }

    /* Value icon styling for mobile */
    #values .value-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 24px !important;
    }

    #values .value-card:hover .value-icon {
        animation: anim9-morph 2.4s ease-in-out infinite !important;
    }



    .vm-section {

        grid-template-columns: 1fr;

    }



    .office-card {
        width: 280px;
        min-width: 280px;
    }

    /* Hide Grua Image on Mobile */
    .values-bg-image {
        display: none !important;
    }

    /* Ensure Values Section is Visible */
    .values-section {
        padding-top: 40px !important;
        padding-bottom: 120px !important;
        /* Significant bottom padding to push footer */
        min-height: auto !important;
        /* Allow height to grow with content */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        z-index: 5 !important;
        position: relative !important;
        overflow: visible !important;
        /* Allow shadow overflow */
        margin-bottom: 0 !important;
    }

    /* Simplify Footer on Mobile */
    .footer {
        padding: 30px 0 20px !important;
        /* Reduced padding */
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        /* Tighter gap */
        padding-bottom: 20px !important;
    }

    .footer h4 {
        margin-bottom: 10px !important;
        /* Reduced margin */
    }

    .footer-contact-item {
        margin-bottom: 8px !important;
        justify-content: center !important;
        font-size: 13px !important;
        /* Slightly smaller text */
    }

    .footer-bottom {
        padding-top: 15px !important;
        font-size: 11px !important;
        /* Smaller copyright text */
        margin-top: 0 !important;
    }

    /* Hide Navigation and Markets columns */
    .footer-grid>div:nth-child(1),
    .footer-grid>div:nth-child(2) {
        display: none !important;
    }

    /* Bigger Logo on Mobile */
    .nav-logo img {
        height: 60px !important;
        /* Increased size for mobile visibility */
    }

    .nav.scrolled .nav-logo img {
        height: 50px !important;
    }
}

@media (min-width: 1024px) {
    .nav-logo img {
        height: 220px !important;
        /* Larger logo for desktop/PC layout */
    }

    .nav.scrolled .nav-logo img {
        height: 180px !important;
        /* Slightly smaller on scroll but still prominent */
    }
}



.team-card {

    width: 300px;

    min-width: 300px;

}



.about-features {
    grid-template-columns: 1fr;
}



@media (max-width: 480px) {

    .values-grid {
        /* Override 480px grid reset to keep flex carousel */
        grid-template-columns: none !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
    }

    .value-card {
        /* Override border resets */
        border-right: 1px solid rgba(195, 159, 118, 0.3) !important;
        border-bottom: 1px solid rgba(195, 159, 118, 0.3) !important;
        /* Ensure width stays 85% */
        width: 85% !important;
        min-width: 85% !important;
        flex: 0 0 85% !important;
    }

    .team-card {

        width: 100%;

        min-width: 280px;

        max-width: 320px;

    }



    .about-stats.split-stats {

        flex-direction: row !important;

        gap: 20px;

        justify-content: center;

        align-items: center;

    }

    .close-menu-btn {
        top: 28px !important;
        /* Centered for 60px logo on small screens */
    }

}



/* === PREMIUM CHARACTER-LEVEL TRANSITIONS === */

[data-i18n] {

    opacity: 1;

    transition: opacity 0.3s ease;

}



/* Character Container */

.char-container {

    display: inline-block;

    overflow: hidden;

    vertical-align: bottom;

}



/* === PREMIUM CHARACTER-LEVEL TRANSITIONS (Headers) === */

.char-container {

    display: inline-block;

    overflow: hidden;

    vertical-align: bottom;

}



.char {

    display: inline-block;

    will-change: transform, opacity;

    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),

        opacity 0.2s ease;

}



.char-exiting {

    transform: translateY(-110%);

    opacity: 0;

}



.char-entering {

    transform: translateY(110%);

    opacity: 0;

}



.char-active {

    transform: translateY(0);

    opacity: 1;

}



.word-gap {

    display: inline-block;

}



/* === BLOCK-LEVEL TRANSITIONS (Paragraphs/Large Text) === */

[data-i18n] {

    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),

        transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);

    will-change: opacity, transform;

}



.i18n-fade-exiting {

    opacity: 0;

    transform: translateY(-8px);

    pointer-events: none;

}



.i18n-fade-entering {

    opacity: 0;

    transform: translateY(8px);

}



.i18n-fade-active {

    opacity: 1;

    transform: translateY(0);

}





/* === CONSOLIDATED MARKET LIVE DATA === */

.live-market-section {

    padding: 120px 0 60px;

    background: transparent;

    position: relative;

    z-index: 10;

}



.live-market-section .container {

    max-width: 95%;

    margin: 0 auto;

}



.live-market-stack {

    display: flex;

    flex-direction: column;

    gap: 40px;

    margin-top: 50px;

}

.live-market-futures-attached {
    margin-top: 16px;
}



.live-market-card {

    background: rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    padding: 30px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

    transition: var(--transition-smooth);

    overflow: hidden;

}



.live-market-card:hover {

    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(195, 159, 118, 0.3);

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);

}



.tradingview-widget-container {

    /* Visual tuning */
    filter: contrast(0.9) saturate(0.9);
    mix-blend-mode: lighten;

    /* Make the Forex table horizontally scrollable when it overflows
       (behaves like a carousel on smaller / zoomed-in viewports). */
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

}



.market-card-title {

    font-family: var(--font-primary);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--accent-gold);

    margin-bottom: 25px;

    display: flex;

    align-items: center;

    gap: 12px;

}



.market-card-title::before {

    content: '';

    display: block;

    width: 8px;

    height: 8px;

    background: var(--accent-gold);

    border-radius: 50%;

}



/* === FUTURES CARD HEADER === */
.futures-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

.futures-header .market-card-title {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

.futures-header .market-card-title::before {
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    box-shadow: 0 0 8px rgba(195, 159, 118, 0.4);
}

.futures-meta {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.futures-meta::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 2px rgba(34, 197, 94, 0.2);
    }
}

/* === FUTURES CARD SPECIFIC === */
.futures-card {
    padding: 36px 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-bottom: none;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.015) 100%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}

.futures-card:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(195, 159, 118, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(195, 159, 118, 0.2);
}

/* === FUTURES WIDGET WRAPPER === */
.futures-widget-wrapper {
    width: 100%;
    min-height: 220px;
    /* Allow horizontal scrolling when content is wider than the wrapper */
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    background: transparent;
    border: none;
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
    mix-blend-mode: screen;
    opacity: 0.85;
    transition: var(--transition-smooth);
    position: relative;
}

/* Skeleton loading state */
.futures-widget-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.futures-widget-wrapper.loaded::before {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.futures-widget-wrapper iframe {
    transform-origin: left top;
    position: relative;
    z-index: 1;
    height: 280px !important;
}

.live-market-card:hover .futures-widget-wrapper {
    opacity: 1;
    filter: invert(1) hue-rotate(180deg) brightness(1) contrast(1.2);
}

.tradingview-widget-container::-webkit-scrollbar,
.futures-widget-wrapper::-webkit-scrollbar {
    height: 3px;
}

.tradingview-widget-container::-webkit-scrollbar-track,
.futures-widget-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.tradingview-widget-container::-webkit-scrollbar-thumb,
.futures-widget-wrapper::-webkit-scrollbar-thumb {
    background: rgba(195, 159, 118, 0.3);
    border-radius: 3px;
}

/* === SERVICES VIDEO EMBED === */
.services-video-embed {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.video-embed-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .services-video-embed {
        padding: 60px 20px;
    }

    .video-embed-container {
        border-radius: 20px;
        /* Force minimum height on mobile to prevent YouTube error 153 */
        min-height: 250px;
    }
}

/* === CINEMATIC SECTIONS (Typing & Vision/Mission) === */

.typing-section {

    padding: 140px 0;

    background: transparent;

    text-align: center;

    position: relative;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 500px;

}



.typing-text {

    color: #fff !important;

    font-family: var(--font-display) !important;

    font-size: clamp(24px, 4vw, 40px) !important;

    line-height: 1.5 !important;

    max-width: 1000px;

    margin: 0 auto;

    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);

    opacity: 0.9;

}





@media (max-width: 768px) {

    .typing-section {

        min-height: 350px;

        padding: 80px 0;

    }

}



@media (max-width: 992px) {

    .h-scroll-container {

        height: auto;

    }



    .h-scroll-sticky {

        position: relative;

        height: auto;

    }



    .h-scroll-wrapper {

        flex-direction: column;

        width: 100%;

        transform: none !important;

    }



    .h-scroll-panel {

        width: 100%;

        height: auto;

    }




}

/* ==========================================================================
   MOBILE FIXES FOR SERVICES PAGE
   ========================================================================== */

@media (max-width: 768px) {

    /* Hide the map section entirely on mobile */
    .services-map-section {
        display: none !important;
    }

    .map-hud {
        display: none !important;
    }

    /* Stack the intro text section */
    .services-intro-section {
        padding: clamp(140px, 15vw, 200px) 0 60px !important;
        min-height: auto !important;
        display: block !important;
    }

    .services-intro-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .services-text-col {
        text-align: center !important;
        padding: 0 24px !important;
        width: 100% !important;
    }

    .services-text-col .section-title {
        font-size: 32px !important;
        margin-bottom: 24px !important;
        line-height: 1.2 !important;
    }

    .services-text-col .about-text {
        font-size: 16px !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .services-text-col .section-tag {
        justify-content: center !important;
        display: flex !important;
        margin-bottom: 16px !important;
    }

    /* Video col adjustment */
    .services-video-col {
        width: 100% !important;
        padding: 0 24px !important;
    }

    .services-glass-tile {
        aspect-ratio: 16/9 !important;
    }

    /* Fix sticky navigation overlap */
    .nav {
        background: rgba(13, 27, 42, 0.95) !important;
    }
}

/* === DEFINITIVE MOBILE LAYOUT FIXES === */
@media (max-width: 992px) {
    .vm-section-dynamic {
        position: relative !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        z-index: 1 !important;
        overflow: visible !important;
        padding-bottom: 120px !important;
        background: transparent !important;
        /* Force transparency at the end of file */
    }

    .footer {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        margin-top: 50px !important;
        background: var(--dark) !important;
        z-index: 999 !important;
        clear: both !important;
    }
}

/* ==========================================================================
   UNIFIED CTA BUTTON STYLES - Override all duplicates
   All CTA buttons (.hero-cta, .btn-card, .btn-split) share the same style
   ========================================================================== */
.hero-cta,
.btn-card,
.btn-split {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--dark) !important;
    background: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold) !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transform: scale(1) !important;
}

.hero-cta:hover,
.btn-card:hover,
.btn-split:hover {
    transform: scale(1.05) !important;
    /* Slight zoom on hover */
}

.hero-cta .arrow,
.hero-cta span,
.btn-card span,
.btn-split span {
    transition: transform 0.3s ease;
}

.hero-cta:hover .arrow,
.hero-cta:hover span,
.btn-card:hover span,
.btn-split:hover span {
    transform: translateX(4px);
}