/* ==========================================================================
   Balcony Global Institutional Home Styles
   Design Tokens & Specs from Figma (Node: 17019-10508)
   ========================================================================== */

:root {
    --bg-navy: #000B59;
    --text-blue: #1CA5EA;
    --text-dark: #262626;
    --text-muted: #4C4C4C;
    --text-white: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.65);
    --font-primary: 'Poppins', sans-serif;
    --max-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: #FFFFFF;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Container */
.global-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   1. NAV SUPERIOR
   width: 1440; height: 89; padding: 12px 96px; bg: #000B59
   ========================================================================== */
.global-header {
    width: 100%;
    background-color: var(--bg-navy);
    position: relative;
    z-index: 100;
}

.global-header-inner {
    max-width: var(--max-width);
    height: 89px;
    margin: 0 auto;
    padding: 12px 96px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.global-logo {
    width: 192px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.global-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Country Selector */
.global-country-selector {
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.global-country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: var(--font-primary);
}

.global-country-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.global-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.global-country-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 540px;
    display: none;
    z-index: 200;
    padding: 24px 30px;
    gap: 36px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.global-country-dropdown.active {
    display: flex;
}

.global-dropdown-country-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.global-dropdown-country-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-dropdown-flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.global-dropdown-country-header span {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.global-dropdown-country-link {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.global-dropdown-country-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.global-country-option:hover {
    background: #f8fafc;
    color: var(--text-blue);
}

.global-country-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-country-option-url {
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   2. HERO
   width: 1440; height: ~68vh (75% del tamaño previo); padding: 56px 96px; bg: #000000A6; video background
   ========================================================================== */
.global-hero {
    position: relative;
    width: 100%;
    height: 700px;
    min-height: 520px;
    max-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000000;
}

.global-hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: top center;
    z-index: 1;
}

.global-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 2;
}

.global-hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: clamp(48px, 6vh, 64px) 96px;
}

.global-hero-textblock {
    max-width: 947px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.global-hero-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.14;
    /* 73px / 64px */
    letter-spacing: -0.007em;
    color: var(--text-white);
    margin: 0;
}

.global-hero-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.global-hero-description p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 28px;
    letter-spacing: -0.007em;
    color: var(--text-white);
    margin: 0;
    opacity: 0.95;
}

/* ==========================================================================
   3. CONOCE MÁS EN
   width: 1440; padding: 96px; gap: 36px
   ========================================================================== */
.global-countries-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 96px 0;
}

.global-countries-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 96px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.global-countries-title {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 51px;
    letter-spacing: -0.007em;
    color: var(--text-muted);
    margin: 0;
}

.global-countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    width: 100%;
}

.global-country-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #FFFFFF;
}

.global-country-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.007em;
    color: var(--text-blue);
    text-decoration: none;
    margin-bottom: 4px;
}

.global-country-heading:hover {
    text-decoration: underline;
}

.global-country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.global-card-info-item {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.007em;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.global-card-info-item:hover {
    color: var(--text-blue);
}

.global-card-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.007em;
    color: var(--text-blue);
    text-decoration: none;
    display: inline-block;
    margin-top: 2px;
}

.global-card-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. FOOTER (Estilo filial sin 3ra columna de contacto)
   ========================================================================== */
.main-footer {
    background-color: #000B59;
    padding: 96px 0;
    width: 100%;
}

.footer-mobile {
    display: none;
}

.container-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "brand ."
        "legal countries";
    gap: 40px 96px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 96px;
    box-sizing: border-box;
}

.footer-branding {
    grid-area: brand;
}

.footer-countries {
    grid-area: countries;
    align-self: start;
}

.footer-legal {
    grid-area: legal;
    align-self: start;
    margin-top: 0;
}

