/* Variables for Colors and Typography */
:root {
    --primary-color: #0d1b2a;
    /* Deep night blue */
    --secondary-color: #1b263b;
    /* Mid night blue */
    --accent-color: #e0a96d;
    /* Golden divine energy */
    --accent-glow: rgba(224, 169, 109, 0.4);
    --text-primary: #e0e1dd;
    /* Soft white/gray */
    --text-highlight: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-highlight);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Animations & Transitions */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-highlight);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo span {
    color: var(--accent-color);
}

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

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

.nav-links a {
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

.lang-switcher {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher a {
    color: var(--text-highlight);
    opacity: 0.6;
    transition: 0.3s;
    text-decoration: none;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.lang-switcher .divider {
    color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-highlight);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Animation Container */
.hero-container {
    height: 250vh;
    /* Da espacio a la animación para reproducirse antes de bajar a la siguiente sección */
    position: relative;
}

/* Hero Section */
.hero-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Parallax Layers Canvas */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stars-1 {
    background: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 2;
    opacity: 0.6;
}

.stars-2 {
    background: radial-gradient(3px 3px at 50px 100px, #e0a96d, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 150px 200px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 300px 300px;
    z-index: 3;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 27, 42, 0.2) 0%, var(--primary-color) 120%);
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: auto;
    /* Re-enable for buttons */
}

/* Mystic Glow behind text */
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 169, 109, 0.4) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulsateOrb 4s infinite alternate;
}

