/* ═══════════════════════════════════════════════════════════
   NEGOCIOMAP · SISTEMA "WAZE" (dirección aprobada, mockups/direccion-waze.html)
   Mapa como lienzo, UI que flota, candy plano sobre crema.
   Texto sobre candy SIEMPRE en tinta índigo: es lo que pasa AA.
   Páginas del vecino: claras (sol de mediodía).
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Giro a blanco (referencia PedidosYa de Ariel, 2026-08-21): fondo
     blanco puro, cards blancas con sombra suave, insets gris clarito.
     El color vive solo en badges y acentos (naranja de marca, tinta). */
  --w-crema: #ffffff;          /* fondo de página */
  --w-crema-2: #e8e9ed;        /* bordes, separadores, asa */
  --w-marfil: #ffffff;         /* cards, sheet, drawer, tabbar */
  --w-gris: #f2f3f5;           /* insets: buscador, botones secundarios */
  --w-tinta: oklch(0.30 0.09 285);
  --w-tinta-2: oklch(0.48 0.05 285);
  --w-naranja: oklch(0.72 0.17 45);
  --w-naranja-2: oklch(0.90 0.06 55);
  --w-turquesa: oklch(0.80 0.10 200);
  --w-turquesa-2: oklch(0.92 0.045 200);
  --w-amarillo: oklch(0.87 0.15 92);
  --w-coral: oklch(0.70 0.16 20);
  --w-verde: oklch(0.76 0.15 150);
  --w-verde-2: oklch(0.93 0.05 150);
  --w-rojo: oklch(0.55 0.19 25);

  --w-sombra: 0 6px 18px oklch(0.30 0.09 285 / 0.14);
  --w-sombra-lg: 0 12px 32px oklch(0.30 0.09 285 / 0.20);
  --w-r: 22px; --w-r-sm: 14px; --w-r-full: 999px;

  --w-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --w-sans: "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* ── Base de página clara ── */
body.waze {
  margin: 0;
  background: var(--w-crema);
  color: var(--w-tinta);
  font-family: var(--w-sans);
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.waze h1, body.waze h2, body.waze h3, body.waze h4 { font-family: var(--w-display); font-weight: 800; }

/* ── Controles flotantes ── */
.w-redondo {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--w-marfil); color: var(--w-tinta);
  box-shadow: var(--w-sombra);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; position: relative;
}
.w-redondo .w-punto {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--w-r-full);
  background: var(--w-coral); color: var(--w-tinta);
  font-family: var(--w-display); font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.w-chip {
  font-family: var(--w-display); font-weight: 700; font-size: 13px;
  min-height: 44px; display: inline-flex; align-items: center; gap: 5px;
  padding: 0 16px; border: 1.5px solid var(--w-crema-2); cursor: pointer;
  background: var(--w-marfil); color: var(--w-tinta);
  border-radius: var(--w-r-full);
  white-space: nowrap;
}
.w-chip.on { background: var(--w-tinta); color: var(--w-marfil); }

.w-btn {
  font-family: var(--w-display); font-weight: 800; font-size: 14px;
  min-height: 44px; padding: 0 20px; border: none; cursor: pointer;
  border-radius: var(--w-r-full); box-shadow: var(--w-sombra);
  background: var(--w-naranja); color: var(--w-tinta);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.w-btn.verde { background: var(--w-verde); }
.w-btn.gris { background: var(--w-gris); color: var(--w-tinta-2); box-shadow: none; }
.w-btn.coral { background: var(--w-coral); }
.w-btn.bloque { width: 100%; }

/* ── Card genérica ── */
.w-card {
  background: var(--w-marfil);
  border-radius: var(--w-r);
  box-shadow: var(--w-sombra);
}

/* ── Tabs píldora ── */
.w-tabs {
  display: flex; background: var(--w-marfil);
  border-radius: var(--w-r-full); padding: 5px;
  box-shadow: var(--w-sombra); margin-bottom: 16px;
}
.w-tabs span {
  flex: 1; text-align: center; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--w-display); font-weight: 700; font-size: 12.5px;
  border-radius: var(--w-r-full); color: var(--w-tinta-2); cursor: pointer;
}
.w-tabs span.on { background: var(--w-tinta); color: var(--w-marfil); }

