/* ── Login por QR (feature qr_login): botón junto a "Entrar" + popup centrado ──
   Convive con landing-forms.css: usa sus variables con fallbacks seguros. */

/* Botón disparador, debajo del "Entrar" (mismo grupo de acciones de login) */
.qrlogin__trigger { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Popup centrado */
.qrmodal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qrmodal[hidden] { display: none !important; }
.qrmodal__backdrop { position: absolute; inset: 0; background: rgba(30, 42, 35, .58); backdrop-filter: blur(2px); }
body.qrmodal-open { overflow: hidden; }

.qrmodal__card {
  position: relative; z-index: 1; width: min(400px, 100%);
  background: #fff; border-radius: 22px; padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: qrmodal-in .18s ease;
}
@keyframes qrmodal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qrmodal__card { animation: none; } }

.qrmodal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--paper-2, #F3ECDD); color: var(--ink, #1E2A23);
  font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qrmodal__close:hover { background: var(--paper-3, #EFE7D6); }

.qrmodal__head { margin-bottom: 16px; }
.qrmodal__head .qrmodal__ico { font-size: 26px; display: block; margin-bottom: 4px; }
.qrmodal__head b { display: block; font-size: 18px; color: var(--ink, #1E2A23); font-weight: 800; letter-spacing: -.01em; }
.qrmodal__head span { display: block; font-size: 12.5px; color: var(--ink-mute, #6B7B6E); margin-top: 3px; max-width: 30ch; }

.qrmodal__qrwrap {
  width: min(280px, 72vw); aspect-ratio: 1; position: relative;
  border: 1px solid var(--line, #E1D8C2); border-radius: 16px; background: #fff; padding: 12px;
}
/* El PNG viene enorme (20px/modulo); nearest-neighbor mantiene bordes duros al encoger -> legible. */
.qrmodal__qrwrap img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.qrmodal__velo {
  position: absolute; inset: 0; border-radius: 16px; background: rgba(255, 255, 255, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center;
}
.qrmodal__velo[hidden] { display: none !important; }
.qrmodal__velo .ico {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--paper-2, #F3ECDD);
}
.qrmodal__velo.ok .ico { background: #4D7C3A; color: #fff; }
.qrmodal__velo b { font-size: 14px; color: var(--ink, #1E2A23); }
.qrmodal__velo small { font-size: 12px; color: var(--ink-mute, #6B7B6E); }
.qrmodal__velo button {
  margin-top: 6px; border: 1px solid var(--line, #D0C4A6); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink, #1E2A23); cursor: pointer;
}
.qrmodal__velo button[hidden] { display: none !important; }

.qrmodal__timer { font-size: 11.5px; color: var(--ink-mute, #6B7B6E); font-variant-numeric: tabular-nums; margin-top: 12px; min-height: 15px; }

.qrmodal__steps {
  margin: 10px 0 0; padding: 0; list-style: none; counter-reset: paso;
  display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; max-width: 300px;
}
.qrmodal__steps li {
  counter-increment: paso; position: relative; padding-left: 30px;
  font-size: 13px; color: var(--ink-mute, #6B7B6E); line-height: 1.35;
}
.qrmodal__steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--paper-2, #F3ECDD); color: var(--ink, #1E2A23);
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.qrmodal__steps li b { color: var(--ink, #1E2A23); font-weight: 700; }
