:root {
  --tinta: #2b2a28;
  --suave: #5f5b55;
  --tenue: #8a857d;
  --marca: #A30018;
  --marca-oscura: #7d0013;
  --fondo: #efede8;
  --tarjeta: #fff;
  --linea: rgb(0 0 0 / 0.12);
  --error: #b3261e;
  --toque: 44px;
  --panel: 420px;
  --transicion-visor: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --degradado-visor: radial-gradient(ellipse at 50% 40%, #f6f5f2 0%, #e7e5e0 70%, #dcd9d3 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--fondo);
  font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--tinta);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
}

/*
 * En el móvil el panel es una hoja de alto fijo que se desliza sobre el visor con transform:
 * desplazarlo nunca cambia el tamaño de su propio recorrido ni el del lienzo.
 */
#tienda {
  --alto-grande: calc(0.48 * var(--alto-app, 100dvh));
  --alto-compacto: calc(0.3 * var(--alto-app, 100dvh));
  --desfase: calc(var(--alto-grande) - var(--alto-compacto));
  position: fixed;
  inset: 0 0 auto;
  height: var(--alto-app, 100dvh);
  overflow: hidden;
  background: var(--degradado-visor) top / 100% var(--alto-grande) no-repeat, #dcd9d3;
}

#tienda.compacto {
  --desfase: 0px;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#escenario {
  position: absolute;
  inset: 0 0 auto;
  height: var(--alto-grande);
  container-type: size;
  transition: height var(--transicion-visor);
}

.compacto #escenario {
  height: var(--alto-compacto);
}

#lienzo,
#poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* siempre del alto del visor grande: lo que tapa la hoja en compacto lo compensa la proyección */
#lienzo {
  bottom: auto;
  height: var(--alto-grande);
  display: block;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

#poster {
  object-fit: contain;
  object-position: 50% 42%;
  padding: 62px 0 110px;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

#escenario.listo #lienzo {
  opacity: 1;
}

#escenario.listo #poster {
  opacity: 0;
}

#carga {
  position: absolute;
  left: 50%;
  top: 44%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}

#carga.fuera {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.boton-marca {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.18));
  animation: aparecer 0.35s ease-out both;
}

.puntada path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: coser-ida 1.8s ease-in-out infinite;
}

.puntada path + path {
  animation-name: coser-vuelta;
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.85); }
}

@keyframes coser-ida {
  0% { stroke-dashoffset: 1; opacity: 1; }
  30%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes coser-vuelta {
  0%, 30% { stroke-dashoffset: 1; opacity: 1; }
  60%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.progreso {
  min-height: 16px;
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--suave);
}

#estado {
  position: absolute;
  top: calc(62px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  font-size: 13px;
  color: var(--suave);
  white-space: nowrap;
}

#estado[hidden] {
  display: none;
}

#vistas {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 16px rgb(0 0 0 / 0.06);
  transition: opacity 0.15s ease-out, visibility 0s linear 0s;
}

#vistas:empty {
  display: none;
}

.compacto #vistas {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0s linear 0.15s;
}

#opciones-producto {
  position: absolute;
  z-index: 1;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 16px rgb(0 0 0 / 0.06);
}

/* en pantallas táctiles el :hover se queda pegado tras pulsar y la opción soltada parecía elegida */
#opciones-producto .opcion:hover:not([aria-pressed="true"]) {
  background: transparent;
}

@media (hover: hover) {
  #opciones-producto .opcion:hover:not([aria-pressed="true"]) {
    background: rgb(0 0 0 / 0.05);
  }
}

#opciones-producto .opcion[aria-pressed="true"] {
  background: var(--tinta);
  color: #fff;
  box-shadow: none;
}

#color-visor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}

#color-visor[hidden] {
  display: none;
}

/* hasta que llega la prenda en 3D el póster no se tiñe: un cambio de color no se vería */
#escenario:not(.listo, .sin-3d) #color-visor {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.flecha {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--toque);
  height: var(--toque);
  margin-top: calc(var(--toque) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--tinta);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

#color-anterior {
  left: calc(4px + env(safe-area-inset-left));
}

