/* ============================================================
   COPA EII PUCV 2026 — style.css
   Dirección de arte: Brutal Neon + Glassmorphism
   BEM · Mobile-first · Variables CSS nativas
   ============================================================ */

:root {
    --brand-orange: #ff6600;
    --brand-orange-soft: rgba(255, 102, 0, 0.15);
    --brand-orange-line: rgba(255, 102, 0, 0.2);

    --bg-dark: #050505;
    --bg-carbon: #111111;
    --bg-panel: #121212;

    --text-light: #ffffff;
    --text-muted: #8a8a8a;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 102, 0, 0.2);

    --neon-text: 0 0 10px rgba(255, 102, 0, 0.8);
    --neon-box: 0 0 15px rgba(255, 102, 0, 0.5);

    --win: #23c552;
    --draw: #8a8a8a;
    --loss: #e23b3b;

    --font-display: 'Teko', 'Arial Narrow', sans-serif;
    --font-heading: 'Teko', 'Arial Narrow', sans-serif; /* alias usado por admin.css */
    --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --navbar-h: 58px;
    --footer-h: 62px;
    --maxw: 1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--navbar-h);
    padding-bottom: calc(var(--footer-h) + 12px);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% -10%, rgba(255, 102, 0, 0.10), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.04), transparent 40%);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.85em; color: var(--brand-orange); }
.muted { color: var(--text-muted); }

h1, h2, h3, .btn, .navbar__brand {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.page { padding-top: 22px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------- Glass / cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* ------------------------------------------------------------ Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-dark);
    background: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn:hover { box-shadow: var(--neon-box); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn--glow { box-shadow: var(--neon-box); }
.btn--glow:hover { box-shadow: 0 0 24px rgba(255, 102, 0, 0.75); }
.btn--sm { min-height: 40px; font-size: 13px; padding: 0 16px; width: 100%; }
.btn--outline-glow {
    background: transparent;
    color: var(--text-light);
    border-color: var(--brand-orange-line);
}
.btn--outline-glow:hover { border-color: var(--brand-orange); box-shadow: var(--neon-box); }

.btn__spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(5, 5, 5, 0.35);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}
.btn--loading .btn__spinner { display: inline-block; }
.btn--loading .btn__label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Navbar */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--navbar-h);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar__brand { font-size: 24px; color: var(--text-light); white-space: nowrap; }
.navbar__brand span { color: var(--brand-orange); text-shadow: var(--neon-text); }

.navbar__nav { flex: 1; min-width: 0; }
.navbar__menu {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.navbar__menu::-webkit-scrollbar { display: none; }
.navbar__link {
    display: inline-block;
    flex-shrink: 0;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-radius: 20px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.navbar__link:hover { color: var(--text-light); }
.navbar__link--active {
    color: var(--brand-orange);
    background: var(--brand-orange-soft);
}
.navbar__session { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navbar__alias {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar__link--cta {
    color: var(--bg-dark);
    background: var(--brand-orange);
    box-shadow: var(--neon-box);
}
.navbar__link--ghost { border: 1px solid rgba(255, 255, 255, 0.12); }

/* ------------------------------------------------------ Sticky footer */
.sticky-footer {
    position: fixed;
    inset: auto 0 0 0;
    height: var(--footer-h);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sticky-footer__btn {
    flex: 1 1 auto;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.sticky-footer__btn:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.sticky-footer__icon { font-size: 15px; }

/* --------------------------------------------------------- Page head */
.page-head { padding: 6px 0 20px; }
.page-head--center { text-align: center; }
.page-head--center .page-head__desc { margin-inline: auto; }
.page-head__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.page-head__title {
    margin-top: 4px;
    font-size: 44px;
    font-weight: 600;
}
.page-head__title span { color: var(--brand-orange); text-shadow: var(--neon-text); }
.page-head__desc { margin-top: 8px; max-width: 520px; color: var(--text-muted); font-size: 13.5px; }

.section-title {
    margin: 30px 0 14px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-light);
}
.section-title i { color: var(--brand-orange); margin-right: 6px; }

.estado-vacio {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}
.estado-vacio a { color: var(--brand-orange); }

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.alert--error { background: rgba(226, 59, 59, 0.12); border: 1px solid rgba(226, 59, 59, 0.4); }
.alert--error i { color: var(--loss); }

/* =================================================== LANDING / HERO */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-h) - var(--footer-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* Escudo gigante, borroso y oscurecido detrás del contenido (contraste) */
.hero__bg {
    position: absolute;
    inset: -10%;
    z-index: -2;
    background: var(--logo-url, url('../logo.png')) center 24% / min(170vw, 1400px) no-repeat;
    filter: blur(18px) brightness(0.5) saturate(1.15);
    opacity: 0.45;
    transform: scale(1.1);
    pointer-events: none;
}
/* Velo oscuro encima del escudo para asegurar legibilidad del texto */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 32%, transparent 0, rgba(5, 5, 5, 0.35) 55%, rgba(5, 5, 5, 0.72) 100%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.25), rgba(5, 5, 5, 0.1) 42%, var(--bg-dark) 100%);
    pointer-events: none;
}
.hero__glow {
    position: absolute;
    top: -20%; left: 50%;
    width: 700px; height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 102, 0, 0.22), transparent 62%);
    filter: blur(30px);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; padding: 48px 16px; }
