/* assets/css/publico/publico.css — «Participa» (usa también votar.css) */
.pb-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 -16px 14px; padding: 8px 16px; background: rgba(7, 11, 22, 0.94); backdrop-filter: blur(8px); }
.pb-tabs a { padding: 9px 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); color: #e2e8f0; text-decoration: none; font-weight: 700; font-size: 0.8rem; text-align: center; white-space: nowrap; }
.pb-bloque { margin-bottom: 18px; scroll-margin-top: 64px; }
.pb-bloque h2 { margin: 0 0 10px; font-size: 1.15rem; }
.pb-bloque h3 { margin: 14px 0 6px; font-size: 0.86rem; color: #94a3b8; font-weight: 700; }
.pb-vacio { margin: 0; padding: 14px; border-radius: 14px; background: rgba(148, 163, 184, 0.08); color: #94a3b8; }
.pb-tv { margin-bottom: 16px; }
.pb-tv[hidden], .pb-favorito[hidden] { display: none; }
.pb-tv-marco { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.pb-tv-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pb-aplausos { padding: 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(245, 179, 1, 0.14), rgba(15, 23, 42, 0.9)); border: 1px solid rgba(245, 179, 1, 0.35); }
.pb-escena { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pb-escena img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; }
.pb-escena small { display: block; color: #fcd34d; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pb-escena strong { font-size: 1.15rem; }
.pb-reacciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pb-reaccion { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(15, 23, 42, 0.9); color: #f8fafc; cursor: pointer; font: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: transform 0.08s; }
.pb-reaccion:active { transform: scale(0.92); background: rgba(245, 179, 1, 0.2); }
.pb-reaccion .em { font-size: 2.3rem; line-height: 1; }
.pb-reaccion .n { font-weight: 800; color: #fcd34d; font-variant-numeric: tabular-nums; }
.pb-mis { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); margin-top: 14px; overflow: hidden; }
.pb-mis span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #f43f5e); transition: width 0.2s; }
.pb-mis-txt { display: block; margin-top: 6px; color: #94a3b8; font-size: 0.78rem; }
.pb-top { margin: 0; padding-left: 20px; line-height: 1.7; font-size: 0.9rem; }
.pb-volar { position: fixed; z-index: 60; font-size: 2rem; pointer-events: none; animation: pb-volar 1.1s ease-out forwards; }
@keyframes pb-volar { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-160px) scale(1.6); } }
.pb-favorito { display: block; margin-bottom: 18px; padding: 15px; border-radius: 16px; text-align: center; color: #fff; text-decoration: none; background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 10px 26px rgba(244, 63, 94, 0.3); }
.pb-voto { margin-bottom: 12px; padding: 14px; border-radius: 16px; background: rgba(15, 23, 42, 0.88); border: 1px solid rgba(148, 163, 184, 0.16); }
.pb-voto.tipo-pronostico { border-color: rgba(168, 85, 247, 0.45); }
.pb-voto.tipo-premio { border-color: rgba(245, 179, 1, 0.4); }
.pb-voto.cerrada { opacity: 0.92; }
.pb-voto h3 { margin: 6px 0 10px; font-size: 1.05rem; color: #f8fafc; }
.pb-voto-cab { display: flex; justify-content: space-between; gap: 8px; }
.pb-tipo { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #67e8f9; }
.pb-voto.tipo-pronostico .pb-tipo { color: #d8b4fe; } .pb-voto.tipo-premio .pb-tipo { color: #fcd34d; }
.pb-estado { font-size: 0.72rem; color: #94a3b8; font-weight: 700; }
.pb-estado.abierta { color: #4ade80; }
.pb-opciones { display: grid; gap: 8px; }
.pb-opcion { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.2); background: #111a2e; color: #f1f5f9; font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 50px; }
.pb-opcion:active { transform: scale(0.98); }
.pb-opcion:hover, .pb-opcion:focus-visible { border-color: #f5b301; outline: none; }
.pb-apodo { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(168, 85, 247, 0.4); background: #0b1120; color: #f1f5f9; font-size: 16px; }
.pb-total { display: block; color: #94a3b8; font-size: 0.78rem; text-align: right; }
.pb-aciertos { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(168, 85, 247, 0.14); }
.pb-aciertos.si { background: rgba(34, 197, 94, 0.18); }
.pb-aciertos strong { display: block; }
.pb-aciertos small { color: #cbd5e1; }
.pb-espera { margin: 0 0 10px; color: #d8b4fe; font-size: 0.88rem; }
.pb-linea { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid rgba(245, 179, 1, 0.4); }
.pb-linea li { position: relative; padding: 0 0 14px 12px; }
.pb-linea li::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 0 3px #070b16; }
.pb-linea-cab { display: flex; gap: 8px; font-size: 0.75rem; color: #94a3b8; }
.pb-linea-cab time { color: #fcd34d; font-weight: 800; }
.pb-linea p { margin: 2px 0 6px; line-height: 1.45; }
.pb-linea img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.pb-nota { font-size: 0.8rem; }
.pb-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; max-width: calc(100% - 24px); padding: 12px 16px; border-radius: 12px; background: #052e16; border: 1px solid #22c55e; color: #bbf7d0; font-weight: 600; }
.pb-toast.error { background: #450a0a; border-color: #ef4444; color: #fecaca; }
.pb-toast[hidden] { display: none; }

/* Transmisión: botón para activar el sonido (los navegadores no permiten sonido automático) */
.tv-sonido { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; background: rgba(220, 38, 38, 0.95); color: #fff; font: 800 1rem system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: tv-sonido-latido 1.6s ease-in-out infinite; white-space: nowrap; }
.tv-sonido span { font-size: 1.2rem; }
@keyframes tv-sonido-latido { 50% { transform: translateX(-50%) scale(1.06); } }
