/* ═══════════════════════════════════════════════════
   GOLITO.SITE — Analytics Mundial 2026
   ═══════════════════════════════════════════════════ */
:root {
    --bg: #0a0e14;
    --bg-panel: #121820;
    --bg-panel-hover: #181f2a;
    --bg-sidebar: #0d1219;
    --border: rgba(255,255,255,.06);
    --border-gold: rgba(212,175,55,.25);
    --gold: #d4af37;
    --gold-light: #f0d060;
    --green: #00e676;
    --green-dim: #00c853;
    --red: #ff5252;
    --blue: #448aff;
    --text: #f0f4f8;
    --text-muted: #8b9cb3;
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-w: 240px;
    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --shadow: 0 4px 24px rgba(0,0,0,.45);
    --gradient-gold: linear-gradient(135deg, #d4af37, #f0d060);
    --gradient-green: linear-gradient(135deg, #00c853, #00e676);
    --bottom-nav-h: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --touch-min: 44px;
    /* Escala tipográfica — rem se basa en html */
    --fs-root: 17px;
    --fs-root-mobile: 18.5px;
    --fs-root-mobile-sm: 19px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: var(--fs-root);
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; background: transparent; }

/* ─── IMÁGENES REALES TRANSPARENTES ─── */
img.flag-img,
img.img-transparent,
img.trophy-img,
img.nav-icon {
    background: transparent !important;
    object-fit: contain;
    box-shadow: none !important;
    border: none;
    display: inline-block;
    vertical-align: middle;
}
img.flag-img {
    object-fit: cover;
    border-radius: 3px;
}
.flag-img.flag-sm { width: 28px; height: 21px; min-width: 28px; flex-shrink: 0; }
.flag-img.flag-md { width: 36px; height: 27px; min-width: 36px; flex-shrink: 0; }
.flag-img.flag-lg { width: 64px; height: 48px; min-width: 64px; flex-shrink: 0; }

.trophy-img {
    filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.28));
    object-fit: contain;
    background: transparent !important;
    height: auto;
    image-rendering: auto;
}
.trophy-img-xl { width: min(180px, 38vw); max-height: 220px; }
.trophy-img-lg { width: 120px; max-height: 140px; }
.trophy-img-md { width: 88px; max-height: 100px; }

.brand-logo {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}
.brand-trophy { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); }
.brand-golito-icon { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35)); }

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    flex-shrink: 0;
}
.sidebar-link.active .nav-icon,
.bottom-nav-link.active .nav-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(72%) sepia(52%) saturate(638%) hue-rotate(93deg) brightness(103%) contrast(101%);
}
.bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.bottom-nav-icon .nav-icon { width: 24px; height: 24px; }
.body-app { overflow-x: hidden; }
.app-layout { display: flex; min-height: 100vh; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
body.sidebar-open .sidebar-backdrop { display: block; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform .3s;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}
.brand-info { min-width: 0; flex: 1; }
/* ─── APP LAYOUT ─── */
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 2px; display: block; color: var(--gold); }
.brand-tag { font-size: .58rem; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-pitch {
    display: block;
    margin-top: .35rem;
    font-size: .68rem;
    line-height: 1.35;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-nav { flex: 1; padding: .75rem .5rem; overflow-y: auto; }
    .sidebar-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem .85rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all .2s;
    min-height: var(--touch-min);
}
.sidebar-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.sidebar-link.active {
    background: rgba(0,230,118,.1);
    color: var(--green);
    border-left: 3px solid var(--green);
}
.sidebar-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: .65rem; font-size: .82rem; }
.sidebar-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #000; flex-shrink: 0;
}
.sidebar-user a { display: block; font-size: .72rem; color: var(--text-muted); }
.sidebar-user-links { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin-top: .15rem; }
.sidebar-user-links a { display: inline; }
.sidebar-user-links a:hover { color: var(--gold); }

