/* Sala de espera: cuenta atrás en fichas de papel con chincheta */
.acto-espera { min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: max(36px, env(safe-area-inset-top, 0px)); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
.deco-globos { right: -10px; top: 14px; width: 150px; transform: rotate(9deg); animation: flota 6s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-8px); } }
.centro { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 24px 0; position: relative; }
.marca { margin: 0; align-self: flex-start; font: 400 clamp(64px, 21vw, 108px)/.9 var(--f-marcador); color: var(--rojo); transform: rotate(-3deg); text-shadow: 2px 3px 0 rgba(40, 30, 20, .12); }
.reloj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.reloj .sep { display: none; }
.reloj .u {
  position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0;
  background: var(--blanco); padding: 22px 4px 12px; border-radius: 3px;
  box-shadow: 0 8px 14px rgba(40, 30, 20, .2), 0 1px 0 rgba(255,255,255,.8) inset;
  transform: rotate(var(--r, 0deg));
}
.reloj .u:nth-child(1) { --r: -2.4deg; --pin: var(--rojo); }
.reloj .u:nth-child(3) { --r: 1.8deg; --pin: var(--cobalto); }
.reloj .u:nth-child(5) { --r: -1.4deg; --pin: var(--mostaza); }
.reloj .u:nth-child(7) { --r: 2.6deg; --pin: var(--oliva); }
.reloj .u::before { content: ""; position: absolute; top: -7px; left: 50%; width: 15px; height: 15px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--pin, var(--rojo)); box-shadow: 0 3px 3px rgba(0, 0, 0, .3); }
.reloj b { font: 400 clamp(36px, 11.5vw, 58px)/1 var(--f-marcador); font-variant-numeric: tabular-nums; color: var(--tinta); }
.reloj i { font: 600 10px/1 var(--f-texto); letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); font-style: normal; }
.fecha { margin: 0; font: 400 17px/1 var(--f-maquina); letter-spacing: .06em; color: var(--tinta); }
.estado { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; background: var(--blanco); border-radius: 999px; box-shadow: 0 4px 8px rgba(40, 30, 20, .16); font: 600 12px/1 var(--f-texto); letter-spacing: .12em; text-transform: uppercase; }
.chincheta { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--rojo); box-shadow: 0 2px 2px rgba(0, 0, 0, .3); }
.acto-espera.abierto .chincheta { background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--oliva); }
.acto-espera .boton { align-self: flex-start; animation: late 2.2s ease-in-out infinite; }
@keyframes late { 0%, 100% { box-shadow: 0 3px 0 var(--rojo-osc), 0 0 0 0 rgba(198, 58, 44, .4); } 50% { box-shadow: 0 3px 0 var(--rojo-osc), 0 0 0 10px rgba(198, 58, 44, 0); } }

/* Transición */
.transicion { position: fixed; inset: 0; z-index: 80; background: var(--papel); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .6s ease; }
.transicion.on { opacity: 1; }
.transicion pre { margin: 0; font: 400 20px/1.9 var(--f-maquina); color: var(--tinta); max-width: 480px; width: 100%; white-space: pre-wrap; }
.transicion div:last-child { font-family: var(--f-marcador); font-size: 34px; color: var(--rojo); margin-top: 8px; transform: rotate(-2deg); }
.transicion.sale { opacity: 0; transition: opacity 1.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .deco-globos, .acto-espera .boton { animation: none; }
}
