/* Ashe. La tienda: portada con escena, búsqueda y filtros, catálogo, ficha breve, carrito y checkout.
   Dirección cinematográfica de DESIGN.md: ciruela profunda con luz lateral cálida para la escena y
   superficies planas con contraste estable para comprar. Los colores salen de tokens.css. */

.tienda :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; }
.tienda :where(ul, ol) { list-style: none; }
.tienda :where(a) { color: inherit; text-decoration: none; }
.tienda { padding-bottom: 0; }

/* ---------- Componentes de compra ---------- */
.boton, .btn-ghost, .btn-copy, .btn-wa, .btn-primary-block, .boton-texto { font: 700 .95rem/1 var(--font-sans); }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-2); border: 1.5px solid transparent; white-space: nowrap; transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.boton:active { transform: scale(.97); }
.boton-escena { background: var(--apricot); color: var(--plum); }
.boton-escena:hover { background: #f3cbb5; }
.boton-escena-sec { background: transparent; color: var(--paper); border-color: rgb(255 255 255 / .55); }
.boton-escena-sec:hover { background: rgb(255 255 255 / .1); border-color: var(--paper); }
.boton-texto { background: none; border: 0; padding: var(--s-2) 0; min-height: 44px; color: var(--action); text-decoration: underline; text-underline-offset: 3px; }

.btn-ghost, .btn-copy, .btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: var(--s-2) var(--s-4); border-radius: var(--r-2); border: 1.5px solid var(--control-line); background: transparent; color: var(--text); transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.btn-ghost:hover, .btn-copy:hover { background: var(--surface-alt); }
.btn-ghost:active, .btn-copy:active, .btn-wa:active { transform: scale(.98); }
.btn-copy { min-height: 36px; padding: 6px var(--s-3); font-size: .8rem; }
.btn-wa { background: var(--whatsapp-fill); border-color: var(--whatsapp-fill); color: var(--on-plum); }
.btn-wa:hover { background: var(--whatsapp-hover); border-color: var(--whatsapp-hover); }
.btn-wa-main { width: 100%; margin: var(--s-1) 0 var(--s-2); }
.btn-primary-block { border: 1px solid var(--action); width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; transition: background-color var(--dur-ui) var(--ease-out); }
.btn-primary-block:hover:not(:disabled) { background: var(--action-hover); }
.btn-primary-block:active:not(:disabled) { transform: scale(.99); }
.btn-primary-block:disabled { opacity: .55; cursor: not-allowed; }

.field-group { display: grid; gap: var(--s-1); min-width: 0; }
.field-group label, .field-label { font-size: .85rem; font-weight: 700; color: var(--text); }
.field-group:focus-within label { color: var(--action); }
.field-input, .campo-select { min-width: 0; max-width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3); border-radius: var(--r-2); border: 1px solid var(--control-line); background: var(--surface); color: var(--text); font-size: 1rem; }
.field-input:focus-visible, .campo-select:focus-visible { border-color: var(--action); }

.toast-container { position: fixed; top: 76px; right: var(--s-4); left: var(--s-4); margin-inline-start: auto; z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--s-2); max-width: 24rem; pointer-events: none; }
.toast-card { background: var(--plum); color: var(--on-plum); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); box-shadow: var(--shadow-float); font-size: .9rem; font-weight: 600; }
.toast-error { background: var(--danger-fill); }
.toast-success { background: var(--success-fill); }

.wait-box { display: grid; gap: 6px; padding: var(--s-2) 0; }
.wait-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wait-bar span { display: block; height: 100%; background: var(--action); transform-origin: left; transform: scaleX(0); }
.wait-label { font-size: .88rem; font-weight: 700; }

/* ---------- Anuncio y vista previa del CMS ---------- */
.cms-preview-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-2) var(--s-4); background: var(--warning-soft); color: var(--warning); border-bottom: 1px solid var(--line); font: 700 var(--t-13)/1.4 var(--font-sans); }
.cms-preview-bar a { color: var(--warning); text-decoration: underline; }
.cms-anuncio-bar { background: var(--plum); color: var(--on-plum); border-bottom: 1px solid var(--plum-line); padding: var(--s-2) var(--s-4); text-align: center; font: 600 var(--t-13)/1.4 var(--font-sans); }
.cms-anuncio-bar a { color: var(--apricot); font-weight: 700; text-decoration: underline; margin-inline-start: var(--s-1); }

