/* Tarjeta Matew: estética del boceto aprobado (negro, rojo de sello y oro). */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 700 900; /* recortada: solo los grosores que usa la app */
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700; /* recortada: solo los grosores que usa la app */
  font-display: swap;
}

:root {
  --bg: #0c0b0d; --phone: #141215; --panel: #1c191d; --line: #2e2a2f;
  --text: #f2ede6; --muted: #9e959b; --red: #d4232d; --red-soft: #3a1316;
  --gold: #d6b25e; --gold-2: #f6e3a6; --gold-soft: #2f2715; --ok: #5fbf8a;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
}
a { color: var(--text); }
img { max-width: 100%; }

.screen {
  max-width: 440px; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px;
}
.foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: .04em; padding: 6px 0 2px; }
.foot img { height: 11px; width: auto; }

h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
.lead { margin: 0; color: var(--muted); font-size: 14px; }

/* formulario */
form { display: flex; flex-direction: column; gap: 14px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=password] {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px; font: 16px var(--body); width: 100%;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.error { margin: 0; font-size: 14px; color: #ffd9db; background: var(--red-soft); border: 1px solid var(--red); border-radius: 12px; padding: 10px 12px; }

.btn {
  display: block; text-align: center; text-decoration: none;
  border: 0; border-radius: 14px; padding: 14px; font: 700 15px var(--body); cursor: pointer; width: 100%;
}
.btn.red { background: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1d1608; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn:focus-visible, input:focus-visible, a:focus-visible, .flip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* logos */
.signlogo { width: 150px; height: auto; align-self: center; margin-top: 4px; }
.apphead { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.apphead img { height: 30px; width: auto; }

/* entrada con logos: se quita sola con CSS aunque falle el código (freno de seguridad) */
.splash {
  position: fixed; inset: 0; z-index: 50;
  background: radial-gradient(circle at 50% 42%, #221e23, #0a090b 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  cursor: pointer;
  animation: entrada-fuera .6s ease 2.2s forwards;
}
.splash.out { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s .4s; }
.splash .lm { width: 66%; max-width: 230px; height: auto; animation: pop .9s cubic-bezier(.2, 1.3, .4, 1) both; }
.splash .by { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); letter-spacing: .08em; animation: fade 1s .7s both; }
.splash .by img { height: 13px; width: auto; }
html.sin-entrada .splash { display: none; }
@keyframes entrada-fuera { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* tarjeta tipo cartera que se da la vuelta */
.flip { perspective: 1200px; cursor: pointer; border-radius: 18px; container-type: inline-size; --st: clamp(22px, 8.4cqw, 38px); }
.card3d { position: relative; width: 100%; aspect-ratio: 1.586; transition: transform .7s cubic-bezier(.3, .9, .3, 1); transform-style: preserve-3d; }
.flip.flipped .card3d { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: 18px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 13px 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(150deg, #1d1a1e, #09080a 62%);
  border: 1px solid #2e2a2f; box-shadow: 0 18px 40px -18px #000;
}
.face.back { transform: rotateY(180deg); flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.cf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cf-top img { height: clamp(40px, 15cqw, 62px); width: auto; }
.cf-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cf-club { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.badge { font-family: var(--display); font-weight: 900; font-size: 12px; letter-spacing: .12em; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.badge.oro { color: #1d1608; background: linear-gradient(110deg, var(--gold) 0%, var(--gold-2) 45%, var(--gold) 60%); background-size: 220% 100%; animation: shine 2.6s linear infinite; }
.badge.next { color: var(--gold); border: 1px solid var(--gold); }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.cf-stamps { display: grid; grid-template-columns: repeat(5, var(--st, 26px)); gap: calc(var(--st, 26px) * .22) calc(var(--st, 26px) * .45); justify-content: center; }
.st { width: var(--st, 26px); height: var(--st, 26px); border-radius: 50%; border: 1.5px dashed #3c363b; display: grid; place-items: center; font-size: calc(var(--st, 26px) * .38); color: #5a5258; font-variant-numeric: tabular-nums; }
.st.on { border: 0; background: radial-gradient(circle at 35% 30%, #e8424b, var(--red) 60%, #9d1a21); color: #fff; font-family: var(--display); font-weight: 900; font-size: calc(var(--st, 26px) * .5); transform: rotate(-8deg); }
.st.new { animation: drop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes drop { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
.cf-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.cf-name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.cf-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.face.back .qrimg { width: 46%; max-width: 150px; aspect-ratio: 1; border-radius: 8px; background: #fff; flex: none; }
.bk { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.bk b { color: var(--text); font-size: 14px; line-height: 1.2; }
.bk small { font-size: 10px; }
.flip.next .face { border-color: var(--gold); }
.flip.oro .face { background: linear-gradient(135deg, #6b4e17 0%, #c9a24e 30%, #f3dc9a 50%, #c39a44 70%, #5e4415 100%); border-color: #f3dc9a; }
.flip.oro .cf-name, .flip.oro .cf-num, .flip.oro .cf-club, .flip.oro .bk, .flip.oro .bk b { color: #1d1608; }
.flip.oro .st:not(.on) { border-color: rgba(29, 22, 8, .45); color: rgba(29, 22, 8, .6); }
.flip.oro .badge.oro { background: #1d1608; color: var(--gold-2); animation: none; }
.flip.oro .face::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%); animation: sweep 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-55%); } to { transform: translateX(55%); } }
.flip-hint { font-size: 12px; color: var(--muted); text-align: center; margin: -4px 0 0; }

.gift { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.gift b { color: var(--text); }
.gift.ready, .gift.ready b { color: var(--gold-2); }

.box { border-radius: 16px; padding: 14px 16px; background: #09080a; border: 1px solid var(--line); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.meter-row b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; }
.dots span { flex: 1; height: 7px; border-radius: 9px; background: #2a2529; }
.dots span.on { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.hint { font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.hint b { color: var(--text); }
.hint ol { margin: 0; padding-left: 18px; }

.rules { font-size: 12px; color: var(--muted); background: var(--panel); border-radius: 14px; padding: 12px 14px; }
.rules h2, .inbox h2 { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .1em; margin: 0 0 6px; }
.rules ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.rules .gold { color: var(--gold-2); }
.inbox h2 { color: var(--muted); }
.inbox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.inbox li { font-size: 13px; background: var(--panel); border-radius: 10px; padding: 8px 10px; }
.inbox li small { display: block; color: var(--muted); font-size: 11px; }
.inbox li .nb { color: var(--muted); }
.ctas { display: flex; flex-direction: column; gap: 10px; }

/* páginas de texto */
.legal h2 { font-size: 18px; margin-top: 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14px; }
.pendiente { border: 2px dashed var(--red); color: #ffd9db; background: var(--red-soft); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.pend { color: #ffd9db; background: var(--red-soft); border: 1px dashed var(--red); border-radius: 6px; padding: 0 4px; font-weight: 700; }
.legal ul, .legal ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal p b, .legal li b { color: var(--text); }

/* ---- panel de Mateo ---- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 99px; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.viewfinder { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #121013 0 10px, #151216 10px 20px); }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.viewfinder.live video { opacity: 1; }
.viewfinder .frame { width: 62%; aspect-ratio: 1; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .85); position: relative; }
/* láser: caja invisible que ocupa el recorrido (del 18 % al 82 %) con la línea roja en su borde de arriba.
   Se mueve con transform (no con top), así el móvil no recoloca la página en cada imagen. */
.viewfinder .laser { position: absolute; left: 8%; right: 8%; top: 18%; height: 64%; animation: scan 2s ease-in-out infinite; pointer-events: none; }
.viewfinder .laser::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }
@keyframes scan { 0%, 100% { transform: none; } 50% { transform: translateY(100%); } }
.viewfinder p { position: absolute; bottom: 10px; left: 12px; right: 12px; text-align: center; font-size: 12px; color: var(--text); margin: 0; text-shadow: 0 1px 4px #000; }
.manual summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; }
.manual form { margin-top: 10px; }

.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(8, 7, 9, .86); display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; }
.alert-card { width: 100%; max-width: 420px; background: var(--panel); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); margin: auto; }
.alert-card .who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.alert-card .who b { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.alert-card .who span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow { display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.35; }
.msg small { display: block; font-family: var(--body); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .85; margin-top: 3px; }
.msg.gold { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold-2); }
.msg.red { background: var(--red-soft); border: 1px solid var(--red); color: #ffd9db; }
.msg.plain { background: #232025; color: var(--text); }
.msg.big { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

/* huecos libres y avisos en la tarjeta del cliente */
.slots { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 16px; padding: 12px 14px; }
.slots h2 { font-family: var(--display); font-size: 18px; color: var(--gold-2); margin: 0 0 8px; }
.slots ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.slots li { display: flex; flex-direction: column; gap: 6px; }
.slots .when { font-weight: 700; color: var(--text); }
.pushbox { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pushbox p { margin: 0; font-size: 13px; color: var(--muted); }
.pushbox .btn.small { align-self: flex-start; }

/* pestañas del panel */
/* Dos filas que ocupan todo el ancho: arriba Sellar · Clientes · ORO, abajo Novedades · Números.
   Siempre se ven todas (nada escondido a un lado), letra de 14 px y zona de toque de 44 px. Nunca se cortan con «…». */
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tabs button { grid-column: span 2; min-height: 44px; min-width: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 8px 6px; font: 500 14px var(--body); line-height: 1.2; cursor: pointer; white-space: nowrap; }
.tabs button:nth-child(n+4) { grid-column: span 3; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice { display: flex; gap: 8px; }
.choice label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 700; }
.choice input { accent-color: var(--red); }
input[type=time] { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: 16px var(--body); width: 100%; }
.slotrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 10px 12px; }
.slotrow small { display: block; color: var(--muted); font-size: 12px; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
.okmsg { margin: 0; font-size: 14px; color: #d8f5e4; background: #17301f; border: 1px solid var(--ok); border-radius: 12px; padding: 10px 12px; }

/* ventajas ORO en la tarjeta del cliente */
.perks { font-size: 13px; color: var(--gold-2); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 10px 12px; }
.perks b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.perks .detail { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gold); font-weight: 700; overflow-wrap: anywhere; }
.inbox li .btn.small { display: inline-block; margin-top: 6px; }

/* novedades */
.newsbanner { display: flex; flex-direction: column; gap: 8px; background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 16px; padding: 12px 14px; }
.newsbanner b { font-family: var(--display); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-2); }
.newsbanner small { color: var(--muted); font-size: 11px; }
.newstext { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.newsbanner .newstext { color: var(--text); font-size: 15px; }
textarea { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: 16px var(--body); width: 100%; resize: vertical; min-height: 110px; }

/* caducidad de sellos */
.expiry { margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: #ffd9db; background: var(--red-soft); border: 1px solid var(--red); border-radius: 12px; padding: 10px 12px; }

/* QR para apuntarse, a pantalla completa (fondo blanco para que la cámara lo lea bien) */
.qrfull { position: fixed; inset: 0; z-index: 60; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); text-align: center; }
.qrfull p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; max-width: 22ch; }
.qrfull img { width: min(88vw, 62vh); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qrfull .btn { max-width: 320px; }

/* Trae a un amigo */
.friends { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.friends h2 { font-family: var(--display); font-size: 18px; margin: 0; }
.friends .count { margin: 0; font-weight: 700; color: var(--gold-2); }
.center { text-align: center; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.switch input { width: 22px; height: 22px; accent-color: var(--red); }

/* Mis clientes */
.search { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: 16px var(--body); width: 100%; }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 10px 12px; border: 0; color: var(--text); text-align: left; width: 100%; font: inherit; cursor: pointer; }
.li .n { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.li .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pill { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.pill.oro { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1d1608; }
.pill.casi { border: 1px solid var(--gold); color: var(--gold); }
.pill.premio { background: var(--red); color: #fff; }
.qrbig { width: 220px; max-width: 70%; aspect-ratio: 1; align-self: center; border-radius: 12px; background: #fff; }
.linkbox { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; background: #232025; border-radius: 10px; padding: 8px 10px; }
.btn.danger { background: transparent; color: #ff9aa0; border: 1px solid var(--red); }

/* ---- transiciones suaves entre pestañas y pantallas ----
   Solo opacity y transform (no mueven nada de sitio: el móvil no tiene que recolocar la página).
   Nunca hay dos pantallas a la vez: la anterior se oculta al momento y la nueva entra con un fundido corto.
   Una animación CSS vuelve a empezar sola cada vez que algo pasa de oculto a visible, así que si se tocan
   dos pestañas seguidas, gana la última sin quedarse a medias. */
@keyframes entra { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes entra-b { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
@keyframes fundido-b { from { opacity: 0; } to { opacity: 1; } }
@keyframes sale { from { opacity: 1; } to { opacity: 0; } }
/* «backwards»: al terminar no queda ningún transform puesto (así no cambia nada de lo que hay dentro). */
/* pestañas del panel: la clase .entra la pone mateo.js al primer cambio (al abrir el panel no se anima nada) */
.panel.entra { animation: entra 220ms cubic-bezier(.22, .61, .36, 1) backwards; }
/* ficha del cliente y QR a pantalla completa */
.sheet { animation: fundido 200ms ease-out backwards; }
.sheet .alert-card { animation: entra 220ms cubic-bezier(.22, .61, .36, 1) backwards; }
.sheet .alert-card.alt { animation-name: entra-b; } /* cambiar el nombre hace que la animación empiece otra vez */
.qrfull { animation: fundido 200ms ease-out backwards; }
/* paso de una página a otra (apuntarse → tarjeta, tarjeta ↔ privacidad). Los navegadores que no lo
   entienden cambian de página como siempre. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sale 140ms ease-out both; }
::view-transition-new(root) { animation: entra 220ms cubic-bezier(.22, .61, .36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* sin movimiento: como mucho un fundido de 100 ms */
  .panel.entra, .sheet, .sheet .alert-card, .qrfull { animation: fundido 100ms ease-out backwards !important; }
  .sheet .alert-card.alt { animation-name: fundido-b !important; }
  ::view-transition-old(root) { animation: sale 100ms ease-out both; }
  ::view-transition-new(root) { animation: fundido 100ms ease-out both; }
}

/* Números (solo totales): cifras grandes y barras simples con CSS */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--panel); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile b { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-2); overflow-wrap: anywhere; }
.tile span { font-size: 13px; font-weight: 700; }
.tile small { font-size: 11px; color: var(--muted); }
.monthpick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 7px 11px; font: 500 13px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1d1608; font-weight: 700; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-t { height: 12px; border-radius: 9px; background: #2a2529; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left center; transform: scaleX(var(--v, 0)); }
.btn:focus-visible, .chip:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
