/* ═══════════════════════════════════════════
   PrecioCerca — Landing Page Design System
   ═══════════════════════════════════════════ */

/* === Design Tokens === */
:root {
    --bg: #080C14;
    --bg-alt: #060910;
    --surface: #111726;
    --surface-hover: #182035;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(29,185,84,0.25);
    --primary: #1DB954;
    --primary-dark: #12913D;
    --primary-glow: rgba(29,185,84,0.15);
    --primary-glow-strong: rgba(29,185,84,0.3);
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --text: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(29,185,84,0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59,130,246,0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #223049; border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Utility === */
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--primary); font-weight: 700;
    margin-bottom: 16px;
}
.section-tag::before {
    content: ''; display: block; width: 24px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #D1D5DB 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(8,12,20,0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(8,12,20,0.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; color: #fff; }
.nav-logo {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.nav-logo svg { width: 22px; height: 22px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.lang-toggle {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xs); padding: 6px 14px;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* === Hero === */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 500px;
    background: radial-gradient(circle, rgba(29,185,84,0.18) 0%, transparent 70%);
    filter: blur(60px); pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 100px; padding: 6px 16px 6px 6px;
    margin-bottom: 24px; font-size: 0.85rem; color: var(--text-secondary);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #34D399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-family: inherit; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: var(--transition); border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--primary-glow-strong); color: #fff; }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-width: 420px; border-radius: var(--radius); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); animation: float 6s ease-in-out infinite; }

/* === How It Works === */
.how-it-works { padding: 100px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 32px;
    position: relative; transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.step-number {
    position: absolute; top: -16px; left: 32px;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.step-card h3 { font-size: 1.3rem; font-weight: 700; margin: 16px 0 12px; }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; }
.step-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background: var(--primary-glow); display: flex;
    align-items: center; justify-content: center;
}
.step-icon svg { width: 28px; height: 28px; fill: var(--primary); }

/* === Features === */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.features-image img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.feature-icon {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
}
.feature-icon.green { background: rgba(29,185,84,0.12); color: var(--primary); }
.feature-icon.blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.feature-icon.purple { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
.feature-icon svg { width: 24px; height: 24px; fill: currentColor; }
.feature-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* === Screenshots Showcase === */
.screenshots { padding: 100px 0; overflow: hidden; }
.screenshots-track {
    display: flex; gap: 24px; margin-top: 48px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 20px 0; -ms-overflow-style: none; scrollbar-width: none;
    justify-content: center;
}
@media (max-width: 1140px) {
    .screenshots-track { justify-content: flex-start; padding: 20px 16px; }
}
.screenshots-track::-webkit-scrollbar { display: none; }
.screenshot-slot {
    flex-shrink: 0; width: 250px; height: 560px;
    border-radius: 28px; scroll-snap-align: center;
    background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; overflow: hidden; position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-slot:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(29, 185, 84, 0.25);
}
.screenshot-slot svg { width: 48px; height: 48px; fill: var(--text-muted); }
.screenshot-slot span { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.screenshot-slot img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    border-radius: 26px; display: block;
}

/* === Stats === */
.stats { padding: 80px 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 48px; position: relative; overflow: hidden;
}
.stats-grid::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(29,185,84,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 10%; height: 80%;
    width: 1px; background: var(--border);
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* === Donations === */
.donations { padding: 100px 0; }
.donation-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 60px;
    text-align: center; position: relative; overflow: hidden;
}
.donation-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(29,185,84,0.06) 0%, transparent 40%);
    pointer-events: none;
}
.donation-card > * { position: relative; z-index: 1; }
.donation-methods {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 40px; flex-wrap: wrap;
}
.donation-method {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px 28px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    width: 220px; max-width: 240px; box-sizing: border-box;
    transition: var(--transition); text-align: center;
}
.donation-method:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.donation-method-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.donation-method-icon.paypal { background: rgba(0,112,243,0.15); color: #0070F3; }
.donation-method-icon.binance { background: rgba(243,186,47,0.15); color: #F3BA2F; }
.donation-method-icon.zinli { background: rgba(29,185,84,0.15); color: var(--primary); }
.donation-method-icon.bank { background: rgba(59,130,246,0.15); color: #3B82F6; }
.donation-method-icon.default { background: rgba(255,255,255,0.08); color: var(--primary); }
.donation-method span { font-weight: 600; font-size: 0.95rem; }
.donation-method small { color: var(--text-muted); font-size: 0.8rem; }
.donation-address {
    font-family: 'Courier New', monospace; font-size: 0.8rem;
    color: var(--primary); background: rgba(29,185,84,0.08);
    padding: 6px 12px; border-radius: 8px; word-break: break-all;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 12px; cursor: pointer;
    color: var(--text-secondary); font-family: inherit; font-size: 0.75rem;
    transition: var(--transition);
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { border-color: var(--primary); color: var(--primary); }
a.donation-method { text-decoration: none; color: inherit; }

/* === FAQ === */
.faq { padding: 100px 0; }
.faq-grid { max-width: 800px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
    width: 100%; background: none; border: none; color: var(--text);
    padding: 20px 24px; font-family: inherit; font-size: 1rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question svg { width: 20px; height: 20px; fill: var(--text-muted); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); fill: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* === Footer === */
.footer {
    border-top: 1px solid var(--border); padding: 60px 0 40px;
    background: var(--bg-alt);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { border-color: var(--primary); background: var(--primary-glow); }
.social-links svg { width: 18px; height: 18px; fill: var(--text-secondary); }
.social-links a:hover svg { fill: var(--primary); }

/* === Animations === */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-image { margin-top: 40px; }
    .hero-image img { max-width: 320px; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 48px auto 0; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--bg);
        border-bottom: 1px solid var(--border); padding: 24px;
    }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 32px; }
    .stat-item::after { display: none !important; }
    .donation-card { padding: 40px 24px; }
    .donation-methods { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
}
