/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --cyan: #00C8FF;
    --cyan-dark: #0099CC;
    --purple: #7B2FBE;
    --purple-light: #9B4FDE;
    --green: #00C878;
    --bg: #0A0A0F;
    --bg2: #0F0F18;
    --bg3: #141422;
    --surface: #16162A;
    --surface2: #1E1E35;
    --border: rgba(255,255,255,0.07);
    --text: #E8E8F0;
    --text-muted: #888899;
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all .3s;
}
.nav.scrolled { background: rgba(10,10,15,0.95); }
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; gap: 40px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-icon { font-size: 22px; }
.nav-links { display: flex; gap: 32px; list-style: none; flex: 1; justify-content: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-ghost {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text-muted);
    transition: all .2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-primary {
    padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    color: #fff;
    transition: all .2s; box-shadow: 0 0 20px rgba(0,200,255,0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0,200,255,0.35); }

/* Language Dropdown */
.lang-selector { position: relative; display: inline-block; }
.lang-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--cyan); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 160px;
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lang-dropdown.show { display: flex; }
.lang-option {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--cyan); }
.lang-option .flag { font-size: 18px; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 32px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,200,255,0.12), transparent 70%);
    top: -100px; left: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(123,47,190,0.15), transparent 70%);
    bottom: -50px; right: 100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,200,255,0.08), rgba(123,47,190,0.08), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}
@keyframes orbFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 24px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    border: 1px solid rgba(0,200,255,0.3);
    background: rgba(0,200,255,0.08);
    font-size: 13px; color: var(--cyan); font-weight: 600;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.3); } }
