/* Destello · pantallas de la app (invitado, muro, panel, crear, dueño) */
body.app { min-height: 100dvh; }
.oculto { display: none !important; }
.cargando { min-height: 100dvh; display: grid; place-items: center; text-align: center; color: var(--suave); }
.cargando .logo .chispa { width: 54px; height: 54px; }
.vacio { text-align: center; color: var(--tenue); padding: 48px 16px; }
.vacio span { font-size: 2.6rem; display: block; margin-bottom: 8px; }

/* ===== Invitado ===== */
.inv { max-width: 560px; margin: 0 auto; padding: 0 16px 110px; }
.inv-cab { position: sticky; top: 0; z-index: 30; background: rgba(21, 18, 46, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 0 -16px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--linea); }
.inv-cab h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-cab small { color: var(--tenue); font-size: .78rem; display: block; }
.mis-puntos { flex: none; display: flex; align-items: center; gap: 8px; background: var(--lima); color: var(--noche); border-radius: 999px; padding: 6px 12px 6px 6px; font-weight: 800; }
.mis-puntos .pos { background: var(--noche); color: var(--lima); border-radius: 999px; padding: 3px 8px; font-size: .8rem; }
.mis-puntos b { font: 800 1.15rem var(--titulo); font-variant-numeric: tabular-nums; }
.mis-puntos.salto { animation: salto .6s cubic-bezier(.2, .8, .2, 1.6); }
@keyframes salto { 40% { transform: scale(1.18); } }

.entrar { min-height: 100dvh; display: grid; align-content: center; gap: 18px; padding: 32px 0; }
.entrar .portada-evento { text-align: center; }
.entrar .portada-evento .emoji-grande { font-size: 3.4rem; display: block; margin-bottom: 6px; }
.entrar h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

.pestanas-inferior { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(13, 11, 32, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linea); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); }
.pestanas-inferior button { background: none; border: 0; color: var(--tenue); font: 700 .75rem var(--cuerpo); display: grid; justify-items: center; gap: 2px; padding: 8px 4px; cursor: pointer; border-radius: 12px; }
.pestanas-inferior button span { font-size: 1.35rem; }
.pestanas-inferior button[aria-selected='true'] { color: var(--lima); background: rgba(200, 242, 60, .08); }

.carril { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.carril::-webkit-scrollbar { display: none; }
.reto-chip { flex: none; scroll-snap-align: start; background: rgba(255, 255, 255, .06); border: 1.5px solid var(--linea); color: #fff; border-radius: 16px; padding: 10px 14px; font: 600 .9rem var(--cuerpo); cursor: pointer; text-align: left; display: grid; gap: 2px; min-width: 130px; max-width: 220px; transition: transform .2s, border-color .2s, background .2s; }
.reto-chip small { color: var(--lima); font-weight: 800; font-size: .75rem; }
.reto-chip.hecho small::after { content: ' · ✓ hecho'; color: var(--suave); }
.reto-chip[aria-pressed='true'] { background: var(--lima); color: var(--noche); border-color: var(--lima); transform: translateY(-2px); }
.reto-chip[aria-pressed='true'] small { color: var(--noche); }

.soltar-grande { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; min-height: 300px; border: 2.5px dashed rgba(200, 242, 60, .45); border-radius: 26px; background: rgba(200, 242, 60, .04); padding: 24px; transition: background .2s, border-color .2s, transform .2s; }
.soltar-grande.encima { background: rgba(200, 242, 60, .12); border-style: solid; border-color: var(--lima); transform: scale(1.01); }
.soltar-grande .grande-icono { font-size: 3.2rem; }
.soltar-grande h2 { font-size: 1.5rem; margin: 0; }
.soltar-grande p { color: var(--suave); margin: 0; font-size: .95rem; }
.botones-subir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.botones-subir .boton { width: 100%; }

.vista-previa { display: grid; gap: 14px; }
.vista-previa .marco { position: relative; border-radius: 22px; overflow: hidden; background: var(--noche-2); max-height: 56vh; display: grid; place-items: center; }
.vista-previa img { width: 100%; max-height: 56vh; object-fit: contain; }
.anillo { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 11, 32, .55); }
.anillo svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 8; }
.anillo .fondo-anillo { stroke: rgba(255, 255, 255, .15); }
.anillo .progreso { stroke: var(--lima); stroke-linecap: round; transition: stroke-dashoffset .2s; }
.anillo b { position: absolute; font: 800 1.2rem var(--titulo); }

.celebracion { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 12px; background: rgba(13, 11, 32, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; padding: 24px; animation: aparecer .3s; }
.celebracion .puntazo { font: 800 clamp(4rem, 22vw, 7rem)/1 var(--titulo); color: var(--lima); animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.5); text-shadow: 0 10px 50px rgba(200, 242, 60, .5); }
.celebracion ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--lavanda); }
.celebracion ul b { color: var(--lima); }
@keyframes puntazo { from { transform: scale(.2) rotate(-12deg); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; } }

