/* ProRider Care — colores del logo ProRider: rojo, negro y blanco. */
:root {
  /* rojo y negro oficiales del logo */
  --red: #d72028;
  --red-600: #bd1a22;
  --red-700: #a1141b;
  --red-50: #fcebec;
  --black: #110f0d;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b73;
  --line: #e4e4e7;
  --bg: #f3f3f4;
  --surface: #ffffff;
  --green: #15803d;
  --green-50: #e7f6ec;
  --amber: #a15c07;
  --amber-50: #fdf3e1;
  --wa: #1a9e47;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.06);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
:focus-visible {
  outline: 3px solid rgb(215 32 40 / 0.4);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.grow {
  flex: 1;
  min-width: 0;
}
.break {
  word-break: break-all;
}
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}
.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---------- Iconos ---------- */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  width: auto;
  height: 34px;
  flex: none;
}
.brand-care {
  padding: 3px 7px 2px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.brand.on-red .brand-care {
  background: var(--black);
}
.brand.sm .brand-logo {
  height: 28px;
}
.brand.sm .brand-care {
  padding: 2px 6px 1px;
  font-size: 10px;
}
.brand.lg .brand-logo {
  height: 76px;
}
.brand.lg .brand-care {
  padding: 5px 12px 4px;
  font-size: 20px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn.primary {
  background: var(--red);
  color: #fff;
}
.btn.primary:hover {
  background: var(--red-600);
}
.btn.dark {
  background: var(--black);
  color: #fff;
}
.btn.dark:hover {
  background: #2a2a2d;
}
.btn.ghost {
  background: var(--surface);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: #c9c9cf;
}
.btn.danger {
  background: var(--red-700);
  color: #fff;
}
.btn.wa {
  background: var(--wa);
  color: #fff;
}
.btn.block {
  display: flex;
  width: 100%;
}
.btn.lg {
  min-height: 52px;
  font-size: 17px;
  border-radius: 14px;
}
.btn.sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--bg);
}
.icon-btn.on-dark {
  color: #fff;
}
.icon-btn.on-dark:hover {
  background: rgb(255 255 255 / 0.1);
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.link {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: none;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Formularios ---------- */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
}
textarea.input {
  resize: vertical;
  min-height: 84px;
}
select.input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}
.input:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgb(215 32 40 / 0.15);
}
.input:disabled,
fieldset:disabled .input {
  background: var(--bg);
  color: var(--muted);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--red);
}
.form-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  font-size: 20px;
  text-transform: uppercase;
}
.form-section:not(:first-child) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-section .i {
  color: var(--red);
}
.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 14px;
  font-weight: 600;
}
.note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--amber-50);
  color: var(--amber);
  font-size: 14px;
}
.pw {
  position: relative;
}
.pw .input {
  padding-right: 76px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Superficies ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel > h2,
.panel-head h2 {
  font-size: 21px;
  text-transform: uppercase;
}
.panel > h2 {
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.page-title {
  margin: 4px 0 16px;
  font-size: 34px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge .i {
  width: 13px;
  height: 13px;
}
.badge.red {
  background: var(--red-50);
  color: var(--red-700);
}
.badge.green {
  background: var(--green-50);
  color: var(--green);
}
.badge.amber {
  background: var(--amber-50);
  color: var(--amber);
}
.badge.dark {
  background: var(--black);
  color: #fff;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.empty .i {
  width: 30px;
  height: 30px;
  color: #b4b4bb;
}
.empty.small {
  padding: 14px 4px;
  font-size: 14px;
  justify-items: start;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.avatar.lg {
  width: 60px;
  height: 60px;
  font-size: 24px;
  background: var(--red);
}
.loading {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 40px;
}
.loading span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 0.9s infinite ease-in-out;
}
.loading span:nth-child(2) {
  animation-delay: 0.15s;
}
.loading span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Sellos ---------- */
.stamps {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 12px 10px;
  justify-items: center;
}
.stamp {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 66px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #303034;
  background: #1a1a1c;
  color: #4a4a50;
}
.stamp .i {
  width: 46%;
  height: 46%;
}
.stamp.goal {
  border-style: dashed;
  border-color: var(--red);
  color: var(--red);
}
.stamp.on {
  border: 3px solid #fff;
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 0 0 3px var(--red-700);
}
@keyframes wiggle {
  0%,
  80%,
  100% {
    transform: rotate(0);
  }
  85% {
    transform: rotate(-12deg) scale(1.1);
  }
  92% {
    transform: rotate(12deg) scale(1.1);
  }
}

/* ---------- Pase: estilo Apple Wallet (iPhone) y Google Wallet (Android) ---------- */
.pass-scene {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  perspective: 1800px;
}
.pass {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.pass.flipped {
  transform: rotateY(180deg);
}
.pass-face {
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.pass-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.pf span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pf b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
}
.pf.r {
  text-align: right;
}
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

/* iPhone */
.pass--apple {
  --pass-label: #ff6b70;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}
.pass--apple .pass-face {
  border-radius: 14px;
}
.pass--apple .pass-front {
  position: relative;
  background: radial-gradient(130% 90% at 0% 0%, #2b2725 0%, #171514 45%, #0c0b0a 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.07),
    0 22px 44px rgb(0 0 0 / 0.45),
    0 3px 10px rgb(0 0 0 / 0.3);
}
.pa-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.05) 48%, transparent 62%);
}
.pa-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 13px;
}
.pa-logo {
  width: auto;
  height: 36px;
}
.pass--apple .pf span {
  color: var(--pass-label);
}
.pa-head .pf b {
  font-size: 22px;
}
.pa-strip {
  position: relative;
  padding: 22px 14px;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgb(0 0 0 / 0.09) 26px 31px),
    linear-gradient(135deg, #e3343b 0%, var(--red) 45%, #a8141c 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(0 0 0 / 0.25);
}
.pa-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 14px 16px 0;
}
.pa-row.three {
  grid-template-columns: auto auto auto;
  justify-content: space-between;
}
.pf.lg b {
  font-size: 25px;
}
.pa-demo-space {
  height: 20px;
}
.pa-foot {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 20px 16px 18px;
}
.pa-barcode {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 10px 6px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}
.pa-barcode img {
  width: 132px;
  height: 132px;
}
.pa-barcode span {
  font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.08em;
  color: #111;
}
.pass-info {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pass-label);
  cursor: pointer;
}
.pass-info .i {
  width: 22px;
  height: 22px;
}
.pass--apple .pass-back {
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #1c1c1e;
  box-shadow: 0 22px 44px rgb(0 0 0 / 0.45);
}
.pb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5ea;
  background: #fff;
}
.pb-head img {
  width: auto;
  height: 30px;
}
.pb-done {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.pb-list {
  flex: 1;
  margin: 0;
  padding: 4px 16px 16px;
  overflow: auto;
}
.pb-list div {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5ea;
}
.pb-list div:last-child {
  border-bottom: 0;
}
.pb-list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8e8e93;
}
.pb-list dd {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.35;
}
.pb-list a,
.pg-details a {
  color: var(--red-700);
  font-weight: 600;
}

