/* ==========================================================================
   AREA UNITED · Barra inferior del hero: datos de confianza + próxima clase
   Más aire: cuatro cifras grandes con espacio y, debajo, una línea fina
   «ahora en marcha» con la próxima clase real de la Sala 1.
   ========================================================================== */

.hero-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--surface-2);
  background: rgba(10,10,10,.72);
}
.hero-bar-inner { display: grid; gap: 0; }

.stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  padding-block: 32px 28px;
}
.stat {
  display: grid;
  gap: 10px;
  align-content: start;
}

.stat-value {
  font-size: clamp(44px, 11vw, 56px);
  line-height: .9;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .16em;
  white-space: nowrap;
}
.stat-num { display: inline-block; min-width: 1.1ch; }
.stat-unit { font-size: .38em; color: var(--yellow); letter-spacing: .04em; }
.stat-plus { font-size: .38em; letter-spacing: .04em; }
.stat-word { font-size: .78em; }
.stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-text);
  max-width: 26ch;
}

/* Próxima clase: línea fina, calculada con el horario real de la Sala 1 */
.next-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding-block: 18px;
  border-top: 1px solid var(--surface-2);
}
.next-class-head { color: var(--gray-text); display: inline-flex; align-items: center; gap: 10px; }
.next-class-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.next-class-name { font-size: 20px; line-height: 1; }
.next-class-time { font-size: 18px; line-height: 1; color: var(--yellow); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.next-class-in { color: var(--white); font-size: 16px; }
.tnum span { display: inline-block; min-width: .56em; text-align: center; }
.tnum .sep { min-width: .25em; }

@media (min-width: 768px) {
  .stats-list { grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 44px 40px; }
  .stat { padding-inline: 32px; border-left: 1px solid var(--surface-2); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat-value { font-size: clamp(48px, 5.4vw, 80px); }
  .stat-label { font-size: 14px; }
  .next-class { padding-block: 22px; }
}

/* «+ exterior» ya está en la etiqueta: se oculta para que las cifras queden alineadas */
.stat-plus { display: none; }
@media (min-width: 768px) {
  .stat-word { font-size: .62em; line-height: .92; display: block; }
  .stat:last-child .stat-value { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ==========================================================================
   Decisión del dueño: la clase en marcha va como tarjeta flotante en la esquina
   de la home y las cifras quedan pequeñas.
   ========================================================================== */
.hero-bar { position: static; border: 0; background: none; }
.hero-bar-inner { padding: 0; }

.next-class {
  position: static;                  /* dentro del hero, no flotante */
  justify-self: start;
  width: fit-content;
  display: inline-grid;
  gap: 6px;
  margin-top: 28px;
  padding: 14px 20px 14px 16px;
  min-width: 240px;
  background: rgba(20, 20, 20, .8);
  border: 1px solid var(--surface-2);
  border-left: 3px solid var(--yellow);
}
.next-class-name { font-size: 24px; }
.next-class-time { font-size: 17px; }
@media (max-width: 767px) {
  .next-class { min-width: 0; padding: 10px 14px; gap: 4px; margin-top: 22px; }
  .next-class-name { font-size: 19px; }
  .next-class-time { font-size: 15px; }
}

/* ==========================================================================
   Las cifras vuelven, pero PEQUEÑAS: una línea fina de 4 datos compactos
   ========================================================================== */
.stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  padding-block: 18px;
}
.hero-bar { border-top: 1px solid var(--surface-2); background: rgba(10,10,10,.6); }
.stat { gap: 2px; padding: 0; border: 0; }
.stat-value { font-size: clamp(22px, 5.5vw, 26px); line-height: 1; gap: 0 .3em; }
.stat-unit { font-size: .62em; color: var(--gray-text); letter-spacing: .05em; }
.stat-word { font-size: 1em; display: inline; }
.stat-label { font-size: 11px; line-height: 1.4; max-width: none; }
@media (min-width: 768px) {
  .stats-list { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; padding-block: 16px; }
  .stat { padding-inline: 0; border-left: 0; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 12px; }
  .stat:last-child .stat-value { flex-direction: row; gap: 0 .3em; }
}

/* ==========================================================================
   «Ahora en marcha» con fondo líquido (liquid glass): cristal translúcido con
   desenfoque, brillo en el borde y un resplandor amarillo detrás
   ========================================================================== */
.next-class-wrap { position: relative; justify-self: start; margin-top: 28px; isolation: isolate; }
.next-class-glow {
  position: absolute; z-index: -1;
  inset: -34px -48px -34px -20px;
  background:
    radial-gradient(46% 70% at 22% 40%, rgba(255, 203, 0, .55), transparent 72%),
    radial-gradient(40% 60% at 85% 70%, rgba(255, 140, 0, .28), transparent 75%);
  filter: blur(14px);
  animation: glass-drift 9s ease-in-out infinite alternate;
}
@keyframes glass-drift { to { transform: translate3d(14px, -6px, 0) scale(1.06); } }
.next-class-wrap .next-class {
  margin-top: 0;
  padding: 16px 24px 16px 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-left: 1px solid rgba(255, 255, 255, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .10));
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .10),
    0 24px 50px rgba(0, 0, 0, .45);
}
.next-class-wrap .next-class-head { color: rgba(255, 255, 255, .78); }
.next-class-wrap .next-class-name { color: var(--white); }
@media (max-width: 767px) { .next-class-wrap { margin-top: 22px; } .next-class-glow { inset: -26px -30px -26px -14px; } }
@media (prefers-reduced-motion: reduce) { .next-class-glow { animation: none; } }

/* Cristal más sutil (el hero llevará vídeo de fondo): sin resplandor ni animación */
.next-class-glow { display: none; }
.next-class-wrap .next-class {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .3);
}
.next-class-wrap .next-class-head { color: var(--gray-text); }