@keyframes pulsateOrb {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.hero-title {
    font-size: 72px;
    /* Reducido de 90px para acomodar "Mundial" */
    margin-bottom: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
    font-weight: 800;
}

.hero-title span {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    max-width: 800px;
}

/* Hero Animated Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    background: rgba(20, 28, 43, 0.4);
    border: 1px solid rgba(224, 169, 109, 0.2);
    padding: 20px 45px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: floatStats 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(224, 169, 109, 0.15), transparent 30%);
    animation: spinGlow 8s linear infinite;
    z-index: 0;
}

@keyframes floatStats {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 38px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 15px rgba(224, 169, 109, 0.6);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(224, 169, 109, 0.5), transparent);
    position: relative;
    z-index: 1;
}

.pulse-fast {
    animation: pulseText 2s infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(224, 169, 109, 0.4); }
    100% { opacity: 1; text-shadow: 0 0 25px rgba(224, 169, 109, 0.9); }
}


/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.scroll-indicator p {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.7;
    animation: fadePulse 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* General Section Styling */
.section-title {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
    letter-spacing: 2px;
}

/* New Layout Sections */
.quote-section {
    padding: 90px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bold-quote {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* Dynamic Quote Animation */
.dynamic-quote .quote-line {
    display: inline-block;
    opacity: 0;
    filter: blur(16px);
    transform: scale(0.95);
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                filter 2.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dynamic-quote.active .quote-line {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.dynamic-quote .quote-line:nth-child(1) { transition-delay: 0.1s; }
.dynamic-quote .quote-line:nth-child(3) { transition-delay: 0.6s; }
.dynamic-quote .quote-line:nth-child(5) { transition-delay: 1.1s; color: var(--accent-color); font-weight: 600; text-shadow: 0 0 15px rgba(224, 169, 109, 0.4);}
.dynamic-quote .quote-line:nth-child(7) { transition-delay: 1.6s; color: var(--accent-color); font-weight: 600; text-shadow: 0 0 15px rgba(224, 169, 109, 0.4);}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 60px;
    margin: 0 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Premium Card (More readable alternative to glassmorphism) */
.premium-card {
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 1px;
    margin: 0 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at top right, rgba(224, 169, 109, 0.2), transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.premium-card-inner {
    background: linear-gradient(145deg, rgba(20, 28, 43, 0.9), rgba(12, 18, 28, 0.95));
    border-radius: 23px;
    padding: 50px 60px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.premium-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-weight: 300;
}

.premium-text strong {
    color: #ffffff;
    font-weight: 600;
}

.text-gold {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(224, 169, 109, 0.3);
}

.final-word {
    font-size: 1.35rem !important;
    text-align: center;
    color: var(--accent-color) !important;
    margin-top: 40px;
    font-weight: 400;
    font-family: var(--font-heading);
}

.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 169, 109, 0.3), transparent);
    margin: 40px 0;
}

.vision-title {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.main-mission {
    font-size: 1.4rem !important;
    text-align: center;
    color: #ffffff !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.content-box {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

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

.content-box::-webkit-scrollbar-track {
    background: transparent;
}

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

.mission-text {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #eaeaea;
}

.light-emitter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/* LIGHT CONTENT SECTIONS (Below Heros) */
.light-content-section {
    background-color: #fcfcfc;
    color: #2b3a4a;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.bg-alt {
    background-color: #f7f9fb;
}

.classic-text-layout {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    color: #4a5568;
    font-weight: 300;
}

.classic-text-layout p {
    margin-bottom: 25px;
}

.classic-text-layout strong {
    color: #1a202c;
    font-weight: 500;
}

.center-align {
    text-align: center;
}

.lead-text {
    font-size: 26px;
    font-family: var(--font-heading);
    color: #2b3a4a;
    line-height: 1.5;
    margin-bottom: 35px !important;
    text-align: center;
}

.highlight-gold {
    color: #c0873a;
    font-weight: 500;
}

.signature-text {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #c0873a;
    text-align: center;
    margin-top: 50px !important;
    font-style: italic;
}

.elegant-subtitle {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #2b3a4a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mission-statement {
    font-size: 24px;
    line-height: 1.6;
    color: #1a202c;
    font-weight: 300;
}

.elegant-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, 0.2), transparent);
    margin: 40px auto;
    width: 60px;
}

.pilares-intro {
    text-align: center;
    font-style: italic;
    font-size: 18px;
    margin-bottom: 60px !important;
    color: #718096;
}

.elegant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.grid-item {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.item-number {
    position: absolute;
    top: -20px;
    left: 30px;
    font-family: var(--font-heading);
    font-size: 40px;
    color: rgba(192, 135, 58, 0.2);
    font-weight: 700;
    line-height: 1;
}

.grid-item h4 {
    color: #2b3a4a;
    font-size: 22px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.grid-item p {
    font-size: 18px;
    margin-bottom: 0 !important;
    line-height: 1.6;
}

.special-pillar {
    background: #2b3a4a;
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.special-pillar .item-number {
    color: rgba(255,255,255,0.1);
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    font-size: 80px;
}

.special-pillar h4 {
    color: #e0a96d;
    font-size: 26px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.special-pillar p {
    color: #e2e8f0;
    font-size: 20px;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.final-quote {
    text-align: center;
    margin-top: 60px !important;
    font-weight: 600;
    color: #c0873a;
    font-size: 20px;
    font-family: var(--font-heading);
}

.footer {
    padding: 40px 0;
    text-align: center;
    background-color: #08111a;
    color: #a0aec0;
}

.footer p {
    font-size: 14px;
    font-family: var(--font-body);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.social-links a {
    color: #a0aec0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    color: #e0a96d;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .glassmorphism, .premium-card-inner {
        padding: 30px 40px;
    }

    .elegant-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        flex-direction: column;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(13, 27, 42, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding-top: 80px;
        padding-left: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .glassmorphism, .premium-card-inner {
        padding: 25px;
    }
    
    .premium-card {
        margin: 0 15px;
    }

    .content-box {
        max-height: 80vh;
    }

    .bold-quote {
        font-size: 22px;
    }

    .quote-highlight {
        font-size: 26px;
    }

    .light-content-section {
        padding: 60px 20px;
    }
    
    .lead-text {
        font-size: 20px;
    }
    
    .classic-text-layout {
        font-size: 16px;
    }

    .elegant-subtitle {
        font-size: 24px;
    }

    .mission-statement {
        font-size: 18px;
    }

    .elegant-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .bold-quote {
        font-size: 18px;
    }

    .premium-text p,
    .classic-text-layout p {
        font-size: 15px;
    }

    .final-word, .main-mission {
        font-size: 1.15rem !important;
    }

    .signature-text {
        font-size: 16px;
    }

    .special-pillar {
        padding: 30px 20px;
    }

    .special-pillar h4 {
        font-size: 18px;
    }
}