/* ── El vale-boleto ── */
.w-vale { overflow: hidden; margin-bottom: 16px; }
.w-vale .banda {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--w-amarillo);
  font-family: var(--w-display); font-weight: 800; font-size: 12px;
}
.w-vale.confirmado .banda { background: var(--w-verde); }
.w-vale.vencido .banda { background: var(--w-crema-2); color: var(--w-tinta-2); }
.w-vale .cuerpo { padding: 18px 16px; text-align: center; }
.w-vale .emoji-g { font-size: 40px; }
.w-vale h5 { font-family: var(--w-display); font-weight: 800; font-size: 19px; line-height: 1.15; margin: 6px 0 2px; }
.w-vale .donde { font-size: 12.5px; color: var(--w-tinta-2); font-weight: 700; }
.w-vale .codigo {
  font-family: ui-monospace, Consolas, monospace; font-weight: 700;
  font-size: 27px; letter-spacing: 0.12em;
  background: var(--w-gris); border-radius: var(--w-r-sm);
  border: 3px dashed var(--w-tinta-2);
  padding: 12px; margin: 14px 0 8px;
}
.w-vale .instr { font-size: 13px; color: var(--w-tinta-2); max-width: 30ch; margin: 0 auto; }
.w-vale .pie {
  display: flex; justify-content: space-between;
  padding: 10px 16px; background: var(--w-gris);
  font-family: var(--w-display); font-weight: 700; font-size: 12px; color: var(--w-tinta-2);
}

/* ── Trofeos (historial compacto) ── */
.w-trofeo {
  display: flex; align-items: center; gap: 11px;
  background: var(--w-marfil); border-radius: var(--w-r-sm);
  box-shadow: var(--w-sombra); padding: 11px 13px; margin-bottom: 9px;
}
.w-trofeo .m {
  width: 40px; height: 40px; flex: none; border-radius: 14px;
  background: var(--w-verde-2);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.w-trofeo.rev .m { background: var(--w-amarillo); }
.w-trofeo b { font-family: var(--w-display); font-weight: 800; font-size: 13.5px; display: block; line-height: 1.2; }
.w-trofeo small { font-size: 12px; color: var(--w-tinta-2); font-weight: 700; }
.w-trofeo .g { margin-left: auto; font-family: var(--w-display); font-weight: 800; font-size: 12px; color: var(--w-verde); white-space: nowrap; text-align: right; }

/* ── Portada: mapa total ── */
body.waze-mapa { overflow: hidden; }
.w-lienzo { position: fixed; inset: 0; }
.w-lienzo #map { position: absolute; inset: 0; height: 100%; width: 100%; }
.w-flota-top {
  position: absolute; top: 12px; left: 10px; right: 10px; z-index: 1100;
  display: flex; gap: 8px; align-items: center;
}
/* min-width: 0 es lo que permite que la fila de chips se achique y scrollee
   en vez de empujar (y pisar) a los botones redondos en pantallas angostas. */
.w-flota-top .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px; }
.w-flota-top .chips::-webkit-scrollbar { display: none; }

/* ── Íconos 3D (Fluent Emoji, /img/3d) ── */
.icono3d { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; }
.w-chip .icono3d { width: 22px; height: 22px; }
.w-redondo .icono3d { width: 24px; height: 24px; }
.w-fab .icono3d { width: 30px; height: 30px; }
.w-burbuja .icono3d { width: 20px; height: 20px; }
.w-menu .icono3d { width: 20px; height: 20px; }
.challenge-emoji .icono3d { width: 58px; height: 58px; }
.offer-card-image-placeholder .icono3d { width: 54px; height: 54px; }
.w-oferta .cara .icono3d { width: 30px; height: 30px; }

.w-fab {
  position: absolute; right: 14px; z-index: 1100;
  width: 64px; height: 64px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--w-naranja); color: var(--w-tinta);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: var(--w-sombra-lg);
}
.w-fab small { font-family: var(--w-display); font-weight: 800; font-size: 12px; line-height: 1; }