.hero__logo { width: 132px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 4px 20px rgba(255, 102, 0, 0.4)); }
.hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero__title { margin: 12px 0 6px; font-weight: 700; }
.hero__title-line { display: block; font-size: clamp(38px, 11vw, 82px); }
.hero__title-line--accent { color: var(--brand-orange); text-shadow: 0 0 18px rgba(255, 102, 0, 0.85); }
.hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(16px, 4vw, 22px);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    opacity: 0.9;
}
.hero__desc {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--text-muted);
    font-size: 14px;
}
.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px auto 0;
    max-width: 380px;
}
.hero__scroll {
    display: inline-block;
    margin-top: 40px;
    font-size: 20px;
    color: var(--text-muted);
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ------------------------------------------------------ Summary cards */
.summary { padding: 40px 16px 20px; }
.summary__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.summary-card { padding: 18px; }
.summary-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.summary-card__title { font-size: 18px; font-weight: 600; }
.summary-card__title i { color: var(--brand-orange); margin-right: 6px; }
.summary-card__link { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--brand-orange); white-space: nowrap; }
.summary-card__foot { margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.podium { display: flex; flex-direction: column; gap: 8px; }
.podium__row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.podium__pos {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    font-family: var(--font-display);
    font-size: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}
.podium__row--1 .podium__pos { background: var(--brand-orange); color: var(--bg-dark); box-shadow: var(--neon-box); }
.podium__row--2 .podium__pos { background: #cfcfcf; color: var(--bg-dark); }
.podium__row--3 .podium__pos { background: #b06a2e; color: var(--bg-dark); }
.podium__alias { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__pts { font-family: var(--font-display); font-size: 16px; color: var(--brand-orange); }

.mini-news { display: flex; flex-direction: column; gap: 10px; }
.mini-news a { display: block; padding: 10px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); }
.mini-news a:hover { background: rgba(255, 102, 0, 0.06); }
.mini-news__date { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.mini-news__title { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }

/* =========================================================== La Copa */
.groups { display: grid; grid-template-columns: 1fr; gap: 26px; }
.group__title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-orange);
    text-shadow: var(--neon-text);
}

.standings { width: 100%; border-collapse: collapse; min-width: 540px; }
.standings th {
    padding: 10px 8px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--brand-orange-line);
}
.standings th.standings__team { text-align: left; }
.standings td { padding: 10px 8px; font-size: 13px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.standings__pos { width: 30px; color: var(--text-muted); font-family: var(--font-display); font-size: 15px; }
.standings__team { text-align: left; white-space: nowrap; font-weight: 600; }
.standings__team-link { display: flex; align-items: center; gap: 9px; transition: color 0.15s ease; }
.standings__team-link:hover { color: var(--brand-orange); }
.standings__team-link:hover .team-badge { border-color: var(--brand-orange); }
.standings__pts { font-family: var(--font-display); font-size: 17px; color: var(--brand-orange); }
.standings__form { min-width: 130px; }
.standings__row--qualy td { background: rgba(255, 102, 0, 0.05); }
.standings__row--qualy .standings__pos { color: var(--brand-orange); }

/* ---- Ficha de equipo (/equipo) ---- */
.crest--xl { width: 76px; height: 76px; font-size: 24px; }
.team-hero { display: flex; align-items: center; gap: 18px; padding: 18px; margin-bottom: 14px; }
.team-hero__info { min-width: 0; }
.team-hero__name { font-size: clamp(26px, 7vw, 40px); font-weight: 600; margin: 2px 0 8px; }
.team-hero__form { display: flex; gap: 5px; align-items: center; }

.team-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}
.team-stat span { font-family: var(--font-display); font-size: 22px; }
.team-stat small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.team-stat--pts span { color: var(--brand-orange); }
.team-stat--pts { border-color: var(--brand-orange-line); background: var(--brand-orange-soft); }

.stats-table tfoot td {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--brand-orange-line);
}
.stats-table tfoot td.stats-table__value { color: var(--brand-orange); }

.team-badge {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-carbon);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--brand-orange);
    overflow: hidden;
}
.team-badge img { width: 100%; height: 100%; object-fit: cover; }

.form-dots { display: inline-flex; gap: 4px; }
.form-dot {
    display: grid;
    place-items: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-dark);
}
.form-dot--v { background: var(--win); }
.form-dot--e { background: var(--draw); }
.form-dot--d { background: var(--loss); }
.form-dot--none { background: transparent; color: var(--text-muted); }

/* ---------------------------------------------------- Match cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.match-card { padding: 16px; background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.match-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 102, 0, 0.18); }
.match-card--live { border-color: rgba(255, 102, 0, 0.5); }
.match-card__status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.match-card__status--live { color: var(--brand-orange); }
.match-card__phase { color: var(--text-muted); }
.match-card__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange); box-shadow: var(--neon-box); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.match-card__teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-card__team { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 38%; }
.match-card__team-logo {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-carbon);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--brand-orange);
    overflow: hidden;
}
.match-card__team-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-card__team-name { font-size: 11px; font-weight: 600; text-align: center; }
.match-card__score { font-family: var(--font-display); font-size: 30px; display: flex; align-items: center; gap: 6px; }
.match-card__score span { color: var(--text-muted); font-size: 20px; }
.match-card__score-vs { color: var(--text-muted); font-size: 18px; }
.match-card__meta {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
}
.match-card__meta i { color: var(--brand-orange); margin-right: 4px; }
.match-card__group {
    margin-top: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-orange);
}

/* ============================================================ Stats */
/* Escudo genérico reutilizable */
.crest {
    display: inline-grid;
    place-items: center;
    width: 24px; height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-carbon);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--brand-orange);
    overflow: hidden;
}
.crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crest--lg { width: 44px; height: 44px; font-size: 15px; }

