/* ==========================================================================
   AutoPedido Web — Skin vibrante "delivery" (rojo/dorado, foto grande + lista).
   SOLO estética. Mismas clases/estados que usa el JS (no se cambia lógica):
   .as-pos-mode-btn.is-active, .as-pos-catcat.is-active, .as-pos-add.is-added,
   .as-cart-fab.is-empty, .as-cart-drawer.is-open, .as-cart-backdrop.is-open ...
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Mulish:wght@400;600;700;800;900&display=swap');

:root {
  --as-red: #E3140C;
  --as-red-hover: #c8110a;
  --as-red-dark: #a90d07;
  --as-gold: #EBA900;
  --as-gold-dark: #cf9400;
  --as-green: #1FA45A;
  --as-bg: #ECECEC;
  --as-ink: #3f3f3f;
  --as-muted: #8b8b8b;
  --as-soft: #e2e2e2;
  --as-card: #ffffff;
  --as-star: #FFB000;

  --as-topbar-h: 88px;
  --as-catnav-h: 46px;

  --as-shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --as-shadow-md: 0 8px 22px rgba(0,0,0,.12);
  --as-shadow-lg: 0 18px 44px rgba(0,0,0,.20);
  --as-ring: 0 0 0 3px rgba(227,20,12,.30);
}

* { -webkit-tap-highlight-color: transparent; }
/* clip (no hidden) recorta el desborde horizontal del carrito off-canvas cerrado
   SIN romper el position:sticky de las barras. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Mulish', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--as-ink);
  background: var(--as-bg) !important;
  /* textura papel sutil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") !important;
  margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
.script { font-family: 'Caveat', cursive; }
.as-pos-catsec { scroll-margin-top: calc(var(--as-topbar-h) + var(--as-catnav-h) + 8px); }
:focus-visible { outline: none; box-shadow: var(--as-ring); border-radius: 10px; }
.as-hide-scrollbar, .no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.as-hide-scrollbar::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- topbar ---- */
.as-pos-topbar {
  position: sticky; top: 0; z-index: 50; height: var(--as-topbar-h);
  background: var(--as-red) !important; border: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: flex; align-items: center;
}
.as-pos-topbar > div { width: 100%; }
.as-pos-topbar a, .as-pos-topbar span, .as-pos-topbar b, .as-pos-topbar i { color: #fff !important; }
.as-pos-topbar .ph-storefront, .as-pos-topbar [class*="text-peya"] { color: #fff !important; }
/* selector de modo sobre el header rojo */
.as-pos-topbar .as-pos-mode-wrap, .as-pos-topbar .bg-soft { background: rgba(255,255,255,.16) !important; }
.as-pos-mode-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; background: transparent;
  color: rgba(255,255,255,.85) !important; font: inherit; font-weight: 800; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: all .18s ease;
}
.as-pos-mode-btn i { font-size: 18px; }
.as-pos-mode-btn:hover { color: #fff !important; }
.as-pos-mode-btn.is-active { background: #fff !important; color: var(--as-red) !important; box-shadow: var(--as-shadow-sm); }
.as-pos-mode-ctx { color: rgba(255,255,255,.9) !important; font-weight: 700; }
.as-pos-mode-ctx b { color: #fff !important; }

/* Movil: el logo + los 3 modos no entran en una fila y "Para llevar" se cortaba
   a la derecha. Ocultamos el texto de marca (queda el icono), achicamos los pills
   y dejamos el grupo scrolleable como red de seguridad. Altura del topbar intacta. */
@media (max-width: 640px) {
  .as-pos-brand-label { display: none; }
  .as-pos-topbar > div { gap: .5rem; }
  .as-pos-mode-wrap {
    min-width: 0; flex: 0 1 auto;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .as-pos-mode-wrap::-webkit-scrollbar { display: none; }
  .as-pos-mode-btn { padding: .35rem .6rem; font-size: 13px; gap: 4px; }
  .as-pos-mode-btn i { font-size: 16px; }
}

/* --------------------------------------------------------------- catnav (dorado) ---- */
.as-pos-catnav {
  /* pega JUSTO debajo de la barra roja (vence el top-[64px] de Tailwind, que
     no coincidía con la altura real del topbar y rompía la barra al scrollear). */
  position: sticky; top: var(--as-topbar-h) !important; z-index: 40; height: var(--as-catnav-h);
  background: var(--as-gold) !important; backdrop-filter: none !important;
  border: 0 !important; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.as-pos-catnav > div { height: 100%; display: flex; align-items: stretch; }
.as-pos-catcat {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0 18px !important; border-radius: 0 !important; background: transparent !important;
  color: #fff !important; font-weight: 800; font-size: 15px; font-style: italic;
  letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
  border-bottom: 4px solid transparent; transition: color .15s, border-color .15s;
}
.as-pos-catcat:hover { color: #fff7e0 !important; }
.as-pos-catcat.is-active { color: #fff !important; border-bottom-color: var(--as-red); box-shadow: none !important; }

/* --------------------------------------------------------------- seccion ---- */
.as-pos-catsec { padding-top: 30px; }
.as-pos-catsec__title, .as-pos-catsec h2 {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 44px !important;
  color: #4a4a4a; margin: 0 0 14px 4px; line-height: 1;
}
.as-pos-catsec__body { display: grid; grid-template-columns: minmax(280px, 44%) 1fr; gap: 44px; align-items: start; }
.as-pos-cathero {
  width: 100%; border-radius: 10px; overflow: hidden; background: #ddd;
  aspect-ratio: 1 / .8; box-shadow: var(--as-shadow-md);
}
.as-pos-cathero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* lista de items (columna derecha) */
.as-pos-items { display: flex; flex-direction: column; }
.as-pos-item {
  display: grid; grid-template-columns: 1fr auto 116px; gap: 18px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.as-pos-item:last-child { border-bottom: 0; }
.as-pos-item__info { min-width: 0; }
.as-pos-item__name { font-family: 'Caveat', cursive; font-weight: 700; font-size: 27px; color: #3d3d3d; line-height: 1; }
.as-pos-item__desc { font-size: 14px; color: var(--as-muted); margin-top: 3px; }
.as-pos-item__price { font-size: 16px; font-weight: 700; color: #5a5a5a; white-space: nowrap; text-align: right; }

/* botón + rojo */
.as-pos-add {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 0; border-radius: 50%; background: var(--as-red) !important; color: #fff !important;
  cursor: pointer; box-shadow: 0 3px 8px rgba(227,20,12,.35);
  transition: filter .15s ease, transform .12s ease;
}
.as-pos-add i { font-size: 22px; font-weight: bold; }
.as-pos-add:hover { filter: brightness(1.08); }
.as-pos-add:active { transform: scale(.9); }
.as-pos-add.is-added { background: var(--as-green) !important; box-shadow: 0 3px 8px rgba(31,164,90,.4); }

/* control de cantidad por item (persistente, sincronizado con el carrito) */
.as-pos-qty { display: flex; align-items: center; justify-content: flex-end; }
.as-pos-stepper {
  display: inline-flex; align-items: center; gap: 2px; background: var(--as-red);
  border-radius: 999px; padding: 4px; box-shadow: 0 3px 8px rgba(227,20,12,.35);
}
.as-pos-stepper button {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease, transform .1s ease;
}
.as-pos-stepper button:hover { background: rgba(255,255,255,.32); }
.as-pos-stepper button:active { transform: scale(.9); }
.as-pos-stepper input {
  width: 36px; height: 34px; text-align: center; border: 0; background: transparent;
  color: #fff; font-weight: 900; font-size: 16px; -moz-appearance: textfield;
}
.as-pos-stepper input:focus { outline: none; }
.as-pos-stepper input::-webkit-outer-spin-button,
.as-pos-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------- cart FAB ---- */
.as-cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 18px;
  border: 3px solid #fff; border-radius: 999px; background: var(--as-red) !important; color: #fff !important;
  font: inherit; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(227,20,12,.40), 0 0 0 1px rgba(0,0,0,.08);
  transition: filter .18s ease, transform .12s ease;
}
.as-cart-fab i { font-size: 22px; color: #fff !important; }
.as-cart-fab:hover { filter: brightness(1.07); }
.as-cart-fab:active { transform: scale(.95); }
.as-cart-fab.is-empty { opacity: 0; pointer-events: none; transform: translateY(20px) scale(.9); }
.as-cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff !important; color: var(--as-red) !important; font-size: 13px; font-weight: 900; }

/* -------------------------------------------------------------- WA FAB ---- */
.as-wa-fab { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: #25D366 !important; color: #fff !important; text-decoration: none; box-shadow: 0 10px 26px rgba(37,211,102,.40); transition: transform .12s ease, filter .18s ease; }
.as-wa-fab i { font-size: 30px; color: #fff !important; }
.as-wa-fab:hover { filter: brightness(1.05); }
.as-wa-fab:active { transform: scale(.92); }

/* ------------------------------------------------------------- drawer ---- */
.as-cart-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; }
.as-cart-backdrop.is-open { opacity: 1; visibility: visible; }
.as-cart-drawer { position: fixed; top: 0; right: 0; z-index: 80; height: 100dvh; width: min(440px,100vw); max-width: 440px !important; display: flex; flex-direction: column; background: #fff !important; box-shadow: var(--as-shadow-lg); transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.as-cart-drawer.is-open { transform: translateX(0); }
/* En móvil el carrito ocupa TODO el ancho (vence el max-w-sm de Tailwind). */
/* App mobile-first: el carrito ocupa TODO el ancho en móvil/tablet/ventanas
   angostas (hasta 900px). En desktop grande queda como panel lateral. */
@media (max-width: 900px) {
  .as-cart-drawer { width: 100vw !important; max-width: 100vw !important; }
}
.as-cart-drawer h3 { color: var(--as-ink); font-weight: 900; }
.as-cart-close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--as-soft); color: var(--as-ink); cursor: pointer; }
.as-cart-close:hover { background: #d5d5d5; }
.as-cart-clear { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--as-red); font-weight: 800; font-size: 13px; cursor: pointer; }
.as-cart-clear:hover { text-decoration: underline; }
.as-cart-clear:active { transform: scale(.96); }
.as-cart-lines { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.as-cart-empty { text-align: center; color: var(--as-muted); padding: 48px 20px; }
.as-cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--as-soft); }
.as-cart-line:last-child { border-bottom: 0; }
/* Línea de OPCIÓN de un combo: indentada debajo de su combo. */
.as-cart-line--opt { margin-left: 16px; padding-left: 14px; border-left: 3px solid #f0d9d8; grid-template-columns: 40px 1fr auto; }
.as-cart-line--opt .as-cart-line__img { width: 40px; height: 40px; border-radius: 8px; }
.as-cart-line--opt .as-cart-line__name { font-size: 13.5px; font-weight: 700; color: #666; }
.as-cart-line__img { width: 52px; height: 52px; border-radius: 10px; background: var(--as-soft) center/cover no-repeat; flex: none; }
.as-cart-line__img.is-empty { display: grid; place-items: center; color: #bcbcbc; font-size: 22px; }
.as-cart-line__name { font-size: 14.5px; font-weight: 800; line-height: 1.2; color: var(--as-ink); }
.as-cart-line__price { font-size: 13px; font-weight: 800; color: var(--as-muted); margin-top: 2px; }
.as-cart-line__sub { font-size: 14px; font-weight: 900; color: var(--as-ink); }
.as-cart-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.as-cart-actions { display: flex; align-items: center; gap: 8px; }
.as-cart-optqty { font-size: 13px; font-weight: 800; color: var(--as-muted); }
.as-cart-del { width: 36px; height: 36px; border: 0; border-radius: 999px; background: #fde7e6; color: var(--as-red); cursor: pointer; display: grid; place-items: center; font-size: 26px; transition: background .15s ease, transform .1s ease; }
.as-cart-del:hover { background: #fbd5d3; }
.as-cart-del:active { transform: scale(.9); }
.as-cart-edit { width: 36px; height: 36px; border: 0; border-radius: 999px; background: #ececec; color: #2e2e2e; cursor: pointer; display: grid; place-items: center; font-size: 26px; transition: background .15s ease, transform .1s ease; }
.as-cart-edit:hover { background: #e0e0e0; }
.as-cart-edit:active { transform: scale(.9); }
.as-cart-step { display: inline-flex; align-items: center; gap: 2px; background: var(--as-soft); border-radius: 999px; padding: 3px; }
.as-cart-step button { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: #fff; color: var(--as-red); cursor: pointer; box-shadow: var(--as-shadow-sm); }
.as-cart-step button:hover { background: var(--as-red); color: #fff; }
.as-cart-step__qty { min-width: 26px; text-align: center; font-weight: 900; font-size: 14px; }
.as-cart-total { font-variant-numeric: tabular-nums; color: var(--as-ink); }
.as-cart-checkout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: var(--as-red) !important; color: #fff !important; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 8px 20px rgba(227,20,12,.34); text-decoration: none; }
.as-cart-checkout i { color: #fff !important; }
.as-cart-checkout:hover { filter: brightness(1.06); }

.as-fly-dot { position: fixed; z-index: 90; width: 18px; height: 18px; border-radius: 999px; background: var(--as-red); box-shadow: 0 6px 16px rgba(227,20,12,.4); pointer-events: none; }

/* ------------------------------------------------------------- responsive ---- */
@media (max-width: 820px) {
  :root { --as-topbar-h: 72px; }
  .as-pos-catsec__body { grid-template-columns: 1fr; gap: 14px; }
  .as-pos-cathero { aspect-ratio: 16/10; }
  .as-pos-catsec__title, .as-pos-catsec h2 { font-size: 36px !important; }
  .as-pos-catcat { font-size: 13px; padding: 0 12px !important; }
}
/* Móvil: el ítem apila el precio DEBAJO del nombre (2 columnas: info | control),
   así el nombre y el precio no se pisan en pantallas angostas. */
@media (max-width: 560px) {
  .as-pos-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: "info qty" "price qty";
    column-gap: 12px; row-gap: 2px;
  }
  .as-pos-item__info  { grid-area: info; min-width: 0; }
  .as-pos-item__price { grid-area: price; text-align: left; margin-top: 2px; }
  .as-pos-qty         { grid-area: qty; align-self: center; }
  .as-pos-item__name  { font-size: 23px; }
}
/* ------------------------------------------------------- modal de combo ---- */
.as-modal-scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: as-fade .2s ease;
}
@keyframes as-fade { from { opacity: 0; } to { opacity: 1; } }
.as-modal {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: as-slideup .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes as-slideup { from { transform: translateY(30px); } to { transform: none; } }
@media (min-width: 620px) { .as-modal-scrim { align-items: center; } .as-modal { border-radius: 22px; } }
.as-modal-hero { position: relative; height: 210px; background: #eee center/cover no-repeat; flex: none; }
.as-modal-x {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: #333; cursor: pointer; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.as-modal-body { padding: 20px 22px 8px; overflow-y: auto; flex: 1; }
.as-modal-title { font-size: 24px; font-weight: 900; line-height: 1.1; color: #222; }
.as-modal-desc { font-size: 15px; color: var(--as-muted); margin-top: 6px; }
.as-modal-baseprice { font-size: 22px; font-weight: 900; color: #222; margin: 10px 0 6px; }
.as-modal-group { border-top: 8px solid #f2f2f2; margin: 14px -22px 0; padding: 16px 22px 4px; }
.as-modal-ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-modal-ghead h4 { font-size: 18px; font-weight: 900; color: #222; }
.as-modal-req { font-size: 12px; font-weight: 800; color: #444; background: #eaeaea; padding: 5px 12px; border-radius: 999px; }
.as-modal-opt { font-size: 12px; font-weight: 800; color: var(--as-muted); background: #f2f2f2; padding: 5px 12px; border-radius: 999px; }
.as-modal-hint { font-size: 14px; color: var(--as-muted); margin: 3px 0 8px; }
.as-modal-optrow {
  display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #eee; cursor: pointer;
}
.as-modal-optrow .om-name { flex: 1; font-size: 16px; font-weight: 700; color: #333; }
.as-modal-optrow .om-price { font-size: 14px; font-weight: 700; color: var(--as-muted); }
.as-modal-optrow .as-opt { width: 22px; height: 22px; accent-color: var(--as-red); cursor: pointer; flex: none; }
.as-modal-foot {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--as-soft); background: #fff; flex: none;
}
.as-modal-qty { display: inline-flex; align-items: center; gap: 6px; background: #f0f0f0; border-radius: 999px; padding: 5px; }
.as-modal-qty button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--as-red); font-size: 16px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--as-shadow-sm); }
.as-modal-qty button:active { transform: scale(.9); }
.as-mqty { min-width: 26px; text-align: center; font-weight: 900; font-size: 17px; }
.as-modal-add {
  flex: 1; min-height: 52px; border: 0; border-radius: 16px; background: var(--as-red); color: #fff;
  font-weight: 900; font-size: 17px; cursor: pointer; box-shadow: 0 8px 20px rgba(227,20,12,.34);
}
.as-modal-add:hover { filter: brightness(1.06); }
.as-modal-add:disabled { background: #d7d7d7; box-shadow: none; cursor: not-allowed; }
.as-modal-total { font-weight: 800; }

/* Formulario de entrega (delivery). */
.as-dl-l { display: block; font-size: 13px; font-weight: 700; color: #555; margin: 12px 0 0; }
.as-dl-in { display: block; width: 100%; margin-top: 5px; height: 44px; padding: 0 12px;
  border: 1px solid #d8dce2; border-radius: 12px; font-size: 15px; background: #fff; }
.as-dl-in:focus { outline: none; border-color: var(--as-red); box-shadow: 0 0 0 3px rgba(227,20,12,.14); }
.as-dl-h { font-size: 13px; font-weight: 800; color: #777; margin: 14px 0 4px; }
.as-dl-addr { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e5e8ec;
  border-radius: 12px; margin-top: 8px; cursor: pointer; font-size: 14.5px; }
.as-dl-addr input { width: 20px; height: 20px; accent-color: var(--as-red); }
/* Fila de dirección guardada + boton de borrar */
.as-dl-row { display: flex; align-items: center; gap: 8px; }
.as-dl-row .as-dl-addr { flex: 1; margin-top: 8px; }
.as-dl-del {
  flex: none; width: 40px; height: 40px; margin-top: 8px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid #f0d3d1; border-radius: 12px;
  background: #fff5f4; color: var(--as-red); font-size: 17px;
}
.as-dl-del:hover { background: #ffe6e4; border-color: #f0b6b2; }
.as-dl-del:disabled { opacity: .45; cursor: default; }
.as-dl-cancel { height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: #eee; color: #444;
  font-weight: 800; cursor: pointer; }
.as-dl-ok { flex: 1; }

/* Mapa de entrega (Leaflet) */
.as-dl-maprow { display: flex; gap: 8px; align-items: stretch; }
.as-dl-maprow .as-dl-search { flex: 1; margin-top: 5px; }
.as-dl-geo { margin-top: 5px; width: 46px; flex: 0 0 46px; border: 0; border-radius: 12px;
  background: var(--as-red); color: #fff; font-size: 20px; cursor: pointer;
  display: grid; place-items: center; }
.as-dl-geo:hover { background: var(--as-red-hover); }
.as-dl-map { height: 220px; margin-top: 8px; border-radius: 14px; overflow: hidden;
  border: 1px solid #d8dce2; z-index: 0; }
.as-dl-map .leaflet-container { height: 100%; width: 100%; font: inherit; }
.as-dl-hint { font-size: 12px; color: #8b8b8b; margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* Modal de factura */
.as-inv-toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px;
  font-weight: 800; color: #444; cursor: pointer; }
.as-inv-toggle input { width: 20px; height: 20px; accent-color: var(--as-red); }

/* Modal de QR (pago) */
.as-qr-body { text-align: center; }
.as-qr-sub { color: #555; margin: 2px 0 12px; font-size: 15px; }
.as-qr-img { display: block; width: 240px; max-width: 72vw; height: auto; margin: 0 auto 10px;
  border: 1px solid #e5e8ec; border-radius: 14px; background: #fff; padding: 8px; }
.as-qr-status { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; color: var(--as-red); margin-top: 6px; }
.as-qr-spin { width: 16px; height: 16px; border: 3px solid rgba(227,20,12,.25);
  border-top-color: var(--as-red); border-radius: 50%; animation: as-qr-rot .8s linear infinite; }
@keyframes as-qr-rot { to { transform: rotate(360deg); } }
.as-qr-hint { font-size: 12px; color: #8b8b8b; margin-top: 10px; }
.as-ct-sub { color: #666; font-size: 13.5px; margin: 4px 0 2px; }
/* "(para la factura)" al lado de Email: aclara que no es obligatorio. */
.as-ct-opt { color: #8a8a8a; font-weight: 400; font-size: 12px; }

/* ---- Pantalla final: pago confirmado ---- */
.as-ok-body { text-align: center; padding-top: 26px; }
.as-ok-mark { width: 92px; height: 92px; margin: 0 auto 14px; }
.as-ok-mark svg { width: 100%; height: 100%; }
.as-ok-circle {
  fill: none; stroke: var(--as-green); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: as-ok-draw .5s ease-out forwards;
}
.as-ok-check {
  fill: none; stroke: var(--as-green); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: as-ok-draw .35s .45s ease-out forwards;
}
@keyframes as-ok-draw { to { stroke-dashoffset: 0; } }
.as-ok-title { font-size: 25px; font-weight: 900; color: var(--as-ink); margin: 0 0 4px; }
.as-ok-sub { color: var(--as-muted); font-size: 14.5px; margin: 0 0 16px; }
.as-ok-card {
  text-align: left; border: 1px solid #e5e8ec; border-radius: 14px;
  padding: 4px 14px; background: #fafbfc;
}
.as-ok-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid #eef1f4; font-size: 14.5px;
}
.as-ok-row:last-child { border-bottom: 0; }
.as-ok-row span { color: var(--as-muted); font-weight: 700; }
.as-ok-row b { color: var(--as-ink); font-weight: 900; }
.as-ok-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--as-muted); margin: 14px 0 0; line-height: 1.35;
}
.as-ok-note i { color: #25D366; font-size: 17px; flex: none; }
.as-ok-again { width: 100%; }

/* Overlay de espera (generando QR / confirmando pago) */
.as-load-scrim { display: grid; place-items: center; }
.as-load-box {
  background: #fff; border-radius: 20px; padding: 30px 28px; text-align: center;
  box-shadow: var(--as-shadow-lg); max-width: 320px; width: calc(100% - 48px);
}
.as-load-spin {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border: 5px solid rgba(227,20,12,.18); border-top-color: var(--as-red);
  border-radius: 50%; animation: as-qr-rot .8s linear infinite;
}
.as-load-txt { font-weight: 900; font-size: 17px; color: var(--as-ink); margin: 0; }
.as-load-sub { font-size: 13px; color: var(--as-muted); margin: 8px 0 0; line-height: 1.35; }

/* Tarjeta "¿sos vos?" (cliente ya conocido) */
.as-who {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 4px;
  padding: 14px; border: 1px solid #e5e8ec; border-radius: 14px; background: #fafbfc;
}
.as-who i { font-size: 38px; color: var(--as-red); }
.as-who b { display: block; font-size: 16px; color: var(--as-ink); }
.as-who span { display: block; font-size: 14px; color: var(--as-muted); }

/* Chip de identidad del cliente en la barra superior */
.as-ident-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: .35rem .7rem; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff !important;
  font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.as-ident-chip:hover { background: rgba(255,255,255,.28); }
.as-ident-chip i { font-size: 17px; }

/* Acciones del QR: guardar / compartir (el cliente esta en el mismo celular) */
.as-qr-acts { display: flex; gap: 8px; margin-top: 4px; }
.as-qr-acts button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border: 1px solid #d8dce2; border-radius: 12px;
  background: #fff; color: #444; font-weight: 800; font-size: 14px; cursor: pointer;
}
.as-qr-acts button:hover { background: #f5f6f8; border-color: #c3c9d2; }
.as-qr-acts i { font-size: 18px; color: var(--as-red); }
.as-qr-sim { margin-top: 10px; width: 100%; padding: 10px 12px; border: 1px dashed #b9860b;
  border-radius: 12px; background: #fff8e1; color: #8a6100; font-weight: 800; cursor: pointer; }
.as-qr-sim:hover { background: #ffefc2; }
.as-qr-check { flex: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .001ms !important; } }