#color-siguiente {
  right: calc(4px + env(safe-area-inset-right));
}

.flecha::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 2px 8px rgb(0 0 0 / 0.06);
  transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}

@media (hover: hover) {
  .flecha:hover::before {
    background: rgb(255 255 255 / 0.92);
  }
}

.flecha:active::before {
  transform: scale(0.9);
}

.flecha svg {
  position: relative;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* encima de la barra de vistas; cuando esta se desvanece al compactar el visor, baja a ocupar su sitio */
#indicador-color {
  position: absolute;
  left: 50%;
  bottom: 62px;
  display: grid;
  justify-items: center;
  gap: 2px;
  transform: translate(-50%, 0);
  transition: transform var(--transicion-visor);
}

.compacto #indicador-color {
  transform: translate(-50%, 52px);
}

#nombre-color {
  padding: 0 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--tinta);
  white-space: nowrap;
  transition: opacity 0.25s ease-out;
}

#nombre-color:empty {
  display: none;
}

#muestras-color {
  display: flex;
  padding: 0 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 2px 8px rgb(0 0 0 / 0.05);
  pointer-events: auto;
  transition: opacity 0.25s ease-out, visibility 0s linear 0s;
}

.punto {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.punto::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muestra);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
  transition: box-shadow 0.15s ease-out;
}

.punto[aria-checked="true"]::before {
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18), 0 0 0 2px #fff, 0 0 0 3.5px var(--tinta);
}

#muestras-color .punto:focus-visible {
  outline-offset: -1px;
}

/* con el visor muy bajo (apaisado, teclado abierto) se cede sitio a la prenda; las flechas siguen cambiando el color */
#escenario.gesto :is(#opciones-producto, #vistas, #color-visor *) {
  pointer-events: none;
}

@container (max-height: 200px) {
  #nombre-color {
    opacity: 0;
  }
}

@container (max-height: 150px) {
  #muestras-color {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0s linear 0.25s;
  }
}

#vistas button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
}

#vistas button[aria-pressed="true"] {
  background: var(--tinta);
  color: #fff;
}

#pasos {
  position: absolute;
  inset: var(--alto-compacto) 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--tarjeta);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgb(0 0 0 / 0.06);
  transform: translateY(var(--desfase));
  transition: transform var(--transicion-visor);
}

/* el idioma comparte fila con el rótulo «Texto» para no gastar una fila del panel solo en él */
#cabecera {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 1;
}

#pasos:has(#sin-motor:not([hidden])) #cabecera {
  position: static;
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 10px;
}

#paso-texto legend {
  line-height: 44px;
}

.segmentado {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f0eee9;
}

.segmentado:empty {
  visibility: hidden;
}

.segmentado .opcion {
  min-height: 38px;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}

.segmentado .opcion:hover:not([aria-pressed="true"]) {
  background: rgb(255 255 255 / 0.5);
}

.segmentado .opcion[aria-pressed="true"] {
  background: #fff;
  color: var(--tinta);
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 1px 6px rgb(0 0 0 / 0.06);
}

#idiomas .opcion {
  padding: 0 11px;
  font-size: 13px;
}

.paso {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid var(--linea);
  min-width: 0;
}

#form-diseno > .paso:first-child {
  border-top: 0;
}

.paso legend,
#a-fondo summary {
  float: left;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-weight: 650;
  font-size: 16px;
}

.paso legend + * {
  clear: both;
}

.elegido {
  font-weight: 400;
  color: var(--suave);
}

.elegido:not(:empty)::before {
  content: '· ';
}

.subpaso {
  margin-top: 14px;
}

.subpaso[hidden] {
  display: none;
}

.subpaso h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--suave);
}

.nota {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--tenue);
}

.nota.mal {
  color: var(--error);
}

.opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opcion {
  min-height: var(--toque);
  min-width: var(--toque);
  padding: 0 16px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.opcion:hover:not(:disabled, [aria-pressed="true"]) {
  background: #f5f3ef;
}

.opcion[aria-pressed="true"] {
  border-color: var(--tinta);
  background: var(--tinta);
  color: #fff;
}

.opcion:disabled {
  color: #b9b4ab;
  background: #f7f6f3;
  border-style: dashed;
  cursor: not-allowed;
}

.muestras {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 -4px;
}

.muestra {
  position: relative;
  width: var(--toque);
  height: var(--toque);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.muestra::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--muestra);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16);
}

.muestra[aria-pressed="true"]::before {
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16), 0 0 0 2px #fff, 0 0 0 4px var(--tinta);
}

.linea {
  position: relative;
  display: block;
  margin-bottom: 8px;
}

.linea[hidden] {
  display: none;
}

.linea input {
  width: 100%;
  min-height: 48px;
  padding: 0 60px 0 14px;
  border: 1px solid rgb(0 0 0 / 0.2);
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  color: var(--tinta);
  background: #fff;
}

.linea input:focus {
  outline: 2px solid var(--marca);
  outline-offset: 1px;
  border-color: transparent;
}

.cuenta {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--tenue);
  pointer-events: none;
}

.cuenta.mal {
  color: var(--error);
}

.enlace {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--marca);
  cursor: pointer;
}

.enlace[hidden] {
  display: none;
}

#paso-texto .error {
  margin: 6px 0 0;
}

.zonas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zona {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.zona[aria-pressed="true"] {
  border-color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--tinta);
  background: #f7f5f1;
}

.zona:disabled {
  cursor: not-allowed;
  background: #f7f6f3;
  border-style: dashed;
  color: #aaa49b;
}

.pictograma {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pictograma .zona-marcada {
  fill: var(--marca);
  stroke: none;
}

.zona:disabled .zona-marcada {
  fill: #cfc9c0;
}

.nombre-zona {
  align-self: end;
  font-size: 14px;
  line-height: 1.25;
}

.precio-zona {
  align-self: start;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--suave);
}

.zona:disabled .precio-zona {
  color: inherit;
}

.tamanos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.opcion.tamano {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 56px;
  padding: 6px 8px;
  line-height: 1.2;
}

.tamano small {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.descripcion {
  margin: 0 0 4px;
}

/* la tira llega a los bordes del panel: el cilindro se pierde por los lados en vez de cortarse a media tarjeta */
.tambor {
  position: relative;
  margin: 0 -18px;
}

.tira {
  --tarjeta-fuente: 132px;
  position: relative;
  display: flex;
  gap: 6px;
  padding: 6px calc(50% - var(--tarjeta-fuente) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.tira::-webkit-scrollbar {
  display: none;
}

.fuente {
  flex: none;
  width: var(--tarjeta-fuente);
  height: 90px;
  scroll-snap-align: center;
  border-radius: 12px;
  pointer-events: none;
}

.cara {
  display: grid;
  grid-template-rows: 40px auto;
  align-content: center;
  justify-items: center;
  gap: 2px;
  height: 100%;
  padding: 6px 8px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}

.fuente.elegida .cara {
  border-color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--tinta);
  background: #f7f5f1;
}

.fuente:focus-visible {
  outline: none;
}

.fuente:focus-visible .cara {
  outline: 2px solid var(--marca);
  outline-offset: 2px;
}

.fuente.apagada {
  scroll-snap-align: none;
}

.fuente.apagada .cara {
  cursor: not-allowed;
  background: #f7f6f3;
  border-style: dashed;
}

.fuente.apagada .muestra-fuente {
  opacity: 0.3;
}

.fuente.apagada .nombre-fuente {
  color: var(--tenue);
}

.muestra-fuente {
  display: block;
  max-width: 100%;
  height: 40px;
  align-self: center;
  object-fit: contain;
}

.muestra-fuente.vacia {
  width: 70%;
  height: 12px;
  border-radius: 6px;
  background: #eeece8;
}

.nombre-fuente,
.motivo {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nombre-fuente {
  font-size: 13px;
}

.motivo {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--error);
}

.motivo:empty {
  display: none;
}

/* con una sola fuente posible no hay a dónde girar */
.tambor .flecha:disabled {
  opacity: 0.4;
  cursor: default;
}

#fuente-anterior {
  left: 6px;
}

#fuente-siguiente {
  right: 6px;
}