/* Filtro de equipos: barra horizontal de píldoras compactas con scroll lateral */
.team-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    margin-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.team-pills::-webkit-scrollbar { height: 5px; }
.team-pills::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.team-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--bg-carbon);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.team-pill:hover { color: var(--text-light); border-color: var(--brand-orange-line); }
.team-pill--active {
    color: var(--brand-orange);
    background: var(--brand-orange-soft);
    border-color: var(--brand-orange);
}
.team-pill__logo {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-dark);
    overflow: hidden;
    font-size: 10px;
    color: var(--brand-orange);
}
.team-pill__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-pill--all { padding-left: 13px; }
.team-pill--all i { color: currentColor; }

.stats-filter__active { font-size: 12px; color: var(--text-muted); margin: 6px 0 16px; }
.stats-filter__active a { color: var(--brand-orange); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    background: var(--bg-carbon);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transition: all 0.2s ease;
}
.tab-btn--active { color: var(--bg-dark); background: var(--brand-orange); border-color: var(--brand-orange); box-shadow: var(--neon-box); }
.tab-panel { display: none; }
.tab-panel--active { display: block; }

.stats-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.stats-table th {
    padding: 11px 12px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--brand-orange-line);
}
.stats-table td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.stats-table tbody tr:hover { background: rgba(255, 102, 0, 0.04); }
.stats-table__rank { width: 34px; font-family: var(--font-display); font-size: 17px; color: var(--brand-orange); }
.stats-table__value { font-family: var(--font-display); font-size: 17px; text-align: center; }

.card-tag {
    display: inline-grid;
    place-items: center;
    min-width: 22px; height: 20px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-dark);
}
.card-tag--yellow { background: #f5c518; }
.card-tag--red { background: var(--loss); color: #fff; }
.card-tag--goal,
.card-tag--mvp,
.card-tag--own {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; height: 20px; gap: 4px; padding: 0 7px; white-space: nowrap;
}
.card-tag--goal { background: var(--brand-orange); }
.card-tag--mvp { background: #38bdf8; color: #04212e; }
.card-tag--own { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.18); }

/* ================================================== Ficha de partido */
.match-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px; margin-bottom: 20px; text-align: center; }
.match-hero__status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.match-hero__status--live { color: var(--brand-orange); }
.match-hero__teams { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 5vw, 32px); width: 100%; }
.match-hero__team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 34%; color: var(--text-light); }
.match-hero__team:hover .crest--lg { border-color: var(--brand-orange); }
.match-hero__name { font-size: 13px; font-weight: 600; }
.match-hero__score { font-family: var(--font-display); font-size: clamp(32px, 9vw, 46px); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.match-hero__score span { color: var(--text-muted); font-size: 0.6em; }
.match-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 11px; color: var(--text-muted); }
.match-hero__meta i { color: var(--brand-orange); margin-right: 4px; }

.match-card__detail {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px; padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--brand-orange);
}
.match-card__detail:hover { color: var(--text-light); }

.estado-vacio--sm { padding: 6px 0 16px; font-size: 12.5px; }

.match-facts { padding: 18px; }
.match-facts__team {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--font-display); font-size: 15px; letter-spacing: 0.4px;
    color: var(--text-light); margin-bottom: 10px;
}
.match-facts__divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 16px 0; }
.match-facts__list { display: flex; flex-direction: column; gap: 2px; }
.match-facts__list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.match-facts__list li:last-child { border-bottom: none; }
.match-facts__player { font-size: 13px; font-weight: 600; }
.match-facts__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------- Llaves / bracket */
.bracket-section { margin-top: 28px; }
.bracket-banner { text-align: center; margin-bottom: 24px; }
.bracket-banner__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--brand-orange); }
.bracket-banner__kicker i { margin-right: 6px; }
.bracket-banner__title { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Diagrama de llaves: Cuartos -> Semis -> Final. En mobile, 3 listas
   apiladas sin conectores; desde 860px, árbol horizontal con líneas. */
.pb-bracket { display: flex; flex-direction: column; gap: 26px; }
.pb-round__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-orange); margin-bottom: 12px; text-align: center; }
.pb-pairs { display: flex; flex-direction: column; gap: 24px; }
.pb-pair { display: flex; flex-direction: column; gap: 10px; }