.main-wrapper { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.5rem;
    background: rgba(10,14,20,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.sidebar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

.topbar-search {
    flex: 1; max-width: 400px;
    display: flex; align-items: center; gap: .5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .5rem 1rem;
}
.topbar-search input {
    flex: 1; background: none; border: none; color: var(--text);
    font-family: inherit; font-size: .88rem; outline: none;
}
.search-icon { opacity: .5; font-size: .9rem; }

.topbar-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.topbar-greet { font-size: .88rem; color: var(--text-muted); }
.topbar-greet-link { text-decoration: none; transition: color .15s; }
.topbar-greet-link:hover { color: var(--gold); }
.topbar-greet strong { color: var(--text); }

.live-pill {
    display: flex; align-items: center; gap: .4rem;
    background: rgba(255,82,82,.15);
    border: 1px solid rgba(255,82,82,.4);
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--red);
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live { 50% { opacity: .7; } }

.page-content { flex: 1; padding: 1.5rem; max-width: 1400px; width: 100%; min-width: 0; }

/* ─── TYPOGRAPHY ─── */
.page-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; line-height: 1; }
.page-sub { color: var(--text-muted); font-size: .88rem; margin-top: .35rem; }
.page-hero { margin-bottom: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.dash-hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }

/* ─── PANELS ─── */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.panel-gold { border-color: var(--border-gold); background: linear-gradient(145deg, #151c28, #121820); }
.panel-danger { border-color: rgba(255,82,82,.2); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.panel-head h2 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 1.5px; color: var(--gold); }
.panel-desc { font-size: .8rem; color: var(--text-muted); margin: -.5rem 0 1rem; }
.panel-badge { font-size: .68rem; background: rgba(0,230,118,.12); color: var(--green); padding: .2rem .5rem; border-radius: 4px; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1.25rem; border-radius: 8px;
    font-family: inherit; font-weight: 600; font-size: .85rem;
    border: none; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-sm { padding: .45rem .9rem; font-size: .78rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--gradient-green); color: #000; box-shadow: 0 4px 16px rgba(0,230,118,.25); }
.btn-gold, .btn-outline-gold { background: transparent; border: 1px solid var(--border-gold); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(212,175,55,.1); }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ─── DASHBOARD LAYOUT ─── */
.dash-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; }
.dash-col-main, .dash-col-side { min-width: 0; }

/* Prob bars (campeón) */
.prob-bars-list { display: flex; flex-direction: column; gap: .85rem; }
.prob-bar-row {
    display: grid;
    grid-template-columns: 36px 1fr 48px;
    align-items: center;
    gap: .75rem;
}
.prob-bar-row img.flag-img { width: 28px; height: 20px; }
.prob-bar-name { font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.prob-bar-track { height: 10px; background: rgba(255,255,255,.06); border-radius: 5px; overflow: hidden; }
.prob-bar-fill { height: 100%; background: var(--gradient-green); border-radius: 5px; transition: width .8s ease; }
.prob-bar-pct { font-weight: 700; color: var(--green); text-align: right; font-size: .95rem; }

/* Upcoming compact */
.upcoming-compact { display: flex; flex-direction: column; gap: .5rem; }
.upcoming-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: rgba(0,0,0,.25);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.upcoming-row:hover { border-color: var(--border-gold); }
.upcoming-row.live { border-color: rgba(255,82,82,.4); background: rgba(255,82,82,.05); }
.upcoming-team { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.upcoming-team.right { justify-content: flex-end; }
.upcoming-team img.flag-img { width: 24px; height: 18px; }
.upcoming-score { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); letter-spacing: 2px; min-width: 60px; text-align: center; }
.upcoming-time { font-size: .72rem; color: var(--text-muted); text-align: right; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.stat-box {
    background: rgba(0,0,0,.3);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}
.stat-box .val { font-family: var(--font-display); font-size: 2rem; color: var(--green); line-height: 1; }
.stat-box .lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: .25rem; }

/* Mini standings */
.mini-standings { overflow-x: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mini-table th { color: var(--text-muted); font-weight: 500; padding: .4rem .5rem; text-align: center; font-size: .65rem; text-transform: uppercase; }
.mini-table td { padding: .45rem .5rem; border-top: 1px solid var(--border); text-align: center; }
.mini-table td:first-child { text-align: left; }
.mini-table .team-cell { display: flex; align-items: center; gap: .4rem; }
.mini-table img.flag-img { width: 18px; height: 14px; }

/* Elim compact */
.elim-compact { display: flex; flex-direction: column; gap: .5rem; }
.elim-row {
    display: grid; grid-template-columns: 28px 1fr 36px;
    align-items: center; gap: .5rem; font-size: .8rem;
}
.elim-row img.flag-img { width: 22px; height: 16px; }
.elim-track { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.elim-fill { height: 100%; background: linear-gradient(90deg, #ff5252, #ff867c); border-radius: 4px; }

/* ─── TEAMS GRID ─── */
.search-modern {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .6rem 1.25rem;
    color: var(--text);
    font-family: inherit;
    min-width: 240px;
    outline: none;
}
.search-modern:focus { border-color: var(--gold); }

.teams-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.team-card-modern {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.team-card-modern::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-gold);
    opacity: 0; transition: opacity .2s;
}
.team-card-modern:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.team-card-modern:hover::before { opacity: 1; }

.team-card-modern img.flag-img {
    margin-bottom: .75rem;
    display: block;
    width: 64px;
    height: 48px;
    min-width: 64px;
    min-height: 48px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
    box-sizing: border-box;
}
.team-card-modern .name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.team-card-modern .meta { font-size: .75rem; color: var(--text-muted); margin-bottom: .65rem; }
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 1px; }
.rating-badge {
    position: absolute; top: 1rem; right: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--green);
}
.fav-btn-modern {
    position: absolute; bottom: .75rem; right: .75rem;
    background: none; border: none; font-size: 1.3rem; cursor: pointer; opacity: .35;
}
.fav-btn-modern.active { opacity: 1; }

/* Team detail modal */
.modal-modern { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-modern[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.modal-panel {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    max-width: 720px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: .75rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.75rem; cursor: pointer; z-index: 1; }

.team-hero {
    min-height: 160px;
    background: linear-gradient(135deg, #1a2840, #0d1520);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    gap: 1rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}
.team-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 30%, rgba(212,175,55,.12), transparent 55%);
    pointer-events: none;
}
.team-hero-jersey {
    margin-left: auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}
.team-jersey-img {
    width: 88px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    background: transparent !important;
}
.team-hero img.flag-img { width: 80px; height: 56px; position: relative; z-index: 1; }
.team-hero-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.team-hero-info h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; }
.team-hero-info p { font-size: .82rem; color: var(--text-muted); }

.team-detail-body { padding: 1.25rem; }
.detail-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.detail-tab { background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: .82rem; padding: .4rem .75rem; cursor: pointer; border-radius: 6px; }
.detail-tab.active { background: rgba(0,230,118,.1); color: var(--green); }

.detail-grid { display: grid; grid-template-columns: 1fr 200px; gap: 1.25rem; }
.detail-stats-list { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; }
.detail-stats-list span { color: var(--text-muted); }
.tags-modern { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.tag-ok { background: rgba(0,230,118,.12); color: var(--green); font-size: .72rem; padding: .25rem .55rem; border-radius: 4px; }
.tag-bad { background: rgba(255,82,82,.12); color: #ff867c; font-size: .72rem; padding: .25rem .55rem; border-radius: 4px; }

/* ─── COMPARATOR ─── */
.comparator-setup { text-align: center; }
.comparator-selects { display: flex; align-items: flex-end; justify-content: center; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.compare-select-wrap { text-align: left; min-width: 200px; }
.compare-select-wrap label { font-size: .75rem; color: var(--text-muted); display: block; margin-bottom: .35rem; }
.select-modern {
    width: 100%; background: rgba(0,0,0,.3);
    border: 1px solid var(--border); border-radius: 8px;
    padding: .65rem .85rem; color: var(--text); font-family: inherit;
}
.vs-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1rem; color: #000; font-weight: 700;
    margin-bottom: .25rem;
}

.compare-header { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.compare-team { text-align: center; }
.compare-team img.flag-img { width: 72px; height: 50px; margin-bottom: .5rem; display: block; }
.compare-team h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1px; }
.compare-vs { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

.compare-bar-item { margin-bottom: 1rem; }
.compare-bar-label { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: .35rem; }
.compare-bar-track { height: 12px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; display: flex; }
.compare-bar-a { background: var(--gradient-green); height: 100%; transition: width .6s; }
.compare-bar-b { background: linear-gradient(90deg, var(--blue), #82b1ff); height: 100%; transition: width .6s; }

.compare-verdict { text-align: center; padding: 1.25rem; font-size: 1rem; }
.compare-verdict strong { color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 1px; }
.compare-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }

/* ─── PODIUM ─── */
.podium-modern { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; padding: 1.5rem 0; min-height: 200px; }
.podium-slot { text-align: center; flex: 0 0 130px; }
.podium-block {
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem .75rem;
    border: 1px solid var(--border-gold);
    background: rgba(212,175,55,.06);
}
.podium-slot:nth-child(2) .podium-block { height: 130px; background: rgba(212,175,55,.15); }
.podium-slot:nth-child(1) .podium-block, .podium-slot:nth-child(3) .podium-block { height: 95px; }
.podium-block img.flag-img { width: 48px; height: 34px; margin-bottom: .5rem; }
.podium-pct { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }

/* ─── BRACKET ─── */
.bracket-modern { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0; }
.bracket-round { flex: 0 0 180px; }
.bracket-round-title { font-family: var(--font-display); color: var(--gold); font-size: .85rem; letter-spacing: 1px; margin-bottom: .65rem; text-align: center; }
.bracket-match {
    background: rgba(0,0,0,.35);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .55rem .65rem;
    margin-bottom: .5rem;
    font-size: .72rem;
}
.bracket-team { display: flex; align-items: center; gap: .35rem; padding: .2rem 0; }
.bracket-vs { text-align: center; font-size: .65rem; color: var(--text-muted); padding: .15rem 0; }
.bracket-match .winner { color: var(--green); font-weight: 700; }

.sim-champion-banner { text-align: center; padding: 2rem; }
.sim-trophy { margin-bottom: .5rem; display: flex; justify-content: center; }
.sim-trophy-img { width: 72px; }

/* ─── CHAMPION PANEL (Dashboard) ─── */
.champion-panel-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
}
.champion-trophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    background: transparent;
}
.trophy-hero-img { animation: trophy-float 4s ease-in-out infinite; }
@keyframes trophy-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.panel-champion { border-color: var(--border-gold); }

/* ─── FLAG FALLBACK ─── */
.flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 4px;
    background: rgba(212,175,55,.15);
    border: 1px solid var(--border-gold);
    border-radius: 3px;
    font-size: .6rem;
    font-weight: 700;
    color: var(--gold);
}

/* ─── BOTTOM NAV (mobile, como mockup) ─── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 180;
    background: rgba(13,18,25,.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: .4rem .15rem calc(.4rem + env(safe-area-inset-bottom));
    justify-content: stretch;
    gap: 0;
    max-width: 100vw;
    overflow: hidden;
}
.bottom-nav-link {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: .68rem;
    padding: .35rem .12rem;
    border-radius: 10px;
    min-width: 0;
    min-height: var(--touch-min);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
button.bottom-nav-link {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    width: auto;
}
.bottom-nav-link.active {
    color: var(--green);
    background: rgba(0, 230, 118, 0.08);
}
.bottom-nav-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.bottom-nav-icon-text { font-size: 1.15rem; line-height: 1; }
.bottom-nav-label {
    letter-spacing: .1px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    line-height: 1.15;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .25rem;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .tab { flex-shrink: 0; white-space: nowrap; }
}
.sim-champion-big img.flag-img { width: 100px; height: 70px; margin-bottom: 1rem; display: block; }
.sim-champion-big h2 { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 2px; }

/* ─── AUTH SCREEN ─── */
.body-auth { min-height: 100vh; }
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 2rem; }
.auth-bg {
    position: fixed; inset: 0;
    background: url('../images/stadium-bg.jpg') center/cover no-repeat;
    filter: brightness(.35);
}
.auth-overlay { position: fixed; inset: 0; background: linear-gradient(135deg, rgba(10,14,20,.9), rgba(10,14,20,.7)); }
.auth-container { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-trophy { margin-bottom: .5rem; display: flex; justify-content: center; }
.auth-trophy-img { width: 96px; }
.auth-brand h1 { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 3px; color: var(--gold); }
.auth-brand p { font-size: .75rem; color: var(--text-muted); letter-spacing: 2px; }

.auth-card-glass {
    background: rgba(18,24,32,.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.auth-card-glass h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px; text-align: center; margin-bottom: 1.5rem; color: var(--text); }

.input-group {
    display: flex; align-items: center; gap: .65rem;
    background: rgba(0,0,0,.35);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: .85rem;
    transition: border-color .2s;
}
.input-group:focus-within { border-color: var(--gold); }
.input-group span { opacity: .5; }
.input-group input { flex: 1; background: none; border: none; color: var(--text); font-family: inherit; font-size: .9rem; outline: none; }

.auth-legal {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .25rem 0 1rem;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-legal input[type="checkbox"] {
    margin-top: .2rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer;
}
.auth-legal a { color: var(--gold); text-decoration: underline; }
.auth-legal strong { color: var(--text); font-weight: 600; }

.legal-doc {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem 1.75rem;
    line-height: 1.65;
    font-size: .92rem;
}
.legal-doc h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .04em;
    margin: 1.5rem 0 .65rem;
    color: var(--gold);
}
.legal-doc h2:first-of-type { margin-top: .5rem; }
.legal-doc p { color: var(--text-muted); margin-bottom: .75rem; }
.legal-doc a { color: var(--green); }
.legal-updated { font-size: .8rem; opacity: .7; margin-bottom: 1rem !important; }
.legal-list {
    margin: 0 0 1rem 1.1rem;
    color: var(--text-muted);
}
.legal-list li { margin-bottom: .55rem; }
.legal-back {
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
}

/* ─── SITE FOOTER ─── */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0a0e14 100%);
    padding: 1.75rem 1.5rem calc(1.25rem + var(--safe-bottom));
}
.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.site-footer-top {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 2rem;
    align-items: start;
}
.site-footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .12em;
    color: var(--gold);
    margin: 0 0 .35rem;
}
.site-footer-tag {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}
.site-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}
.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}
.site-footer-col strong {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: .25rem;
}
.site-footer-col a {
    font-size: .84rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.site-footer-col a:hover { color: var(--green); }
.site-footer-legal-box {
    margin-top: 1.35rem;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(212,175,55,.22);
    background: rgba(212,175,55,.04);
}
.site-footer-legal-box p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.site-footer-legal-box strong { color: var(--text); font-weight: 600; }
.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: .75rem;
    color: var(--text-muted);
}
.site-footer-bottom p { margin: 0; }
.site-footer-mini-links a {
    color: var(--text-muted);
    text-decoration: none;
}
.site-footer-mini-links a:hover { color: var(--gold); }
.site-footer-mini-links span { opacity: .45; margin: 0 .35rem; }

.body-auth .site-footer {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 1.25rem 1rem calc(1rem + var(--safe-bottom));
}
.body-auth .site-footer-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.body-auth .site-footer-nav {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .site-footer-top { grid-template-columns: 1fr; gap: 1.25rem; }
    .site-footer-nav { grid-template-columns: 1fr 1fr; }
    .body-app .site-footer {
        padding-bottom: calc(1.25rem + var(--bottom-nav-h) + var(--safe-bottom));
    }
}
@media (max-width: 520px) {
    .site-footer { padding-left: .85rem; padding-right: .85rem; }
    .site-footer-nav { grid-template-columns: 1fr; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

.auth-links { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.auth-skip { display: block; text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }

/* ─── HISTORIA ─── */
.eyebrow {
    color: var(--green);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    margin-bottom: .35rem;
}
.history-hero {
    position: relative;
    overflow: hidden;
}
.history-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    align-items: start;
}
.history-picker {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.history-picker label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.history-search {
    width: 100%;
    min-height: var(--touch-min);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0,0,0,.3);
    color: var(--text);
    padding: .65rem .8rem;
    font-size: 16px;
}
.history-empty-note {
    margin: 0;
    border: 1px solid rgba(212,175,55,.18);
    border-radius: var(--radius);
    background: rgba(212,175,55,.06);
    color: var(--text-muted);
    padding: .65rem .75rem;
    font-size: .78rem;
    line-height: 1.45;
}
.history-empty-note a {
    color: var(--gold);
    font-weight: 800;
}
.history-team-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: .2rem;
}
.history-team-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .5rem;
    min-height: var(--touch-min);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: .55rem .65rem;
    cursor: pointer;
    text-align: left;
}
.history-team-btn:hover {
    border-color: var(--border-gold);
    background: rgba(212,175,55,.06);
}
.history-team-btn small { color: var(--text-muted); }
.history-card {
    overflow: hidden;
    position: relative;
}
.history-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 0%, rgba(212,175,55,.14), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(0,230,118,.08), transparent 40%);
    pointer-events: none;
}
.history-card-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: .25rem 0 1rem;
    border-bottom: 1px solid var(--border);
}
.history-flag img.flag-img {
    width: 86px;
    height: 64px;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.history-card-hero h2 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 2.6rem;
    line-height: .95;
}
.history-card-hero p { color: var(--text-muted); }
.history-trophy {
    min-width: 120px;
    text-align: center;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    background: rgba(0,0,0,.24);
    padding: .8rem;
}
.history-trophy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    line-height: .9;
}
.history-trophy span {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.history-metrics {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .65rem;
    margin: 1rem 0;
}
.history-metric {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0,0,0,.22);
    padding: .8rem;
}
.history-metric span,
.history-metric small {
    display: block;
    color: var(--text-muted);
    font-size: .7rem;
}
.history-metric strong {
    display: block;
    margin: .15rem 0;
    font-family: var(--font-display);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
}
.history-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}
.history-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0,0,0,.18);
    padding: 1rem;
}
.history-section h3 {
    color: var(--gold);
    margin-bottom: .65rem;
    font-size: 1rem;
}
.history-wide { grid-column: 1 / -1; }
.history-placements {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.history-placements div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-bottom: .45rem;
}
.history-placements strong { color: var(--text); }
.history-placements span { color: var(--text-muted); text-align: right; }
.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.history-tags span {
    border: 1px solid rgba(0,230,118,.22);
    color: var(--green);
    background: rgba(0,230,118,.07);
    border-radius: 999px;
    padding: .35rem .6rem;
    font-size: .78rem;
}
.history-timeline {
    list-style: none;
    display: grid;
    gap: .55rem;
}
.history-timeline li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-muted);
}
.history-timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,.1);
}

/* ─── GOLITO ─── */
.golito-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.golito-avatar {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, rgba(0,230,118,.12), rgba(212,175,55,.18));
    border: 1px solid var(--border-gold);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    flex-shrink: 0;
    overflow: hidden;
}
.golito-icon {
    display: block;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.golito-icon-xs { width: 26px; height: 26px; }
.golito-icon-sm { width: 44px; height: 44px; }
.golito-icon-md { width: 56px; height: 56px; }
.golito-icon-lg { width: 88px; height: 88px; }
.golito-avatar .golito-icon-lg {
    width: 92px;
    height: 92px;
    animation: golito-idle 3.4s ease-in-out infinite;
}
@keyframes golito-idle {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-2px) rotate(1deg); }
}
.golito-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}
.golito-chat {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.golito-messages {
    height: 520px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(0,230,118,.05), transparent 35%),
        radial-gradient(circle at 80% 100%, rgba(212,175,55,.06), transparent 35%);
}
.golito-msg {
    display: flex;
}
.golito-msg.user { justify-content: flex-end; }
.golito-msg.bot { justify-content: flex-start; }
.golito-msg.bot { padding-left: 2rem; }
.golito-bubble {
    max-width: min(760px, 86%);
    border-radius: 18px;
    padding: .85rem 1rem;
    line-height: 1.55;
    font-size: .92rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.golito-msg.bot .golito-bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
    color: var(--text);
    border-color: rgba(212,175,55,.16);
    border-top-left-radius: 6px;
}
.golito-msg.bot .golito-bubble::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: url('../images/golito-icon.png') center/cover no-repeat;
    border: 1px solid rgba(212,175,55,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.golito-msg.user .golito-bubble {
    background: linear-gradient(135deg, rgba(0,200,83,.24), rgba(0,230,118,.16));
    border-color: rgba(0,230,118,.25);
    border-top-right-radius: 6px;
    color: #f7fff9;
}
.golito-form {
    display: flex;
    gap: .65rem;
    padding: .9rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.22);
}
.golito-form input {
    flex: 1;
    min-height: var(--touch-min);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0,0,0,.35);
    color: var(--text);
    padding: .7rem .85rem;
    font-size: 16px;
}
.golito-note {
    padding: 0 .9rem .9rem;
    color: var(--text-muted);
    font-size: .72rem;
}
.golito-suggestions {
    position: sticky;
    top: 1rem;
}
.golito-suggestions h2 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: .8rem;
}
.golito-suggestions button {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: .75rem;
    margin-bottom: .55rem;
    cursor: pointer;
}
.golito-suggestions button:hover {
    border-color: rgba(0,230,118,.3);
    background: rgba(0,230,118,.07);
}
.golito-dots {
    display: inline-flex;
    gap: .25rem;
    align-items: center;
}
.golito-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: golito-bounce .9s infinite ease-in-out;
}
.golito-dots i:nth-child(2) { animation-delay: .12s; }
.golito-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes golito-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .4; }
    40% { transform: translateY(-5px); opacity: 1; }
}
.golito-quick-chips {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    padding-left: 2rem;
}
.golito-quick-chips button {
    border: 1px solid rgba(212,175,55,.2);
    border-radius: 999px;
    background: rgba(212,175,55,.08);
    color: var(--gold);
    padding: .35rem .6rem;
    font-size: .72rem;
    cursor: pointer;
}
.golito-quick-chips button:hover {
    border-color: rgba(0,230,118,.35);
    color: var(--green);
    background: rgba(0,230,118,.08);
}

