/* Pedile · la tienda pública y la página del pedido (lo que ven los clientes, casi siempre en el celular).
   Los colores de cada tienda llegan como variables en el <body>: --acento, --acento-osc, --acento-suave, --fondo-tienda. */

[hidden] { display: none !important; }

:root {
  --tinta: #251a1f;
  --tinta-suave: #6b5a62;
  --linea: #eadfd9;
  --blanco: #fff;
  --ok: #0b8f6a;
  --mal: #c2372f;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(60, 30, 40, 0.06), 0 8px 24px rgba(60, 30, 40, 0.08);
  --fuente: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titulos: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
}

/* ───────── Base (solo en la tienda; el panel también carga este archivo para la vista previa) ───────── */

body.tienda {
  margin: 0;
  background: var(--fondo-tienda, #fff8f6);
  color: var(--tinta);
  font: 16px/1.5 var(--fuente);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.tienda.con-barra { padding-bottom: 96px; }
body.tienda:has(dialog[open]) { overflow: hidden; }
.tienda *, .tienda *::before, .tienda *::after, .vista-cel *, .vista-cel *::before, .vista-cel *::after { box-sizing: border-box; }
.tienda h1, .tienda h2, .tienda h3, .vista-cel h2 { font-family: var(--titulos); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.tienda a { color: var(--acento-osc, #9a1a45); }
.tienda img { max-width: 100%; }

.t-pagina { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; }

.t-demo {
  margin: 0 -16px 8px;
  padding: 10px 16px;
  background: var(--tinta);
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.t-demo a { color: #fff; font-weight: 700; }

/* ───────── Cabecera ───────── */

.t-cab { text-align: center; padding: 28px 0 12px; }
.t-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: var(--acento-suave, #fce4ec);
  border: 3px solid #fff;
  box-shadow: var(--sombra);
}
.t-avatar-letras { color: var(--acento-osc); font: 800 30px/1 var(--titulos); }
.t-nombre { font-size: clamp(28px, 7vw, 38px); margin-top: 12px; }
.t-desc { color: var(--tinta-suave); margin: 8px auto 0; max-width: 520px; }
.t-datos { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 14px; color: var(--tinta-suave); }
.t-contacto { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.t-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--linea);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--tinta) !important;
}
.t-aviso { background: #fff4d6; border: 1px solid #f3d27a; border-radius: 14px; padding: 12px 14px; margin: 8px 0 16px; text-align: center; }

/* ───────── Productos ───────── */

.t-catalogo { margin-top: 12px; }
.t-prods { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .t-pagina .t-prods { grid-template-columns: 1fr 1fr; } }
.t-prod {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 10px 40px 10px 10px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(60, 30, 40, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.t-prod:hover { border-color: var(--acento); box-shadow: var(--sombra); }
.t-prod:active { transform: scale(0.985); }
.t-prod:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.t-prod-foto { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; display: block; }
.t-prod-foto-emoji, .conf-foto-emoji, .cat-foto-emoji {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--acento-suave, #fce4ec), #fff);
  font-size: 44px;
}
.t-prod-texto { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-prod-nombre { font-family: var(--titulos); font-size: 18px; line-height: 1.2; }
.t-prod-desc { color: var(--tinta-suave); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-prod-precio { font-weight: 700; color: var(--acento-osc); font-size: 15px; }
.t-prod-mas {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acento);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.t-vacio { text-align: center; color: var(--tinta-suave); padding: 32px 0; }

/* ───────── Info ───────── */

.t-info { margin-top: 32px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; }
.t-info h2 { font-size: 18px; margin: 18px 0 8px; }
.t-info h2:first-child { margin-top: 0; }
.t-pasos { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.t-entregas { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.t-entregas li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--linea); padding-bottom: 6px; }
.t-entregas li span { color: var(--tinta-suave); text-align: right; }
@media (max-width: 480px) {
  .t-entregas li { flex-direction: column; gap: 2px; }
  .t-entregas li span { text-align: left; }
}
.t-nota { color: var(--tinta-suave); font-size: 14px; margin: 6px 0 0; }
.t-politicas { white-space: pre-line; }
.t-pie { text-align: center; margin-top: 28px; font-size: 14px; }
.t-hecho { color: var(--tinta-suave) !important; text-decoration: none; }
.t-hecho strong { color: #c8285e; font-family: var(--titulos); }
.centrado { text-align: center; }

/* ───────── Barra del carrito ───────── */

.t-barra { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(255, 255, 255, 0.9) 30%); z-index: 20; }
.t-barra-boton {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--acento);
  color: #fff;
  font: 700 17px var(--fuente);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.t-barra-boton span:nth-child(2) { flex: 1; text-align: left; }
.t-barra-cant { min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 15px; }

/* ───────── Modales ───────── */

.t-modal {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  border-radius: 24px 24px 0 0;
  margin: auto auto 0;
  background: #fff;
  color: var(--tinta);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}
.t-modal::backdrop { background: rgba(30, 15, 22, 0.45); }
.t-modal[open] { animation: subir 0.22s ease-out; }
.t-modal-alto { min-height: 70vh; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .t-modal { margin: auto; border-radius: 24px; max-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) { .t-modal[open] { animation: none; } }

/* ───────── Configurador ───────── */

.conf { display: flex; flex-direction: column; min-height: 100%; }
.conf-cab { padding: 18px 20px 6px; text-align: center; position: relative; }
.conf-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #f4eeeb;
  color: var(--tinta);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.conf-foto { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; display: block; margin-top: 30px; }
.conf-foto-emoji { height: 150px; border-radius: 18px; font-size: 72px; margin-top: 30px; }
.conf-nombre { font-size: 24px; margin-top: 14px; }
.conf-desc { color: var(--tinta-suave); margin: 6px 0 0; font-size: 15px; white-space: pre-line; }
.conf-precio-base { margin: 8px 0 0; font-weight: 700; color: var(--acento-osc); }
.conf-aviso { display: inline-block; margin: 8px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--acento-suave); color: var(--acento-osc); font-size: 14px; font-weight: 600; }
.conf-cuerpo { padding: 8px 20px 12px; }
.conf-grupo { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--linea); }
.conf-grupo legend { padding: 0; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.conf-titulo { font-family: var(--titulos); font-weight: 700; font-size: 17px; margin-right: auto; }
.conf-req, .conf-opc { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.conf-req { background: var(--acento-suave); color: var(--acento-osc); }
.conf-opc { background: #f3efed; color: var(--tinta-suave); }
.conf-ayuda { font-size: 14px; color: var(--tinta-suave); margin: -2px 0 8px; }
.conf-error { color: var(--mal); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.opciones { display: grid; gap: 6px; }
.opcion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--linea);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.opcion:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.opcion input { accent-color: var(--acento); width: 20px; height: 20px; margin: 0; flex: none; }
.opcion-nombre { flex: 1; display: flex; flex-direction: column; }
.opcion-nombre small { color: var(--tinta-suave); font-size: 13px; }
.opcion-precio { font-weight: 600; color: var(--tinta-suave); font-size: 14px; white-space: nowrap; }
.campo {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  color: var(--tinta);
}
.campo:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
textarea.campo { resize: vertical; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--linea);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
  color: var(--tinta);
}
.stepper input { width: 92px; text-align: center; font: 700 18px var(--fuente); padding: 10px; border: 1.5px solid var(--linea); border-radius: 12px; }
.stepper-unidad { color: var(--tinta-suave); }
.subir { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.subir input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.conf-grupo .subir { padding: 12px 16px; border: 1.5px dashed var(--linea); border-radius: 14px; width: 100%; justify-content: center; font-weight: 600; }
.foto-ref { display: flex; align-items: center; gap: 12px; }
.foto-ref img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.boton-texto { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--acento-osc, #9a1a45); text-decoration: underline; cursor: pointer; }
.conf-pie { position: sticky; bottom: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0.6), #fff 30%); margin-top: auto; }

/* ───────── Botones ───────── */

.tienda .boton, .vista-cel .boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 0;
  background: var(--acento);
  color: #fff;
  font: 700 16px var(--fuente);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.tienda .boton:hover { background: var(--acento-osc); }
.tienda .boton:disabled { opacity: 0.6; cursor: wait; }
.tienda .boton-grande, .vista-cel .boton-grande { padding: 16px 22px; font-size: 17px; border-radius: 16px; }
.tienda .boton-ancho, .vista-cel .boton-ancho { width: 100%; }
.tienda .boton-claro { background: #fff; color: var(--tinta); border: 1.5px solid var(--linea); }
.tienda .boton-claro:hover { background: #faf6f4; }
.tienda .boton-whatsapp { background: #1f9e55; }
.tienda .boton-whatsapp:hover { background: #17834a; }
.boton-copiar { border: 1px solid var(--linea); background: #fff; border-radius: 8px; padding: 3px 10px; font: 600 13px var(--fuente); cursor: pointer; color: var(--tinta); }

/* ───────── Ticket ───────── */

.ticket { width: 100%; border-collapse: collapse; font-size: 15px; }
.ticket td { padding: 10px 0; vertical-align: top; border-bottom: 1px solid var(--linea); }
.ticket td.num { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.ticket-cant { color: var(--tinta-suave); }
.ticket-det { list-style: none; padding: 0; margin: 4px 0 0; color: var(--tinta-suave); font-size: 14px; }
.ticket-det span { white-space: nowrap; }
.ticket-libre { white-space: pre-line; }
.ticket-acciones { display: flex; gap: 14px; margin-top: 4px; font-size: 14px; }
.ticket tfoot td { border-bottom: 0; padding: 6px 0; }
.ticket-total td { font: 800 19px var(--titulos); padding-top: 12px !important; }
.ticket-sena td { color: var(--acento-osc); font-weight: 700; }
.ticket-saldo td { color: var(--tinta-suave); }

/* ───────── Checkout ───────── */

.checkout { padding: 0 20px 24px; }
.checkout-cab { position: sticky; top: 0; background: #fff; padding: 18px 0 12px; z-index: 3; border-bottom: 1px solid var(--linea); }
.checkout-cab h2 { font-size: 21px; padding-right: 48px; }
.checkout-cab .conf-cerrar { top: 12px; right: 0; }
.paso { padding: 18px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 10px; }
.paso:last-child { border-bottom: 0; }
.paso h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.paso-num { width: 28px; height: 28px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; font-size: 15px; }
.paso-ayuda { color: var(--tinta-suave); font-size: 14px; margin: 0; }
.paso-elegido { margin: 0; font-weight: 700; color: var(--ok); }
.campo-label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.envio-datos { display: grid; gap: 10px; padding: 4px 0 0 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--acento); margin: 2px 0 0; flex: none; }
.politicas { background: #faf6f4; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.politicas summary { cursor: pointer; font-weight: 600; }
.politicas p { white-space: pre-line; margin: 8px 0 0; color: var(--tinta-suave); }
.checkout-error { color: var(--mal); font-weight: 600; margin: 0; background: #fdecea; padding: 10px 12px; border-radius: 10px; }
.cargando { color: var(--tinta-suave); }
.demo-fin { text-align: center; padding: 40px 24px 28px; display: grid; gap: 12px; position: relative; }
.demo-fin .conf-cerrar { top: 12px; right: 12px; }
.ico-grande { font-size: 52px; margin: 0; }

/* ───────── Calendario ───────── */

.cal { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 12px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linea); background: #fff; font-size: 22px; cursor: pointer; color: var(--tinta); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--tinta-suave); text-transform: uppercase; padding: 4px 0; }
.cal-dia {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 0;
  font: 600 15px var(--fuente);
  display: grid;
  place-items: center;
  background: transparent;
  color: #c4b6bc;
}
.cal-libre { background: var(--acento-suave); color: var(--acento-osc); cursor: pointer; }
.cal-libre:hover { outline: 2px solid var(--acento); }
.cal-lleno, .cal-cerrado { text-decoration: line-through; }
.cal-elegido { background: var(--acento) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.cal-ley { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinta-suave); margin: 10px 0 0; }
.cal-ley span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-ley-libre { background: var(--acento-suave); }
.cal-ley-lleno { background: #efe9e6; margin-left: 10px; }

/* ───────── Página del pedido ───────── */

.p-pagina { max-width: 600px; padding-top: 16px; display: grid; gap: 16px; }
.p-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-tienda { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta) !important; font: 700 18px var(--titulos); }
.p-tienda .t-avatar { width: 44px; height: 44px; border-width: 2px; }
.p-tienda .t-avatar-letras { font-size: 17px; }
.p-codigo { font-weight: 700; color: var(--tinta-suave); font-size: 14px; }
.p-estado { border-radius: 22px; padding: 22px; background: #fff; border: 1px solid var(--linea); position: relative; }
.p-estado h1 { font-size: 26px; }
.p-estado p { margin: 8px 0 0; }
.p-espera { background: var(--acento-suave); border-color: transparent; }
.p-ok { background: #e3f6ee; border-color: transparent; }
.p-fin { background: #f1efee; }
.p-mal { background: #fdecea; border-color: transparent; }
.p-chip { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); }
.p-caja { background: #fff; border: 1px solid var(--linea); border-radius: 20px; padding: 20px; display: grid; gap: 10px; }
.p-caja h2 { font-size: 20px; }
.p-caja p { margin: 0; }
.p-monto { font: 800 36px var(--titulos) !important; color: var(--acento-osc); }
.p-cobro { margin: 0; display: grid; gap: 8px; }
.p-cobro div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px dashed var(--linea); padding-bottom: 8px; flex-wrap: wrap; }
.p-cobro dt { color: var(--tinta-suave); font-size: 14px; }
.p-cobro dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; word-break: break-all; }
.p-comprobante { display: grid; gap: 10px; }
.p-comprobante .p-ok { background: none; color: var(--ok); font-weight: 600; }

/* Seguimiento del pedido: Reservado → Seña → Confirmado → Listo → Entregado */
.p-seguimiento { list-style: none; padding: 0; margin: 16px 0 0; display: flex; }
.p-seguimiento li { flex: 1; display: grid; justify-items: center; gap: 6px; position: relative; text-align: center; min-width: 0; }
.p-seguimiento li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.85); z-index: 0; }
.p-seguimiento li:first-child::before { display: none; }
.p-seguimiento li.hecho::before, .p-seguimiento li.actual::before { background: var(--acento); }
.p-seg-punto { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; font: 800 14px var(--fuente); color: #fff; position: relative; z-index: 1; }
.hecho .p-seg-punto { background: var(--acento); border-color: var(--acento); }
.actual .p-seg-punto { border-color: var(--acento); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.6); }
.actual .p-seg-punto::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acento); }
.p-seg-texto { font-size: 12px; font-weight: 600; color: var(--tinta-suave); line-height: 1.2; }
.hecho .p-seg-texto, .actual .p-seg-texto { color: var(--tinta); }
.actual .p-seg-texto { font-weight: 800; }
.p-ok .p-seguimiento li.hecho::before, .p-ok .p-seguimiento li.actual::before, .p-ok .hecho .p-seg-punto { background: var(--ok); border-color: var(--ok); }
.p-ok .actual .p-seg-punto { border-color: var(--ok); }
.p-ok .actual .p-seg-punto::after { background: var(--ok); }

/* Los dos pasos de la seña */
.p-pasos { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 16px; }
.p-pasos > li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.p-pasos > li > div { display: grid; gap: 8px; min-width: 0; }
.p-paso-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento-osc); font: 800 15px var(--fuente); }
.p-pasos > li.hecho .p-paso-num { background: var(--ok); color: #fff; }
.p-pasos strong { font-size: 17px; }
.subir-comprobante { position: relative; }
.subir-comprobante input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.p-fecha { font-size: 18px; }
.p-direccion { background: #faf6f4; border-radius: 12px; padding: 10px 12px; }
.p-refs { display: flex; gap: 8px; flex-wrap: wrap; }
.p-refs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.p-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.p-politicas { background: #fff; border: 1px solid var(--linea); }
.resaltar { animation: latido 1.2s ease-in-out 2; }
@keyframes latido { 50% { box-shadow: 0 0 0 6px var(--acento-suave); } }

/* ───────── Toast ───────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 20px);
  background: var(--tinta);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Con el dedo: botones de al menos 44 px, como piden las guías de accesibilidad. */
@media (pointer: coarse) {
  .conf-cerrar, .cal-nav { width: 44px; height: 44px; }
  .boton-copiar { padding: 7px 12px; font-size: 14px; }
  .ticket-acciones .boton-texto { padding: 9px 0; }
}

.p-otra-vez { margin: 14px 0 0 !important; }
button.t-chip { font: inherit; cursor: pointer; }