.pb-node {
    position: relative;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: 10px 12px;
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-node:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 102, 0, 0.18); }
.pb-node--tbd { border-style: dashed; opacity: 0.6; }
.pb-team { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.pb-team b { margin-left: auto; font-family: var(--font-display); font-size: 16px; color: var(--text-light); }
.pb-team--win { color: var(--text-light); font-weight: 700; }
.pb-team--win b { color: var(--brand-orange); }
.pb-team--tbd { color: var(--text-muted); font-size: 12px; }
.pb-team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-node__fecha { font-size: 10px; color: var(--text-muted); text-align: right; }
.crest--ghost { border-style: dashed; color: var(--text-muted); font-size: 11px; }

@media (min-width: 860px) {
    .pb-bracket { flex-direction: row; align-items: stretch; overflow-x: auto; padding-bottom: 6px; }
    .pb-round { width: 230px; flex: 0 0 230px; padding: 0 17px; }
    .pb-round:first-child { padding-left: 0; }
    .pb-round:last-child { padding-right: 0; }
    .pb-pairs { flex: 1; justify-content: space-around; }
    .pb-pair { position: relative; justify-content: space-between; height: 100%; }
    .pb-node { height: 76px; }

    .pb-round:not(:last-child) .pb-node::after {
        content: ""; position: absolute; top: 50%; right: -17px; width: 17px; height: 1px;
        background: var(--brand-orange-line);
    }
    .pb-round:not(:first-child) .pb-node::before {
        content: ""; position: absolute; top: 50%; left: -17px; width: 17px; height: 1px;
        background: var(--brand-orange-line);
    }
    .pb-round:not(:last-child) .pb-pair::after {
        content: ""; position: absolute; right: -17px; top: 38px; bottom: 38px; width: 1px;
        background: var(--brand-orange-line);
    }
}

/* =========================================================== Noticias */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.news-card {
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 102, 0, 0.18); }
.news-card__thumb {
    height: 150px;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: rgba(5, 5, 5, 0.8);
    background: linear-gradient(135deg, var(--brand-orange), #ffb37a);
    overflow: hidden;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 15px 16px 18px; }
.news-card__date { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.news-card__title { margin: 6px 0; font-size: 19px; font-weight: 600; text-transform: none; font-family: var(--font-display); letter-spacing: 0; }
.news-card__excerpt { font-size: 12.5px; color: var(--text-muted); }

.news-detail { max-width: 720px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.back-link:hover { color: var(--brand-orange); }
.news-detail__media { margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); overflow: hidden; }
.news-detail__media img, .news-detail__media video { width: 100%; max-height: 440px; object-fit: cover; }
.news-detail__date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.news-detail__title { margin: 8px 0 18px; font-size: clamp(28px, 6vw, 46px); font-weight: 600; text-transform: none; }
.news-detail__body { font-size: 15px; line-height: 1.85; }

/* =============================================================== Auth */
.auth { max-width: 480px; }
.auth__switch { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg-carbon); border-radius: 999px; padding: 4px; }
.auth__tab {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 999px;
}
.auth__tab--active { color: var(--bg-dark); background: var(--brand-orange); box-shadow: var(--neon-box); }
.auth__form { display: none; flex-direction: column; gap: 12px; padding: 22px; }
.auth__form--active { display: flex; }
.auth__hint { font-size: 11px; color: var(--text-muted); text-align: center; }
.auth__hint code { font-size: 11px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.field__label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input,
.field select {
    min-height: 44px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 14px;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-panel); color: var(--text-light); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-soft); }
.field__hint { font-size: 11px; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ====================================================== La Polla */
.polla-userbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 16px; }
.polla-userbar__alias { font-size: 12px; font-weight: 700; }
.polla-userbar__alias i { color: var(--brand-orange); }
.polla-userbar__pts { margin-left: 8px; font-family: var(--font-display); font-size: 18px; color: var(--brand-orange); }
.polla-userbar__pos { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.polla-nav { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg-carbon); border-radius: 999px; padding: 4px; }
.polla-nav__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px;
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-radius: 999px;
}
.polla-nav__btn--active { color: var(--bg-dark); background: var(--brand-orange); box-shadow: var(--neon-box); }

.polla-panel { display: none; }
.polla-panel--active { display: block; }

.polla-rules { padding: 14px 16px; margin-bottom: 16px; font-size: 12.5px; color: var(--text-muted); }
.polla-rules strong { color: var(--text-light); }
.polla-rules__table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.polla-rules__table th {
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 5px 8px;
    border-bottom: 1px solid var(--brand-orange-line);
}
.polla-rules__table td { padding: 5px 8px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.polla-rules__table td:first-child { color: var(--text-light); font-weight: 600; }
.polla-rules__table td:not(:first-child) { font-family: var(--font-display); font-size: 15px; color: var(--brand-orange); }
.polla-rules__bonus td { color: var(--text-light) !important; }
.polla-rules__foot { margin-top: 8px; }

/* Tarjeta de campeón */
.champ-card { padding: 14px 16px; margin-bottom: 16px; }
.champ-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.champ-card__title { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.champ-card__title i { color: var(--brand-orange); }
.champ-card__result { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.champ-card__result--win { background: var(--brand-orange); color: var(--bg-dark); }
.champ-card__result--lose { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.champ-card__form { display: flex; gap: 8px; flex-wrap: wrap; }
.champ-card__form select {
    flex: 1 1 200px;
    min-height: 42px;
    padding: 0 12px;
    background: var(--bg-carbon);
    color: var(--text-light);
    border: 1px solid var(--brand-orange-line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
}
.champ-card__form select:focus { outline: none; border-color: var(--brand-orange); }
.champ-card__form .btn { width: auto; flex: 0 0 auto; }
.champ-card__note { margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.champ-card__locked { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.champ-card__locked i { color: var(--brand-orange); }
.champ-card__locked span { font-family: var(--font-body); font-size: 12px; text-transform: none; color: var(--text-muted); }

.pred-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 22px; }
.pred-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; }
.pred-card--priority {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange-line), 0 10px 28px rgba(255, 102, 0, 0.14);
}

.pred-card__top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pred-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    white-space: nowrap;
}
.pred-card__chip--set { color: var(--brand-orange); background: var(--brand-orange-soft); }
.pred-card__chip--saved {
    margin-left: auto;
    border: 1px solid var(--brand-orange-line);
    color: var(--brand-orange);
    background: transparent;
}

.pred-card__teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 10px;
    padding: 4px 0 0;
}
.pred-card__team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}
.pred-card__team-name {
    max-width: 100%;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pred-card__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2px 0 4px;
}
.pred-card__dash { font-family: var(--font-display); font-size: 22px; color: var(--text-muted); }

.stepper { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 4px; }
.stepper__btn {
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}
.stepper__btn:hover { background: rgba(255, 102, 0, 0.3); }
.stepper__btn:active { transform: scale(0.9); }
.stepper__input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 22px;
    -moz-appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; }

