      body {
        font-family: "Segoe UI", sans-serif;
        background-color: #f8f9fa;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
      }

      .mask {
        display: none;
        width: 100%;
        height: 100%;
        position: fixed;
        background-color: rgba(7, 7, 41, 0.548);
        z-index: 2;
      }

      .mask.active {
        display: block;
      }

      .sliderbar {
        position: fixed;
        top: 0;
        transform: translateX(-300px);
        transition: all 0.25s;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 3;
        background-color: white;
      }

      .marg-20 {
        margin: 20px;
      }

      .sliderbar.active {
        transform: translateX(0px);
      }

      header {
        width: 100%;
        height: 80px;
        background-color: rgb(255, 123, 0);
        display: flex;
        flex-direction: row;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 5;
      }

      

      .menu-sliderbar {
        width: 60px;
        height: 60px;
        top: 5px;
        position: fixed;
        left: 20px;
        border-radius: 50%;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
      }

      .brand {
        width: auto;
        border-bottom: 1px solid rgb(255, 123, 0);
        margin-top: 30px;
        display: flex;
        flex-direction: row;
        align-items: center;
      }

      .icon-brand {
        width: 100px;
        height: ma;
      }

      .name-brand {
        position: relative;
        font-size: 22px;
        color: #000;
        font-weight: bold;
      }

      .menu-options {
        width: 100%;
      }

      .menu-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .menu-item {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        color: #000;
        cursor: pointer;
      }

      .menu-item:hover {
        background: rgba(255, 255, 255, 0.05);
      }

      .menu-icon {
        width: 22px;
        filter: invert(0);
        margin-right: 10px;
      }

      .otros-icon {
        filter: invert(1) !important;
      }

      /* Flecha */
      .arrow {
        margin-left: auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid #ff7b00;
        border-bottom: 2px solid #ff7b00;
        transform: rotate(45deg);
        transition: transform 0.25s;
      }

      .menu-group.active .arrow {
        transform: rotate(225deg);
      }

      /* Submenú */
      .submenu {
        background: rgba(255, 255, 255, 0.03);
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: max-height 0.25s ease;
      }

      .submenu a {
        color: #000;
        padding: 12px 48px;
        text-decoration: none;
      }

      .submenu a:hover {
        background: rgba(255, 255, 255, 0.07);
      }

      .center {
        width: 95%;
        margin: 0 auto;
        margin-top: 30px;
      }

      .noticias {
        border-radius: 20px;
        width: 100%;
        height: 400px;
        position: relative;
        z-index: 1;
      }

      .noticia-card {
        position: relative;
        width: 100%;
        height: 350px;
        border-radius: 18px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.25s ease, box-shadow 0.25s;
      }

      .noticia-card:hover {
        transform: scale(1.02);
        box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.25);
      }

      .noticia-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      /* Difuminado */
      .fade {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 0.85) 100%
        );
      }

      /* Título */
      .titulo {
        position: absolute;
        bottom: 35px;
        left: 15px;
        right: 15px;
        color: white;
        font-size: 1.3rem;
        font-weight: bold;
        z-index: 10;
      }

      /* Texto de instrucción */
      .ver-mas {
        position: absolute;
        bottom: 10px;
        z-index: 1;
        left: 15px;
        right: 15px;
        color: #f2f2f2;
        font-size: 0.9rem;
        opacity: 0.8;
      }

      .menu-categorias {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 45px;
        padding: 25px 20px;
        text-align: center;
        justify-content: center;
      }

      .categoria {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: transform 0.2s ease;
      }

      .categoria:hover {
        transform: scale(1.07);
      }

      .icono-circulo {
        width: 80px;
        height: 80px;
        background: rgb(255, 123, 0); /* naranja estilo app */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.25s ease;
      }

      .icmenu {
         box-shadow: none !important;
      }

      .icono-circulo img {
        width: 45px;
        height: 45px;
        filter: brightness(0) invert(1); /* vuelve icono blanco */
      }

      .categoria span {
        margin-top: 10px;
        font-size: 15px;
        font-weight: bold;
        color: #333;
      }

      


      /* 📱 MÓVILES — 4 categorías por fila */
