* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #e8e8e8;
  color: #111;
}
a { color: inherit; }
.cabeza {
  position: relative;
  z-index: 20;
  background: #1b2838;
  color: #fff;
  max-width: 100%;
}
.franja-aviso {
  border: 12px solid transparent;
  background:
    linear-gradient(#f6c400, #f6c400) padding-box,
    repeating-linear-gradient(-45deg, #111 0 12px, #f6c400 12px 24px) border-box;
  color: #111;
}
.barra, .subbarra, .pie {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.barra {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 0.4rem;
}
.logo {
  display: flex;
  flex: none;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.logo img { height: 56px; width: auto; display: block; }
.aviso-envio {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  background: #111;
  color: #f6c400;
  border-radius: 999px;
  padding: 0.45rem 1.15rem 0.45rem 0.85rem;
  box-shadow: 0 0 0 3px #f6c400, 0 8px 18px rgba(0, 0, 0, 0.28);
  line-height: 1.1;
}
.aviso-envio svg { width: 34px; height: 34px; flex: none; }
.aviso-envio span { display: grid; text-align: left; }
.aviso-envio strong {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.aviso-envio small {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
.busca {
  flex: 1;
  display: flex;
  min-width: 0;
  position: relative;
}
.busca input {
  flex: 1;
  border: 0;
  border-radius: 6px 0 0 6px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.busca button, .boton, .cantidad button {
  border: 0;
  background: #e47911;
  color: #111;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.busca button { border-radius: 0 6px 6px 0; padding: 0 1rem; }
.sugerencias {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.sugerencias[hidden] { display: none; }
.sugerencias a,
.sugerencias p {
  display: block;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
}
.sugerencias a { display: grid; }
.sugerencias a small { color: #565959; font-size: 0.8rem; }
.sugerencias a:hover,
.sugerencias a.activa { background: #f3f3f3; }
.cuenta, .enlace-carrito {
  color: #111;
  text-decoration: none;
  font-size: 0.92rem;
}
body.con-tira {
  --tira: 140px;
  --alto-nav: 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tira);
}
body.con-tira > .cabeza {
  grid-column: 1 / -1;
}
body.con-tira > script { display: none; }
.tira-carrito {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 0;
  z-index: 15;
  width: var(--tira);
  height: 100vh;
  max-height: 100vh;
  align-self: start;
  overflow: auto;
  background: #fff;
  color: #111;
  border-left: 1px solid #d5d9d9;
  margin: 0;
  padding: 0.7rem 0.4rem;
  box-sizing: border-box;
}
body.con-tira:has(.cats-scroll.fija:not(.oculta)) > .tira-carrito {
  top: var(--alto-nav);
  height: calc(100vh - var(--alto-nav));
  max-height: calc(100vh - var(--alto-nav));
}
body.con-tira > main {
  grid-column: 1;
  grid-row: 2;
  width: auto;
  max-width: none;
  margin: 0;
}
body.con-tira > .pie {
  grid-column: 1;
  grid-row: 3;
  width: min(1180px, calc(100% - 2rem));
}
.panel-total { margin: 0; text-align: center; font-size: 0.78rem; }
.panel-total strong { display: block; margin-top: 0.15rem; font-size: 1rem; }
.ir-carrito {
  display: block;
  margin: 0.55rem 0 0;
  padding: 0.35rem 0.35rem;
  font-size: 0.75rem;
  border: 1px solid #d5d9d9;
  border-radius: 20px;
  background: #fff;
  color: #111;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 17, 17, 0.15);
}
.panel-quitado { margin: 0.9rem 0 0; line-height: 1.35; }
.panel-quitado strong { color: #007185; }
.panel-lineas { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.panel-linea { display: grid; justify-items: center; text-align: center; gap: 0.35rem; }
.panel-linea .foto { width: 72px; height: 72px; margin: 0; display: grid; place-items: center; }
.panel-linea img { max-width: 100%; max-height: 72px; object-fit: contain; }
.panel-linea .precio { margin: 0; font-size: 1.05rem; }
.paso-cantidad {
  display: inline-flex;
  align-items: center;
  border: 3px solid #f0c14b;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.paso-cantidad button,
.paso-cantidad span {
  border: 0;
  background: #fff;
  min-width: 2.1rem;
  height: 2rem;
  padding: 0 0.45rem;
  font: inherit;
  font-weight: 650;
}
.paso-cantidad button { cursor: pointer; color: #111; }
.paso-cantidad svg { width: 16px; height: 16px; display: block; }
.enlace-carrito { display: flex; align-items: flex-end; gap: 0.35rem; }
.icono-carrito { position: relative; width: 42px; height: 30px; color: #111; }
.icono-carrito svg { width: 42px; height: 30px; display: block; }
.burbuja {
  position: absolute;
  top: -8px;
  left: 16px;
  min-width: 1.1rem;
  color: #c2410c;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.subbarra {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #1a1a1a;
  font-weight: 650;
  font-size: 0.82rem;
  padding-bottom: 0.45rem;
}
.cats {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  background: #111;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 0.45rem calc((100% - min(1180px, calc(100% - 2rem))) / 2);
}
.lista-cats {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0.35rem;
  overflow: hidden;
  flex-wrap: nowrap;
}
.lista-cats a { flex: none; white-space: nowrap; }
.lista-cats:empty,
.lista-cats.vacia { display: none; flex: 0; }
.caja-cats {
  position: relative;
  flex: none;
  display: none;
}
.caja-cats.con-mas { display: block; }
.menu-cats {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: #f6c400;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.menu-cats svg { width: 10px; height: 7px; display: block; }
.caja-cats.abierta .menu-cats,
.caja-cats:hover .menu-cats { background: #f6c400; color: #111; }
.panel-cats {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 26;
  min-width: 220px;
  max-width: min(420px, 90vw);
  max-height: min(70vh, 28rem);
  overflow: auto;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem;
  background: #111;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  border-radius: 0 0 10px 10px;
}
.caja-cats.abierta .panel-cats,
.caja-cats:hover .panel-cats { display: flex; }
.panel-cats a {
  display: block;
  white-space: nowrap;
  border-radius: 8px;
}
.busca-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
  background: #fff;
  border-radius: 8px;
}
.busca-nav input { min-width: 0; width: 100%; min-height: 42px; border-radius: 8px 0 0 8px; background: #fff; }
.cats .busca button {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  background: #fff;
  color: #111;
  border-radius: 0 8px 8px 0;
  padding: 0;
}
.cats .busca button svg { width: 22px; height: 22px; display: block; }
.cats .enlace-carrito {
  flex: none;
  flex-shrink: 0;
  align-items: center;
  color: #f6c400;
  margin-left: 0.15rem;
}
.cats .icono-carrito, .cats .burbuja { color: #f6c400; }
.cats a {
  color: #f6c400;
  text-decoration: none;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.cats a.activa, .cats a:hover { background: #f6c400; color: #111; }
.cats-scroll.fija {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  width: 100%;
}
.cats-scroll.fija.oculta {
  transform: translateY(-110%);
  pointer-events: none;
}
main {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 1.35rem 1.15rem 2.5rem;
  border: 12px solid transparent;
  background:
    linear-gradient(#e8e8e8, #e8e8e8) padding-box,
    repeating-linear-gradient(-45deg, #111 0 12px, #f6c400 12px 24px) border-box;
}
.hero {
  position: relative;
  aspect-ratio: 848 / 480;
  overflow: hidden;
  background: #e7ebef;
  color: #111;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.hero-fotos { position: absolute; inset: 0; pointer-events: none; }
.hero-foto {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  height: auto;
  background: transparent;
  border-radius: 0;
}
.hero-foto video,
.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-texto {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  max-width: min(34rem, 46%);
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}
.hero h1 { margin: 0.3rem 0; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 16ch; }
@media (prefers-reduced-motion: reduce) {
  .hero-foto video { display: none; }
}
.etiqueta {
  margin: 0;
  color: #f5a524;
  font-weight: 700;
  font-size: 0.85rem;
}
.bloque {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.bloque h2, .titulo-pagina { margin: 0 0 0.8rem; }
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.8rem;
}
.tarjeta {
  display: block;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
}
.tarjeta:hover { outline: 2px solid #e47911; }
.tarjeta-ir { display: block; text-decoration: none; color: inherit; }
.agregar-rapido { margin-top: 0.65rem; }
.agregar-rapido .boton { width: 100%; margin: 0; padding: 0.45rem 0.6rem; font-size: 0.86rem; }
.agregar-rapido .boton:disabled { opacity: 0.65; cursor: default; }
.foto {
  height: 120px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  color: #1b2838;
  margin-bottom: 0.6rem;
}
.foto svg { width: 48px; height: 48px; }
.foto img { width: 100%; height: 100%; object-fit: contain; }
.foto-grande { height: 280px; }
.foto-grande svg { width: 96px; height: 96px; }
.marca, .envio, .resultado, .codigo { color: #565959; font-size: 0.88rem; }
.codigo { margin: 0.1rem 0; font-weight: 650; }
.tarjeta h3, .linea h2 { font-size: 0.98rem; margin: 0.15rem 0 0.35rem; }
.estrellas { color: #e47911; margin: 0.2rem 0; }
.estrellas span { color: #007185; font-size: 0.85rem; }
.precio { font-size: 1.15rem; font-weight: 750; margin: 0.2rem 0; }
.precio s { color: #565959; font-weight: 500; font-size: 0.85rem; margin-left: 0.3rem; }
.precio em { color: #b12704; font-style: normal; font-size: 0.85rem; margin-left: 0.25rem; }
.precio-grande { font-size: 1.7rem; }
.ficha, .carrito {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 1rem;
  align-items: start;
}
.ficha .info, .compra, .resumen, .formulario, .linea {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}
.compra .boton, .resumen .boton, .formulario .boton { width: 100%; margin-top: 0.8rem; }
.boton {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
  padding: 0.65rem 1rem;
}
.stock { color: #067d62; font-weight: 700; }
.compra label, .formulario label, .cantidad label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.compra select, .formulario input, .formulario textarea, .formulario select, .cantidad input {
  font: inherit;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.formulario { display: grid; gap: 0.7rem; }
.carrito { grid-template-columns: 1fr 280px; }
.lineas { display: grid; gap: 0.7rem; }
.linea { display: grid; grid-template-columns: 88px 1fr auto; gap: 0.8rem; align-items: center; }
.linea .foto { height: 88px; margin: 0; }
.linea h2 a { text-decoration: none; }
.cantidad { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; }
.cantidad button { border-radius: 6px; padding: 0.45rem 0.6rem; background: #e8e8e8; }
.cantidad input { width: 4.2rem; }
.columna-pedido { display: grid; gap: 0.8rem; align-content: start; }
.sugeridos-carrito {
  background: #fff;
  border-radius: 8px;
  padding: 0.85rem;
}
.sugeridos-carrito h2 { margin: 0; font-size: 0.92rem; line-height: 1.35; }
.mini { display: grid; gap: 0.4rem; padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid #eee; }
.mini > a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
}
.mini .foto { width: 64px; height: 64px; margin: 0; }
.mini h3 { margin: 0; font-size: 0.86rem; }
.mini .precio { font-size: 0.95rem; }
.mini .boton { width: 100%; margin: 0; padding: 0.4rem 0.5rem; font-size: 0.8rem; }
.publicidad-movil { display: none; }
.meta-envio {
  display: grid;
  gap: 0.55rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.meta-subtotal, .meta-envio .seguir-pedido { display: none; }
.meta-subtotal { margin: 0; font-size: 1.25rem; }
.meta-subtotal strong { font-size: 1.45rem; }
.barra-envio {
  height: 12px;
  background: #d5d9d9;
  border-radius: 8px;
  overflow: hidden;
}
.barra-envio span {
  display: block;
  height: 100%;
  background: #067d62;
  border-radius: 8px;
}
.meta-falta, .meta-ok { margin: 0; line-height: 1.35; }
.meta-ok[hidden], .meta-falta[hidden] { display: none; }
.meta-ok {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #067d62;
  font-weight: 650;
}
.meta-ok svg { width: 22px; height: 22px; flex: none; }
.meta-ok circle { fill: #067d62; }
.meta-ok path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.resumen p { display: flex; justify-content: space-between; }
.total { font-size: 1.15rem; border-top: 1px solid #ddd; padding-top: 0.6rem; }
.vacio {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.2rem;
  text-align: center;
}
.vacio a { color: #007185; }
.errores { background: #fff4f4; border: 1px solid #f3c0c0; border-radius: 8px; padding: 0.7rem 1.2rem; }
.pie {
  color: #d5d9df;
  background: #1b2838;
  width: 100%;
  max-width: none;
  padding: 1.2rem calc((100% - min(1180px, calc(100% - 2rem))) / 2) 4.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.menu-fondo { display: none; }
.lista-fondo-cats { display: none; }
.volver-inicio {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 35;
  background: #e47911;
  color: #111;
  text-decoration: none;
  font-weight: 650;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.pie a.volver-inicio { color: #111; }
body.con-tira .volver-inicio { right: 156px; }
.pie-copy { flex-basis: 100%; margin: 0.35rem 0 0; text-align: center; }
.pie-copy a { font-weight: 650; }
.acceso, .tabla-wrap { background: #fff; border-radius: 8px; padding: 1rem; }
.acceso { max-width: 420px; }
.aviso { background: #fff4f4; border: 1px solid #f3c0c0; border-radius: 8px; padding: 0.6rem 0.8rem; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.boton-chico { width: auto; border-radius: 20px; padding: 0.55rem 0.9rem; }
.boton-whatsapp { background: #25d366; color: #111; display: inline-block; width: auto; margin: 0.8rem auto; }
.seguimiento { background: #fff; border-radius: 8px; padding: 1.2rem; display: grid; gap: 0.8rem; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.pasos li { background: #f3f3f3; border-radius: 8px; padding: 0.65rem 0.8rem; }
.pasos li.aprobado { background: #067d62; color: #fff; font-weight: 700; }
.pasos li.actual { box-shadow: inset 4px 0 0 #034d3c; }
.lista-pedido { margin: 0; padding-left: 1.1rem; }
.celda-foto { width: 64px; }
.celda-foto img, .celda-foto svg {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
  border-radius: 6px;
}
.celda-foto svg { padding: 8px; color: #1b2838; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.boton-texto { border: 0; background: transparent; color: #b12704; font: inherit; font-weight: 650; cursor: pointer; }
.sesion-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: #1b2838;
  color: #fff;
  border-radius: 10px;
}
.sesion-admin p { margin: 0; font-weight: 650; }
.sesion-admin a {
  color: #1a1a1a;
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.menu-admin { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.menu-admin a {
  color: #303030;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 650;
}
.menu-admin a.activa { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.orden-cats { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.orden-cats span {
  background: #f3f3f3;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}
.instruccion-mapa {
  margin: 0;
  max-width: 100%;
  color: #333;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ubicacion { display: grid; gap: 0.45rem; justify-items: stretch; width: 100%; }
.ubicacion .boton { width: auto; margin: 0; justify-self: start; }
.mapa-ubicacion {
  width: 100%;
  max-width: 100%;
  height: 220px;
  border: 1px solid #ddd;
  border-radius: 8px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: #e7ebef;
}
.formulario, .ubicacion, .dos-campos { min-width: 0; }
.bloque-envio { background: #fff; border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; }
.bloque-envio h2 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.ciudad-envio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid #eee;
}
.ciudad-envio p { margin: 0; }
.ciudad-envio .estado-ciudad { margin-left: 0.45rem; color: #565959; font-size: 0.88rem; }
.ciudad-envio.apagada { opacity: 0.6; }
.ciudad-envio form { margin: 0; }
.fila-cat { display: flex; gap: 0.45rem; align-items: center; }
.fila-cat input {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  min-width: 12rem;
}
.numero-orden { width: 4.2rem; min-width: 4.2rem; }
.campos-proveedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  align-items: end;
}
.campos-proveedor .boton-guardar { width: auto; }
.clave-acciones { display: flex; gap: 0.75rem; }
.clave-acciones button { padding: 0; }
.boton-editar { color: #007185; }
.acciones { display: flex; align-items: center; gap: 0.85rem; white-space: nowrap; }
.acciones a { color: #007185; font-weight: 650; text-decoration: none; }
.acciones form { margin: 0; }
.formulario-ancho { max-width: 640px; }
.formulario select, .formulario input[type="file"] { font: inherit; }
.pagina-editor { background: #f3f3f3; }
.pagina-editor .subbarra,
.pagina-editor .cats { display: none; }
.pagina-editor main { width: min(1080px, calc(100% - 2rem)); }
.editor-top { margin-bottom: 0.8rem; }
.editor-top h1 { margin: 0; font-size: 1.35rem; }
.barra-flotante[hidden] { display: none; }
.barra-flotante {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.barra-flotante span {
  font-size: 0.92rem;
  margin-right: 0.35rem;
}
.barra-flotante a,
.barra-flotante button {
  font: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.barra-flotante a {
  color: #fff;
  background: #2f2f2f;
  border: 1px solid #4a4a4a;
}
.barra-flotante button {
  color: #1a1a1a;
  background: #fff;
  border: 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}
.editor-col, .editor-lado { display: grid; gap: 1rem; }
.tarjeta-editor {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}
.tarjeta-editor h2 { margin: 0; font-size: 0.95rem; }
.tarjeta-editor label { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 650; }
.tarjeta-editor input,
.tarjeta-editor textarea,
.tarjeta-editor select {
  width: 100%;
  font: inherit;
  font-weight: 450;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  background: #fff;
}
.tarjeta-editor textarea { resize: vertical; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ganancia-fila { margin: 0.7rem 0; font-weight: 650; }
.ganancia { color: #067d62; }
.ganancia-baja { color: #b12704; font-weight: 700; }
.con-signo { position: relative; display: block; }
.con-signo input { padding-right: 2rem; }
.con-signo > span {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #616161;
  font-weight: 550;
}
.ayuda { margin: 0; color: #616161; font-size: 0.8rem; font-weight: 450; }
.zona-foto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #b5b5b5;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  overflow: hidden;
}
.zona-foto.sobre { border-color: #1a1a1a; background: #f3f3f3; }
.foto-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.zona-vacia { display: grid; gap: 0.25rem; text-align: center; color: #616161; font-weight: 450; }
.zona-vacia strong {
  display: inline-block;
  background: #e3e3e3;
  color: #303030;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}
.zona-preview { max-width: 100%; max-height: 220px; object-fit: contain; }
  @media (max-width: 860px) {
  body.con-tira { display: block; }
  html, body { max-width: 100%; overflow-x: hidden; }
  .barra, .subbarra, .pie { width: min(1180px, calc(100% - 1rem)); }
  .barra { flex-wrap: wrap; gap: 0.45rem; padding-top: 0.55rem; }
  .logo img { height: 48px; }
  .barra .busca { order: 3; flex-basis: 100%; }
  .busca input, .busca button { min-height: 44px; }
  .cats .busca button { min-height: 44px; }
  .busca-nav { flex: 1 1 0%; min-width: 0; max-width: none; overflow: hidden; }
  .etiqueta-carrito {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .cuenta { font-size: 0.82rem; }
  .aviso-envio { margin: 0 0 0 auto; padding: 0.35rem 0.85rem 0.35rem 0.65rem; }
  .aviso-envio svg { width: 26px; height: 26px; }
  .aviso-envio strong { font-size: 0.95rem; }
  .aviso-envio small { font-size: 0.78rem; }
  .pie { flex-direction: column; }
  .cats .icono-carrito { width: 36px; }
  .cats {
    display: flex;
    align-items: center;
    padding: 0.45rem 2.7rem 0.45rem 0.4rem;
    gap: 0.3rem;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin-inline: 0;
    box-sizing: border-box;
  }
  .cats .menu-cats { padding: 0.4rem 0.45rem; }
  .busca-nav, .cats.reducida .busca-nav {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 8rem);
    overflow: hidden;
    margin-left: 0;
  }
  .busca-nav input {
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    max-width: 100%;
  }
  .cats .busca button {
    flex: none;
    width: 40px;
    min-width: 40px;
    padding: 0;
  }
  .cats .enlace-carrito {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding: 0.1rem;
    gap: 0;
    z-index: 3;
  }
  .cats .icono-carrito { width: 36px; height: 28px; }
  .cats .icono-carrito svg { width: 36px; height: 28px; }
  .cats a { flex: none; white-space: nowrap; padding: 0.4rem 0.7rem; }
  .cats .enlace-carrito { padding: 0.1rem; }
  body.con-tira { padding-right: 0; }
  body.con-tira .volver-inicio { right: 1.1rem; }
  .tira-carrito { display: none; }
  .hero { aspect-ratio: 848 / 480; }
  .hero-foto img { padding: 0; }
  .hero-texto {
    left: auto;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 10.5rem;
    max-width: calc(100% - 0.7rem);
    padding: 0.28rem 0.4rem;
  }
  .hero-texto .etiqueta { font-size: 0.58rem; line-height: 1.2; }
  .hero h1 { font-size: 0.78rem; line-height: 1.15; margin: 0.06rem 0; max-width: none; overflow-wrap: break-word; }
  .hero-texto p:last-child { margin: 0; font-size: 0.62rem; line-height: 1.25; overflow-wrap: break-word; }
  .bloque { padding: 0.35rem 0 0.8rem; }
  .rejilla.mosaico {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
  }
  .rejilla.mosaico .tarjeta {
    flex: 0 0 31%;
    scroll-snap-align: start;
    padding: 0.35rem 0.25rem 0.5rem;
  }
  .rejilla.mosaico .foto {
    height: 104px;
    aspect-ratio: auto;
    min-height: 0;
    margin-bottom: 0.35rem;
  }
  .rejilla.mosaico .codigo,
  .rejilla.mosaico .envio,
  .rejilla.mosaico .marca { display: none; }
  .rejilla.mosaico h3 {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rejilla.mosaico .precio { font-size: 0.92rem; }
  .rejilla.lista { grid-template-columns: 1fr; gap: 0; }
  .rejilla.lista > a.tarjeta,
  .rejilla.lista .tarjeta-ir {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.65rem;
    align-items: center;
  }
  .rejilla.lista > a.tarjeta,
  .rejilla.lista > article.tarjeta {
    border: 0;
    border-bottom: 1px solid #e6e6e6;
    border-radius: 0;
    padding: 0.7rem 0.15rem;
  }
  .rejilla.lista .foto {
    grid-column: 1;
    grid-row: 1;
    height: 92px;
    aspect-ratio: auto;
    min-height: 0;
    margin: 0;
  }
  .rejilla.lista .foto,
  .rejilla.mosaico .foto { min-width: 0; overflow: hidden; }
  .rejilla.lista .foto img,
  .rejilla.mosaico .foto img { max-width: 100%; }
  .rejilla.lista .tarjeta-texto { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
  .rejilla.lista .precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.35rem; font-size: 1rem; }
  .rejilla.lista .precio s,
  .rejilla.lista .precio em { margin-left: 0; }
  .rejilla.lista .precio em { flex-basis: 100%; }
  .rejilla.mosaico .tarjeta,
  .rejilla.mosaico .tarjeta-texto { min-width: 0; }
  .rejilla.lista .codigo { display: none; }
  .rejilla.lista h3 { font-size: 0.95rem; line-height: 1.3; }
  .rejilla.lista .agregar-rapido { margin: 0.45rem 0 0; }
  .rejilla.lista .agregar-rapido .boton { min-height: 40px; }
  .ficha, .carrito, .editor-grid, .dos-campos { grid-template-columns: 1fr; }
  .carrito, .formulario { max-width: 100%; }
  .formulario { padding: 0.85rem; }
  .formulario input, .formulario select, .formulario textarea { min-height: 46px; }
  .mapa-ubicacion { height: 200px; }
  .ubicacion .boton { width: 100%; justify-self: stretch; min-height: 46px; }
  .ayuda { overflow-wrap: anywhere; }
  main { padding-bottom: 5.5rem; border-width: 8px; }
  .foto-grande {
    height: min(52vw, 210px);
    min-height: 160px;
    background: #fff;
  }
  .compra .boton { min-height: 46px; font-size: 1rem; }
  .linea {
    grid-template-columns: 112px 1fr;
    align-items: start;
  }
  .linea .foto { width: 112px; height: 112px; }
  .linea .precio { grid-column: 2; }
  .mini > a { grid-template-columns: 112px 1fr; }
  .mini .foto { width: 112px; height: 112px; }
  .meta-envio { padding: 0.9rem 0.85rem; }
  .meta-subtotal, .meta-envio .seguir-pedido { display: block; }
  .meta-envio .boton { margin-top: 0.25rem; min-height: 46px; font-size: 1rem; }
  .resumen .boton { display: none; }
  .carrito .columna-pedido { display: none; }
  .sugeridos-carrito { display: none; }
  .publicidad-movil {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 0.85rem 0.7rem 1rem;
  }
  .publicidad-movil h2 { margin: 0 0 0.75rem; font-size: 1.05rem; line-height: 1.3; }
  .publi-carrusel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.2rem;
  }
  .publi-item {
    flex: 0 0 31%;
    scroll-snap-align: start;
    display: grid;
    align-content: start;
    gap: 0.3rem;
  }
  .publi-item > a { text-decoration: none; display: grid; gap: 0.25rem; }
  .publi-item .foto { height: 100px; aspect-ratio: auto; margin: 0; }
  .publi-item h3 {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .publi-item .estrellas { margin: 0; font-size: 0.8rem; }
  .publi-item .precio { margin: 0; font-size: 1rem; }
  .publi-item .boton { width: 100%; margin: 0.2rem 0 0; padding: 0.45rem 0.35rem; font-size: 0.78rem; min-height: 40px; }
  .barra-flotante { max-width: calc(100% - 1rem); }
  .menu-fondo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 36;
    background: #111;
    color: #f6c400;
    border-top: 3px solid #f6c400;
    padding: 0.35rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }
  .menu-fondo a,
  .menu-fondo button {
    display: grid;
    justify-items: center;
    gap: 0.12rem;
    margin: 0;
    padding: 0.25rem 0.2rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  .menu-fondo svg { width: 24px; height: 24px; display: block; }
  .menu-fondo-icono { position: relative; }
  .menu-fondo-burbuja {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #e47911;
    color: #111;
    font-size: 0.68rem;
    line-height: 1.15rem;
    text-align: center;
  }
  body.con-menu-fondo .volver-inicio { display: none; }
  body.con-menu-fondo main { padding-bottom: 6.2rem; }
  .lista-fondo-cats.abierta {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(3.45rem + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    max-height: min(70vh, 28rem);
    overflow: auto;
    background: #111;
    padding: 0.35rem 0.8rem 0.7rem;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.28);
  }
  .lista-fondo-cats a {
    color: #f6c400;
    text-decoration: none;
    font-weight: 650;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid #2a2a2a;
  }
  .lista-fondo-cats a.activa,
  .lista-fondo-cats a:hover { color: #111; background: #f6c400; margin: 0 -0.8rem; padding-left: 1rem; padding-right: 1rem; }
}