.w-sheet {
  /* bottom 62px: el sheet vive por encima de la barra inferior */
  position: absolute; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  background: var(--w-marfil);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px oklch(0.30 0.09 285 / 0.16);
  padding: 10px 14px 14px;
  max-height: 78vh; /* fallback para WebViews viejos sin dvh */
  max-height: 78dvh;
  display: flex; flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}
.w-sheet .asa {
  width: 44px; height: 5px; border-radius: var(--w-r-full);
  background: var(--w-crema-2); margin: 0 auto 10px; cursor: pointer; flex: none;
}
.w-busca {
  display: flex; align-items: center; gap: 10px;
  background: var(--w-gris); border-radius: var(--w-r-full);
  min-height: 48px; padding: 0 16px; margin-bottom: 8px; flex: none;
}
.w-busca input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--w-display); font-weight: 700; font-size: 14px;
  color: var(--w-tinta); min-width: 0;
}
.w-busca input::placeholder { color: var(--w-tinta-2); }
.w-sheet .lista { overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* plegado: solo asa + búsqueda + ~2 ofertas */
.w-sheet.plegado .lista { max-height: 168px; overflow: hidden; }

/* ofertas dentro del sheet */
.w-oferta {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 4px; cursor: pointer; border: none; background: none;
  width: 100%; text-align: left; font-family: var(--w-sans);
}
.w-oferta .cara {
  width: 46px; height: 46px; flex: none; border-radius: 16px;
  background: var(--w-naranja-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.w-oferta .tx { flex: 1; min-width: 0; }
.w-oferta .tx b { font-family: var(--w-display); font-weight: 800; font-size: 14.5px; display: block; line-height: 1.2; color: var(--w-tinta); }
.w-oferta .tx small { font-size: 12px; color: var(--w-tinta-2); font-weight: 700; }
.w-oferta .der { text-align: right; flex: none; }
.w-oferta .reloj { font-family: var(--w-display); font-weight: 800; font-size: 15px; color: oklch(0.58 0.15 45); display: block; line-height: 1.1; }
.w-pill-cupo {
  display: inline-block; font-family: var(--w-display); font-weight: 800; font-size: 12px;
  background: var(--w-verde-2); color: var(--w-tinta);
  border-radius: var(--w-r-full); padding: 2px 9px; margin-top: 3px;
}

/* pins burbuja (para divIcon de Leaflet) */
.w-burbuja {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--w-marfil); color: var(--w-tinta);
  border-radius: var(--w-r-full);
  padding: 7px 12px; box-shadow: var(--w-sombra);
  font-family: var(--w-display); font-weight: 800; font-size: 13px;
  white-space: nowrap; position: relative;
}
.w-burbuja::after {
  content: ""; position: absolute; left: 16px; bottom: -6px;
  width: 12px; height: 12px; background: inherit; border-radius: 3px;
  transform: rotate(45deg);
}
.w-burbuja.reto { background: var(--w-naranja); }
/* Negocio Pro: pin destacado — halo dorado y estrella, por encima del resto */
.w-burbuja.pro {
  border: 2.5px solid var(--w-amarillo);
  box-shadow: 0 0 0 3px oklch(0.87 0.15 92 / 0.35), var(--w-sombra-lg);
  z-index: 50;
}
/* Negocio Pro: un punto dorado antes del monograma (sin emoji en la interfaz). */
.w-burbuja.pro::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--oro, #c9a227); margin-right: 3px; vertical-align: middle;
}
.w-burbuja .cupito {
  background: var(--w-marfil); color: var(--w-tinta);
  font-size: 12px; border-radius: var(--w-r-full); padding: 1px 7px;
}

/* menú de cuenta (popover del botón redondo) */
.w-menu {
  position: absolute; top: 66px; right: 10px; z-index: 1300;
  background: var(--w-marfil); border-radius: var(--w-r);
  box-shadow: var(--w-sombra-lg); padding: 8px; min-width: 232px;
  /* nunca más alto que la pantalla: si no entra, scrollea */
  max-height: calc(100vh - 90px);
  max-height: calc(100dvh - 90px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.w-menu .saludo {
  display: block; padding: 10px 12px 8px;
  font-family: var(--w-display); font-weight: 800; font-size: 14px;
  color: var(--w-tinta); border-bottom: 2px solid var(--w-crema-2);
  margin-bottom: 6px;
}
.w-menu .separador { height: 2px; background: var(--w-crema-2); margin: 6px 4px; border: none; }
.w-menu a, .w-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: none; background: none; cursor: pointer;
  font-family: var(--w-display); font-weight: 700; font-size: 14px;
  color: var(--w-tinta); text-decoration: none; border-radius: var(--w-r-sm);
  text-align: left;
}
.w-menu a:hover, .w-menu button:hover { background: var(--w-gris); }

/* ── Barra inferior tipo Spotify ── */
.w-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1250;
  background: var(--w-marfil);
  border-top: 2px solid var(--w-crema-2);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(62px + env(safe-area-inset-bottom, 0px));
}
.w-tabbar button {
  flex: 1; min-width: 0; padding: 0; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  /* 12 px es el mínimo de la app; con 5 o 6 pestañas el rótulo se recorta antes de bajar de ahí.
     Sin relleno lateral: a 360 px con 6 pestañas (modo negocio) cada una mide 60 px y
     "Influencers" (57 px) entra completo; con 2 px de relleno quedaba "Influenc…". */
  font-family: var(--w-display); font-weight: 700; font-size: 12px; letter-spacing: -.01em;
  color: var(--w-tinta-2);
}
.w-tabbar button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tabbar button img { width: 26px; height: 26px; opacity: 0.75; }
.w-tabbar button.on { color: var(--w-tinta); }
.w-tabbar button.on img { opacity: 1; }
.w-tabbar button.on::after {
  content: ""; width: 18px; height: 3px; border-radius: 2px;
  background: var(--w-naranja); margin-top: 1px;
}
.w-tabbar .crear img { width: 30px; height: 30px; }

/* ── Drawer lateral izquierdo tipo Spotify ── */
.w-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1390;
  background: oklch(0.30 0.09 285 / 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.w-drawer-backdrop.abierto { opacity: 1; pointer-events: auto; }
.w-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1400;
  width: min(310px, 84vw);
  background: var(--w-marfil);
  box-shadow: var(--w-sombra-lg);
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.w-drawer.abierto { transform: translateX(0); }
.w-drawer .cabecera {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 18px 16px; border-bottom: 2px solid var(--w-crema-2);
}
.w-drawer .cabecera .quien { min-width: 0; }
.w-drawer .cabecera b { font-family: var(--w-display); font-weight: 800; font-size: 16px; display: block; color: var(--w-tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-drawer .cabecera small { font-size: 12px; color: var(--w-tinta-2); font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-drawer .grupo {
  padding: 10px 12px 2px; font-family: var(--w-display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.06em; color: var(--w-tinta-2); text-transform: uppercase;
}
.w-drawer a, .w-drawer button.item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 18px; border: none; background: none; cursor: pointer;
  font-family: var(--w-display); font-weight: 700; font-size: 14.5px;
  color: var(--w-tinta); text-decoration: none; text-align: left;
}
.w-drawer a:active, .w-drawer button.item:active { background: var(--w-gris); }
.w-drawer .icono3d { width: 22px; height: 22px; }
.w-drawer .modo {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 18px; border: none; background: none; cursor: pointer;
  font-family: var(--w-display); font-weight: 700; font-size: 14px;
  color: var(--w-tinta); text-align: left;
}
.w-drawer .modo .check { margin-left: auto; font-size: 15px; color: var(--w-verde); visibility: hidden; }
.w-drawer .modo.activo { background: var(--w-gris); border-radius: 0; }
.w-drawer .modo.activo .check { visibility: visible; }
.w-drawer .separador { height: 2px; background: var(--w-crema-2); margin: 8px 14px; border: none; }

/* ── Panel Buscar (pantalla completa sobre el mapa) ── */
.w-buscar-panel {
  position: fixed; inset: 0; bottom: 62px; z-index: 1240;
  background: var(--w-crema);
  display: none; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.w-buscar-panel.abierto { display: flex; }
.w-buscar-panel .w-busca { background: var(--w-marfil); box-shadow: var(--w-sombra); flex: none; }
.w-buscar-panel h2 {
  font-family: var(--w-display); font-weight: 800; font-size: 16px;
  margin: 18px 2px 10px; color: var(--w-tinta);
}
.w-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.w-cat-card {
  border: none; cursor: pointer;
  background: var(--w-marfil); border-radius: var(--w-r-sm);
  box-shadow: var(--w-sombra); padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--w-display); font-weight: 800; font-size: 12.5px; color: var(--w-tinta);
}
.w-cat-card img { width: 38px; height: 38px; }
.w-cat-card.on { outline: 3px solid var(--w-naranja); }
.w-buscar-panel .resultados { margin-top: 14px; }

/* ── Pestaña Tienda: "Tienda cerca de ti" (fase 2, 2026-10-16) ── */
/* Mismo panel que Buscar; la cuadrícula y la ficha vienen de cuadricula.css. */
.tc-panel { padding-bottom: 24px; }
.tc-cab { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
.tc-cab .quien { flex: 1; min-width: 0; }
.tc-cab h2 { margin: 0; font-size: 20px; font-weight: 500; }
.tc-cab small { display: block; font-size: 13px; color: var(--w-tinta-2); margin-top: 2px; }
.tc-aviso { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--w-r-sm); background: var(--w-marfil); box-shadow: var(--w-sombra); font-size: 13px; color: var(--w-tinta-2); }
#tc-cuerpo .cg-acciones { margin-top: 12px; }
#tc-cuerpo .spinner { margin: 24px auto; }

/* ── Cards estilo referencia (filas de oferta con logo + datos + ⭐) ── */
.py-card {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%; padding: 13px 4px; border: none; background: none;
  border-bottom: 1.5px solid var(--w-gris);
  cursor: pointer; text-align: left; font-family: var(--w-sans);
}
.py-card .logo {
  width: 58px; height: 58px; flex: none; border-radius: 16px;
  background: var(--w-gris); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.py-card .logo img.foto { width: 100%; height: 100%; object-fit: cover; }
.py-card .logo .icono3d { width: 34px; height: 34px; }
.py-card .cuerpo { flex: 1; min-width: 0; }
.py-card .titulo { font-family: var(--w-display); font-weight: 800; font-size: 15px; color: var(--w-tinta); line-height: 1.2; }
.py-card .negocio { font-size: 12.5px; font-weight: 700; color: var(--w-tinta-2); margin-top: 1px; }
.py-card .datos { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--w-tinta-2); }
.py-card .der { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.py-estrella { font-family: var(--w-display); font-weight: 800; font-size: 13.5px; color: var(--w-tinta); white-space: nowrap; }
.py-estrella::before { content: "★ "; color: #f5a623; }
.py-estrella small { font-weight: 700; font-size: 12px; color: var(--w-tinta-2); }
.py-estado { font-size: 12px; font-weight: 800; }
.py-estado.abierto { color: oklch(0.55 0.14 155); }
.py-estado.cerrado { color: var(--w-rojo); }

/* badges chiquitos de color (el color informa, no decora) */
.py-badge {
  display: inline-block; font-family: var(--w-display); font-weight: 800;
  font-size: 12px; border-radius: var(--w-r-full); padding: 3px 9px; white-space: nowrap;
}
.py-badge.amarillo { background: var(--w-amarillo); color: var(--w-tinta); }
.py-badge.verde { background: var(--w-verde-2); color: oklch(0.4 0.1 160); }
.py-badge.pro { background: var(--w-naranja); color: var(--w-tinta); }

/* ── Grilla de productos: 3 por fila, como la referencia ── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.prod-tile { border: none; background: none; padding: 0; text-align: left; cursor: pointer; font-family: var(--w-sans); }
.prod-tile .foto {
  position: relative; background: var(--w-gris); border-radius: var(--w-r-sm);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prod-tile .foto img.real { width: 100%; height: 100%; object-fit: cover; }
.prod-tile .foto .icono3d { width: 46px; height: 46px; }
.prod-tile .off { position: absolute; top: 6px; left: 6px; }
.prod-tile .nombre {
  font-weight: 700; font-size: 12.5px; color: var(--w-tinta); margin-top: 6px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-tile .precio { font-family: var(--w-display); font-weight: 800; font-size: 14.5px; color: var(--w-tinta); }
.prod-tile .antes { font-size: 12px; color: var(--w-tinta-2); text-decoration: line-through; font-weight: 700; margin-left: 5px; }
.prod-tile .mini-est { font-size: 12px; font-weight: 800; color: var(--w-tinta-2); }
.prod-tile .mini-est::before { content: "★ "; color: #f5a623; }

/* estrellas interactivas del detalle de producto */
.estrellas-voto { display: flex; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.estrellas-voto button { border: none; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: #d9dadf; padding: 2px; }
.estrellas-voto button.on { color: #f5a623; }
.voto-nota { text-align: center; font-size: 12px; font-weight: 700; color: var(--w-tinta-2); }

/* ── Avatar (foto de Google o propia) ── */
.w-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; display: inline-block;
  border: 2px solid var(--w-marfil); box-shadow: var(--w-sombra);
  vertical-align: middle;
}
.w-avatar.chico { width: 24px; height: 24px; margin-right: 6px; }
.w-avatar.grande { width: 72px; height: 72px; border-width: 3px; }

/* ── MapLibre GL: popup y controles con el look candy ── */
.maplibregl-popup-content {
  background: var(--w-marfil); color: var(--w-tinta);
  border-radius: var(--w-r-sm); box-shadow: var(--w-sombra-lg);
  font-family: var(--w-sans); font-weight: 600;
  padding: 12px 14px;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--w-marfil); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--w-marfil); }
.maplibregl-ctrl-group {
  border-radius: var(--w-r-sm); box-shadow: var(--w-sombra);
  background: var(--w-marfil); overflow: hidden;
}
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { font-size: 12px; }

/* modal del desafío, versión clara */
body.waze .modal-overlay { background: oklch(0.30 0.09 285 / 0.45); backdrop-filter: none; }
body.waze .modal {
  background: var(--w-marfil); color: var(--w-tinta);
  border: none; border-radius: var(--w-r);
  box-shadow: var(--w-sombra-lg);
}
body.waze .modal h2, body.waze .modal h3 { font-family: var(--w-display); }
body.waze .btn.btn-primary {
  background: var(--w-naranja); color: var(--w-tinta);
  border: none; border-radius: var(--w-r-full);
  font-family: var(--w-display); font-weight: 800;
  box-shadow: var(--w-sombra);
}
body.waze .btn.btn-secondary {
  background: var(--w-crema); color: var(--w-tinta-2);
  border: none; border-radius: var(--w-r-full);
  font-family: var(--w-display); font-weight: 700;
}

/* toasts claros */
body.waze .toast {
  background: var(--w-tinta); color: var(--w-marfil);
  border: none; border-radius: var(--w-r-full);
  font-family: var(--w-display); font-weight: 700;
  box-shadow: var(--w-sombra-lg);
}

/* banner de contexto del login (retorno) */
.w-contexto {
  background: var(--w-amarillo); color: var(--w-tinta);
  border-radius: var(--w-r-sm); padding: 12px 14px;
  font-size: 13.5px; margin-bottom: 14px;
  font-family: var(--w-sans); font-weight: 600;
}
.w-contexto b { font-family: var(--w-display); font-weight: 800; }

/* utilidades */
.w-oculto { display: none !important; }

/* ── Ofertas dentro del sheet: de tarjeta a fila ── */
body.waze .offer-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 11px; align-items: center;
  background: none; border: none; box-shadow: none;
  padding: 9px 4px; margin: 0; cursor: pointer;
  border-radius: var(--w-r-sm);
}
body.waze .offer-card:hover { background: var(--w-crema); transform: none; }
body.waze .offer-card-image,
body.waze .offer-card-image-placeholder {
  width: 46px; height: 46px; border-radius: 16px;
  object-fit: cover; font-size: 22px;
  background: var(--w-naranja-2);
  display: flex; align-items: center; justify-content: center;
}
body.waze .offer-card-badge { display: none; }
body.waze .offer-card-body { padding: 0; min-width: 0; }
body.waze .offer-card-business { font-size: 12px; color: var(--w-tinta-2); font-weight: 700; }
body.waze .offer-card-title {
  font-family: var(--w-display); font-weight: 800; font-size: 14.5px;
  color: var(--w-tinta); line-height: 1.2;
}
body.waze .offer-card-product { display: none; }
body.waze .offer-card-footer { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
body.waze .offer-timer {
  font-family: var(--w-display); font-weight: 800; font-size: 12px;
  color: oklch(0.58 0.15 45); background: none; padding: 0; border: none;
}
body.waze .stock-display, body.waze .stock-bar-container { font-size: 12px; }
body.waze .distance-badge {
  background: var(--w-turquesa-2); color: var(--w-tinta);
  border-radius: var(--w-r-full); padding: 1px 8px; font-size: 12px; font-weight: 800;
}
body.waze .empty-state { color: var(--w-tinta-2); text-align: center; padding: 20px; }
body.waze .spinner { border-color: var(--w-crema-2); border-top-color: var(--w-naranja); }

/* popups de Leaflet en claro */
body.waze .leaflet-popup-content-wrapper {
  background: var(--w-marfil); color: var(--w-tinta);
  border-radius: var(--w-r-sm); box-shadow: var(--w-sombra-lg);
  font-family: var(--w-sans);
}
body.waze .leaflet-popup-tip { background: var(--w-marfil); }

/* el panel de notificaciones sobre el mapa claro */
body.waze #notif-panel {
  background: var(--w-marfil); color: var(--w-tinta);
  border: none; border-radius: var(--w-r); box-shadow: var(--w-sombra-lg);
}
body.waze #notif-panel .notif-encabezado { border-color: var(--w-crema-2); }
body.waze #notif-panel .notif-item { border-color: var(--w-crema-2); }
body.waze #notif-panel .notif-item.sin-leer { background: var(--w-naranja-2); }
body.waze #notif-panel .notif-cuerpo p { color: var(--w-tinta-2); }
body.waze #notif-panel .notif-cuerpo time { color: var(--w-tinta-2); }
body.waze #notif-panel .notif-ico { background: var(--w-crema); border: none; }

/* ── Mapa estilo Simpson: lugares conocidos (mapa-simpson.js) ─────────────────
   Los colores de caricatura son del mapa, no de la paleta de la app: van fijos.
   Los carteles no reciben toques; los negocios quedan siempre encima. */
.simpson-lugar, .simpson-cristo { pointer-events: none; z-index: 1; }
.maplibregl-marker:not(.simpson-lugar):not(.simpson-cristo) { z-index: 2; }
.simpson-lugar { display: flex; flex-direction: column; align-items: center; }
.simpson-cartel {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #FED90F; color: #2B2A33; border: 2px solid #2B2A33; border-radius: 999px;
  padding: 5px 12px 5px 7px; font-weight: 600; font-size: 13px; line-height: 1.1;
  box-shadow: 0 6px 14px rgba(43,42,51,.28);
}
.simpson-cartel svg { width: 20px; height: 20px; flex: none; }
.simpson-palo { width: 2px; height: var(--alto, 22px); background: #2B2A33; }
.simpson-palo::after {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%;
  margin: calc(var(--alto, 22px) - 2px) 0 0 -4px; background: #2B2A33; box-shadow: 0 0 0 2px #fff;
}
.simpson-lejos1 .simpson-lugar.n1, .simpson-lejos2 .simpson-lugar.n2 { visibility: hidden; }
/* El Cristo crece con el zoom (--cristo lo pone mapa-simpson.js). */
.simpson-cristo { width: var(--cristo, 52px); line-height: 0; filter: drop-shadow(0 4px 6px rgba(43,42,51,.25)); }
.simpson-cristo svg { width: 100%; height: auto; display: block; }

/* Referencia en la moneda del visitante ("≈ US$ 3,85"): el precio que vale es
   el del negocio; esto es solo una ayuda para quien viene de otro país. */
.ref-moneda { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* Enlaces al perfil del negocio (videos y catálogo) desde el mapa y los detalles. */
.popup-perfil, .det-perfil { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--acc); text-decoration: none; }
.det-perfil::after, .popup-perfil::after { content: " ›"; }
