/* ==========================================================================
   IA LATAM - CINEMATIC EDITION STYLES (CONTRAST & QA OPTIMIZED)
   ========================================================================== */

:root {
    --bg-deep: #030408;
    --bg-primary: #05070e;
    --neon-cyan: #00f2fe;
    --neon-cyan-rgb: 0, 242, 254;
    --neon-purple: #7f00ff;
    --neon-purple-rgb: 127, 0, 255;
    --neon-green: #00ff87;
    --neon-green-rgb: 0, 255, 135;
    --neon-red: #ff4d6d;
    --neon-purple-text: #b585ff; /* Lighter purple for text: meets contrast on dark bg */
    --grad-primary: linear-gradient(135deg, var(--neon-cyan) 0%, #4facfe 100%);
    --grad-accent: linear-gradient(135deg, #00f2fe 0%, #bd66ff 50%, #ff3399 100%); /* Brighter gradient for better contrast */
    
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-syne: 'Syne', sans-serif;
    
    --glow-cyan: 0 0 4px rgba(var(--neon-cyan-rgb), 0.25);
    --glow-purple: 0 0 4px rgba(var(--neon-purple-rgb), 0.25);
    --glow-green: 0 0 4px rgba(var(--neon-green-rgb), 0.25);
    
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: auto; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: #ffffff; /* Pure white for max contrast */
    -webkit-font-smoothing: antialiased;
}

/* VIGNETTE OVERLAY PARA GARANTIZAR CONTRASTE SOBRE EL CANVAS 3D */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 15%, rgba(3,4,8, 0.95) 100%); /* Darker vignette for text contrast */
    z-index: -1; pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-title); color: #ffffff; font-weight: 700; }
p { font-size: 1.05rem; color: #ffffff; line-height: 1.6; } /* Ensure text inside tilt cards is pure white for contrast */

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.relative { position: relative; }
.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple-text); }
.text-green { color: var(--neon-green); }

/* UTILIDADES DE LAYOUT (usadas en el HTML) */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* CINEMATIC GRAIN */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* 3D WEBGL CANVAS */
#webgl-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; pointer-events: none;
}

/* CUSTOM NEON CURSOR */
.custom-cursor {
    width: 6px; height: 6px; background-color: var(--neon-cyan);
    border-radius: 50%; position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 10000; transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 4px var(--neon-cyan), 0 0 8px var(--neon-cyan);
}
.custom-cursor-glow {
    width: 30px; height: 30px; border: 1px solid rgba(var(--neon-cyan-rgb), 0.5);
    border-radius: 50%; position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; transition: width 0.3s, height 0.3s;
}
@media (pointer: coarse) { .custom-cursor, .custom-cursor-glow { display: none; } }

/* 3D TILT CARDS (GLASSMORPHISM X100) */
.tilt-card {
    background: rgba(3, 5, 10, 0.98); /* Darker glass for maximum contrast */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.1s linear, box-shadow 0.3s ease, border-color 0.3s;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.15), inset 0 0 0 1px rgba(0, 242, 254, 0.4);
    border-color: rgba(var(--neon-cyan-rgb), 0.9); /* Stronger border on hover for clearer delineation */
    z-index: 10;
}

.card-glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease; z-index: 5;
    mix-blend-mode: color-dodge;
}
.tilt-card:hover .card-glare { opacity: 1; }

/* BUTTONS & MAGNETIC ELEMS */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.8rem; border-radius: 30px; font-family: var(--font-title);
    font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
    position: relative; overflow: hidden; z-index: 1;
}
.magnetic-btn, .magnetic-elem {
    display: inline-flex;
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.btn-primary { background: var(--grad-primary); color: var(--bg-deep); border: none; }
.btn-glow:hover { box-shadow: 0 0 30px rgba(0, 242, 254, 0.7); }

.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(var(--neon-cyan-rgb), 0.7); box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb), 0.5); }

.btn-neon { background: transparent; color: var(--neon-cyan); border: 1px solid rgba(var(--neon-cyan-rgb), 0.4); }
.btn-neon:hover { background: rgba(var(--neon-cyan-rgb), 0.1); box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb), 0.6); }

