/* ==========================================================
   SECCIONES ANIMADAS: envíos / medios de pago / cómo comprar
   ========================================================== */

/* ---------------- Flyers (estilo de las historias de Instagram) ---------------- */
.flyers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flyer {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #0b0b0c;
  background: #f3f3f1; border-radius: 22px; padding: 34px 26px 30px; min-height: 560px;
  font-family: "Inter", sans-serif;
}
/* trazos de pincel negros en las esquinas */
.flyer::before, .flyer::after {
  content: ""; position: absolute; z-index: -1; background: #0b0b0c; border-radius: 50%;
  opacity: .95;
}
.flyer::before { width: 70%; height: 46%; left: -38%; top: -26%; transform: rotate(-18deg); border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
.flyer::after  { width: 120%; height: 30%; right: -40%; bottom: -16%; transform: rotate(-12deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.flyer__logo { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: block; box-shadow: 0 0 0 3px #0b0b0c; }
.flyer__kicker { font-weight: 800; font-size: 22px; margin: 0; }
.flyer__big { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.02; margin: 4px 0 12px; }
.flyer__mid { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.flyer__light { font-size: 26px; margin: 4px 0 0; }
.flyer__script { font-style: italic; font-weight: 800; font-size: 20px; margin: 22px 0 0; transform: rotate(-3deg); }
.flyer__small { font-size: 15px; margin: 6px 0 0; }
.flyer__promo { display: inline-block; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; background: #0b0b0c; color: #fff; font-size: 14px; }
.flyer__promo b { color: var(--accent); }

/* subrayado verde tipo pincel que se dibuja */
.hl { position: relative; display: inline-block; z-index: 0; }
.hl .brush { position: absolute; left: -4%; bottom: -2px; width: 108%; height: 26px; z-index: -1; overflow: visible; }
.hl .brush path { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1) .3s; }
.motion.is-playing .hl .brush path { stroke-dashoffset: 0; }

/* Moto que llega a la ciudad */
.ride { position: relative; height: 150px; margin: 6px auto 0; max-width: 380px; }
.ico-moto { position: absolute; left: 0; bottom: 0; width: 46%; transform: translateX(-160%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); line-height: 0; }
.ico-moto__body { width: 100%; height: auto; display: block; }
@keyframes smoke { 0% { opacity: .9; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-14px) scale(1.3); } }
.motion.is-playing .ico-moto { animation: rideIn 1.4s cubic-bezier(.2,.8,.2,1) .4s forwards, rideBob .5s ease-in-out 1.8s infinite alternate; }
@keyframes rideIn { to { transform: translateX(0); } }
@keyframes rideBob { from { translate: 0 0; } to { translate: 0 -3px; } }
.ride__lines { position: absolute; left: -6%; bottom: 40px; display: grid; gap: 9px; }
.ride__lines i { display: block; height: 4px; border-radius: 4px; background: #0b0b0c; width: 34px; opacity: 0; }
.ride__lines i:nth-child(2) { width: 22px; margin-left: 10px; }
.ride__lines i:nth-child(3) { width: 30px; }
.motion.is-playing .ride__lines i { animation: speed .7s linear infinite; }
.motion.is-playing .ride__lines i:nth-child(2) { animation-delay: .2s; }
.motion.is-playing .ride__lines i:nth-child(3) { animation-delay: .4s; }
@keyframes speed { 0% { opacity: 0; transform: translateX(20px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateX(-30px); } }
.ride__city { position: absolute; right: 0; bottom: 0; width: 50%; }
.ico-city { width: 100%; display: block; }
.ride__pin { position: absolute; left: 22%; top: -22px; width: 34px; }
.motion.is-playing .ico-pin { animation: pinBounce 1.2s ease-in-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Caja que viaja a todo el país */
.ship { position: relative; display: flex; align-items: center; gap: 8px; max-width: 360px; margin: 14px auto 0; height: 70px; }
.ship__box { width: 70px; flex: none; position: relative; z-index: 1; }
.ship__route { flex: 1; height: 40px; }
.ship__pin { width: 30px; flex: none; }
.motion.is-playing .ship__box { animation: ship 3.2s cubic-bezier(.5,0,.3,1) 1s infinite; }
@keyframes ship { 0% { transform: translateX(0) rotate(0); } 55% { transform: translateX(210px) rotate(8deg); opacity: 1; } 70% { transform: translateX(240px) scale(.3); opacity: 0; } 71% { transform: translateX(0) scale(.3); opacity: 0; } 85%, 100% { transform: translateX(0) scale(1); opacity: 1; } }
.ship__route path { stroke-dashoffset: 0; }
.motion.is-playing .ship__route path { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }

/* Medios de pago que aparecen uno por uno */
.pays { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pays li { display: grid; justify-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; line-height: 1.2; opacity: 0; transform: translateY(18px) scale(.8); }
.pays__ico { width: 76px; height: 76px; border-radius: 50%; background: #e2e2df; display: grid; place-items: center; }
.pays__ico svg { width: 44px; }
.motion.is-playing .pays li { animation: payIn .55s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(.6s + var(--i) * .18s); }
.motion.is-playing .pays li .pays__ico { animation: payFloat 3s ease-in-out infinite; animation-delay: calc(1.6s + var(--i) * .3s); }
@keyframes payIn { to { opacity: 1; transform: none; } }
@keyframes payFloat { 50% { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--accent); } }

/* ---------------- Cómo comprar ----------------
   Lo memorable es el celular: repite la interfaz real de la tienda (tarjeta, ficha, checkout y pedido).
   El texto de la izquierda queda sobrio. Cada paso dura 4,2 s (STEP_MS en js/motion.js). */
.howto.section { padding: 48px 0; }
.howto .section__head { margin-bottom: 18px; }
.howto__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.howto__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hstep { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .3s, background .3s; }
.hstep__btn { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 18px; align-items: flex-start; padding: 14px 18px; cursor: pointer; }
.hstep__btn:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: var(--radius); }
.hstep__n { font-family: var(--display); font-size: 28px; line-height: 1; color: #a3a85a; transition: color .3s; }
.hstep__txt { display: grid; gap: 3px; }
.hstep__tit { font-weight: 700; font-size: 16px; color: #e4e4e7; }
.hstep__desc { color: #a1a1aa; line-height: 1.45; font-size: 14px; }
.hstep__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.howto[data-step="1"] .hstep[data-n="1"], .howto[data-step="2"] .hstep[data-n="2"], .howto[data-step="3"] .hstep[data-n="3"], .howto[data-step="4"] .hstep[data-n="4"] { border-color: rgba(213,242,38,.5); background: #19190f; }
.howto[data-step="1"] .hstep[data-n="1"] .hstep__n, .howto[data-step="2"] .hstep[data-n="2"] .hstep__n, .howto[data-step="3"] .hstep[data-n="3"] .hstep__n, .howto[data-step="4"] .hstep[data-n="4"] .hstep__n { color: var(--accent); }
.howto[data-step="1"] .hstep[data-n="1"] .hstep__tit, .howto[data-step="2"] .hstep[data-n="2"] .hstep__tit, .howto[data-step="3"] .hstep[data-n="3"] .hstep__tit, .howto[data-step="4"] .hstep[data-n="4"] .hstep__tit { color: #f4f4f5; }
.howto.is-playing[data-step="1"] .hstep[data-n="1"] .hstep__bar, .howto.is-playing[data-step="2"] .hstep[data-n="2"] .hstep__bar,
.howto.is-playing[data-step="3"] .hstep[data-n="3"] .hstep__bar, .howto.is-playing[data-step="4"] .hstep[data-n="4"] .hstep__bar { animation: bar 4.2s linear forwards; }
@keyframes bar { to { width: 100%; } }
.howto__caption { display: none; }

/* ----- Celular: marco de aluminio, isla, botones laterales y reflejo del vidrio ----- */
.phone { position: relative; height: min(600px, 72vh); aspect-ratio: 9 / 19.3; margin: 0 auto; border-radius: 48px; padding: 10px;
  background: linear-gradient(150deg, #4a4a50 0%, #1c1c1f 18%, #2b2b2f 50%, #141416 82%, #3d3d42 100%);
  box-shadow: inset 0 0 0 1.5px #5a5a60, inset 0 0 0 4px #0b0b0c, 0 50px 90px -20px rgba(0,0,0,.8), 0 0 0 1px #000, 0 0 120px rgba(213,242,38,.10); }
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 38px; pointer-events: none; z-index: 20;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 22%, transparent 38%); }
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2a2e, #4a4a50); }
.phone__btn--l1 { left: -3px; top: 18%; height: 7%; } .phone__btn--l2 { left: -3px; top: 27%; height: 7%; } .phone__btn--r { right: -3px; top: 22%; height: 11%; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0b0b0c; font-size: 12px; color: #f4f4f5; }
.ph-status { position: absolute; z-index: 12; inset: 0 0 auto; height: 40px; background: #0b0b0c; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; font: 600 13px Inter, sans-serif; pointer-events: none; }
.phone__isla { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 20px; background: #000; }
.ph-status__ico { display: flex; gap: 5px; align-items: center; }

/* escenas: entran desde la derecha y salen a la izquierda, como al navegar */
.scene { position: absolute; inset: 0; padding: 46px 12px 14px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(40%); transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .35s; pointer-events: none; }
.howto[data-step="1"] .scene--1, .howto[data-step="2"] .scene--2, .howto[data-step="3"] .scene--3, .howto[data-step="4"] .scene--4 { opacity: 1; transform: none; pointer-events: auto; }
.howto[data-step="2"] .scene--1, .howto[data-step="3"] .scene--2, .howto[data-step="4"] .scene--3 { transform: translateX(-30%); }

/* barra de la tienda */
.ph-app { position: relative; z-index: 3; background: #0b0b0c; display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 6px; border-bottom: 1px solid #222226; }
.ph-logo { font-family: var(--display); font-size: 13px; letter-spacing: .01em; } .ph-logo i { color: var(--accent); font-style: normal; }
.ph-cart { position: relative; display: grid; color: #f4f4f5; }
.ph-cart em { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--accent); color: #0b0b0c; font: 700 9px/15px Inter, sans-serif; text-align: center; font-style: normal; }
.scene--2 .ph-cart__n { transform: scale(0); }
.howto.is-playing[data-step="2"] .ph-cart__n { animation: badge .4s cubic-bezier(.3,1.6,.5,1) 2.75s forwards; }
@keyframes badge { to { transform: scale(1); } }

/* 1: catálogo */
.ph-scroll { display: grid; gap: 8px; }
.howto.is-playing[data-step="1"] .ph-scroll { animation: scrollea 4.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes scrollea { 0%, 12% { transform: none; } 34%, 100% { transform: translateY(-46px); } }
.ph-tit { font-family: var(--display); font-size: 20px; text-transform: uppercase; line-height: 1; margin-top: 4px; }
.ph-chips { display: flex; gap: 5px; overflow: hidden; }
.ph-chips span { white-space: nowrap; padding: 4px 9px; border-radius: 99px; border: 1px solid #2a2a2e; color: #c8c8cf; font-size: 9.5px; }
.ph-chips .on { background: var(--accent); border-color: var(--accent); color: #0b0b0c; font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-card { border-radius: 10px; overflow: hidden; background: #18181b; border: 1px solid #2a2a2e; transition: transform .3s, border-color .3s; }
.ph-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.ph-card > div { display: grid; gap: 1px; padding: 6px 7px 7px; }
.ph-card b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card small { font-size: 8.5px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card strong { font-size: 11.5px; margin-top: 3px; }
.ph-card em { font-style: normal; font-size: 8px; color: var(--accent); }
.howto.is-playing[data-step="1"] .ph-card--target { animation: pick 4.2s ease forwards; }
@keyframes pick { 0%, 52% { transform: none; } 60% { transform: scale(.95); border-color: var(--accent); } 70%, 100% { transform: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(213,242,38,.35); } }

/* 2: ficha */
.ph-prod { border-radius: 12px; overflow: hidden; flex: none; }
.ph-prod img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.ph-info { display: grid; gap: 3px; }
.ph-info b { font-family: var(--display); font-size: 15px; text-transform: uppercase; line-height: 1.05; }
.ph-info strong { font-size: 16px; }
.ph-cuotas { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 7px; border-radius: 7px; background: rgba(213,242,38,.14); border: 1px solid rgba(213,242,38,.45); color: #eef7a8; font-size: 9px; font-weight: 600; }
.ph-cuotas svg { color: var(--accent); width: 11px; height: 11px; }
.ph-info small { font-size: 9px; color: #a1a1aa; } .ph-info small em { font-style: normal; color: var(--accent); font-weight: 700; }
.ph-lbl { font: 600 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #a1a1aa; margin-top: 2px; }
.ph-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ph-sizes span { text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid #2a2a2e; background: #0b0b0c; font-weight: 700; font-size: 11px; }
.howto.is-playing[data-step="2"] .ph-size--target { animation: sizeOn 4.2s ease forwards; }
@keyframes sizeOn { 0%, 24% { background: #0b0b0c; color: inherit; } 30%, 100% { background: var(--accent); color: #0b0b0c; border-color: var(--accent); } }
.ph-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; margin-top: auto; }
.ph-add, .ph-fin { text-align: center; padding: 10px 6px; border-radius: 99px; font-weight: 800; font-size: 10.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.ph-add { background: var(--accent); color: #0b0b0c; } .ph-fin { background: #f4f4f5; color: #0b0b0c; }
.howto.is-playing[data-step="2"] .ph-add { animation: press 4.2s ease forwards; }
@keyframes press { 0%, 56% { transform: none; } 61% { transform: scale(.94); } 68%, 100% { transform: none; } }
.ph-toast { position: absolute; left: 12px; right: 12px; bottom: 58px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; background: rgba(24,24,27,.95); border: 1px solid #3a3a3e; font-size: 10px; font-weight: 600; opacity: 0; transform: translateY(8px); }
.ph-toast i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #0b0b0c; font-style: normal; font-size: 9px; font-weight: 800; }
.howto.is-playing[data-step="2"] .ph-toast { animation: toastito 4.2s ease forwards; }
@keyframes toastito { 0%, 66% { opacity: 0; transform: translateY(8px); } 72%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3: finalizar compra */
.ph-h1 { font-family: var(--display); font-size: 17px; text-transform: uppercase; margin-top: 2px; }
.ph-order { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px; border-radius: 10px; background: #18181b; border: 1px solid #2a2a2e; }
.ph-order img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; }
.ph-order b { display: block; font-size: 10.5px; } .ph-order small { color: #a1a1aa; font-size: 8.5px; } .ph-order em { font-style: normal; font-weight: 800; font-size: 10.5px; }
.ph-pay { display: grid; gap: 6px; }
.ph-opt { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 9px; border-radius: 10px; border: 1px solid #2a2a2e; background: #121214; font-size: 10px; cursor: pointer; }
.ph-opt i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #3a3a3e; }
.ph-opt b { display: block; font-size: 10px; } .ph-opt small { color: #a1a1aa; font-size: 8.5px; } .ph-opt > span { font-weight: 800; font-size: 10px; }
.ph-opt.is-on { border-color: var(--accent); background: #1a1a10; } .ph-opt.is-on i { border-color: var(--accent); background: radial-gradient(var(--accent) 40%, transparent 46%); }
.ph-logos { display: flex; gap: 3px; margin-top: 3px; } .ph-logos img { width: 21px; height: 14px; display: block; }
.howto.is-playing[data-step="3"] .ph-pay--target { animation: payPick 4.2s ease forwards; }
.howto.is-playing[data-step="3"] .ph-pay--target i { animation: payDot 4.2s ease forwards; }
@keyframes payPick { 0%, 24% { border-color: #2a2a2e; background: #121214; } 30%, 100% { border-color: var(--accent); background: #1a1a10; } }
@keyframes payDot { 0%, 24% { border-color: #3a3a3e; background: none; } 30%, 100% { border-color: var(--accent); background: radial-gradient(var(--accent) 40%, transparent 46%); } }
.ph-paybtn { margin-top: auto; padding: 11px 6px; }
.howto.is-playing[data-step="3"] .ph-paybtn { animation: press 4.2s ease forwards; }

/* 4: pedido confirmado + notificación de WhatsApp */
.scene--4 { gap: 12px; cursor: pointer; }
.ph-noti { position: absolute; z-index: 11; left: 8px; right: 8px; top: 40px; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 16px;
  background: rgba(40,40,44,.97); border: 1px solid #3a3a3e; box-shadow: 0 10px 24px rgba(0,0,0,.5); transform: translateY(-140%); opacity: 0; }
.ph-noti__ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #25d366; color: #fff; }
.ph-noti b { display: block; font-size: 10.5px; } .ph-noti small { font-size: 9.5px; color: #d4d4d8; } .ph-noti time { font-size: 8.5px; color: #a1a1aa; align-self: start; }
.howto.is-playing[data-step="4"] .ph-noti { animation: noti 4.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes noti { 0%, 38% { transform: translateY(-140%); opacity: 0; } 48%, 100% { transform: none; opacity: 1; } }
.ph-ok__check { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #0b0b0c; display: grid; place-items: center; font-size: 24px; font-weight: 800; transform: scale(0); }
.howto.is-playing[data-step="4"] .ph-ok__check { animation: pop2 .5s cubic-bezier(.3,1.6,.5,1) .25s forwards; }
@keyframes pop2 { to { transform: scale(1); } }
.ph-ok b { font-size: 15px; } .ph-ok small { color: #a1a1aa; font-size: 9.5px; }
.ph-ship { display: grid; padding: 10px 10px 4px; border-radius: 12px; background: #18181b; border: 1px solid #2a2a2e; }
.ph-ship__row { display: grid; grid-template-columns: 16px 1fr; gap: 9px; padding: 6px 0; position: relative; }
.ph-ship__row:not(.done):not(.active) b { color: #b8b8c0; }
.ph-ship__row i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #3a3a3e; margin-top: 2px; background: #18181b; position: relative; z-index: 1; }
.ph-ship__row::before { content: ""; position: absolute; left: 5.5px; top: 20px; bottom: -6px; width: 2px; background: #2a2a2e; }
.ph-ship__row:last-child::before { display: none; }
.ph-ship__row b { display: block; font-size: 10.5px; } .ph-ship__row small { color: #a1a1aa; font-size: 9px; }
.ph-ship__row.done i { background: var(--accent); border-color: var(--accent); } .ph-ship__row.done::before { background: var(--accent); }
.ph-ship__row.active i { border-color: var(--accent); }
.howto.is-playing[data-step="4"] .ph-ship__row.active i { animation: pulse 1s ease-in-out .8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(213,242,38,.25); } }

/* dedo que toca: círculo con anillo que se expande al tocar */
.tap { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.28); border: 1.5px solid rgba(255,255,255,.9);
  opacity: 0; pointer-events: none; z-index: 14; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.howto.is-playing[data-step="1"] .tap { animation: tap1 4.2s cubic-bezier(.25,.1,.25,1) forwards; }
.howto.is-playing[data-step="2"] .tap { animation: tap2 4.2s cubic-bezier(.25,.1,.25,1) forwards; }
.howto.is-playing[data-step="3"] .tap { animation: tap3 4.2s cubic-bezier(.25,.1,.25,1) forwards; }
.howto[data-step="4"] .tap, .howto:not(.is-playing) .tap { opacity: 0 !important; visibility: hidden !important; animation: none !important; }
@keyframes tap1 {
  0%, 30% { left: 70%; top: 85%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
  40% { opacity: 1; }
  54% { left: var(--t1-x, 27%); top: var(--t1-y, 45%); transform: translate(-50%, -50%) scale(1); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(.7); }
  68% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  80%, 100% { left: var(--t1-x, 27%); top: var(--t1-y, 45%); opacity: 0; }
}
@keyframes tap2 {
  0% { left: 50%; top: 40%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
  12% { opacity: 1; }
  23% { left: var(--t1-x, 63%); top: var(--t1-y, 70%); transform: translate(-50%, -50%) scale(1); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(.7); }
  34% { transform: translate(-50%, -50%) scale(1); }
  55% { left: var(--t2-x, 35%); top: var(--t2-y, 88%); transform: translate(-50%, -50%) scale(1); opacity: 1; }
  61% { transform: translate(-50%, -50%) scale(.7); opacity: 1; }
  68% { transform: translate(-50%, -50%) scale(1); }
  78%, 100% { left: var(--t2-x, 35%); top: var(--t2-y, 88%); opacity: 0; }
}
@keyframes tap3 {
  0% { left: 70%; top: 30%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
  12% { opacity: 1; }
  23% { left: var(--t1-x, 50%); top: var(--t1-y, 62%); transform: translate(-50%, -50%) scale(1); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(.7); }
  34% { transform: translate(-50%, -50%) scale(1); }
  55% { left: var(--t2-x, 50%); top: var(--t2-y, 92%); transform: translate(-50%, -50%) scale(1); opacity: 1; }
  61% { transform: translate(-50%, -50%) scale(.7); opacity: 1; }
  68% { transform: translate(-50%, -50%) scale(1); }
  80%, 100% { left: var(--t2-x, 50%); top: var(--t2-y, 92%); opacity: 0; }
}

/* ----- En celular: pestañas numeradas con el texto del paso activo, y el celular enseguida ----- */
@media (max-width: 860px) {
  .howto.section { padding: 28px 0 34px; }
  .howto__grid { grid-template-columns: 1fr; gap: 16px; }
  .howto .section__head { margin-bottom: 12px; }
  .howto__steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hstep__btn { justify-content: center; padding: 10px 0 12px; }
  .hstep__n { font-size: 22px; }
  .hstep__txt { display: none; }
  .howto__caption { display: block; min-height: 64px; margin-top: 12px; }
  .howto__caption p { display: none; margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.45; }
  .howto__caption b { display: block; color: #f4f4f5; font-size: 16px; margin-bottom: 2px; }
  .howto[data-step="1"] .howto__caption [data-n="1"], .howto[data-step="2"] .howto__caption [data-n="2"],
  .howto[data-step="3"] .howto__caption [data-n="3"], .howto[data-step="4"] .howto__caption [data-n="4"] { display: block; }
  .phone { height: min(540px, 68vh); }
}

@media (max-width: 860px) {
  .flyers { grid-template-columns: 1fr; }
  .flyer { min-height: 0; }
}
@media (max-width: 520px) {
  .pays { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .flyer { padding: 28px 18px 26px; }
}

/* Cómo comprar: piezas que copian la tienda real */
.ph-chips small { font-size: 8px; opacity: .7; margin-left: 2px; }
.ph-card__img { position: relative; }
.ph-card__fav { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,11,12,.7); color: #f4f4f5; }
.ph-card__body { position: relative; display: grid; gap: 1px; padding: 6px 7px 7px; }
.ph-card__mas { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: #0b0b0c; }
.ph-card__mas svg { width: 12px; height: 12px; }
.ph-card__body b { padding-right: 24px; }
.ph-colores { display: flex; gap: 4px; overflow: hidden; }
.ph-colores span { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 4px; border-radius: 99px; border: 1px solid #2a2a2e; font-size: 8.5px; color: #e4e4e7; white-space: nowrap; }
.ph-colores span.on { border-color: #f4f4f5; }
.ph-colores i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.ph-lbl { display: flex; justify-content: space-between; }
.ph-hint { color: #a1a1aa; }
.howto.is-playing[data-step="2"] .ph-hint { animation: hint 4.2s steps(1) forwards; }
@keyframes hint { 0%, 29% { opacity: 1; } 30%, 100% { opacity: 0; } }
.ph-guia { font-size: 9.5px; font-weight: 700; color: var(--accent); }
.ph-fin { font-size: 10px; }
.ph-resumen { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; border-radius: 9px; background: #18181b; border: 1px solid #2a2a2e; font-size: 9.5px; color: #c8c8cf; }
.ph-resumen b { color: #f4f4f5; font-size: 10.5px; }
.scene--3 .ph-opt b { font-size: 9.5px; line-height: 1.25; }
.scene--4 { gap: 6px; }
.ph-ped { display: grid; gap: 6px; }
.ph-ped__id { font: 500 8.5px var(--mono); color: #a1a1aa; } .ph-ped__id b { color: #e4e4e7; }
.ph-ped p { margin: 0; font-size: 9.5px; line-height: 1.4; color: #c8c8cf; }
.ph-ped__chips { display: flex; gap: 4px; }
.ph-ped__chips span { padding: 3px 7px; border-radius: 99px; border: 1px solid #2a2a2e; font-size: 8.5px; font-weight: 700; }
.ph-ped__chips span:first-child { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }
.ph-ped__pasos { list-style: none; margin: 2px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.ph-ped__pasos li { padding-top: 5px; border-top: 3px solid #2a2a2e; font-size: 8px; color: #a1a1aa; }
.ph-ped__pasos li.on { border-color: var(--accent); color: #f4f4f5; font-weight: 700; }
.ph-ped__tot { display: flex; justify-content: space-between; font-size: 10.5px; padding: 0 2px; } .ph-ped__tot b { font-size: 13px; }
.ph-noti { top: 44px; }
.ph-noti__ico { background: #f4f4f5; color: #c5221f; }
.howto.is-playing[data-step="4"] .ph-noti { animation: noti 4.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes noti { 0%, 30% { transform: translateY(-140%); opacity: 0; } 40%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(-140%); opacity: 0; } }
.ph-vista { flex: 1; min-height: 0; overflow: hidden; margin: 0 -2px; padding: 0 2px; }   /* el catálogo se desplaza adentro, sin pasar por arriba del encabezado */
