.nav-compra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--tinta);
  flex-shrink: 0;
  margin-left: 22px;
}
.nav-compra b {
  font-weight: 500;
  min-width: 1.2em;
  text-align: center;
  color: var(--olivo);
}
.tienda-intro {
  padding: 36px 0 8px;
}
.tienda-intro h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.tienda-intro .hero-kicker { margin-bottom: 12px; }
.tienda-intro .hero-lead { margin-top: 12px; max-width: 46ch; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.destacado {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  height: min(72vh, 540px);
  min-height: 360px;
  background: var(--papel-2);
  border: 1px solid var(--linea);
  margin: 18px 0 8px;
  overflow: hidden;
}
.destacado-foto {
  display: block;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--papel-2);
}
.destacado-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.destacado-txt { padding: 36px 40px; align-self: center; }
.destacado h2 { margin: 0; font-size: 32px; letter-spacing: -0.02em; }
.destacado p { margin: 10px 0 0; color: var(--suave); max-width: 42ch; }
.destacado .precio-grande {
  margin: 16px 0 0;
  font-size: 28px;
  color: var(--olivo);
}
.destacado .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 18px 0 6px;
}
.filtros button {
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--suave);
}
.filtros button.es-si {
  color: var(--tinta);
  box-shadow: inset 0 -1px 0 var(--tinta);
}

.mercado { padding: 0 0 64px; }
.linea-prod {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.5fr) 72px 72px 118px 108px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
}
.linea-prod img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.linea-prod .nom { font-size: 20px; font-weight: 600; line-height: 1.15; }
.linea-prod .txt { margin-top: 4px; font-size: 14px; color: var(--suave); }
.linea-prod .unidad {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--suave);
}
.linea-prod .precio {
  font-size: 22px;
  color: var(--olivo);
  font-variant-numeric: tabular-nums;
}
.paso-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--linea);
}
.paso-qty button {
  width: 36px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--olivo);
  font-size: 18px;
}
.paso-qty span {
  min-width: 1.6em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.boton.hueco {
  background: transparent;
  color: var(--olivo);
  box-shadow: inset 0 0 0 1px var(--olivo);
}
.boton.hueco:hover { background: var(--olivo); color: #f2ead8; }
.boton.chico { min-height: 40px; padding: 8px 14px; }
.boton:disabled,
.boton:disabled:hover {
  background: transparent;
  color: var(--suave);
  box-shadow: inset 0 0 0 1px var(--linea);
  cursor: not-allowed;
}

.aviso-tienda {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--suave);
  margin: 12px 0 0;
}
.aviso-tienda.mal { color: #7a2e1b; }
.aviso-tienda.ok { color: var(--olivo); }

.plaza-off {
  margin: 0 0 8px;
  padding: 14px 0 4px;
  border-bottom: 1px solid var(--linea);
}
.plaza-off[hidden] { display: none; }
.plaza-off h2 { margin: 0 0 6px; font-size: 26px; }
.plaza-off p { margin: 0; color: var(--suave); max-width: 52ch; }

.velo {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 35, 24, 0.28);
}
.velo[hidden] { display: none !important; }
.hoja-pedido {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--papel);
  border-left: 1px solid var(--linea);
  overflow: auto;
  padding: 28px 28px 40px;
}
.hoja-pedido h2 { margin: 0; font-size: 28px; }
.renglon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--linea);
}
.renglon a:hover { color: var(--olivo); }
.renglon button.x {
  background: none;
  border: 0;
  color: var(--suave);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
}
.total-pedido {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 8px;
  font-size: 22px;
}
.campo-tienda { margin-top: 14px; }
.campo-tienda label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olivo);
  margin-bottom: 4px;
}
.campo-tienda input,
.campo-tienda textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linea);
  padding: 8px 0;
  font-size: 17px;
  outline: none;
}
.campo-tienda textarea { min-height: 64px; resize: vertical; }
.elige-tienda { display: flex; gap: 16px; margin-top: 6px; }
.elige-tienda button {
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--suave);
}
.elige-tienda button.es-si {
  color: var(--olivo);
  box-shadow: inset 0 -1px 0 var(--olivo);
}
.caja-entrega { margin-top: 12px; }
.caja-entrega[hidden] { display: none !important; }
.caja-entrega label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--suave);
  margin: 12px 0 4px;
}
.caja-entrega .envio-nota { color: var(--tinta); line-height: 1.45; }
.mapa-entrega {
  height: 210px;
  margin-top: 10px;
  border: 1px solid var(--linea);
  background: #efe7d6;
}
.fila-maps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.fila-maps button {
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--olivo);
  box-shadow: inset 0 -1px 0 var(--olivo);
}
.cerrar-hoja {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--suave);
}
.vacio { color: var(--suave); padding: 24px 0; }