.prob__labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.prob__labels span:first-child { color: var(--brand-orange); }
.prob__bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.prob__seg { flex-grow: var(--pct, 0); transition: flex-grow 0.4s ease; }
.prob__seg--local { background: var(--brand-orange); }
.prob__seg--empate { background: var(--text-muted); }
.prob__seg--visita { background: var(--text-light); }
.prob__foot { margin-top: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

.section-title--priority { color: var(--brand-orange); text-shadow: var(--neon-text); }
.section-title__hint {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-left: 8px;
    vertical-align: middle;
}

.pred-history td small { color: var(--text-muted); }
.ranking-head { margin-bottom: 12px; }
.ranking-head__count { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.ranking-head__count strong { color: var(--brand-orange); font-family: var(--font-display); font-size: 16px; }
.ranking-table__me { background: rgba(255, 102, 0, 0.08) !important; }
.tag-you { font-size: 9px; font-weight: 700; text-transform: uppercase; background: var(--brand-orange); color: var(--bg-dark); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* =========================================================== Toasts */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 28px);
    max-width: 360px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--exito { border-color: var(--brand-orange-line); }
.toast--exito .toast__icon { color: var(--brand-orange); }
.toast--error .toast__icon { color: var(--loss); }

/* ======================================================= Error page */
.error-page { text-align: center; padding-top: 60px; }
.error-page__code { font-size: clamp(80px, 24vw, 160px); color: var(--brand-orange); text-shadow: 0 0 24px rgba(255, 102, 0, 0.8); }
.error-page__msg { margin: 8px 0 24px; color: var(--text-muted); }

/* ================================================ COPERO INDUSTRIAL
   Interfaz del minijuego: cancha SVG + cromos + paneles oscuros.
   ================================================================= */
:root {
    --cop-turf-a: #1f7d3c;
    --cop-turf-b: #1a6d34;
    --cop-line: rgba(255, 255, 255, 0.5);
    --cop-gold: #ffcf5c;
    --cop-mvp: #38bdf8;
    --cop-panel: #14161c;
}

/* Panel base reutilizable (card oscura, borde suave, sombra) */
.copero-card-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

#copero-app { position: relative; }

.copero-locked { text-align: center; padding: 48px 24px; }
.copero-locked i { font-size: 44px; color: var(--brand-orange); }
.copero-locked h2 { margin: 16px 0 6px; font-size: 24px; }
.copero-locked p { color: var(--text-muted); font-size: 13.5px; max-width: 420px; margin: 0 auto; }

/* Loader dentro de una card */
.copero-loader { display: none; padding: 48px 0; }
.copero-loader .copero-card-panel {
    max-width: 320px; margin: 0 auto; padding: 28px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    color: var(--text-muted); font-weight: 600;
}
.copero-loader .btn__spinner { display: inline-block; width: 18px; height: 18px; border-color: rgba(255, 102, 0, 0.25); border-top-color: var(--brand-orange); }
#copero-app[data-loading] .copero-loader { display: block; }
#copero-app[data-loading] .copero-draft,
#copero-app[data-loading] .copero-torneo { display: none; }
#copero-app[data-fase="draft"] .copero-torneo { display: none; }
#copero-app:not([data-fase="draft"]) .copero-draft { display: none; }

/* -------------------------------------------------------- DRAFT */
.copero-draft { display: grid; grid-template-columns: 1fr; gap: 16px; }
.copero-side { display: flex; flex-direction: column; gap: 14px; }
.copero-controls { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.copero-control h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 9px; }
.copero-control h3 i { color: var(--brand-orange); margin-right: 7px; }
.copero-control__note { margin-top: 8px; font-size: 11px; color: var(--text-muted); min-height: 26px; line-height: 1.4; }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted); font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.pill:hover { color: var(--text-light); border-color: var(--brand-orange-line); }
.pill--active { background: var(--brand-orange); color: var(--bg-dark); border-color: var(--brand-orange); box-shadow: 0 0 16px rgba(255, 102, 0, 0.5); }

.copero-squad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.copero-squad__meter { display: flex; align-items: baseline; justify-content: space-between; }
.copero-squad__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.copero-squad__count { font-family: var(--font-display); font-size: 22px; color: var(--brand-orange); }
.copero-squad__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.copero-squad__bar span { display: block; height: 100%; background: var(--brand-orange); border-radius: 999px; transition: width 0.4s ease; }
.copero-start { width: 100%; }
.copero-start:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
@keyframes coperoReady { 0%, 100% { box-shadow: var(--neon-box); } 50% { box-shadow: 0 0 26px rgba(255, 102, 0, 0.95); } }
.copero-start.is-ready { animation: coperoReady 1.5s ease-in-out infinite; }
.copero-hint { font-size: 11px; color: var(--text-muted); text-align: center; }

/* -------------------------------------------------------- CANCHA */
.copero-field { display: flex; justify-content: center; }
.copero-pitch {
    position: relative;
    width: 100%; max-width: 440px;
    aspect-ratio: 68 / 102;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.45);
    background:
        repeating-linear-gradient(0deg, var(--cop-turf-a) 0 10%, var(--cop-turf-b) 10% 20%);
}
.copero-pitch::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
}
.pitch__lines {
    position: absolute; inset: 0; width: 100%; height: 100%;
    fill: none; stroke: var(--cop-line); stroke-width: 0.4;
    opacity: 0.9;
}
.pitch__lines .pitch__spot { fill: var(--cop-line); stroke: none; }