.rejilla-fotos { columns: 2; column-gap: 10px; }
@media (min-width: 700px) { .rejilla-fotos { columns: 3; } }
.foto-tarjeta { break-inside: avoid; margin: 0 0 10px; display: block; position: relative; border-radius: 16px; overflow: hidden; background: var(--noche-2); }
@keyframes entrarFotoApp { from { opacity: 0; transform: scale(.9); } }
.foto-tarjeta img { width: 100%; height: auto; cursor: zoom-in; }
.foto-tarjeta .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(13, 11, 32, .9)); display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; font-size: .78rem; font-weight: 700; }
.foto-tarjeta .autor { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foto-tarjeta .pendiente-marca { position: absolute; top: 8px; left: 8px; }
.corazon { flex: none; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 999px; padding: 6px 10px; font: 800 .82rem var(--cuerpo); cursor: pointer; transition: transform .15s, background .2s; }
.corazon:active { transform: scale(.88); }
.corazon.si { background: var(--coral); }
.corazon.si .c { animation: latido .5s; }
@keyframes latido { 40% { transform: scale(1.5); } }
.corazon[disabled] { opacity: .6; cursor: default; }

.caja-luz { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 15, .94); display: grid; grid-template-rows: auto 1fr auto; padding: 14px; animation: aparecer .2s; }
.caja-luz img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 12px; align-self: center; }
.caja-luz .barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 4px; }
.caja-luz .cerrar { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.caja-luz .nota-ia { color: var(--lavanda); font-size: .9rem; }

.selector { display: inline-flex; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px; margin: 14px 0; }
.selector button { background: none; border: 0; color: var(--suave); font: 700 .9rem var(--cuerpo); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.selector button[aria-pressed='true'] { background: #fff; color: var(--noche); }
.lista-ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-ranking li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 12px 14px; position: relative; overflow: hidden; }
.lista-ranking li .barra-fondo { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .05); z-index: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.lista-ranking li > * { position: relative; z-index: 1; }
.lista-ranking .posicion { font: 800 1.1rem var(--titulo); text-align: center; }
.lista-ranking .nombre { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-ranking .nombre small { display: block; font-weight: 500; color: var(--tenue); font-size: .78rem; }
.lista-ranking .pts { font: 800 1.2rem var(--titulo); font-variant-numeric: tabular-nums; }
.lista-ranking li.yo { box-shadow: inset 0 0 0 2px var(--lima); }
.lista-ranking li.yo .nombre::after { content: ' (tú)'; color: var(--lima); }
.ganadores { display: grid; gap: 8px; margin-top: 10px; }
.ganador { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 8px; }
.ganador img, .ganador .sin { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--noche-3); display: grid; place-items: center; font-size: 1.4rem; }
.ganador small { color: var(--tenue); display: block; }
.estado-conexion { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 120; background: var(--coral); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }

/* ===== Muro (pantalla grande) ===== */
body.muro { overflow: hidden; height: 100vh; background: radial-gradient(ellipse at 20% 0%, #2A2272 0%, var(--noche) 55%); cursor: default; }
body.muro.sin-cursor { cursor: none; }
.muro-rejilla { height: 100vh; display: grid; grid-template-columns: 1fr clamp(300px, 26vw, 440px); grid-template-rows: auto 1fr auto; gap: 1.4vw; padding: 1.4vw; }
.muro-cab { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 2vw; }
.muro-cab h1 { font-size: clamp(1.6rem, 2.8vw, 3.2rem); margin: 0; }
.muro-cab .vivo { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(.8rem, 1vw, 1.1rem) var(--cuerpo); letter-spacing: .12em; color: var(--coral); }
.muro-cab .vivo i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); animation: latirMuro 1.6s infinite; }
@keyframes latirMuro { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 77, .7); } 70% { box-shadow: 0 0 0 14px rgba(255, 106, 77, 0); } }
.contadores { display: flex; gap: 2vw; }
.contadores div { text-align: right; }
.contadores b { display: block; font: 800 clamp(1.6rem, 2.6vw, 3rem)/1 var(--titulo); font-variant-numeric: tabular-nums; }
.contadores span { color: var(--suave); font-size: clamp(.7rem, .9vw, .95rem); font-weight: 600; }
.escenario { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 1vw; min-height: 0; }
.foco { position: relative; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .04); min-height: 0; display: grid; place-items: center; }
.foco .fondo-difuso { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.5) saturate(1.3); }
.foco img.principal { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.foco .entrada, .foco .ent-nueva { animation: entradaFoco 1s cubic-bezier(.2, .8, .2, 1.1); }
@keyframes entradaFoco { 0% { opacity: 0; transform: scale(1.25) rotate(2deg); filter: brightness(3); } 100% { opacity: 1; transform: none; filter: none; } }
.foco .ficha { position: absolute; left: 1.4vw; bottom: 1.4vw; right: 1.4vw; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4vw; }
.foco .quien { background: rgba(13, 11, 32, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: .9vw 1.2vw; max-width: 70%; }
.foco .quien b { font: 800 clamp(1.1rem, 1.8vw, 2rem) var(--titulo); display: block; }
.foco .quien span { color: var(--lavanda); font-size: clamp(.85rem, 1.1vw, 1.2rem); }
.foco .reto-foco { background: var(--lima); color: var(--noche); font: 800 clamp(.8rem, 1.1vw, 1.2rem) var(--cuerpo); padding: .6vw 1vw; border-radius: 999px; white-space: nowrap; }
.foco .nueva { position: absolute; top: 1.4vw; left: 1.4vw; background: var(--coral); color: #fff; font: 800 clamp(.8rem, 1vw, 1.1rem) var(--cuerpo); letter-spacing: .1em; padding: .5vw 1vw; border-radius: 999px; animation: puntazo .6s cubic-bezier(.2, .8, .2, 1.5); }
.foco .bocadillo { position: absolute; top: 1.4vw; right: 1.4vw; max-width: 46%; background: #fff; color: var(--noche); border-radius: 18px 18px 4px 18px; padding: .8vw 1.1vw; font-weight: 700; font-size: clamp(.85rem, 1.1vw, 1.25rem); box-shadow: var(--sombra); animation: puntazo .6s cubic-bezier(.2, .8, .2, 1.5); }
.tira { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8vw; height: clamp(80px, 13vh, 170px); }
.tira div { border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.tira img { width: 100%; height: 100%; object-fit: cover; animation: entrarFotoApp .6s; }
.lateral { display: grid; grid-template-rows: auto 1fr auto; gap: 1vw; min-height: 0; }
.panel-ranking { background: rgba(255, 255, 255, .05); border: 1px solid var(--linea); border-radius: 24px; padding: 1.2vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.panel-ranking h2 { font-size: clamp(1.1rem, 1.6vw, 1.8rem); margin: 0 0 1vw; display: flex; justify-content: space-between; align-items: center; }
.panel-ranking h2 small { font: 700 clamp(.65rem, .8vw, .85rem) var(--cuerpo); color: var(--suave); letter-spacing: .08em; text-transform: uppercase; }
.panel-ranking ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .6vw; }
.panel-ranking li { position: relative; display: grid; grid-template-columns: 2.2em 1fr auto; gap: .8vw; align-items: center; padding: .7vw .9vw; border-radius: 14px; background: rgba(255, 255, 255, .05); overflow: hidden; font-size: clamp(.85rem, 1.15vw, 1.3rem); }
.panel-ranking li .barra-fondo { position: absolute; inset: 0 auto 0 0; opacity: .22; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.panel-ranking li > * { position: relative; }
.panel-ranking li b.pts { font: 800 1.2em var(--titulo); font-variant-numeric: tabular-nums; }
.panel-ranking li .nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-ranking li .medalla { font-size: 1.3em; text-align: center; }
.panel-ranking li.primero { background: rgba(200, 242, 60, .14); box-shadow: inset 0 0 0 2px rgba(200, 242, 60, .6); }
.panel-ranking li.subio { animation: subio 1.2s; }
@keyframes subio { 0%, 100% { background: rgba(255, 255, 255, .05); } 30% { background: rgba(200, 242, 60, .35); } }
.qr-muro { display: grid; grid-template-columns: auto 1fr; gap: 1vw; align-items: center; background: #fff; color: var(--noche); border-radius: 22px; padding: 1vw; }
.qr-muro img { width: clamp(90px, 9vw, 170px); height: auto; }
.qr-muro b { font: 800 clamp(1rem, 1.5vw, 1.7rem)/1.1 var(--titulo); display: block; }
.qr-muro span { font-size: clamp(.75rem, .95vw, 1.05rem); font-weight: 600; color: #4b467a; }
.qr-muro code { display: inline-block; margin-top: .4vw; background: var(--noche); color: var(--lima); border-radius: 8px; padding: .2vw .6vw; font: 800 clamp(.9rem, 1.3vw, 1.5rem) var(--titulo); letter-spacing: .12em; }
.cinta-muro { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2vw; background: var(--lima); color: var(--noche); border-radius: 999px; padding: .7vw 1.4vw; font: 800 clamp(.9rem, 1.3vw, 1.5rem) var(--cuerpo); overflow: hidden; white-space: nowrap; }
.cinta-muro .marca { margin-left: auto; font-weight: 700; opacity: .7; font-size: .75em; }
.cinta-muro .texto { animation: aparecer .6s; }
.anuncio { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; align-content: center; text-align: center; background: rgba(13, 11, 32, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: aparecer .4s; }
.anuncio p { font: 800 clamp(1.2rem, 2.4vw, 2.6rem) var(--cuerpo); letter-spacing: .2em; text-transform: uppercase; color: var(--coral); margin: 0; }
.anuncio h2 { font-size: clamp(3rem, 9vw, 9rem); margin: .1em 0 0; color: var(--lima); animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.5); }
.boton-pc { position: fixed; right: 16px; bottom: 16px; z-index: 60; opacity: 0; transition: opacity .3s; }
body.muro:hover .boton-pc { opacity: 1; }
body.muro.sin-cursor .boton-pc { opacity: 0; }
@media (max-width: 860px) {
  body.muro { overflow: auto; height: auto; }
  .muro-rejilla { grid-template-columns: 1fr; height: auto; }
  .foco { height: 60vh; }
  .tira { grid-template-columns: repeat(4, 1fr); }
  .tira div:nth-child(n + 5) { display: none; }
}

/* ===== Panel del organizador / dueño ===== */
.panel-cab { border-bottom: 1px solid var(--linea); background: rgba(13, 11, 32, .5); }
.panel-cab .contenedor { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.panel-cuerpo { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 20px 80px; max-width: var(--ancho); margin: 0 auto; }
.panel-menu { display: grid; gap: 4px; align-content: start; position: sticky; top: 20px; }
.panel-menu button { text-align: left; background: none; border: 0; color: var(--suave); font: 600 1rem var(--cuerpo); padding: 12px 14px; border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.panel-menu button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.panel-menu button[aria-selected='true'] { background: rgba(200, 242, 60, .12); color: var(--lima); }
.contador-rojo { background: var(--coral); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 2px 8px; }
@media (max-width: 860px) {
  .panel-cuerpo { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .panel-menu { position: sticky; top: 0; z-index: 20; display: flex; overflow-x: auto; background: var(--noche); margin: 0 -20px; padding: 8px 20px; scrollbar-width: none; }
  .panel-menu button { flex: none; padding: 10px 14px; }
}
.panel-titulo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-titulo h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.estadisticas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .estadisticas { grid-template-columns: repeat(2, 1fr); } }
.estadistica { background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); border-radius: 16px; padding: 16px; }
.estadistica b { display: block; font: 800 1.9rem/1.1 var(--titulo); font-variant-numeric: tabular-nums; }
.estadistica span { color: var(--tenue); font-size: .85rem; font-weight: 600; }
.enlace-caja { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--linea); border-radius: 12px; padding: 6px 6px 6px 14px; margin: 10px 0; }
.enlace-caja code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--lavanda); }
.qr-panel { background: #fff; border-radius: 16px; padding: 10px; width: 150px; }
.aviso-caja { background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .35); color: var(--oro); border-radius: 14px; padding: 14px 16px; font-size: .92rem; margin: 12px 0; }
.aviso-caja.lima { background: rgba(200, 242, 60, .08); border-color: rgba(200, 242, 60, .35); color: var(--lima); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filtros button { background: rgba(255, 255, 255, .06); border: 1px solid var(--linea); color: var(--suave); border-radius: 999px; padding: 8px 14px; font: 600 .88rem var(--cuerpo); cursor: pointer; }
.filtros button[aria-pressed='true'] { background: #fff; color: var(--noche); border-color: #fff; }
.moderar { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.moderar .item { background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.moderar .item.pendiente { border-color: var(--oro); }
.moderar .item.oculta img { opacity: .35; filter: grayscale(1); }
.moderar img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.moderar .datos { padding: 10px 12px; font-size: .82rem; display: grid; gap: 4px; flex: 1; }
.moderar .datos small { color: var(--tenue); }
.moderar .acciones { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 0 10px 10px; }
.moderar .acciones .boton { padding: 9px 10px; font-size: .82rem; }
.ia-marca { font-size: .78rem; font-weight: 700; }
.ia-marca.ok { color: var(--lima); }
.ia-marca.mal { color: var(--coral); }
.fila-reto { display: grid; grid-template-columns: 64px 1fr 90px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fila-reto input { padding: 11px 12px; }
.fila-reto .emoji-in { text-align: center; font-size: 1.3rem; }
@media (max-width: 560px) { .fila-reto { grid-template-columns: 54px 1fr 70px; } .fila-reto .boton { grid-column: 1 / -1; } }
.sugerencias { display: grid; gap: 8px; margin: 14px 0; }
.sugerencias label { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 12px 14px; margin: 0; font-weight: 500; cursor: pointer; }
.sugerencias input { width: 20px; height: 20px; accent-color: var(--lima); }
.fila-equipo { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.fila-equipo .color { width: 32px; height: 32px; border-radius: 50%; }
input[type='color'] { width: 56px; height: 48px; border: 1.5px solid var(--linea); border-radius: 12px; background: none; padding: 4px; cursor: pointer; }
.cronica { white-space: pre-wrap; color: var(--lavanda); line-height: 1.75; }
.zona-peligro { border: 1px solid rgba(255, 106, 77, .4); border-radius: var(--radio); padding: 24px; margin-top: 32px; }
.plan-caja { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.plan-caja .tarjeta { padding: 18px; }
.plan-caja .precio { font-size: 1.8rem; margin: 4px 0 12px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tabla th, table.tabla td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
table.tabla th { color: var(--tenue); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.desplazable { overflow-x: auto; }

/* ===== Crear evento ===== */
.asistente { max-width: 720px; margin: 0 auto; padding: 40px 20px 100px; }
.progreso-pasos { display: flex; gap: 8px; margin-bottom: 32px; }
.progreso-pasos span { flex: 1; height: 6px; border-radius: 99px; background: var(--noche-3); transition: background .3s; }
.progreso-pasos span.activo { background: var(--lima); }
.tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tipos label { margin: 0; cursor: pointer; }
.tipos input { position: absolute; opacity: 0; }
.tipos .tipo { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1.5px solid var(--linea); transition: border-color .2s, background .2s, transform .2s; font-weight: 600; }
.tipos .tipo span { font-size: 2rem; }
.tipos input:checked + .tipo { border-color: var(--lima); background: rgba(200, 242, 60, .1); transform: translateY(-2px); }
.tipos input:focus-visible + .tipo { outline: 3px solid var(--lima); outline-offset: 2px; }
.botonera { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.listo { text-align: center; }
.listo .gran-check { font-size: 4rem; animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.5); }

/* ===== Cartel imprimible ===== */
body.cartel { background: #fff; color: var(--noche); }
.hoja { width: 210mm; min-height: 297mm; margin: 20px auto; padding: 22mm 18mm; background: #fff; color: var(--noche); display: grid; align-content: space-between; justify-items: center; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); position: relative; overflow: hidden; }
.hoja::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 14mm; background: var(--evento, #C8F23C); }
.hoja h1 { font-size: 52px; color: var(--noche); margin-top: 10mm; }
.hoja .sub { font: 600 22px var(--cuerpo); color: #4b467a; }
.hoja .qr-cartel { width: 115mm; padding: 6mm; border: 3px solid var(--noche); border-radius: 10mm; }
.hoja ol { text-align: left; font: 600 18px/1.5 var(--cuerpo); margin: 0; padding-left: 1.3em; }
.hoja .pie-cartel { font-size: 12px; color: #6b6699; max-width: 150mm; }
.hoja .codigo-cartel { font: 800 28px var(--titulo); letter-spacing: .2em; background: var(--noche); color: #C8F23C; padding: 4px 18px; border-radius: 10px; }
.no-imprimir { text-align: center; padding: 16px; }
@media print { .no-imprimir { display: none; } .hoja { margin: 0; box-shadow: none; } body.cartel { background: #fff; } @page { size: A4; margin: 0; } }

/* Los avisos flotan por encima de las pestañas del móvil */
body.app .avisos { bottom: calc(92px + env(safe-area-inset-bottom)); }
#filtro-galeria .reto-chip { white-space: nowrap; max-width: none; padding: 8px 14px; border-radius: 999px; }

/* ===== Animaciones · pantalla del invitado ===== */
#v-app.arranca .inv-cab { animation: bajaCab .6s cubic-bezier(.2, .8, .2, 1.1) backwards; }
#v-app.arranca .pestanas-inferior { animation: subePestanas .6s .15s cubic-bezier(.2, .8, .2, 1.1) backwards; }
@keyframes bajaCab { from { transform: translateY(-100%); opacity: 0; } }
@keyframes subePestanas { from { transform: translateY(100%); } }
.entrar .emoji-grande { animation: rebote 2.6s 1s ease-in-out infinite; }
.mis-puntos { position: relative; isolation: isolate; }
.mis-puntos::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; animation: brilloPulso 2.8s 2s infinite; }
.mis-puntos .pos.sube-pos { animation: subePos .9s cubic-bezier(.2, .8, .2, 1.6); }
@keyframes subePos { 0% { transform: translateY(10px) scale(.6); } 50% { transform: translateY(-6px) scale(1.25); background: var(--coral); color: #fff; } }

/* Pestañas: el panel entra desde el lado correcto y el icono salta */
.desde-der { animation: panelDer .42s cubic-bezier(.2, .8, .2, 1); }
.desde-izq { animation: panelIzq .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelDer { from { opacity: 0; transform: translateX(26px); } }
@keyframes panelIzq { from { opacity: 0; transform: translateX(-26px); } }
.pestanas-inferior button { position: relative; transition: color .25s, background .25s; }
.pestanas-inferior button span { transition: transform .3s cubic-bezier(.2, .8, .2, 1.6); }
.pestanas-inferior button[aria-selected='true'] span { transform: translateY(-2px) scale(1.12); }
.pestanas-inferior button.salta span { animation: rebote .6s; }
.pestanas-inferior button::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--lima); transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1.3); }
.pestanas-inferior button[aria-selected='true']::before { transform: scaleX(1); }
.pestanas-inferior button.con-novedad::after { content: ''; position: absolute; top: 6px; left: calc(50% + 10px); width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--noche); animation: puntoNuevo 1.6s infinite; }
@keyframes puntoNuevo { 0% { transform: scale(0); } 20% { transform: scale(1.3); } 30%, 100% { transform: scale(1); } 60% { box-shadow: 0 0 0 2px var(--noche), 0 0 0 8px rgba(255, 106, 77, 0); } }

/* Retos: el elegido «salta» y la zona de subida respira */
.reto-chip { transition: transform .25s cubic-bezier(.2, .8, .2, 1.5), border-color .2s, background .25s, box-shadow .3s; }
.reto-chip:active { transform: scale(.94); }
.reto-chip[aria-pressed='true'] { box-shadow: 0 8px 24px -8px rgba(200, 242, 60, .6); }
.reto-chip.pop { animation: chipPop .5s cubic-bezier(.2, .8, .2, 1.6); }
@keyframes chipPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08) translateY(-3px); } }
.soltar-grande { animation: respira 3.2s ease-in-out infinite; }
@keyframes respira { 50% { border-color: rgba(200, 242, 60, .8); box-shadow: 0 0 40px -10px rgba(200, 242, 60, .35) inset; } }
.soltar-grande .grande-icono { display: inline-block; animation: flotaIcono 3s ease-in-out infinite; }
@keyframes flotaIcono { 50% { transform: translateY(-8px) rotate(-6deg); } }
.soltar-grande.cambia-reto h2 { animation: entraEscalon .45s cubic-bezier(.2, .8, .2, 1.2); }
.entra-previa { animation: entraEscalon .45s cubic-bezier(.2, .8, .2, 1.1); }
.vista-previa.subiendo .marco img { animation: subiendoFoto 1.4s ease-in-out infinite; }
@keyframes subiendoFoto { 50% { transform: scale(.97); filter: brightness(.85); } }
.anillo b { animation: latido 1s infinite; }

/* Celebración con rayos girando */
.celebracion { overflow: hidden; }
.celebracion > :not(.rayos) { position: relative; z-index: 1; }
.celebracion .rayos { position: absolute; left: 50%; top: 40%; width: 160vmax; height: 160vmax; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(200, 242, 60, .13) 0 8deg, transparent 8deg 20deg); mask: radial-gradient(circle, #000 0 18%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); animation: girarSuave 14s linear infinite, aparecer .8s; pointer-events: none; }
.celebracion .puntazo { font-variant-numeric: tabular-nums; }
.celebracion ul li { font-size: 1.05rem; }

/* Galería: solo las fotos nuevas entran, en cascada */
.foto-tarjeta { transition: transform .25s cubic-bezier(.2, .8, .2, 1.3), box-shadow .3s; }
.foto-tarjeta.entra { animation: entrarFotoApp .6s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes entrarFotoApp { from { opacity: 0; transform: translateY(16px) scale(.9); filter: blur(6px); } }
.foto-tarjeta:active { transform: scale(.97); }
.foto-tarjeta img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .foto-tarjeta:hover img { transform: scale(1.05); } .foto-tarjeta:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); } }
.corazon .c { display: inline-block; }
.corazon:not([disabled]):hover .c { animation: latido .6s; }

/* Foto ampliada: entra con zoom */
.caja-luz:not(.fija) img { animation: zoomCaja .45s cubic-bezier(.2, .8, .2, 1.1); }
.caja-luz:not(.fija) .barra { animation: entraEscalon .45s .1s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes zoomCaja { from { opacity: 0; transform: scale(.82); } }
.caja-luz .cerrar { transition: transform .3s cubic-bezier(.2, .8, .2, 1.5), background .2s; }
.caja-luz .cerrar:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .2); }

/* Ranking: quien sube brilla, el líder lleva corona animada */
.lista-ranking li.subio { animation: subioInv 1.4s ease-out; }
.lista-ranking li.gana .pts { animation: ganaPts .8s cubic-bezier(.2, .8, .2, 1.6); color: var(--lima); }
@keyframes subioInv { 0% { background: rgba(200, 242, 60, .38); transform: scale(1.03); } 100% { background: rgba(255, 255, 255, .05); } }
@keyframes ganaPts { 40% { transform: scale(1.3); } }
.lista-ranking li.lider { background: linear-gradient(100deg, rgba(252, 211, 77, .14), rgba(255, 255, 255, .05) 60%); }
.lista-ranking li.lider .posicion { display: inline-block; animation: corona 2.4s ease-in-out infinite; }
@keyframes corona { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.15); } }
.lista-ranking li.yo { animation: miFila 2.6s ease-in-out infinite; }
@keyframes miFila { 50% { box-shadow: inset 0 0 0 2px var(--lima), 0 0 22px -6px rgba(200, 242, 60, .6); } }
.selector button { transition: background .3s, color .3s, transform .2s; }
.selector button:active { transform: scale(.94); }
.ganador { transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.ganador:active { transform: scale(.98); }
.estado-conexion { animation: entrarAvisoV .4s cubic-bezier(.2, .8, .2, 1.4), latirMuro 1.6s infinite; }

@media (prefers-reduced-motion: reduce) {
  #v-app.arranca .inv-cab, #v-app.arranca .pestanas-inferior, .entrar .emoji-grande, .mis-puntos::after, .desde-der, .desde-izq,
  .soltar-grande, .soltar-grande .grande-icono, .celebracion .rayos, .foto-tarjeta.entra, .caja-luz img, .caja-luz .barra,
  .lista-ranking li, .lista-ranking li .posicion, .lista-ranking .pts, .anillo b, .vista-previa.subiendo .marco img, .pestanas-inferior button.con-novedad::after { animation: none !important; }
}
.lista-ranking li.yo.subio { animation: subioInv 1.4s ease-out, miFila 2.6s 1.4s ease-in-out infinite; }

/* ===== Animaciones · pantalla grande ===== */
/* Fondo aurora que se mueve despacio */
body.muro::before, body.muro::after { content: ''; position: fixed; z-index: 0; border-radius: 50%; filter: blur(110px); pointer-events: none; }
body.muro::before { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: rgba(200, 242, 60, .16); animation: deriva1 24s ease-in-out infinite alternate; }
body.muro::after { width: 50vw; height: 50vw; right: -14vw; bottom: -20vw; background: rgba(255, 106, 77, .18); animation: deriva3 28s ease-in-out infinite alternate; }
.muro-rejilla { position: relative; z-index: 1; }
#m-app.arranca .muro-cab { animation: bajaCab .8s cubic-bezier(.2, .8, .2, 1.1) backwards; }
#m-app.arranca .escenario { animation: entraEscalon .9s .15s cubic-bezier(.2, .8, .2, 1.05) backwards; }
#m-app.arranca .lateral > * { animation: entraLateral .8s cubic-bezier(.2, .8, .2, 1.1) backwards; }
#m-app.arranca .lateral > :nth-child(3) { animation-delay: .35s; }
#m-app.arranca .cinta-muro { animation: subePestanas .8s .45s cubic-bezier(.2, .8, .2, 1.1) backwards; }
@keyframes entraLateral { from { opacity: 0; transform: translateX(40px); } }
.muro-cab h1 { background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--lima) 50%, #fff 60%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillar 7s linear infinite; }
.contadores div.sube-num b { animation: subeNum .7s cubic-bezier(.2, .8, .2, 1.6); color: var(--lima); }
@keyframes subeNum { 40% { transform: translateY(-6px) scale(1.18); } }
.contadores b { transition: color 1.2s; }

/* Foto principal: entradas variadas + zoom lento tipo documental */
.foco img.principal { --dur: 7s; transform-origin: 50% 50%; }
.foco .ent-zoom { animation: entZoom 1s cubic-bezier(.2, .8, .2, 1.05), kenBurns var(--dur) 1s linear forwards; }
.foco .ent-lado { animation: entLado .9s cubic-bezier(.2, .8, .2, 1.05), kenBurns2 var(--dur) .9s linear forwards; }
.foco .ent-giro { animation: entGiro 1.1s cubic-bezier(.2, .8, .2, 1.1), kenBurns var(--dur) 1.1s linear forwards; }
.foco .ent-iris { animation: entIris 1.1s cubic-bezier(.6, 0, .2, 1), kenBurns2 var(--dur) 1.1s linear forwards; }
.foco .ent-cae { animation: entCae 1s cubic-bezier(.2, .8, .2, 1.25), kenBurns var(--dur) 1s linear forwards; }
.foco .ent-nueva { animation: entradaFoco 1s cubic-bezier(.2, .8, .2, 1.1), kenBurns var(--dur) 1s linear forwards; }
@keyframes entZoom { from { opacity: 0; transform: scale(.7); filter: blur(12px); } }
@keyframes entLado { from { opacity: 0; transform: translateX(14%) rotate(3deg); } }
@keyframes entGiro { from { opacity: 0; transform: perspective(1200px) rotateY(-70deg) scale(.85); } }
@keyframes entIris { from { clip-path: circle(0% at 50% 50%); filter: brightness(1.8); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes entCae { from { opacity: 0; transform: translateY(-18%) rotate(-4deg) scale(.95); } }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -.5%); } }
@keyframes kenBurns2 { from { transform: scale(1.06) translate(1%, .5%); } to { transform: scale(1); } }
.foco .fondo-difuso { animation: aparecer 1.2s, derivaFondo 20s ease-in-out infinite alternate; }
@keyframes derivaFondo { to { transform: scale(1.12) translate(-2%, 1%); } }
.foco .flash { position: absolute; inset: 0; background: #fff; pointer-events: none; animation: flash .7s ease-out forwards; z-index: 3; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.foco .quien { animation: entraLateralIzq .7s .35s cubic-bezier(.2, .8, .2, 1.2) backwards; }
.foco .reto-foco { animation: chipPop .7s .55s cubic-bezier(.2, .8, .2, 1.6) backwards; }
.foco .bocadillo { animation: puntazo .6s .7s cubic-bezier(.2, .8, .2, 1.5) backwards; transform-origin: 100% 100%; }
.foco .nueva { animation: puntazo .6s cubic-bezier(.2, .8, .2, 1.5), latirMuro 1.4s .6s infinite; }
@keyframes entraLateralIzq { from { opacity: 0; transform: translateX(-30px); } }
.foco .quien > span.late { display: inline-block; animation: latido .6s; }
.tiempo-foco { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .08); z-index: 2; }
.tiempo-foco i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lima), var(--cielo)); transform-origin: 0 50%; animation: tiempoFoco linear forwards; box-shadow: 0 0 12px var(--lima); }
@keyframes tiempoFoco { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.foco .vacio { animation: aparecer .8s; }
.foco .vacio span { animation: rebote 2.4s ease-in-out infinite; display: inline-block; font-size: 5rem; }
.foco .vacio::before { content: ''; position: absolute; left: 50%; top: 50%; width: 40vmin; height: 40vmin; translate: -50% -50%; border-radius: 50%; border: 2px dashed rgba(200, 242, 60, .35); animation: girarSuave 30s linear infinite; pointer-events: none; }

/* Tira: las nuevas entran deslizando, la que está en pantalla se marca */
.tira div { position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1.3), box-shadow .4s, opacity .4s; }
.tira img { animation: none; }
.tira .nueva-tira { animation: entraTira .7s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes entraTira { from { opacity: 0; transform: translateX(-30px) scale(.8); } }
.tira .actual { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--lima), 0 12px 26px -8px rgba(200, 242, 60, .5); }
.tira .hueco-tira { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, rgba(255, 255, 255, .06) 10px 20px); }

/* Ranking: corona que baila, puntos que cuentan, nuevo líder con destello */
.panel-ranking li.primero .medalla { display: inline-block; animation: corona 2.4s ease-in-out infinite; }
.panel-ranking li.primero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); background-size: 250% 100%; animation: brillar 4s linear infinite; pointer-events: none; }
.panel-ranking li.gana b.pts { animation: ganaPts .8s cubic-bezier(.2, .8, .2, 1.6); color: var(--lima); }
.panel-ranking li.nuevo-lider { animation: nuevoLider 1.6s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes nuevoLider { 0% { transform: scale(1); } 20% { transform: scale(1.08); box-shadow: inset 0 0 0 3px var(--lima), 0 0 40px rgba(200, 242, 60, .6); } 100% { transform: none; } }
.panel-ranking h2 small { display: inline-flex; align-items: center; gap: 6px; }
.panel-ranking h2 small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: latirMuro 1.6s infinite; }

/* QR: respira y brilla para llamar la atención */
.qr-muro { position: relative; overflow: hidden; animation: respiraQr 4s ease-in-out infinite; }
.qr-muro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(200, 242, 60, .45) 50%, transparent 65%); background-size: 300% 100%; animation: brillar 5s linear infinite; pointer-events: none; mix-blend-mode: multiply; }
@keyframes respiraQr { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 242, 60, .5); } 50% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(200, 242, 60, 0); } }
.qr-muro b::after { content: ' 👇'; display: inline-block; animation: rebote 1.8s ease-in-out infinite; }

/* Cinta de abajo: la frase cambia deslizando */
.cinta-muro .texto { animation: none; display: inline-block; }
.cinta-muro { position: relative; }
.cinta-muro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); background-size: 300% 100%; animation: brillar 6s linear infinite; pointer-events: none; }

/* Corazones que suben cuando alguien vota */
.corazon-muro { position: fixed; z-index: 140; pointer-events: none; font-size: clamp(1.6rem, 2.6vw, 3rem); translate: -50% 0; opacity: 0; animation: subeCorazon 2.8s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes subeCorazon { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; transform: translate(calc(var(--x) * .3), -6vh) scale(1.15); } 100% { opacity: 0; transform: translate(var(--x), -45vh) scale(.9) rotate(18deg); } }

/* Anuncio de nuevo líder: rayos, corona y nombre gigante */
.anuncio { overflow: hidden; }
.anuncio .rayos { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(252, 211, 77, .14) 0 7deg, transparent 7deg 18deg); mask: radial-gradient(circle, #000 0 15%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0 15%, transparent 55%); animation: girarSuave 18s linear infinite, aparecer 1s; }
.anuncio-caja { position: relative; z-index: 1; }
.anuncio .corona-grande { display: block; font-size: clamp(4rem, 9vw, 9rem); animation: coronaCae 1s cubic-bezier(.2, .8, .2, 1.5) backwards, corona 2.4s 1s ease-in-out infinite; }
@keyframes coronaCae { from { opacity: 0; transform: translateY(-60vh) rotate(-30deg); } }
.anuncio p { animation: entraEscalon .6s .3s cubic-bezier(.2, .8, .2, 1.2) backwards; }
.anuncio h2 { animation: puntazo .9s .45s cubic-bezier(.2, .8, .2, 1.5) backwards; text-shadow: 0 0 60px rgba(200, 242, 60, .6); }

@media (prefers-reduced-motion: reduce) {
  body.muro::before, body.muro::after, .muro-cab h1, .foco img.principal, .foco .fondo-difuso, .tiempo-foco i, .foco .vacio span, .foco .vacio::before,
  .panel-ranking li, .panel-ranking li .medalla, .panel-ranking li::after, .qr-muro, .qr-muro::after, .qr-muro b::after, .cinta-muro::after, .anuncio *, #m-app.arranca * { animation: none !important; }
  .corazon-muro { display: none; }
}

/* ===== Animaciones · comunes de la app ===== */
.cargando .logo .chispa { animation: girarSuave 2.4s cubic-bezier(.5, 0, .5, 1) infinite, latidoLogo 1.2s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(200, 242, 60, .55)); }
@keyframes latidoLogo { 50% { scale: 1.15; } }
.cargando p { animation: aparecer .8s .2s backwards; }
.pop { animation: chipPop .5s cubic-bezier(.2, .8, .2, 1.6); }
.llega { animation: llega .55s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes llega { from { opacity: 0; transform: translateY(-12px) scale(.95); box-shadow: 0 0 0 3px var(--lima); } }
.cambio { animation: cambio 1.1s ease-out; }
@keyframes cambio { 0% { box-shadow: 0 0 0 3px var(--lima), 0 0 30px rgba(200, 242, 60, .5); transform: scale(1.03); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
.copiado { animation: copiado .5s cubic-bezier(.2, .8, .2, 1.6); }
@keyframes copiado { 40% { transform: scale(1.15); background: var(--lima); color: var(--noche); } }

/* Panel del organizador */
#p-app.arranca .panel-cab { animation: bajaCab .6s cubic-bezier(.2, .8, .2, 1.1) backwards; }
.panel-menu button { position: relative; transition: background .25s, color .25s, padding-left .3s cubic-bezier(.2, .8, .2, 1.3); }
.panel-menu button::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--lima); transform: scaleY(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1.4); }
.panel-menu button[aria-selected='true']::before { transform: scaleY(1); }
@media (min-width: 861px) { .panel-menu button:hover, .panel-menu button[aria-selected='true'] { padding-left: 20px; } }
@media (max-width: 860px) { .panel-menu button::before { left: 25%; right: 25%; top: auto; bottom: 2px; width: auto; height: 3px; transform: scaleX(0); } .panel-menu button[aria-selected='true']::before { transform: scaleX(1); } }
#contador-pendientes:not(.oculto) { animation: puntoNuevo 1.8s infinite; display: inline-block; }
.estadistica { transition: transform .3s cubic-bezier(.2, .8, .2, 1.4), border-color .3s, background .3s; }
.estadistica:hover { transform: translateY(-4px); border-color: rgba(200, 242, 60, .4); background: rgba(200, 242, 60, .05); }
.qr-panel { transition: transform .4s cubic-bezier(.2, .8, .2, 1.5); }
.qr-panel:hover { transform: scale(1.06) rotate(-2deg); }
#cab-vivo { transition: opacity .4s; }
.moderar .item { transition: transform .3s cubic-bezier(.2, .8, .2, 1.3), border-color .3s, box-shadow .3s; }
.moderar .item:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); }
.moderar .item img { transition: filter .4s, opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.moderar .item:hover img { transform: scale(1.04); }
.moderar .item.pendiente { animation: pendienteBrilla 2.4s ease-in-out infinite; }
@keyframes pendienteBrilla { 50% { box-shadow: 0 0 0 3px rgba(252, 211, 77, .35); } }
.moderar .item.llega { animation: llega .6s cubic-bezier(.2, .8, .2, 1.2); }
.ia-marca:not(.ok):not(.mal) { animation: latidoTexto 1.6s ease-in-out infinite; }
@keyframes latidoTexto { 50% { opacity: .5; } }
.fila-reto, .fila-equipo { transition: background .3s; border-radius: 12px; }
.fila-equipo .color { transition: transform .4s cubic-bezier(.2, .8, .2, 1.6); }
.fila-equipo:hover .color { transform: scale(1.2) rotate(20deg); }
.sugerencias label { transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.sugerencias label:hover { background: rgba(200, 242, 60, .08); transform: translateX(4px); }
.sugerencias input:checked ~ b { color: var(--lima); }
#re-ia:disabled, #cr-generar:disabled { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); background-size: 250% 100%; animation: brillar 1.6s linear infinite; }
.plan-caja .tarjeta { transition: transform .3s cubic-bezier(.2, .8, .2, 1.4), border-color .3s; }
.plan-caja .tarjeta:hover { transform: translateY(-5px); }
.plan-caja .plan-actual { border-color: var(--lima); box-shadow: 0 0 0 1px var(--lima), 0 14px 40px -18px rgba(200, 242, 60, .7); }
.zona-peligro .boton.peligro:hover { animation: tiembla .4s; }
@keyframes tiembla { 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }
.interruptor input { transition: background .3s; }

/* Crear evento */
.progreso-pasos span { position: relative; overflow: hidden; }
.progreso-pasos span.activo { box-shadow: 0 0 12px rgba(200, 242, 60, .5); }
.progreso-pasos span.llena { animation: llenaBarra .6s cubic-bezier(.2, .8, .2, 1); transform-origin: 0 50%; }
@keyframes llenaBarra { from { transform: scaleX(0); } }
.tipos .tipo { transition: border-color .2s, background .2s, transform .3s cubic-bezier(.2, .8, .2, 1.5), box-shadow .3s; }
.tipos .tipo:hover { transform: translateY(-3px); }
.tipos .tipo span { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1.6); }
.tipos .tipo:hover span { transform: scale(1.15) rotate(-8deg); }
.tipos input:checked + .tipo { box-shadow: 0 10px 26px -12px rgba(200, 242, 60, .7); }
.tipos input:checked + .tipo span { animation: rebote .7s; }
.listo .gran-check { display: inline-block; animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.5), corona 3s 1s ease-in-out infinite; }
.listo img { animation: respiraQr 4s 1s ease-in-out infinite; }