/* ---------- Escena de portada ---------- */
.escena, .catalog-layout, .info-franja, .cms-banners, .como-pedir, .marketplaces { width: min(var(--container-max), calc(100% - 2 * var(--content-gutter))); margin-inline: auto; }
.escena { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s-4); border-radius: var(--r-4); background: var(--stage); color: var(--paper); display: grid; }
.escena-foto { position: relative; z-index: 0; width: 100%; height: clamp(190px, 58vw, 260px); object-fit: cover; object-position: 66% 46%; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
/* Luz lateral cálida desde arriba a la derecha y rebote bajo en damasco. */
.escena::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 55% at 100% 0%, var(--stage-glow), transparent 72%), linear-gradient(0deg, var(--stage-rebound), transparent 26%); }
.escena-copy { position: relative; z-index: 2; display: grid; gap: var(--s-2); padding: 0 var(--s-5) var(--s-5); margin-top: calc(-1 * var(--s-5)); }
.escena h1 { font: 700 clamp(2.1rem, 10vw, 3.6rem)/.92 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.escena h1 span { display: block; margin-top: .14em; font-size: .56em; line-height: 1; color: var(--on-plum-muted); }
.escena-oferta { font: 700 1.1rem/1.3 var(--font-sans); max-width: 34ch; text-wrap: balance; }
.escena-pago { font: 500 .95rem/1.35 var(--font-sans); color: var(--on-plum-muted); }
.escena-estado { margin-block: var(--s-3); color: var(--on-plum); font: 700 .95rem/1.35 var(--font-sans); }
.escena-acciones { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.escena-acciones .boton { flex: 1 1 0; min-width: 0; padding-inline: var(--s-3); }
@media (min-width: 700px) {
  .escena { min-height: 400px; align-items: center; margin-top: var(--s-5); }
  .escena-foto { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; object-position: 62% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
  .escena-copy { width: min(52%, 520px); padding: var(--s-7) 0 var(--s-7) clamp(var(--s-5), 5vw, 64px); margin-top: 0; gap: var(--s-3); }
  .escena h1 { font-size: clamp(4rem, 6.4vw, 5.6rem); }
  .escena-oferta { font-size: 1.25rem; }
  .escena-acciones .boton { flex: 0 0 auto; }
}

.escena a:focus-visible { outline-color: var(--paper); }

/* Franja de pago y estado */
.info-franja { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.info-franja-list { display: flex; flex-wrap: wrap; gap: 4px var(--s-5); font: 500 .85rem/1.4 var(--font-sans); color: var(--text-secondary); }
.info-franja-list li + li { border-inline-start: 1px solid var(--line); padding-inline-start: var(--s-5); }
.info-pagos svg { vertical-align: -.24em; margin-right: 3px; }
.info-franja a { color: var(--action); font-weight: 700; }
.info-estado { color: var(--action); font-weight: 700; }
@media (max-width: 639px) { .info-franja-list li + li { border: 0; padding: 0; } }

/* ---------- Banners editoriales del CMS ---------- */
.cms-banners { margin-top: var(--s-5); }
.cms-banners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); }
.cms-banner { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.cms-banner-ciruela { background: var(--stage); color: var(--on-plum); border-color: var(--plum-line); }
.cms-banner-damasco { background: var(--apricot); color: var(--plum); border-color: var(--apricot); }
.cms-banner-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-banner-body { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); }
.cms-banner-body h2 { font: 700 clamp(1.7rem, 5vw, 2.1rem)/1 var(--font-display); }
.cms-banner-body p { font: 400 .95rem/1.45 var(--font-sans); opacity: .92; max-width: 44ch; }
.cms-banner-cta { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-1); padding: 0 var(--s-4); border-radius: var(--r-2); background: var(--action); color: var(--on-action); font: 700 .9rem var(--font-sans); }
.cms-banner-ciruela .cms-banner-cta { background: var(--apricot); color: var(--plum); }
.cms-banner-damasco .cms-banner-cta { background: var(--plum); color: var(--on-plum); }

/* ---------- Catálogo: búsqueda, filtros y categorías ---------- */
.catalog-layout { padding: var(--s-5) 0 var(--s-3); }
#catalogo { scroll-margin-top: 78px; }
.toolbar-container { display: grid; gap: var(--s-3); }
.search-row { display: flex; gap: var(--s-2); align-items: stretch; position: relative; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-input-wrap > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.search-input { width: 100%; height: 52px; padding: 0 44px 0 44px; border-radius: var(--r-3); border: 1px solid var(--control-line); background: var(--surface); color: var(--text); font-size: 1rem; }
.search-input::placeholder { color: var(--text-secondary); }
.search-input:focus-visible { border-color: var(--action); }
.search-input::-webkit-search-cancel-button { appearance: none; }
.btn-clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--surface-alt); color: var(--text-secondary); display: none; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; }
.btn-clear-search:hover { background: var(--surface-hover); }