.pitch__nodes { position: absolute; inset: 0; }

.pitch-node {
    position: absolute; transform: translate(-50%, -50%);
    width: 28%; max-width: 104px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--text-light);
    transition: transform 0.2s ease;
    z-index: 2;
}
.pitch-node:hover { transform: translate(-50%, -50%) scale(1.07); z-index: 4; }

.pitch-node__disc {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.pitch-node--empty .pitch-node__disc {
    border: 2px dashed rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.pitch-node--empty:hover .pitch-node__disc {
    border-color: var(--cop-gold);
    box-shadow: 0 0 14px rgba(255, 207, 92, 0.7), 0 0 0 4px rgba(255, 207, 92, 0.15);
}
.pitch-node--filled .pitch-node__disc {
    border: 2px solid var(--brand-orange);
    background: var(--bg-carbon);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 102, 0, 0.35);
}
.pitch-node__disc img { width: 100%; height: 100%; object-fit: cover; }
.pitch-node__plus { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; }
.pitch-node__ini { font-family: var(--font-display); font-size: 16px; color: var(--brand-orange); }

.pitch-node__plate {
    max-width: 100%;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(5, 5, 5, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center; line-height: 1.15;
}
.pitch-node--empty .pitch-node__plate { background: rgba(5, 5, 5, 0.5); }
.pitch-node__role { font-size: 9px; font-weight: 800; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.85); }
.pitch-node__name { display: block; font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-node__club { display: block; font-size: 8.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -------------------------------------------------------- SOBRE (modal) */
.copero-modal {
    position: fixed; inset: 0; z-index: 1300;
    display: none; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px);
    animation: coperoFade 0.2s ease;
}
.copero-modal:not([hidden]) { display: flex; }
@keyframes coperoFade { from { opacity: 0; } }

.copero-modal__box {
    width: 100%; max-width: 620px; padding: 20px;
    background: linear-gradient(180deg, #1b1e26, #101217);
    border: 1px solid rgba(255, 102, 0, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.copero-modal__head { position: relative; text-align: center; margin-bottom: 18px; }
.copero-modal__kicker { font-size: 10px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-orange); }
.copero-modal__head h3 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.copero-modal__close {
    position: absolute; top: -4px; right: -4px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06); border: none; color: var(--text-muted); font-size: 14px;
}
.copero-modal__close:hover { color: var(--brand-orange); background: rgba(255, 102, 0, 0.15); }

.copero-pack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.copero-chromo {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 10px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.12), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
    animation: coperoChromo 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards;
}
.copero-chromo:nth-child(2) { animation-delay: 0.05s; }
.copero-chromo:nth-child(3) { animation-delay: 0.1s; }
.copero-chromo:nth-child(4) { animation-delay: 0.15s; }
@keyframes coperoChromo { from { opacity: 0; transform: translateY(14px) scale(0.9); } }
.copero-chromo::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px;
    background: var(--brand-orange); border-radius: 0 0 4px 4px;
}
.copero-chromo:hover { transform: translateY(-3px); border-color: var(--brand-orange); box-shadow: 0 12px 28px rgba(255, 102, 0, 0.25); }
.copero-chromo:disabled { opacity: 0.45; }
.copero-chromo__crest {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: var(--bg-carbon); border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-display); font-size: 18px; color: var(--brand-orange);
}
.copero-chromo__crest img { width: 100%; height: 100%; object-fit: cover; }
.copero-chromo__name { font-family: var(--font-display); font-size: 17px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-light); }
.copero-chromo__club { font-size: 11px; color: var(--text-muted); }

/* Cromo de Leyenda EII (estilo Icon/Legend dorado) */
.copero-chromo--legend {
    background: linear-gradient(180deg, rgba(255, 207, 92, 0.22), rgba(255, 207, 92, 0.04) 45%, rgba(0, 0, 0, 0.1));
    border-color: var(--cop-gold);
    box-shadow: 0 0 22px rgba(255, 207, 92, 0.22);
}
.copero-chromo--legend::before { background: var(--cop-gold); }
.copero-chromo--legend:hover { border-color: var(--cop-gold); box-shadow: 0 12px 30px rgba(255, 207, 92, 0.4); }
.copero-chromo--legend .copero-chromo__name { color: var(--cop-gold); }
.copero-chromo__flag {
    position: absolute; top: 8px; right: -1px;
    font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 4px 0 0 4px;
    background: var(--cop-gold); color: #1a1204;
}
.copero-chromo__crest--legend {
    background: radial-gradient(circle, rgba(255, 207, 92, 0.28), rgba(0, 0, 0, 0.35));
    border-color: var(--cop-gold);
}
.copero-chromo__crest--dt { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); }
.copero-chromo--dt::before { background: var(--text-muted); }
.copero-chromo--dt:hover { border-color: var(--text-light); box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12); }