@media (max-width: 600px) {
  .menu-categorias {
    gap: 20px;
    padding: 20px 10px;
  }

  .categoria {
    width: calc(25% - 10px);
  }

  .icono-circulo {
    width: 60px;
    height: 60px;
  }

  .icono-circulo img {
    width: 32px;
    height: 32px;
  }

  .categoria span {
    font-size: 13px;
  }
}

/* 📲 TABLETS — 5 categorías por fila */
@media (min-width: 601px) and (max-width: 1024px) {
  .menu-categorias {
    gap: 30px;
  }

  .categoria {
    width: calc(20% - 15px);
  }

  .icono-circulo {
    width: 70px;
    height: 70px;
  }

  .icono-circulo img {
    width: 38px;
    height: 38px;
  }

  .categoria span {
    font-size: 14px;
  }
}

/* 🖥️ ESCRITORIO — se ven todas en fila distribuidas */
@media (min-width: 1025px) {
  .menu-categorias {
    gap: 45px;
    padding: 30px 20px;
  }

  .categoria {
    width: auto;
  }

  .icono-circulo {
    width: 80px;
    height: 80px;
  }

  .icono-circulo img {
    width: 45px;
    height: 45px;
  }

  .categoria span {
    font-size: 15px;
  }
}

      /* 🎨 COLORES PSICOLÓGICOS */
      .tienda .icono-circulo {
        background: #ffc300;
      }
      .carniceria .icono-circulo {
        background: #e63946;
      }
      .polleria .icono-circulo {
        background: #f77f00;
      }
      .panaderia .icono-circulo {
        background: #c69c72;
      }
      .comida .icono-circulo {
        background: #fb5607;
      }
      .verduleria .icono-circulo {
        background: #2a9d8f;
      }
      .farmacia .icono-circulo {
        background: #1d71b8;
      }
      .postres .icono-circulo {
        background: #ff4d8d;
      }
      .otros .icono-circulo {
        background: #8e44ad;
      }

      .categoria.seleccionada .icono-circulo {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3),
          0 0 20px rgba(255, 255, 255, 0.7);
        transform: scale(1.12);
        border: 3px solid #001aff;
      }

      .categoria.seleccionada span {
        color: #000;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
      }

/* 🔎 Buscador */
.buscador-container {
  position: sticky;
  top: 80px;
  z-index: 1;
  background: white;
  padding: 10px 16px; /* 🔥 reducido para móviles */
  box-sizing: border-box; /* evita desbordes */
}

/* Wrapper */
.buscador-wrapper {
  width: 100%;
  max-width: 650px;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Icono */
.buscador-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Input */
.buscador-wrapper input {
  width: 100%;
  padding: 12px 14px;
  padding-left: 40px; /* espacio para el icono */
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  outline: none;
  background: white;
  box-sizing: border-box; /* 🔥 evita que el padding expanda el input */
  transition: all 0.25s ease;
  margin: 0;
}

/* Focus */
.buscador-wrapper:focus-within input {
  border-color: #ff7b00;
  box-shadow: 0 4px 20px rgba(255, 128, 0, 0.22);
}

/* Icono animado en focus */
.buscador-wrapper:focus-within i {
  color: #ff7b00;
}



      .negocios-cards {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
      }

      /* 🏪 CARD DEL NEGOCIO */
      .negocio-card {
        width: 300px;
        cursor: pointer;
        background: #fff;
        margin: 20px;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease;
      }

      .negocio-card:hover {
        transform: scale(1.02);
      }

      .negocio-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
      }

      .negocio-info {
        padding: 15px 20px;
      }

      .negocio-nombre {
        font-size: 20px;
        margin-bottom: 8px;
        font-weight: 700;
      }

      .negocio-descripcion {
        font-size: 15px;
        color: #555;
        margin-bottom: 7px;
        margin-top: 7px;
        line-height: 1.4;
      }

      /* 🔘 BOTÓN “Ver productos” */
      .btn-productos {
        width: 100%;
        padding: 12px;
        background: #ff7b00;
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.25s;
      }

      .btn-productos:hover {
        background: #e86d00;
        transform: translateY(-2px);
      }


      /* 📱 MÓVILES — 2 CARDS POR FILA */
