:root {
    --primary: #00ff9d; /* Verde */
    --accent: #ff4d4d;  /* Rojo */
    --bg-dark: #050b1a; /* Azul Fondo */
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 255, 157, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

body { background: var(--bg-dark); color: #fff; overflow-x: hidden; position: relative; }

/* FONDO AZUL INTERACTIVO */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #0a192f 0%, #050b1a 100%);
    z-index: -2;
}

#particles-js { position: fixed; width: 100%; height: 100%; z-index: -1; }

.top-bar { background: var(--accent); color: #fff; text-align: center; padding: 12px; font-weight: 900; font-size: 0.9rem; position: sticky; top: 0; z-index: 2000; box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4); }

.sticky-vip-btn { position: fixed; top: 70px; right: 20px; background: var(--primary); color: #000; padding: 12px 25px; border-radius: 50px; font-weight: 900; text-decoration: none; z-index: 1000; box-shadow: 0 0 20px var(--primary); font-size: 0.8rem; }

.whatsapp-btn { position: fixed; bottom: 20px; left: 20px; z-index: 1000; width: 55px; }

header { display: flex; justify-content: space-between; padding: 25px 8%; align-items: center; }
.logo { font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; }
.logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
nav a { color: #8892b0; text-decoration: none; margin-left: 20px; font-size: 0.9rem; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* VSL */
.vsl-container { max-width: 800px; margin: 30px auto; border: 2px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 0 30px rgba(0, 255, 157, 0.1); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* HERO */
.hero { padding: 60px 8%; text-align: center; }
.main-title { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; margin-bottom: 20px; }
.text-glow { color: var(--primary); text-shadow: 0 0 25px var(--primary); }
.hero-subtitle { color: #8892b0; max-width: 650px; margin: 0 auto 35px; line-height: 1.6; }
.btn-primary { background: var(--primary); color: #000; padding: 20px 45px; border-radius: 12px; font-weight: 900; text-decoration: none; display: inline-block; transition: 0.3s; }

/* SECCIONES */
.section { padding: 80px 8%; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; font-weight: 900; color: var(--primary); }
.glass { background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(15px); border-radius: 25px; }
.text-green { color: var(--primary); margin-bottom: 10px; }

.explain-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.step-card { padding: 40px; position: relative; transition: 0.4s; }
.step-num { font-size: 4rem; font-weight: 900; color: rgba(0, 255, 157, 0.05); position: absolute; top: 10px; right: 25px; }

/* CARRUSEL MERCADOS */
.market-wrapper { overflow: hidden; width: 100%; }
.market-track { display: flex; gap: 20px; width: max-content; animation: scrollMarkets 30s linear infinite; }
.chart-card { width: 350px; padding: 20px; text-align: center; flex-shrink: 0; }
@keyframes scrollMarkets { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* TESTIMONIOS */
.testimonial-wrapper { overflow: hidden; }
.testimonial-track { display: flex; gap: 25px; width: max-content; animation: scrollInfinite 40s linear infinite; }
.test-card { padding: 35px; width: 320px; text-align: center; flex-shrink: 0; }
.test-card img { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--primary); margin-bottom: 15px; }
@keyframes scrollInfinite { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* FAQ */
.faq-question { padding: 25px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; }
.faq-answer { padding: 0 25px 25px; color: #8892b0; display: none; border-top: 1px solid var(--border); }

/* IA CHAT INTERACTIVO */
#ai-chat { position: fixed; bottom: 20px; right: 20px; z-index: 1001; }
.ai-trigger { background: var(--bg-dark); border: 1px solid var(--primary); color: #fff; padding: 12px 25px; border-radius: 50px; cursor: pointer; font-weight: 700; }
#chat-window { display: none; width: 350px; height: 550px; position: absolute; bottom: 80px; right: 0; flex-direction: column; overflow: hidden; box-shadow: 0 10px 50px rgba(0,0,0,0.5); }
.chat-header { background: rgba(255,255,255,0.03); padding: 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--primary); font-weight: 900; }
.close-chat { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
#chat-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-msg, .user-msg { padding: 12px; border-radius: 15px; max-width: 85%; font-size: 0.85rem; }
.ai-msg { background: rgba(0, 255, 157, 0.05); align-self: flex-start; }
.user-msg { background: var(--primary); color: #000; align-self: flex-end; font-weight: 600; }

.chat-suggestions { padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.glass-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); color: #ccd6f6; padding: 8px 15px; border-radius: 50px; font-size: 0.75rem; cursor: pointer; transition: 0.3s; }
.glass-btn:hover { background: rgba(0, 255, 157, 0.1); border-color: var(--primary); color: var(--primary); }
.chat-input-area { padding: 15px 20px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border); }

footer { padding: 40px; text-align: center; opacity: 0.5; font-size: 0.8rem; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .sticky-vip-btn { top: auto; bottom: 0; right: 0; left: 0; border-radius: 0; text-align: center; padding: 20px; }
}