/* Portada del checador: foto de la planta, reloj grande, turno y botones. */
.portada {
  --navy: #0b1a36; --gold: #f5b324; --ok: #22b573; --muted: #a9b8d6;
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--navy);
}
/* La foto va arriba en su proporción (casi cuadrada) para que las caras no queden detrás del reloj. */
.fondo { position: absolute; top: 0; left: 0; right: 0; display: block; aspect-ratio: 900 / 776; max-height: 60vh; overflow: hidden; }
.fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0b1a3699 0%, #0b1a3600 22%, #0b1a3600 55%, #0b1a36 100%);
}
.capa {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(100%, 30rem); min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(4.6rem, calc(env(safe-area-inset-bottom) + 4.6rem)); /* abajo queda libre para el sello de Netlify */
}
.barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: var(--muted); }
.pastilla {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px;
  background: #ffffff14; border: 1px solid #ffffff22; backdrop-filter: blur(8px);
}
.punto { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #22b57333; }
.pastilla.sin-red .punto { background: #e2566b; box-shadow: 0 0 0 3px #e2566b33; }
.marca { width: 4.2rem; height: auto; filter: drop-shadow(0 2px 6px #0b1a3680); }

.reloj { margin-top: auto; padding-top: 1rem; }
.hora {
  display: block; font-size: clamp(4.6rem, 22vw, 6.5rem); font-weight: 200; line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.hora small { font-size: .3em; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: .25rem; }
.fecha { margin: .4rem 0 0; color: var(--muted); font-size: 1.05rem; }

.vidrio { background: #0b1a3699; border: 1px solid #ffffff1f; backdrop-filter: blur(14px); border-radius: 1.25rem; }
.turno { margin-top: 1.1rem; padding: .9rem 1rem; }
.turno .fila { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.turno .fila + .fila { margin-top: .25rem; }
.turno b { font-size: 1.1rem; }
.chico { font-size: .78rem; color: var(--muted); }
.dorado { color: var(--gold); font-weight: 600; }
.progreso { height: .38rem; margin: .65rem 0 .4rem; border-radius: 1rem; background: #ffffff1a; overflow: hidden; }
.progreso span { display: block; height: 100%; width: 0; border-radius: 1rem; background: linear-gradient(90deg, var(--gold), #ffd36b); transition: width .6s; }

.acciones { display: grid; gap: .65rem; margin-top: 1.1rem; }
.boton {
  display: flex; align-items: center; justify-content: center; gap: .65rem; border-radius: 1.1rem;
  font-weight: 700; text-decoration: none; color: inherit; transition: transform .12s;
}
.boton:active { transform: scale(.98); }
.boton:focus-visible { outline: 3px solid #ffffffcc; outline-offset: 3px; }
.i { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checar { min-height: 4.4rem; background: var(--gold); color: var(--navy); font-size: 1.3rem; box-shadow: 0 .8rem 1.6rem #f5b32440; }
.checar .i { width: 1.8rem; height: 1.8rem; stroke-width: 2.2; }
.secundario { min-height: 3.3rem; background: #ffffff12; border: 1px solid #ffffff22; }
.ayuda { margin: .8rem 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.ayuda a { color: #fff; text-decoration-color: var(--gold); text-underline-offset: 3px; }

@media (min-width: 52rem) and (orientation: landscape) {
  .fondo { left: auto; width: 62vw; height: 100%; max-height: none; aspect-ratio: auto; }
  .fondo::after { background: linear-gradient(90deg, #0b1a36 0%, #0b1a3600 35%), linear-gradient(0deg, #0b1a36cc 0%, #0b1a3600 40%); }
  .capa { margin: 0 0 0 4vw; }
}