@media (max-width: 600px) {
  .negocios-cards {
    justify-content: space-between;
    
  }

  .negocio-card {
    width: calc(50% - 10px);
    margin: 10px 0;
  }

  .negocio-nombre {
    font-size: 16px;
  }

  .negocio-descripcion {
    font-size: 13px;
  }

  .btn-productos {
    font-size: 14px;
    padding: 10px;
  }
}

/* 📲 TABLETS — 3 CARDS POR FILA */
@media (min-width: 601px) and (max-width: 1024px) {
  .negocio-card {
    width: calc(30.33% - 20px);
  }

  .negocio-nombre {
    font-size: 18px;
  }

  .negocio-descripcion {
    font-size: 14px;
  }
}

/* 🖥️ ESCRITORIO — 4 CARDS POR FILA (si quieres mantenerlo) */
@media (min-width: 1025px) {
  .negocio-card {
    width: 260px; /* ajustable */
  }
}


      .footer {
        background: #111;
        color: #ddd;
        padding: 40px 20px 20px;
        font-family: "Segoe UI", sans-serif;
        margin-top: 40px;
      }

      .footer-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: auto;
      }

      .footer-section h3 {
        font-size: 22px;
        color: #fff;
        margin-bottom: 10px;
      }

      .footer-section h4 {
        font-size: 18px;
        color: #fff;
        margin-bottom: 10px;
      }

      .footer-section p {
        opacity: 0.8;
        line-height: 1.5;
      }

      .footer-section ul {
        list-style: none;
        padding: 0;
      }

      .footer-section ul li {
        margin-bottom: 8px;
      }

      .footer-section ul li a {
        text-decoration: none;
        color: #bbb;
        transition: 0.2s;
      }

      .footer-section ul li a:hover {
        color: #fff;
      }

      .btn-app {
        background: #ff6b00;
        color: #fff;
        border: none;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        margin-bottom: 15px;
        transition: 0.25s;
      }

      .btn-app:hover {
        background: #ff8a34;
      }

      .footer-social a {
        display: inline-block;
        margin-right: 10px;
        font-size: 20px;
        color: #fff;
        transition: 0.2s;
      }

      .footer-social a:hover {
        color: #ff6b00;
        transform: translateY(-2px);
      }

      .footer-bottom {
        text-align: center;
        border-top: 1px solid #222;
        margin-top: 25px;
        padding-top: 15px;
        opacity: 0.7;
        font-size: 14px;
      }

      .negocio-card {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
      }

    .negocio-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: 0.3s ease;
}

.negocio-card.cerrado {
  opacity: 0.7;
}

.negocio-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Cinta de "CERRADO" */
.estado-cerrado {
  display: none; /* por defecto no se muestra */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(200, 0, 0, 0.85);
  color: white;
  text-align: center;
  padding: 6px 0;
  font-weight: bold;
  font-size: 15px;
}

/* Mostrar la cinta si está cerrado */
.negocio-card.cerrado .estado-cerrado {
  display: block;
}

/* Ocultar botón cuando está cerrado */
.negocio-card.cerrado .btn-productos {
  display: none;
}

/* Leyenda de horario */
.horario-cerrado {
  display: none;
  font-size: 14px;
  margin-top: 6px;
  color: #b30000;
  font-weight: bold;
}

/* Mostrar leyenda solo si está cerrado */
.negocio-card.cerrado .horario-cerrado {
  display: block;
}



/* ------------ BOTÓN FLOTANTE DEL CARRITO ------------ */
.cart-button {
  position: fixed;
  right: 20px;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}



/* ------------------------------- */
/* 📱 Móviles chicos (pantallas pequeñas) */
/* ------------------------------- */
@media (max-width: 480px) {
  .cart-button {
    width: 50px;
    height: 50px;
    right: 18px;
    font-size: 22px;
  }

  .cart-count {
    font-size: 11px;
    padding: 2px 6px;
  }
}