.golito-intro {
    max-width: 760px;
}
.golito-intro h2 {
    color: var(--gold);
    margin-bottom: .4rem;
}
.golito-intro p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.golito-intro .golito-suggestions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.golito-intro .golito-suggestions button {
    width: auto;
    margin: 0;
}

.golito-widget {
    position: fixed;
    right: 24px;
    bottom: calc(24px + var(--safe-bottom));
    z-index: 900;
}
.golito-launcher {
    position: relative;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(0,230,118,.45);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 28%),
        linear-gradient(145deg, rgba(8,13,19,.98), rgba(18,31,28,.96));
    color: var(--gold);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow:
        0 16px 44px rgba(0,0,0,.58),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 26px rgba(0,230,118,.18);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.golito-launcher-icon {
    width: 54px;
    height: 54px;
    animation: golito-idle-mini 3.2s ease-in-out infinite;
}
@keyframes golito-idle-mini {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}
.golito-launcher:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(0,230,118,.65);
    box-shadow:
        0 18px 52px rgba(0,0,0,.62),
        0 0 0 1px rgba(0,230,118,.18),
        0 0 34px rgba(0,230,118,.28);
}
.golito-launcher-pulse {
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1px solid rgba(0,230,118,.24);
    animation: golito-pulse 1.8s ease-out infinite;
}
@keyframes golito-pulse {
    0% { opacity: .75; transform: scale(.98); }
    100% { opacity: 0; transform: scale(1.16); }
}

.golito-widget .golito-chat {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(410px, calc(100vw - 32px));
    min-height: 0;
    height: min(620px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease;
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(18,24,32,.98), rgba(8,12,18,.98));
    box-shadow:
        0 24px 70px rgba(0,0,0,.68),
        0 0 0 1px rgba(255,255,255,.05),
        0 0 34px rgba(212,175,55,.08);
}
.golito-widget.open .golito-chat {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.golito-widget.open .golito-launcher {
    display: none;
}
.golito-chat-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem .95rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 0% 0%, rgba(0,230,118,.2), transparent 32%),
        linear-gradient(135deg, rgba(15,35,29,.96), rgba(20,20,28,.96));
}
.golito-head-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    border: 2px solid rgba(0,230,118,.35);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    overflow: hidden;
}
.golito-head-avatar .golito-icon-sm {
    width: 42px;
    height: 42px;
}
.golito-chat-head strong {
    display: block;
    color: var(--gold);
    font-size: 1rem;
}
.golito-chat-head span {
    color: var(--text-muted);
    font-size: .74rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.golito-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(0,230,118,.85);
    display: inline-block;
}
.golito-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.28);
    color: var(--text);
    font-size: 1.35rem;
    cursor: pointer;
}
.golito-clear {
    margin-left: auto;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,55,.2);
    background: rgba(0,0,0,.18);
    color: var(--text-muted);
    padding: .25rem .6rem;
    font-size: .7rem;
    cursor: pointer;
}
.golito-clear:hover {
    color: var(--gold);
    border-color: rgba(212,175,55,.42);
}
.golito-clear + .golito-close {
    margin-left: .35rem;
}
.golito-widget .golito-messages {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 1rem .9rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(0,230,118,.075), transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(212,175,55,.08), transparent 32%),
        rgba(0,0,0,.12);
}
.golito-widget .golito-form {
    padding: .75rem .85rem;
    background: rgba(0,0,0,.3);
}
.golito-widget .golito-form button {
    min-width: 52px;
    font-size: 1.15rem;
    border-radius: 14px;
}
.golito-widget .golito-note {
    padding: 0 .75rem .75rem;
}

/* ─── MISC ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.match-list { display: flex; flex-direction: column; gap: .5rem; }
.match-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: .5rem;
    padding: .65rem .85rem;
    background: rgba(0,0,0,.25);
    border-radius: 8px; font-size: .82rem;
}
.match-row.live { border: 1px solid rgba(255,82,82,.3); }
.match-team { display: flex; align-items: center; gap: .4rem; }
.match-team.away { flex-direction: row-reverse; text-align: right; }
.match-team img.flag-img { width: 22px; height: 16px; }
.match-score { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.match-live-info { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin-top: .15rem; }
.live-minute {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1;
    background: rgba(255,82,82,.18);
    border: 1px solid rgba(255,82,82,.36);
    border-radius: 999px;
    padding: .18rem .5rem;
    text-transform: uppercase;
}
.live-source-note {
    font-size: .68rem;
    color: var(--text-muted);
    margin: -.35rem 0 .65rem;
    padding: 0 .1rem;
}
.live-progress {
    width: 56px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: .1rem;
}
.live-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff867c);
    border-radius: 999px;
}
.live-progress-fill.live-pulse {
    width: 100%;
    animation: live-pulse-bar 1.4s ease-in-out infinite;
}
@keyframes live-pulse-bar {
    0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
    50% { opacity: 1; transform: scaleX(1); }
}
.upcoming-live-meta {
    grid-column: 1 / -1;
    text-align: center;
    font-size: .68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.upcoming-live-meta .live-minute { font-size: .85rem; }
.cal-timing { display: block; width: 100%; font-size: .68rem; color: var(--text-muted); margin-top: .15rem; }
.match-meta { grid-column: 1/-1; text-align: center; font-size: .68rem; color: var(--text-muted); }

.upcoming-list, .duel-grid { display: flex; flex-direction: column; gap: .65rem; }
.duel-card, .upcoming-item {
    background: rgba(0,0,0,.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.duel-vs { display: flex; justify-content: space-between; align-items: center; }
.duel-team { text-align: center; flex: 1; }
.duel-team img.flag-img { width: 36px; height: 26px; margin-bottom: .25rem; }
.duel-team.favorite .name { color: var(--gold); }
.vs-badge { font-family: var(--font-display); color: var(--text-muted); padding: 0 .5rem; }
.prob-bars { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.prob-home { background: var(--green); }
.prob-draw { background: var(--text-muted); }
.prob-away { background: var(--blue); }

.group-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .85rem; }
.group-pick-card { background: rgba(0,0,0,.25); border-radius: 8px; padding: .85rem; border: 1px solid var(--border); }
.group-pick-card h4 { font-family: var(--font-display); color: var(--gold); margin-bottom: .5rem; }
.group-pick-card label { display: block; font-size: .72rem; color: var(--text-muted); margin-bottom: .35rem; }
.group-pick-card select { width: 100%; margin-bottom: .5rem; }

.prediction-games { display: flex; flex-direction: column; gap: .65rem; }
.pred-game-full { background: rgba(0,0,0,.25); border-radius: 8px; padding: .85rem; border: 1px solid var(--border); }
.pred-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: .65rem; }
.pred-game input[type=number] { width: 44px; text-align: center; background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: .35rem; font-size: 1rem; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.group-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.group-header { background: rgba(212,175,55,.1); padding: .75rem 1rem; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 2px; color: var(--gold); }
.standings-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.standings-table th, .standings-table td { padding: .5rem .65rem; text-align: center; }
.standings-table th { color: var(--text-muted); font-size: .65rem; text-transform: uppercase; }
.standings-table td:first-child, .standings-table th:first-child { text-align: left; }
.standings-table tbody tr { border-top: 1px solid var(--border); }
.standings-table tbody tr.qualify { background: rgba(0,230,118,.05); }
.standings-table tbody tr.danger { background: rgba(255,82,82,.05); }
.standing-team { display: flex; align-items: center; gap: .4rem; }
.standing-team img.flag-img { width: 20px; height: 15px; }

.filter-tabs {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.tab {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: .45rem .85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: .8rem;
    min-height: 38px;
}
.tab.active { border-color: var(--green); color: var(--green); background: rgba(0,230,118,.08); }

.leaderboard-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.leaderboard-table th, .leaderboard-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.leaderboard-table th { color: var(--text-muted); font-size: .7rem; text-transform: uppercase; }
.leaderboard-table tr.top-1 { background: rgba(212,175,55,.08); }
.lb-points { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.lb-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #000; margin-right: .5rem; }

.mc-chart { display: flex; flex-direction: column; gap: .5rem; }
.mc-row { display: grid; grid-template-columns: 30px 140px 1fr 44px; align-items: center; gap: .65rem; font-size: .82rem; }
.mc-bar-track { height: 18px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.mc-bar-fill { height: 100%; background: var(--gradient-green); border-radius: 4px; }
.mc-pct { color: var(--green); font-weight: 700; }

.elim-chart { display: flex; flex-direction: column; gap: .5rem; }
.elim-bar-row { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: .65rem; font-size: .82rem; }
.elim-bar-track { height: 20px; background: rgba(0,0,0,.3); border-radius: 4px; overflow: hidden; }
.elim-bar-fill { height: 100%; border-radius: 4px; }

.phase-table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 420px; }
.phase-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.phase-table th, .phase-table td { padding: .5rem .65rem; border-bottom: 1px solid var(--border); text-align: center; }
.phase-table th { color: var(--text-muted); font-size: .65rem; }
.phase-table td:first-child { text-align: left; }

.loading-box, .error-box, .empty-state { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.loader-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.loader-overlay[hidden] { display: none; }

.alert-error { background: rgba(255,82,82,.12); border: 1px solid rgba(255,82,82,.3); color: #ff867c; padding: .75rem; border-radius: 8px; margin-bottom: 1rem; font-size: .85rem; }
.muted { color: var(--text-muted); }
.sim-intro-content { text-align: center; padding: 2rem; }
.sim-big-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

.mizona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mizona-grid .panel[style*="span 2"] { grid-column: span 2; }
.my-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .65rem; }
.score-box { background: rgba(0,0,0,.3); border-radius: 8px; padding: 1rem; text-align: center; border: 1px solid var(--border); }
.score-box.main { border-color: var(--border-gold); }
.score-box .val { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.score-box .lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; }

.favorites-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.fav-chip { display: flex; align-items: center; gap: .4rem; padding: .4rem .75rem; background: rgba(0,0,0,.25); border-radius: 999px; font-size: .82rem; border: 1px solid var(--border); }
.fav-chip img.flag-img { width: 20px; height: 15px; }
.gold-text { color: var(--gold); font-weight: 600; letter-spacing: 2px; font-size: .85rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; margin-bottom: .5rem; }
.prefs-form { display: flex; flex-direction: column; gap: .5rem; }

.view-switcher {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.view-switch-btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(0,0,0,.25);
    text-decoration: none;
    transition: all .2s;
}
.view-switch-btn:hover { color: var(--text); border-color: var(--border-gold); }
.view-switch-btn.active {
    background: rgba(0,230,118,.12);
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 16px rgba(0,230,118,.15);
}

/* ─── CALENDARIO ─── */
.cal-view-tabs { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cal-panel { margin-bottom: 1.25rem; }
.cal-month-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.cal-month-nav a { justify-self: start; }
.cal-month-nav a:last-child { justify-self: end; }
.cal-month-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--gold);
}
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.cal-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
}
.cal-dot.past { background: var(--text-muted); }
.cal-dot.live { background: var(--red); }
.cal-dot.future { background: var(--green); }
.cal-dot.user { background: var(--gold); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .35rem;
}
.cal-grid-head {
    text-align: center;
    font-size: .68rem;
    color: var(--text-muted);
    padding: .35rem 0;
    text-transform: uppercase;
}
.cal-grid-cell {
    aspect-ratio: 1;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.2);
    color: var(--text-muted);
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
}
.cal-grid-cell.empty { border: none; background: transparent; }
.cal-grid-cell.has-games {
    border-color: rgba(0,230,118,.25);
    background: rgba(0,230,118,.06);
    color: var(--text);
    cursor: pointer;
}
.cal-grid-cell.has-games:hover { border-color: var(--green); transform: translateY(-2px); }
.cal-grid-cell.today { box-shadow: 0 0 0 2px var(--gold); }
.cal-grid-cell.selected { background: rgba(212,175,55,.15); border-color: var(--gold); }
.cal-day-num { font-weight: 700; }
.cal-day-count {
    font-size: .62rem;
    background: var(--green);
    color: #000;
    border-radius: 999px;
    padding: 0 .35rem;
    font-weight: 700;
}

