/* EL PRO MAXAZO · avance de la rifa debajo del logo (18 nov 2026). Angel: «el porcentaje de la rifa, en por cuánto vaya;
   que se vaya cargando de 0 a 100 y salga en vivo». Barra dorada que se llena (webapp.js pone el ancho y cuenta el número),
   punto rojo de «en vivo» y letras blancas. Sin estilos en línea (CSP): el ancho lo pone JS por CSSOM. */

/* Por encima de la sombra del banner (el h1 tiene filtro y 56 px de aire abajo que se meten aquí y oscurecían las letras). */
.mx-home .mx-avance {
  position: relative; z-index: 2;
  margin: 12px 0 0; padding: 14px 16px 16px; border-radius: 20px;
  border: 1px solid rgba(233,185,73,.30);
  background: radial-gradient(ellipse 90% 140% at 0% 0%, rgba(233,185,73,.10), rgba(233,185,73,0) 60%), linear-gradient(180deg, #16130d, #0c0b08);
  box-shadow: inset 0 1px 0 rgba(253,240,196,.06), 0 18px 34px -26px rgba(233,185,73,.55);
}
.mx-home .mx-avance[hidden] { display: none; }
.mx-home .mx-avance-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.mx-home .mx-avance-tit {
  min-width: 0; font: 800 11.5px/1.2 var(--mx-ui, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #ffffff;
}
.mx-home .mx-avance-envivo {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font: 800 11px/1 var(--mx-ui, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #ff5a52;
}
.mx-home .mx-avance-vivo { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: mxAvanceVivo 1.6s ease-out infinite; }
/* El cuadro del porcentaje: blanco, grande, ENCIMA de la punta dorada y moviéndose con ella (Angel: «que se note encima del dorado»). */
.mx-home .mx-avance-pista { position: relative; padding-top: 49px; }
.mx-home .mx-avance-burbuja {
  position: absolute; top: 0; z-index: 1;
  left: clamp(40px, var(--avance-pos, 0%), calc(100% - 40px)); transform: translateX(-50%);
  min-width: 80px; padding: 8px 12px 7px; border-radius: 12px; text-align: center; white-space: nowrap;
  background: #ffffff; box-shadow: 0 0 0 2px #e9b949, 0 10px 22px -6px rgba(0,0,0,.75), 0 0 22px rgba(233,185,73,.45);
  transition: left 1.4s cubic-bezier(.22, 1, .36, 1);
}
.mx-home .mx-avance-burbuja::after {   /* la puntita que baja hacia la barra */
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg);
  background: #ffffff; box-shadow: 2px 2px 0 0 #e9b949; border-radius: 0 0 2px 0;
}
.mx-home .mx-avance-pct {
  position: relative; z-index: 1; display: block;
  font: 900 23px/1 var(--mx-ui, 'Plus Jakarta Sans', system-ui, sans-serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: #0b0a07; -webkit-text-fill-color: #0b0a07;
}
.mx-home .mx-avance-barra {
  position: relative; height: 18px; border-radius: 99px; overflow: hidden;
  background: #070604; box-shadow: inset 0 2px 4px rgba(0,0,0,.85), 0 0 0 1px rgba(233,185,73,.28);
}
.mx-home .mx-avance-relleno {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, #8f6417 0%, #c8922b 30%, #e9b949 60%, #f7d774 85%, #fdf0c4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 14px rgba(233,185,73,.55);
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}
/* Brillo que recorre la barra: se ve «viva» aunque no cambie. */
.mx-home .mx-avance-relleno::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: translateX(-120%); animation: mxAvanceBrillo 2.4s ease-in-out infinite;
}
@keyframes mxAvanceVivo { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
@keyframes mxAvanceBrillo { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }
@media (max-width: 980px) {
  .mx-home .mx-avance { margin-top: 10px; padding: 12px 14px 14px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-home .mx-avance-relleno, .mx-home .mx-avance-burbuja { transition: none; }
  .mx-home .mx-avance-relleno::after, .mx-home .mx-avance-vivo { animation: none; }
}