/* ------------------------------- */
/* 📱 Móviles grandes / tablets verticales */
/* ------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
  .cart-button {
    width: 60px;
    height: 60px;
    right: 22px;
    font-size: 28px;
  }

  .cart-count {
    font-size: 12px;
  }
}


/* ------------------------------- */
/* 💻 Tablets horizontales / Escritorio */
/* ------------------------------- */
@media (min-width: 769px) {
  .cart-button {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}

.cart-button .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: white;
  color: #ff4d4d;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* ------------ PANEL LATERAL DEL CARRITO ------------ */
.cart-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 350px;
  height: 100%;
  background: white;
  z-index: 1500;
  box-shadow: -4px 0 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.cart-panel.open {
  right: 0;
}

/* ------------ ENCABEZADO ------------ */
.cart-header {
  padding: 20px;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
}

.close-cart {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* ------------ ITEMS ------------ */
.cart-items {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
}

.empty-cart {
  text-align: center;
  color: gray;
  margin-top: 20px;
}

/* ------------ FOOTER ------------ */
.cart-footer {
  padding: 20px;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 18px;
}

.btn-checkout {
  width: 100%;
  background: #ff4d4d;
  color: white;
  padding: 12px;
  border: none;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

.color-brand {
    background-color:#ff7b00  !important;
}


.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 90; /* La máscara queda en medio */
}

.mask.active {
  display: block;
}

/* MENÚ (sidebar) */
.sliderbar {
  position: fixed;
  left: -260px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #fff;
  z-index: 90; /* DEBAJO de mask */
  transition: 0.3s;
}

.sliderbar.active {
  left: 0;
}

.close-sidebar {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  background-color: #ffffff22;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.close-sidebar i {
  color: #000;
  font-size: 22px;
}

.close-sidebar:hover {
  background-color: #ffffff44;
}


/* CARRITO (panel derecho) */
.cart-panel {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  transition: 0.3s;
  z-index: 120; /* ENCIMA de mask */
}

.cart-panel.open {
  right: 0;
}




/* ==========================
   MENU DELIVERY (SIDEBAR)
   ========================== */

/* Contenedor del nav */
#menuOptions {
  padding: 12px 10px 18px;
}

/* Grupo */
#menuOptions .menu-group {
  border: 0;
  margin: 10px 8px;
  border-radius: 16px;
  overflow: hidden;

  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

/* Header clickable */
#menuOptions .menu-item {
  padding: 14px 14px;
  gap: 10px;
  user-select: none;

  /* “delivery feel” */
  background:
    linear-gradient(180deg, rgba(255,123,0,.08), rgba(255,123,0,.00));
}

/* Hover */
#menuOptions .menu-item:hover {
  background:
    linear-gradient(180deg, rgba(255,123,0,.12), rgba(255,123,0,.02));
}

/* Icono de categoria */
#menuOptions .menu-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255,123,0,.14);
  border: 1px solid rgba(255,123,0,.18);
  filter: none;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Texto categoria */
#menuOptions .menu-item span {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
  letter-spacing: .2px;
}

/* Flecha modernita */
#menuOptions .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(17,24,39,.45);
  border-bottom: 2px solid rgba(17,24,39,.45);
  transform: rotate(45deg);
  transition: transform .22s ease, border-color .22s ease;
}

/* Estado abierto */
#menuOptions .menu-group.active {
  border: 1px solid rgba(255,123,0,.35);
  box-shadow: 0 14px 36px rgba(255,123,0,.10);
}

#menuOptions .menu-group.active .menu-item {
  background:
    linear-gradient(180deg, rgba(255,123,0,.18), rgba(255,123,0,.04));
}

#menuOptions .menu-group.active .arrow {
  transform: rotate(225deg);
  border-right-color: rgba(255,123,0,.95);
  border-bottom-color: rgba(255,123,0,.95);
}

/* Submenu */
#menuOptions .submenu {
  background: #fff;
  padding: 6px 10px 12px;
  gap: 6px;

  /* tu animación por max-height ya la tienes */
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Links del submenu (tiendas) */
#menuOptions .submenu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(17,24,39,.03);
  border: 1px solid rgba(17,24,39,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

/* Iconito “pin” a la derecha (delivery vibe) */
#menuOptions .submenu a::after {
  content: "📍";
  opacity: .55;
  font-size: 14px;
}