.btn-text { color: var(--neon-cyan); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition-smooth); }
.btn-text:hover { color: var(--neon-green); filter: drop-shadow(0 0 8px rgba(0,255,135,0.4)); }
.btn-text:hover i { transform: translateX(6px); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition-smooth); border-bottom: 1px solid transparent; }
.header-scrolled { background: rgba(3, 5, 10, 0.9); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.5rem 0; }
.header-container { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-syne); font-size: 1.6rem; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.2rem; }
.logo-accent { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 15px rgba(var(--neon-purple-rgb), 0.5)); }

.nav-list { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { color: #ffffff; text-decoration: none; font-family: var(--font-title); font-weight: 500; position: relative; padding: 0.5rem 0; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--grad-primary); transition: width 0.3s ease; box-shadow: var(--glow-cyan); }
.nav-link:hover, .nav-link.active { color: #ffffff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; width: 30px; }
.mobile-nav-toggle .bar { width: 100%; height: 2px; background-color: #fff; transition: var(--transition-smooth); }

/* HERO */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 100px; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 30px; margin-bottom: 2rem; }
.badge-dot { width: 6px; height: 6px; background-color: var(--neon-cyan); border-radius: 50%; box-shadow: var(--glow-cyan); animation: pulse 2s infinite; }
.badge-text { font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; color: #fff; }

.hero-title { 
    font-family: var(--font-syne); 
    font-size: clamp(2.5rem, 5vw, 4.8rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    letter-spacing: -1.5px; 
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.7)); /* Stronger shadow for contrast */
}
.gradient-text { 
    background: var(--grad-accent); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.hero-description { 
    font-size: 1.2rem; 
    color: #e5f0ff; /* Brighter text for readability */
    max-width: 600px; 
    margin-bottom: 2.5rem; 
    font-weight: 400; 
    text-shadow: 0 2px 6px rgba(0,0,0,0.9); /* Stronger contrast */
}
.hero-actions-container { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.scroll-down { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.6; transition: opacity 0.3s; }
.scroll-down:hover { opacity: 1; }
.scroll-text { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 1px; color: #cbd5e1; text-transform: uppercase; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid #cbd5e1; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 4px; height: 8px; background-color: var(--neon-cyan); border-radius: 2px; animation: scroll-wheel-anim 1.6s infinite; box-shadow: var(--glow-cyan); }

/* PILARES */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-title { font-family: var(--font-syne); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.step-icon { color: var(--neon-cyan); font-size: 0.8em; margin-right: 0.4rem; text-shadow: var(--glow-cyan); }
.section-subtitle { font-size: 1.15rem; max-width: 600px; margin: 0 auto; font-weight: 400; color: #e2e8f0; }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.pilar-card h3 { font-size: 1.4rem; margin-bottom: 1rem; transform: translateZ(30px); }
.pilar-card p { font-size: 1rem; margin-bottom: 1.5rem; transform: translateZ(20px); color: #cbd5e1; }
.pilar-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; transform: translateZ(25px); }
.pilar-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 500; color: #fff; }

.pilar-icon-wrapper { position: relative; width: 64px; height: 64px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 2rem; transform: translateZ(40px); transition: var(--transition-smooth); }
.pilar-card:hover .pilar-icon-wrapper { border-color: rgba(var(--neon-cyan-rgb), 0.6); box-shadow: inset 0 0 20px rgba(var(--neon-cyan-rgb), 0.3); }
.icon-glow { position: absolute; width: 100%; height: 100%; border-radius: 16px; filter: blur(15px); opacity: 0; transition: opacity 0.4s; }
.pilar-card:hover .icon-glow { opacity: 0.4; }
.icon-glow.cyan { background-color: var(--neon-cyan); }
.icon-glow.purple { background-color: var(--neon-purple); }
.icon-glow.green { background-color: var(--neon-green); }

/* ECOSISTEMA Y COUNTER */
.ecosistema-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.ecosistema-title { font-family: var(--font-syne); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.ecosistema-desc { font-size: 1.15rem; margin: 1.5rem 0 2.5rem 0; font-weight: 400; color: #e2e8f0; }

.counter-widget { display: flex; align-items: center; gap: 2rem; padding: 2rem; background: rgba(5, 8, 15, 0.85); }
.counter-display { display: flex; align-items: baseline; font-family: var(--font-title); font-weight: 800; color: #fff; transform: translateZ(30px); }
.counter-prefix { font-size: 2.5rem; color: var(--neon-cyan); margin-right: 0.2rem; text-shadow: var(--glow-cyan); }
.counter-number { font-size: 4.5rem; line-height: 1; background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.counter-label { font-size: 1rem; font-weight: 500; transform: translateZ(20px); color: #e2e8f0; }

/* TERMINAL FEED */
.feed-terminal { font-family: 'Space Grotesk', monospace; padding: 0; overflow: hidden; background: rgba(3, 5, 10, 0.8); border: 1px solid rgba(255,255,255,0.1); }
.terminal-header { background: rgba(8, 12, 20, 0.95); padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); transform: translateZ(10px); }
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots .dot.red { background-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); }
.terminal-dots .dot.yellow { background-color: #fefe00; }
.terminal-dots .dot.green { background-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.terminal-title { font-size: 0.85rem; letter-spacing: 0.5px; font-weight: 600; color: #fff; }
.terminal-status { font-size: 0.8rem; font-weight: 700; color: var(--neon-green); animation: blink 1.5s infinite; text-shadow: var(--glow-green); }
.terminal-body { padding: 1.5rem; height: 340px; overflow-y: hidden; display: flex; flex-direction: column; gap: 0.85rem; transform: translateZ(20px); }
.terminal-line { font-size: 0.9rem; line-height: 1.5; color: #cbd5e1; animation: console-write 0.3s ease-out forwards; }
.terminal-time { color: #94a3b8; margin-right: 0.5rem; }

/* TIMELINE EVENTOS */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, transparent 100%); box-shadow: var(--glow-cyan); }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 3.5rem; }
.timeline-marker { position: absolute; left: 31px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-deep); border: 3px solid var(--neon-cyan); box-shadow: var(--glow-cyan); z-index: 2; transition: transform 0.3s; }
.timeline-marker.purple-glow { border-color: var(--neon-purple); box-shadow: var(--glow-purple); }
.timeline-item:hover .timeline-marker { transform: scale(1.4); background-color: #fff; }

.event-meta { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; font-family: var(--font-title); font-size: 0.9rem; transform: translateZ(20px); color: #cbd5e1; }
.timeline-content h3 { font-size: 1.35rem; margin-bottom: 0.85rem; transform: translateZ(30px); }
.timeline-content p { font-size: 1rem; margin-bottom: 1.25rem; transform: translateZ(20px); }
.event-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; transform: translateZ(25px); }
.badge-tag { font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.badge-tag.cyan { border-color: rgba(var(--neon-cyan-rgb), 0.5); color: var(--neon-cyan); }
.badge-tag.purple { border-color: rgba(var(--neon-purple-rgb), 0.5); color: var(--neon-purple-text); }
.badge-tag.green { border-color: rgba(var(--neon-green-rgb), 0.5); color: var(--neon-green); }

/* CTA FINAL */
.cta-box { padding: 5rem 3rem; border: 1px solid rgba(var(--neon-cyan-rgb), 0.4); box-shadow: 0 30px 80px rgba(0, 242, 254, 0.15); background: rgba(5, 8, 15, 0.85); }
.cta-box h2 { font-family: var(--font-syne); font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: 1rem; transform: translateZ(40px); }
.cta-box p { transform: translateZ(30px); color: #e2e8f0; }
.cta-glow { position: absolute; width: 300px; height: 300px; background-color: var(--neon-purple); border-radius: 50%; filter: blur(120px); opacity: 0.25; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; transform: translateZ(50px); }

/* FOOTER */
.footer { background-color: rgba(3, 5, 10, 0.98); border-top: 1px solid rgba(255,255,255,0.1); padding: 5rem 0 2rem 0; position: relative; z-index: 2; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4rem; margin-bottom: 4rem; }
.footer-tagline { font-size: 1rem; max-width: 350px; margin-top: 1rem; color: #cbd5e1; }
.footer-newsletter-col { max-width: 450px; width: 100%; }
.footer-newsletter-col h4 { font-size: 1.15rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.newsletter-form .input-group { display: flex; padding: 0.4rem; border-radius: 30px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; padding: 0.75rem 1.25rem; color: #fff; font-family: var(--font-body); font-size: 1rem; }
.newsletter-form input::placeholder { color: #64748b; }
.btn-submit { width: 44px; height: 44px; background: var(--grad-primary); border: none; border-radius: 50%; color: var(--bg-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.3s, box-shadow 0.3s; }
.btn-submit:hover { box-shadow: var(--glow-cyan); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; text-align: center; font-size: 0.9rem; color: #94a3b8; }

/* ANIMACIONES */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes scroll-wheel-anim { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: 0.2; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes console-write { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE OVERLAY */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 4, 8, 0.98); backdrop-filter: blur(20px); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.mobile-nav-link { font-family: var(--font-syne); font-size: 2.2rem; font-weight: 800; color: #fff; text-decoration: none; transition: color 0.3s, text-shadow 0.3s; }
.mobile-nav-link:hover { color: var(--neon-cyan); text-shadow: var(--glow-cyan); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-actions-container { justify-content: center; }
    .pilares-grid { grid-template-columns: 1fr 1fr; }
    .ecosistema-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section-padding { padding: 5rem 0; }
    .nav, .header-actions .btn-nav { display: none; }
    .mobile-nav-toggle { display: flex; z-index: 1001; }
    .mobile-nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .pilares-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-marker { left: 11px; }
    .tilt-card { transform: none !important; }
}
/* ==========================================================================
   PÁGINA MANIFIESTO
   ========================================================================== */
.manifiesto-page { background-color: var(--bg-deep); }
.manifiesto-main { position: relative; z-index: 1; padding-bottom: 4rem; }

/* Aurora background CSS (reemplaza al WebGL en esta página) */
.aurora-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-bg .orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.30; }
.orb-cyan { width: 45vw; height: 45vw; background: var(--neon-cyan); top: -10vw; left: -8vw; animation: orb-float-a 22s ease-in-out infinite; }
.orb-purple { width: 50vw; height: 50vw; background: var(--neon-purple); bottom: -15vw; right: -10vw; animation: orb-float-b 26s ease-in-out infinite; }
.orb-green { width: 32vw; height: 32vw; background: var(--neon-green); top: 40%; left: 50%; opacity: 0.16; animation: orb-float-c 30s ease-in-out infinite; }
@keyframes orb-float-a { 50% { transform: translate(8vw, 10vh) scale(1.1); } }
@keyframes orb-float-b { 50% { transform: translate(-10vw, -8vh) scale(1.15); } }
@keyframes orb-float-c { 50% { transform: translate(-12vw, 6vh) scale(0.9); } }
/* Viñeta para garantizar contraste del texto sobre la aurora */
.manifiesto-page::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 50% 30%, rgba(3,4,8,0.55) 0%, rgba(3,4,8,0.92) 100%);
}

/* Cursor estado activo (esta página usa transform inline, no GSAP) */
.custom-cursor.cursor-active { width: 12px; height: 12px; background-color: var(--neon-green); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero del manifiesto */
.man-hero { padding: 11rem 0 4rem; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #94a3b8; text-decoration: none; font-family: var(--font-title); font-size: 0.9rem; margin-bottom: 2.5rem; transition: color 0.3s, gap 0.3s; }
.back-link:hover { color: var(--neon-cyan); gap: 0.8rem; }
.man-hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 30px; margin-bottom: 2rem; }
.man-hero-badge .badge-text { font-family: var(--font-title); font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; color: #fff; }
.man-emoji-line { font-size: 2rem; letter-spacing: 0.8rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px rgba(var(--neon-cyan-rgb), 0.4)); }
.man-title { font-family: var(--font-syne); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -2px; margin-bottom: 2rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7)); }
.man-subtitle { max-width: 760px; margin: 0 auto; font-size: 1.2rem; line-height: 1.7; color: #e5f0ff; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.man-subtitle strong { color: #fff; }

.man-section { margin-top: 6rem; }

/* Principios del manifiesto */
.principles { list-style: none; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; padding: 1.85rem 2.1rem; border-radius: 16px; background: rgba(5,8,15,0.6); border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid var(--neon-cyan); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease; }
.principle:hover { transform: translateX(8px); border-left-color: var(--neon-green); background: rgba(5,8,15,0.9); box-shadow: -6px 0 30px rgba(var(--neon-cyan-rgb), 0.12); }
.principle-num { font-family: var(--font-syne); font-size: 2.7rem; font-weight: 800; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.95; min-width: 2.4ch; }
.principle-body h3 { font-family: var(--font-syne); font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
.principle-body p { font-size: 1.06rem; line-height: 1.65; color: #cbd5e1; }

/* Preámbulo de las reglas */
.preamble-card { max-width: 800px; margin: 0 auto; text-align: center; padding: 2.1rem 2.5rem; border-color: rgba(var(--neon-cyan-rgb), 0.25); }
.preamble-card p { font-size: 1.18rem; line-height: 1.6; color: #e5f0ff; }
.preamble-card strong { color: #fff; }

/* Paneles esperamos / no se acepta */
.man-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.man-panel { padding: 2.5rem; }
.panel-positive { border-top: 3px solid var(--neon-green); }
.panel-negative { border-top: 3px solid var(--neon-red); }
.panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; transform: translateZ(30px); }
.panel-head h2 { font-family: var(--font-syne); font-size: 1.55rem; }
.panel-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.panel-icon.green { color: var(--neon-green); background: rgba(var(--neon-green-rgb), 0.1); border: 1px solid rgba(var(--neon-green-rgb), 0.35); }
.panel-icon.red { color: var(--neon-red); background: rgba(255, 77, 109, 0.1); border: 1px solid rgba(255, 77, 109, 0.35); }
.man-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; transform: translateZ(20px); }
.man-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 1.02rem; line-height: 1.5; color: #e2e8f0; }
.man-list li strong { color: #fff; }
.man-list li em { color: #cbd5e1; font-style: italic; }
.man-list i { margin-top: 0.25rem; flex-shrink: 0; font-size: 0.9rem; }
.man-list.good i { color: var(--neon-green); }
.man-list.bad i { color: var(--neon-red); }

/* Escalera de sanciones */
.escalation { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: esc; }
.esc-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.esc-node { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-syne); font-size: 1.6rem; font-weight: 800; color: var(--accent); background: rgba(3,5,10,0.9); border: 2px solid var(--accent); box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5), inset 0 0 14px rgba(var(--accent-rgb), 0.25); margin-bottom: -30px; z-index: 2; position: relative; }
.esc-card { padding: 3rem 1.5rem 1.75rem; width: 100%; height: 100%; border-color: rgba(var(--accent-rgb), 0.3) !important; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.esc-step:hover .esc-card { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(var(--accent-rgb), 0.2); border-color: rgba(var(--accent-rgb), 0.6) !important; }
.esc-card h3 { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 0.6rem; color: #fff; }
.esc-card p { font-size: 0.92rem; color: #cbd5e1; line-height: 1.5; }

/* Tolerancia cero */
.zero-tolerance { display: flex; align-items: center; gap: 1.5rem; margin-top: 3.5rem; padding: 2rem 2.5rem; border-radius: 16px; background: linear-gradient(120deg, rgba(255,77,109,0.14), rgba(255,77,109,0.04)); border: 1px solid rgba(255,77,109,0.4); box-shadow: 0 0 40px rgba(255,77,109,0.12); }
.zt-icon { font-size: 2rem; color: var(--neon-red); flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(255,77,109,0.6)); }
.zt-text { font-size: 1.08rem; line-height: 1.6; color: #ffe4e9; }
.zt-text strong { color: #fff; font-family: var(--font-title); display: block; margin-bottom: 0.2rem; font-size: 1.15rem; }

/* Caja de reporte */
.report-box { text-align: center; padding: 3.5rem 2.5rem; max-width: 720px; margin: 0 auto; border-color: rgba(var(--neon-cyan-rgb), 0.3); }
.report-shield { width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--neon-cyan); background: rgba(var(--neon-cyan-rgb), 0.08); border: 1px solid rgba(var(--neon-cyan-rgb), 0.35); box-shadow: inset 0 0 25px rgba(var(--neon-cyan-rgb), 0.2); transform: translateZ(40px); }
.report-box h2 { font-family: var(--font-syne); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; transform: translateZ(30px); }
.report-box p { font-size: 1.1rem; line-height: 1.6; color: #e2e8f0; max-width: 520px; margin: 0 auto 2rem; transform: translateZ(20px); }
.report-box .btn { transform: translateZ(50px); }

/* Cierre */
.man-closing { text-align: center; max-width: 700px; }
.closing-line { font-family: var(--font-syne); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; font-style: italic; line-height: 1.4; color: #f1f5f9; }
.closing-line + .closing-line { margin-top: 1rem; }
.closing-line.accent { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Footer links (compartido) */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.98rem; transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--neon-cyan); padding-left: 4px; }
.footer-column h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 2px; }

/* Responsive manifiesto */
@media (max-width: 900px) {
    .man-panels { grid-template-columns: 1fr; }
    .escalation { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
}
@media (max-width: 768px) {
    .man-hero { padding: 9rem 0 3rem; }
    .zero-tolerance { flex-direction: column; text-align: center; align-items: center; gap: 1rem; }
}
@media (max-width: 520px) {
    .escalation { grid-template-columns: 1fr; }
    .man-emoji-line { letter-spacing: 0.4rem; }
}

/* ==========================================================================
   LOGO MARK CIRCULAR
   ========================================================================== */
.logo { gap: 0.65rem; align-items: center; }
.logo-word { display: inline-flex; align-items: center; gap: 0.25rem; line-height: 1; }
.logo-mark {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: block;
    box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.35), 0 0 18px rgba(var(--neon-cyan-rgb), 0.30);
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.4s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.6), 0 0 26px rgba(var(--neon-cyan-rgb), 0.55); }
.logo-mark-lg { width: 56px; height: 56px; }
.footer-logo { gap: 0.8rem; }

/* ==========================================================================
   BADGE "PRONTO" (evento próximo)
   ========================================================================== */
.event-soon {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-title); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--neon-green);
    background: rgba(var(--neon-green-rgb), 0.12); border: 1px solid rgba(var(--neon-green-rgb), 0.45);
    padding: 0.28rem 0.75rem; border-radius: 20px; box-shadow: 0 0 14px rgba(var(--neon-green-rgb), 0.25);
}
.event-soon::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: pulse 2s infinite;
}

/* ==========================================================================
   PRELOADER CINEMATOGRÁFICO
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 10001; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; transition: opacity 0.7s ease, visibility 0.7s ease; }
.preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; width: min(320px, 78vw); }
.preloader-logo { width: 88px; height: 88px; border-radius: 50%; animation: pre-pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(var(--neon-cyan-rgb), 0.4), 0 0 45px rgba(var(--neon-cyan-rgb), 0.35); }
.preloader-wordmark { font-family: var(--font-syne); font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: #fff; }
.preloader-track { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.preloader-fill { display: block; height: 100%; width: 0%; background: var(--grad-accent); box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.6); transition: width 0.45s cubic-bezier(0.4,0,0.2,1); }
.preloader-status { font-family: 'Space Grotesk', monospace; font-size: 0.8rem; letter-spacing: 0.5px; color: #7f8ea3; min-height: 1.2em; text-align: center; }
@keyframes pre-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ==========================================================================
   BARRA DE PROGRESO DE SCROLL
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 10000; background: var(--grad-accent); box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.6); transition: width 0.1s linear; pointer-events: none; }

/* ==========================================================================
   BANDA DE MÉTRICAS
   ========================================================================== */
.stats-band { padding: 2.75rem 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(5,8,15,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; position: relative; padding: 0.5rem 1rem; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.1); }
.stat-num { display: block; font-family: var(--font-syne); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; margin-top: 0.55rem; font-size: 0.9rem; color: #94a3b8; font-family: var(--font-title); letter-spacing: 0.3px; }

/* ==========================================================================
   ÚNETE EN 3 PASOS
   ========================================================================== */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.join-step { text-align: left; padding: 2.5rem 2rem; position: relative; }
.join-num { position: absolute; top: 1.4rem; right: 1.75rem; font-family: var(--font-syne); font-size: 3.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,0.06); transform: translateZ(10px); }
.join-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--neon-cyan); background: rgba(var(--neon-cyan-rgb), 0.08); border: 1px solid rgba(var(--neon-cyan-rgb), 0.3); margin-bottom: 1.5rem; transform: translateZ(40px); transition: var(--transition-smooth); }
.join-step:nth-child(2) .join-icon { color: var(--neon-green); background: rgba(var(--neon-green-rgb), 0.08); border-color: rgba(var(--neon-green-rgb), 0.3); }
.join-step:nth-child(3) .join-icon { color: var(--neon-purple-text); background: rgba(var(--neon-purple-rgb), 0.1); border-color: rgba(var(--neon-purple-rgb), 0.35); }
.join-step:hover .join-icon { transform: translateZ(40px) scale(1.08); }
.join-step h3 { font-size: 1.3rem; margin-bottom: 0.75rem; transform: translateZ(30px); }
.join-step p { font-size: 1rem; color: #cbd5e1; line-height: 1.6; transform: translateZ(20px); }
.join-cta { text-align: center; margin-top: 3rem; }

/* ==========================================================================
   RESPONSIVE MÓVIL — MODO ÉPICO
   ========================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .header-container { padding: 1rem 1.25rem; }
    .logo { font-size: 1.35rem; gap: 0.55rem; }
    .logo-mark { width: 38px; height: 38px; }

    /* Botones: targets táctiles cómodos */
    .btn { min-height: 50px; padding: 0.9rem 1.6rem; }
    .mobile-nav-toggle { width: 44px; height: 44px; justify-content: center; }

    /* HERO más impactante y centrado en celular */
    .hero-section { min-height: 100svh; padding-top: 120px; text-align: center; }
    .hero-badge { margin-bottom: 1.5rem; }
    .hero-title { font-size: clamp(2.8rem, 13vw, 4rem); letter-spacing: -1px; line-height: 1.05; }
    .hero-description { font-size: 1.08rem; margin-left: auto; margin-right: auto; }
    .hero-actions-container { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-actions-container .btn { width: 100%; justify-content: center; }
    .scroll-down { display: none; }

    /* PILARES: respiración */
    .section-header { margin-bottom: 3rem; }
    .pilar-card { padding: 2rem; }
    .tilt-card { padding: 2rem; }

    /* ECOSISTEMA: contador apilado y centrado */
    .ecosistema-layout { gap: 2.5rem; }
    .counter-widget { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 1.5rem; }
    .counter-number { font-size: 3.6rem; }
    .counter-prefix { font-size: 2rem; }
    .feed-terminal .terminal-body { height: 260px; padding: 1.25rem; gap: 0.7rem; }
    .terminal-line { font-size: 0.82rem; }

    /* MÉTRICAS: 2x2 en celular */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .stat + .stat::before { display: none; }

    /* PASOS apilados */
    .join-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .join-step { padding: 2rem 1.75rem; }

    /* EVENTOS */
    .event-meta { flex-wrap: wrap; gap: 0.6rem 1rem; }
    .timeline-content h3 { font-size: 1.2rem; }

    /* CTA FINAL */
    .cta-box { padding: 3rem 1.5rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    /* FOOTER apilado y centrado */
    .footer { padding: 3.5rem 0 2rem; text-align: center; }
    .footer-container { flex-direction: column; gap: 2.5rem; margin-bottom: 2.5rem; align-items: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-tagline { margin-left: auto; margin-right: auto; }
    .footer-links { align-items: center; }
    .footer-newsletter-col { margin: 0 auto; }

    /* MANIFIESTO en celular */
    .man-hero { padding-top: 120px; }
    .man-title { font-size: clamp(2.6rem, 13vw, 3.4rem); letter-spacing: -1px; }
    .man-subtitle { font-size: 1.05rem; }
    .man-section { margin-top: 4rem; }
    .man-panel { padding: 1.75rem; }
    .report-box { padding: 2.5rem 1.5rem; }
    .report-box .btn { width: 100%; }
    .zero-tolerance { padding: 1.75rem 1.5rem; }
    .principle { padding: 1.4rem 1.5rem; gap: 1rem; }
    .principle-num { font-size: 2.1rem; min-width: 2ch; }
    .principle-body h3 { font-size: 1.2rem; }
    .principle-body p { font-size: 1rem; }
    .preamble-card { padding: 1.75rem 1.5rem; }
    .preamble-card p { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: clamp(2.5rem, 15vw, 3.4rem); }
    .badge-text { font-size: 0.68rem; letter-spacing: 1px; }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .counter-number { font-size: 3rem; }
    .pilar-card, .tilt-card { padding: 1.65rem; }
    .man-emoji-line { font-size: 1.6rem; }
    .esc-node { width: 52px; height: 52px; font-size: 1.35rem; }
}

/* Pantallas muy bajas: que el hero no recorte el CTA */
@media (max-height: 680px) and (max-width: 768px) {
    .hero-section { min-height: auto; padding-top: 110px; padding-bottom: 4rem; }
}

/* ACCESSIBILITY ENHANCEMENTS */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .grain-overlay, .custom-cursor, .custom-cursor-glow { display: none; }
    html { scroll-behavior: auto; }
}
