@font-face { font-family: Anton; src: url(../fuentes/anton-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: block; }
@font-face { font-family: Anton; src: url(../fuentes/anton-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; font-display: block; }
@font-face { font-family: Inter; src: url(../fuentes/inter-latin.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: block; }
@font-face { font-family: Inter; src: url(../fuentes/inter-latin-ext.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; font-display: block; }
:root { --fondo: #0a0f1f; --texto: #f3f6ff; --suave: #9fb0d0; --oro: #f5b942; --demo: #ff4d6d; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif; }
main { display: flex; gap: 32px; justify-content: center; align-items: flex-start; padding: 16px; flex-wrap: wrap; }
.lienzo canvas { display: block; height: min(94vh, 1920px); max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; object-fit: contain; border-radius: 16px; }
.panel { flex: 1 1 420px; max-width: 760px; min-width: 0; }
.panel h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; color: var(--oro); letter-spacing: .5px; margin: 28px 0 8px; }
.demo { background: var(--demo); color: #fff; font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.controles { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
button, select { font: inherit; background: #1d2a4d; color: var(--texto); border: 1px solid #34467a; border-radius: 10px; padding: 9px 14px; cursor: pointer; }
button:hover { background: #26386a; }
.paso { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; color: var(--suave); }
.paso input { flex: 1 1 200px; accent-color: var(--oro); }
.tabla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #22305a; vertical-align: top; }
th { color: var(--suave); font-weight: 600; position: sticky; top: 0; background: var(--fondo); }
.liga { color: #141414; font-weight: 800; padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.honor { color: var(--suave); font-size: 13px; }
.honor b { color: var(--texto); }
.pie { color: var(--suave); font-size: 13px; margin-top: 24px; }
body.reel { overflow: hidden; }
body.reel main { padding: 0; display: block; }
body.reel .panel { display: none; }
body.reel .lienzo canvas { height: auto; width: 1080px; max-width: none; border-radius: 0; }
@media (max-width: 700px) { .lienzo canvas { height: auto; width: calc(100vw - 32px); } }
/* En directo (solo vista normal) */
.lienzo { position: relative; }
.en-directo { position: absolute; top: 11.6%; right: 12px; margin: 0; padding: 4px 10px; border-radius: 99px; background: rgba(10, 15, 31, .85); border: 1px solid #ff4d6d; color: #fff; font: 800 12px/1.4 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: .8px; pointer-events: none; }
.en-directo[hidden] { display: none; }
.en-directo span { color: #ff4d6d; animation: latido 1.4s ease-in-out infinite; }
.aviso-vivo { position: absolute; left: 50%; bottom: 4%; width: max-content; max-width: 88%; margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--oro); color: #141414; font-weight: 800; font-size: clamp(13px, 1.9vh, 18px); line-height: 1.3; text-align: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none; }
.aviso-vivo.visible { animation: aviso-vivo 4.3s ease forwards; }
@keyframes aviso-vivo { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.96); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 14%, 88% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -8px) scale(1); } }
@keyframes latido { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .en-directo span { animation: none; } .aviso-vivo.visible { animation: none; opacity: 1; transform: translate(-50%, 0); } }
body.reel .en-directo, body.reel .aviso-vivo { display: none; }