/* Android */
.pass--google {
  color: #fff;
  font-family: Roboto, 'Google Sans', 'Helvetica Neue', Arial, sans-serif;
}
.pass--google .pass-front {
  position: relative;
  border-radius: 20px;
  background: var(--red);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.2),
    0 12px 30px rgb(0 0 0 / 0.18);
}
.pg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 0;
}
.pg-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.3);
}
.pg-logo img {
  width: 100%;
  height: 100%;
}
.pg-issuer {
  font-size: 14px;
  font-weight: 500;
}
.pg-title {
  margin: 0;
  padding: 14px 18px 2px;
  font-family: inherit;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
}
.pg-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  padding: 12px 18px 18px;
}
.pass--google .pf span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgb(255 255 255 / 0.85);
}
.pass--google .pf b {
  font-size: 17px;
  font-weight: 500;
}
.pg-barcode {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  padding: 18px 16px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #202124;
  cursor: zoom-in;
}
.pg-barcode img {
  width: 156px;
  height: 156px;
}
.pg-barcode span {
  font: 500 14px Roboto, Arial, sans-serif;
  letter-spacing: 0.1em;
}
.pg-hero {
  position: relative;
  padding: 18px 16px 36px;
  background:
    repeating-linear-gradient(115deg, transparent 0 24px, rgb(255 255 255 / 0.03) 24px 27px),
    var(--black);
}
.pg-hero .stamps {
  gap: 8px;
}
.pg-hero-logo {
  position: absolute;
  right: 14px;
  bottom: 9px;
  width: auto;
  height: 20px;
  opacity: 0.9;
}
.pg-details {
  width: 100%;
  max-width: 380px;
  margin: 2px auto 0;
  padding: 4px 18px 6px;
  border-radius: 20px;
  background: #fff;
  color: #202124;
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  scroll-margin-top: 80px;
}
.pg-details h3 {
  padding: 12px 0 4px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.pg-details dl {
  margin: 0;
}
.pg-details div {
  padding: 12px 0;
  border-top: 1px solid #e8eaed;
}
.pg-details dt {
  font-size: 12px;
  color: #5f6368;
}
.pg-details dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

/* Sellos dentro de los pases */
.pa-strip .stamp {
  max-width: 54px;
  border: 2px dashed rgb(255 255 255 / 0.55);
  background: rgb(0 0 0 / 0.18);
  color: rgb(255 255 255 / 0.6);
}
.pa-strip .stamp.on {
  border: 3px solid #fff;
  background: #fff;
  color: var(--red);
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.28);
}
.pa-strip .stamp.goal:not(.on) {
  border-color: #fff;
  background: rgb(0 0 0 / 0.25);
  color: #fff;
}
.pg-hero .stamp {
  max-width: 54px;
  border: 2px dashed #4a4a4f;
  background: #1a1918;
  color: #5a5a60;
}
.pg-hero .stamp.on {
  border: 3px solid #fff;
  background: var(--red);
  color: #fff;
  box-shadow: none;
}
.pg-hero .stamp.goal:not(.on) {
  border-color: var(--red);
  color: var(--red);
}

