/* /servicios/tiendas-en-linea/ — checkout que se llena, ticket que se imprime y guía que cae */
.tnd-board { padding-bottom: clamp(150px, 14vw, 220px); }
.tnd-screen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1em; align-items: start; }
.tnd-brand { display: flex; align-items: baseline; gap: .6em; padding-bottom: .55em; margin-bottom: .7em; border-bottom: 1px solid var(--line); }
.tnd-brand b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.9em; line-height: 1; color: var(--chalk-deep); }
.tnd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.tnd-prod { display: grid; gap: .2em; font-size: .9em; min-width: 0; }
.tnd-prod b { font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnd-prod > span:last-child { font-family: var(--f-mono); font-size: .82em; }
.tnd-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(20, 18, 16, .06) 0 6px, transparent 6px 12px), #d8c8ae; margin-bottom: .3em; }
.tnd-prod--b .tnd-img { background-color: #c9b08c; }
.tnd-prod--c .tnd-img { background-color: #e2d8c6; opacity: .55; }
.tnd-img::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 56%; height: 80%; transform: translateX(-50%); background: var(--paper); opacity: .85; }
.tnd-prod--a .tnd-img::after { clip-path: polygon(36% 0, 64% 0, 70% 22%, 62% 34%, 100% 100%, 0 100%, 38% 34%, 30% 22%); background: var(--chalk); opacity: .9; }
.tnd-prod--b .tnd-img::after { height: 52%; bottom: 14%; border-radius: 10% 10% 18% 18%; clip-path: none; background: #6b4a2b; opacity: .85; box-shadow: 0 -1.4em 0 -1.05em #6b4a2b; }
.tnd-prod--c .tnd-img::after { clip-path: polygon(30% 0, 70% 0, 100% 22%, 86% 34%, 80% 26%, 80% 100%, 20% 100%, 20% 26%, 14% 34%, 0 22%); background: #fff; }

.tnd-cart { display: flex; flex-direction: column; gap: .35em; padding: .8em; background: var(--paper-2); border-radius: 4px; min-width: 0; }
.tnd-cart .m-total { font-size: 1.2em; }
.tnd-pay { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .4em; }
.tnd-pay .m-chip { font-size: .68em; padding: .22em .5em; background: var(--paper); }
.tnd-sel { position: relative; }
.tnd-pick { position: absolute; inset: -4px; border: 2px solid var(--chalk); border-radius: 100px; pointer-events: none; }
.tnd-pick::after { content: "✓"; position: absolute; right: -.7em; top: -.75em; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: var(--chalk); color: var(--ink); font-size: .9em; font-weight: 800; }
.tnd-paybtn { align-self: stretch; margin-top: .5em; }

/* ticket y guía, encima de la maqueta */
.tnd-ticket { overflow: visible; position: absolute; left: 7%; bottom: clamp(18px, 2.4vw, 34px); width: 36%; z-index: 4; font-size: var(--dev-fs); transform: rotate(-2deg); }
.tnd-ticket .dev__screen { gap: .35em; padding-bottom: 1.4em; }
.tnd-ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, var(--paper) 6.5px) 0 0 / 12px 8px repeat-x; }
.tnd-stamp { position: absolute; right: .8em; top: 2.4em; }
.tnd-label { position: absolute; right: 5%; bottom: clamp(8px, 1.2vw, 20px); width: 34%; z-index: 3; --dev-fs: clamp(10px, .5rem + .42vw, 14px); font-size: var(--dev-fs); padding: .9em 1em; background: #fbf7ef; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; display: grid; gap: .45em; transform: rotate(3deg); box-shadow: 8px 8px 0 -2px rgba(255, 74, 28, .35); }
.tnd-label__to { font-size: .95em; line-height: 1.3; }
.tnd-label__to b { display: block; font-size: 1.15em; }
.tnd-barcode { display: block; height: 2.6em; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }
.js:not(.no-motion) [data-play] .tnd-label[data-step="drop"]:not(.is-on) { transform: translateY(-2.4em) rotate(-6deg); }
.js:not(.no-motion) [data-play] .tnd-label[data-step="drop"].is-on { transition: opacity .4s, transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.js:not(.no-motion) [data-play] .tnd-ticket[data-step="unroll"].is-on { transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); }

.tnd-paytable { margin-top: clamp(32px, 4vw, 56px); }

@media (max-width: 1100px) and (min-width: 900px) {
  .tnd-screen { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tnd-screen { grid-template-columns: 1fr; }
  .tnd-board { padding-bottom: clamp(18px, 3.4vw, 56px); display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .tnd-board > .dev, .tnd-board > .stage__cota { grid-column: 1 / -1; }
  .tnd-board > .stage__cota { position: static; }
  .tnd-ticket, .tnd-label { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: 6px; }
  .tnd-label { transform: rotate(2deg); width: 78%; justify-self: end; margin-top: -26px; }
  .tnd-ticket { width: 88%; }
  .tnd-board .pin { display: none; }
}

/* .split en móvil usa 1fr (min auto): la tabla ancha lo estiraba */
.tnd-payside { min-width: 0; }

