/* ============================================================
   R3 JOB · components — piezas reutilizables de la app
   ============================================================ */

/* ---------------- Tarjeta ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
}
.card > header {
  display: flex; align-items: baseline; gap: var(--sp-3);
  margin: calc(-1 * var(--sp-1)) 0 var(--sp-3);
  flex-wrap: wrap;
}
.card > header h3, .card > header h4 { flex: 1; min-width: 0; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.acc { border-color: var(--acc); }
.card.flush > header { padding: var(--sp-4) var(--sp-4) 0; margin: 0 0 var(--sp-3); }

.grid { display: grid; gap: var(--sp-3); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.spread { margin-left: auto; }

/* ---------------- Cifra destacada ---------------- */
.stat {
  display: grid; gap: 2px;
  padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.stat .k { font-size: var(--t-2xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.stat .v {
  font-family: var(--mono); font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
}
.stat .s { font-size: var(--t-xs); color: var(--ink-2); }
.stat.acc { background: var(--acc-soft); border-color: transparent; }
.stat.acc .v { color: var(--acc); }
.stat.dat { background: var(--data-soft); border-color: transparent; }
.stat.dat .v { color: var(--data); }
.stat.ok { background: var(--ok-soft); border-color: transparent; } .stat.ok .v { color: var(--ok); }
.stat.aviso { background: var(--aviso-soft); border-color: transparent; } .stat.aviso .v { color: var(--aviso); }
.stat.grave { background: var(--grave-soft); border-color: transparent; } .stat.grave .v { color: var(--grave); }

/* ---------------- Lista de filas ---------------- */
.list { display: grid; }
.list__row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 11px var(--sp-4);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.list__row:first-child { border-top: 0; }
.list__row .main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.list__row .main b { font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.008em; }
.list__row .main span { font-size: var(--t-xs); color: var(--ink-3); }
.list__row .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-sm); flex: none; }
.list__row.on { background: var(--acc-soft); }
.list__row.hoverable { cursor: pointer; transition: background-color var(--d-xs) var(--ease-out); }
.list__row.hoverable:hover { background: var(--surface-2); }

.empty {
  padding: var(--sp-6) var(--sp-4);
  text-align: center; color: var(--ink-3); font-size: var(--t-sm);
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  display: grid; gap: 6px; justify-items: center;
}
.empty .big { font-size: 1.6rem; opacity: 0.5; }

/* ---------------- Tabla ---------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); min-width: 440px; }
th, td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th {
  background: var(--surface-2); position: sticky; top: 0;
  font-size: var(--t-2xs); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- Teclado numérico ---------------- */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.keypad button {
  padding: 15px 0; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--r-sm); font-family: var(--mono); font-size: 1.2rem; font-weight: 650;
  cursor: pointer; transition: background-color var(--d-xs) var(--ease-out), transform var(--d-xs) var(--ease-out);
}
.keypad button:hover { background: var(--surface-3); }
.keypad button:active { transform: scale(0.94); background: var(--acc-soft); }
.keypad button.wide { grid-column: span 2; }
.keypad button.act { background: var(--acc); color: var(--acc-ink); border-color: transparent; }

/* ---------------- Chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: var(--r-full); padding: 5px 12px; font-size: var(--t-xs); font-weight: 600;
  cursor: pointer; transition: all var(--d-xs) var(--ease-out); white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--acc); border-color: transparent; color: var(--acc-ink); }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line); color: var(--ink-2); }

/* ---------------- Aviso ---------------- */
.note {
  border-left: 3px solid var(--acc);
  background: var(--acc-soft);
  padding: 11px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm); line-height: 1.5;
}
.note.aviso { border-left-color: var(--aviso); background: var(--aviso-soft); }
.note.grave { border-left-color: var(--grave); background: var(--grave-soft); }
.note.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.note.dat { border-left-color: var(--data); background: var(--data-soft); }
.note b { font-weight: 650; }

/* ---------------- Toast ---------------- */
.toaster {
  position: fixed; left: 50%; bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid; gap: 8px; justify-items: center;
  width: max-content; max-width: calc(100vw - 2 * var(--sp-4));
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: var(--r-full);
  font-size: var(--t-sm); font-weight: 600;
  box-shadow: var(--shadow-3);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn 320ms var(--ease-spring) both;
}
.toast.out { animation: toastOut 220ms var(--ease-in-out) both; }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.toast.ok .dot { background: var(--ok); }
.toast.grave .dot { background: var(--grave); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* ---------------- Diálogo ---------------- */
dialog {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); padding: 0; max-width: min(520px, calc(100vw - 2 * var(--sp-4)));
  width: 100%; box-shadow: var(--shadow-3);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); }