/* Pantalla de la tarjeta, como la app Wallet */
.wallet {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}
body.client.wallet-apple {
  background: #000;
}
body.client.wallet-apple .c-top {
  background: #000;
  border-bottom: 1px solid #1c1c1e;
}
body.client.wallet-apple .tabbar {
  border-top-color: #2c2c2e;
  background: rgb(22 22 23 / 0.94);
}
body.client.wallet-apple .tab {
  color: #8e8e93;
}
body.client.wallet-apple .tab[aria-current='page'] {
  color: #ff5a60;
}
body.client.wallet-google {
  background: #f1f3f4;
}
.wallet-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
body.client.wallet-apple .wallet-alert {
  background: rgb(44 44 46 / 0.95);
  color: #fff;
  box-shadow: none;
}
.wallet-alert-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  animation: wiggle 2s infinite;
}
.wallet-alert strong {
  display: block;
}
.wallet-alert small {
  opacity: 0.72;
}
.wallet-note {
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}
body.client.wallet-apple .wallet-note {
  color: #aeaeb2;
}
body.client.wallet-apple .wallet-note strong {
  color: #fff;
}
.wallet-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.wallet-actions > * {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 80px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.wallet-actions .i {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
body.client.wallet-apple .wallet-actions > * {
  color: #d1d1d6;
}
body.client.wallet-apple .wallet-actions .i {
  background: #1c1c1e;
  color: #fff;
  box-shadow: none;
}
.wallet-save {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
dialog.qr-full {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}
dialog.qr-full::backdrop {
  background: #fff;
}
.qr-full-inner {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 100%;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}
.qr-full-logo {
  width: auto;
  height: 46px;
  margin-bottom: 14px;
}
.qr-full-img {
  width: min(78vw, 340px);
  height: auto;
  aspect-ratio: 1;
}
.qr-full-inner strong {
  font-size: 22px;
}
.qr-full-inner p {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 32ch;
  text-align: left;
  margin: 12px 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg);
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: block;
  padding: 9px 6px;
  border-radius: 9px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.segmented input:checked + span {
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.segmented input:focus-visible + span {
  outline: 3px solid rgb(215 32 40 / 0.4);
}
.install-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.install-steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.install-steps p {
  margin-top: 3px;
}
.inline-icon {
  display: inline-flex;
  vertical-align: -4px;
}
.inline-icon .i {
  width: 18px;
  height: 18px;
  color: #0a84ff;
}

/* ---------- App del cliente ---------- */
body.client {
  background: var(--bg);
}
.c-shell {
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
.c-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--black);
  color: #fff;
}
.c-hello {
  font-weight: 600;
  color: #d4d4d8;
}
.c-main {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.c-main > section {
  margin-bottom: 22px;
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 520px;
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.tab .i {
  width: 23px;
  height: 23px;
}
.tab[aria-current='page'] {
  color: var(--red);
}
.tab[aria-current='page']::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
}
.tab .dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Portada */
.landing {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
}
.hero {
  position: relative;
  padding: calc(22px + env(safe-area-inset-top)) 20px 34px;
  background: var(--black);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-stripes {
  /* Solo en la esquina superior: termina antes del título para no tapar el texto rojo. */
  position: absolute;
  top: -24px;
  right: -36px;
  width: 132px;
  height: 104px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 24px);
  transform: skewX(-24deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero > :not(.hero-bg) {
  position: relative;
}
.hero h1 {
  margin: 30px 0 12px;
  font-size: clamp(40px, 12vw, 54px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}
.hero h1 em {
  color: var(--red);
}
.hero-lead {
  max-width: 34ch;
  color: #d4d4d8;
}
.hero-card {
  margin: 28px 6px -70px;
}
.hero-card .pass-scene {
  transform: rotate(-3deg);
}
.landing-main {
  padding: 84px 16px 30px;
  display: grid;
  gap: 16px;
}
.cta {
  display: grid;
  gap: 10px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.step p {
  color: var(--muted);
  font-size: 14px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
}
.shop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.shop-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Citas del cliente */
.wallet-alert-icon.dark {
  background: var(--black);
  animation: none;
}
body.client.wallet-apple .wallet-alert-icon.dark {
  background: #3a3a3c;
}
.page-cta {
  margin-bottom: 22px;
}
.notice-panel {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.ap-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.ap-date {
  align-self: flex-start;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 58px;
  flex: none;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  line-height: 1.05;
}
.ap-date span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ap-date b {
  font-family: var(--display);
  font-size: 28px;
}
.ap-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
}
.ap-body strong {
  font-size: 16px;
}
.ap-bike {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.ap-bike .i {
  width: 15px;
  height: 15px;
}
.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ap-past {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ap-past li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.ap-past li > div:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
}
.ap-past .ap-date {
  width: 46px;
  padding: 5px 0;
  background: var(--bg);
  color: var(--ink);
}
.ap-past .ap-date b {
  font-size: 20px;
}
.day-strip {
  display: flex;
  gap: 8px;
  margin: 0 -4px 16px;
  padding: 2px 4px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.day-chip {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 58px;
  padding: 8px 4px 13px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  scroll-snap-align: center;
}
.day-chip span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.day-chip b {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}
.day-chip i {
  position: absolute;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.day-chip i.on {
  background: var(--green);
}
.day-chip[aria-pressed='true'] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.day-chip[aria-pressed='true'] span {
  color: rgb(255 255 255 / 0.85);
}
.day-chip[aria-pressed='true'] i.on {
  background: #fff;
}
.day-chip:disabled {
  background: var(--bg);
  opacity: 0.45;
  cursor: default;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.time-chip {
  display: grid;
  white-space: nowrap;
  justify-items: center;
  align-content: center;
  min-height: 48px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.time-chip small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.time-chip[aria-pressed='true'] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.time-chip:disabled {
  background: var(--bg);
  color: #a1a1aa;
  cursor: default;
}
.book-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--black);
  color: #fff;
}
.book-summary .i {
  color: #ff5a60;
}

/* Registro / login */
.auth {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: var(--black);
}
.auth-main {
  padding: 18px 16px 40px;
}
.auth-main .panel > .btn {
  margin-bottom: 14px;
}
.forgot {
  margin-bottom: 14px;
  font-size: 14px;
}
.forgot summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
}
.forgot p {
  margin: 8px 0;
  color: var(--muted);
}

/* Premios */
.scratch-wrap {
  display: grid;
  gap: 8px;
}
.scratch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}
.scratch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.7s ease;
}
.scratch canvas.gone {
  opacity: 0;
  pointer-events: none;
}
.scratch-prize {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgb(215 32 40 / 0.18), transparent 60%),
    repeating-linear-gradient(115deg, #fff 0 18px, #fff6f5 18px 20px);
}
.prize-inner {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.prize-kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-2);
  text-transform: uppercase;
}
.prize-label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 0.95;
  color: var(--red);
  text-transform: uppercase;
}
.prize-code {
  margin-top: 4px;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--ink-2);
}
.scratch.revealed .prize-inner {
  animation: pop 0.5s ease;
}
@keyframes pop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.scratch-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.ticket {
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.ticket-side {
  display: grid;
  place-items: center;
  width: 78px;
  flex: none;
  background: var(--red);
  color: #fff;
}
.ticket-side .i {
  width: 30px;
  height: 30px;
}
.ticket-body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-left: 2px dashed rgb(255 255 255 / 0.6);
}
.ticket-title {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.ticket-msg {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
}
.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.ticket .code {
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.ticket.used {
  opacity: 0.6;
}
.ticket.used .ticket-side {
  background: var(--ink-2);
}

/* Historial */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.summary div {
  display: grid;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.summary b {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}
.summary div:first-child {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.summary span {
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--line);
  display: grid;
  gap: 16px;
}
.timeline li {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg);
}
.timeline time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline strong {
  font-size: 17px;
}
.timeline .muted {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.timeline .muted .i {
  width: 16px;
  height: 16px;
}
.timeline p {
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-line;
}
.timeline .badges {
  margin-top: 4px;
}

/* Bicicletas */
.bike {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.bike-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bike-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--black);
  color: #fff;
}
.bike-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.bike-actions {
  display: flex;
}

/* ---------- Ventanas modales y avisos ---------- */
dialog.modal {
  width: 100%;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
dialog.modal::backdrop {
  background: rgb(10 10 12 / 0.55);
  backdrop-filter: blur(2px);
}
.modal-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}
.modal-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-card > header h2 {
  font-size: 24px;
  text-transform: uppercase;
}
.modal-body {
  overflow: auto;
  padding: 18px 20px 6px;
}
.modal-body > p {
  margin-bottom: 14px;
}
.modal-sub {
  color: var(--muted);
  font-size: 14px;
}
.modal-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fafafa;
}
@media (max-width: 600px) {
  dialog.modal {
    max-width: 100vw;
    margin: auto 0 0;
  }
  .modal-card {
    border-radius: 18px 18px 0 0;
  }
  .modal-card > footer .btn {
    flex: 1;
  }
}
.toasts {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 1000;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--black);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  animation: toast-in 0.25s ease;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast .i {
  color: #4ade80;
}
.toast.error {
  background: var(--red-700);
}
.toast.error .i {
  color: #fff;
}
.toast.out {
  opacity: 0;
  transform: translateY(-8px);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.confetti {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06);
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translate(var(--drift), 105vh) rotate(var(--spin));
  }
}
.temp-pw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 2px dashed var(--red);
  border-radius: 12px;
  background: var(--red-50);
}
.temp-pw code {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.modal-body > .btn.block {
  margin-bottom: 14px;
}
.celebrate {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding-bottom: 8px;
}
.celebrate-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.celebrate-icon .i {
  width: 36px;
  height: 36px;
}
.qr-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-bottom: 12px;
}
.redeem-box,
.preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
}
.redeem-box > .i,
.preview > .i {
  color: var(--red);
}
.redeem-box div {
  display: grid;
}
.kind-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kind span {
  display: grid;
  justify-items: center;
  gap: 6px;
  height: 100%;
  padding: 12px 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.kind span .i {
  width: 24px;
  height: 24px;
  color: var(--muted);
}
.kind input:checked + span {
  border-color: var(--red);
  background: var(--red-50);
}
.kind input:checked + span .i {
  color: var(--red);
}
.kind input:focus-visible + span {
  outline: 3px solid rgb(215 32 40 / 0.4);
  outline-offset: 2px;
}

/* ---------- Panel del taller ---------- */
.a-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
  background: linear-gradient(90deg, var(--black) 248px, transparent 248px);
}
.a-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100dvh;
  padding: 22px 14px 16px;
  background: var(--black);
  color: #fff;
}
.a-brand {
  padding: 0 8px;
  text-decoration: none;
}
.a-nav {
  display: grid;
  gap: 4px;
}
.a-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #c4c4cb;
  font-weight: 600;
  text-decoration: none;
}
.a-nav a:hover {
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}
.a-nav a[aria-current='page'] {
  background: var(--red);
  color: #fff;
}
.a-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.a-user .avatar {
  background: var(--red);
}
.a-user div {
  flex: 1;
  display: grid;
  min-width: 0;
}
.a-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-user small {
  color: #a1a1aa;
}
.a-top,
.a-bottom {
  display: none;
}
.a-main {
  width: 100%;
  max-width: 1240px;
  padding: 26px 30px 40px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.page-head h1 {
  font-size: 38px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
a.kpi:hover {
  border-color: #c9c9cf;
}
.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.kpi-value {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.kpi-sub {
  font-size: 13px;
  color: var(--muted);
}
.kpi.accent {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.kpi.accent .kpi-label,
.kpi.accent .kpi-sub {
  color: rgb(255 255 255 / 0.85);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 2px;
  height: 190px;
  padding-top: 24px;
  border-bottom: 1px solid var(--line);
}
.bar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  outline-offset: 0;
}
.bar {
  width: min(34px, 60%);
  border-radius: 4px 4px 0 0;
  background: var(--red);
  transition: background 0.15s;
}
.bar-col:hover .bar,
.bar-col:focus-visible .bar {
  background: var(--red-700);
}
.bar-value {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.bar-label {
  position: absolute;
  bottom: -24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: capitalize;
}
.bar-col[data-tip]:hover::after,
.bar-col[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% - 18px);
  z-index: 2;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.dash-grid .panel:first-child {
  padding-bottom: 38px;
}
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.mini-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.mini-list li:first-child a {
  border-top: 0;
}
.mini-list .grow {
  display: grid;
}
.mini-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-list.ranked {
  counter-reset: rank;
}
.mini-list.ranked a::before {
  counter-increment: rank;
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--display);
  font-weight: 700;
}
.mini-list.ranked li:first-child a::before {
  background: var(--red);
  color: #fff;
}
.mini-stamps {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 120px;
}
.mini-stamps i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mini-stamps i.on {
  background: var(--red);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.feed-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.feed-item:first-child {
  border-top: 0;
}
.feed-item p {
  font-size: 14px;
}
.feed-item p a {
  font-weight: 600;
  color: var(--red-700);
  text-decoration: none;
}
.feed-item time {
  font-size: 12px;
  color: var(--muted);
}
.feed-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: #c9c9cf;
}
.feed-dot.red {
  background: var(--red);
}
.feed-dot.dark {
  background: var(--black);
}
.feed-dot.green {
  background: var(--green);
}
.toolbar {
  display: grid;
  gap: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(215 32 40 / 0.15);
}
.search .i {
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed='true'] {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}
.list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.list + .btn {
  margin-top: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.row:first-child {
  border-top: 0;
}
.row:hover {
  background: #fafafa;
}
.row-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.row-main > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-bikes {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.row-bikes .i {
  width: 15px;
  height: 15px;
}
.row-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.row-chevron {
  color: #b4b4bb;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.client-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: start;
}
.client-id {
  display: flex;
  gap: 16px;
  align-items: center;
}
.client-id h1 {
  font-size: 34px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}
.contact a {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: none;
}
.client-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.mini-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--black);
  color: #fff;
}
.mini-card .stamps {
  flex: 1;
  align-content: center;
  padding: 16px 14px 12px;
  gap: 8px;
}
.mini-card .stamp {
  max-width: 44px;
  border-width: 2px;
}
.mini-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--red);
  font-size: 13px;
}
.stat-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.stat-pills div {
  display: grid;
  align-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg);
}
.stat-pills dt {
  font-size: 12px;
  color: var(--muted);
}
.stat-pills dd {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.client-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 470px;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}
.menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}
.menu-list button:hover {
  background: var(--bg);
}
.menu-list .i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.m-list,
.r-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.m-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.m-item:first-child {
  border-top: 0;
}
.m-date {
  display: grid;
  justify-items: center;
  width: 52px;
  flex: none;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--bg);
}
.m-date b {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}
.m-date span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.m-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.m-body p {
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-line;
}
.m-item.voided .m-body > strong,
.m-item.voided .m-body > p {
  text-decoration: line-through;
  color: var(--muted);
}
.r-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.r-item:first-child {
  border-top: 0;
}
.r-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
}
.r-item.redeemed .r-icon,
.r-item.voided .r-icon {
  background: var(--bg);
  color: var(--muted);
}
.r-body {
  flex: 1;
  min-width: 160px;
  display: grid;
  gap: 3px;
}
.r-actions {
  display: flex;
  gap: 6px;
  margin-left: 52px;
  width: 100%;
}
details.sub > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 0;
}
details.sub > summary h2 {
  display: inline;
  font-size: 21px;
  text-transform: uppercase;
  color: var(--ink);
}
.scan-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.scanner {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--black);
  color: #a1a1aa;
}
.scanner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.scanner.on video {
  opacity: 1;
}
.scan-frame {
  position: absolute;
  inset: 18% 26%;
  border: 3px solid rgb(255 255 255 / 0.85);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgb(0 0 0 / 0.35);
  opacity: 0;
}
.scanner.on .scan-frame {
  opacity: 1;
}
.scan-msg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.exports h2 {
  margin-bottom: 12px;
}
.reg-qr {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.reg-qr img {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
}
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.team li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.team li:first-child {
  border-top: 0;
}
.team li.off {
  opacity: 0.55;
}
.team .grow {
  display: grid;
}
.a-login {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100dvh;
  padding: 20px;
  background:
    repeating-linear-gradient(115deg, transparent 0 40px, rgb(215 32 40 / 0.08) 40px 44px),
    var(--black);
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  border-radius: 20px;
  background: #18181b;
  color: #fff;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.4);
}
.login-card h1 {
  margin: 22px 0 6px;
  font-size: 34px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.login-card > .muted {
  margin-bottom: 20px;
  color: #a1a1aa;
}
.login-card .field label {
  color: #d4d4d8;
}
.login-card .input {
  border-color: #3f3f46;
  background: #0e0e0f;
  color: #fff;
}

/* Agenda del taller */
.panel.wide {
  grid-column: 1 / -1;
}
.ag-week {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ag-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.ag-day {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 2px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
}
.ag-day span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.ag-day b {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}
.ag-day em {
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.ag-day em.busy {
  color: var(--red-700);
}
.ag-day em.closed {
  color: var(--amber);
}
.ag-day.today {
  border-color: var(--black);
}
.ag-day[aria-pressed='true'] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.ag-day[aria-pressed='true'] span,
.ag-day[aria-pressed='true'] em {
  color: rgb(255 255 255 / 0.9);
}
.ag-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.ag-timeline > li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ag-timeline > li:first-child {
  border-top: 0;
}
.ag-timeline time {
  padding-top: 6px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}
.ag-timeline li.blocked time {
  color: var(--muted);
}
.ag-slot {
  display: grid;
  gap: 8px;
}
.ag-free {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed #c9c9cf;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
button.ag-free {
  cursor: pointer;
}
button.ag-free:hover {
  border-color: var(--red);
  color: var(--red-700);
}
.ag-free .i {
  width: 16px;
  height: 16px;
}
.ag-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: var(--surface);
}
.ag-card.done {
  border-left-color: var(--green);
}
.ag-card.no_show {
  border-left-color: var(--amber);
}
.ag-card.cancelled {
  border-left-color: #c9c9cf;
  opacity: 0.75;
}
.ag-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.ag-who .grow {
  display: grid;
}
.ag-who strong {
  line-height: 1.2;
}
.ag-what {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.ag-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
#client-aps .ag-card {
  grid-template-columns: minmax(0, 1fr);
}
#client-aps .ag-actions,
#today .ag-actions {
  justify-content: flex-start;
}
.ag-blocks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ag-blocks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--amber-50);
  color: var(--amber);
  font-weight: 600;
}
.ag-blocks li span {
  flex: 1;
}
.sched {
  display: grid;
  gap: 6px;
  margin: 6px 0 8px;
}
.sched-day {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.sched-day .check {
  margin: 0;
}
.sched-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sched-ranges.off {
  opacity: 0.4;
}
.sched-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sched-range .input {
  width: 140px;
  min-height: 40px;
  padding: 6px 8px;
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.na-results {
  list-style: none;
  margin: -6px 0 14px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.na-results button {
  display: grid;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.na-results button:hover {
  border-color: var(--red);
}
.na-picked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
}
.na-picked .grow {
  display: grid;
}

@media (max-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-head {
    grid-template-columns: 1fr;
  }
  .client-stats,
  .client-actions {
    grid-column: auto;
    grid-row: auto;
  }
  .client-actions {
    justify-content: flex-start;
    max-width: none;
  }
}
@media (max-width: 899px) {
  .a-shell {
    grid-template-columns: 1fr;
    background: none;
  }
  .a-side {
    display: none;
  }
  .a-top {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px;
    background: var(--black);
  }
  .a-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 0.97);
  }
  .a-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 2px 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
  }
  .a-bottom a[aria-current='page'] {
    color: var(--red);
  }
  .a-bottom a.scan-link .i {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 10px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 16px rgb(215 32 40 / 0.4);
  }
  .a-main {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  }
  .page-head h1 {
    font-size: 32px;
  }
  .dash-grid,
  .detail-grid,
  .scan-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .client-stats {
    grid-template-columns: 1fr;
  }
  .client-actions > .btn {
    flex: 1 1 auto;
  }
  .ag-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .ag-actions {
    justify-content: flex-start;
  }
  .ag-timeline > li {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }
  .ag-timeline time {
    font-size: 13px;
  }
  .ag-week {
    flex-wrap: wrap;
  }
  .ag-days {
    order: -1;
    flex-basis: 100%;
    gap: 4px;
  }
  .ag-day b {
    font-size: 20px;
  }
  .ag-day em {
    font-size: 9.5px;
  }
  .sched-day {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 560px) {
  .kpi-value {
    font-size: 36px;
  }
  .kpi {
    padding: 12px 14px;
  }
  .row {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .row-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    width: 100%;
    padding-left: 54px;
    text-align: left;
  }
  .row-chevron {
    display: none;
  }
  .client-id h1 {
    font-size: 28px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .kind-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .r-actions {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Póster imprimible ---------- */
.poster-page {
  background: #d4d4d8;
  padding: 20px;
}
.poster-tools {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.poster {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 40px;
  border-radius: 24px;
  background: var(--red);
  color: #fff;
  text-align: center;
}
.poster-head {
  padding: 18px 26px;
  border-radius: 18px;
  background: #fff;
}
.poster h1 {
  font-size: 56px;
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
.poster h1 em {
  color: var(--black);
}
.poster-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}
.poster-steps b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--black);
  font-family: var(--display);
  font-style: italic;
}
.poster-qr {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
}
.poster-qr img {
  width: 300px;
  height: 300px;
}
.poster-foot {
  font-size: 16px;
  font-weight: 600;
}
@media print {
  @page {
    size: letter portrait;
    margin: 12mm;
  }
  .poster-page {
    background: #fff;
    padding: 0;
  }
  .poster-tools {
    display: none;
  }
  .poster {
    max-width: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Crédito del desarrollador: pequeño y discreto al pie */
.dev-credit {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.dev-credit:hover,
.dev-credit:focus-visible {
  opacity: 1;
  text-decoration: underline;
}
.dev-credit strong {
  font-weight: 600;
}
.dev-credit.on-dark {
  color: #a1a1aa;
}
.a-side .dev-credit {
  margin: 10px 0 0;
  padding: 4px 8px;
}