/* Panel del dueño */
#a-lista tr { transition: background .25s; }
#a-lista tr:hover { background: rgba(255, 255, 255, .04); }

/* Cartel: solo en pantalla, nunca al imprimir */
@media screen {
  .hoja { animation: entraHoja .8s cubic-bezier(.2, .8, .2, 1.1); }
  @keyframes entraHoja { from { opacity: 0; transform: translateY(30px) rotate(-1deg) scale(.97); } }
  .hoja .qr-cartel { animation: puntazo .8s .3s cubic-bezier(.2, .8, .2, 1.4) backwards; }
  .no-imprimir .boton { animation: chipPop .6s .6s cubic-bezier(.2, .8, .2, 1.6) backwards; }
}

@media (prefers-reduced-motion: reduce) {
  .cargando .logo .chispa, .pop, .llega, .cambio, .copiado, #p-app.arranca .panel-cab, #contador-pendientes, .moderar .item, .ia-marca, #re-ia, #cr-generar,
  .progreso-pasos span, .tipos .tipo span, .listo .gran-check, .listo img, .hoja, .hoja .qr-cartel, .no-imprimir .boton, .zona-peligro .boton { animation: none !important; }
}

/* ===== Novedades · invitado ===== */
/* Reto relámpago */
.banner-relampago { position: sticky; top: 62px; z-index: 29; width: calc(100% + 32px); margin: 0 -16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border: 0; cursor: pointer; text-align: left; color: var(--noche); font: inherit; background: linear-gradient(100deg, var(--oro), var(--lima), var(--oro)); background-size: 200% 100%; animation: brillar 3s linear infinite, entraEscalon .5s cubic-bezier(.2, .8, .2, 1.3); box-shadow: 0 10px 30px -10px rgba(252, 211, 77, .7); }
.banner-relampago .rayo { font-size: 1.6rem; animation: rayoLate 1s ease-in-out infinite; }
@keyframes rayoLate { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(-12deg); } }
.banner-relampago .txt { display: grid; min-width: 0; }
.banner-relampago .txt small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.banner-relampago .txt > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.banner-relampago .cuenta { font: 800 1.35rem var(--titulo); font-variant-numeric: tabular-nums; background: var(--noche); color: var(--oro); border-radius: 12px; padding: 4px 10px; }
.banner-relampago.urgente .cuenta { background: var(--coral); color: #fff; animation: latido .5s infinite; }
.reto-chip.chip-relampago { border-color: var(--oro); box-shadow: 0 0 0 2px rgba(252, 211, 77, .35), 0 0 22px -4px rgba(252, 211, 77, .7); animation: chipRayo 1.4s ease-in-out infinite; }
.reto-chip.chip-relampago small { color: var(--oro); }
.reto-chip.chip-relampago[aria-pressed='true'] { background: var(--oro); border-color: var(--oro); }
.reto-chip.chip-relampago[aria-pressed='true'] small { color: var(--noche); }
@keyframes chipRayo { 50% { box-shadow: 0 0 0 4px rgba(252, 211, 77, .2), 0 0 30px 0 rgba(252, 211, 77, .8); } }
.anuncio-rel { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(13, 11, 32, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; animation: flashRel .6s ease-out; }
@keyframes flashRel { 0% { background: rgba(252, 211, 77, .95); } 100% { background: rgba(13, 11, 32, .9); } }
.anuncio-rel .rayos { position: absolute; left: 50%; top: 40%; width: 160vmax; height: 160vmax; translate: -50% -50%; background: repeating-conic-gradient(rgba(252, 211, 77, .16) 0 8deg, transparent 8deg 20deg); mask: radial-gradient(circle, #000 0 18%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); animation: girarSuave 10s linear infinite; pointer-events: none; }
.anuncio-rel .caja { position: relative; display: grid; gap: 8px; justify-items: center; }
.anuncio-rel .rayo-grande { font-size: 6rem; line-height: 1; animation: puntazo .7s cubic-bezier(.2, .8, .2, 1.6), rayoLate 1s .7s infinite; filter: drop-shadow(0 0 30px rgba(252, 211, 77, .9)); }
.anuncio-rel .ceja { color: var(--oro); margin: 0; }
.anuncio-rel h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); margin: 0; animation: entraEscalon .5s .2s cubic-bezier(.2, .8, .2, 1.3) backwards; }
.anuncio-rel .intro { margin: 0 0 10px; animation: entraEscalon .5s .35s backwards; }
.anuncio-rel .boton { background: var(--oro); animation: chipPop .6s .5s cubic-bezier(.2, .8, .2, 1.6) backwards; }

/* Reacciones y guardar foto */
.caja-luz .reacciones { justify-content: center; gap: 6px; flex-wrap: wrap; }
.caja-luz .reacciones button, .caja-luz .guardar-foto { background: rgba(255, 255, 255, .1); border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; text-decoration: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1.6), background .2s; }
.caja-luz .reacciones button:active { transform: scale(.85); }
.caja-luz .reacciones button:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px) scale(1.1); }
.caja-luz .guardar-foto { font-size: 1.1rem; margin-left: 8px; }
.compartir { width: 100%; margin-top: 16px; }

