/* Shell sportsbook compartido: navbar + header + body + footer */
:root {
    --sb-ink: #0b1220;
    --sb-panel: #111827;
    --sb-line: rgba(255, 255, 255, 0.08);
    --sb-lime: #b8f000;
    --sb-lime-deep: #8fc400;
    --sb-text: #f3f4f6;
    --sb-muted: #9ca3af;
    --sb-nav-h: 48px;
    --sb-header-h: 78px;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body,
body.pronosticos-captura,
body.pronosticos-consulta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: "Barlow", sans-serif;
    color: var(--sb-text);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184, 240, 0, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #111827 100%) !important;
    overflow-x: hidden;
}

.page-wrap {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    margin-top: auto;
    background: linear-gradient(90deg, #0a0f1a 0%, #121a2b 55%, #0d1524 100%);
    border-top: 1px solid var(--sb-line);
    color: var(--sb-muted);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    text-align: center;
}

.site-footer .footer-accent {
    color: var(--sb-lime);
    font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    --bs-navbar-padding-y: 0;
    min-height: var(--sb-nav-h);
    background: linear-gradient(90deg, #0a0f1a 0%, #121a2b 55%, #0d1524 100%) !important;
    border-bottom: 1px solid var(--sb-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: "Barlow", sans-serif;
}

.navbar-custom .container-fluid {
    min-height: var(--sb-nav-h);
    gap: 0.5rem;
}

.navbar-custom .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sb-text) !important;
    padding: 0;
    line-height: 1;
}

.navbar-custom .navbar-brand .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, var(--sb-lime), var(--sb-lime-deep));
    color: #0b1220;
    font-size: 0.85rem;
    box-shadow: 0 0 0 1px rgba(184, 240, 0, 0.25);
}

.navbar-custom .navbar-nav {
    gap: 0.2rem;
    align-items: center;
}

.navbar-custom .navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem !important;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    line-height: 1.1;
}

.navbar-custom .navbar-nav .nav-link i {
    margin-right: 5px;
    font-size: 0.85em;
    opacity: 0.9;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.navbar-custom .navbar-nav .nav-link.active {
    color: #0b1220 !important;
    background: linear-gradient(180deg, var(--sb-lime), var(--sb-lime-deep)) !important;
    border-color: transparent;
    font-weight: 700;
}

.navbar-custom .navbar-toggler {
    border: 1px solid rgba(184, 240, 0, 0.45);
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(184, 240, 0, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28184,240,0, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.15rem;
    height: 1.15rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.navbar-custom .icono-red {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-lime) !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-custom .icono-red:hover {
    background: rgba(184, 240, 0, 0.1);
    border-color: rgba(184, 240, 0, 0.25);
}

/* ===== HEADER ===== */
.sportsbook-header {
    position: relative;
    min-height: var(--sb-header-h);
    max-height: var(--sb-header-h);
    overflow: hidden;
    background-color: var(--sb-ink);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--sb-lime);
}

.sportsbook-header--with-sub {
    --sb-header-h: 88px;
}

.sportsbook-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.72) 42%, rgba(11, 18, 32, 0.55) 100%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.2), rgba(11, 18, 32, 0.55));
    z-index: 1;
}

.sportsbook-header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--sb-lime), transparent 80%);
    z-index: 2;
}

.sportsbook-header .header-inner {
    position: relative;
    z-index: 3;
    min-height: var(--sb-header-h);
    max-height: var(--sb-header-h);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 0.9rem;
}

.header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-brand .logo {
    max-height: 58px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.header-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
}

.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sb-lime);
}

.live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
    animation: pulse-live 1.6s ease-out infinite;
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.jornada-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(184, 240, 0, 0.12);
    border: 1px solid rgba(184, 240, 0, 0.35);
    color: var(--sb-lime);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.header-title {
    margin: 0;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-sub {
    margin: 0;
    color: #cbd5e1;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    :root {
        --sb-header-h: 68px;
    }

    .header-brand .logo {
        max-height: 48px;
        max-width: 86px;
    }

    .header-title {
        font-size: 1.05rem;
    }

    .header-sub {
        font-size: 0.75rem;
    }

    .jornada-chip {
        font-size: 0.7rem;
        padding: 0.12rem 0.45rem;
    }

    .navbar-custom .navbar-nav .nav-link {
        margin-top: 0.35rem;
        text-align: center;
    }

    .navbar-custom .navbar-collapse {
        background: #0f172a;
        margin: 0.4rem -0.75rem 0;
        padding: 0.55rem 0.75rem 0.75rem;
        border-top: 1px solid var(--sb-line);
    }
}
