@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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: Anton; src: url(../fuentes/anton-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }
@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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: Inter; src: url(../fuentes/inter-latin-ext.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }
:root { --oro: #ffd36b; --noche: #070b1f; --tinta: #f6f1e4; --suave: rgba(246, 241, 228, .7); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--noche); color: var(--tinta); font: 15px/1.4 Inter, system-ui, sans-serif; overflow: hidden; }
#belen, #capa { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#belen { touch-action: none; cursor: grab; }
#capa { pointer-events: none; }
#cinta-demo { position: fixed; z-index: 9; top: 0; left: 0; right: 0; background: #e0322b; color: #fff; text-align: center; font: 700 13px Inter, sans-serif; letter-spacing: .12em; padding: 4px; }
.cab { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 18px; pointer-events: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.cab h1 { margin: 0; font: 46px/1 Anton, Impact, sans-serif; letter-spacing: .01em; color: #fff; }
.cab h1 span { display: block; font-size: .62em; color: var(--oro); }
.lema { margin: 6px 0 0; color: var(--suave); font-weight: 600; }
.panel { position: fixed; top: 14px; right: 14px; width: min(330px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.tarjeta { display: flex; gap: 10px; align-items: center; background: rgba(10, 14, 38, .78); border: 1px solid rgba(255, 211, 107, .25); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
.tarjeta i { font-style: normal; font-size: 26px; }
.tarjeta span { display: block; font-size: 12px; color: var(--suave); text-transform: uppercase; letter-spacing: .08em; }
.tarjeta b { display: block; font: 24px/1.1 Anton, Impact, sans-serif; color: var(--oro); }
.tarjeta small { color: var(--suave); }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cifras div { background: rgba(10, 14, 38, .78); border-radius: 12px; padding: 8px; text-align: center; }
.cifras b { display: block; font: 26px/1 Anton, Impact, sans-serif; }
.cifras span { font-size: 11px; color: var(--suave); }
.botones { display: flex; gap: 6px; }
.botones button { flex: 1; background: rgba(255, 211, 107, .14); color: var(--tinta); border: 1px solid rgba(255, 211, 107, .4); border-radius: 10px; padding: 7px 4px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.botones button:hover { background: rgba(255, 211, 107, .28); }
details { background: rgba(10, 14, 38, .78); border-radius: 14px; padding: 8px 12px; }
summary { cursor: pointer; font: 18px Anton, Impact, sans-serif; letter-spacing: .02em; color: var(--oro); }
details ol { margin: 8px 0 4px; padding-left: 22px; }
details li { margin: 4px 0; }
#ranking li { display: flex; align-items: center; gap: 8px; }
#ranking img { width: 24px; height: 18px; border-radius: 3px; flex: none; }
#ranking .n { margin-left: auto; font-weight: 800; color: var(--oro); }
#ranking small { display: block; color: var(--suave); font-size: 11px; }
.vacio { color: var(--suave); font-style: italic; }
.pie { position: fixed; left: 18px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; color: var(--suave); font-size: 12px; pointer-events: none; }
@media (max-width: 760px) {
  .cab h1 { font-size: 32px; }
  .lema { font-size: 13px; }
  .panel { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; max-height: 46vh; }
  .pie { display: none; }
}

/* En directo (solo la vista normal) */
.en-directo { position: fixed; z-index: 8; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); background: rgba(200, 30, 40, .9); color: #fff; font: 800 12px Inter, sans-serif; letter-spacing: .14em; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 12px rgba(0, 0, 0, .4); pointer-events: none; animation: latido-directo 2s ease-in-out infinite; }
@keyframes latido-directo { 50% { box-shadow: 0 0 0 6px rgba(224, 50, 43, .25), 0 2px 12px rgba(0, 0, 0, .4); } }
.avisos-directo { position: fixed; z-index: 8; left: 18px; bottom: calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); pointer-events: none; }
.aviso-directo { background: rgba(10, 14, 38, .9); border: 1px solid rgba(255, 211, 107, .6); color: var(--tinta); border-radius: 14px; padding: 10px 14px; font: 600 15px Inter, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); animation: entra-aviso .5s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity .5s, transform .5s; }
.aviso-directo::before { content: '✨ '; }
.aviso-directo.fuera { opacity: 0; transform: translateY(8px); }
@keyframes entra-aviso { from { opacity: 0; transform: translateY(18px) scale(.92); } }
@media (max-width: 760px) {
  .en-directo { top: auto; bottom: calc(46vh + 20px); left: 10px; transform: none; }
  .avisos-directo { top: calc(96px + env(safe-area-inset-top, 0px)); bottom: auto; left: 10px; right: 10px; max-width: none; }
}