/* Insignias */
.titulo-ins { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.titulo-ins small { font: 700 .8rem var(--cuerpo); color: var(--tenue); }
.insignias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insignia { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); opacity: .55; }
.insignia .ico { font-size: 1.8rem; filter: grayscale(1); }
.insignia b { font-size: .8rem; }
.insignia small { font-size: .68rem; color: var(--tenue); line-height: 1.25; }
.insignia.si { opacity: 1; border-color: rgba(200, 242, 60, .45); background: radial-gradient(circle at 50% 0%, rgba(200, 242, 60, .14), rgba(255, 255, 255, .03) 70%); }
.insignia.si .ico { filter: none; animation: flotaIcono 3.4s ease-in-out infinite; }
.logro { position: fixed; z-index: 120; left: 50%; top: 18px; translate: -50% 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; width: min(92vw, 380px); padding: 14px 18px; border-radius: 22px; background: linear-gradient(120deg, #2A2272, var(--noche)); border: 2px solid var(--lima); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 40px -8px rgba(200, 242, 60, .6); animation: logroEntra .7s cubic-bezier(.2, .8, .2, 1.4); }
.logro.sale { animation: logroSale .4s ease-in forwards; }
@keyframes logroEntra { from { opacity: 0; transform: translateY(-120%) scale(.8); } }
@keyframes logroSale { to { opacity: 0; transform: translateY(-120%) scale(.9); } }
.logro .ico { font-size: 2.8rem; animation: logroIco 1s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes logroIco { from { transform: rotate(-200deg) scale(0); } }
.logro small { color: var(--lima); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; display: block; }
.logro b { display: block; font: 800 1.15rem var(--titulo); }
.logro span:not(.ico) { color: var(--suave); font-size: .85rem; }

/* Entrega de premios en el móvil */
.anuncio-premios .trofeo { animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.5), corona 2.4s .8s ease-in-out infinite; }
.anuncio-premios .podio-yo { font: 800 1.4rem var(--titulo); color: var(--oro); animation: latido 1.2s infinite; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .banner-relampago, .banner-relampago .rayo, .reto-chip.chip-relampago, .anuncio-rel, .anuncio-rel *, .insignia .ico, .logro, .logro .ico, .anuncio-premios * { animation: none !important; }
}

/* ===== Novedades · pantalla grande ===== */
/* Insignia del reto relámpago en la cabecera */
.rel-muro { display: flex; align-items: center; gap: 1vw; padding: .5vw 1vw .5vw .8vw; border-radius: 999px; color: var(--noche); background: linear-gradient(100deg, var(--oro), var(--lima), var(--oro)); background-size: 200% 100%; animation: brillar 3s linear infinite, chipPop .7s cubic-bezier(.2, .8, .2, 1.6); box-shadow: 0 0 40px -6px rgba(252, 211, 77, .8); min-width: 0; }
.rel-muro .rayo { font-size: clamp(1.4rem, 2.2vw, 2.6rem); animation: rayoLate 1s ease-in-out infinite; }
.rel-muro small { display: block; font: 800 clamp(.6rem, .75vw, .85rem) var(--cuerpo); text-transform: uppercase; letter-spacing: .08em; }
.rel-muro div > b { display: block; font: 800 clamp(.9rem, 1.3vw, 1.5rem) var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
.rel-muro .cuenta { font: 800 clamp(1.2rem, 2vw, 2.4rem) var(--titulo); font-variant-numeric: tabular-nums; background: var(--noche); color: var(--oro); border-radius: 14px; padding: .2vw .8vw; }
.rel-muro.urgente .cuenta { background: var(--coral); color: #fff; animation: latido .5s infinite; }
.anuncio-rel-muro .rayos { background: repeating-conic-gradient(rgba(252, 211, 77, .2) 0 7deg, transparent 7deg 18deg); }
.anuncio-rel-muro .rayo-gigante { display: block; font-size: clamp(5rem, 12vw, 12rem); line-height: 1; animation: puntazo .8s cubic-bezier(.2, .8, .2, 1.6), rayoLate 1s .8s infinite; filter: drop-shadow(0 0 50px rgba(252, 211, 77, .9)); }
.anuncio-rel-muro p { color: var(--oro); }
.anuncio-rel-muro .rel-info { margin-top: 1.4vw; font: 700 clamp(1.1rem, 2vw, 2.2rem) var(--cuerpo); animation: entraEscalon .6s .6s backwards; }
.anuncio-rel-muro .cuenta-grande { font: 800 1.3em var(--titulo); color: var(--oro); font-variant-numeric: tabular-nums; }
.anuncio-rel-muro { animation: flashRel .7s ease-out; }

/* Intermedios dentro del foco */
.interludio { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1.6vw; padding: 2vw; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(200, 242, 60, .12), transparent 60%); animation: aparecer .6s; }
.interludio h3 { font-size: clamp(1.6rem, 3vw, 3.4rem); margin: 0; animation: entraEscalon .6s cubic-bezier(.2, .8, .2, 1.2) backwards; }
.interludio .podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 1.2vw; width: min(100%, 60vw); height: 52%; }
.interludio .col { display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: .5vw; height: 100%; align-content: end; }
.interludio .col b { font: 800 clamp(1rem, 1.8vw, 2rem) var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; animation: entraEscalon .6s backwards; animation-delay: calc(.5s + var(--i) * .35s); }
.interludio .col .medalla { font-size: clamp(1.8rem, 3vw, 3.4rem); animation: puntazo .7s cubic-bezier(.2, .8, .2, 1.6) backwards; animation-delay: calc(.4s + var(--i) * .35s); }
.interludio .col .pts { color: var(--lima); font-weight: 800; font-size: clamp(.9rem, 1.3vw, 1.5rem); }
.interludio .peana { width: 100%; height: var(--alto); min-height: 3vw; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font: 800 clamp(2rem, 4vw, 4.4rem) var(--titulo); color: rgba(255, 255, 255, .85); background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05)); transform-origin: 50% 100%; animation: creceAlto 1s cubic-bezier(.2, .8, .2, 1.1) backwards; animation-delay: calc(var(--i) * .35s); }
.interludio .col-1 .peana { background: linear-gradient(180deg, rgba(252, 211, 77, .7), rgba(252, 211, 77, .15)); }
.interludio .col-1 .medalla { animation: puntazo .7s 1.1s cubic-bezier(.2, .8, .2, 1.6) backwards, corona 2.4s 2s ease-in-out infinite; display: inline-block; }
@keyframes creceAlto { from { transform: scaleY(0); } }
.interludio .resto { list-style: none; margin: 0; padding: 0; display: flex; gap: 1vw; flex-wrap: wrap; justify-content: center; }
.interludio .resto li { background: rgba(255, 255, 255, .07); border-radius: 999px; padding: .5vw 1.2vw; display: flex; gap: .8vw; font-size: clamp(.85rem, 1.2vw, 1.4rem); animation: entraEscalon .5s backwards; animation-delay: calc(var(--i) * .25s); }
.interludio .resto li b { color: var(--lima); }
.inter-mosaico { padding: 0; }
.mosaico { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.mosaico div { background-size: cover; background-position: center; border-radius: 8px; animation: volteo .8s cubic-bezier(.2, .8, .2, 1.1) backwards, kenBurns 9s 1s linear forwards; animation-delay: calc(var(--i) * 90ms), calc(1s + var(--i) * 90ms); }
@keyframes volteo { from { opacity: 0; transform: perspective(800px) rotateY(90deg) scale(.8); } }
.mosaico-txt { position: relative; z-index: 2; background: rgba(13, 11, 32, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1vw 2.4vw; border-radius: 999px; font: 700 clamp(1.1rem, 2vw, 2.4rem) var(--cuerpo); animation: puntazo .8s 1.2s cubic-bezier(.2, .8, .2, 1.5) backwards; }
.mosaico-txt b { color: var(--lima); font-family: var(--titulo); }
.lista-retos-muro { list-style: none; margin: 0; padding: 0; display: grid; gap: .7vw; width: min(100%, 64vw); text-align: left; }
.lista-retos-muro li { display: grid; grid-template-columns: auto 1fr auto; gap: 1vw; align-items: center; padding: .8vw 1.2vw; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: clamp(.9rem, 1.4vw, 1.6rem); animation: entraLateral .6s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(var(--i) * .15s); }
.lista-retos-muro .emo { font-size: 1.5em; }
.lista-retos-muro .tit { font-weight: 700; }
.lista-retos-muro .tit em { font-style: normal; color: var(--oro); font-size: .8em; }
.lista-retos-muro .est { color: var(--suave); font-weight: 700; font-size: .85em; }
.lista-retos-muro li.libre .est { color: var(--coral); animation: latidoTexto 1.6s ease-in-out infinite; }
.lista-retos-muro li.rel { box-shadow: inset 0 0 0 2px var(--oro); }

/* Reacciones que vuelan por la pantalla */
.reaccion-muro { position: fixed; z-index: 140; pointer-events: none; translate: -50% 0; display: grid; justify-items: center; animation: subeReaccion 3.4s cubic-bezier(.2, .6, .3, 1) forwards; }
.reaccion-muro .emo { font-size: clamp(1.8rem, 2.6vw, 3rem); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.reaccion-muro.grande .emo { font-size: clamp(2.6rem, 4.4vw, 5rem); }
.reaccion-muro small { background: rgba(13, 11, 32, .75); color: #fff; font-weight: 700; font-size: clamp(.6rem, .8vw, .9rem); padding: 2px 8px; border-radius: 999px; }
@keyframes subeReaccion { 0% { opacity: 0; transform: translate(0, 20px) scale(.3); } 12% { opacity: 1; transform: translate(calc(var(--x) * .2), -4vh) scale(1.2); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -40vh) scale(1); } }

/* Ceremonia de entrega de premios */
.ceremonia { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #2A2272, #0B0920 70%); overflow: hidden; animation: aparecer .8s; }
.ceremonia .rayos { position: absolute; left: 50%; top: 45%; width: 200vmax; height: 200vmax; translate: -50% -50%; background: repeating-conic-gradient(rgba(252, 211, 77, .09) 0 6deg, transparent 6deg 16deg); mask: radial-gradient(circle, #000 0 12%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 55%); animation: girarSuave 40s linear infinite; }
.ceremonia::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 110%, rgba(255, 106, 77, .25), transparent 50%), radial-gradient(circle at 10% 0%, rgba(125, 211, 252, .18), transparent 40%); pointer-events: none; }
.cerrar-ceremonia { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity .3s; }
.ceremonia:hover .cerrar-ceremonia { opacity: 1; }
.escena-premio { position: relative; z-index: 2; width: min(92vw, 1400px); height: 88vh; display: grid; align-content: center; justify-items: center; gap: 1.4vw; text-align: center; animation: escenaEntra .8s cubic-bezier(.2, .8, .2, 1.1); }
@keyframes escenaEntra { from { opacity: 0; transform: scale(.92); filter: blur(8px); } }
.escena-premio .cat { margin: 0; font: 800 clamp(1.1rem, 2.2vw, 2.6rem) var(--cuerpo); color: var(--oro); letter-spacing: .08em; text-transform: uppercase; animation: entraEscalon .6s backwards; }
.escena-premio h2 { margin: 0; font-size: clamp(3rem, 8vw, 9rem); color: var(--lima); text-shadow: 0 0 60px rgba(200, 242, 60, .5); animation: puntazo .9s .2s cubic-bezier(.2, .8, .2, 1.5) backwards; }
.escena-premio h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 3.4rem); animation: entraEscalon .6s .5s backwards; }
.escena-premio h3 small { color: var(--coral); font-size: .6em; margin-left: .4em; }
.intro-premios .trofeo { display: block; font-size: clamp(6rem, 14vw, 15rem); line-height: 1; animation: coronaCae 1.1s cubic-bezier(.2, .8, .2, 1.4) backwards, corona 3s 1.1s ease-in-out infinite; filter: drop-shadow(0 0 60px rgba(252, 211, 77, .7)); }
.intro-premios p { margin: 0; font: 700 clamp(1.1rem, 2vw, 2.2rem) var(--cuerpo); color: var(--lavanda); }
.premio-foto img { max-height: 60vh; max-width: 80vw; border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 6px rgba(252, 211, 77, .7); animation: entZoom 1s .2s cubic-bezier(.2, .8, .2, 1.1) backwards; }
.premio-equipo .pts-grandes { font: 800 clamp(1.4rem, 3vw, 3.2rem) var(--titulo); margin: 0; animation: entraEscalon .6s .6s backwards; }
.escena-premio .redoble { margin: 0; font: 800 clamp(1.6rem, 3.6vw, 4rem) var(--titulo); animation: redoble .25s ease-in-out infinite alternate; }
@keyframes redoble { from { transform: translateX(-4px) rotate(-1deg); } to { transform: translateX(4px) rotate(1deg); } }
.escena-premio .podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 2vw; width: min(100%, 70vw); height: 56vh; }
.escena-premio .col { display: grid; grid-template-rows: auto 1fr; height: 100%; align-content: end; gap: 1vw; }
.escena-premio .quien { display: grid; justify-items: center; gap: .3vw; }
.escena-premio .quien .medalla { font-size: clamp(2.4rem, 4.6vw, 5.4rem); }
.escena-premio .quien b { font: 800 clamp(1.4rem, 3vw, 3.6rem) var(--titulo); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.escena-premio .quien .pts { color: var(--lima); font: 800 clamp(1rem, 1.8vw, 2rem) var(--cuerpo); min-height: 1.2em; }
.escena-premio .col:not(.ver) .quien b { color: rgba(255, 255, 255, .25); }
.escena-premio .peana { height: var(--alto); border-radius: 22px 22px 8px 8px; display: grid; place-items: center; font: 800 clamp(3rem, 6vw, 7rem) var(--titulo); color: rgba(255, 255, 255, .9); background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)); }
.escena-premio .col-1 .peana { background: linear-gradient(180deg, rgba(252, 211, 77, .85), rgba(252, 211, 77, .15)); box-shadow: 0 0 80px -10px rgba(252, 211, 77, .7); }
.escena-premio .col-2 .peana { background: linear-gradient(180deg, rgba(226, 232, 240, .7), rgba(226, 232, 240, .1)); }
.escena-premio .col-3 .peana { background: linear-gradient(180deg, rgba(251, 146, 60, .7), rgba(251, 146, 60, .1)); }
.revelado-1 .col-1 .quien, .revelado-2 .col-2 .quien, .revelado-3 .col-3 .quien { animation: revela 1s cubic-bezier(.2, .8, .2, 1.5); }
@keyframes revela { 0% { transform: translateY(40px) scale(.4); opacity: 0; filter: blur(10px) brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }
.revelado-1 .col-1 .medalla, .final .col-1 .medalla { display: inline-block; animation: corona 2.4s ease-in-out infinite; }
.final .cierre { margin: 0; color: var(--lavanda); font: 700 clamp(1rem, 1.6vw, 1.8rem) var(--cuerpo); }

@media (prefers-reduced-motion: reduce) {
  .rel-muro, .rel-muro *, .anuncio-rel-muro *, .interludio *, .mosaico div, .reaccion-muro, .ceremonia, .ceremonia * { animation: none !important; }
}

/* ===== Novedades · panel «En directo» ===== */
.en-directo { margin: 16px 0; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(252, 211, 77, .08), rgba(200, 242, 60, .05) 50%, rgba(255, 106, 77, .07)); }
.en-directo h3 small { font: 600 .8rem var(--cuerpo); color: var(--suave); margin-left: 6px; }
.directo-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.directo-bloque { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.directo-bloque h4 { margin: 0; font: 800 1.05rem var(--titulo); }
.directo-bloque .ayuda-campo { margin: 0; }
.directo-form { display: grid; gap: 10px; }
.directo-form select { width: 100%; }
.minutos { display: flex; gap: 6px; flex-wrap: wrap; }
.minutos button { flex: 1; min-width: 60px; padding: 8px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.minutos button:hover { transform: translateY(-1px); }
.minutos button[aria-pressed="true"] { background: var(--oro); color: var(--noche); border-color: var(--oro); }
.directo-bloque.activo { border-color: var(--oro); box-shadow: 0 0 0 1px var(--oro), 0 0 40px -10px rgba(252, 211, 77, .6); animation: chipPop .6s cubic-bezier(.2, .8, .2, 1.6); }
.rel-activo-reto { margin: 0; font-weight: 700; }
.rel-activo-cuenta { margin: 0; font: 800 2.6rem var(--titulo); color: var(--oro); font-variant-numeric: tabular-nums; line-height: 1; }
.directo-bloque.urgente .rel-activo-cuenta { color: var(--coral); animation: latido .5s infinite; }
@media (prefers-reduced-motion: reduce) { .directo-bloque.activo, .directo-bloque.urgente .rel-activo-cuenta { animation: none; } }
/* Podio del intermedio: columnas flexibles para que la altura de cada peana se note */
.interludio .podio { height: 36vh; }
.interludio .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.interludio .peana { flex: 0 0 auto; height: calc(var(--alto) * .6); }
/* El nombre del evento no pisa el trofeo */
.intro-premios .trofeo { margin-bottom: .18em; }

/* ===================================================================
   Ronda 19/11/2026: álbum, cola de subida, pantalla (QR / destacada / estreno), estadísticas
   =================================================================== */

/* ----- Panel: moderación con 3 botones (publicar/ocultar, fijar, borrar) ----- */
.moderar .acciones { grid-template-columns: 1fr auto auto; }
.moderar .acciones .peque-icono { padding: 9px 11px; }
.moderar .acciones [data-destacar][aria-pressed='true'] { box-shadow: 0 0 0 3px rgba(252, 211, 77, .5); }
.moderar .item:has([data-destacar][aria-pressed='true']) { border-color: var(--oro); box-shadow: 0 0 0 1px var(--oro), 0 14px 30px -18px rgba(252, 211, 77, .7); }

/* ----- Panel: pantalla grande ----- */
#pa-qr { width: 100%; margin-top: 4px; }
.pa-destacada { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; margin-top: 12px; padding: 8px; border-radius: 14px; background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .45); animation: entraEscalon .45s cubic-bezier(.2, .8, .2, 1.2); }
.pa-destacada img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.pa-destacada small { display: block; color: var(--suave); font-size: .78rem; }

/* ----- Panel: estadísticas en directo ----- */
.estadisticas-vivo { margin: 16px 0; }
.estadisticas-vivo h3 small { font: 600 .82rem var(--cuerpo); color: var(--tenue); margin-left: 6px; }
.st-rejilla { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .st-rejilla { grid-template-columns: 1fr; } }
.st-grafico { margin: 0; min-width: 0; }
.st-grafico figcaption { font-size: .8rem; color: var(--tenue); margin-bottom: 6px; font-weight: 700; }
.st-grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-grafico .eje { stroke: var(--linea); stroke-width: 1; }
.st-grafico rect { fill: rgba(200, 242, 60, .55); transform-box: fill-box; transform-origin: bottom; animation: creceBarra .7s cubic-bezier(.2, .8, .2, 1.2) backwards; animation-delay: calc(var(--i) * 35ms); }
.st-grafico .pico rect { fill: var(--lima); }
.st-grafico text { font: 700 10px var(--cuerpo); fill: var(--tenue); text-anchor: middle; }
.st-grafico text.num { fill: #fff; }
@keyframes creceBarra { from { transform: scaleY(0); } }
.st-lado { display: grid; gap: 10px; }
.st-dato { background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 10px 12px; }
.st-dato small { display: block; color: var(--tenue); font-size: .78rem; }
.st-dato b { font-size: 1.02rem; }
.st-retos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .82rem; }
.st-retos li { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 8px; align-items: center; }
.st-retos .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--suave); }
.st-retos .b { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.st-retos .b i { display: block; height: 100%; border-radius: inherit; background: var(--coral); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

/* ----- Invitado: cola de subida ----- */
.cola-subida { margin-top: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); border-radius: 18px; padding: 14px; animation: entraEscalon .45s cubic-bezier(.2, .8, .2, 1.2); }
.cola-subida h2 { font-size: 1.05rem; margin: 0 0 8px; }
.cola-subida h2 small { font: 600 .8rem var(--cuerpo); color: var(--tenue); margin-left: 6px; }
.cola-red { background: rgba(252, 211, 77, .12); border-radius: 12px; padding: 8px 10px; color: var(--oro); }
.cola-subida ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cola-subida li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.cola-subida li.llega { animation: entraEscalon .4s cubic-bezier(.2, .8, .2, 1.3); }
.cola-subida img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.cola-subida .c-txt { min-width: 0; display: grid; gap: 3px; }
.cola-subida .c-txt b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cola-subida .c-txt small { color: var(--tenue); font-size: .76rem; }
.cola-subida .c-barra { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cola-subida .c-barra i { display: block; height: 100%; background: var(--lima); border-radius: inherit; transition: width .25s; }
.cola-subida .c-sube .c-barra i { background-image: linear-gradient(90deg, var(--lima), #fff, var(--lima)); background-size: 200% 100%; animation: brilloBarra 1.2s linear infinite; }
.cola-subida .c-hecha { background: rgba(200, 242, 60, .1); }
.cola-subida .c-hecha small { color: var(--lima); font-weight: 700; }
.cola-subida .c-error small { color: var(--coral); }
.cola-subida .c-reintenta small, .cola-subida .c-sinred small { color: var(--oro); }
.cola-subida .quitar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.cola-subida .boton.peque { padding: 7px 10px; font-size: .78rem; }
@keyframes brilloBarra { to { background-position: -200% 0; } }

/* ----- Invitado: enlace al álbum ----- */
.album-enlace { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(200, 242, 60, .14), rgba(255, 106, 77, .12)); border: 1px solid var(--linea); color: #fff; font-weight: 800; text-decoration: none; }
.album-enlace small { display: block; color: var(--suave); font-weight: 600; font-size: .8rem; }
.album-enlace:hover { border-color: var(--lima); }

/* ----- Álbum ----- */
body.album { overflow-x: hidden; }
.album-pagina { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }
.album-portada { position: relative; min-height: min(78vh, 640px); display: grid; align-items: end; padding: 80px 0 30px; isolation: isolate; }
.album-logo { position: absolute; top: 18px; left: 0; z-index: 2; }
.album-collage { position: absolute; inset: 0 -16px; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 6px; opacity: .55; mask: linear-gradient(#000 30%, transparent 92%); -webkit-mask: linear-gradient(#000 30%, transparent 92%); }
.album-collage span { background: center / cover var(--noche-2); border-radius: 14px; animation: entraCollage 1.2s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms); }
.album-collage span:nth-child(3n+1) { transform: translateY(18px); }
@keyframes entraCollage { from { opacity: 0; transform: scale(.85); filter: blur(8px); } }
.album-titular { background: rgba(21, 18, 46, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--linea); border-radius: 26px; padding: 26px; max-width: 720px; }
.album-titular h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 4px 0; line-height: 1.02; }
.album-titular .intro { margin: 0 0 14px; text-transform: capitalize; }
.album-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 18px; }
.album-cifras div { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px; text-align: center; }
.album-cifras b { display: block; font: 800 clamp(1.3rem, 4vw, 2rem) var(--titulo); color: var(--lima); }
.album-cifras span { font-size: .78rem; color: var(--suave); }
.album-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.album-bloque { margin-top: 44px; }
.album-bloque h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.album-bloque h2 small { font: 600 .9rem var(--cuerpo); color: var(--tenue); }
.album-podio { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; max-width: 640px; height: 300px; margin: 10px auto 0; }
.album-podio .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-align: center; animation: entraEscalon .7s cubic-bezier(.2, .8, .2, 1.2) backwards; }
.album-podio .col-1 { animation-delay: .5s; } .album-podio .col-2 { animation-delay: .25s; }
.album-podio .medalla { font-size: 2.2rem; }
.album-podio b { font-size: 1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-podio .pts { font-size: .78rem; color: var(--suave); margin-bottom: 6px; }
.album-podio .peana { width: 100%; height: var(--alto); max-height: 170px; border-radius: 16px 16px 6px 6px; display: grid; place-items: start center; padding-top: 10px; font: 800 2rem var(--titulo); color: var(--noche); background: linear-gradient(var(--lima), rgba(200, 242, 60, .55)); }
.album-podio .col-2 .peana { background: linear-gradient(#E5E7EB, rgba(229, 231, 235, .5)); }
.album-podio .col-3 .peana { background: linear-gradient(#F0B27A, rgba(240, 178, 122, .5)); }
.album-equipo { margin: 16px auto 0; max-width: 640px; text-align: center; background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 12px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.album-equipo .color { width: 14px; height: 14px; border-radius: 50%; }
.album-ganadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.album-ganador { position: relative; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--noche-2); cursor: zoom-in; aspect-ratio: 4 / 5; color: #fff; text-align: left; font: inherit; }
.album-ganador img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.album-ganador:hover img, .album-ganador:focus-visible img { transform: scale(1.06); }
.album-ganador .txt { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(13, 11, 32, .92)); display: grid; }
.album-ganador small { color: var(--lima); font-weight: 700; }
.album-ganador b { font-size: 1.15rem; }
.album-ganador .txt span { font-size: .82rem; color: var(--suave); }
.album-fotos-cab { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.album-fotos-cab h2 { margin: 0; }
.album .carril { margin: 0; padding: 10px 0; }
.album .reto-chip small { margin-left: 6px; opacity: .7; }
@media (min-width: 900px) { .album-rejilla { columns: 4; } }
.abrir-foto { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.album-caja { grid-template-rows: auto minmax(0, 1fr) auto; }
.album-escena { position: relative; min-height: 0; height: 100%; }
.album-escena img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.album-caja .flecha { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.album-caja .ant { left: 4px; } .album-caja .sig { right: 4px; }
.album-caja .flecha:hover { background: rgba(255, 255, 255, .26); }
.album-pie { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--linea); color: var(--tenue); font-size: .85rem; text-align: center; }
.album-pie a { color: var(--suave); }
@media (max-width: 560px) {
  .album-portada { min-height: 0; padding-top: 70px; }
  .album-titular { padding: 18px; }
  .album-cifras { grid-template-columns: repeat(2, 1fr); }
  .album-podio { height: 250px; }
  .album-podio .medalla { font-size: 1.7rem; }
  .album-caja .flecha { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* ----- Pantalla grande: modo «solo QR» ----- */
.modo-qr { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #241f4d, var(--noche) 70%); overflow: hidden; text-align: center; }
.modo-qr .rayos { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(200, 242, 60, .07) 0 8deg, transparent 8deg 20deg); animation: girarSuave 40s linear infinite; pointer-events: none; }
.modo-qr-caja { position: relative; z-index: 1; padding: 3vh 4vw; }
.modo-qr .ceja { font-size: clamp(1rem, 1.5vw, 1.5rem); }
.modo-qr h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); margin: .2em 0 .5em; line-height: 1; }
.modo-qr-centro { display: flex; align-items: center; justify-content: center; gap: 5vw; }
.modo-qr img { width: min(46vh, 34vw); height: auto; background: #fff; padding: 1.6vh; border-radius: 28px; box-shadow: 0 0 0 8px rgba(200, 242, 60, .5), 0 30px 80px -20px rgba(0, 0, 0, .7); animation: respiraQr 3s ease-in-out infinite; }
.modo-qr-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4vh; text-align: left; max-width: 30vw; }
.modo-qr-pasos li { display: grid; grid-template-columns: auto 1fr; gap: 1vw; align-items: center; font: 700 clamp(1rem, 1.7vw, 1.9rem) var(--cuerpo); animation: entraLateral .8s cubic-bezier(.2, .8, .2, 1.1) backwards; }
.modo-qr-pasos li:nth-child(2) { animation-delay: .15s; } .modo-qr-pasos li:nth-child(3) { animation-delay: .3s; }
.modo-qr-pasos b { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--lima); color: var(--noche); font-family: var(--titulo); }
.modo-qr-pie { margin-top: 4vh; font-size: clamp(.9rem, 1.3vw, 1.4rem); color: var(--suave); }
.modo-qr-pie code { background: rgba(255, 255, 255, .1); padding: .1em .5em; border-radius: 8px; color: #fff; letter-spacing: .15em; }
.modo-qr.entra-qr { animation: entraQr .7s cubic-bezier(.2, .8, .2, 1.1); }
@keyframes entraQr { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 800px) { .modo-qr-centro { flex-direction: column; } .modo-qr-pasos { max-width: none; } .modo-qr img { width: min(60vw, 40vh); } }

/* ----- Pantalla grande: foto destacada y estreno ----- */
.foco .destacada-marca { background: var(--oro); color: var(--noche); animation: puntazo .6s cubic-bezier(.2, .8, .2, 1.5); }
.foco .estreno { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 4; text-align: center; padding: 2.2vh 3vw; border-radius: 28px; background: rgba(21, 18, 46, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 3px var(--lima), 0 30px 80px -20px rgba(0, 0, 0, .8); animation: estreno 4.2s cubic-bezier(.2, .8, .2, 1.2) forwards; pointer-events: none; }
.foco .estreno span { display: block; color: var(--lima); font: 800 clamp(1rem, 1.6vw, 1.8rem) var(--cuerpo); letter-spacing: .06em; text-transform: uppercase; }
.foco .estreno b { display: block; font: 800 clamp(2rem, 4.4vw, 4.8rem) var(--titulo); line-height: 1.05; }
.foco .estreno small { color: var(--suave); font-size: clamp(.8rem, 1.1vw, 1.2rem); }
@keyframes estreno { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 12% { opacity: 1; transform: scale(1.08) rotate(1deg); } 18% { transform: scale(1); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9) translateY(-30px); } }

@media (prefers-reduced-motion: reduce) {
  .st-grafico rect, .cola-subida, .cola-subida li.llega, .cola-subida .c-sube .c-barra i, .album-collage span, .album-podio .col, .modo-qr .rayos, .modo-qr img, .modo-qr-pasos li, .modo-qr.entra-qr, .pa-destacada { animation: none !important; }
  .foco .estreno { animation: estrenoQuieto 4.2s steps(1) forwards; }
  @keyframes estrenoQuieto { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
}