.search-suggestions { position: absolute; z-index: var(--z-menu); top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, 62vh); overflow-y: auto; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-float); }
.sugerencia { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-1) var(--s-2); border-radius: var(--r-2); cursor: pointer; }
.sugerencia[aria-selected="true"], .sugerencia:hover { background: var(--action-soft); }
.sugerencia-foto { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-1); background: var(--photo-plane); overflow: hidden; }
.sugerencia-foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sugerencia-nombre { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.sugerencia-nombre mark { background: none; color: var(--action); font-weight: 800; }
.sugerencia-precio { font: 700 1.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sugerencia-todos { grid-template-columns: minmax(0, 1fr); min-height: 48px; color: var(--action); font-weight: 700; text-align: left; }
.sugerencia-vacia { padding: var(--s-3); color: var(--text-secondary); font-size: .92rem; }

.filtros { position: relative; flex: none; }
.filtros > summary { display: flex; align-items: center; gap: var(--s-2); height: 52px; padding: 0 var(--s-4); list-style: none; cursor: pointer; border: 1px solid var(--control-line); border-radius: var(--r-3); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 700; }
.filtros > summary::-webkit-details-marker { display: none; }
.filtros > summary:hover { border-color: var(--action); }
.filtros[open] > summary, .filtros.con-filtros > summary { border-color: var(--action); }
.filtros-panel { position: absolute; z-index: var(--z-menu); right: 0; top: calc(100% + 6px); width: min(320px, calc(100vw - 2 * var(--content-gutter))); display: grid; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-float); }
.filtros-grupo { display: grid; gap: var(--s-1); border: 0; min-width: 0; }
.filtros-grupo legend, .filtros-etiqueta { font-weight: 700; font-size: .85rem; color: var(--text-secondary); margin-bottom: var(--s-1); }
.filtro-check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-2); border-radius: var(--r-2); cursor: pointer; font-weight: 600; }
.filtro-check:hover { background: var(--surface-alt); }
.filtro-check input { width: 22px; height: 22px; flex: none; accent-color: var(--action); }
.filtro-check small { color: var(--text-secondary); font-weight: 400; }
@media (max-width: 520px) {
  .filtros { position: static; }
  .filtros-panel { left: 0; right: 0; width: auto; }
}

.category-nav { position: relative; display: flex; gap: var(--s-1); align-items: center; min-width: 0; border-bottom: 1px solid var(--line); }
.category-strip { flex: 1; min-width: 0; display: flex; gap: var(--s-2); padding: var(--s-1) 0 var(--s-3); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-strip::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.cat-pill:hover { border-color: var(--action); }
.cat-pill.active { background: var(--action); border-color: var(--action); color: var(--on-action); }
.category-prev, .category-next { flex: none; width: 36px; height: 44px; display: grid; place-items: center; margin-bottom: var(--s-2); border: 1px solid var(--control-line); border-radius: var(--r-2); background: var(--surface); color: var(--text); font: 400 1.5rem/1 var(--font-sans); }
.category-prev { order: -1; }
.category-prev:hover, .category-next:hover { background: var(--surface-alt); }
.subcategory-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--s-2) var(--s-4); max-width: 680px; }
.category-field { display: grid; gap: 3px; min-width: 0; }
.category-field label { font-size: .8rem; font-weight: 700; color: var(--text-secondary); }
.category-field select { width: 100%; min-height: 44px; padding: 0 var(--s-3); background: var(--surface); border: 1px solid var(--control-line); border-radius: var(--r-2); color: var(--text); font-size: .95rem; }

/* ---------- Combos y destacados ---------- */
.commerce-combos, .cms-destacados { padding: var(--s-5) 0 var(--s-2); scroll-margin-top: 78px; }
.commerce-combos.is-filtered { display: none; }
.combos-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s-4); margin-bottom: var(--s-3); }
.combos-head h2, .commerce-combos h2 { font: 700 2.2rem/1 var(--font-display); letter-spacing: -.01em; }
.combos-head a { font: 600 .9rem/1.3 var(--font-sans); color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.combos-page h1 { margin-block: 0 var(--s-2); font: 700 clamp(2.6rem, 8vw, 4.25rem)/.98 var(--font-display); }
.combos-page > p { margin-block: 0 var(--s-5); color: var(--text-secondary); }
.combos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--s-3); }
.combo-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); color: var(--text); scroll-margin: 84px var(--content-gutter); }
.combo-photo { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; background: var(--photo-plane); }
.combo-body { display: grid; align-content: start; gap: 6px; padding: var(--s-3) var(--s-4) var(--s-4); }
.combo-card :is(h2, h3) { font: 700 1.3rem/1.05 var(--font-display); }
.combo-card .combo-contenido { font: 400 .85rem/1.4 var(--font-sans); color: var(--text-secondary); }
.combo-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.combo-precio { display: grid; gap: var(--s-1); min-width: 0; }
.combo-precio strong { font: 700 1.8rem/1 var(--font-display); }
.combo-ahorro { justify-self: start; padding: 2px var(--s-2); border-radius: 4px; background: var(--success-soft); color: var(--success); font: 700 .75rem/1.4 var(--font-sans); }
.combo-card .combo-add { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-2); background: var(--action); color: var(--on-action); font: 700 .9rem var(--font-sans); }
.combo-card .combo-add:hover { background: var(--action-hover); }
.combo-card .combo-add:active { transform: scale(.97); }
@media (max-width: 700px) {
  .combos-list { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--content-gutter); overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--content-gutter)); padding: 2px var(--content-gutter) var(--s-3); scrollbar-width: none; }
  .combos-list::-webkit-scrollbar { display: none; }
  .combo-card { flex: 0 0 min(72vw, 268px); scroll-snap-align: start; }
  .combos-head h2, .commerce-combos h2 { font-size: 1.9rem; }
}
.cms-destacados-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--s-3); }
.cms-dest-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.cms-dest-media { display: grid; place-items: center; aspect-ratio: 1; padding: var(--s-3); background: radial-gradient(ellipse at 50% 40%, var(--ivory), var(--photo-plane) 60%, var(--photo-plane-edge)); }
.cms-dest-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cms-dest-info { display: grid; align-content: space-between; gap: var(--s-2); padding: var(--s-3); }
.cms-dest-info h3 { font: 700 1.15rem/1.05 var(--font-display); }
.cms-dest-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.cms-dest-foot strong { font: 700 1.5rem/1 var(--font-display); }