.familias {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 -4px 6px;
}

.familias[hidden] {
  display: none;
}

.familia {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-height: 58px;
  padding: 5px 0 2px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  color: var(--suave);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.familia::before {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--muestra);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16);
}

.familia[aria-pressed="true"] {
  color: var(--tinta);
  font-weight: 600;
}

.familia[aria-pressed="true"]::before {
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16), 0 0 0 2px #fff, 0 0 0 4px var(--tinta);
}

.nombre-familia {
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.familias:not([hidden]) + .muestras {
  margin: 0;
  padding: 4px;
  border-radius: 12px;
  background: #f7f6f3;
}

#a-fondo summary {
  float: none;
  margin: 0;
  min-height: var(--toque);
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--tinta);
}

#a-fondo[open] summary {
  margin-bottom: 4px;
}

#a-fondo summary {
  list-style: none;
}

#a-fondo summary::-webkit-details-marker {
  display: none;
}

#a-fondo summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

#a-fondo[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
  #a-fondo summary::after {
    transition: none;
  }
}

[data-motor][inert] {
  opacity: 0.45;
}

.alerta {
  margin: 0 18px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: #8c1d18;
}

.alerta p {
  margin: 0 0 10px;
}

.alerta[hidden] {
  display: none;
}

/* con el visor grande la hoja asoma por debajo de la pantalla: el pie sube lo mismo para seguir a la vista */
#pedido {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 10px 18px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  transform: translateY(calc(-1 * var(--desfase)));
  transition: transform var(--transicion-visor);
}

.fila-pedido {
  display: flex;
  align-items: center;
  gap: 10px;
}

.importe {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  line-height: 1.25;
}

.importe p {
  margin: 0;
}

#precio {
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#envio {
  font-size: 13px;
  white-space: nowrap;
  color: var(--suave);
}

.teclado #pedido {
  display: none;
}

.ver-error {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.enlace-whatsapp {
  color: var(--marca);
  font-weight: 600;
}

#pedir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--marca);
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
}

#pedir:hover:not(:disabled) {
  background: var(--marca-oscura);
}

#pedir:disabled {
  background: #d9d5ce;
  color: #8a857d;
  cursor: not-allowed;
}

#pedir .giro {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

#pedir.ocupado,
#pedir.ocupado:disabled {
  background: #6d5a5c;
  color: #fff;
  cursor: progress;
}

#pedir.ocupado .giro {
  display: block;
}

#pedir.ocupado svg {
  display: none;
}

@keyframes girar {
  to { transform: rotate(1turn); }
}

.condicion:empty {
  display: none;
}

.condicion {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tenue);
}

.condicion.mal {
  color: var(--error);
}

#cierre {
  padding: 4px 18px 16px;
}

#cierre .nota {
  margin-top: 0;
}

#cierre .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  font-size: 13px;
}

#cierre .legal a {
  color: var(--suave);
}

.error {
  margin: 0;
  font-size: 14px;
  color: var(--error);
}

.paso .error,
#cierre .error {
  margin: 10px 0;
}

.accion:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--marca);
  outline-offset: 2px;
}

#tienda.instantaneo :is(#escenario, #pasos, #pedido, #vistas, #indicador-color) {
  transition: none;
}

@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  #tienda {
    --alto-grande: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel);
    background: var(--fondo);
  }

  #escenario {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: var(--degradado-visor);
  }

  #pasos {
    position: relative;
    inset: auto;
    min-height: 0;
    transform: none;
    border-radius: 0;
    box-shadow: -6px 0 24px rgb(0 0 0 / 0.06);
  }

  #pedido {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lienzo,
  #poster,
  #carga,
  #tienda :is(#escenario, #pasos, #pedido, #vistas, #indicador-color) {
    transition: none;
  }

  .flecha:active::before {
    transform: none;
  }

  .boton-marca,
  .puntada path {
    animation: none;
    stroke-dashoffset: 0;
  }

  #pedir .giro {
    animation-duration: 2.4s;
  }
}