/* Hover */
#menuOptions .submenu a:hover {
  background: rgba(255,123,0,.10);
  border-color: rgba(255,123,0,.22);
  transform: translateY(-1px);
}

/* Tap (mobile) */
#menuOptions .submenu a:active {
  transform: scale(.99);
}

/* “Ver tiendas” más discreto */
#menuOptions .submenu a[style*="opacity"] {
  background: rgba(17,24,39,.02);
  font-weight: 800;
}
#menuOptions .submenu a[style*="opacity"]::after {
  content: "➡️";
  opacity: .55;
}

/* Mejor toque en móvil */
@media (max-width: 420px) {
  #menuOptions { padding: 10px 8px 16px; }
  #menuOptions .menu-group { margin: 8px 6px; border-radius: 14px; }
  #menuOptions .menu-item span { font-size: 13.5px; }
  #menuOptions .submenu a { font-size: 13px; padding: 10px 11px; }
}

/* Icon badge con color dinámico desde cat.color */
#menuOptions .menu-icon-badge{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  place-items: center;
  justify-content: center;
  flex: 0 0 auto;

  background: var(--catColor, #ff7b00);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}

/* El SVG/PNG del icono encima */
#menuOptions .menu-icon-badge .menu-icon{
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  margin: 0;

  /* para que el icono se vea blanco sobre color */
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* ===== MENU LATERAL MINIMAL (Delivery) ===== */
#menuOptions{
  padding: 10px 10px 14px;
}

#menuOptions .menu-group{
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#menuOptions .menu-item.dropdown{
  width: 100%;
  border: 0;
  background: transparent;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 10px;
  border-radius: 14px;

  color: #111827;
  cursor: pointer;
  text-align: left;

  transition: background .15s ease, transform .12s ease;
}

#menuOptions .menu-item.dropdown:hover{
  background: rgba(17,24,39,.04);
}

#menuOptions .menu-item.dropdown:active{
  transform: scale(.995);
}

/* Icono con color dinámico */
#menuOptions .menu-icon-badge{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  background: var(--catColor, #ff7b00);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.35);
}

#menuOptions .menu-icon-badge .menu-icon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* icono blanco */
}

/* Texto */
#menuOptions .menu-text{
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

#menuOptions .menu-title{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#menuOptions .menu-sub{
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flecha más pro */
#menuOptions .arrow{
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(17,24,39,.45);
  border-bottom: 2px solid rgba(17,24,39,.45);
  transform: rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .8;
}

/* Active */
#menuOptions .menu-group.active .menu-item.dropdown{
  background: rgba(17,24,39,.04);
}

#menuOptions .menu-group.active .arrow{
  transform: rotate(225deg);
  opacity: 1;
}

/* Submenu: chips */
#menuOptions .submenu{
  padding: 0 10px 12px 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  max-height: 0;
  flex-direction: row;
  overflow: hidden;
  transition: max-height .22s ease;
}

#menuOptions .submenu a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;

  background: rgba(17,24,39,.04);
  border: 1px solid rgba(17,24,39,.06);

  color: #111827;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;

  transition: background .15s ease, transform .12s ease;
}

#menuOptions .submenu a:hover{
  background: rgba(255,123,0,.10);
  border-color: rgba(255,123,0,.18);
}

#menuOptions .submenu a:active{
  transform: scale(.99);
}

/* "Ver tiendas" (cuando no hay tiendas) */
#menuOptions .submenu a[style*="opacity"]{
  background: transparent;
  border-style: dashed;
  opacity: 1 !important;
}

/* Ajuste mobile */
@media (max-width: 480px){
  #menuOptions .menu-item.dropdown{ padding: 11px 8px; }
  #menuOptions .menu-icon-badge{ width: 36px; height: 36px; border-radius: 13px; }
  #menuOptions .submenu{ padding-left: 20px; }
}
.submenu { display: flex; } /* que nunca quede none por estilos viejos */

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.footer-staff-link{
  font-size:12px;
  opacity:.55;
  text-decoration:none;
  color: inherit; /* o el color que uses en footer */
  white-space:nowrap;
}