.cuenta-malla {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--suave);
}
.tienda-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--linea);
}
.buscar {
  width: min(280px, 100%);
}
.buscar input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linea);
  padding: 8px 0;
  font-size: 16px;
  outline: none;
}

.malla {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  padding: 28px 0 8px;
}
.carta {
  min-width: 0;
}
.carta-foto {
  display: block;
  background: var(--papel-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.carta-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.carta-foto.lamina img {
  object-fit: contain;
  padding: 18%;
}
.carta-foto .ver {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2ead8;
  background: rgba(43, 35, 24, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.carta-foto:hover .ver { opacity: 1; }
.carta-foto img { transition: transform 0.45s ease; }
.carta-foto:hover img { transform: scale(1.03); }
.carta-meta { padding: 12px 0 0; }
.carta-meta h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}
.carta-meta h3 a:hover { color: var(--olivo); }
.carta-meta .hero-kicker { margin: 0 0 6px; }
.carta-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.carta .precio { font-size: 20px; color: var(--olivo); }

.servicios {
  border-top: 1px solid var(--linea);
  margin-top: 12px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.servicios article {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--linea);
}
.servicios article:last-child { border-right: 0; padding-right: 0; }
.servicios article:not(:first-child) { padding-left: 28px; }
.servicios h3 { margin: 0 0 8px; font-size: 22px; }
.servicios p { margin: 0; color: var(--suave); font-size: 15px; }

.miga {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--suave);
  padding: 0 0 18px;
}
.miga a { color: var(--suave); }
.miga a:hover { color: var(--tinta); }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  min-height: calc(100vh - 78px);
  border-top: 1px solid var(--linea);
}
.pdp-galeria {
  position: sticky;
  top: 78px;
  background: var(--papel-2);
  height: calc(100vh - 78px);
  min-height: calc(100vh - 78px);
  overflow: hidden;
  border-right: 1px solid var(--linea);
}
.pdp-foto {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--papel-2);
}
.pdp-foto img,
.pdp-thumbs img,
.carta-foto img,
.destacado-foto img {
  max-width: none;
  max-height: none;
}
.pdp-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.pdp-foto.lamina img {
  object-fit: contain;
  object-position: center;
  padding: 12%;
  width: 100%;
  height: 100%;
}
.pdp-thumbs {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}
.pdp-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--papel);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.pdp-thumbs button.es-si { border-color: var(--olivo); }
.pdp-thumbs img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.pdp-info {
  padding: 28px 48px 80px;
  align-self: start;
}
.pdp-info h1 {
  margin: 8px 0 0;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.pdp-precio {
  margin: 16px 0 0;
  font-size: 28px;
  color: var(--olivo);
}
.pdp-lead {
  margin: 18px 0 0;
  color: var(--suave);
  font-size: 17px;
  line-height: 1.5;
  max-width: 38ch;
}
.pdp-acciones {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pdp-acciones .boton { min-width: 180px; }
.datos-rapidos {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--linea);
  font-size: 15px;
  color: var(--suave);
}
.datos-rapidos p { margin: 6px 0; }
.acordeon {
  margin-top: 28px;
  border-top: 1px solid var(--linea);
}
.acordeon details {
  border-bottom: 1px solid var(--linea);
  padding: 14px 0;
}
.acordeon summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; color: var(--olivo); font-weight: 400; }
.acordeon details[open] summary::after { content: "–"; }
.acordeon p {
  margin: 10px 0 0;
  color: var(--suave);
  max-width: 42ch;
}

.pdp[hidden],
#no-hay[hidden],
.pdp-fijo[hidden] { display: none !important; }

.pdp-fijo {
  display: none;
}
.pdp-fijo .unidad-fija {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--suave);
}
.pdp-fijo strong {
  font-size: 22px;
  color: var(--olivo);
}