.cal-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.cal-day-section { scroll-margin-top: 5rem; }
.cal-day-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}
.cal-day-games { display: flex; flex-direction: column; gap: .65rem; }

.cal-game-card {
    background: rgba(0,0,0,.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
}
.cal-game-card.status-past { border-left: 3px solid var(--text-muted); }
.cal-game-card.status-live { border-left: 3px solid var(--red); background: rgba(255,82,82,.05); }
.cal-game-card.status-future { border-left: 3px solid var(--green); }

.cal-meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: .65rem;
    flex-wrap: wrap;
}
.cal-badge {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: 4px;
    letter-spacing: .5px;
}
.cal-badge.past { background: rgba(255,255,255,.08); color: var(--text-muted); }
.cal-badge.live { background: rgba(255,82,82,.2); color: #ff867c; }
.cal-badge.future { background: rgba(0,230,118,.12); color: var(--green); }

.cal-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
}
.cal-team {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    font-weight: 600;
}
.cal-team.away { flex-direction: row-reverse; text-align: right; }
.cal-score-wrap { text-align: center; min-width: 120px; }
.cal-score-main {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    line-height: 1;
}
.cal-score-main span { opacity: .4; font-size: 1rem; }
.cal-sub-score {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .35rem;
}
.cal-sub-score.user { color: var(--gold); }
.cal-sub-score.predicted { color: var(--green); }
.cal-prob-mini {
    display: flex;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    margin-top: .35rem;
}
.cal-prob-mini span:nth-child(1) { background: var(--green); }
.cal-prob-mini span:nth-child(2) { background: var(--text-muted); }
.cal-prob-mini span:nth-child(3) { background: var(--blue); }

/* ─── RESPONSIVE — MOBILE FIRST (≤900px) ─── */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(280px, 85vw);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }
    .sidebar.open { transform: translateX(0); }

    .main-wrapper { margin-left: 0; }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: var(--touch-min);
        min-height: var(--touch-min);
        padding: 0;
    }

    .topbar {
        padding: .5rem .75rem;
        gap: .5rem;
    }
    .topbar-search { display: none; }
    .topbar-greet { display: none; }
    .live-pill { font-size: .65rem; padding: .25rem .55rem; }

    .bottom-nav { display: flex; }

    .page-content {
        padding: .85rem .85rem calc(var(--bottom-nav-h) + var(--safe-bottom) + .75rem);
    }

    .page-title { font-size: 1.55rem; letter-spacing: 1px; }
    .page-sub { font-size: .8rem; }
    .page-hero { margin-bottom: 1rem; }
    .flex-between { flex-direction: column; align-items: stretch; }

    .panel { padding: .9rem; margin-bottom: .85rem; border-radius: var(--radius); }
    .panel-head h2 { font-size: .92rem; }

    .btn {
        min-height: var(--touch-min);
        padding: .7rem 1rem;
        font-size: .88rem;
    }
    .btn-sm { min-height: 38px; padding: .5rem .75rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; }

    .dash-layout, .two-col, .compare-charts, .detail-grid,
    .champion-panel-layout, .mizona-grid {
        grid-template-columns: 1fr;
    }
    .mizona-grid .panel[style*="span 2"] { grid-column: span 1; }
    .champion-trophy-visual { order: -1; }
    .trophy-hero-img { width: 100px; }

    .teams-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }
    .team-card-modern { padding: .85rem; }
    .team-card-modern .name { font-size: .85rem; }
    .rating-badge { font-size: 1.15rem; top: .65rem; right: .65rem; }

    .search-modern {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        margin-top: .65rem;
    }

    .prob-bar-row {
        grid-template-columns: 28px 1fr auto;
        gap: .5rem;
    }
    .prob-bar-name { font-size: .82rem; }

    .match-row {
        grid-template-columns: 1fr auto 1fr;
        gap: .35rem;
        padding: .75rem .65rem;
        font-size: .78rem;
    }
    .match-team span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 11ch;
    }
    .match-score { font-size: 1.05rem; }

    .upcoming-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: .35rem;
    }
    .upcoming-team, .upcoming-team.right {
        justify-content: center;
        text-align: center;
    }

    .duel-vs { gap: .35rem; }
    .duel-team .name { font-size: .78rem; }

    .compare-select-wrap { min-width: 0; width: 100%; }
    .comparator-selects { flex-direction: column; align-items: stretch; }
    .compare-team img.flag-img { margin-left: auto; margin-right: auto; }

    .groups-grid { grid-template-columns: 1fr; }
    .group-picks-grid { grid-template-columns: 1fr; }

    .elim-row { grid-template-columns: 90px 1fr 32px; font-size: .75rem; }
    .elim-bar-row { grid-template-columns: 100px 1fr 32px; }

    .cal-grid-cell { min-height: 44px; font-size: .78rem; }
    .cal-month-title { font-size: 1.25rem; }
    .cal-month-nav { grid-template-columns: 1fr; text-align: center; gap: .5rem; }
    .cal-month-nav a { justify-self: center; width: 100%; max-width: 220px; }
    .cal-legend { gap: .5rem; font-size: .68rem; }
    .cal-teams { grid-template-columns: 1fr; text-align: center; gap: .5rem; }
    .cal-team, .cal-team.away {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
    .cal-team span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 14ch;
    }
    .cal-score-wrap { min-width: 0; }

    .view-switch-btn { min-height: var(--touch-min); font-size: .85rem; }

    .tab, .detail-tab {
        min-height: 38px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .pred-row { grid-template-columns: 1fr; text-align: center; gap: .5rem; }
    .pred-game input[type=number],
    .pred-game-full input[type=number] {
        width: 52px;
        min-height: var(--touch-min);
        font-size: 16px;
    }

    .my-score-grid { grid-template-columns: repeat(2, 1fr); }

    .modal-modern { align-items: flex-end; padding: 0; }
    .modal-panel {
        max-height: 92dvh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-width: 100%;
    }
    .team-jersey-img { width: 72px; max-height: 92px; }
    .team-hero { flex-wrap: wrap; }
    .team-hero-jersey { margin-left: 0; margin-top: .5rem; width: 100%; justify-content: center; }
    .team-hero-info h2 { font-size: 1.5rem; }

    .auth-screen { padding: 1rem; padding-bottom: calc(1rem + var(--safe-bottom)); }
    .auth-card-glass { padding: 1.25rem; }
    .input-group input { font-size: 16px; }

    .sim-champion-big h2 { font-size: 1.75rem; }
    .bracket-modern { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .mc-row { grid-template-columns: 24px 1fr 40px; gap: .4rem; font-size: .75rem; }

    .sidebar-link { padding: .75rem 1rem; }
    .mini-table, .standings-table, .phase-table, .leaderboard-table { font-size: .72rem; }
    .mini-table th, .mini-table td,
    .standings-table th, .standings-table td {
        padding: .45rem .4rem;
    }
}

@media (max-width: 380px) {
    .teams-grid-modern { grid-template-columns: 1fr; }
    .bottom-nav-label { font-size: .66rem; }
    .bottom-nav-icon { font-size: 1.25rem; }
    .match-team span { max-width: 9ch; }
}

/* Desktop enhancements */
@media (min-width: 901px) {
    .bottom-nav { display: none !important; }
    .sidebar-toggle { display: none; }
    .sidebar-backdrop { display: none !important; }
    .page-content { padding-bottom: 1.5rem; }
}

@media (max-width: 1024px) {
    .dash-layout, .two-col, .compare-charts, .detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   PENALES MUNDIAL 2026
   ═══════════════════════════════════════════════════ */
.penales-app { max-width: 520px; margin: 0 auto; }

.pen-screen { animation: penFadeIn .35s ease; }
@keyframes penFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Intro */
.pen-screen-intro {
    position: relative;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    overflow: hidden;
}
.pen-intro-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 30%, rgba(0,230,118,.12), transparent 55%),
                radial-gradient(circle at 50% 80%, rgba(212,175,55,.1), transparent 50%);
    pointer-events: none;
}
.pen-intro-tag {
    position: relative;
    font-size: .72rem;
    letter-spacing: .25em;
    color: var(--green);
    margin-bottom: .5rem;
}
.pen-intro-title {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 5rem);
    line-height: .95;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212,175,55,.35);
    margin-bottom: .75rem;
}
.pen-intro-sub {
    position: relative;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.pen-intro-guest {
    font-size: .82rem;
    color: var(--green);
    margin: -.5rem 0 1.25rem;
}
.sim-disclaimer {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .35rem;
    opacity: .9;
}
.sim-disclaimer-inline {
    margin: .5rem 0 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Team pick */
.pen-teams-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.pen-teams-head h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
}
.pen-duel-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
}
.pen-duel-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: .4rem;
    text-align: center;
}
.pen-duel-pick {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    background: rgba(0,0,0,.2);
    transition: border-color .2s;
    font-size: .82rem;
    text-align: center;
}
.pen-duel-empty { color: var(--text-muted); font-size: .78rem; }
.pen-duel-vs {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
}
.pen-matchup {
    margin-bottom: .85rem;
    padding: .65rem .8rem;
    border-radius: var(--radius);
    background: rgba(0,0,0,.28);
    border: 1px solid var(--border);
}
.pen-matchup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}
.pen-matchup-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}
.pen-matchup-level {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .02em;
}
.pen-matchup-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    margin-bottom: .4rem;
}
.pen-matchup-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .25s ease;
}
.pen-matchup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .72rem;
    color: var(--text-muted);
}
.pen-matchup-meta strong { color: var(--text); }
.pen-matchup-bonus { color: var(--gold); font-weight: 700; }
.pen-matchup.challenge-low .pen-matchup-level { color: #66bb6a; }
.pen-matchup.challenge-low .pen-matchup-bar span { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.pen-matchup.challenge-even .pen-matchup-level { color: #82b1ff; }
.pen-matchup.challenge-even .pen-matchup-bar span { background: linear-gradient(90deg, #1565c0, #82b1ff); }
.pen-matchup.challenge-high .pen-matchup-level { color: var(--gold); }
.pen-matchup.challenge-high .pen-matchup-bar span { background: linear-gradient(90deg, #b8860b, #d4af37); }
.pen-matchup.challenge-extreme .pen-matchup-level { color: #ff6e6e; }
.pen-matchup.challenge-extreme .pen-matchup-bar span { background: linear-gradient(90deg, #c62828, #ff6e6e); }
.pen-reward-bonus {
    color: var(--gold);
    font-weight: 700;
    font-size: .85rem;
    margin-top: .15rem;
}
.pen-team-search {
    width: 100%;
    padding: .7rem .9rem;
    margin-bottom: .75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0,0,0,.3);
    color: var(--text);
    font-size: 16px;
}
.pen-team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .45rem;
    max-height: 38vh;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: .2rem;
}
.pen-team-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .5rem .35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text);
    font-size: .72rem;
    cursor: pointer;
    min-height: var(--touch-min);
}
.pen-team-chip.selected {
    border-color: var(--green);
    background: rgba(0,230,118,.08);
    box-shadow: 0 0 0 1px rgba(0,230,118,.2);
}

/* Game screen */
.pen-screen-game { max-width: 100%; }
.pen-game-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .65rem;
}
.pen-btn-quit { flex-shrink: 0; }
.pen-scoreboard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 0;
}
.pen-sb-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .72rem;
    min-width: 0;
}
.pen-sb-team span {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pen-sb-team strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gold);
    line-height: 1;
}
.pen-sb-sep { color: var(--text-muted); font-size: 1.2rem; padding-top: .5rem; }
.pen-dots { display: flex; gap: 3px; margin-top: .15rem; }
.pen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.pen-dot.goal { background: var(--green); box-shadow: 0 0 6px rgba(0,230,118,.5); }
.pen-dot.miss { background: var(--red); opacity: .7; }
.pen-dot.post { background: var(--gold); box-shadow: 0 0 6px rgba(212,175,55,.45); }
.pen-dot.pending { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.pen-flash.post { color: var(--gold); }
.pen-end-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pen-round-badge {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(212,175,55,.12);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    white-space: nowrap;
}

.pen-canvas-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 12px 48px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.08),
        0 0 60px rgba(0,230,118,.06);
    background: #020810;
}
#pen-canvas {
    display: block;
    width: 100%;
    touch-action: none;
    cursor: crosshair;
}

