@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ew-bg: #070c16;
    --ew-bg-2: #0b1220;
    --ew-surface: #121c2e;
    --ew-surface-2: #182338;
    --ew-border: rgba(255, 255, 255, 0.08);
    --ew-text: #e8edf5;
    --ew-muted: #8fa3bf;
    --ew-accent: #22c55e;
    --ew-accent-2: #16a34a;
    --ew-gold: #fbbf24;
    --ew-sky: #38bdf8;
    --ew-danger: #ef4444;
    --ew-nav-h: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body.ew-home {
    margin: 0;
    min-height: 100%;
    color: var(--ew-text);
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    background:
        radial-gradient(ellipse 70% 50% at 8% -10%, rgba(34, 197, 94, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(180deg, #070c16 0%, #0b1220 42%, #0f172a 100%);
}

body.ew-home a {
    text-decoration: none;
}

.ew-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ── Navbar ── */
.ew-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--ew-nav-h);
    background: rgba(7, 12, 22, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ew-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.ew-nav-inner {
    min-height: var(--ew-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ew-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
}

.ew-brand img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.55);
    background: #0b1220;
}

.ew-brand-mark {
    width: 38px;
    height: 38px;
    display: none;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ew-accent), var(--ew-accent-2));
    color: #052e16;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ew-brand-copy strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.ew-brand-copy small {
    display: block;
    margin-top: 3px;
    color: #86efac;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ew-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ew-nav-links a {
    color: #cbd5e1;
    font-family: 'Oswald', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ew-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.ew-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
    color: #bbf7d0;
}

/* ── Hero ── */
.ew-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 48px;
}

.ew-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            rgba(255, 255, 255, 0.02) 47px,
            rgba(255, 255, 255, 0.02) 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            rgba(255, 255, 255, 0.02) 47px,
            rgba(255, 255, 255, 0.02) 48px
        );
    pointer-events: none;
}

.ew-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -80px;
    width: 140%;
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.16), transparent 70%);
    pointer-events: none;
}

.ew-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.ew-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ew-kicker .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ew-accent);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    animation: ew-pulse 1.8s ease-in-out infinite;
}

@keyframes ew-pulse {
    50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); }
}

.ew-hero h1 {
    margin: 16px 0 10px;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ew-hero h1 span {
    color: var(--ew-gold);
}

.ew-hero-lead {
    max-width: 540px;
    margin: 0 0 24px;
    color: var(--ew-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.ew-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.ew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ew-btn:hover {
    transform: translateY(-1px);
}

.ew-btn-gold {
    background: linear-gradient(180deg, #fcd34d, var(--ew-gold));
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(251, 191, 36, 0.22);
}

.ew-btn-wa {
    background: #19c55f;
    color: #052e16 !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2);
}

.ew-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ew-border);
    color: #e2e8f0 !important;
}

.ew-sport-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ew-sport-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(18, 28, 46, 0.8);
    border: 1px solid var(--ew-border);
    color: #dbe7f5;
    font-size: 0.78rem;
    font-weight: 600;
}

.ew-hero-panel {
    background:
        linear-gradient(160deg, rgba(18, 28, 46, 0.92), rgba(15, 35, 28, 0.9));
    border: 1px solid var(--ew-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.ew-hero-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ew-accent), var(--ew-gold), var(--ew-sky));
}

.ew-hero-logo {
    max-height: 92px;
    margin-bottom: 18px;
}

.ew-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ew-stat {
    background: rgba(7, 12, 22, 0.55);
    border: 1px solid var(--ew-border);
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
}

.ew-stat b {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    color: #fff;
}

.ew-stat span {
    display: block;
    margin-top: 6px;
    color: var(--ew-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Sections ── */
.ew-section {
    padding: 28px 0 56px;
}

.ew-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ew-section-head h2 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ew-section-head p {
    margin: 6px 0 0;
    color: var(--ew-muted);
}

.ew-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ew-filter {
    border: 1px solid var(--ew-border);
    background: rgba(18, 28, 46, 0.7);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.ew-filter.is-active,
.ew-filter:hover {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

/* ── Cards ── */
.ew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ew-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #121c2e, #101827);
    border: 1px solid var(--ew-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ew-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
}

.ew-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--card-accent, var(--ew-accent));
}

.ew-card[data-accent="soccer"] { --card-accent: #22c55e; }
.ew-card[data-accent="marcadores"] { --card-accent: #fbbf24; }
.ew-card[data-accent="nfl"] { --card-accent: #f59e0b; }
.ew-card[data-accent="nba"] { --card-accent: #fd7e14; }
.ew-card[data-accent="mlb"] { --card-accent: #ef4444; }
.ew-card[data-accent="ncaa"] { --card-accent: #fbbf24; }

.ew-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ew-sport-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--card-accent);
    font-size: 1.25rem;
}

.ew-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ew-card-status.open {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.ew-card-status.closed {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.ew-card h3 {
    margin: 0 0 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ew-card .ew-meta {
    color: var(--ew-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.ew-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ew-jornada-chip {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ew-jornada-chip b {
    color: #fff;
    font-size: 1.15rem;
}

.ew-card .ew-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
}

.ew-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 42px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(18, 28, 46, 0.5);
    color: var(--ew-muted);
}

/* ── How to play ── */
.ew-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ew-step {
    padding: 22px;
    border-radius: 18px;
    background: rgba(18, 28, 46, 0.78);
    border: 1px solid var(--ew-border);
}

.ew-step-num {
    font-family: 'Oswald', sans-serif;
    color: var(--ew-gold);
    letter-spacing: 0.14em;
    font-size: 0.8rem;
}

.ew-step h3 {
    margin: 8px 0 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.15rem;
}

.ew-step p {
    margin: 0;
    color: var(--ew-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ── CTA band ── */
.ew-cta {
    margin: 8px 0 48px;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background:
        linear-gradient(135deg, rgba(20, 83, 45, 0.55), rgba(11, 18, 32, 0.9));
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.ew-cta h2 {
    margin: 0 0 6px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ew-cta p {
    margin: 0;
    color: #bbf7d0;
}

/* ── Footer ── */
.ew-footer {
    border-top: 1px solid var(--ew-border);
    padding: 22px 0;
    color: var(--ew-muted);
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ew-footer b {
    color: var(--ew-gold);
    font-weight: 700;
}

@media (max-width: 980px) {
    .ew-hero-grid,
    .ew-grid,
    .ew-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .ew-nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .ew-nav-links {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(var(--ew-nav-h) + 8px);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 16px;
        background: #121c2e;
        border: 1px solid var(--ew-border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    }

    .ew-nav-links.is-open {
        display: flex;
    }

    .ew-hero,
    .ew-hero-grid,
    .ew-grid,
    .ew-steps,
    .ew-stats {
        grid-template-columns: 1fr;
    }

    .ew-hero {
        padding-top: 36px;
    }
}