/* ---------- Grilla y tarjetas ---------- */
.catalog-main { margin: var(--s-5) 0 0; }
.catalog-status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); margin-bottom: var(--s-4); }
.catalog-status-bar :is(h1, h2) { font: 700 2.4rem/1 var(--font-display); letter-spacing: -.01em; }
.results-counter { font: 500 .85rem/1.2 var(--font-sans); color: var(--text-secondary); }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.sort-wrap label { font-size: .85rem; font-weight: 700; }
.sort-select { min-height: 44px; max-width: 100%; padding: 0 var(--s-3); background: var(--surface); border: 1px solid var(--control-line); border-radius: var(--r-2); color: var(--text); font-size: .9rem; }
.sx-cat-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.sx-cat-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-2); border: 1px solid var(--line); flex: none; }
.catalog-pagination { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.catalog-pagination ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1); }
.catalog-pagination a, .catalog-pagination [aria-current="page"] { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: var(--r-2); color: var(--text); font-weight: 700; }
.catalog-pagination a:hover { border-color: var(--action); color: var(--action); }
.catalog-pagination [aria-current="page"] { border-color: var(--action); background: var(--action); color: var(--on-action); }
.catalog-page-gap { padding-inline: 2px; color: var(--text-secondary); }
.catalog-empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6) 0; color: var(--text-secondary); }
.catalog-empty-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } }
@media (min-width: 960px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); transition: border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.product-card:hover { border-color: var(--control-line); }
.product-card.out-of-stock .card-media { filter: grayscale(.85); opacity: .7; }
/* Foto oficial sobre el plano marfil, con una sombra corta de contacto. */
.card-media { position: relative; margin: var(--s-2); border-radius: var(--r-2); background: radial-gradient(ellipse at 50% 38%, var(--ivory), var(--photo-plane) 58%, var(--photo-plane-edge)); overflow: hidden; }
.card-badges-top { position: absolute; z-index: var(--z-local); left: var(--s-2); top: var(--s-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); pointer-events: none; }
.badge-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-2); border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-retornable { background: var(--success-soft); color: var(--success); }
.badge-18 { min-width: 28px; justify-content: center; background: var(--plum); color: var(--apricot); letter-spacing: .02em; }
.product-visual { position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; aspect-ratio: 1; padding: 10% 8% 12%; border: 0; background: none; cursor: pointer; }
.product-visual::before { content: ""; position: absolute; z-index: -1; left: 24%; right: 24%; bottom: 8%; height: 6%; border-radius: 50%; background: radial-gradient(ellipse at center, var(--contact-shadow), transparent 70%); }
.product-visual img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.svg-placeholder { display: grid; place-items: center; color: var(--on-photo); }
.card-body { display: grid; align-content: start; gap: 5px; padding: var(--s-1) var(--s-3) var(--s-2); flex: 1; }
.product-title { font: 700 1.2rem/1.05 var(--font-display); letter-spacing: .005em; min-height: 2.1em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a:hover { text-decoration: underline; text-underline-offset: 2px; }
.product-pres, .product-legal, .product-ret { font-size: .75rem; line-height: 1.35; color: var(--text-secondary); }
.product-ret { color: var(--success); font-weight: 500; }
.product-legal { font-size: .6875rem; color: var(--text-muted); text-wrap: pretty; }
.product-unavailable { font-size: .8rem; font-weight: 700; color: var(--action); }
.pres-control { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: 2px; }
.pres-chip { position: relative; display: inline-flex; }
.pres-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pres-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--control-line); border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; white-space: nowrap; transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.pres-chip input:checked + span { background: var(--action-soft); border-color: var(--action); color: var(--action); }
.pres-chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pres-chip input:disabled + span { opacity: .5; text-decoration: line-through; }
.card-footer-action { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); }
.price-block { display: grid; min-width: 0; }
.price-main { font: 700 1.65rem/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-main.muted { font: 700 .95rem var(--font-sans); color: var(--text-secondary); }
.price-unit-label { display: block; font-size: .72rem; line-height: 1.3; color: var(--text-secondary); }
.price-consult { color: var(--action); font-weight: 700; text-decoration: underline; }
.btn-add-unit { border: 0; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--action); color: var(--on-action); font-size: 1.5rem; font-weight: 600; line-height: 1; transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.btn-add-unit:hover:not(:disabled) { background: var(--action-hover); }
.btn-add-unit:active:not(:disabled) { transform: scale(.92); }
.btn-add-unit:disabled { background: var(--surface-alt); color: var(--text-muted); cursor: not-allowed; }
.qty-stepper-inline { display: inline-flex; align-items: center; height: 44px; border-radius: var(--r-pill); background: var(--action); color: var(--on-action); }
.qty-stepper-inline button { width: 36px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--on-action); font-size: 1.15rem; font-weight: 700; border-radius: var(--r-pill); }
.qty-stepper-inline button:hover { background: var(--action-hover); }
.qty-stepper-inline button:focus-visible { outline-color: var(--on-action); outline-offset: -3px; }
.qty-stepper-inline button:active { transform: scale(.88); }
.qty-stepper-inline span { min-width: 22px; text-align: center; font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .price-main { font-size: 1.45rem; } .card-body { padding-inline: var(--s-2); } .card-footer-action { padding-inline: var(--s-2); } }