.footer-staff-link:hover{
  opacity:1;
  text-decoration:underline;
}

.disp-bar{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.2;
  border: 1px solid rgba(0,0,0,.06);
}

/* OK */
.disp-ok{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.18);
}

/* LOW */
.disp-low{
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.20);
}

/* OUT */
.disp-out{
  background: rgba(185,28,28,.10);
  border-color: rgba(185,28,28,.18);
}

/* NOT AVAILABLE */
.disp-na{
  background: rgba(107,114,128,.10);
  border-color: rgba(107,114,128,.18);
}

/* STORE CLOSED */
.disp-closed{
  background: rgba(17,24,39,.10);
  border-color: rgba(17,24,39,.18);
}

/* Botones +/- del counter */
.mcc-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Si quieres que el + “desaparezca” cuando llegue al máximo */
.mcc-btn.is-hidden{
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== Modal imagen sin panel (solo imagen) ===== */
.qp-img-dialog{
  width: auto;
  max-width: 92vw;
  margin: 1rem auto;
}

.qp-img-modal{
  border: 0;
  background: transparent;
  border-radius: 18px;
  overflow: visible;
  box-shadow: none;
}

.qp-img-wrap{
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  overflow: hidden;
  border-radius: 18px;
  touch-action: none; /* evita zoom/scroll del navegador (clave) */
}

.qp-img{
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.qp-img-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 5;
}
.qp-img-close:hover{ background: rgba(0,0,0,.65); }

/* ✅ sin fondo oscuro detrás SOLO cuando este modal está abierto */
body.qp-img-open .modal-backdrop.show{
  opacity: 0 !important;
}


/* =========================
   MODAL FOTO (PRO)
   ========================= */

#qpPhotoModal{
  position: fixed;
  inset: 0;
  z-index: 9999999 !important;

  /* center */
  display: none;              /* tu JS lo pone en flex */
  align-items: center;
  justify-content: center;

  padding: 18px;
}

#qpPhotoModal[aria-hidden="false"]{
  display: flex;
}

#qpPhotoModal .qp-photo__backdrop{
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: qpFadeIn .16s ease both;
}

#qpPhotoModal .qp-photo__sheet{
  position: relative;
  z-index: 2;

  width: min(920px, 96vw);
  max-height: min(86vh, 740px);

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;

  box-shadow: 0 24px 70px rgba(0,0,0,.40);
  overflow: hidden;

  transform: translateY(10px) scale(.98);
  animation: qpPopIn .18s ease both;
}

#qpPhotoModal .qp-photo__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 12px 10px 14px;

  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.75));
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#qpPhotoModal .qp-photo__title{
  font-weight: 800;
  font-size: 14px;
  color: #121212;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#qpPhotoModal .qp-photo__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.95);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  transition: transform .12s ease, background .12s ease;
}
#qpPhotoModal .qp-photo__close:hover{
  transform: translateY(-1px);
  background: #fff;
}

#qpPhotoModal .qp-photo__body{
  padding: 12px;
  background: #0b0b0b; /* para que la foto resalte */
}

#qpPhotoModal #qpPhotoImg{
  width: 100%;
  height: min(72vh, 640px);
  object-fit: contain;

  border-radius: 14px;
  background: #0b0b0b;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* mobile: tipo bottom sheet */
@media (max-width: 576px){
  #qpPhotoModal{
    align-items: flex-end;
    padding: 0;
  }
  #qpPhotoModal .qp-photo__sheet{
    width: 100vw;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
  #qpPhotoModal .qp-photo__head{
    padding: 12px 12px 10px 14px;
  }
  #qpPhotoModal #qpPhotoImg{
    height: 62vh;
    border-radius: 14px;
  }
}