dialog[open] { animation: viewIn var(--d-sm) var(--ease-out) both; }
dialog > form, dialog > .dlg { display: grid; gap: var(--sp-4); padding: var(--sp-5); }
dialog h3 { font-size: var(--t-lg); }

/* ---------------- Barra de acciones fija (móvil) ---------------- */
.dock {
  position: sticky; bottom: 0;
  background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-line);
  padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom));
  margin-top: var(--sp-3);
  display: flex; gap: var(--sp-2); align-items: center;
  z-index: var(--z-sticky);
}
.dock .total { flex: 1; display: grid; }
.dock .total .k { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-3); }
.dock .total .v { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.04em; }

/* ---------------- Gráfico de barras simple ---------------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; }
.bars > div {
  flex: 1; min-width: 4px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--acc), var(--acc-lo));
  position: relative;
  transform-origin: bottom;
  animation: pourFill 620ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}
.bars > div[data-zero="1"] { background: var(--surface-3); }
.barsx { display: flex; gap: 3px; margin-top: 5px; }
.barsx > span { flex: 1; min-width: 4px; text-align: center; font-size: 9px; color: var(--ink-3); font-family: var(--mono); }

/* ---------------- Anillo de temporizador ---------------- */
.timer {
  display: grid; gap: var(--sp-3); justify-items: center;
  padding: var(--sp-4); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.timer.done { border-color: var(--grave); background: var(--grave-soft); }
.timer.run { border-color: var(--acc); }
.timer__ring { position: relative; width: 108px; height: 108px; }
.timer__ring svg { width: 100%; height: 100%; }
.timer__val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.04em;
}
.timer__name { font-size: var(--t-sm); font-weight: 650; text-align: center; }
.timer__row { display: flex; gap: 6px; }

/* ---------------- Divisor de sección dentro de una vista ---------------- */
.subhead {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-2xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  margin-top: var(--sp-2);
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- Etiqueta arrastrable / borrar ---------------- */
.del {
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  width: 28px; height: 28px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
  transition: color var(--d-xs) var(--ease-out), background-color var(--d-xs) var(--ease-out);
}
.del:hover { color: var(--grave); background: var(--grave-soft); }

/* ============================================================
   TPV · rejilla de productos
   Botones compactos: tres por fila en un móvil, más en pantallas
   grandes. Prioridad absoluta a que quepan muchos y se acierte
   al pulsar sin mirar.
   ============================================================ */
.pos {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
@media (min-width: 520px) { .pos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; } }
@media (min-width: 900px) { .pos { grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); } }

.pos__item {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  min-height: 68px;
  padding: 9px 9px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  transition: transform var(--d-xs) var(--ease-out), border-color var(--d-xs) var(--ease-out),
              background-color var(--d-xs) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pos__item:hover { border-color: var(--line-2); background: var(--surface-2); }
.pos__item:active { transform: scale(0.955); background: var(--acc-soft); border-color: var(--acc); }
.pos__item .n {
  font-size: 0.78125rem; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pos__item .p {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 700;
  color: var(--acc); letter-spacing: -0.02em;
}
.pos__item .aler {
  position: absolute; top: 5px; right: 6px;
  font-size: 9px; color: var(--ink-3);
}
/* Insignia con las unidades ya marcadas de ese producto. */
.pos__item .uds {
  position: absolute; top: 0; right: 0;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--acc); color: var(--acc-ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  border-radius: 0 var(--r-sm) 0 var(--r-sm);
}
.pos__item.editando { border-color: var(--data); border-style: dashed; }

/* Cabecera pegajosa del TPV: buscar + categorías + pestañas */
.pos-head {
  position: sticky; top: 55px; z-index: var(--z-sticky);
  background: var(--bg);
  padding: 8px 0;
  margin-bottom: 4px;
  display: grid; gap: 7px;
}
.pos-head .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pos-head .chips::-webkit-scrollbar { display: none; }
.pos-tabs { display: none; }
@media (max-width: 899px) { .pos-tabs { display: flex; } }

/* Dock de cobro: siempre visible, con el total grande */
.dock.pos-dock {
  position: sticky;
  bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  border: 1px solid var(--glass-line);
  border-bottom: 0;
  padding-inline: var(--sp-3);
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.7);
}
.dock.pos-dock .v { font-size: 1.5rem; }

/* Línea de comanda compacta */
.linea {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 8px var(--sp-4);
  border-top: 1px solid var(--line);
}
.linea:first-child { border-top: 0; }
.linea__n { min-width: 0; display: grid; gap: 1px; }
.linea__n b { font-size: var(--t-sm); font-weight: 600; }
.linea__n span { font-size: var(--t-2xs); color: var(--ink-3); }
.linea__n .nota { color: var(--data); font-style: italic; }
.linea__t { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-sm); font-weight: 650; min-width: 58px; text-align: right; }