.footer-logo {
    width: 192px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.footer-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.countries-grid {
    display: flex;
    gap: 60px;
}

.countries-list {
    display: flex;
    flex-direction: column;
}

.countries-list span {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 16px;
    line-height: 34px;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.countries-list a:hover span {
    color: #1CA5EA;
}

.footer-disclaimer {
    color: #1CA5EA;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.footer-disclaimer p {
    margin: 0 0 10px 0;
}

.footer-links {
    color: #1CA5EA;
    font-family: var(--font-primary);
    font-size: 14px;
    margin-top: 10px;
}

.footer-links a {
    color: #1CA5EA;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Footer Mobile */
@media (max-width: 1024px) {
    .container-footer {
        padding: 0 32px;
        gap: 0 48px;
    }
}

@media (max-width: 768px) {
    .footer-desktop {
        display: none !important;
    }

    .footer-mobile {
        display: block !important;
        padding: 60px 24px !important;
        background-color: #000B59;
    }

    .container-footer-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
    }

    .footer-mobile-brand,
    .footer-mobile-countries,
    .footer-mobile-legal {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-mobile-brand .footer-logo {
        width: 140px !important;
        height: 48px !important;
    }

    .mobile-countries-grid {
        display: flex !important;
        justify-content: center !important;
        gap: 40px !important;
        text-align: left !important;
    }

    .mobile-countries-col span {
        font-family: var(--font-primary);
        font-weight: 300;
        font-size: 15px !important;
        line-height: 2.2 !important;
        color: #FFFFFF;
    }

    .footer-disclaimer-mobile {
        font-size: 13px !important;
        color: #1CA5EA !important;
        line-height: 1.5 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    .footer-disclaimer-mobile p {
        margin-bottom: 15px !important;
    }

    .footer-links-mobile {
        margin-top: 10px !important;
        font-size: 14px !important;
        text-align: center !important;
        color: #1CA5EA !important;
    }

    .footer-links-mobile a {
        color: #1CA5EA !important;
        text-decoration: none;
    }

    .footer-links-mobile a:hover {
        text-decoration: underline;
    }
}

/* ==========================================================================
   5. GEO BANNER INTELIGENTE (Non-blocking Top/Bottom Notification)
   ========================================================================== */
.geo-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 460px;
    width: calc(100% - 48px);
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 11, 89, 0.22), 0 0 0 1px rgba(0, 11, 89, 0.06);
    padding: 20px 24px;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.geo-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.geo-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.geo-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bg-navy);
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 12px;
}

.geo-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    padding: 4px;
    transition: color 0.2s;
}

.geo-banner-close:hover {
    color: var(--text-dark);
}

.geo-banner-body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-dark);
}

.geo-banner-body strong {
    color: var(--bg-navy);
}

.geo-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.geo-btn-primary {
    flex: 1;
    background: var(--text-blue);
    color: #FFFFFF;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.geo-btn-primary:hover {
    background: #0284c7;
}

.geo-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.geo-btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .global-header-inner {
        padding: 12px 32px;
    }

    .global-hero-content {
        padding: 72px 32px;
    }

    .global-countries-container {
        padding: 0 32px;
    }

    .global-footer-inner {
        padding: 0 32px;
        gap: 48px;
    }

    .global-countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .global-header-inner {
        padding: 12px 20px;
        height: auto;
        min-height: 72px;
    }

    .global-logo {
        width: 140px;
        height: 48px;
    }

    .global-hero {
        min-height: auto;
    }

    .global-hero-content {
        padding: 56px 20px;
    }

    .global-hero-textblock {
        gap: 24px;
    }

    .global-hero-title {
        line-height: 1.18;
    }

    .global-countries-section {
        padding: 64px 0;
    }

    .global-countries-container {
        padding: 0 20px;
        gap: 28px;
    }

    .global-countries-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .global-country-dropdown {
        min-width: calc(100vw - 40px);
        right: -10px;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .global-country-card {
        padding-bottom: 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .global-country-card:last-child {
        border-bottom: none;
    }

    .global-footer {
        padding: 64px 0;
    }

    .global-footer-inner {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .global-footer-col-right {
        padding-top: 0;
    }

    .geo-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}