/* ==========================================================================
   Tienda — estilos mobile-first, limpios y neutros.
   El color principal viene de config.php como --color.
   ========================================================================== */

:root {
  --color: #1F6F5C;
  --texto: #3F342B;
  --suave: #7d7166;
  --linea: #ebe3d9;
  --fondo: #F7F3EE;
  --blanco: #fff;
  --verde-wa: #1fa855;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --ancho: 1100px;
  --abajo: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--color); }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
}
.barra-in {
  max-width: var(--ancho); margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  min-height: 56px; padding: 0 8px 0 16px;
}
.marca {
  flex: 1; min-width: 0;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--texto); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.marca img { height: 44px; width: auto; display: block; }
.btn-icono {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--texto); text-decoration: none;
}
.btn-icono:active { background: var(--fondo); }
.barra .btn-icono:first-child { margin-left: -12px; }
.contador {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--color); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}

.contenido { max-width: var(--ancho); margin: 0 auto; padding: 12px 12px 16px; }

/* ---------- Buscador y chips ---------- */
.buscador {
  position: relative; margin: 4px 0 10px;
}
.buscador svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.buscador input {
  width: 100%; height: 48px; padding: 0 14px 0 44px;
  border: 1px solid var(--linea); border-radius: 24px; background: var(--blanco);
  font-size: 16px; /* 16px evita el zoom automático del iPhone */
  outline: none;
}
.buscador input:focus { border-color: var(--color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color) 18%, transparent); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -12px 14px; padding: 2px 12px 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  padding: 9px 16px; border-radius: 20px;
  background: var(--blanco); border: 1px solid var(--linea);
  color: var(--texto); text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.chip.activo { background: var(--color); border-color: var(--color); color: #fff; }

/* ---------- Grilla ---------- */
.grilla {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tarjeta {
  display: flex; flex-direction: column;
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra);
}
.tarjeta-foto { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; min-height: 0; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta.agotado .tarjeta-foto img { opacity: .55; filter: grayscale(.6); }
.tarjeta-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex: 1; }
.tarjeta-nombre {
  color: var(--texto); text-decoration: none; font-size: .92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.tarjeta-precios { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: auto; }
.tarjeta .btn { margin-top: 6px; }

.precio { font-weight: 800; color: var(--texto); font-size: 1.05rem; }
.precio-grande { font-size: 1.7rem; }
.precio-ant { color: var(--suave); font-size: .85rem; }
.ahorro { color: var(--color); font-size: .8rem; font-weight: 700; }
.ahorro-grande { font-size: .95rem; margin: 4px 0 0; }

.etiqueta {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 8px;
  background: var(--color); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.etiqueta-gris { background: #4b5056; }
.etiqueta-linea { position: static; align-self: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--color); color: #fff;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); filter: brightness(.95); }
.btn:disabled { background: #c9cdd1; color: #fff; cursor: not-allowed; transform: none; }
.btn-chico { min-height: 40px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn-ancho { width: 100%; }
.btn-wa { background: var(--verde-wa); }
.btn.cargando { opacity: .7; pointer-events: none; }
.btn.cargando::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; border-right-color: transparent; animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Ficha ---------- */
.pag-producto .contenido { padding: 0; }
.ficha { background: var(--blanco); }
@media (min-width: 800px) {
  .pag-producto .contenido { padding: 20px 12px 0; }
  .ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
}
.galeria { position: relative; background: #eef0f1; }
.galeria-pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 1 / 1;
}
.galeria-pista::-webkit-scrollbar { display: none; }
.galeria-pista img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; background: #fff; }
.puntos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.puntos span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.25); cursor: pointer; }
.puntos span.activo { background: var(--texto); width: 20px; border-radius: 4px; }
.ficha-info { padding: 16px 16px 8px; }
.sobretitulo { display: inline-block; color: var(--suave); font-size: .85rem; text-decoration: none; margin-bottom: 2px; }
.ficha h1 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; }
.ficha-precios { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.descripcion { margin: 14px 0; color: #3b3f43; }
.subtitulo { font-size: 1rem; margin: 18px 0 8px; }
.incluye { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.incluye li { display: flex; align-items: center; gap: 10px; }
.incluye img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eef0f1; }
.quedan { color: #b4540c; font-weight: 700; margin: 10px 0 0; }
.consulta { margin: 16px 0 6px; font-size: .95rem; }

.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px calc(10px + var(--abajo));
  background: var(--blanco); border-top: 1px solid var(--linea);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
@media (min-width: 800px) { .barra-compra { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 16px 16px 0 0; } }

.cantidad {
  flex: none; display: flex; align-items: center;
  border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; background: var(--blanco);
}
.cantidad button {
  width: 44px; height: 48px; border: 0; background: transparent;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cantidad button:active { background: var(--fondo); }
.cantidad button:disabled { color: #c9cdd1; }
.cantidad input {
  width: 40px; height: 48px; border: 0; text-align: center; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield; background: transparent;
}
.cantidad input::-webkit-inner-spin-button, .cantidad input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad-chica button { width: 38px; height: 38px; font-size: 1.2rem; }
.cantidad-chica span { min-width: 26px; text-align: center; font-weight: 700; }

/* ---------- Botones flotantes ---------- */
.flotantes {
  position: fixed; right: 14px; bottom: calc(16px + var(--abajo)); z-index: 30;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
/* En la ficha manda la barra de compra: el carrito queda arriba, en la cabecera. */
.pag-producto .flotantes { display: none; }
.flotante {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); text-decoration: none;
}
.flotante-wa { background: var(--verde-wa); }
.flotante-carrito { background: var(--texto); }
.flotante-carrito .contador { top: -4px; right: -4px; border: 2px solid #fff; height: 24px; line-height: 20px; border-radius: 12px; }
.flotante.salto { animation: salto .45s ease; }
@keyframes salto { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

/* ---------- Aviso (toast) ---------- */
.aviso {
  position: fixed; left: 50%; bottom: calc(96px + var(--abajo)); z-index: 40;
  transform: translate(-50%, 12px); opacity: 0;
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: var(--texto); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: opacity .2s, transform .2s;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.pag-producto .aviso { bottom: calc(150px + var(--abajo)); }

/* ---------- Carrito y checkout ---------- */
.pag-carrito .contenido { max-width: 640px; }
.titulo-pag { font-size: 1.4rem; margin: 6px 4px 12px; }
.lista-carrito { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  padding: 10px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
}
.item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #eef0f1; }
.item-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-nombre { color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.item-precio { color: var(--suave); font-size: .85rem; }
.item-acciones { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.item-sub { font-size: .95rem; white-space: nowrap; }
.link-borrar { border: 0; background: none; color: var(--suave); text-decoration: underline; font-size: .88rem; padding: 8px 0; cursor: pointer; }
.total-carrito {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 4px; font-size: 1.1rem;
}
.total-carrito strong { font-size: 1.5rem; }
.avisos-carrito {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff5e6; border: 1px solid #f3d19c; color: #6a4205; font-size: .92rem;
}
.avisos-carrito ul { margin: 6px 0 0; padding-left: 18px; }

.checkout {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 4px 16px 18px; display: grid; gap: 14px;
}
.campo { display: grid; gap: 6px; }
.campo > span, .opciones legend { font-weight: 600; font-size: .92rem; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #d5d9dd; border-radius: 12px; background: var(--blanco);
  font-size: 16px; outline: none;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color) 18%, transparent); }
.error { color: #c0392b; font-size: .85rem; min-height: 0; }
.error:empty { display: none; }
.opciones { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.opciones legend { margin-bottom: 6px; padding: 0; }
.opcion {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid #d5d9dd; border-radius: 12px; cursor: pointer;
}
.opcion:has(input:checked) { border-color: var(--color); background: color-mix(in srgb, var(--color) 6%, #fff); }
.opcion input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color); flex: none; }
.opcion span { display: grid; gap: 2px; font-weight: 600; }
.opcion small { color: var(--suave); font-weight: 400; font-size: .85rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nota { margin: 0; color: var(--suave); font-size: .85rem; text-align: center; }

.pedido-listo {
  text-align: center; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 28px 20px;
}
.pedido-listo h2 { margin: 8px 0; }
.tilde {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: var(--verde-wa); color: #fff; font-size: 2rem; line-height: 64px; font-weight: 800;
}

/* ---------- Novedades: notificaciones de productos nuevos ---------- */
.noti {
  position: fixed; left: 12px; right: 86px; bottom: calc(16px + var(--abajo)); z-index: 35;
  max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; border-radius: 14px;
  background: var(--blanco); color: var(--texto); text-decoration: none;
  box-shadow: 0 8px 28px rgba(60, 40, 20, .18), 0 1px 3px rgba(60, 40, 20, .08);
  transform: translateY(calc(100% + 30px)); opacity: 0;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.noti.visible { transform: translateY(0); opacity: 1; }
.noti img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.noti-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.noti-et { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color); }
.noti-nombre { font-size: .85rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti-precio { font-size: .85rem; font-weight: 800; }
.noti-cerrar {
  flex: none; align-self: flex-start; width: 32px; height: 32px; margin: -4px -4px 0 0;
  border: 0; background: none; color: var(--suave); font-size: 1.1rem; cursor: pointer; border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) { .noti { transform: none; transition: opacity .3s; } }

/* ---------- Bienvenida (logo al entrar) ---------- */
.bienvenida {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--fondo);
  animation: bv-salida .45s ease 1.5s forwards;
}
.bienvenida img { width: 160px; height: auto; animation: bv-entrada .8s cubic-bezier(.2, .7, .2, 1) both; }
.bienvenida.fuera { animation: bv-salida .25s ease forwards; }
@keyframes bv-entrada { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes bv-salida { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .bienvenida { animation-delay: .9s; }
  .bienvenida img { animation: none; }
}

/* ---------- Varios ---------- */
.vacio { text-align: center; color: var(--suave); padding: 40px 16px; }
.pie { text-align: center; color: var(--suave); font-size: .85rem; padding: 24px 16px 96px; }
.pie p { margin: 4px 0; }
.pag-producto .pie { padding-bottom: 100px; }

/* ==========================================================================
   Diseño nuevo (estilo marketplace). Se activa con config 'diseno' => 'nuevo'
   o con ?diseno=nuevo para verlo antes. Todo cuelga de body.diseno-nuevo.
   ========================================================================== */
.diseno-nuevo { --barra-abajo: 62px; }
.diseno-nuevo .contenido { padding-bottom: calc(var(--barra-abajo) + 16px + var(--abajo)); }
.diseno-nuevo .pie { padding-bottom: calc(var(--barra-abajo) + 24px + var(--abajo)); }

/* Cabecera topo con buscador */
.barra-nueva {
  position: sticky; top: 0; z-index: 20;
  background: var(--color); color: #fff;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 12px;
  box-shadow: 0 2px 10px rgba(60, 40, 20, .15);
}
.bn-fila { display: flex; align-items: center; gap: 4px; min-height: 48px; max-width: var(--ancho); margin: 0 auto; }
.bn-marca { flex: 1; min-width: 0; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.bn-marca img { height: 40px; width: auto; display: block; }
.bn-icono { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.bn-icono:first-child { margin-left: -10px; }
.bn-buscador { position: relative; max-width: var(--ancho); margin: 2px auto 0; }
.bn-buscador svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.bn-buscador input {
  width: 100%; height: 44px; padding: 0 14px 0 44px; border: 0; border-radius: 22px;
  background: #fff; color: var(--texto); font-size: 16px; outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

/* Banners deslizables */
.banners { margin: 2px -12px 14px; }
.banners-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 0 12px; }
.banners-pista::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden;
  min-height: 150px; border-radius: 16px; padding: 18px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.banner-cta {
  align-self: flex-start; padding: 7px 14px; border-radius: 18px; font-size: .82rem; font-weight: 700;
  background: #fff; color: var(--texto);
}
.banner-bf { background: #241d18; color: #fff; }
.banner-bf::after {
  content: "%"; position: absolute; right: -10px; bottom: -40px; font-size: 190px; font-weight: 900;
  color: rgba(217, 195, 165, .18); line-height: 1;
}
.bf-titulo { font-size: 2.1rem; line-height: .95; font-weight: 900; letter-spacing: -.02em; color: #fff; }
.bf-texto { font-size: .95rem; color: #e9dccb; max-width: 70%; position: relative; z-index: 1; }
.bf-texto b { color: #D9C3A5; font-size: 1.1rem; display: block; }
.banner-bf .banner-cta { background: #D9C3A5; color: #241d18; position: relative; z-index: 1; }
.banner-nuevo { background: #fff; color: var(--texto); flex-direction: row; align-items: center; justify-content: space-between; box-shadow: var(--sombra); }
.banner .bn-txt { display: flex; flex-direction: column; gap: 6px; max-width: 55%; }
.banner .bn-txt small { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--color); font-weight: 700; }
.banner .bn-txt b { font-size: 1.15rem; line-height: 1.2; }
.banner-nuevo .banner-cta { background: var(--color); color: #fff; }
.bn-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 42%; }
.bn-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--linea); }
.bn-fotos img:first-child { grid-column: span 2; }
.banner-wa { background: var(--color); color: #fff; }
.banner-wa .bn-txt { max-width: 85%; }
.banner-wa .bn-txt small { color: #e9dccb; }
.banners-puntos { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banners-puntos span { width: 7px; height: 7px; border-radius: 4px; background: #d6cabb; transition: width .2s; }
.banners-puntos span.activo { width: 18px; background: var(--color); }

/* Íconos de categorías */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 16px; padding: 4px 12px; scroll-margin-top: 130px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--texto); font-size: .76rem; text-align: center; line-height: 1.15; }
.cat-ico {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--color);
  box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 3px 10px rgba(60,40,20,.06); border: 2px solid transparent;
}
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-oferta { background: #241d18; color: #D9C3A5; font-size: 1.6rem; font-weight: 900; }
.cat.activo .cat-ico { border-color: var(--color); }
.cat.activo { font-weight: 700; color: var(--color); }

/* Caja de ofertas */
.ofertas-caja { background: #241d18; border-radius: 16px; padding: 12px; margin-bottom: 18px; color: #fff; }
.oc-cab { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 10px; }
.oc-cab h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 900; }
.reloj { display: flex; gap: 3px; align-items: center; color: #D9C3A5; font-weight: 700; }
.reloj b { background: #D9C3A5; color: #241d18; border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.oc-lista { background: #fff; border-radius: 12px; padding: 6px; display: grid; gap: 4px; }
.oc-item { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; color: var(--texto); }
.oc-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: #fff; flex: none; }
.oc-txt { display: grid; gap: 1px; }
.oc-desc { justify-self: start; background: #f1e4d0; color: #6a4a24; font-weight: 800; font-size: .8rem; padding: 2px 7px; border-radius: 6px; }
.oc-txt s { color: var(--suave); font-size: .85rem; }
.oc-txt b { font-size: 1.2rem; }
.oc-mas { display: block; text-align: center; color: #D9C3A5; font-weight: 700; padding: 10px 0 2px; text-decoration: none; }
.titulo-seccion { font-size: 1.05rem; margin: 4px 2px 10px; scroll-margin-top: 130px; }

/* Tarjetas nuevas */
.tn { position: relative; container-type: inline-size; }
.tn .tarjeta-foto { border-bottom: 1px solid #f1ece6; }
.tn-etq {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
  background: var(--color); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
}
.tn-gris { background: #4b5056; }
.tn-carrito {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--color); box-shadow: 0 2px 10px rgba(60,40,20,.22);
  display: flex; align-items: center; justify-content: center;
}
.tn-carrito:active { transform: scale(.94); }
.tn-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; text-decoration: none; color: var(--texto); }
.tn-nombre { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-antes { font-size: .78rem; color: var(--suave); margin-top: 2px; }
.tn-off { background: #f1e4d0; color: #6a4a24; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.tn-precio { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.tn-pie { font-size: .74rem; color: var(--suave); }

/* Barra de abajo tipo app */
.barra-abajo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px 4px calc(4px + var(--abajo)); background: #fff; border-top: 1px solid var(--linea);
}
.barra-abajo a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--suave); text-decoration: none; font-size: .7rem; font-weight: 600; }
.barra-abajo a.activo { color: var(--color); }
.ba-ico { position: relative; display: inline-flex; }
.barra-abajo .contador { top: -6px; right: -12px; }
.diseno-nuevo.pag-producto .barra-abajo { display: none; }
.diseno-nuevo .noti { bottom: calc(var(--barra-abajo) + 12px + var(--abajo)); right: 12px; }
.diseno-nuevo .aviso { bottom: calc(var(--barra-abajo) + 20px + var(--abajo)); }
.diseno-nuevo.pag-producto .contenido, .diseno-nuevo.pag-producto .pie { padding-bottom: 100px; }

/* Menú lateral */
.menu-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(36, 29, 24, .45); }
.menu-lateral {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: min(84vw, 330px);
  background: #fff; transform: translateX(-102%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(0,0,0,.15);
  padding-top: env(safe-area-inset-top, 0px);
}
.menu-lateral.abierto { transform: none; }
.ml-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 12px 18px; border-bottom: 1px solid var(--linea); }
.ml-cab img { height: 40px; width: auto; }
.ml-cerrar { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; color: var(--suave); cursor: pointer; border-radius: 50%; }
.ml-links { overflow-y: auto; padding: 8px 0 calc(20px + var(--abajo)); display: flex; flex-direction: column; }
.ml-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: var(--texto); text-decoration: none; font-size: 1rem; }
.ml-links a:active { background: var(--fondo); }
.ml-links .ml-cat { padding-left: 32px; font-size: .95rem; }
.ml-sub { padding: 16px 20px 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); font-weight: 700; }
.ml-cont { background: var(--color); color: #fff; border-radius: 10px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ml-wa { color: var(--verde-wa) !important; font-weight: 700; }
body.menu-abierto { overflow: hidden; }

/* Sugerencias del buscador */
.sugerencias {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 34px rgba(36, 29, 24, .25);
  max-height: min(70vh, 460px); overflow-y: auto; color: var(--texto); padding: 6px;
}
.sug { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--texto); }
.sug:active, .sug.activa { background: var(--fondo); }
.sug img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid #f0ebe4; flex: none; background: #fff; }
.sug-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sug-nombre { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sug-nombre mark { background: #f1e4d0; color: inherit; border-radius: 3px; padding: 0 1px; }
.sug-precio { font-weight: 800; font-size: .95rem; }
.sug-precio s { font-weight: 400; color: var(--suave); font-size: .8rem; margin-left: 4px; }
.sug-sin { color: #b4540c; font-size: .75rem; }
.sug-todos { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--color); text-decoration: none; border-top: 1px solid var(--linea); margin-top: 4px; }
.sug-vacio { padding: 14px; color: var(--suave); font-size: .92rem; text-align: center; }
.sug-vacio a { color: var(--verde-wa); font-weight: 700; }

/* Página de información */
.info { background: #fff; border-radius: var(--radio); padding: 8px 18px 18px; box-shadow: var(--sombra); max-width: 640px; margin: 0 auto; }
.info-pasos { padding-left: 20px; display: grid; gap: 10px; }
.info p { color: #4b4038; }

button.bn-icono { border: 0; background: none; cursor: pointer; padding: 0; }
button.bn-icono:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   Diseño «py» (estilo app de delivery). Se suma al diseño nuevo.
   ========================================================================== */
.diseno-py .barra-abajo { grid-template-columns: repeat(5, 1fr); }
.diseno-py .barra-abajo a { font-size: .66rem; }
.diseno-py.pag-home .barra-nueva { box-shadow: none; }
.bn-lupa {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--color); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.diseno-py .bn-buscador input { padding-right: 48px; }
.diseno-py .bn-buscador input::-webkit-search-cancel-button { display: none; }

/* La cabecera sigue en un bloque que abraza el banner */
.hero { background: var(--color); margin: -12px -12px 16px; padding: 6px 12px 18px; border-radius: 0 0 30px 30px; }
.hero .banners { margin: 0 -12px; }
.hero .banners-puntos span { background: rgba(255,255,255,.35); }
.hero .banners-puntos span.activo { background: #fff; }

/* Banner con texto a la izquierda y fotos de productos a la derecha */
.pyb { flex-direction: row; align-items: center; justify-content: space-between; min-height: 172px; padding: 16px; gap: 6px; overflow: hidden; }
.pyb-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 58%; position: relative; z-index: 1; }
.pyb-etq { font-size: .68rem; font-weight: 800; letter-spacing: .14em; opacity: .85; }
.pyb-sub { font-size: .95rem; font-weight: 700; line-height: 1.15; }
.pyb-grande { font-size: 1.55rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.pyb-grande mark { background: #F1DDB9; color: #241d18; padding: 0 6px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pyb-chip { margin-top: 4px; font-size: .74rem; font-weight: 800; padding: 5px 11px; border-radius: 14px; background: rgba(255,255,255,.16); }
.pyb-bf { background: #241d18; color: #fff; }
.pyb-nuevo { background: #fff; color: var(--texto); }
.pyb-nuevo .pyb-etq { color: var(--color); }
.pyb-nuevo .pyb-grande mark { background: #F1E4D0; }
.pyb-nuevo .pyb-chip { background: var(--color); color: #fff; }
.pyb-wa { background: #F7F3EE; color: var(--texto); }
.pyb-wa .pyb-chip { background: var(--verde-wa); color: #fff; }
.pyb-wa-ico { color: var(--verde-wa); margin-right: 8px; }
.pyb-fotos { position: relative; width: 42%; height: 140px; flex: none; }
.pyb-fotos img { position: absolute; width: 92px; height: 92px; object-fit: cover; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.pyb-fotos .f0 { right: 6px; top: 0; transform: rotate(6deg); }
.pyb-fotos .f1 { right: 52px; top: 40px; transform: rotate(-7deg); z-index: 1; }
.pyb-fotos .f2 { right: 0; bottom: 0; transform: rotate(3deg); }

/* Dos tarjetas grandes */
.py-grandes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.py-grande { background: #fff; border-radius: 18px; padding: 12px 10px 14px; text-decoration: none; color: var(--texto); display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--sombra); }
.py-grande img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; }
.py-grande b { font-size: 1.05rem; text-align: center; line-height: 1.2; }

/* Mosaicos de categorías */
.py-cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 18px; padding: 2px 12px 6px; scroll-margin-top: 130px; }
.py-cats::-webkit-scrollbar { display: none; }
.py-cat { flex: 0 0 104px; background: #fff; border-radius: 16px; padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--texto); box-shadow: var(--sombra); border: 2px solid transparent; }
.py-cat.activo { border-color: var(--color); }
.py-cat-img { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; color: var(--color); }
.py-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.py-oferta { background: #241d18; color: #F1DDB9; border-radius: 50%; font-size: 1.9rem; font-weight: 900; width: 62px; height: 62px; }
.py-cat b { font-size: .8rem; text-align: center; line-height: 1.15; font-weight: 700; }
.bn-lupa svg { position: static; transform: none; color: #fff; }
.py-grande img { max-width: 120px; }

/* Panel del carrito al agregar */
.hoja-carrito { position: fixed; inset: 0; z-index: 70; }
.hc-fondo { position: absolute; inset: 0; background: rgba(36, 29, 24, .45); opacity: 0; transition: opacity .25s; }
.hc-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
  background: #fff; border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + var(--abajo));
  display: grid; gap: 10px; transform: translateY(100%); transition: transform .26s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,.15);
}
.hoja-carrito.abierta .hc-fondo { opacity: 1; }
.hoja-carrito.abierta .hc-panel { transform: none; }
@media (min-width: 800px) {
  .hc-panel { left: auto; top: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(100%); padding-top: 22px; align-content: start; }
}
.hc-cab { display: flex; align-items: center; justify-content: space-between; }
.hc-cab b { color: var(--verde-wa); font-size: 1.05rem; }
.hc-x { width: 40px; height: 40px; border: 0; background: none; font-size: 1.1rem; color: var(--suave); cursor: pointer; border-radius: 50%; }
.hc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.hc-lista li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.hc-lista li.nuevo { background: color-mix(in srgb, var(--color) 9%, #fff); }
.hc-lista img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid #f0ebe4; flex: none; background: #fff; }
.hc-nombre { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.25; display: grid; }
.hc-nombre small { color: var(--suave); font-size: .8rem; }
.hc-lista b { white-space: nowrap; font-size: .92rem; }
.hc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--linea); padding-top: 10px; font-size: 1.05rem; }
.hc-total b { font-size: 1.35rem; }
.hc-seguir { border: 0; background: none; color: var(--texto); font-weight: 700; font-size: 1rem; padding: 12px; cursor: pointer; text-decoration: underline; }
body.hoja-abierta { overflow: hidden; }

/* Envío gratis */
.bn-anuncio { text-align: center; font-size: .78rem; color: #F1E4D0; margin: -2px 0 4px; letter-spacing: .01em; }
.bn-anuncio b { color: #fff; }
.envio-gratis { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; }
.envio-gratis[hidden] { display: none; }
.eg-texto { margin: 0 0 7px; font-size: .9rem; }
.eg-barra { height: 8px; border-radius: 4px; background: #eee5da; overflow: hidden; }
.eg-barra span { display: block; height: 100%; background: var(--color); border-radius: 4px; transition: width .4s ease; }
.eg-barra.lleno span { background: var(--verde-wa); }
.pag-carrito .envio-gratis { margin: 12px 0 0; }

/* Panel del carrito: sumar, restar y eliminar */
.hc-lista li { align-items: flex-start; }
.hc-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hc-info .hc-nombre { font-size: .88rem; line-height: 1.25; }
.hc-acciones { display: flex; align-items: center; gap: 10px; }
.hc-acciones .cantidad-chica button { width: 34px; height: 34px; }
.hc-acciones .link-borrar { padding: 6px 0; font-size: .84rem; }
.hc-lista li > b { padding-top: 2px; }
.hc-vacio { justify-content: center; color: var(--suave); padding: 18px 6px !important; }

/* Crédito del pie */
.pie-credito { margin-top: 10px !important; font-size: .78rem; opacity: .85; }
.pie-credito a { color: inherit; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }

/* Carrito en la cabecera */
.bn-carrito { position: relative; }
.bn-carrito .contador { top: 2px; right: 0; background: #F1E4D0; color: #3F342B; border: 2px solid var(--color); height: 22px; line-height: 18px; }

/* Barrita de promo (Black Friday): negro, dorado y blanco */
.bn-promo {
  margin: calc(-6px - env(safe-area-inset-top, 0px)) -12px 6px; padding: calc(7px + env(safe-area-inset-top, 0px)) 12px 7px;
  background: #0d0c0b; color: #fff; text-align: center; font-size: .8rem; line-height: 1.3;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px;
  border-bottom: 1px solid #b8913a;
}
.bp-titulo {
  font-weight: 900; letter-spacing: .18em;
  background: linear-gradient(90deg, #b8913a, #f3d98b 45%, #c9a24a 70%, #f3d98b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bp-texto { color: #fff; font-weight: 600; }

/* Página de pago por transferencia */
.pago { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.pago-caja { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; display: grid; gap: 10px; }
.pago-monto-tit { margin: 0; color: var(--suave); font-size: .9rem; text-align: center; }
.pago-monto { margin: 0 0 6px; text-align: center; font-size: 2.2rem; font-weight: 800; }
.pago-dato { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 12px; }
.pago-dato span { grid-column: 1 / -1; font-size: .78rem; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.pago-dato b { font-size: 1.05rem; word-break: break-all; }
.pago-copiar { border: 0; background: var(--color); color: #fff; font-weight: 700; border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.pago-archivo { display: block; border: 2px dashed #d5c8b8; border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; background: #fff; font-weight: 700; color: var(--color); }
.pago-archivo input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------------- Banners con foto de ambiente (diseño nuevo) ---------------- */
.bnf { min-height: 196px; padding: 18px 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; isolation: isolate; color: #fff; box-shadow: var(--sombra); }
.bnf-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bnf::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.bnf-txt { position: relative; display: flex; flex-direction: column; gap: 7px; max-width: 56%; }
.bnf-txt small { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; font-weight: 800; }
.bnf-titulo { font-size: 1.28rem; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.bnf .banner-cta { display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* Black Friday: living oscurecido, dorado */
.bnf-bf::before { background: linear-gradient(100deg, rgba(20,15,12,.94) 0%, rgba(20,15,12,.82) 48%, rgba(20,15,12,.35) 100%); }
.bnf-bf::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,195,165,.35); border-radius: 11px; pointer-events: none; }
.bnf-sello { color: #D9C3A5; }
.bnf-bf .bf-titulo { font-size: 2.15rem; background: linear-gradient(180deg, #fff 30%, #e8d3b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bnf-bf .bf-texto { max-width: none; font-size: .86rem; color: #e9dccb; }
.bnf-bf .bf-texto b { font-size: 1rem; color: #D9C3A5; display: block; }
.bnf-bf .banner-cta { background: linear-gradient(180deg, #e8d3b0, #c9a978); color: #241d18; }
.bnf-prods { position: relative; width: 42%; height: 160px; flex: none; }
.bnf-prod { position: absolute; width: 96px; background: #fff; border-radius: 12px; padding: 5px 5px 6px; box-shadow: 0 10px 24px rgba(0,0,0,.4); text-align: center; color: #241d18; }
.bnf-prod img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; border-radius: 8px; }
.bnf-prod b { display: block; font-size: .78rem; margin-top: 2px; }
.bnf-prod-0 { left: -6px; top: -8px; transform: rotate(-6deg); z-index: 1; width: 88px; }
.bnf-prod-1 { right: -6px; bottom: -10px; transform: rotate(5deg); width: 88px; }
.bnf-off { position: absolute; top: -8px; left: -8px; background: #c0392b; color: #fff; font-style: normal; font-weight: 800; font-size: .72rem; padding: 3px 7px; border-radius: 10px; }

/* Novedades: cocina luminosa con fundido crema */
.bnf-nuevo { color: var(--texto); }
.bnf-nuevo::before { background: linear-gradient(90deg, rgba(247,243,238,.96) 0%, rgba(247,243,238,.82) 40%, rgba(247,243,238,0) 72%); }
.bnf-nuevo small { color: var(--color); }
.bnf-nuevo .banner-cta { background: var(--color); color: #fff; }
.bnf-mosaico { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 38%; flex: none; align-items: start; }
.bnf-mosaico img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(63,52,43,.22); }
.bnf-mosaico img:first-child { grid-column: span 2; aspect-ratio: 2 / 1.1; }

/* WhatsApp: gente cocinando con fundido topo y burbujas de chat */
.bnf-wa::before { background: linear-gradient(95deg, rgba(63,52,43,.95) 0%, rgba(122,100,80,.86) 50%, rgba(122,100,80,.2) 100%); }
.bnf-wa small { color: #e9dccb; }
.bnf-wa .banner-cta { background: #25D366; color: #fff; }
.bnf-pasos { display: flex; gap: 4px; }
.bnf-pasos span { font-size: .64rem; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 3px 6px; border-radius: 10px; }
.bnf-chat { position: relative; display: flex; flex-direction: column; gap: 6px; width: 38%; align-items: flex-end; flex: none; align-self: flex-end; margin-bottom: 4px; }
.bnf-msj { white-space: nowrap; background: #fff; color: #222; font-size: .68rem; line-height: 1.25; padding: 7px 9px; border-radius: 12px 12px 12px 3px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.bnf-msj-yo { background: #dcf8c6; border-radius: 12px 12px 3px 12px; align-self: flex-end; }
@media (min-width: 700px) {
  .bnf { min-height: 230px; padding: 24px 28px; }
  .bnf-prods { height: 190px; width: 300px; margin-right: 20px; }
  .bnf-prod { width: 120px; } .bnf-prod-1 { width: 104px; }
  .bnf-mosaico { width: 34%; } .bnf-chat { width: 32%; }
}
.bnf-msj:not(.bnf-msj-yo) { align-self: flex-start; margin-left: -10px; }
.bnf-prod-1 .bnf-off { left: auto; right: -8px; }
.bnf-mosaico { max-width: 230px; }
/* Computadora: los 3 banners uno al lado del otro, del tamaño de la versión de celular, sin deslizar. */
@media (min-width: 900px) {
  .banners-foto { margin: 4px 0 18px; }
  .banners-foto .banners-pista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; overflow: visible; }
  .banners-foto .banners-puntos { display: none; }
  .banners-foto .bnf { min-height: 214px; padding: 18px 16px; transition: transform .2s, box-shadow .2s; }
  .banners-foto .bnf:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(63,52,43,.22); }
  .banners-foto .bnf-prods { height: 160px; width: 42%; margin-right: 0; }
  .banners-foto .bnf-prod { width: 88px; }
  .banners-foto .bnf-mosaico { width: 38%; }
  .banners-foto .bnf-chat { width: 38%; }
  .banners-foto .bf-titulo { font-size: 2rem; }
  .banners-foto .bnf-titulo { font-size: 1.2rem; }
  .banners-foto .bnf-bf .bnf-txt { max-width: 58%; }
  .banners-foto .bnf-bf .bf-texto b { font-size: .9rem; white-space: nowrap; }
}

/* ---------------- Ícono «Ofertas» animado (fila de categorías) ---------------- */
.cat-oferta { position: relative; background: radial-gradient(circle at 35% 30%, #3a2e26, #17110d 70%); color: #E8D3B0; border-color: #C9A978; animation: co-aro 2.6s ease-in-out infinite; }
.co-pct { position: relative; z-index: 1; font-size: 1.75rem; font-weight: 900; line-height: 1; margin-top: -6px;
  background: linear-gradient(180deg, #fff3dc 10%, #E8D3B0 45%, #b8935e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: co-pct 2.6s cubic-bezier(.3,1.6,.5,1) infinite; }
.co-brillo { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255,236,200,.55) 50%, transparent 60%); transform: translateX(-120%); animation: co-brillo 2.6s ease-in-out infinite; }
.co-chispa { position: absolute; color: #F2DDB4; font-size: .6rem; opacity: 0; animation: co-chispa 2.6s ease-in-out infinite; }
.co-c1 { top: 9px; right: 11px; }
.co-c2 { top: 17px; left: 9px; font-size: .45rem; animation-delay: .5s; }
.co-off { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); z-index: 1; background: #d63a2f; color: #fff; font-size: .5rem; font-weight: 900; letter-spacing: .08em; padding: 1px 5px; border-radius: 6px; animation: co-off 2.6s ease-in-out infinite; }
.cat-of > span:last-child { font-weight: 700; color: #b8412f; }
.cat-of.activo .cat-ico { border-color: #C9A978; }
@keyframes co-pct { 0%, 55% { transform: scale(1) rotate(0); } 64% { transform: scale(1.28) rotate(-14deg); } 72% { transform: scale(1.1) rotate(10deg); } 80%, 100% { transform: scale(1) rotate(0); } }
@keyframes co-brillo { 0%, 30% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@keyframes co-chispa { 0%, 50% { opacity: 0; transform: scale(.4) rotate(0); } 65% { opacity: 1; transform: scale(1.2) rotate(45deg); } 85%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes co-off { 0%, 58% { transform: translateX(-50%) translateY(0); } 66% { transform: translateX(-50%) translateY(-3px); } 74%, 100% { transform: translateX(-50%) translateY(0); } }
@keyframes co-aro { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,120,.0), 0 3px 10px rgba(60,40,20,.12); } 60% { box-shadow: 0 0 0 5px rgba(201,169,120,.28), 0 3px 10px rgba(60,40,20,.12); } }
@media (prefers-reduced-motion: reduce) { .cat-oferta, .co-pct, .co-brillo, .co-chispa, .co-off { animation: none; } }
.nw { white-space: nowrap; }

/* ---------------- Ícono «Navidad» animado: arbolito con luces, estrella y nieve ---------------- */
.cat-navidad { position: relative; background: radial-gradient(circle at 40% 30%, #b3262e, #6e1018 75%); border-color: #E8D3B0; animation: cn-aro 3s ease-in-out infinite; }
.cn-arbol { position: relative; z-index: 1; margin-top: 2px; transform-origin: 50% 100%; animation: cn-baile 3s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.cn-estrella { fill: #F5D27A; transform-box: fill-box; transform-origin: center; animation: cn-estrella 1.5s ease-in-out infinite; }
.cn-luz { fill: #fff; }
.cn-l1 { animation: cn-luz1 1.2s steps(1) infinite; }
.cn-l2 { animation: cn-luz2 1.2s steps(1) infinite; }
.cn-l3 { animation: cn-luz3 1.2s steps(1) infinite; }
.cn-nieve i { position: absolute; top: -6px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .9; animation: cn-nieve 3s linear infinite; }
.cn-nieve i:nth-child(1) { left: 12%; animation-delay: 0s; }
.cn-nieve i:nth-child(2) { left: 30%; animation-delay: 1.1s; width: 3px; height: 3px; }
.cn-nieve i:nth-child(3) { left: 52%; animation-delay: .4s; width: 3px; height: 3px; }
.cn-nieve i:nth-child(4) { left: 70%; animation-delay: 1.7s; }
.cn-nieve i:nth-child(5) { left: 84%; animation-delay: .8s; width: 3px; height: 3px; }
.cn-nieve i:nth-child(6) { left: 42%; animation-delay: 2.3s; }
.cat-nav > span:last-child { font-weight: 700; color: #1d7a45; }
.cat-nav.activo .cat-ico { border-color: #1d7a45; }
@keyframes cn-nieve { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .95; } 50% { transform: translate(3px, 34px); } 90% { opacity: .9; } 100% { transform: translate(-2px, 72px); opacity: 0; } }
@keyframes cn-estrella { 0%, 100% { transform: scale(1) rotate(0); filter: none; } 50% { transform: scale(1.35) rotate(20deg); filter: drop-shadow(0 0 3px #ffe9a8); } }
@keyframes cn-luz1 { 0% { fill: #ffd54a; } 33% { fill: #fff; } 66% { fill: #ff6b6b; } }
@keyframes cn-luz2 { 0% { fill: #ff6b6b; } 33% { fill: #ffd54a; } 66% { fill: #fff; } }
@keyframes cn-luz3 { 0% { fill: #fff; } 33% { fill: #ff6b6b; } 66% { fill: #ffd54a; } }
@keyframes cn-baile { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(5deg); } 92% { transform: rotate(-2deg); } }
@keyframes cn-aro { 0%, 100% { box-shadow: 0 0 0 0 rgba(179,38,46,0), 0 3px 10px rgba(60,40,20,.12); } 50% { box-shadow: 0 0 0 5px rgba(179,38,46,.22), 0 3px 10px rgba(60,40,20,.12); } }
@media (prefers-reduced-motion: reduce) { .cat-navidad, .cn-arbol, .cn-estrella, .cn-luz, .cn-nieve i { animation: none; } .cn-nieve { display: none; } }

/* ---------------- Ficha: «También te puede interesar» ---------------- */
.relacionados { padding: 22px 12px 6px; max-width: var(--ancho); margin: 0 auto; }
.rel-titulo { font-size: 1.1rem; margin: 0 0 12px; }
.rel-pista { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 10px; scroll-padding-inline: 12px; }
.rel-pista::-webkit-scrollbar { display: none; }
.rel-pista .tarjeta { scroll-snap-align: start; }
@media (min-width: 640px) { .rel-pista { grid-auto-columns: calc((100% - 30px) / 3.3); } }
@media (min-width: 960px) { .rel-pista { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 2px 0 10px; } }

/* ---------------- Checkout en 2 pasos + compra segura ---------------- */
.seguro { display: flex; align-items: center; gap: 10px; background: #eef7f1; color: #1f6b43; border: 1px solid #cfe8d9; border-radius: 12px; padding: 10px 12px; font-size: .82rem; line-height: 1.35; margin: 4px 0 14px; }
.seguro svg { flex: none; color: #1f8a52; }
.pasos-compra { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 6px; counter-reset: none; }
.pasos-compra li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--suave); padding-bottom: 8px; border-bottom: 3px solid var(--linea); }
.pasos-compra li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--linea); color: var(--suave); font-size: .75rem; }
.pasos-compra li.activo { color: var(--color); border-color: var(--color); }
.pasos-compra li.activo span { background: var(--color); color: #fff; }
.pasos-compra li.hecho { color: #1f8a52; border-color: #9fd3b4; }
.pasos-compra li.hecho span { background: #1f8a52; color: #fff; }
.paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.resumen-datos { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--fondo, #F7F3EE); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; font-size: .88rem; overflow-wrap: anywhere; }
.link-cambiar { border: 0; background: none; color: var(--color); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; flex: none; font-size: .85rem; }
[data-finalizar] svg { vertical-align: -3px; margin-right: 4px; }
.pedido-listo h2 { margin-bottom: 4px; }
.pl-nro { color: var(--suave); margin-top: 0; }
.pl-caja { background: #fff; border-radius: 14px; box-shadow: var(--sombra); padding: 6px 16px; margin: 16px 0 20px; text-align: left; }
.pl-caja p { display: flex; gap: 12px; align-items: center; margin: 12px 0; line-height: 1.4; overflow-wrap: anywhere; }
.pl-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e7f8ee; color: #1f9d55; font-size: 1.1rem; }
.pl-ico-mail { background: #f3ece3; color: var(--color); }

/* «Creado con nudge»: discreto, con el logo de nudge chico y en el mismo gris que el texto del pie
   (la imagen se usa como máscara, así toma el color del texto), apoyado en la misma base. */
.pie-credito { margin-top: 12px !important; opacity: 1; }
.pie-nudge { color: var(--suave) !important; font-weight: 500 !important; font-size: .74rem; text-decoration: none; white-space: nowrap; }
.pie-nudge-logo { display: inline-block; width: 3.21em; height: 1em; margin-left: .1em; vertical-align: -0.23em;
  background-color: currentColor; -webkit-mask: var(--logo) no-repeat center / contain; mask: var(--logo) no-repeat center / contain; opacity: .9; }
.pie-nudge:hover { color: var(--texto) !important; }

/* ---------------- Cabecera: logo al centro y buscador plegado detrás de la lupa ---------------- */
.bn-centrada .bn-fila { display: grid; grid-template-columns: 1fr auto 1fr; }
.bn-centrada .bn-fila > :nth-child(1) { grid-column: 1; grid-row: 1; justify-self: start; }
.bn-centrada .bn-abrir-busca { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 34px; }
.bn-centrada .bn-marca { grid-column: 2; grid-row: 1; flex: none; justify-self: center; }
.bn-centrada .bn-carrito { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 34px; }
.bn-centrada .bn-fila > a:last-child { grid-column: 3; grid-row: 1; justify-self: end; margin-right: -10px; }
.bn-centrada { padding-bottom: 6px; }
.bn-centrada .bn-buscador { display: none; }
.bn-centrada.busca-abierta .bn-buscador { display: block; margin: 4px auto 6px; animation: bn-bajar .18s ease-out; }
.bn-centrada .bn-buscador input { padding-right: 46px; }
.bn-centrada .bn-buscador input::-webkit-search-cancel-button { display: none; }
.bn-cerrar-busca { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--suave); font-size: 1rem; cursor: pointer; }
.bn-centrada.busca-abierta .bn-abrir-busca { background: rgba(255,255,255,.16); }
@keyframes bn-bajar { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bn-centrada.busca-abierta .bn-buscador { animation: none; } }

/* ---------------- Checkout: dirección de envío ---------------- */
.bloque-envio { display: grid; gap: 14px; background: #fbf8f4; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 12px; margin: 2px 0 14px; }
.bloque-envio[hidden] { display: none; }
.campo select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237A6450' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.campo select:focus { border-color: var(--color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color) 18%, transparent); outline: none; }
.aviso-envio { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--texto); background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px dashed #d8c9b6; }
