/* ============================================================================
   EL ARMADOR (tienda-armador.js): pantalla completa, de noche, con la base bajo
   una luz cálida — como un mostrador. Rojo Manolito para la acción, dorado para el
   detalle. Todo toque ≥ 44 px.
   ============================================================================ */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-600-italic.woff2") format("woff2"); }

.ar {
  --ar-fondo: #121319;
  --ar-fondo-2: #1c1e27;
  --ar-tinta: #f5f1ea;
  --ar-tinta-2: #a9a6a0;
  --ar-linea: rgba(255, 255, 255, .09);
  --ar-rojo: #e3263f;
  --ar-rojo-dk: #b80f2b;
  --ar-oro: #f2b544;
  --ar-verde: #22a85a;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 6, 9, .72);
  display: flex; justify-content: center;
  color: var(--ar-tinta);
  font: 400 15px/1.35 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body.ar-on { overflow: hidden; }
.ar button { font: inherit; color: inherit; cursor: pointer; }
.ar-caja {
  position: relative; width: 100%; max-width: 480px; height: 100%; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 28%, #2a2420 0%, rgba(42, 36, 32, 0) 60%),
    linear-gradient(180deg, var(--ar-fondo-2), var(--ar-fondo) 55%);
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 520px) {
  .ar-caja { margin: 18px 0; height: calc(100dvh - 36px); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
}

/* ---------- arriba ---------- */
.ar-top { display: flex; align-items: center; gap: 4px; padding: 8px 10px 2px; flex: none; }
.ar-ico {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; flex: none;
}
.ar-ico:active { background: rgba(255, 255, 255, .08); }
.ar-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-marca { flex: 1; text-align: center; font: 600 17px/1 "Inter", sans-serif; letter-spacing: .2px; color: var(--ar-tinta); }
.ar-marca em { font: italic 600 19px/1 "Fraunces", Georgia, serif; color: var(--ar-oro); margin-left: 2px; }
.ar-badge {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--ar-rojo); color: #fff; font: 800 11px/19px "Inter", sans-serif;
  box-shadow: 0 0 0 2px var(--ar-fondo-2);
}

/* ---------- qué armamos ---------- */
.ar-modos {
  position: relative; display: flex; margin: 6px 14px 0; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ar-linea); flex: none;
}
.ar-modos button {
  position: relative; z-index: 1; flex: 1; min-height: 40px; border: 0; background: none; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--ar-tinta-2); transition: color .25s; white-space: nowrap;
}
.ar-modos button.on { color: #1a1a1a; }
@media (max-width: 400px) { .ar-modos button { font-size: 13px; padding: 0 2px; } }
.ar-modos-pill {
  position: absolute; top: 4px; left: 0; height: 40px; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .38s cubic-bezier(.3, 1.3, .5, 1), width .38s;
}

/* ---------- título y selector ---------- */
.ar-cabeza { padding: 12px 18px 0; flex: none; }
.ar-tit { margin: 0; font: 500 30px/1.05 "Fraunces", Georgia, serif; letter-spacing: -.3px; color: var(--ar-tinta); }
.ar-tit em { font-style: italic; font-weight: 600; color: var(--ar-oro); }
.ar-sel { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 38px; }

.ar-sel-tx { color: var(--ar-tinta-2); font-size: 13.5px; flex: 1; min-width: 0; }
.ar-seg { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ar-linea); flex: none; }
.ar-seg button {
  border: 0; background: none; min-height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--ar-tinta-2); white-space: nowrap; transition: background .2s, color .2s;
}
.ar-seg button.on { background: #fff; color: #161616; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
/* los panes ocupan lo que deja el tostado (y si no entran, se deslizan) */
.ar-seg.ar-seg-panes { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ar-seg-panes::-webkit-scrollbar { display: none; }
.ar-seg-panes button { flex: 1 0 auto; padding: 0 9px; }
@media (max-width: 430px) { .ar-seg-panes button { padding: 0 7px; font-size: 12.5px; } .ar-tost { width: 50px; } }
.ar-tost {
  position: relative; flex: none; border: 0; width: 54px; height: 40px; border-radius: 14px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ar-linea); color: var(--ar-tinta-2);
}
.ar-tost span { font-size: 16px; line-height: 1; filter: grayscale(1) opacity(.6); transition: filter .25s; }
.ar-tost small { font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .2px; }
.ar-tost::before { content: ""; position: absolute; inset: -4px -2px; }
.ar-fin .ar-tost { opacity: .4; pointer-events: none; transition: opacity .3s; }
.ar-tost.on { background: rgba(242, 181, 68, .16); box-shadow: inset 0 0 0 1.5px rgba(242, 181, 68, .7); color: #ffd98a; }
.ar-tost.on span { filter: none; }

/* ---------- la escena ---------- */
.ar-escena {
  /* La escena es lo ÚNICO que se estira o se achica: así el botón de abajo entra siempre entero. Antes tenía alto
     fijo y, con la barra del navegador a la vista (~660 px), el botón quedaba cortado o directamente afuera. */
  position: relative; flex: 1 1 320px; min-height: 176px; max-height: 370px; box-sizing: border-box;
  display: grid; place-items: center; margin-top: 2px;
  /* arriba la barra de las vistas, abajo el estado: ARRIBA y ABAJO en tienda-armador.js (cambian juntos) */
  padding: 38px 0 22px;
  /* el 3D: la perspectiva sale del medio de la base, y el dedo gira (no mueve la página) */
  perspective: 1100px; perspective-origin: 50% calc(50% + 8px); touch-action: none; -webkit-user-select: none; user-select: none;
  /* con la lupa (o girada y grande) la base se agranda: queda adentro de la escena y no tapa las pestañas ni los panes */
  overflow: hidden;
}
.ar-giro { position: relative; }
.ar-3d .ar-giro, .ar-3d .ar-base, .ar-3d .ar-capas, .ar-3d .ar-espesor { transform-style: preserve-3d; }
.ar-espesor { position: absolute; inset: 0; display: none; pointer-events: none; }
.ar-3d .ar-espesor { display: block; }
.ar-espesor img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ar-3d .ar-luz { transform: scale(1.08) translateY(6%); }

/* las vistas: arriba, 3D, capas y lupa */
.ar-vistas {
  position: absolute; top: 3px; left: 50%; z-index: 7; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 3px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 20, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--ar-linea); transition: opacity .3s;
}
.ar-vistas button {
  position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border: 0;
  border-radius: 999px; background: none; color: var(--ar-tinta-2); font-size: 12.5px; font-weight: 700; transition: background .25s, color .25s;
}
.ar-vistas button::before { content: ""; position: absolute; inset: -7px -1px; }
.ar-vistas button.on { background: var(--ar-oro); color: #1d1607; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.ar-vistas svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-fin .ar-vistas, .ar-buscando .ar-vistas { opacity: 0; pointer-events: none; }
.ar-consejo {
  position: absolute; left: 50%; top: 42px; z-index: 7; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px);
  padding: 7px 14px; border-radius: 999px; pointer-events: none; font-size: 13px; font-weight: 600; color: var(--ar-tinta);
  background: rgba(14, 15, 20, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(242, 181, 68, .4); animation: ar-guia-in .4s ease-out both;
}
.ar-consejo.ar-fuera { animation: ar-guia-out .35s ease-in forwards; }

/* las flechitas: "ya está adentro" */
.ar-flechas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; }
.ar-flechas path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ar-fl-sombra, .ar-fl-punta-s { stroke: rgba(8, 8, 12, .55); stroke-width: 6; }
.ar-fl-linea, .ar-fl-punta { stroke: var(--ar-oro); stroke-width: 2.6; }
.ar-fl-sombra, .ar-fl-linea { stroke-dasharray: 1 1; }
.ar-fl-punta, .ar-fl-punta-s { transform-box: fill-box; transform-origin: 50% 50%; }
.ar-flecha-tx {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; display: flex; align-items: baseline; gap: 5px;
  padding: 5px 11px 6px 9px; border-radius: 999px; white-space: nowrap; transform-origin: 50% 100%;
  background: rgba(14, 15, 20, .82); box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(242, 181, 68, .5);
  font: italic 600 14px/1.1 "Fraunces", Georgia, serif; color: #ffe2a3;
}
.ar-flecha-tx b { font: 800 12px/1 "Inter", sans-serif; color: #fff; background: var(--ar-verde); width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; align-self: center; }
.ar-flecha-tx small { font: 700 11.5px/1 "Inter", sans-serif; color: var(--ar-tinta-2); }

/* capas: un cartel por piso, a la derecha, con su flechita */
.ar-etiq { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .35s; }
.ar-etiq.on { opacity: 1; }
.ar-etiq svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ar-etiq path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ar-et-sombra { stroke: rgba(8, 8, 12, .5); stroke-width: 5; }
.ar-et-linea { stroke: var(--ar-oro); stroke-width: 2; }
.ar-et {
  position: absolute; left: 0; top: 0; width: max-content; min-width: 30%; max-width: 46%; box-sizing: border-box; padding: 4px 8px 4px 6px; border-radius: 11px;
  background: rgba(14, 15, 20, .8); box-shadow: inset 0 0 0 1px rgba(242, 181, 68, .35), 0 6px 16px rgba(0, 0, 0, .3);
  font-size: 12px; line-height: 1.25;
}
.ar-et span { display: flex; align-items: center; gap: 4px; color: var(--ar-tinta); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.ar-et img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.ar-et i { font-style: normal; color: var(--ar-oro); font-weight: 700; font-size: 11.5px; margin-left: auto; padding-left: 4px; }
.ar-et .ar-et-base { font: italic 600 12.5px/1.2 "Fraunces", Georgia, serif; color: #ffe2a3; padding-left: 2px; }
.ar-en-capas .ar-estado { opacity: 0; }
.ar-luz {
  position: absolute; inset: 4% 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 120, .22), rgba(255, 170, 90, .08) 55%, transparent 75%);
  transition: background .6s, transform .6s;
}
.ar-base { position: relative; transition: width .45s cubic-bezier(.3, 1.2, .5, 1), height .45s cubic-bezier(.3, 1.2, .5, 1); }
.ar-base.ar-cargando::before {
  content: ""; position: absolute; inset: 6% 2%; border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .05) 20%, rgba(255, 220, 170, .14) 50%, rgba(255, 255, 255, .05) 80%) 0 0 / 220% 100%;
  animation: ar-silueta 1.2s linear infinite;
}
@keyframes ar-silueta { to { background-position: -220% 0; } }
.ar-base-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; transition: filter .9s; }
.ar-capas, .ar-piso { position: absolute; inset: 0; }
/* cada tanda que se suma es un piso, arriba de los anteriores (tienda-armador.js, pisoArriba) */
.ar-piso { width: 100%; height: 100%; pointer-events: none; }
.ar-capas { transform-origin: 50% 60%; }
.ar-p, .ar-vuela { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* una foto que falló no se ve mientras se vuelve a pedir (tienda-armador.js, fotoQueFalla): nunca el ícono roto */
.ar img.ar-sinfoto { visibility: hidden; }
.ar-p { height: auto; aspect-ratio: 1; will-change: transform; }
.ar-p.ar-mueve { transition: left .42s cubic-bezier(.3, 1.2, .5, 1), top .42s cubic-bezier(.3, 1.2, .5, 1), width .42s, transform .42s; }
.ar-vuela { position: fixed; z-index: 30; will-change: transform; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
.ar-piso-salsa { overflow: visible; }
.ar-piso-salsa path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.ar-motas { position: absolute; inset: -6%; pointer-events: none; overflow: hidden; border-radius: 24px; }

/* el final: tapa, plancha, doblez y brillo */
.ar-tapa { position: absolute; left: -1%; top: -2%; width: 102%; height: 104%; z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.ar-plancha {
  position: absolute; left: -1%; top: -2%; width: 102%; height: 104%; z-index: 4; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: repeating-linear-gradient(118deg, transparent 0 9%, rgba(58, 24, 6, .62) 9% 11.2%, transparent 11.2% 12.4%);
  mix-blend-mode: multiply; opacity: 0; animation: ar-marcas 1.1s .2s ease-out forwards;
}
.ar-plancha-medio { top: 50%; height: 50%; -webkit-mask-size: 100% 200%; mask-size: 100% 200%; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
@keyframes ar-marcas { to { opacity: 1; } }
.ar-tostando .ar-luz { background: radial-gradient(closest-side, rgba(255, 120, 40, .5), rgba(255, 90, 20, .18) 55%, transparent 78%); animation: ar-brasa 1.2s ease-in-out infinite alternate; }
.ar-tostando .ar-base-img, .ar-tostando .ar-tapa, .ar-tostando .ar-doblez { filter: saturate(1.15) brightness(.93) sepia(.12); }
@keyframes ar-brasa { from { transform: scale(.96); opacity: .85; } to { transform: scale(1.04); opacity: 1; } }
.ar-vapor { position: absolute; left: 50%; top: 18%; width: 160px; height: 120px; margin-left: -80px; pointer-events: none; opacity: 0; }
.ar-tostando .ar-vapor { opacity: 1; }
.ar-vapor i {
  position: absolute; bottom: 0; width: 26px; height: 90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent);
  filter: blur(4px); opacity: 0; animation: ar-humo 1.6s ease-out infinite;
}
.ar-vapor i:nth-child(1) { left: 20px; animation-delay: .1s; }
.ar-vapor i:nth-child(2) { left: 60px; animation-delay: .5s; }
.ar-vapor i:nth-child(3) { left: 95px; animation-delay: .25s; }
.ar-vapor i:nth-child(4) { left: 125px; animation-delay: .75s; }
@keyframes ar-humo { 0% { transform: translateY(30px) scaleX(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-50px) scaleX(1.4) translateX(10px); opacity: 0; } }

.ar-doblez { position: absolute; left: 0; top: 0; width: 100%; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; z-index: 3; pointer-events: none; }
.ar-cara { position: absolute; inset: 0; background-size: 100% 200%; background-repeat: no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ar-frente { background-position: 0 0; }
.ar-dorso { background-position: 0 0; transform: rotateX(180deg); filter: brightness(.92) saturate(1.05); }

.ar-barrido {
  position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); animation: ar-barre .9s .1s ease-in-out forwards;
}
@keyframes ar-barre { to { left: 120%; } }
.ar-motas b {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ar-oro);
  left: calc(14% + var(--i) * 14%); top: calc(30% + (var(--i) * 37 % 40) * 1%);
  box-shadow: 0 0 10px var(--ar-oro); opacity: 0; animation: ar-chispa .8s calc(var(--i) * 70ms + .2s) ease-out forwards;
}
@keyframes ar-chispa { 0% { transform: scale(0); opacity: 0; } 40% { opacity: 1; transform: scale(1.3); } 100% { transform: scale(0) translateY(-24px); opacity: 0; } }
.ar-al-carro { position: fixed; z-index: 40; pointer-events: none; transform-origin: 50% 50%; }

/* la pizza para hornear: se cierra en su caja (va fría, sin plancha ni vapor) */
.ar-encajada .ar-base { scale: .8; perspective: 1500px; transition: scale .45s cubic-bezier(.3, 1.2, .5, 1), width .45s, height .45s; }
.ar-cajap { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.ar-cajap-tapa { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; z-index: 6; pointer-events: none; transform-origin: 50% 0; }
.ar-cajap-tapa img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.ar-sello {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) rotate(-10deg) scale(1.6);
  display: grid; place-content: center; text-align: center; opacity: 0; color: #fff4dc;
  background: radial-gradient(circle, #d6332a 0 62%, #b3221b 63% 66%, #d6332a 67%);
  box-shadow: 0 6px 16px rgba(80, 10, 6, .45), inset 0 0 0 3px rgba(255, 244, 220, .5);
  font: 700 clamp(10px, 3.4vw, 15px)/1.1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .5px;
}
.ar-sello b { display: block; font: 600 italic clamp(15px, 5.4vw, 26px)/1 "Fraunces", Georgia, serif; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.ar-sello.on { animation: ar-sello .42s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes ar-sello { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(1.7); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); } }

/* ---------- el estado ---------- */
.ar-estado {
  /* adentro de la escena, abajo: no le roba alto a la base */
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; margin: 0; padding: 0 18px 4px;
  text-align: center; font-size: 13px; color: var(--ar-tinta-2); pointer-events: none; transition: opacity .25s;
}
.ar-estado button { pointer-events: auto; }
.ar-escena:has(.ar-guia) .ar-estado { opacity: 0; }
.ar-estado button {
  border: 0; background: none; color: var(--ar-oro); font-weight: 800; padding: 6px 4px; min-height: 32px;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- los ingredientes ---------- */
.ar-panel {
  flex: 1 1 250px; min-height: 200px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  border-radius: 24px 24px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
/* el buscador: una lupa al lado de las pestañas que, al tocarla, se abre a todo el ancho */
.ar-panel { position: relative; }
.ar-buscar {
  position: absolute; z-index: 3; top: 8px; right: 12px; display: flex; align-items: center; width: 44px; height: 50px; border-radius: 14px;
  overflow: hidden; background: rgba(40, 42, 52, .96); box-shadow: inset 0 0 0 1px var(--ar-linea); transition: width .25s ease;
}
.ar-buscar:focus-within, .ar-buscar.lleno { width: calc(100% - 24px); background: #2b2d37; box-shadow: inset 0 0 0 1.5px rgba(242, 181, 68, .8); }
.ar-buscar svg { width: 20px; height: 20px; margin: 0 4px 0 11px; fill: none; stroke: var(--ar-tinta-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.ar-buscar .ar-q { opacity: 0; }
.ar-buscar:focus-within .ar-q, .ar-buscar.lleno .ar-q { opacity: 1; }
.ar-q {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ar-tinta); font: 500 16px/1 "Inter", sans-serif;
  padding: 0 6px; outline: none; -webkit-appearance: none; appearance: none;
}
.ar-q::placeholder { color: rgba(245, 241, 234, .45); }
.ar-q::-webkit-search-cancel-button { display: none; }
.ar-q-x { width: 40px; height: 40px; border: 0; background: none; color: var(--ar-tinta-2); font-size: 15px; flex: none; }
.ar-nada { grid-column: 1 / -1; margin: 10px 4px; color: var(--ar-tinta-2); font-size: 14px; text-align: center; }
/* buscando: la escena se achica para que se vean los resultados arriba del teclado */
.ar-buscando .ar-escena { flex: 0 0 150px; min-height: 0; }
.ar-buscando .ar-cabeza, .ar-buscando .ar-modos { display: none; }

.ar-bol { z-index: 0; }
.ar-cats { display: flex; gap: 4px; padding: 8px 60px 4px 12px; flex: none; }
@media (max-width: 380px) { .ar-cats { gap: 3px; padding-right: 52px; } .ar-cats button { font-size: 11px; letter-spacing: -.25px; padding: 4px 1px 5px; } .ar-buscar { width: 40px; } }
.ar-cats button {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 50px; padding: 4px 2px 5px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .05); color: var(--ar-tinta-2); font-weight: 700; font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--ar-linea); transition: background .2s, color .2s;
}
.ar-cats button.on { background: var(--ar-tinta); color: #151515; box-shadow: none; }
.ar-cat-ic { position: relative; width: 26px; height: 26px; display: block; }
.ar-cat-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ar-cat-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.ar-cats b {
  position: absolute; top: -5px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px;
  background: var(--ar-rojo); color: #fff; box-shadow: 0 0 0 2px var(--ar-fondo);
}
.ar-grilla {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; padding: 8px 12px 30px; align-content: start;
  /* que se note que sigue: la última fila se funde debajo del botón en vez de cortarse seca */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
}
.ar-ing { position: relative; }
.ar-ing-b {
  width: 100%; border: 0; background: none; padding: 6px 2px 4px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px;
}
.ar-ing-b:active .ar-ing-c { transform: scale(.92); }
.ar-ing-c {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #34363f, #1d1f26 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .35);
  transition: box-shadow .25s, transform .15s;
}
.ar-ing-c img { width: 82%; height: 82%; object-fit: contain; pointer-events: none; }
.ar-ing.on .ar-ing-c { box-shadow: 0 0 0 2.5px var(--ar-rojo), 0 0 18px rgba(227, 38, 63, .45), 0 6px 14px rgba(0, 0, 0, .35); }
.ar-ing-n { font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--ar-tinta);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.ar-ing-p { font-size: 10.5px; color: var(--ar-tinta-2); line-height: 1.1; text-align: center; }
.ar-ing-q {
  position: absolute; top: 2px; right: calc(50% - 38px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--ar-rojo); color: #fff; font: 800 11px/22px "Inter", sans-serif; text-align: center;
  box-shadow: 0 0 0 2px var(--ar-fondo); pointer-events: none; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s;
}
.ar-ing.on .ar-ing-q { opacity: 1; transform: none; }
.ar-ing-menos {
  position: absolute; top: 0; left: calc(50% - 42px); width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #3a3d48; color: #fff; font: 800 17px/28px "Inter", sans-serif; padding: 0;
  box-shadow: 0 0 0 2px var(--ar-fondo); opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .2s, transform .2s;
}
.ar-ing-menos::before { content: ""; position: absolute; inset: -8px; }
.ar-ing.on .ar-ing-menos { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- abajo ---------- */
.ar-pie {
  position: relative; z-index: 2; flex: none; padding: 6px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 19, 25, .0), var(--ar-fondo) 26%);
  margin-top: -14px; padding-top: 18px;
}
.ar-cta {
  position: relative; width: 100%; min-height: 54px; border: 0; border-radius: 999px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--ar-rojo), var(--ar-rojo-dk)); color: #fff;
  box-shadow: 0 10px 26px rgba(227, 38, 63, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
  font-weight: 800; font-size: 16.5px; transition: background .35s, box-shadow .35s, transform .12s;
}
.ar-cta:active { transform: scale(.98); }
.ar-cta:disabled { background: #3a3c45; box-shadow: none; color: rgba(255, 255, 255, .6); }
.ar-cta-tx { flex: 1; text-align: left; }
.ar-total {
  font-size: 17px; font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.ar-delta { font-size: 13px; font-weight: 800; color: #ffe1a6; opacity: 0; font-variant-numeric: tabular-nums; }
.ar-delta.neg { color: #ffc0c8; }
.ar-cta-hecho { background: linear-gradient(180deg, #2fbf6a, #1c8f4b); box-shadow: 0 10px 26px rgba(34, 168, 90, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ar-cta-ok { background: linear-gradient(180deg, var(--ar-rojo), var(--ar-rojo-dk)); }

/* Pantallas bajitas (la mayoría de los celulares con la barra del navegador a la vista): los ingredientes van
   en UNA fila que se desliza de costado, así la escena —donde caen las cosas— queda siempre a la vista. */
@media (max-height: 780px) {
  /* el título repite la pestaña de arriba: acá vale más el lugar para la base */
  .ar-tit { display: none; }
  .ar-top { padding-top: 4px; }
  .ar-modos { margin-top: 2px; }
  .ar-modos button { min-height: 36px; }
  .ar-modos-pill { height: 36px; }
  .ar-cabeza { padding: 8px 14px 0; }
  .ar-sel { margin-top: 0; }
  .ar-escena { flex: 1 1 auto; min-height: 170px; max-height: 340px; }
  .ar-panel { flex: none; min-height: 0; }
  /* la grilla va hacia abajo: una fila entera y la de abajo asomando (se ve que sigue), todas las secciones arriba */
  .ar-grilla {
    flex: none; height: 150px; padding: 4px 10px 22px; gap: 0 4px; scroll-snap-type: y proximity;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
  }
  .ar-ing { scroll-snap-align: start; }
  .ar-ing-b { padding-top: 4px; gap: 3px; }
  .ar-ing-c { width: 54px; height: 54px; }
  .ar-ing-q { right: calc(50% - 34px); }
  .ar-ing-menos { left: calc(50% - 38px); }
  .ar-estado { padding-bottom: 4px; }
}
@media (max-height: 700px) {
  .ar-grilla { height: 136px; }
  .ar-ing-c { width: 50px; height: 50px; }
}
@media (max-height: 620px) {
  .ar-escena { min-height: 150px; }
  .ar-sel-tx { display: none; }
  .ar-ing-p { display: none; }
  .ar-grilla { height: 116px; }
}
@media (max-width: 380px) { .ar-sel-tx { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) {
  .ar *, .ar *::before, .ar *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- la guía: el armado arranca VACÍO (pedido del dueño) y enseña con un fantasma que vuela ---------- */
.ar-guia {
  position: absolute; left: 50%; bottom: 2px; z-index: 6; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px); padding: 7px 8px 7px 14px; border-radius: 999px; pointer-events: auto;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
  background: rgba(14, 15, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 14px; line-height: 1.3; color: var(--ar-tinta); animation: ar-guia-in .5s .2s ease-out both;
}
.ar-guia b { color: var(--ar-oro); font-weight: 800; }
.ar-guia button {
  border: 0; background: rgba(255, 255, 255, .08); color: var(--ar-tinta-2); font-size: 12.5px; font-weight: 700;
  padding: 0 12px; min-height: 30px; border-radius: 999px; white-space: nowrap;
}
@keyframes ar-guia-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ar-guia.ar-fuera { animation: ar-guia-out .3s ease-in forwards; }
@keyframes ar-guia-out { to { opacity: 0; transform: translate(-50%, 8px) scale(.96); } }
.ar-fantasma { opacity: .7; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)) saturate(.9); }
.ar-ing.ar-toca .ar-ing-c { animation: ar-toca 1.1s ease-out; }
@keyframes ar-toca {
  0% { box-shadow: 0 0 0 0 rgba(242, 181, 68, .9), 0 6px 14px rgba(0, 0, 0, .35); transform: scale(1); }
  25% { transform: scale(.9); }
  45% { transform: scale(1.06); }
  100% { box-shadow: 0 0 0 16px rgba(242, 181, 68, 0), 0 6px 14px rgba(0, 0, 0, .35); transform: scale(1); }
}