.hero-title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; line-height: 1.1; letter-spacing: -2px; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 640px; line-height: 1.7; }
.gradient-text { background: linear-gradient(135deg, var(--cyan), var(--purple-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
    padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    color: #fff; transition: all .3s;
    box-shadow: 0 0 30px rgba(0,200,255,0.3);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0,200,255,0.5); }
.btn-hero-ghost {
    padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text);
    background: rgba(255,255,255,0.04); transition: all .3s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-note { font-size: 13px; color: var(--text-muted); }

/* Language Selector */
.lang-selector-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.lang-selector-hero span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lang-flags {
    display: flex;
    gap: 12px;
    font-size: 24px;
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
}
.lang-flags span {
    cursor: default;
    transition: transform 0.2s;
    filter: grayscale(0.2);
}
.lang-flags span:hover {
    transform: scale(1.25);
    filter: grayscale(0);
}

/* App frame mockup */
.hero-app-frame {
    width: 100%; max-width: 700px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 60px rgba(0,200,255,0.05);
    margin-top: 8px;
}
.app-titlebar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}
.app-dot { width: 12px; height: 12px; border-radius: 50%; }
.app-dot.red { background: #FF5F57; }
.app-dot.yellow { background: #FEBC2E; }
.app-dot.green { background: #28C840; }
.app-title-text { font-size: 12px; color: var(--text-muted); margin-left: 8px; font-family: var(--mono); }
.app-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-row { display: flex; align-items: center; gap: 12px; }
.app-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.app-select, .app-input {
    padding: 6px 12px; border-radius: 8px;
    background: var(--bg2); border: 1px solid var(--border);
    font-size: 13px; font-family: var(--mono); color: var(--cyan);
}
.app-list { display: flex; flex-direction: column; gap: 4px; }
.app-item {
    display: grid; grid-template-columns: 32px 1fr 80px 80px;
    align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 8px;
    background: var(--bg2); border: 1px solid transparent;
    font-size: 13px; transition: all .2s;
}
.app-item.active { border-color: rgba(0,200,255,0.3); background: rgba(0,200,255,0.05); }
.item-num { color: var(--text-muted); font-family: var(--mono); text-align: center; }
.item-action { font-weight: 600; }
.item-pos { color: var(--text-muted); font-family: var(--mono); font-size: 11px; }
.item-delay { color: var(--cyan); font-family: var(--mono); font-size: 12px; }
.app-buttons { display: flex; gap: 8px; }
.app-btn-start {
    flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(135deg, #00C878, #00A0A0);
    color: #fff; font-weight: 700; font-size: 13px;
}
.app-btn-stop {
    flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer;
    background: rgba(255,80,80,0.15); border: 1px solid rgba(255,80,80,0.3);
    color: #FF8080; font-weight: 700; font-size: 13px;
}
.app-btn-pro {
    padding: 10px 16px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    color: #fff; font-weight: 700; font-size: 12px;
}

/* ===== STATS ===== */
.stats {
    padding: 40px 32px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-around; gap: 32px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 48px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--cyan), var(--purple-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ===== SECTION COMMONS ===== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.features, .how, .pricing, .faq { padding: 100px 0; }
.section-tag {
    display: inline-block;
    padding: 4px 14px; border-radius: 100px;
    background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.2);
    font-size: 12px; color: var(--cyan); font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 20px;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.7; margin-bottom: 60px; }

/* ===== FEATURES ===== */
.features { background: var(--bg); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    padding: 32px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: all .3s;
}
.feature-card:hover { border-color: rgba(0,200,255,0.2); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.feature-big { grid-column: span 1; grid-row: span 2; }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Color demo animation */
.feature-demo { margin-top: 24px; }
.color-demo { background: var(--bg2); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.color-scan { height: 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(0,200,120,0.05), rgba(0,200,120,0.15)); }
.scan-line {
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    box-shadow: 0 0 10px var(--green);
    animation: scan 2s linear infinite;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }
.color-indicator { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.color-indicator span { width: 16px; height: 16px; border-radius: 4px; display: inline-block; box-shadow: 0 0 8px rgba(0,200,120,0.5); }
.color-indicator small { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

/* ===== HOW IT WORKS ===== */
.how { background: var(--bg2); }
.steps { display: flex; align-items: flex-start; gap: 0; margin-top: 20px; }
.step { flex: 1; }
.step-connector { width: 80px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--purple-light)); margin-top: 32px; flex-shrink: 0; }
.step-num {
    font-size: 48px; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 16px;
}
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

/* ===== PRICING ===== */
.pricing { background: var(--bg); }
.pricing-cards { display: flex; gap: 24px; align-items: flex-start; max-width: 800px; }
.pricing-card {
    flex: 1; padding: 40px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    position: relative; transition: all .3s;
}
.pricing-card.featured {
    border-color: rgba(0,200,255,0.4);
    background: linear-gradient(160deg, var(--surface), rgba(0,200,255,0.05));
    box-shadow: 0 0 60px rgba(0,200,255,0.1);
}
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 4px 16px; border-radius: 100px;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 16px; }
.plan-price { margin-bottom: 12px; }
.price-amount { font-size: 52px; font-weight: 900; line-height: 1; }
.featured .price-amount { background: linear-gradient(135deg, var(--cyan), var(--purple-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-period { font-size: 16px; color: var(--text-muted); margin-left: 4px; }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plan-features li { font-size: 14px; }
.plan-features .ok { color: var(--text); }
.plan-features .limit { color: var(--text-muted); }
.btn-plan-primary {
    display: block; text-align: center;
    padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    color: #fff; transition: all .3s;
    box-shadow: 0 0 30px rgba(0,200,255,0.25);
}
.btn-plan-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,200,255,0.4); }
.btn-plan-ghost {
    display: block; text-align: center;
    padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text);
    transition: all .3s;
}
.btn-plan-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.plan-micro { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; }

/* ===== FAQ ===== */
.faq { background: var(--bg2); }
.faq-list { display: flex; flex-direction: column; gap: 4px; max-width: 800px; margin-top: 20px; }
.faq-item { border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq-question {
    width: 100%; padding: 20px 24px; text-align: left;
    background: none; border: none; cursor: pointer;
    font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
    transition: color .2s;
}
.faq-question:hover { color: var(--cyan); }
.faq-question span { font-size: 24px; font-weight: 300; color: var(--text-muted); transition: transform .3s; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 24px 20px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ===== CTA ===== */
.cta {
    padding: 120px 32px; text-align: center;
    background: var(--bg); position: relative; overflow: hidden;
}
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; letter-spacing: -1px; }
.cta p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
    padding: 40px 32px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 13px; color: #44445a; text-align: center; width: 100%; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 10px; }

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 100px 0;
    background: var(--bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0,200,255,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,200,255,0.1);
}
.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
}
.gallery-caption {
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    position: absolute;
    bottom: 0; left: 0; right: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .nav-inner { gap: 20px; }
    .nav-links { gap: 20px; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-big { grid-column: span 2; grid-row: span 1; }
    .steps { flex-direction: column; gap: 32px; }
    .step-connector { display: none; }
    .pricing-cards { flex-direction: column; align-items: stretch; max-width: 500px; margin: 0 auto; }
    .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    .stat-divider { display: none; }
    .hero-app-frame { margin-top: 40px; }
}

@media (max-width: 600px) {
    .section-inner { padding: 0 20px; }
    .hero { padding: 100px 20px 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-big { grid-column: span 1; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-ghost { width: 100%; text-align: center; }
    .stats-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: 36px; }
    .hero-sub { font-size: 15px; }
    .app-item { grid-template-columns: 24px 1fr 60px; }
    .item-delay { display: none; } /* Ocultar en móvil para que entre lo demás */
    .app-buttons { flex-direction: column; }
    
    .nav-actions .btn-ghost { display: none; }
    
    .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== DISCORD FLOATING BUTTON ===== */
.discord-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #5865F2; /* Color oficial de Discord */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(88,101,242,0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.discord-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 25px rgba(88,101,242,0.6);
    background: #4752C4; /* Hover color de Discord */
}
.discord-float svg {
    transition: transform 0.3s;
}
.discord-float:hover svg {
    transform: scale(1.1);
}