.agotado {
  color: var(--suave);
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

@media (hover: none) {
  .carta-foto:hover img { transform: none; }
}

/* Tablet */
@media (max-width: 1099px) and (min-width: 760px) {
  .nav-compra { order: 2; margin-left: auto; margin-right: 10px; }
  .banda-header .hamb { order: 3; margin-left: 0; }
  .banda-header .menu { order: 4; }
  .tienda-intro { padding: 28px 0 8px; }
  .tienda-intro h1 { font-size: 36px; }
  .destacado {
    grid-template-columns: 1.15fr 0.85fr;
    height: 420px;
    min-height: 0;
  }
  .destacado-txt { padding: 28px 32px; }
  .destacado h2 { font-size: 30px; }
  .malla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .carta-meta h3 { font-size: 20px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios article { border-right: 0; border-bottom: 1px solid var(--linea); padding: 24px 0; }
  .servicios article:not(:first-child) { padding-left: 0; }
  .pdp {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    min-height: calc(100vh - 64px);
  }
  .pdp-galeria {
    top: 64px;
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
  }
  .pdp-info { padding: 28px 32px 56px; }
  .pdp-info h1 { font-size: 36px; }
  .paso-qty button { width: 44px; height: 44px; }
  .pdp-thumbs button,
  .pdp-thumbs img { width: 56px; height: 56px; }
  .relacionados { padding: 32px 0 56px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .malla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Teléfono */
@media (max-width: 759px) {
  .nav-compra { order: 2; margin-left: auto; margin-right: 4px; font-size: 12px; }
  .banda-header .hamb { order: 3; margin-left: 0; }
  .banda-header .menu { order: 4; }
  .nav-compra-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .tienda-intro { padding: 20px 0 2px; }
  .tienda-intro h1 { font-size: 30px; }
  .tienda-intro .hero-lead { font-size: 16px; }
  .destacado {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    width: 100vw;
    margin: 10px calc(50% - 50vw) 0;
    border-left: 0;
    border-right: 0;
  }
  .destacado-foto {
    height: 0;
    width: 100%;
    padding-bottom: 125%;
  }
  .destacado-txt { padding: 20px 16px 24px; }
  .destacado h2 { font-size: 26px; }
  .destacado .acciones { gap: 10px; }
  .destacado .acciones .boton { min-height: 44px; flex: 1; }
  .tienda-bar { flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 0 12px; }
  .buscar { width: 100%; }
  .filtros {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 18px;
    padding: 10px 0 8px;
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex-shrink: 0; min-height: 44px; }
  .malla { grid-template-columns: 1fr 1fr; gap: 18px 10px; padding: 18px 0 8px; }
  .carta .boton.chico { display: none; }
  .carta-meta { padding: 10px 0 0; }
  .carta-meta h3 { font-size: 16px; }
  .carta .precio { font-size: 16px; }
  .carta-pie { margin-top: 6px; }
  .servicios { margin-top: 8px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios article { border-right: 0; border-bottom: 1px solid var(--linea); padding: 22px 0; }
  .servicios article:not(:first-child) { padding-left: 0; }
  .pdp { grid-template-columns: 1fr; min-height: 0; }
  .pdp-galeria {
    border-right: 0;
    position: relative;
    top: auto;
    width: 100%;
    height: 0;
    min-height: 0;
    padding-bottom: 125%;
    overflow: hidden;
  }
  .pdp-foto { position: absolute; inset: 0; }
  .pdp-foto img,
  .pdp-foto.lamina img { width: 100%; height: 100%; padding: 0; }
  .pdp-foto.lamina img { padding: 10%; }
  .pdp-thumbs { left: 12px; bottom: 12px; }
  .pdp-thumbs button,
  .pdp-thumbs img { width: 48px; height: 48px; }
  .pdp-info { padding: 20px 16px 112px; position: static; }
  .pdp-info h1 { font-size: 30px; }
  .pdp-lead { font-size: 16px; }
  .pdp-acciones { margin-top: 20px; }
  .pdp-acciones .boton { display: none; }
  .paso-qty button { width: 44px; height: 44px; }
  .acordeon summary { min-height: 44px; align-items: center; }
  .pdp-pagina .wa-flotante { display: none; }
  .pdp-fijo {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--papel);
    border-top: 1px solid var(--linea);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .pdp-fijo .boton { min-width: 128px; min-height: 44px; }
  .hoja-pedido { width: 100%; padding: 24px 20px 36px; }
  .relacionados { padding: 24px 0 96px; }
  .elige-tienda { flex-wrap: wrap; }
  .elige-tienda button { min-height: 44px; }
}
