/* ---------- Sección 2 · Displays al mostrador ---------- */
.mostrador {
  --pad: clamp(25px, calc(25px + 55 * ((min(100vw, 177.7777778vh) - 375px) / 1425)), 80px);
  --tam: clamp(32px, calc(32px + 38 * ((min(100vw, 177.7777778vh) - 375px) / 1425)), 70px);
  --ancho: min(1400px, calc(100vw - 2 * var(--pad)));
  /* alto de los displays sobre el mostrador */
  --alto: min(calc(var(--ancho) * .235), 46svh);
  position: relative;
  background: var(--fondo);
  touch-action: pan-y;
}

.mostrador__frase-area,
.mostrador__mesa-area {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
}

.mostrador__frase {
  margin: 0;
  max-width: 21em;
  font-family: var(--titulo);
  font-weight: 300;
  font-size: var(--tam);
  line-height: 1.22;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--texto);
  text-wrap: balance;
}

/* Huecos de la frase: mismo formato que cada objeto (ancho/alto reales) */
.m-ph {
  display: inline-block;
  height: 1.15em;
  width: calc(1.15em * .7508);
  vertical-align: -.24em;
  margin: 0 .06em;
}
.m-ph[data-item="4"], .m-ph[data-item="5"] { width: calc(1.15em * .494); }

.m-nw { white-space: nowrap; }

/* "Mirá nuestros clientes": cierre de la frase, lleva a los trabajos */
.mostrador__clientes {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .14em;
  text-decoration-color: var(--subrayado);
  transition: text-decoration-color .3s ease;
}
.mostrador__clientes:hover { text-decoration-color: var(--texto); }
.mostrador__clientes:focus-visible { outline: 2px solid var(--texto); outline-offset: 4px; border-radius: 4px; }

/* Botón píldora blanco de la marca */
.boton-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  border-radius: 999px;
  background: var(--texto); color: var(--fondo);
  font: 600 15px/1 var(--base);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.boton-pill:hover { background: var(--boton-hover); transform: translateY(-1px); }
.boton-pill:focus-visible { outline: 2px solid var(--texto); outline-offset: 4px; }
.mostrador__pedir { margin-top: clamp(22px, 4svh, 44px); position: relative; z-index: 2; }

/* Mostrador */
.mostrador__mesa {
  position: relative;
  width: var(--ancho);
}
.mostrador__fila {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 4%;
}
.m-slot {
  position: relative;
  z-index: 1;
  margin: 0;
  height: var(--alto);
  aspect-ratio: .7508;
}
.m-slot--cel { height: calc(var(--alto) * .86); aspect-ratio: .494; }

.m-media {
  position: absolute;
  inset: 0;
  transform-origin: center;
  will-change: transform;
}
.m-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.m-media img.m-rota { visibility: hidden; }

/* Reflejo: copia decorativa, quieta en el slot, aparece cuando el objeto aterriza */
.m-reflejo {
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(-1);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 38%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 38%);
}
.m-reflejo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }

/* Canto de la mesada + superficie */
.mostrador__canto {
  position: relative;
  height: clamp(70px, calc(var(--alto) * .42), 150px);
  margin: 0 calc(-1 * min(var(--pad), 4vw));
  background: linear-gradient(180deg, #EFEFEF 0, #F6F6F6 55%, var(--fondo) 100%);
  border-radius: 2px 2px 0 0;
}
.mostrador__canto::before { /* el canto iluminado */
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(0,0,0,.08) 12%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.08) 88%, transparent 100%);
}
.mostrador__canto::after { /* se funde con el fondo a los costados */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--fondo) 0, transparent 9%, transparent 91%, var(--fondo) 100%);
}

.mostrador__firma {
  margin: clamp(18px, 3svh, 36px) 0 0;
  font: 400 11px/1.9 var(--base);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--apagado);
}
.mostrador__firma span { margin: 0 .5em; }
.mostrador__firma b { font-weight: 400; color: var(--texto-2); letter-spacing: .35em; }

.mostrador__controles {
  position: absolute; right: max(16px, 2vw); bottom: 22px;
  display: flex; gap: 8px; z-index: 2;
}
.mostrador__controles[hidden] { display: none; }
.mostrador__controles button {
  font: 400 10px/1 var(--base);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--apagado); background: transparent;
  border: 1px solid var(--borde); border-radius: 999px;
  padding: 8px 12px; cursor: pointer;
}
.mostrador__controles button:hover { color: var(--texto); border-color: var(--borde-hover); }
.mostrador__controles button:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; color: var(--texto); }

/* Celular (< 768 px): sin 100svh, con el aire del original */
@media (max-width: 767px) {
  .mostrador__frase-area, .mostrador__mesa-area { min-height: 0; padding-top: 185px; padding-bottom: 150px; }
  .mostrador__frase-area { padding-top: 120px; }
  .m-ph { height: 1em; width: calc(1em * .7508); vertical-align: -.2em; }
  .m-ph[data-item="4"], .m-ph[data-item="5"] { width: calc(1em * .494); }
  .mostrador__fila { padding: 0 1%; }
  .mostrador { --alto: calc(var(--ancho) * .25); }
  .mostrador__firma { font-size: 10px; letter-spacing: .22em; max-width: 30ch; }
  .mostrador__firma span { display: none; }
  .mostrador__firma b { display: block; margin-top: 6px; }
  .mostrador__controles { right: 12px; bottom: 14px; gap: 6px; }
  .mostrador__controles button { font-size: 9px; letter-spacing: .14em; padding: 6px 9px; }

  /* Celu: dos estantes, 3 displays arriba y 2 celulares abajo */
  .mostrador { --alto: calc(var(--ancho) * .4); }
  .mostrador .mostrador__mesa { display: grid; grid-template-columns: repeat(6, 1fr); }
  .mostrador .mostrador__fila { display: contents; }
  .mostrador .m-slot { grid-row: 1; grid-column: span 2; justify-self: center; align-self: end; }
  .mostrador .m-slot--cel { grid-row: 3; grid-column: span 3; height: calc(var(--alto) * .95); }
  .mostrador .mostrador__canto { grid-row: 2; grid-column: 1 / -1; height: 56px; margin-bottom: 26px; }
  .mostrador .mostrador__canto--2 { display: block; grid-row: 4; margin-bottom: 0; }
}
.mostrador__canto--2 { display: none; }