.pen-sound-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.5);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform .15s, background .2s, border-color .2s;
}
.pen-sound-toggle:hover { transform: scale(1.08); background: rgba(0,0,0,.65); }
.pen-sound-toggle:active { transform: scale(.94); }
.pen-sound-toggle.muted { opacity: .7; border-color: rgba(255,110,110,.5); }

.pen-flash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 12vw, 4rem);
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.8);
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
    z-index: 10;
}
.pen-flash.visible { opacity: 1; }
.pen-flash.goal { color: var(--green); }
.pen-flash.save { color: var(--blue); }
.pen-flash.miss { color: var(--red); }

.pen-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.12);
    font-size: .75rem;
    color: var(--text);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}
.pen-hint.visible { opacity: 1; }

.pen-power-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .65rem;
    font-size: .75rem;
    color: var(--text-muted);
}
.pen-power-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.pen-power-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-green);
    border-radius: 999px;
    transition: width .05s linear;
}
.pen-status {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .5rem;
    min-height: 1.25rem;
}

/* Match end */
.pen-screen-end { text-align: center; padding: 2rem 1.25rem; }
.pen-end-inner.win .pen-end-tag { color: var(--green); }
.pen-end-inner.lose .pen-end-tag { color: var(--red); }
.pen-end-tag {
    font-size: .72rem;
    letter-spacing: .2em;
    margin-bottom: .35rem;
}
.pen-end-inner h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: .5rem;
}
.pen-end-score {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--text);
    margin: .75rem 0;
}
.pen-end-score span { color: var(--text-muted); font-size: 2rem; }
.pen-end-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.pen-height-fill { background: linear-gradient(135deg, #448aff, #82b1ff); }
.pen-height-wrap span { color: #82b1ff; }
.pen-quick-row { margin-bottom: .65rem; text-align: center; }
.pen-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 40px rgba(212,175,55,.6);
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity .15s, transform .15s;
}
.pen-countdown.show { opacity: 1; transform: scale(1.05); }
.pen-canvas-wrap.slowmo { filter: saturate(1.15) contrast(1.05); }
.pen-end-kicks {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: .8rem;
    color: var(--text-muted);
}
.pen-end-kicks .pen-dots { justify-content: center; }

@media (max-width: 900px) {
    .history-shell { grid-template-columns: 1fr; }
    .history-picker { position: static; }
    .history-card-hero { grid-template-columns: 1fr; text-align: center; }
    .history-flag { display: flex; justify-content: center; }
    .history-trophy { width: 100%; }
    .history-metrics { grid-template-columns: repeat(2, 1fr); }
    .history-grid { grid-template-columns: 1fr; }
    .history-wide { grid-column: auto; }
    .golito-hero { align-items: flex-start; }
    .golito-layout { grid-template-columns: 1fr; }
    .golito-suggestions { position: static; }
    .golito-messages { height: 58vh; min-height: 360px; }
    .golito-form { flex-direction: column; }
    .golito-bubble { max-width: 94%; }
    .golito-widget {
        right: auto;
        left: 12px;
        bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px);
    }
    .golito-widget .golito-chat {
        width: calc(100vw - 24px);
        height: min(620px, calc(100vh - var(--bottom-nav-h) - 95px));
        bottom: 74px;
        left: 0;
        right: auto;
        transform-origin: bottom left;
    }
    .golito-widget .golito-form {
        flex-direction: row;
    }
    .golito-launcher {
        width: 52px;
        height: 52px;
    }
    .golito-launcher-icon {
        width: 42px;
        height: 42px;
    }
    .pen-duel-board { grid-template-columns: 1fr; }
    .pen-duel-vs { text-align: center; }
    .pen-scoreboard { order: 3; width: 100%; }
    .pen-round-badge { margin-left: auto; }
    .pen-difficulty-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-hero { flex-direction: column; gap: 1rem; text-align: center; }
    .promo-penalty-inner { flex-direction: column; }
}

/* ─── PROMOCIONES ─── */
.promo-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1rem;
}
.promo-hero-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-shrink: 0;
}
.promo-penalty-banner { margin-bottom: 1rem; }
.promo-penalty-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.promo-difficulty-list {
    list-style: none;
    display: grid;
    gap: .35rem;
    font-size: .9rem;
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.promo-card {
    background: var(--bg-panel-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.promo-card-img, .promo-card-placeholder {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.promo-card-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.promo-card-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.promo-cat {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
}
.promo-badge {
    font-size: .7rem;
    background: rgba(0,230,118,.12);
    color: var(--green);
    padding: .15rem .45rem;
    border-radius: 999px;
}
.promo-card h3 { font-size: 1.05rem; }
.promo-sub { color: var(--text-muted); font-size: .88rem; }
.promo-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.45; flex: 1; }
.rewards-list { display: grid; gap: .65rem; }
.reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--bg-panel-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.reward-meta { display: block; font-size: .78rem; color: var(--text-muted); }
.reward-discount {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--green);
    letter-spacing: .04em;
}

/* ─── DIFICULTAD PENALES ─── */
.diff-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.diff-facil { background: rgba(0,230,118,.15); color: var(--green); }
.diff-normal { background: rgba(68,138,255,.15); color: var(--blue); }
.diff-dificil { background: rgba(255,145,0,.15); color: #ff9100; }
.diff-elite { background: rgba(255,82,82,.15); color: var(--red); }
.pen-intro-reward { margin: .75rem 0 1.25rem; color: var(--text-muted); }
.pen-link-promos { margin-top: .75rem; display: inline-block; }
.pen-difficulty-note { color: var(--text-muted); margin-bottom: 1rem; font-size: .9rem; }
.pen-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
.pen-diff-card {
    background: var(--bg-panel-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: border-color .2s, transform .15s;
}
.pen-diff-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}
.pen-diff-card strong { font-size: .95rem; }
.pen-diff-range { font-size: .8rem; color: var(--gold); }
.pen-selected-diff { margin-left: auto; }
.pen-end-diff { margin-bottom: .5rem; }
.pen-reward-box {
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-gold);
    background: rgba(212,175,55,.06);
}
.pen-reward-box.win { border-color: rgba(0,230,118,.35); background: rgba(0,230,118,.08); }
.pen-reward-box.lose { border-color: rgba(255,82,82,.25); background: rgba(255,82,82,.06); }
.pen-reward-box.pen-reward-error { border-color: rgba(255,145,0,.35); }
.pen-reward-tag { font-size: .75rem; letter-spacing: .08em; color: var(--green); margin-bottom: .35rem; }
.pen-reward-pct {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--green);
    line-height: 1;
    margin: .25rem 0;
}
.pen-reward-code {
    margin: .75rem 0;
    padding: .65rem .85rem;
    background: rgba(0,0,0,.25);
    border-radius: var(--radius);
}
.pen-reward-code code { font-size: 1.1rem; color: var(--gold-light); letter-spacing: .06em; }
.pen-reward-legal {
    font-size: .72rem;
    color: var(--text-muted);
    margin: 0 0 .65rem;
    line-height: 1.4;
}
.pen-reward-legal a { color: var(--gold); }

/* ─── SUPERADMIN ─── */
.admin-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.admin-tab {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: .55rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
}
.admin-tab.active {
    border-color: var(--border-gold);
    color: var(--gold);
    background: rgba(212,175,55,.08);
}
.admin-promo-list { display: grid; gap: .65rem; }
.admin-promo-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-panel-hover);
    flex-wrap: wrap;
}
.admin-promo-row.inactive { opacity: .65; }
.admin-promo-main p { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }
.admin-promo-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.status-pill {
    font-size: .72rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.status-pill.on { background: rgba(0,230,118,.15); color: var(--green); }
.status-pill.off { background: rgba(255,82,82,.12); color: var(--red); }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.admin-table th, .admin-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.admin-table th { color: var(--text-muted); font-weight: 600; }
.promo-dialog {
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    color: var(--text);
    padding: 0;
    max-width: 640px;
    width: calc(100% - 2rem);
}
.promo-dialog::backdrop { background: rgba(0,0,0,.65); }
.promo-dialog form { padding: 1.25rem; }
.promo-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.form-grid input, .form-grid select, .form-grid textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: .55rem .65rem;
    font-family: inherit;
}
.form-grid .span-2 { grid-column: span 2; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.promo-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}
.admin-reward-filters {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.admin-show-all { font-size: .82rem; color: var(--text-muted); }
.admin-rewards-summary { margin-bottom: 1rem; }
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .65rem;
}
.admin-summary-card {
    background: var(--bg-panel-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem;
    text-align: center;
}
.admin-summary-card .num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}
.admin-summary-card .lbl { font-size: .75rem; color: var(--text-muted); }
.admin-summary-card.pending .num { color: #ff9100; }
.admin-summary-card.contacted .num { color: var(--blue); }
.admin-summary-card.closed .num { color: var(--green); }
.admin-table-scroll { overflow-x: auto; }
.admin-table-rewards { min-width: 980px; }
.admin-table-rewards .follow-notes-input {
    min-width: 160px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: .4rem .55rem;
    font-family: inherit;
    font-size: .82rem;
}
.admin-table-rewards .follow-status-select {
    min-width: 120px;
    font-size: .82rem;
    padding: .35rem .5rem;
}
@media (max-width: 900px) {
    .admin-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .admin-hero-actions { width: 100%; display: flex; gap: .5rem; flex-wrap: wrap; }
}

.body-admin .page-content { max-width: 1200px; }

/* ─── PROMO TICKER (barra rotatoria) ─── */
.promo-ticker-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 42px;
    padding: .45rem .85rem;
    background: linear-gradient(90deg, rgba(212,175,55,.14), rgba(0,230,118,.1), rgba(212,175,55,.14));
    border-bottom: 1px solid rgba(212,175,55,.35);
    overflow: hidden;
}
.promo-ticker-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
    animation: promoShine 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes promoShine {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}
.promo-ticker-badge {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: #0a0e14;
    background: var(--gradient-gold);
    padding: .25rem .5rem;
    border-radius: 999px;
    animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.45); }
    50% { box-shadow: 0 0 0 6px rgba(212,175,55,0); }
}
.promo-ticker-viewport {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.promo-ticker-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    animation: promoTicker 90s linear infinite;
}
.promo-ticker-track:hover { animation-play-state: paused; }
@keyframes promoTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.promo-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.promo-ticker-item:hover { color: var(--gold-light); }
.promo-ticker-icon { font-size: 1rem; }
.promo-ticker-cta {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    padding: .35rem .65rem;
    border: 1px solid rgba(0,230,118,.35);
    border-radius: 999px;
    background: rgba(0,230,118,.08);
    transition: all .2s;
}
.promo-ticker-cta:hover {
    background: rgba(0,230,118,.18);
    color: var(--green);
}

