:root {
    --red: #b5121b;
    --red-dark: #7e0b11;
    --black: #0d0d0f;
    --ink: #1b1b20;
    --muted: #6c6c76;
    --line: #e6e6ea;
    --paper: #ffffff;
    --surface: #f5f5f7;
    --success: #167547;
    --warning: #b36a00;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--surface); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: var(--black); color: #fff; border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red); font-weight: 900; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }.brand small { color: #bdbdc5; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 18px; }.main-nav form { margin: 0; }
.link-button { border: 0; background: none; color: #fff; cursor: pointer; padding: 0; }
.page-shell { padding-block: 34px 64px; min-height: calc(100vh - 132px); }
.site-footer { background: var(--black); color: #bdbdc5; padding: 24px 0; font-size: .9rem; }
.hero { background: linear-gradient(125deg, var(--black), #25252b); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 58px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.16); }
.hero.compact { padding: 30px 36px; }.hero h1 { margin: 5px 0 8px; font-size: clamp(2rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }.hero.compact h1 { font-size: clamp(2rem, 4vw, 3.3rem); }.hero p { color: #c9c9cf; margin: 0; }
.eyebrow { color: var(--red); text-transform: uppercase; font-weight: 900; letter-spacing: .12em; font-size: .75rem; }
.hero .eyebrow { color: #ff6971; }.hero-actions, .button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--red); border-radius: 11px; background: var(--red); color: #fff; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--red-dark); }.button.secondary { background: transparent; border-color: #c9c9cf; color: inherit; }.hero .button.secondary { color: #fff; }.button.small { min-height: 38px; padding: 8px 12px; }
.section { margin-top: 40px; }.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }.section-heading h2 { margin: 3px 0 0; font-size: 1.65rem; letter-spacing: -.03em; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }.category-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: .2s ease; }.category-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(0,0,0,.08); border-color: #d5a4a7; }.category-card > span { color: var(--red); font-weight: 900; }.category-card h3 { margin: 26px 0 5px; font-size: 1.25rem; }.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }.game-list, .game-grid { display: grid; gap: 12px; }.game-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }.game-card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 15px; }.game-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .75rem; margin-bottom: 12px; }.game-meta span { background: var(--surface); border-radius: 999px; padding: 4px 7px; }.score-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 5px 0; }.score { min-width: 34px; text-align: center; border-radius: 8px; background: var(--black); color: #fff; padding: 5px 7px; font-size: 1.1rem; font-weight: 900; }
.standings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }.table-card > header { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 16px 18px; background: var(--black); color: #fff; }.table-card h3 { margin: 0; }.table-card header span { color: #bbb; font-size: .8rem; }.table-scroll { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }th { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }td:not(:nth-child(2)), th:not(:nth-child(2)) { text-align: center; }.rank { font-weight: 900; color: var(--red); }.table-card tbody tr:last-child td { border-bottom: 0; }.table-card tbody tr:hover { background: #fff8f8; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 16px; font-size: .9rem; }.breadcrumbs a:hover { color: var(--red); }.breadcrumbs strong { color: var(--ink); }
.alert { padding: 14px 17px; border-radius: 12px; margin-bottom: 16px; background: #eef3ff; border: 1px solid #cbd9ff; }.alert.success { background: #eaf8f1; border-color: #b7e3cb; color: #0e5b36; }.alert.danger { background: #fff0f0; border-color: #efbdbd; color: #85151b; }.alert.warning { background: #fff7e7; border-color: #f1d29c; }.alert ul { margin-bottom: 0; }
.empty-state, .auth-card { max-width: 620px; margin: 7vh auto; padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; text-align: center; }.empty-state h1, .auth-card h1 { font-size: 2.2rem; margin: 8px 0; }.empty-state p, .auth-card p, .muted { color: var(--muted); }.auth-card { max-width: 460px; text-align: left; }
.form-stack { display: grid; gap: 16px; margin-top: 24px; }.form-stack label, .filters label, .compact-field { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; }.form-stack input, .filters input, .filters select, .compact-field input, .admin-team input { border: 1px solid #d4d4da; border-radius: 10px; background: #fff; padding: 10px 12px; outline: none; }.form-stack input:focus, .filters input:focus, .filters select:focus, .admin-team input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,18,27,.1); }.check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 24px; }.stat-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 19px; }.stat-grid span { display: block; color: var(--muted); font-size: .8rem; }.stat-grid strong { display: block; font-size: 2rem; margin-top: 8px; }.stat-grid .warning strong { color: var(--warning); }.action-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }.action-panel h2 { margin: 5px 0; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 22px 0; }.admin-game-list { display: grid; gap: 9px; }.admin-game-row { display: grid; grid-template-columns: 140px minmax(160px,1fr) 24px minmax(160px,1fr) 80px auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }.admin-game-id strong, .admin-game-id small { display: block; }.admin-game-id small { color: var(--muted); margin-top: 4px; }.admin-team { display: grid; grid-template-columns: minmax(0,1fr) 70px; gap: 8px; align-items: center; }.admin-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }.admin-team input { text-align: center; font-weight: 900; }.versus { text-align: center; color: var(--muted); }.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
code { background: #eee; padding: 2px 6px; border-radius: 5px; }
.projector { background: #080809; color: #fff; overflow: hidden; min-height: 100vh; }.projector-header { height: 14vh; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px; padding: 18px 4vw; border-bottom: 5px solid var(--red); }.projector-header > strong { display: grid; place-items: center; width: 80px; height: 80px; background: var(--red); border-radius: 18px; font-size: 1.7rem; }.projector-header h1 { margin: 0; font-size: 2.4vw; }.projector-header p { margin: 4px 0 0; color: #aaa; }.projector-header time { font-size: 2.5vw; font-weight: 900; }.projector main { height: 78vh; position: relative; }.projector-slide { display: none; position: absolute; inset: 0; padding: 3vh 4vw; }.projector-slide.active { display: block; }.projector-title { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; margin-bottom: 2vh; }.projector-title span { color: #ff646d; font-size: 1.3vw; text-transform: uppercase; font-weight: 900; letter-spacing: .12em; }.projector-title h2 { margin: 0; font-size: 3vw; }.projector-title small { color: #aaa; font-size: 1.1vw; }.projector-table { background: #141416; border-radius: 20px; overflow: hidden; font-size: 1.6vw; }.projector-table th { background: #232328; color: #aaa; font-size: .9vw; }.projector-table th, .projector-table td { padding: 1.4vh 1.2vw; border-color: #303035; }.projector-table td:nth-child(1), .projector-table td:nth-child(6) { color: #ff646d; font-weight: 900; }.projector-table td:nth-child(2) { font-weight: 800; }.projector-footer { height: 8vh; display: flex; justify-content: center; align-items: center; gap: 4vw; color: #888; border-top: 1px solid #29292d; font-size: 1.1vw; }
@media (max-width: 800px) {
    .container { width: min(100% - 20px, 1180px); }.header-inner { min-height: 64px; }.brand small { display: none; }.main-nav { font-size: .85rem; }.page-shell { padding-top: 20px; }.hero, .hero.compact { padding: 25px 22px; border-radius: 18px; align-items: flex-start; flex-direction: column; }.two-columns { grid-template-columns: 1fr; gap: 0; }.standings-grid { grid-template-columns: 1fr; }.filters { grid-template-columns: 1fr; }.admin-game-row { grid-template-columns: 1fr; }.admin-team { grid-template-columns: 1fr 65px; }.versus { display: none; }.action-panel { align-items: flex-start; flex-direction: column; }.category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .category-grid { grid-template-columns: 1fr; }.table-card { margin-inline: -10px; border-radius: 0; }.auth-card { padding: 24px; } }

/* --- Logotipos / marca --- */
.brand { gap: 14px; }
.brand-logo { display: block; width: auto; }
.brand-logo-arc { height: 48px; }
.brand-logo-lince { height: 46px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.nav-admin { border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: .82rem; color: #fff; transition: background .18s ease, border-color .18s ease; }
.nav-admin:hover { background: var(--red); border-color: var(--red); }
.footer-inner { display: flex; align-items: center; gap: 18px; }
.footer-logo { height: 62px; width: auto; flex: none; }
.auth-logo { display: block; height: 84px; width: auto; margin: 4px auto 16px; }
@media (max-width: 800px) {
    .brand-logo-arc { height: 40px; }
    .brand-logo-lince { height: 38px; }
    .brand-text strong { font-size: .95rem; }
    .footer-logo { height: 48px; }
}
@media (max-width: 460px) {
    .brand-logo-lince { display: none; }
}