/* anims */
@keyframes qpFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes qpPopIn{
  from{ opacity: 0; transform: translateY(14px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
#qpPhotoModal .qp-photo__head{
  background: linear-gradient(135deg, rgba(255,123,0,.14), rgba(255,255,255,.85));
}

.cats-header{
  text-align:center;
  margin: 18px 0 14px;
  padding: 0 14px;
}

.cats-header h2{
  margin: 0;
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111;
}

.cats-header p{
  margin: 8px auto 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(17,17,17,.72);
}

/* línea decorativa */
.cats-header p::after{
  content:"";
  display:block;
  width: 86px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,123,0,1), rgba(255,223,163,1));
  box-shadow: 0 8px 20px rgba(255,123,0,.18);
}



.btn-productos.is-closed{
  background: #e5e7eb !important;
  color: #6b7280 !important;
  border: 1px solid #d1d5db !important;
  cursor: pointer;
  opacity: 1;
}

.btn-productos.is-closed:hover{
  background: #dbe1ea !important;
  color: #4b5563 !important;
}

.btn-productos .btn-hint{
  font-size: 12px;
  opacity: .9;
  margin-left: 6px;
}

/* Asegura que el botón SIEMPRE se muestre aunque la card esté cerrada */
.negocio-card.cerrado .btn-productos{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.btn-productos.is-closed{
  background: #e5e7eb !important;
  color: #6b7280 !important;
  border: 1px solid #d1d5db !important;
  cursor: pointer !important;
}
.btn-productos.is-closed:hover{
  background: #dbe1ea !important;
  color: #4b5563 !important;
}
.btn-productos .btn-hint{
  font-size: 12px;
  opacity: .9;
  margin-left: 6px;
}
.btn-productos.is-closed{
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border: 1px solid #ff7b00 !important;
  cursor: pointer !important;
}

.btn-productos.is-closed:hover{
  background: #fff7ed !important;
  color: #4b5563 !important;
}
.negocio-hoy{
  margin-top: 6px;
  font-size: 12px;
  color: rgb(161, 161, 161);
  padding: 6px 10px;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  border-radius: 10px;
  display: inline-block;
}
.negocio-card.cerrado .negocio-hoy{
  color: rgba(0,0,0,.55);
}



.qp-scrolltop{
  position: fixed;
  right: 14px;
  bottom: 88px; /* súbelo si choca con tu cart */
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  display: grid;
  place-items: center;

  background: rgba(255, 123, 0, .95);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);

  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
  z-index: 9999;
}

.qp-scrolltop:hover{
  filter: brightness(.95);
}

.qp-scrolltop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}


/* =========================
   📍 GEO CHIP PRO
   ========================= */

.qp-geo-chip{
  position: sticky;
  top: 80px;              /* debajo del header sticky */
  z-index: 2;
  background: #fff;
  padding: 10px 16px 0;   /* 0 abajo para que pegue con buscador */
}