/* Cromo de jugador MVP (celeste, tipo "equipo de la semana") */
.copero-chromo--mvp {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.04) 45%, rgba(0, 0, 0, 0.1));
    border-color: var(--cop-mvp);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.22);
}
.copero-chromo--mvp::before { background: var(--cop-mvp); }
.copero-chromo--mvp:hover { border-color: var(--cop-mvp); box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4); }
.copero-chromo--mvp .copero-chromo__name { color: var(--cop-mvp); }
.copero-chromo__flag--mvp { background: var(--cop-mvp); color: #04212e; }

/* SVG genéricos (escudo Leyenda, pizarra DT) */
.crest-svg { width: 60%; height: 60%; }
.crest-svg--legend { fill: var(--cop-gold); }
.crest-svg--dt { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copero-chromo__crest--dt .crest-svg--dt { color: var(--text-light); }

/* -------------------------------------------------------- DT SLOT (draft) */
.copero-dt { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.copero-dt__badge {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 102, 0, 0.14); border: 1px solid var(--brand-orange-line);
    color: var(--brand-orange);
}
.copero-dt__badge .crest-svg--dt { color: var(--brand-orange); }
.copero-dt__badge--empty { background: rgba(255, 255, 255, 0.04); border-style: dashed; border-color: rgba(255, 255, 255, 0.25); color: var(--text-muted); }
.copero-dt__badge--empty .crest-svg--dt { color: var(--text-muted); }
.copero-dt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.copero-dt__body small { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.copero-dt__body b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copero-dt__pick, .copero-dt__change {
    flex-shrink: 0; padding: 7px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    background: var(--brand-orange); color: var(--bg-dark); border: none;
}
.copero-dt__change { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.copero-dt__change:hover { color: var(--brand-orange); }
.copero-dt.is-set { border-color: var(--brand-orange-line); }

/* -------------------------------------------------------- TORNEO */
.copero-torneo { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.copero-stage { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.copero-stage__top { display: flex; flex-direction: column; gap: 14px; }
.copero-stage__top .btn { align-self: center; width: auto; min-width: 220px; padding: 0 24px; }
.copero-stage__top .btn:disabled { opacity: 0.55; }

.copero-phase {
    align-self: center;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: var(--brand-orange-soft); border: 1px solid var(--brand-orange-line);
    font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--brand-orange);
}

.copero-standings { width: 100%; border-collapse: collapse; }
.copero-standings th {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted);
    padding: 8px; text-align: center; border-bottom: 1px solid var(--brand-orange-line);
}
.copero-standings th:nth-child(2) { text-align: left; }
.copero-standings td { padding: 9px 8px; font-size: 12.5px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.copero-standings td:nth-child(2) { text-align: left; }
.copero-standings__team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.copero-standings__team .crest,
.copero-standings__crest {
    width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: var(--bg-carbon); border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-display); font-size: 9px; color: var(--brand-orange);
}
.copero-standings__crest img { width: 100%; height: 100%; object-fit: cover; }
.copero-standings__pts { font-family: var(--font-display); font-size: 16px; color: var(--brand-orange); }
.copero-standings__me td { background: rgba(255, 102, 0, 0.14); }
.copero-standings__me td:nth-child(2) { font-weight: 800; }
.copero-standings__q td:first-child { color: var(--brand-orange); font-weight: 800; }
.copero-tag { font-size: 9px; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 4px; padding: 0 4px; }

/* Cruce de eliminatoria */
.copero-match {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    padding: 16px 10px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
}
.copero-match__team { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.copero-match__crest {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: var(--bg-carbon); border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-display); font-size: 17px; color: var(--brand-orange);
}
.copero-match__crest img { width: 100%; height: 100%; object-fit: cover; }
.copero-match__name { font-size: 12.5px; font-weight: 800; }
.copero-match__sub { font-size: 10px; color: var(--text-muted); }
.copero-match__score { font-family: var(--font-display); font-size: 34px; letter-spacing: 1px; }
.copero-match__score span { color: var(--text-muted); margin: 0 4px; }
.copero-match__score--vs { font-size: 20px; color: var(--text-muted); }
.copero-match__pen {
    grid-column: 1 / -1; text-align: center; margin-top: 4px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--cop-gold);
}
.copero-match--win { border-color: rgba(35, 197, 82, 0.45); box-shadow: 0 0 18px rgba(35, 197, 82, 0.12); }
.copero-match--lose { border-color: rgba(226, 59, 59, 0.4); }

/* Pantalla final */
.copero-result { text-align: center; padding: 26px 12px; border-radius: 12px; }
.copero-result__icon { font-size: 56px; display: block; line-height: 1; }
.copero-result__title { font-family: var(--font-display); font-size: clamp(24px, 7vw, 38px); text-transform: uppercase; margin: 10px 0 4px; }
.copero-result__sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.copero-result--win { background: rgba(35, 197, 82, 0.1); border: 1px solid rgba(35, 197, 82, 0.4); }
.copero-result--win .copero-result__title { color: var(--win); text-shadow: 0 0 18px rgba(35, 197, 82, 0.5); }
.copero-result--lose { background: rgba(226, 59, 59, 0.08); border: 1px solid rgba(226, 59, 59, 0.35); }
.copero-result--lose .copero-result__title { color: var(--loss); }

/* Bitácora (dentro del panel principal del torneo) */
.copero-log { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
.copero-log h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.copero-log h3 i { color: var(--brand-orange); margin-right: 7px; }
.copero-log ul { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.copero-log li { font-size: 12px; color: var(--text-muted); padding-left: 14px; position: relative; line-height: 1.45; }
.copero-log li::before { content: "▸"; position: absolute; left: 0; color: var(--brand-orange); }
.copero-log li:first-child { color: var(--text-light); font-weight: 600; }

/* -------------------------------------------------- MINI-CANCHA (torneo) */
.copero-mini { padding: 15px 15px 18px; }
.copero-mini__title { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.copero-mini__title i { color: var(--brand-orange); margin-right: 7px; }
.copero-mini-pitch {
    position: relative;
    width: 100%; max-width: 260px; margin: 0 auto;
    aspect-ratio: 68 / 102;
    border-radius: 10px; overflow: hidden;
    background: repeating-linear-gradient(0deg, var(--cop-turf-a) 0 10%, var(--cop-turf-b) 10% 20%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}
.mini-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 0.5; }
.copero-mini-pitch__nodes { position: absolute; inset: 0; }
.mini-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; }
.mini-node__disc {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: var(--bg-carbon); border: 1.5px solid var(--brand-orange);
    font-family: var(--font-display); font-size: 9px; color: var(--brand-orange);
}
.mini-node__disc img { width: 100%; height: 100%; object-fit: cover; }
.mini-node__disc .crest-svg--legend { width: 70%; height: 70%; }
.mini-node--legend .mini-node__disc { border-color: var(--cop-gold); background: radial-gradient(circle, rgba(255,207,92,0.25), var(--bg-carbon)); }
.mini-node--mvp .mini-node__disc { border-color: var(--cop-mvp); background: radial-gradient(circle, rgba(56,189,248,0.25), var(--bg-carbon)); }
.mini-node--mvp .mini-node__name { color: var(--cop-mvp); }
.mini-node__name {
    font-size: 8px; font-weight: 700; max-width: 46px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(5, 5, 5, 0.7); border-radius: 3px; padding: 0 3px;
}
.copero-mini__dt {
    display: flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 9px 11px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
}
.copero-mini__dt b { color: var(--text-light); }
.copero-mini__dt-icon {
    width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px;
    display: grid; place-items: center; color: var(--brand-orange);
    background: rgba(255, 102, 0, 0.14);
}
.copero-mini__meta { margin-top: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: center; }

/* Nodo Leyenda en la cancha del draft */
.pitch-node--legend .pitch-node__disc { border-color: var(--cop-gold); background: radial-gradient(circle, rgba(255, 207, 92, 0.28), var(--bg-carbon)); box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 14px rgba(255, 207, 92, 0.45); }
.pitch-node--legend .pitch-node__disc .crest-svg--legend { width: 66%; height: 66%; }
.pitch-node--legend .pitch-node__name { color: var(--cop-gold); }
.pitch-node--mvp .pitch-node__disc { border-color: var(--cop-mvp); background: radial-gradient(circle, rgba(56, 189, 248, 0.28), var(--bg-carbon)); box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 14px rgba(56, 189, 248, 0.45); }
.pitch-node--mvp .pitch-node__name { color: var(--cop-mvp); }

/* ============================================= Desktop (>= 768px) */
@media (min-width: 768px) {
    :root { --navbar-h: 66px; --footer-h: 70px; }

    .navbar { padding: 0 26px; gap: 20px; }
    .navbar__brand { font-size: 27px; }
    .navbar__link { font-size: 12px; padding: 8px 14px; }
    .navbar__alias { max-width: 160px; }

    .page-head__title { font-size: 58px; }

    .summary__grid { grid-template-columns: repeat(3, 1fr); }
    .groups { grid-template-columns: 1fr 1fr; gap: 30px 26px; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

    .field-row { grid-template-columns: 1fr 1fr; }

    .pred-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

    .team-stat-row { grid-template-columns: repeat(8, 1fr); }

    .bracket { flex-direction: row; align-items: flex-start; }
    .bracket__round { flex: 1 0 220px; min-width: 220px; }

    .copero-draft { grid-template-columns: 300px 1fr; align-items: start; }
    .copero-torneo { grid-template-columns: 1fr 290px; align-items: start; }
    .copero-pack { grid-template-columns: repeat(4, 1fr); }
    .pitch-node__disc { width: 52px; height: 52px; }
    .pitch-node__name { font-size: 11px; }
    .copero-pitch { max-width: 480px; }
    .copero-log ul { max-height: 260px; }

    .hero__cta { flex-direction: row; max-width: none; justify-content: center; }
    .hero__logo { width: 150px; }
}

@media (min-width: 1024px) {
    .summary { padding-top: 56px; }
}