/* ---------- Cómo pedir y otros canales ---------- */
.como-pedir {
  --paso-ancho: 38px;
  --paso-gutter: var(--s-5);
  margin-block: clamp(var(--s-6), 5vw, var(--s-8));
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
}
.como-pedir h2 { margin: 0 0 var(--s-5); font: 700 clamp(2.35rem, 4vw, 3.4rem)/1 var(--font-display); }
.como-pedir-secuencia { position: relative; }
.como-pedir ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--paso-gutter); }
.como-pedir li { display: grid; align-content: start; gap: var(--s-3); padding-inline-end: var(--s-2); }
.como-pedir-numero {
  display: grid;
  place-items: center;
  width: var(--paso-ancho);
  height: var(--paso-ancho);
  border: 1px solid var(--control-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--action);
  font: 700 1.25rem/1 var(--font-display);
}
.como-pedir h3 { margin: 0 0 var(--s-1); font: 700 1.36rem/1.1 var(--font-display); }
.como-pedir li p { max-width: 33ch; color: var(--text-secondary); font-size: .94rem; line-height: 1.46; }
.como-pedir-guia {
  position: absolute;
  inset-block-start: calc(var(--paso-ancho) / 2);
  inset-inline: calc(var(--paso-ancho) / 2) calc((100% - var(--paso-gutter) * 2) / 3 - var(--paso-ancho) / 2);
  height: 1px;
  background: var(--control-line);
}
.como-pedir-luz { display: block; height: 100%; background: var(--action); opacity: 0; transform-origin: left; }
.como-pedir-pie { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.como-pedir-acciones { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.como-pedir-acciones .sx-btn { min-height: 44px; padding-inline: var(--s-4); font-size: .88rem; }
.como-pedir-edad, .como-pedir-relacionados { margin-top: var(--s-3); color: var(--text-secondary); font-size: var(--t-14); line-height: 1.45; }
@media (max-width: 700px) {
  .como-pedir { --paso-gutter: var(--s-4); }
  .como-pedir ol { grid-template-columns: 1fr; }
  .como-pedir li { grid-template-columns: var(--paso-ancho) minmax(0, 1fr); padding-inline-end: 0; }
  .como-pedir-guia {
    inset-block: calc(var(--paso-ancho) / 2) var(--s-6);
    inset-inline: calc(var(--paso-ancho) / 2) auto;
    width: 1px;
    height: auto;
  }
  .como-pedir-luz { transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) { .como-pedir-luz { display: none; } }
.marketplaces { margin-top: var(--s-6); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.marketplaces-heading h2 { font: 700 1.9rem/1.1 var(--font-display); }
.marketplaces-heading p { margin: 7px 0 var(--s-4); color: var(--text-secondary); font-size: .9rem; }
.marketplaces-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.marketplace-button { display: flex; align-items: center; gap: var(--s-4); width: 100%; min-height: 76px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); color: var(--text); }
.marketplace-mark { height: 50px; width: 110px; flex: none; display: grid; place-items: center; border-radius: 7px; overflow: hidden; }
.pedidosya-mark { background: var(--pedidosya-brand); }
.pedidosya-mark img { width: 84px; max-height: 34px; filter: brightness(0) invert(1); }
.uber-mark { background: var(--uber-brand); }
.uber-mark img { width: 44px; height: 44px; }
.marketplace-copy strong { font-size: .92rem; line-height: 1.3; }
@media (max-width: 639px) { .marketplaces-list { grid-template-columns: minmax(0, 1fr); } .marketplace-mark { width: 100px; } }

/* ---------- Vista breve del producto ---------- */
body.detail-open { overflow: hidden; }
.product-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(800px, calc(100% - 2 * var(--s-4))); max-height: min(780px, calc(100% - 2 * var(--s-4))); border: 0; border-radius: var(--r-4); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); overflow: auto; }
.product-dialog::backdrop { background: var(--scrim); }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-5); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--text-secondary); font-weight: 600; }
.detail-close { width: 44px; height: 44px; flex: none; border-radius: var(--r-2); color: var(--text); font-size: 1.6rem; line-height: 1; }
.detail-close:hover { background: var(--surface-alt); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); }
.detail-photo { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; align-self: start; aspect-ratio: 1; padding: var(--s-5); border-radius: var(--r-3); background: radial-gradient(ellipse at 50% 38%, var(--ivory), var(--photo-plane) 58%, var(--photo-plane-edge)); color: var(--on-photo); font-size: .85rem; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.detail-brand { color: var(--action); font-weight: 700; font-size: .85rem; }
.detail-info h2 { font: 700 2.3rem/.98 var(--font-display); margin: 4px 0 var(--s-2); }
.detail-labels { font-size: .85rem; color: var(--text-secondary); min-height: 1.25em; }
.detail-specs { margin: var(--s-4) 0; border-top: 1px solid var(--line); }
.detail-specs > div { display: flex; gap: var(--s-3); justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.detail-specs dt { color: var(--text-secondary); }
.detail-specs dd { font-weight: 600; text-align: right; }
.presentacion-control { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
.presentacion-titulo { font-weight: 700; font-size: .9rem; }
.detail-purchase { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.detail-purchase strong { display: block; font: 700 2.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.detail-purchase small { display: block; color: var(--text-secondary); font-size: .78rem; }
.detail-add { min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-2); background: var(--action); color: var(--on-action); font-weight: 700; }
.detail-add:hover:not(:disabled) { background: var(--action-hover); }
.detail-add:disabled { background: var(--surface-alt); color: var(--text-secondary); cursor: not-allowed; }
.detail-legal { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-left: 4px solid var(--apricot); background: var(--surface-alt); border-radius: 0 var(--r-2) var(--r-2) 0; font-size: .82rem; }
.detail-legal strong { display: block; }
.detail-retornable, .cart-retornable { margin: var(--s-2) 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-1); background: var(--success-soft); color: var(--success); font-size: .85rem; line-height: 1.4; }
#detail-full-link { display: inline-block; margin-top: var(--s-3); color: var(--action); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.detail-quantity, .detail-unavailable { margin-top: var(--s-2); color: var(--action); font-size: .85rem; font-weight: 600; }
#detail-complements { display: grid; gap: 6px; margin-top: var(--s-4); }
#detail-complements h3 { font-size: 1rem; }
.complement-button { text-align: left; min-height: 44px; padding: var(--s-2) var(--s-3); border-radius: var(--r-2); background: var(--surface-alt); color: var(--text); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
#detail-channels a { display: block; padding: 6px 0; color: var(--action); }
#detail-channels summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 639px) {
  .product-dialog { inset: auto 0 0 0; margin: 0 auto; width: 100%; max-height: 92dvh; border-radius: var(--r-4) var(--r-4) 0 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); }
  .detail-photo { aspect-ratio: 4 / 3; padding: var(--s-3); }
  .detail-info h2 { font-size: 2rem; }
}

/* Pres. con tarjetas: la misma pieza de la ficha, acá más chica. */
.pres-opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--s-2); }
.pres-tarjeta { position: relative; display: grid; gap: 2px; padding: var(--s-3); border: 1.5px solid var(--control-line); border-radius: var(--r-3); background: var(--surface); cursor: pointer; transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out); }
.pres-tarjeta input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pres-tarjeta strong { font: 700 1.15rem/1.1 var(--font-display); }
.pres-tarjeta span { font: 600 .95rem var(--font-sans); font-variant-numeric: tabular-nums; }
.pres-tarjeta small { color: var(--text-secondary); font-size: .75rem; }
.pres-tarjeta:has(input:checked) { border-color: var(--action); background: var(--action-soft); box-shadow: inset 0 0 0 1px var(--action); }
.pres-tarjeta:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.pres-tarjeta:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------- Barra del carrito en el celular, drawer y checkout ---------- */
.mobile-cart-bar { position: fixed; bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); left: var(--s-4); right: var(--s-4); max-width: 560px; margin: 0 auto; z-index: var(--z-float); min-height: 60px; padding: var(--s-2) var(--s-4); display: none; align-items: center; justify-content: space-between; border-radius: var(--r-3); background: var(--action); color: var(--on-action); box-shadow: var(--shadow-float); text-align: left; }
.mobile-cart-bar.visible { display: flex; }
.mobile-cart-bar:active { transform: scale(.98); }
.mobile-cart-left { display: flex; align-items: center; gap: var(--s-3); }
.mobile-cart-count { background: var(--on-action); color: var(--action); font-weight: 800; font-size: .85rem; padding: 4px var(--s-3); border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.mobile-cart-label { font-size: .95rem; font-weight: 800; }
.mobile-cart-cta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-weight: 800; font-size: 1rem; }
.mobile-cart-cta small { font-size: .72rem; font-weight: 500; }
@media (min-width: 900px) { .mobile-cart-bar, .mobile-cart-bar.visible { display: none; } }