/* ─── SIDEBAR PROMO ─── */
.sidebar-link-promo {
    background: rgba(212,175,55,.06);
    border: 1px solid rgba(212,175,55,.18);
}
.sidebar-link-promo:hover,
.sidebar-link-promo.active {
    background: rgba(212,175,55,.12);
    border-color: rgba(212,175,55,.35);
}
.sidebar-link-label { flex: 1; }
.sidebar-nav-badge {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0a0e14;
    background: var(--gold);
    padding: .12rem .4rem;
    border-radius: 999px;
    line-height: 1.2;
}
.sidebar-link.active .sidebar-nav-badge {
    background: var(--green);
    color: #0a0e14;
}
.sidebar-promo-card {
    display: block;
    position: relative;
    margin: .65rem .75rem .25rem;
    padding: .85rem .9rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(145deg, rgba(212,175,55,.16), rgba(0,230,118,.1));
    border: 1px solid rgba(212,175,55,.35);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.sidebar-promo-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--text);
}
.sidebar-promo-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--gold-light);
    margin-bottom: .2rem;
}
.sidebar-promo-card span {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.sidebar-promo-card em {
    display: block;
    margin-top: .45rem;
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
}
.sidebar-promo-pulse {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,230,118,.15);
    animation: promoPulse 2.5s ease-in-out infinite;
}

/* ─── PROMO SPOTLIGHT ─── */
.promo-spotlight {
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}
.promo-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(0,230,118,.12), transparent 45%),
                radial-gradient(circle at 10% 80%, rgba(212,175,55,.1), transparent 40%);
    pointer-events: none;
}
.promo-spotlight-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: .25rem 0;
}
.promo-spotlight-tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--green);
    margin-bottom: .35rem;
}
.promo-spotlight h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: .5rem;
}
.promo-spotlight-pct {
    color: var(--green);
    font-size: 1.15em;
}
.promo-spotlight-desc {
    color: var(--text-muted);
    font-size: .9rem;
    max-width: 520px;
    margin-bottom: .75rem;
}
.promo-spotlight-levels {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.promo-spotlight-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 180px;
}
.promo-spotlight-compact .promo-spotlight-inner { padding: 0; }
.promo-landing-card {
    border-color: rgba(212,175,55,.35) !important;
    box-shadow: 0 0 0 1px rgba(212,175,55,.08), 0 8px 24px rgba(0,0,0,.25);
}

/* ─── NI360 FEATURED ─── */
.promo-featured-ni360 {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.75rem;
}
.promo-featured-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(68,138,255,.12), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(0,230,118,.1), transparent 40%);
    pointer-events: none;
}
.promo-featured-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr auto;
    gap: 1.5rem;
    align-items: start;
}
.promo-featured-with-flyer {
    grid-template-columns: minmax(240px, 320px) 1fr minmax(180px, 200px);
}
.promo-featured-visual {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.promo-flyer-link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(68,138,255,.3);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    transition: transform .2s, box-shadow .2s;
    background: var(--bg-panel);
}
.promo-flyer-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.promo-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background: var(--bg-panel);
}
.promo-featured-modules {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .85rem;
}
.promo-featured-modules span {
    font-size: .68rem;
    font-weight: 600;
    padding: .22rem .5rem;
    border-radius: 999px;
    background: rgba(68,138,255,.12);
    border: 1px solid rgba(68,138,255,.22);
    color: #82b1ff;
}
.promo-featured-contact {
    margin-top: .75rem;
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.promo-featured-contact a { color: var(--green); }
.promo-featured-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(68,138,255,.15), rgba(0,230,118,.08));
    border: 1px solid rgba(68,138,255,.25);
}
.promo-featured-logo {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: .08em;
    color: var(--gold-light);
    line-height: 1;
}
.promo-featured-domain {
    margin-top: .45rem;
    font-size: .62rem;
    color: var(--text-muted);
    line-height: 1.3;
    word-break: break-all;
}
.promo-featured-copy { min-width: 0; }
.promo-featured-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: .03em;
    margin-bottom: .65rem;
    line-height: 1.05;
}
.promo-featured-lead {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.55;
    margin-bottom: .85rem;
}
.promo-featured-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
    margin-bottom: .85rem;
    font-size: .82rem;
    color: var(--text);
}
.promo-featured-list li::before {
    content: '✓ ';
    color: var(--green);
}
.promo-featured-discount {
    font-size: .88rem;
    color: var(--gold-light);
    padding: .55rem .75rem;
    border-radius: var(--radius);
    background: rgba(212,175,55,.08);
    border: 1px solid rgba(212,175,55,.2);
}
.promo-featured-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 200px;
}
.promo-featured-link {
    font-size: .75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: .25rem;
}
.promo-card-featured {
    border-color: rgba(68,138,255,.35) !important;
    box-shadow: 0 0 0 1px rgba(68,138,255,.08), 0 10px 28px rgba(0,0,0,.28);
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 200px 1fr;
}
.promo-card-featured .promo-card-img,
.promo-card-featured .promo-card-placeholder { height: 100%; min-height: 180px; }
.promo-card-ni360 {
    background: linear-gradient(145deg, rgba(68,138,255,.18), rgba(0,230,118,.1)) !important;
    font-family: var(--font-display);
}
.promo-card-fashion {
    background: linear-gradient(145deg, rgba(212,175,55,.2), rgba(120,80,20,.15)) !important;
    font-family: var(--font-display);
}
.promo-logo-text.fashion { color: #f0d060; }
.promo-card-fashion-wrap {
    border-color: rgba(212,175,55,.4) !important;
}
.promo-featured-fashion {
    border-color: rgba(212,175,55,.35);
    background: linear-gradient(145deg, rgba(30,24,12,.95), rgba(18,24,32,.98));
}
.promo-featured-glow-fashion {
    background:
        radial-gradient(circle at 20% 30%, rgba(212,175,55,.12), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(240,208,96,.08), transparent 40%);
}
.promo-featured-brand-fashion {
    background: linear-gradient(145deg, rgba(212,175,55,.12), rgba(80,60,20,.15));
    border-color: rgba(212,175,55,.3);
}
.promo-featured-modules-fashion span {
    background: rgba(212,175,55,.12);
    border-color: rgba(212,175,55,.25);
    color: var(--gold-light);
}
.promo-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .06em;
    color: var(--gold);
    margin-bottom: .25rem;
}
.panel-head-inline {
    margin: 1.25rem 0 .65rem;
    padding: 0 .25rem;
}
.promo-featured-ni360 + .panel-head-inline { margin-top: 1.5rem; }
.promo-featured-fashion { margin-bottom: 1rem; }

/* ─── PRODUCTOS NI360 GRID ─── */
.promo-products-section { margin-bottom: 1.25rem; }
.promo-products-grid {
    display: grid;
    gap: 1rem;
}
.promo-product-card {
    padding: 1.25rem;
    overflow: hidden;
    position: relative;
}
.promo-product-body { min-width: 0; }
.promo-product-inner {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr auto;
    gap: 1.25rem;
    align-items: start;
}
.promo-product-flyer {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .2s;
    background: var(--bg-panel);
}
.promo-product-flyer:hover { transform: translateY(-2px); }
.promo-product-flyer img { width: 100%; height: auto; display: block; background: var(--bg-panel); }
.promo-product-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    gap: .5rem;
}
.promo-product-icon { font-size: 2.5rem; line-height: 1; }
.promo-product-logo {
    font-family: var(--font-display);
    font-size: .95rem;
    letter-spacing: .05em;
    color: var(--gold-light);
    line-height: 1.2;
}
.promo-product-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: .03em;
    margin-bottom: .5rem;
    line-height: 1.1;
}
.promo-product-lead {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: .65rem;
}
.promo-product-bullets {
    list-style: none;
    font-size: .8rem;
    color: var(--text);
    display: grid;
    gap: .25rem;
}
.promo-product-bullets li::before { content: '✓ '; color: var(--green); }
.promo-product-actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 150px;
}
.promo-theme-fashion { border-color: rgba(212,175,55,.3); }
.promo-theme-market { border-color: rgba(0,230,118,.25); background: rgba(0,230,118,.04); }
.promo-theme-market .promo-product-icon-wrap { border-color: rgba(0,230,118,.25); background: rgba(0,230,118,.06); }
.promo-theme-botanica { border-color: rgba(129,199,132,.3); background: rgba(76,175,80,.05); }
.promo-theme-botanica .promo-product-icon-wrap { border-color: rgba(129,199,132,.3); background: rgba(76,175,80,.08); }
.promo-theme-sinfila { border-color: rgba(255,82,82,.28); background: rgba(255,82,82,.04); }
.promo-theme-sinfila .promo-product-icon-wrap { border-color: rgba(255,82,82,.25); background: rgba(255,82,82,.07); }
.promo-logo-text.sinfila {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: .08em;
    color: #ff8a80;
}
.promo-theme-ella { border-color: rgba(186,104,200,.35); background: rgba(186,104,200,.06); }
.promo-theme-ella .promo-product-icon-wrap { border-color: rgba(186,104,200,.3); background: rgba(186,104,200,.1); }
.promo-theme-asistencia { border-color: rgba(68,138,255,.3); background: rgba(68,138,255,.05); }
.promo-theme-asistencia .promo-product-icon-wrap { border-color: rgba(68,138,255,.28); background: rgba(68,138,255,.08); }
.promo-theme-taller { border-color: rgba(255,145,0,.28); background: rgba(255,145,0,.04); }
.promo-theme-taller .promo-product-icon-wrap { border-color: rgba(255,145,0,.25); background: rgba(255,145,0,.07); }
.promo-theme-dental { border-color: rgba(38,198,218,.3); background: rgba(38,198,218,.05); }
.promo-theme-dental .promo-product-icon-wrap { border-color: rgba(38,198,218,.28); background: rgba(38,198,218,.08); }
.promo-theme-colectivos { border-color: rgba(255,183,77,.28); background: rgba(255,183,77,.04); }
.promo-theme-colectivos .promo-product-icon-wrap { border-color: rgba(255,183,77,.25); background: rgba(255,183,77,.07); }
.promo-theme-condogest { border-color: rgba(68,138,255,.32); background: rgba(68,138,255,.05); }
.promo-theme-condogest .promo-product-icon-wrap { border-color: rgba(68,138,255,.28); background: rgba(68,138,255,.08); }
.promo-theme-catalog { border-color: rgba(224,64,251,.28); background: rgba(224,64,251,.04); }
.promo-theme-catalog .promo-product-icon-wrap { border-color: rgba(224,64,251,.25); background: rgba(224,64,251,.07); }
.promo-theme-mipunto { border-color: rgba(124,77,255,.3); background: rgba(124,77,255,.05); }
.promo-theme-mipunto .promo-product-icon-wrap { border-color: rgba(124,77,255,.28); background: rgba(124,77,255,.08); }
.promo-theme-cafe { border-color: rgba(244,143,177,.3); background: rgba(244,143,177,.05); }
.promo-theme-cafe .promo-product-icon-wrap { border-color: rgba(244,143,177,.28); background: rgba(244,143,177,.08); }
.promo-logo-text.asistencia { font-size: 2rem; }
.promo-logo-text.taller { font-size: 2rem; }
.promo-logo-text.dental { font-size: 2rem; }
.promo-logo-text.colectivos { font-size: 2rem; }
.promo-logo-text.condogest { font-size: 2rem; }
.promo-logo-text.catalog { font-size: 2rem; }
.promo-logo-text.mipunto { font-size: 2rem; }
.promo-logo-text.cafe { font-size: 2rem; }
.promo-logo-text.ella {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: #e1bee7;
}
.promo-logo-text.market { font-size: 2rem; }
.promo-logo-text.botanica { font-size: 2rem; }

.promo-logo-text {
    font-size: 2rem;
    letter-spacing: .1em;
    color: var(--gold-light);
}
.promo-badge-hot {
    background: rgba(255,145,0,.15) !important;
    color: #ff9100 !important;
}
.promo-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .25rem;
}