/* ============================================================
   CUADRE DE CAJA · contador de piezas
   Tres columnas fijas: valor, cuántas hay y cuánto suma. Los
   billetes y las monedas van agrupados bajo su título, así no hay
   que repetir la palabra en cada fila.
   ============================================================ */
.denoms { display: grid; }

.denoms__cab {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--sp-4) 6px;
  font-size: var(--t-2xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.denoms__cab::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.den {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
  padding: 3px var(--sp-4);
  border-top: 1px solid transparent;
}
.den + .den { border-top-color: var(--line); }

.den .lab {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.den input {
  width: 100%;
  padding: 8px 11px;
  text-align: right;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
/* Una fila con piezas contadas se resalta: se ve de un vistazo qué
   has metido ya y qué te falta por contar. */
.den.hay input { border-color: var(--acc); background: var(--acc-soft); color: var(--ink); }
.den.hay .lab { color: var(--ink); }

.den .sub {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.den.hay .sub { color: var(--acc); font-weight: 650; }

.den.tot {
  grid-template-columns: 1fr auto;
  margin-top: var(--sp-2);
  padding: 13px var(--sp-4);
  background: var(--acc);
  color: var(--acc-ink);
  border-top: 0;
}
.den.tot .lab,
.den.tot .sub {
  color: var(--acc-ink);
  font-size: var(--t-md);
  font-weight: 700;
}
.den.tot .sub { font-size: 1.15rem; }

@media (max-width: 420px) {
  .den { grid-template-columns: 56px minmax(0, 1fr) 76px; gap: 7px; padding-inline: var(--sp-3); }
  .denoms__cab { padding-inline: var(--sp-3); }
  .den.tot { padding-inline: var(--sp-3); }
}

/* ============================================================
   CIFRA PROTAGONISTA
   El total de una cuenta o el descuadre: lo que se mira primero.
   ============================================================ */
.totalazo {
  display: grid; gap: 2px; justify-items: center; text-align: center;
  padding: var(--sp-5) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.totalazo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, var(--cobre-400), var(--acero-400));
}
.totalazo .k { font-size: var(--t-2xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.totalazo .v { font-size: clamp(2.6rem, 13vw, 4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.totalazo .s { font-size: var(--t-sm); color: var(--ink-2); max-width: 34ch; margin-top: 4px; }
.totalazo.ok .v { color: var(--ok); } .totalazo.ok::after { background: var(--ok); }
.totalazo.aviso .v { color: var(--aviso); } .totalazo.aviso::after { background: var(--aviso); }
.totalazo.grave .v { color: var(--grave); } .totalazo.grave::after { background: var(--grave); }

/* ============================================================
   MENÚ DEL DÍA · pizarra
   ============================================================ */
.pizarra {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--acc-soft), transparent 70%),
    var(--surface);
  text-align: center;
  position: relative; overflow: hidden;
}
.pizarra__cab { display: grid; gap: 4px; justify-items: center; }
.pizarra__cab h3 { font-size: clamp(1.4rem, 5vw, 2rem); }
.pizarra__precio {
  margin-top: var(--sp-3);
  font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em;
  color: var(--acc);
}

.plato {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px var(--sp-4);
  border-top: 1px dashed var(--line);
}
.plato:first-child { border-top: 0; }
.plato__n { flex: 1; min-width: 0; font-size: var(--t-md); }
.plato__p { font-family: var(--mono); font-size: var(--t-sm); color: var(--acc); font-weight: 700; flex: none; }
.platos { padding-bottom: 4px; }

/* ============================================================
   TURNOS · calendario del mes
   ============================================================ */
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px; padding: var(--sp-3) var(--sp-4) var(--sp-4);
  /* Sin tope, en un monitor las casillas cuadradas se vuelven enormes. */
  max-width: 440px; margin-inline: auto; width: 100%;
}
.cal__cab {
  text-align: center; font-size: var(--t-2xs); font-weight: 700;
  color: var(--ink-3); letter-spacing: 0.08em; padding-bottom: 2px;
}
.cal__hueco { aspect-ratio: 1; }
.cal__dia {
  aspect-ratio: 1; border-radius: 7px;
  display: grid; place-content: center; gap: 1px;
  background: var(--surface-2); border: 1px solid transparent;
  font-size: var(--t-2xs);
}
.cal__dia .cal__n { color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; text-align: center; }
.cal__dia .cal__t { font-family: var(--mono); font-weight: 700; font-size: 12px; text-align: center; }
.cal__dia.trabaja { background: var(--acc-soft); }
.cal__dia.trabaja .cal__t { color: var(--acc); }
.cal__dia[data-tono="dat"].trabaja { background: var(--data-soft); }
.cal__dia[data-tono="dat"].trabaja .cal__t { color: var(--data); }
.cal__dia[data-tono="aviso"].trabaja { background: var(--aviso-soft); }
.cal__dia[data-tono="aviso"].trabaja .cal__t { color: var(--aviso); }
.cal__dia[data-tono="grave"].trabaja { background: var(--grave-soft); }
.cal__dia[data-tono="grave"].trabaja .cal__t { color: var(--grave); }
.cal__dia.hoy { border-color: var(--ink); }
.cal__dia.hoy .cal__n { color: var(--ink); font-weight: 700; }

/* ============================================================
   CARGANDO · mientras la foto se lee
   ============================================================ */
.cargando {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--acc);
  animation: giraCarga 800ms linear infinite;
}
@keyframes giraCarga { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cargando { animation: none; border-top-color: var(--acc); }
}

/* ============================================================
   BARRA INFERIOR DE PESTAÑAS · la navegación real en el móvil
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  display: none;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--glass-line);
  padding-bottom: env(safe-area-inset-bottom);
}
body.is-app .tabbar { display: flex; }
@media (min-width: 1040px) { body.is-app .tabbar { display: none; } }
.tabbar__i {
  flex: 1; display: grid; justify-items: center; gap: 2px;
  padding: 7px 2px 6px;
  color: var(--ink-3); text-decoration: none;
  font-size: 10px; letter-spacing: -0.01em;
  transition: color var(--d-xs) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tabbar__i:hover { text-decoration: none; color: var(--ink-2); }
.tabbar__i.on { color: var(--acc); }
.tabbar__ico { display: grid; place-items: center; height: 22px; }
.tabbar__t { text-align: center; line-height: 1.15; }
/* Hueco para que la barra no tape el final del contenido. */
@media (max-width: 1039px) {
  body.is-app .applayout { padding-bottom: 74px; }
  body.is-app .dock { bottom: 60px; }
}

/* Panel de cuenta */
dialog.panel { max-width: min(440px, calc(100vw - 2 * var(--sp-4))); }

/* Botón de Google.
   Lo pinta su propia librería, así que aquí sólo se le da sitio y se
   recorta: sin esto asomaba la caja blanca de su contenedor por detrás
   del botón y parecía un botón dentro de otro. */
.gbtn {
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 44px;
}
.gbtn > div {
  border-radius: 999px;
  overflow: hidden;
  background: transparent !important;
  box-shadow: 0 2px 12px -6px rgba(0, 0, 0, 0.5);
}
.gbtn iframe { border-radius: 999px !important; }

/* ---------------- Stepper ---------------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; flex: none; }
.stepper button {
  width: 30px; height: 30px; border: 0; background: var(--surface-2); color: var(--ink);
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background-color var(--d-xs) var(--ease-out);
}
.stepper button:hover { background: var(--surface-3); }
.stepper .q { min-width: 30px; text-align: center; font-family: var(--mono); font-size: var(--t-sm); font-weight: 650; }