.drawer-backdrop { position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--scrim); opacity: 0; pointer-events: none; }
.drawer-backdrop.open { pointer-events: auto; }
body.cart-open { overflow: hidden; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: 100%; max-width: 480px; display: none; flex-direction: column; background: var(--surface); color: var(--text); box-shadow: var(--shadow-drawer); transform: translateX(100%); }
.cart-drawer.open { display: flex; }
.cart-drawer[aria-hidden="true"] { visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); background: var(--stage); color: var(--paper); }
.drawer-header h2 { display: flex; align-items: center; gap: var(--s-2); font: 700 1.9rem/1 var(--font-display); }
.btn-close-drawer { border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgb(255 255 255 / .1); font-weight: 700; }
.btn-close-drawer:focus-visible { outline-color: var(--apricot); }
.btn-close-drawer:hover { background: rgb(255 255 255 / .2); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); }
.cart-items-list { display: grid; margin-bottom: var(--s-4); }
.cart-item-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: var(--s-1) var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cart-item-photo { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 76px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 38%, var(--ivory), var(--photo-plane)); border-radius: var(--r-2); }
.cart-item-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item-photo span { padding: var(--s-1); text-align: center; color: var(--on-photo); font-size: .7rem; }
.cart-item-info { grid-column: 2; min-width: 0; }
.cart-item-title { font: 700 1.2rem/1.05 var(--font-display); margin-bottom: 3px; }
.cart-item-sub { font-size: .78rem; color: var(--text-secondary); }
.cart-ret { color: var(--success); font-weight: 600; }
.cart-item-controls { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cart-item-controls .qty-stepper-inline button { width: 44px; }
.cart-line-total { min-width: 80px; text-align: right; font: 700 1.3rem/1 var(--font-display); }
.combo-cart-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.combo-cart-row .cart-item-info { grid-column: 1; }
.cart-empty { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-6) var(--s-4); text-align: center; border: 1px dashed var(--control-line); border-radius: var(--r-3); }
.cart-empty-title { font: 700 1.5rem/1 var(--font-display); }
.cart-empty p { font-size: .9rem; color: var(--text-secondary); }
.checkout-form-section { border-top: 1px solid var(--line); }
.co-step { display: grid; gap: var(--s-3); padding: var(--s-4) 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.checkout-form-section > .co-step:first-child { border-top: 0; }
.co-step h3, .co-pay legend { font: 700 1.5rem/1 var(--font-display); }
.co-note { font-size: .82rem; color: var(--text-secondary); line-height: 1.4; }
.co-status { font-size: .92rem; font-weight: 600; }
.co-status-error { color: var(--danger); }
.co-hint { min-height: 1.1em; margin: 6px 0; font-size: .82rem; color: var(--text-secondary); }
.co-alert { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-2); background: var(--warning-soft); border: 1px solid var(--warning); font-size: .9rem; }
.shipping-controls { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-3); }
.shipping-controls:not(:has(#maps-search:not([hidden]))):not(:has(#shipping-map:not([hidden]))) { display: none; }
.shipping-controls button { border-radius: var(--r-2); background: var(--action); color: var(--on-action); padding: var(--s-3); font-weight: 700; min-height: 44px; }
#shipping-map { height: 220px; width: 100%; border-radius: var(--r-2); }
gmp-place-autocomplete { width: 100%; }
.pay-option { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: 1.5px solid var(--control-line); border-radius: var(--r-3); cursor: pointer; background: var(--surface); }
.pay-option:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.pay-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }
.pay-option strong { display: block; font-size: .95rem; }
.pay-option small { display: block; font-size: .8rem; color: var(--text-secondary); }
.local-confirm { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-3); border: 1.5px solid var(--control-line); border-radius: var(--r-3); cursor: pointer; line-height: 1.4; font-size: .9rem; }
.local-confirm input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--action); }
.local-confirm:has(input:checked) { border-color: var(--action); }
.local-confirm small { display: block; font-size: .78rem; color: var(--text-secondary); font-weight: 400; }
.pin-block { display: grid; gap: 10px; padding-top: var(--s-3); border-top: 1px dashed var(--line); }
.pin-toggle { text-align: left; min-height: 44px; font-weight: 700; color: var(--text); }
.pin-toggle small { font-weight: 400; color: var(--text-secondary); }
.pin-toggle::after { content: " +"; color: var(--action); font-weight: 800; }
.pin-toggle[aria-expanded="true"]::after { content: " −"; }
.pin-panel { display: grid; gap: 10px; }
.pin-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pin-map { height: 240px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--surface-alt); z-index: var(--z-decoration); }
.sin-zonas .co-step:not(:first-child), .sin-zonas .local-confirm, .sin-zonas > .co-note { display: none; }
.drawer-footer { padding: var(--s-4) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.summary-lines { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
.summary-line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--text-secondary); }
.summary-line.total { padding-top: var(--s-2); border-top: 1px solid var(--line); color: var(--text); font: 700 1.6rem/1 var(--font-display); }
.drawer-footer .btn-wa-main { min-height: 48px; }
.fly-particle { position: fixed; z-index: var(--z-toast); width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--photo-plane); color: var(--on-photo); font-weight: 800; font-size: .85rem; pointer-events: none; box-shadow: var(--shadow-float); border: 2px solid var(--action); }
.fly-particle img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 420px) { .cart-item-row { grid-template-columns: 56px minmax(0, 1fr); } .cart-item-photo { width: 56px; height: 68px; } }

