:root {
    --primary-green: #00df82;
    --bg-black: #0e0e0e;
    --card-gray: #1a1a1a;
    --text-white: #ffffff;
    --text-dim: #999999;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

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

/* Contador compacto en navbar */
.countdown-container {
    background: rgba(0, 223, 130, 0.08);
    border: 1px solid rgba(0, 223, 130, 0.4);
    padding: 7px 18px;
    border-radius: 50px;
    text-align: center;
    flex-shrink: 1;
    min-width: 0;
}

.countdown-container p {
    font-size: 0.78rem;
    color: var(--primary-green);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.social-icon img {
    height: 22px;
    width: auto;
    transition: all 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.2);
    filter: invert(72%) sepia(87%) saturate(1352%) hue-rotate(101deg) brightness(101%) contrast(106%);
}

/* ── HERO ───────────────────────────────────── */
.hero {
    padding: 130px 5% 80px 5%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tag {
    color: var(--primary-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 14px 0 16px;
}

.hero-text p {
    color: var(--text-dim);
    font-size: clamp(0.88rem, 1.5vw, 1rem);
}

.green-text {
    color: var(--primary-green);
}

.stores {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.footer-stores {
    justify-content: center;
}

.store-btn img {
    height: 44px;
    width: auto;
}

/* ── TELÉFONO ───────────────────────────────── */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone {
    width: 270px;
    height: 540px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 11px;
    border: 6px solid #333;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 223, 130, 0.15);
}

.phone-inner {
    width: 100%;
    height: 100%;
    background: #0b0b0b;
    border-radius: 34px;
    overflow: hidden;
}

.app-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 0;
    position: relative;
}

.app-header {
    color: var(--primary-green);
    font-weight: bold;
    padding: 0 14px 12px;
    font-size: 0.78rem;
}

.balance-card {
    background: linear-gradient(135deg, #00df82, #00a35f);
    padding: 16px;
    border-radius: 18px;
    color: black;
    margin: 0 14px 12px;
}

.app-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px;
}

.app-content-scroll::-webkit-scrollbar { display: none; }

.match-card {
    background: #181818;
    padding: 11px;
    border-radius: 11px;
    margin-bottom: 8px;
    border: 1px solid #222;
}

.teams { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 600; }

.odds { display: flex; gap: 5px; margin-top: 6px; }

.odds span {
    background: #252525;
    flex: 1;
    text-align: center;
    padding: 5px 3px;
    border-radius: 5px;
    font-size: 0.62rem;
    color: var(--primary-green);
}

.odds span.active { background: var(--primary-green); color: black; font-weight: bold; }

.dot {
    height: 6px; width: 6px; background: #ff4b4b; border-radius: 50%;
    margin-right: 5px; animation: pulse 1.5s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.app-nav {
    display: flex; justify-content: space-between; padding: 13px 18px;
    border-top: 1px solid #222; background: #0b0b0b;
}

.app-nav span { font-size: 0.52rem; color: #555; text-align: center; }

/* ── CÓMO FUNCIONA ──────────────────────────── */
.how-it-works { padding: 80px 5%; text-align: center; background: #0b0b0b; }

.section-header { margin-bottom: 40px; }

.section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.2;
    text-align: center;
}

.steps-container { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }

.step {
    background: var(--card-gray); padding: 32px 24px; border-radius: 20px;
    flex: 1; min-width: 240px; max-width: 320px; border: 1px solid #222; transition: 0.3s;
}

.step:hover { transform: translateY(-5px); border-color: var(--primary-green); }

.step-icon { font-size: 2.8rem; margin-bottom: 18px; }

.step h3 { color: var(--primary-green); margin-bottom: 12px; font-size: 1rem; }

.step p { color: var(--text-dim); font-size: 0.875rem; }

/* ── RANKING ────────────────────────────────── */
.league-preview { padding: 80px 5%; background: var(--bg-black); text-align: center; }

.ranking-board {
    max-width: 480px; margin: 38px auto; background: #1a1a1a;
    border-radius: 24px; padding: 22px; border: 1px solid #333;
}

.rank-item {
    display: flex; align-items: center; padding: 13px; margin-bottom: 10px;
    background: #222; border-radius: 14px; border: 1px solid transparent;
}

.rank-item.gold { border: 1px solid #f1c40f; background: #2a2618; }

.rank-number { width: 28px; font-weight: 800; color: var(--text-dim); }

.user-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 800; margin: 0 14px;
}

.user-info { flex: 1; text-align: left; }

.username { display: block; font-weight: 600; font-size: 0.95rem; }

.status { font-size: 0.68rem; color: var(--primary-green); font-weight: 600; }

.user-points { font-weight: 800; color: var(--primary-green); font-size: 1.05rem; white-space: nowrap; }

.ranking-footer { margin-top: 18px; color: var(--text-dim); font-size: 0.82rem; }

/* ── DASHBOARD ──────────────────────────────── */
.stats-dashboard { padding: 80px 5%; background: #0b0b0b; }
.dashboard-wrapper {
    max-width: 500px; margin: 0 auto; background: var(--card-gray);
    border-radius: 20px; border: 1px solid #222; overflow: hidden;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dashboard-tabs { display: flex; background: #222; }
.tab-btn {
    flex: 1; padding: 14px; border: none; background: transparent;
    color: var(--text-dim); font-family: 'Poppins'; font-weight: 800;
    cursor: pointer; transition: 0.3s; font-size: 0.73rem;
}
.tab-btn.active { color: var(--primary-green); background: var(--card-gray); }
.dashboard-body { padding: 24px; min-height: 240px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeInDashboard 0.5s ease; }

.mini-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px; background: #222; border-radius: 12px; margin-bottom: 10px;
    border: 1px solid transparent; transition: 0.3s;
}
.mini-card:hover { border-color: var(--primary-green); }
.p-info span { display: block; font-weight: 600; font-size: 0.9rem; }
.p-info small { color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; }
.p-stat {
    color: var(--primary-green); font-weight: 800; font-size: 0.82rem;
    background: rgba(0,223,130,0.1); padding: 4px 10px; border-radius: 8px; white-space: nowrap;
}

.team-row { margin-bottom: 18px; }
.t-header { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 7px; }
.t-header small { color: var(--text-dim); }
.t-bar-bg { height: 8px; background: #333; border-radius: 10px; overflow: hidden; }
.t-bar-fill { height: 100%; background: var(--primary-green); transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67); }

.live-indicator { font-size: 0.63rem; color: #555; text-align: center; padding: 11px; background: #151515; border-top: 1px solid #222; }
.pulse-dot { height: 6px; width: 6px; background: var(--primary-green); border-radius: 50%; display: inline-block; margin-right: 6px; animation: pulse 2s infinite; }

@keyframes fadeInDashboard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── FEATURES ───────────────────────────────── */
.features {
    padding: 80px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.f-card {
    background: var(--card-gray); padding: 38px 30px; border-radius: 24px;
    opacity: 0; transform: translateY(30px); transition: 0.8s; border: 1px solid transparent;
}
.f-card.visible { opacity: 1; transform: translateY(0); }
.f-card.active { border-color: var(--primary-green); }

/* ── FAQ ────────────────────────────────────── */
.faq { padding: 80px 5%; background: var(--bg-black); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px; margin-top: 36px;
}

.faq-item { background: #151515; padding: 28px; border-radius: 14px; border-left: 4px solid var(--primary-green); }
.faq-item h4 { margin-bottom: 10px; font-size: 0.95rem; }
.faq-item p { color: var(--text-dim); font-size: 0.875rem; }

/* ── REVIEWS ────────────────────────────────── */
.reviews { padding: 80px 0; overflow: hidden; }
.reviews-header { text-align: center; margin-bottom: 38px; padding: 0 5%; }
.reviews-track { display: flex; gap: 22px; animation: scrollInfinite 40s linear infinite; width: max-content; }
.review-card { min-width: 300px; background: var(--card-gray); padding: 28px; border-radius: 20px; border: 1px solid #222; text-align: center; }

@keyframes scrollInfinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── CTA FINAL ──────────────────────────────── */
.final-cta {
    padding: 100px 5%; text-align: center;
    background: linear-gradient(180deg, var(--bg-black) 0%, #052216 100%);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800; margin-bottom: 18px;
}

footer {
    padding: 38px 5%;
    text-align: center; color: var(--text-dim); border-top: 1px solid #1a1a1a;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Contador: compacto en tablet */
    .countdown-container {
        padding: 6px 12px;
    }

    .countdown-container p {
        font-size: 0.72rem;
    }

    /* Hero: 1 columna */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stores { justify-content: center; }

    /* Teléfono arriba en tablet */
    .hero-image { order: -1; }

    .phone { width: 230px; height: 460px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MÓVIL  ≤ 640px
══════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* Ocultar el contador: no cabe en mobile */
    .countdown-container { display: none; }

    /* Navbar compacta */
    .navbar {
        padding: 15px 4%;
    }

    .logo { font-size: 1.25rem; }

    .social-icon img { height: 20px; }

    .social-links { gap: 14px; }

    /* Hero */
    .hero { padding: 100px 4% 60px 4%; }

    .hero-text h1 { font-size: 2rem; }

    /* Ocultar teléfono en móvil */
    .hero-image { display: none; }

    /* Botones de descarga en columna */
    .stores {
        flex-direction: column;
        align-items: center;
    }

    .store-btn img { height: 48px; }

    /* Secciones */
    .how-it-works,
    .league-preview,
    .stats-dashboard,
    .faq,
    .features,
    .final-cta {
        padding-left: 4%;
        padding-right: 4%;
    }

    /* Steps */
    .step { min-width: unset; width: 100%; max-width: 100%; }

    /* Dashboard */
    .tab-btn { font-size: 0.65rem; padding: 12px 6px; }

    /* Features */
    .features { grid-template-columns: 1fr; }

    /* FAQ */
    .faq-grid { grid-template-columns: 1fr; }

    /* Reviews */
    .review-card { min-width: 240px; }

    /* Ranking */
    .username { font-size: 0.85rem; }
    .user-avatar { width: 36px; height: 36px; font-size: 0.8rem; margin: 0 10px; }

    /* CTA footer stores */
    .footer-stores { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO  ≤ 380px
══════════════════════════════════════════════ */
@media (max-width: 380px) {
    .logo { font-size: 1.1rem; }
    .hero { padding: 90px 3% 50px 3%; }
    .hero-text h1 { font-size: 1.75rem; }
    .social-icon img { height: 18px; }
    .social-links { gap: 12px; }
}