/* el botón en forma de “pill” */
.qp-geo-chip-btn{
  width: 100%;
  max-width: 650px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  background: linear-gradient(180deg, rgba(255,123,0,.10), rgba(255,123,0,.04));
  border: 1px solid rgba(255,123,0,.22);

  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  cursor: pointer;

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.qp-geo-chip-btn:hover{
  filter: brightness(.99);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.qp-geo-chip-btn:active{
  transform: scale(.995);
}

/* Icono */
.qp-geo-chip-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(255,123,0,.18);
  border: 1px solid rgba(255,123,0,.22);
  font-size: 16px;
}

/* texto principal */
.qp-geo-chip-text{
  flex: 1;
  min-width: 0;
  text-align: left;

  font-weight: 900;
  font-size: 13.5px;
  color: #111827;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* “subtexto” automático con ::after */
.qp-geo-chip-text::after{
  content: " • GPS o Municipio";
  font-weight: 700;
  color: rgba(17,24,39,.55);
}

/* acción */
.qp-geo-chip-action{
  font-weight: 900;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 999px;

  background: #ff7b00;
  color: #fff;

  box-shadow: 0 10px 22px rgba(255,123,0,.22);
}

/* Móvil: más compacto */
@media (max-width: 480px){
  .qp-geo-chip{ padding: 8px 12px 0; }
  .qp-geo-chip-btn{ padding: 9px 10px; border-radius: 13px; }
  .qp-geo-chip-ico{ width: 32px; height: 32px; border-radius: 11px; }
  .qp-geo-chip-text{ font-size: 13px; }
  .qp-geo-chip-action{ font-size: 12px; padding: 6px 9px; }
}

/* =========================
   🔎 Ajuste buscador cuando hay chip sticky
   ========================= */
.buscador-container{
  top: 136px; /* 80 (header) + ~56 (chip) */
  z-index: 1;
}

/* =========================
   TOPBAR STICKY (BUSCADOR + GEO)
   ========================= */
.qp-topbar{
  position: sticky;
  top: 80px;              /* debajo del header */
  z-index: 2;
  background: #fff;

  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: center;

  /* “separación” sutil */
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 75% buscador */
.qp-topbar-search{
  flex: 1;
  min-width: 0;
}

/* 25% geo */
.qp-topbar-geo{
  width: min(200px, 34%);
  flex: 0 0 auto;
}

/* =========================
   BUSCADOR COMPACTO
   ========================= */
.qp-buscador-compact input{
  padding: 10px 12px;
  padding-left: 38px;  /* icono */
  font-size: 14.5px;
  border-radius: 12px;
}

.qp-buscador-compact i{
  left: 12px;
  font-size: 16px;
}

/* =========================
   GEO CHIP MINI (compact)
   ========================= */
.qp-geo-mini{
  width: 100%;
  height: 40px;
  padding: 0 10px;

  display: flex;
  align-items: center;
  gap: 8px;

  border-radius: 12px;
  cursor: pointer;

  background: linear-gradient(180deg, rgba(255,123,0,.10), rgba(255,123,0,.03));
  border: 1px solid rgba(255,123,0,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);

  transition: transform .12s ease, box-shadow .12s ease;
}

.qp-geo-mini:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.qp-geo-mini:active{
  transform: scale(.995);
}

.qp-geo-mini-ico{
  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: grid;
  place-items: center;

  background: rgba(255,123,0,.16);
  border: 1px solid rgba(255,123,0,.20);
  color: rgba(17,24,39,.95);
  flex: 0 0 auto;
}

.qp-geo-mini-text{
  font-size: 13px;
  font-weight: 900;
  color: #111827;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* ocupa todo el espacio restante */
  flex: 1;
}

/* Mobile: aún más compacto */
@media (max-width: 480px){
  .qp-topbar{ padding: 7px 10px; gap: 8px; }
  .qp-topbar-geo{ width: min(160px, 38%); }
  .qp-geo-mini{ height: 38px; border-radius: 12px; }
  .qp-buscador-compact input{ font-size: 14px; padding: 9px 12px; padding-left: 36px; }
}
/* ===== QP Slide-in Panel ===== */
.qp-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

.qp-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 92vw);
  background: #0f0f0f;
  color: #fff;
  z-index: 9999;
  box-shadow: -18px 0 50px rgba(0,0,0,.45);
  border-left: 1px solid rgba(255,255,255,.08);

  transform: translateX(110%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.qp-panel.is-open { transform: translateX(0); }

.qp-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.qp-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.qp-panel__subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  opacity: .8;
}

.qp-panel__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.qp-panel__close:hover { background: rgba(255,255,255,.10); }

.qp-panel__body {
  padding: 14px 16px 18px;
  overflow: auto;
  flex: 1;
}

.qp-panel__footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: .85;
  font-size: 12px;
}

.qp-panel__content {
  outline: none;
  line-height: 1.55;
}

.qp-panel__content h3,
.qp-panel__content h4 {
  margin: 14px 0 8px;
}

.qp-panel__content p { margin: 0 0 10px; opacity: .95; }

.qp-panel__content ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.qp-panel__content a {
  color: rgb(255, 123, 0);
  text-decoration: none;
}

.qp-panel__content a:hover { text-decoration: underline; }

.qp-panel__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  opacity: .9;
}

.qp-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgb(255, 123, 0);
  animation: qpSpin 0.8s linear infinite;
}

@keyframes qpSpin { to { transform: rotate(360deg); } }

/* Bloquear scroll al abrir */
body.qp-lock-scroll { overflow: hidden; }
