:root {
    --bg-color: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #444444;
    --font-heading: 'Monument Extended', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --accent-color: #000000;
}

/* Dark Theme Overrides */
.dark-theme {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #FFFFFF;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Base (Data-Focused Minimalism) */
h1, h2, h3, .logo, .stat-number, .stat-label {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
}

h1, h2, h3 {
    font-weight: 900;
    letter-spacing: -0.06em;
}

/* Global Responsive Headings */
.headline, .creators-section-headline {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

/* Global Responsive Body */
p, .sub-headline, .feature-desc, .creators-section-copy, .member-role, .network-title {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* Spline Behavior */
#spline-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* CRITICAL: Must be below content (z-index 10) */
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeInSpline 2s ease-out 0.5s forwards;
}

@keyframes fadeInSpline {
    from { opacity: 0; }
    to { opacity: 1; }
}

spline-viewer {
    width: 100%;
    height: 100%;
}

.spline-pulse {
    animation: pulseMetagestalt 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pulseMetagestalt {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.content {
    position: relative;
    z-index: 10;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%; /* Fluid padding to avoid cropping */
    z-index: 1000; /* Higher z-index for safety */
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #000000; /* Unified Negro Absoluto */
}

.lang-btn {
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.4;
    transition: opacity 0.3s ease, font-weight 0.3s ease;
    padding: 0;
}

.lang-btn.active, .nav-links a.active {
    opacity: 1;
    font-weight: 700;
}

.sep {
    opacity: 0.3;
    color: #000000;
}

/* Real-Time Translation Transition */
[data-i18n] {
    transition: opacity 0.3s ease-in-out;
}

.switching-lang {
    opacity: 0 !important;
}

.logo {
    font-size: 24px;
    font-weight: 900;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none;
    opacity: 1 !important;
    filter: none !important;
}

.logo-img {
    height: 70px;
    width: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    object-fit: contain;
    image-rendering: high-quality;
    filter: none; /* User said original has white bg (likely black logo subject) */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: #000000; /* Unified Negro Absoluto */
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

.btn-login {
    background-color: #000000; /* Always Black in Header */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.btn-login:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Sections Base */
section {
    padding: 180px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero, .access-management, .creators-section, .team, .stats {
    min-height: 100vh;
}

/* Section 1: Hero */
.hero {
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.headline {
    margin-bottom: 30px;
}

.sub-headline {
    max-width: 65ch; /* Compact block for better readability */
    margin-bottom: 50px;
    line-height: 1.6; /* High-end legibility */
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background-color: #222;
}

/* Section 2: Pilares */
.access-management {
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    max-width: 1400px;
    width: 100%;
}

.feature-title {
    font-size: clamp(1.5rem, 2vw, 24px);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
}

/* Section 3: Estadísticas (Relocated) */
.stats {
    align-items: center;
    min-height: 60vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    max-width: 1400px;
    width: 100%;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat-number {
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 900;
    letter-spacing: 0.05em;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.stat-subtext {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    max-width: 250px;
    margin: 15px auto 0;
    color: #666;
    line-height: 1.4;
    text-transform: none;
}

/* Section 4: Creators Preview Section */
.creators-section {
    align-items: center;
}

.creators-section-headline {
    margin-bottom: 40px;
}

.creators-section-copy {
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    text-transform: uppercase;
}

.arrow-anim {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover .arrow-anim {
    transform: translateX(10px);
}

/* Section 5: Equipo */
.team {
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    max-width: 1200px;
    width: 100%;
}

.member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 30px;
}

.member-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 0.5px solid #000;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-color: #EEE;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-link:hover .member-img {
    transform: scale(1.05);
}

.member-img.brenda { background-image: url('./assets/brenda.jpg'); }
.member-img.david { background-image: url('./assets/david.jpg'); }

.member-name {
    font-size: 20px;
    margin-bottom: 5px;
}

.member-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.member-role {
    max-width: 350px;
}

/* Section 6: Manifiesto Final */
.statement {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin: 100px auto;
    padding: 0;
    width: 70%;
    text-align: center;
}

.frase-final {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
    opacity: 0;
    max-width: 60ch;
    margin: 0 auto;
    text-align: center;
    transition: opacity 1.5s ease-out;
}

.visible-animate .frase-final {
    opacity: 1;
}

/* Section 7: Network */
.network {
    min-height: auto;
    padding: 150px 0;
    justify-content: center;
    background: transparent;
}

.network-title {
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 60px;
    color: #666;
}

.marquee {
    width: 100vw;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 120px;
    animation: scrollMarquee 30s linear infinite;
    padding: 0 60px;
}

.logo-item {
    font-family: var(--font-heading);
    font-size: 40px;
    color: #000;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    cursor: default;
}

.logo-item:hover {
    opacity: 1;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reveal Animations (Unified) */
.hidden-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .grid-3, .team-grid { gap: 60px; }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 20px 5%; 
        flex-wrap: wrap; /* Allow stacking in very small screens */
    }
    .nav-links { 
        display: flex; 
        gap: 15px; 
        width: 100%; 
        justify-content: center; 
        margin: 15px 0;
        order: 3; /* Push links below logo/login if wrapping */
        font-size: 12px;
    }
    
    /* Monument Extended 30% reduction */
    .headline, .creators-section-headline, h1, h2 {
        font-size: clamp(1.8rem, 6vw, 3.8rem) !important;
    }

    .grid-3, .team-grid, .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    section { 
        padding: 100px 5%; 
        min-height: 80vh; /* Adjustment for mobile content density */
    }
    .glass-container { padding: 40px 20px; }
    .statement { width: 95%; }
}

/* ═══════════════════════════════════════════
   GLOBAL SITE FOOTER — Shared: Creators + Partners
   Luxury Minimalism | Black | Manrope
═══════════════════════════════════════════ */
.site-footer {
    background-color: #FFFFFF; /* Global White Footer */
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Darker border for white */
    padding: 60px 8vw 40px;
    font-family: 'Manrope', sans-serif;
    color: #000000; /* Global Negro Absoluto */
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto 48px;
}

.footer-logo {
    height: 40px !important;
    width: auto;
    opacity: 1;
    margin-bottom: 20px;
    filter: none; /* Assuming black-on-white original */
}

.social-link {
    color: #000000; /* Unified icons color */
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 0.6;
    transform: translateY(-3px);
}

.footer-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000000; /* Stronger label color for visibility */
    margin-bottom: 14px;
}

.footer-address address {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    line-height: 1.8;
}

.footer-email {
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
    letter-spacing: 0.01em;
}

.footer-email:hover {
    opacity: 0.6;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 24px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copy {
    font-size: 11px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Mobile: stack columns vertically */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-address,
    .footer-contact {
        text-align: center;
    }

    .site-footer {
        padding: 48px 6vw 32px;
    }
}