/* ─── PROYECTOS DIGITALES (promociones) ─── */
.promo-proyectos {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1.75rem;
}
.promo-proyectos-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(212,175,55,.14), transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(0,230,118,.1), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(68,138,255,.06), transparent 55%);
    pointer-events: none;
}
.promo-proyectos-inner { position: relative; }
.promo-proyectos-head {
    max-width: 720px;
    margin-bottom: 1.35rem;
}
.promo-proyectos-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: .04em;
    line-height: 1.05;
    margin-bottom: .65rem;
}
.promo-proyectos-accent {
    color: var(--green);
    text-shadow: 0 0 24px rgba(0,230,118,.25);
}
.promo-proyectos-lead {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
}
.promo-proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.35rem;
}
.promo-proyecto-card {
    position: relative;
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.promo-proyecto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.promo-proyecto-photo {
    margin: 0;
    height: 132px;
    overflow: hidden;
    position: relative;
    background: #0a1018;
}
.promo-proyecto-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,12,18,.05) 0%, rgba(8,12,18,.72) 100%);
    pointer-events: none;
}
.promo-proyecto-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.88) contrast(1.02);
    transition: transform .35s ease;
}
.promo-proyecto-card:hover .promo-proyecto-photo img {
    transform: scale(1.04);
}
.promo-proyecto-body {
    padding: 1rem 1.15rem 1.05rem;
}
.promo-proyecto-hook {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: .35rem;
}
.promo-proyecto-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .03em;
    margin-bottom: .45rem;
    line-height: 1.15;
}
.promo-proyecto-desc {
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.55;
    margin-bottom: .65rem;
}
.promo-proyecto-tags { margin-bottom: .55rem; }
.promo-proyecto-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}
.promo-proyecto-link:hover { color: var(--gold-light); }
.promo-proyecto-ready {
    border-color: rgba(212,175,55,.28);
    background: linear-gradient(145deg, rgba(212,175,55,.06), rgba(255,255,255,.02));
}
.promo-proyecto-ready:hover { border-color: rgba(212,175,55,.45); }
.promo-proyecto-custom {
    border-color: rgba(68,138,255,.28);
    background: linear-gradient(145deg, rgba(68,138,255,.08), rgba(255,255,255,.02));
}
.promo-proyecto-custom:hover { border-color: rgba(68,138,255,.45); }
.promo-proyecto-custom .promo-proyecto-tags span {
    background: rgba(68,138,255,.12);
    border-color: rgba(68,138,255,.22);
    color: #82b1ff;
}
.promo-proyecto-upgrade {
    border-color: rgba(0,230,118,.22);
    background: linear-gradient(145deg, rgba(0,230,118,.06), rgba(255,255,255,.02));
}
.promo-proyecto-upgrade:hover { border-color: rgba(0,230,118,.4); }
.promo-proyecto-upgrade .promo-proyecto-tags span {
    background: rgba(0,230,118,.1);
    border-color: rgba(0,230,118,.22);
    color: #69f0ae;
}
.promo-proyecto-unique {
    border-color: rgba(186,104,200,.3);
    background: linear-gradient(145deg, rgba(186,104,200,.08), rgba(255,255,255,.02));
}
.promo-proyecto-unique:hover { border-color: rgba(186,104,200,.5); }
.promo-proyecto-unique .promo-proyecto-tags span {
    background: rgba(186,104,200,.12);
    border-color: rgba(186,104,200,.25);
    color: #e1bee7;
}
.promo-audience {
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212,175,55,.2);
    background: rgba(0,0,0,.18);
    margin-bottom: 1.15rem;
}
.promo-audience-head h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}
.promo-audience-head p {
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.5;
    margin-bottom: .85rem;
}
.promo-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}
.promo-audience-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .55rem .65rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.promo-audience-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.promo-audience-item strong {
    display: block;
    font-size: .82rem;
    margin-bottom: .12rem;
}
.promo-audience-item span {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.promo-proyectos-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(0,230,118,.08), rgba(212,175,55,.08));
    border: 1px solid rgba(0,230,118,.2);
}
.promo-proyectos-cta-tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .35rem;
}
.promo-proyectos-cta-copy {
    flex: 1;
    min-width: 220px;
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.promo-proyectos-cta-copy strong { color: var(--text); }
.promo-proyectos-cta-actions {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex-shrink: 0;
}

/* ─── PROMOCIONES RESPONSIVE ─── */
.body-promociones .page-content { overflow-x: clip; }
.body-promociones .promo-proyectos,
.body-promociones .promo-audience,
.body-promociones .promo-proyectos-inner {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .promo-featured-inner,
    .promo-featured-with-flyer {
        grid-template-columns: minmax(0, 260px) 1fr;
    }
    .promo-featured-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }
    .promo-product-inner {
        grid-template-columns: minmax(0, 180px) 1fr;
    }
    .promo-product-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .promo-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .promo-hero-actions { width: 100%; }
    .promo-hero-actions .btn { width: 100%; justify-content: center; }

    .promo-proyectos { padding: 1rem; }
    .promo-proyectos-grid { grid-template-columns: 1fr; }
    .promo-audience-grid { grid-template-columns: 1fr; gap: .65rem; }
    .promo-audience-item {
        padding: .75rem .85rem;
    }
    .promo-audience-item strong { font-size: .92rem; }
    .promo-audience-item span { font-size: .84rem; line-height: 1.45; }
    .promo-audience-head p { font-size: .92rem; }
    .promo-proyecto-desc { font-size: .92rem; }
    .promo-proyectos-lead { font-size: 1rem; }
    .promo-proyectos-cta { flex-direction: column; align-items: stretch; }
    .promo-proyectos-cta-actions { width: 100%; }
    .promo-proyectos-cta-actions .btn { width: 100%; justify-content: center; }

    .promo-featured-ni360 { padding: 1rem; }
    .promo-featured-inner,
    .promo-featured-with-flyer { grid-template-columns: 1fr; gap: 1rem; }
    .promo-featured-visual { max-width: 100%; }
    .promo-featured-brand {
        min-height: auto;
        flex-direction: row;
        gap: .75rem;
        text-align: left;
        padding: .75rem 1rem;
    }
    .promo-featured-logo { font-size: 1.6rem; }
    .promo-featured-list { grid-template-columns: 1fr; }
    .promo-featured-contact { font-size: .78rem; word-break: break-word; }
    .promo-featured-actions {
        grid-column: auto;
        flex-direction: column;
        min-width: 0;
        width: 100%;
    }
    .promo-featured-actions .btn { width: 100%; justify-content: center; text-align: center; }

    .promo-products-section .panel-head-inline { text-align: left; }
    .promo-section-title { font-size: clamp(1rem, 4vw, 1.25rem); }
    .promo-product-card { padding: 1rem; }
    .promo-product-inner { grid-template-columns: 1fr; gap: .85rem; }
    .promo-product-flyer { max-width: min(100%, 320px); margin: 0 auto; width: 100%; }
    .promo-product-icon-wrap {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: .75rem;
        padding: .65rem .85rem;
    }
    .promo-product-actions {
        grid-column: auto;
        flex-direction: column;
        width: 100%;
    }
    .promo-product-actions .btn { width: 100%; justify-content: center; }

    .promo-penalty-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    .promo-penalty-inner .btn { width: 100%; justify-content: center; }
    .promo-difficulty-list {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
        text-align: left;
    }

    .promo-grid { grid-template-columns: 1fr; }
    .promo-card-featured { grid-template-columns: 1fr; }
    .promo-card-featured .promo-card-img,
    .promo-card-featured .promo-card-placeholder {
        height: auto;
        min-height: 140px;
        max-height: 220px;
    }
    .promo-card-actions { flex-direction: column; }
    .promo-card-actions .btn { width: 100%; justify-content: center; }

    .reward-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: .5rem;
    }
    .reward-row .btn { width: 100%; justify-content: center; }

    .promo-ticker-cta { display: none; }
    .promo-ticker-badge { font-size: .58rem; }
    .promo-ticker-item { font-size: .76rem; }
    .promo-spotlight-inner { flex-direction: column; align-items: flex-start; }
    .promo-spotlight-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .sidebar-promo-card { display: none; }
}

@media (max-width: 600px) {
    .promo-featured-copy h2 { font-size: 1.25rem; letter-spacing: .02em; }
    .promo-featured-lead { font-size: .85rem; }
    .promo-featured-modules span { font-size: .62rem; }
    .promo-featured-discount { font-size: .82rem; padding: .5rem .65rem; }
    .promo-product-body h3 { font-size: 1.05rem; }
    .promo-product-lead { font-size: .84rem; }
    .promo-difficulty-list { grid-template-columns: 1fr; }
    .promo-penalty-inner h2 { font-size: 1rem; }
}

@media (max-width: 380px) {
    .promo-featured-brand { flex-direction: column; text-align: center; }
    .promo-logo-text.market,
    .promo-logo-text.botanica { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE GLOBAL — todo el proyecto
   ═══════════════════════════════════════════════════ */

/* Landing (index) */
.landing-hero {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}
.landing-icon { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: .5rem; line-height: 1; }
.landing-kicker {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .35rem;
}
.landing-title { font-size: clamp(2rem, 8vw, 3rem) !important; color: var(--gold); margin-bottom: .5rem; }
.landing-lead {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    font-size: clamp(.95rem, 2.6vw, 1.08rem);
    line-height: 1.55;
    color: var(--text);
}
.landing-lead strong { color: var(--gold); font-weight: 600; }
.landing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
    margin-bottom: 1.35rem;
}
.landing-pill {
    font-size: .78rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.25);
    color: var(--text-muted);
}
.landing-pill-gold {
    border-color: var(--border-gold);
    color: var(--gold);
    background: rgba(212,175,55,.08);
}
.landing-note {
    margin-top: .85rem;
    font-size: .78rem;
    color: var(--text-muted);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}
.landing-sub { font-size: clamp(.85rem, 2.5vw, 1rem); margin: 1rem 0 1.5rem; }
.landing-actions { justify-content: center; width: 100%; }
.landing-guest-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
}
.landing-guest-tag {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .25rem;
}
.landing-guest-copy {
    flex: 1;
    min-width: 200px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.landing-guest-copy a { color: var(--gold); }
.landing-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.landing-stats {
    display: flex;
    gap: .65rem;
    justify-content: center;
    margin-top: clamp(1.25rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}
.landing-stats .stat-box { flex: 1 1 min(140px, 100%); min-width: 0; }

.legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    /* Heroes y cabeceras */
    .dash-hero { flex-direction: column; align-items: stretch; }
    .dash-hero .btn { width: 100%; justify-content: center; }

    .page-hero.flex-between > a.btn,
    .page-hero.flex-between > .btn,
    .page-hero.flex-between > input,
    .page-hero.flex-between > .search-modern { width: 100%; max-width: none; }

    .panel-head.flex-between {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
    }
    .panel-head.flex-between .btn { width: 100%; justify-content: center; }

    .sim-champion-banner { padding: 1.25rem 1rem; }
    .sim-champion-big h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); }

    /* Historia */
    .history-card-hero h2 { font-size: clamp(1.45rem, 6vw, 2.6rem); }
    .history-card-hero p { font-size: .85rem; }
    .history-flag img.flag-img { width: 72px; height: 54px; }
    .history-trophy strong { font-size: 2.2rem; }

    /* Golito chat */
    .golito-hero { flex-direction: column; text-align: center; align-items: center; }
    .golito-avatar { width: 80px; height: 80px; }
    .golito-avatar .golito-icon-lg { width: 72px; height: 72px; }
    .golito-msg.bot { padding-left: 0; }
    .golito-msg.bot .golito-bubble::before { display: none; }
    .golito-quick-chips { padding-left: 0; justify-content: center; }
    .golito-form { flex-direction: column; }
    .golito-form .btn { width: 100%; }

    /* Comparador */
    .comparator-setup .btn { width: 100%; }
    .compare-header { gap: 1rem; }
    .compare-team img.flag-img { width: 56px; height: 40px; }
    .compare-team h3 { font-size: 1.2rem; }
    .vs-circle { margin: 0 auto .25rem; }

    /* Promo spotlight / ticker */
    .promo-spotlight-actions .btn { flex: 1 1 auto; min-width: calc(50% - .25rem); justify-content: center; }
    .promo-spotlight-levels { flex-wrap: wrap; gap: .35rem; }

    /* Admin superadmin */
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .2rem;
    }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-tab { flex-shrink: 0; white-space: nowrap; min-height: var(--touch-min); }
    .admin-promo-row { flex-direction: column; align-items: stretch; }
    .admin-promo-actions { width: 100%; }
    .admin-promo-actions .btn { flex: 1 1 auto; justify-content: center; }
    .promo-dialog-actions { flex-direction: column-reverse; align-items: stretch; }
    .promo-dialog-actions .btn { width: 100%; }
    .admin-reward-filters { flex-direction: column; align-items: stretch; }
    .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-hero .btn { width: 100%; justify-content: center; }

    /* Penales */
    .pen-intro-title { font-size: clamp(2rem, 12vw, 3.5rem); }
    .pen-reward-pct { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .pen-reward-code code { font-size: .95rem; word-break: break-all; }

    /* Tablas y grids densos */
    .standings-table { min-width: 360px; }
    .leaderboard-table { min-width: 320px; }
    .champion-panel-layout { grid-template-columns: 1fr; text-align: center; }
    .champion-trophy-visual { order: -1; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .stat-box .val { font-size: 1.6rem; }

    /* Upcoming rows en dashboard */
    .upcoming-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: .4rem;
        padding: .85rem .75rem;
    }
    .upcoming-team, .upcoming-team.right { justify-content: center; }
    .upcoming-time { text-align: center; }
}