/* ---------- Pantalla posterior al pedido ---------- */
.order-modal { position: fixed; inset: 0; z-index: var(--z-dialog); background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; }
.order-sheet { position: relative; width: 100%; max-width: 540px; max-height: 100dvh; overflow-y: auto; padding: var(--s-5) var(--s-5) var(--s-6); background: var(--surface); color: var(--text); border-radius: var(--r-4) var(--r-4) 0 0; }
@media (min-width: 640px) { .order-modal { align-items: center; padding: var(--s-4); } .order-sheet { border-radius: var(--r-4); } }
.order-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-alt); font-weight: 800; color: var(--text); }
.oc-head { display: grid; gap: 6px; justify-items: center; text-align: center; margin-bottom: var(--s-4); }
.oc-head h2 { font: 700 2.2rem/1 var(--font-display); }
.oc-head p { font-size: .92rem; color: var(--text-secondary); }
.oc-check { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--success-soft); color: var(--success); font-size: 1.7rem; font-weight: 800; }
.oc-code { display: grid; gap: 10px; justify-items: center; text-align: center; padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--r-3); background: var(--canvas); margin-bottom: var(--s-3); }
.oc-code-label { font-size: .8rem; font-weight: 700; color: var(--text-secondary); }
.oc-code-value { font: 700 clamp(1.6rem, 8vw, 2.2rem)/1 var(--font-display); color: var(--action); white-space: nowrap; }
.oc-code-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }
.oc-note { font-size: .85rem; color: var(--text-secondary); line-height: 1.45; }
.oc-note a { color: var(--action); font-weight: 700; }
.oc-section { display: grid; gap: 10px; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.oc-section h3 { font: 700 1.5rem/1 var(--font-display); }
.oc-datos { display: grid; gap: var(--s-2); }
.oc-datos div { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: var(--s-2) 10px; background: var(--canvas); border-radius: var(--r-2); }
.oc-datos dt { font-size: .8rem; color: var(--text-secondary); flex: none; }
.oc-datos dd { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; min-width: 0; overflow-wrap: anywhere; text-align: right; justify-content: flex-end; }
.oc-cash { display: grid; gap: var(--s-2); }
.oc-cash label { font-size: .88rem; font-weight: 700; }
.oc-cash-row { display: flex; gap: var(--s-2); }
.oc-cash-row input { flex: 1; min-width: 0; }
.oc-steps { padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--text-secondary); list-style: decimal; }
.oc-links { display: grid; gap: 10px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.oc-links a.btn-primary-block { text-decoration: none; }

/* ---------- Movimiento ---------- */
.js .escena-copy > * { opacity: 0; animation: escena-failsafe .01s 1.6s forwards; }
@keyframes escena-failsafe { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .escena-copy > * { opacity: 1; animation: none; }
  .boton:active, .btn-add-unit:active, .qty-stepper-inline button:active, .mobile-cart-bar:active, .btn-ghost:active, .btn-copy:active, .btn-wa:active, .btn-primary-block:active:not(:disabled), .sx-wa-float:hover { transform: none; }
}

@media print { .escena, .info-franja, .search-toolbar, .mobile-cart-bar, .cart-drawer { display: none; } }

.cms-destacados.is-filtered { display: none; }

.combos-page { margin-block: var(--s-6) var(--s-8); }
.combos-page > .sx-meta { margin: var(--s-2) 0 var(--s-5); }