@media (max-width: 600px) {
    .landing-actions { flex-direction: column; }
    .landing-actions .btn { width: 100%; }
    .landing-stats { flex-direction: column; }
    .landing-stats .stat-box { flex: none; width: 100%; }

    .legend-grid { flex-direction: column; gap: .45rem; }

    .promo-spotlight-actions { flex-direction: column; }
    .promo-spotlight-actions .btn { width: 100%; min-width: 0; }

    .promo-ticker-bar { padding: .35rem .5rem; gap: .35rem; min-height: 36px; }
    .promo-ticker-badge { font-size: .5rem; padding: .18rem .35rem; letter-spacing: .08em; }

    .view-switcher { gap: .35rem; }
    .view-switch-btn { min-width: 0; flex: 1 1 calc(50% - .2rem); font-size: .82rem; padding: .65rem .5rem; }

    .compare-charts { gap: .75rem; }
    .duel-vs { flex-wrap: wrap; justify-content: center; gap: .5rem; }

    .history-metrics { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .history-metric { padding: .65rem; }
    .history-metric strong { font-size: 1.35rem; }

    .admin-summary-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .history-metrics { grid-template-columns: 1fr; }
    .admin-summary-grid { grid-template-columns: 1fr; }
    .promo-spotlight h2 { font-size: 1.35rem; }
    .cal-grid-cell { min-height: 40px; font-size: .72rem; }
    .cal-grid { gap: .2rem; }
    .cal-grid-head { font-size: .58rem; }

.admin-hero { padding: 1.5rem 1.75rem; margin-bottom: 1rem; }
.admin-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-panel { margin-bottom: 1rem; }
.admin-tabs { margin-bottom: 1rem; }
}

/* ── Comunidad Activa ── */
.comm-live-ticker {
    display: flex; align-items: center; gap: .75rem;
    background: linear-gradient(90deg, rgba(255,23,68,.12), rgba(0,200,83,.08));
    border: 1px solid rgba(255,23,68,.25); border-radius: 10px;
    padding: .55rem 1rem; margin-bottom: 1.25rem; overflow: hidden;
}
.comm-ticker-label { font-size: .65rem; font-weight: 700; color: #ff5252; white-space: nowrap; letter-spacing: .08em; }
.comm-ticker-track { display: flex; gap: 2.5rem; animation: commTicker 35s linear infinite; white-space: nowrap; }
.comm-ticker-item { font-size: .78rem; color: var(--text-muted); }
@keyframes commTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.comm-stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.comm-stat-card {
    text-align: center; padding: 1rem .5rem;
    background: rgba(255,255,255,.03); border-radius: 10px; border: 1px solid var(--border);
}
.comm-stat-icon { font-size: 1.25rem; display: block; margin-bottom: .35rem; }
.comm-stat-val { display: block; font-size: 1.35rem; font-weight: 800; color: var(--green); font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.comm-stat-lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.comm-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; margin-bottom: 1rem; }
.comm-weekly-panel { text-align: center; }
.comm-weekly-champ { padding: 1.5rem 1rem; position: relative; }
.comm-weekly-crown { font-size: 2rem; margin-bottom: .5rem; animation: commPulse 2s ease-in-out infinite; }
.comm-weekly-avatar { width: 56px; height: 56px; font-size: 1.5rem; margin: 0 auto .75rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.comm-weekly-name { display: block; font-size: 1.15rem; margin-bottom: .25rem; }
.comm-weekly-prize { display: block; color: var(--gold); font-weight: 700; font-size: .9rem; }
.comm-weekly-score { display: block; color: var(--text-muted); font-size: .78rem; margin-top: .35rem; }
.comm-weekly-empty { padding: 2rem 1rem; }
.comm-weekly-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
@keyframes commPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.comm-feed { display: flex; flex-direction: column; gap: .5rem; max-height: 320px; overflow-y: auto; }
.comm-feed-item { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; background: rgba(255,255,255,.02); border-radius: 8px; border: 1px solid var(--border); transition: border-color .2s; }
.comm-feed-item:hover { border-color: rgba(0,200,83,.3); }
.comm-feed-avatar { width: 36px; height: 36px; font-size: .9rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.comm-feed-body { font-size: .82rem; line-height: 1.45; }
.comm-feed-body strong { color: var(--text); }
.comm-feed-meta { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.comm-live-badge { display: inline-flex; align-items: center; gap: .35rem; }

.pen-discount { color: var(--green); }
.pen-lb-table .lb-user { flex-wrap: wrap; gap: .35rem; }
.pen-badge { font-size: .62rem; padding: .15rem .45rem; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.badge-legend { background: rgba(255,214,0,.2); color: #ffd600; }
.badge-elite { background: rgba(156,39,176,.2); color: #ce93d8; }
.badge-champ { background: rgba(0,200,83,.15); color: #69f0ae; }
.badge-shooter { background: rgba(33,150,243,.15); color: #64b5f6; }
.badge-rookie { background: rgba(255,255,255,.08); color: var(--text-muted); }

.comm-my-rank { display: flex; align-items: center; gap: 1rem; }
.comm-my-rank-pos { font-size: 2rem; font-weight: 800; font-family: 'Bebas Neue', sans-serif; color: var(--gold); min-width: 3rem; text-align: center; }
.comm-cta-panel { text-align: center; padding: 2rem; }
.comm-lb-note { font-size: .78rem; margin-bottom: .75rem; }
.comm-badges-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.comm-badge-card { text-align: center; padding: 1rem .5rem; border-radius: 10px; border: 1px solid var(--border); }
.comm-badge-card span { font-size: 1.5rem; display: block; margin-bottom: .35rem; }
.comm-badge-card strong { display: block; font-size: .78rem; margin-bottom: .15rem; }
.comm-badge-card small { font-size: .65rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .comm-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .comm-grid { grid-template-columns: 1fr; }
    .comm-badges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .comm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .comm-badges-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MI PERFIL ─── */
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.profile-hero { align-items: center !important; }
.profile-hero-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.profile-avatar-lg {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: #000;
    border: 2px solid rgba(212,175,55,.35);
}
.profile-since { font-size: .78rem; color: var(--text-muted); margin: .25rem 0 0; }
.profile-hero-actions { flex-shrink: 0; }
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.profile-panel { margin-bottom: 1rem; }
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: .85rem;
}
.profile-stat-card {
    text-align: center;
    padding: .85rem .5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.profile-stat-icon { display: block; font-size: 1.25rem; margin-bottom: .25rem; }
.profile-stat-value { display: block; font-size: 1.35rem; font-family: var(--font-display); color: var(--gold); letter-spacing: .04em; }
.profile-stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.profile-legal-note { font-size: .78rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
.profile-legal-note a { color: var(--gold); }
.profile-form { display: flex; flex-direction: column; gap: .85rem; max-width: 420px; }
.profile-field { display: flex; flex-direction: column; gap: .35rem; }
.profile-field span { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.profile-form-msg { font-size: .82rem; margin: 0; padding: .5rem .65rem; border-radius: 8px; }
.profile-form-msg-ok { background: rgba(0,230,118,.1); color: var(--green); border: 1px solid rgba(0,230,118,.25); }
.profile-form-msg-err { background: rgba(255,82,82,.08); color: #ff8a80; border: 1px solid rgba(255,82,82,.25); }
.profile-empty { text-align: center; padding: 1.5rem 1rem; color: var(--text-muted); }
.profile-empty p { margin: 0 0 .75rem; }
.profile-rewards-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile-rewards-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 640px; }
.profile-rewards-table th,
.profile-rewards-table td { padding: .65rem .5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.profile-rewards-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.profile-reward-win { background: rgba(0,230,118,.03); }
.profile-reward-loss { opacity: .75; }
.profile-pct { color: var(--green); font-size: 1rem; }
.profile-code-cell { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.profile-code {
    font-size: .95rem; color: var(--gold-light); letter-spacing: .05em;
    background: rgba(212,175,55,.08); padding: .2rem .45rem; border-radius: 6px;
}
.profile-copy-code { padding: .25rem .55rem !important; font-size: .72rem !important; }
.profile-status {
    display: inline-block; font-size: .72rem; padding: .2rem .45rem; border-radius: 999px; font-weight: 600;
}
.profile-status-pending { background: rgba(255,214,0,.12); color: var(--gold-light); }
.profile-status-contacted { background: rgba(33,150,243,.12); color: #64b5f6; }
.profile-status-closed { background: rgba(0,230,118,.12); color: var(--green); }
.profile-danger-zone .text-muted { margin: 0 0 .75rem; font-size: .85rem; }

@media (max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .profile-hero-main { flex-direction: column; align-items: flex-start; text-align: left; }
    .profile-rewards-table { min-width: 0; }
    .profile-rewards-table thead { display: none; }
    .profile-rewards-table tr {
        display: block; margin-bottom: .75rem; padding: .75rem;
        border: 1px solid var(--border); border-radius: var(--radius);
    }
    .profile-rewards-table td {
        display: flex; justify-content: space-between; gap: .75rem;
        border: none; padding: .35rem 0;
    }
    .profile-rewards-table td::before {
        content: attr(data-label);
        font-weight: 600; color: var(--text-muted); font-size: .72rem;
        text-transform: uppercase; flex-shrink: 0;
    }
    .profile-code-cell { justify-content: flex-end; }
}

/* ─── TIPOGRAFÍA MÓVIL (más legible en celular) ─── */
@media (max-width: 900px) {
    html { font-size: var(--fs-root-mobile); }
    body { overflow-x: hidden; }

    .sidebar-link { font-size: 1rem; }
    .sidebar-user { font-size: .92rem; }
    .sidebar-user a { font-size: .82rem; }
    .page-title { font-size: 2.2rem; }
    .page-sub { font-size: 1rem; }
    .panel-head h2 { font-size: 1.1rem; }
    .panel-desc { font-size: .92rem; }
    .btn { font-size: .95rem; }
    .btn-sm { font-size: .88rem; padding: .55rem 1rem; }
    .btn-lg { font-size: 1.05rem; }
    .bottom-nav-link { font-size: .72rem; }
    .bottom-nav-label { font-size: .72rem; }
    .topbar-greet { font-size: .95rem; }
    .topbar-search input { font-size: 1rem; }
    .mini-table { font-size: .9rem; }
    .mini-table th { font-size: .75rem; }
    .stat-box .lbl { font-size: .75rem; }
    .upcoming-team { font-size: .95rem; }
    .upcoming-time { font-size: .82rem; }
    .prob-bar-name { font-size: .95rem; }
    .team-card-modern .name { font-size: 1.05rem; }
    .team-card-modern .meta { font-size: .88rem; }
    .pen-hint { font-size: .9rem; }
    .pen-status { font-size: .95rem; }
    .pen-team-chip { font-size: .82rem; }
    .pen-diff-card strong { font-size: .95rem; }
    .landing-lead { font-size: clamp(1.05rem, 3.8vw, 1.18rem); }
    .landing-pill { font-size: .9rem; padding: .45rem .85rem; }
    .landing-note { font-size: .9rem; }
    .landing-guest-copy { font-size: .95rem; }
    .promo-ticker-item { font-size: .88rem; }
    .auth-brand p { font-size: .88rem; }
    .auth-links, .auth-skip { font-size: .92rem; }
    .input-group input { font-size: 1rem; }
    .muted, .text-muted { font-size: .95rem; }
    .site-footer-tag, .site-footer-nav a { font-size: .88rem; }
}

@media (max-width: 480px) {
    html { font-size: var(--fs-root-mobile-sm); }

    .bottom-nav-link { font-size: .74rem; }
    .bottom-nav-label { font-size: .74rem; }
    .page-title { font-size: 2.35rem; }
}
