:root{
  --rojo:#E30613;
  --rojo-ink:#B8050F;
  --amarillo:#FFC700;
  --tinta:#141414;
  --papel:#FFFEFB;
  --crema:#FFF3D6;
  --gris:#6B6B6B;
  --linea:rgba(20,20,20,.09);
  --wsp:#25D366;
  --verde-disp:#1D8A4B;
  --verde-disp-bg:#E4F6EB;
  --gris-agotado-bg:#F0F0F0;

  --radio-xl:26px;
  --radio-lg:18px;
  --radio-md:14px;
  --sombra:0 10px 26px rgba(20,20,20,.08);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Inter', system-ui, sans-serif;
  background:var(--papel);
  color:var(--tinta);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}

h1, h2, h3{
  font-family:'Sora', system-ui, sans-serif;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.1;
}

img{ display:block; max-width:100%; }
a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }

main{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 60px;
}

.scrollbar-none{ scrollbar-width:none; }
.scrollbar-none::-webkit-scrollbar{ display:none; }


/* ============================================================
   ENCABEZADO — index.html
   ============================================================ */

header{
  background:var(--tinta);
  color:#fff;
  padding:22px 20px 0;
  border-bottom:3px solid var(--amarillo);
}

.header-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding-bottom:18px;
}

.marca{
  display:flex;
  align-items:center;
  gap:0px;
}

.marca-icono{
  width:126px;
  height:56px;
  border-radius:14px;
  background:var(--rojo);
  display:grid;
  place-items:center;
  font-size:22px;
  flex-shrink:0;
  transform: translateX(-300px);
}

.marca-texto #nombre-negocio{
  transform: translateX(-100px);
  font-size:clamp(19px, 2.6vw, 25px);
  color:#fff;
}

.marca-texto #subtitulo-negocio{
  transform: translateX(-100px);
  font-size:13px;
  font-weight:500;
  opacity:.68;
  margin-top:2px;
}

#boton-whatsapp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--wsp);
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:12px 22px;
  border-radius:999px;
  white-space:nowrap;
  box-shadow:0 6px 18px rgba(37,211,102,.35);
  transition:transform .12s ease;
}
#boton-whatsapp:active{ transform:scale(.97); }

.franja-info{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:14px 0 18px;
}

.info-pill{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:7px 14px;
  font-size:12.5px;
  font-weight:600;
  color:rgba(255,255,255,.85);
}
.info-pill span{
  color:var(--amarillo);
  font-weight:800;
}


/* ============================================================
   ENCABEZADO — local.html
   ============================================================ */

.header-local{
  padding:20px 20px 26px;
}

.volver-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.75);
  margin-bottom:16px;
}
.volver-link:hover{ color:#fff; }

#informacion-local{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.local-detalle-foto{
  width:96px;
  height:96px;
  border-radius:20px;
  object-fit:cover;
  border:3px solid rgba(255,255,255,.15);
  flex-shrink:0;
}
.local-detalle-foto.local-foto-vacia{
  display:grid;
  place-items:center;
  font-size:34px;
  background:rgba(255,255,255,.08);
}

.local-detalle-body h1{
  color:#fff;
  font-size:clamp(19px, 2.6vw, 25px);
}

.local-detalle-meta{
  display:flex;
  gap:8px;
  margin:8px 0 6px;
  flex-wrap:wrap;
}

.local-detalle-body .local-card-zona,
.local-detalle-body .local-card-direccion,
.local-detalle-body .local-card-desc{
  color:rgba(255,255,255,.68);
  font-size:12.5px;
  font-weight:500;
  margin-top:2px;
}

.estado-error{
  padding:20px 0 6px;
  text-align:left;
}
.estado-error h1{ color:#fff; margin-bottom:8px; }
.estado-error .btn-ver-productos{
  display:inline-flex;
  margin-top:14px;
  width:auto;
  padding:10px 22px;
}


/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.seccion-titulo{
  padding-top:38px;
  margin-bottom:16px;
}
.seccion-titulo h2{ font-size:21px; }
.seccion-subtitulo{
  font-size:12.5px;
  color:var(--gris);
  font-weight:600;
  margin-top:4px;
}


/* ============================================================
   PROMOCIONES
   ============================================================ */

#lista-promociones{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:10px;
  scrollbar-width:none;
}
#lista-promociones::-webkit-scrollbar{ display:none; }

.promocion-card{
  flex-shrink:0;
  width:250px;
  background:#fff;
  border:1.5px solid var(--linea);
  border-radius:var(--radio-lg);
  overflow:hidden;
  box-shadow:var(--sombra);
  display:flex;
  flex-direction:column;
}

.promocion-imagen{
  width:100%;
  height:140px;
  object-fit:cover;
  background:var(--crema);
}

.promocion-sin-imagen{
  width:100%;
  height:140px;
  display:grid;
  place-items:center;
  font-size:36px;
  background:var(--crema);
}

.promocion-contenido{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.promocion-etiqueta{
  align-self:flex-start;
  background:var(--tinta);
  color:var(--amarillo);
  font-size:10.5px;
  font-weight:800;
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:2px;
}

.promocion-titulo{ font-size:15px; line-height:1.25; }

.promocion-descripcion{
  font-size:12.5px;
  color:var(--gris);
  font-weight:500;
}

.promocion-local{
  font-size:11.5px;
  color:var(--gris);
  font-weight:600;
  margin-top:2px;
}

.promocion-precios{ margin-top:4px; }
.promocion-precio-oferta{
  font-size:18px;
  font-weight:800;
  color:var(--rojo);
}

.boton-delivery-promocion{
  margin-top:10px;
  width:100%;
  background:var(--amarillo);
  border:2px solid var(--tinta);
  color:var(--tinta);
  border-radius:999px;
  padding:9px 0;
  font-weight:800;
  font-size:12.5px;
}
.boton-delivery-promocion:active{ transform:scale(.97); }

.promocion-vacia{
  padding:34px 20px;
  text-align:center;
  border:2px dashed var(--linea);
  border-radius:var(--radio-lg);
  width:100%;
}
.promocion-vacia p{ font-weight:600; color:var(--gris); font-size:13.5px; }
.promocion-subtexto{ font-size:12px; margin-top:4px; opacity:.7; }


/* ============================================================
   BUSCADOR + FILTROS
   ============================================================ */

#buscador-productos{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:2px solid var(--tinta);
  border-radius:999px;
  padding:4px 4px 4px 18px;
  max-width:480px;
}

.buscador-icono{ font-size:15px; opacity:.5; flex-shrink:0; }

#input-busqueda{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  padding:11px 0;
}
#input-busqueda::placeholder{ color:#a3a3a3; font-weight:500; }

#filtros-productos{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:16px 0 4px;
  scrollbar-width:none;
}
#filtros-productos::-webkit-scrollbar{ display:none; }

#filtros-productos button{
  flex-shrink:0;
  background:#fff;
  border:1.5px solid var(--linea);
  border-radius:999px;
  padding:9px 16px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}
#filtros-productos button:hover{
  border-color:var(--tinta);
  background-color:#eb0404;
  color: white;
}
#filtros-productos button:active{
  background:var(--tinta);
  border-color:var(--tinta);
  color:#fff;
}


/* ============================================================
   PRODUCTOS
   ============================================================ */

#lista-productos{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
  gap:16px;
  margin-top:18px;
}

#lista-productos > p{
  grid-column:1/-1;
  text-align:center;
  padding:36px 20px;
  color:var(--gris);
  font-weight:600;
  font-size:13.5px;
  border:2px dashed var(--linea);
  border-radius:var(--radio-lg);
}

.producto-card{
  background:#fff;
  border:1.5px solid var(--linea);
  border-radius:var(--radio-lg);
  overflow:hidden;
  box-shadow:var(--sombra);
  display:flex;
  flex-direction:column;
}

.producto-foto{
  width:100%;
  height:150px;
  object-fit:cover;
  background:var(--crema);
}
.producto-foto.producto-foto-vacia{
  display:grid;
  place-items:center;
  font-size:32px;
}

.producto-card-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1;
}

.producto-card-body h3{ font-size:14.5px; line-height:1.25; }

.producto-descripcion{
  font-size:12.5px;
  color:var(--gris);
  font-weight:500;
}

.producto-local{
  font-size:11.5px;
  color:var(--gris);
  font-weight:600;
}

.producto-precio{ margin-top:4px; display:flex; align-items:baseline; gap:8px; }
.producto-precio del{
  font-size:14px;
  color:#a3a3a3;
  font-weight:600;
}
.producto-precio strong{
  font-size:17px;
  font-weight:800;
  color:var(--tinta);
}
.producto-precio-oferta strong{ color:var(--rojo); }

.producto-estado{
  align-self:flex-start;
  font-size:10.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
  padding:4px 10px;
  border-radius:999px;
  margin-top:2px;
}
.producto-estado.disponible{
  background:var(--verde-disp-bg);
  color:var(--verde-disp);
}
.producto-estado.agotado{
  background:var(--gris-agotado-bg);
  color:var(--gris);
}

.boton-delivery{
  margin-top:auto;
  width:100%;
  background:var(--amarillo);
  border:2px solid var(--tinta);
  color:var(--tinta);
  border-radius:999px;
  padding:10px 0;
  font-weight:800;
  font-size:13px;
}
.boton-delivery:active{ transform:scale(.97); }


/* ============================================================
   LOCALES ALIADOS
   ============================================================ */

#lista-locales{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
  margin-top:4px;
}

.local-card{
  background:#fff;
  border:1.5px solid var(--linea);
  border-radius:var(--radio-xl);
  overflow:hidden;
  box-shadow:var(--sombra);
  display:flex;
  flex-direction:column;
}

.local-card-imagen{
  position:relative;
  height:130px;
  background:var(--crema);
}

.local-foto{
  width:100%;
  height:100%;
  object-fit:cover;
}
.local-foto.local-foto-vacia{
  display:grid;
  place-items:center;
  font-size:34px;
}

.local-card-rubro{
  position:absolute;
  bottom:10px;
  left:10px;
  background:#fff;
  border:1.5px solid var(--tinta);
  font-size:10.5px;
  font-weight:800;
  padding:4px 11px;
  border-radius:999px;
}

.local-card-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1;
}

.local-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.local-card-top h3{ font-size:15.5px; line-height:1.25; }

.local-card-calif{
  flex-shrink:0;
  font-size:12px;
  font-weight:800;
  background:var(--crema);
  padding:3px 9px;
  border-radius:999px;
  color: black;
}

.local-card-zona,
.local-card-direccion{
  font-size:12px;
  color:var(--gris);
  font-weight:600;
}

.local-card-desc{
  font-size:12.5px;
  color:var(--gris);
  font-weight:500;
  margin-top:2px;
}

.btn-ver-productos{
  margin-top:auto;
  padding-top:10px;
  display:block;
  text-align:center;
  background:var(--tinta);
  color:#fff;
  border-radius:999px;
  padding:10px 0;
  font-weight:800;
  font-size:13px;
}
.btn-ver-productos:hover{
  background:var(--rojo);
  color:#fff;
}
.btn-ver-productos:active{ transform:scale(.98); }


/* ============================================================
   PIE DE PÁGINA
   ============================================================ */

.pie-pagina{
  text-align:center;
  padding:34px 20px 40px;
  border-top:1px solid var(--linea);
  margin-top:20px;
}
.pie-pagina p{
  font-size:12px;
  color:var(--gris);
  font-weight:600;
}


/* ============================================================
   RESPONSIVE
   Ajustes para celular, tablet y pantallas pequeñas.
   Mantiene el diseño de escritorio actual.
   ============================================================ */

/* Imágenes del logo: evita deformaciones */
.marca-icono img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Pantallas medianas */
@media (max-width:900px){

  /* Quitamos los desplazamientos manuales del header */
  .marca-icono{
    transform:translateX(0);
  }

  .marca-texto #nombre-negocio,
  .marca-texto #subtitulo-negocio{
    transform:translateX(0);
  }

  .header-inner{
    gap:16px;
  }

  .franja-info{
    gap:8px;
  }

}

/* Celulares */
@media (max-width:640px){

  header{
    padding:18px 14px 0;
  }

  .header-inner{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding-bottom:14px;
  }

  .marca{
    width:100%;
    align-items:center;
    gap:12px;
  }

  .marca-icono{
    width:86px;
    height:64px;
    border-radius:12px;
    transform:none;
  }

  .marca-texto{
    min-width:0;
    flex:1;
  }

  .marca-texto #nombre-negocio,
  .marca-texto #subtitulo-negocio{
    transform:none;
  }

  .marca-texto #nombre-negocio{
    font-size:clamp(18px, 6vw, 23px);
  }

  .marca-texto #subtitulo-negocio{
    font-size:12px;
    line-height:1.35;
  }

  #boton-whatsapp{
    width:100%;
    justify-content:center;
    padding:11px 16px;
  }

  .franja-info{
    padding:10px 0 14px;
    gap:7px;
  }

  .info-pill{
    padding:7px 10px;
    font-size:11.5px;
  }

  main{
    padding-left:14px;
    padding-right:14px;
    padding-bottom:40px;
  }

  .seccion-titulo{
    padding-top:28px;
    margin-bottom:13px;
  }

  .seccion-titulo h2{
    font-size:19px;
  }

  /* Buscador */
  #buscador-productos{
    width:100%;
    max-width:none;
  }

  #input-busqueda{
    min-width:0;
  }

  /* Filtros: mantienen desplazamiento horizontal */
  #filtros-productos{
    padding-top:12px;
  }

  /* Promociones */
  .promocion-card{
    width:min(250px, 78vw);
  }

  /* Productos */
  #lista-productos{
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
  }

  .producto-foto{
    height:125px;
  }

  .producto-card-body{
    padding:11px;
  }

  .producto-card-body h3{
    font-size:13.5px;
  }

  .producto-descripcion{
    font-size:11.5px;
  }

  .producto-local{
    font-size:10.5px;
  }

  .producto-precio strong{
    font-size:16px;
  }

  .boton-delivery{
    font-size:12px;
    padding:9px 0;
  }

  /* Locales aliados */
  #lista-locales{
    grid-template-columns:1fr;
    gap:12px;
  }

  /* Página de detalle */
  .header-local{
    padding:18px 14px 22px;
  }

  #informacion-local{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .local-detalle-foto{
    width:82px;
    height:82px;
  }

  .local-detalle-body h1{
    font-size:21px;
  }

  .local-detalle-meta{
    gap:6px;
  }

  /* Footer */
  .pie-pagina{
    padding:28px 14px 34px;
  }
}

/* Celulares muy pequeños */
@media (max-width:420px){

  #lista-productos{
    grid-template-columns:1fr;
  }

  .producto-foto{
    height:165px;
  }

  .marca-icono{
    width:78px;
    height:60px;
  }

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

  .marca-texto #subtitulo-negocio{
    font-size:11px;
  }

  .info-pill{
    font-size:11px;
    padding:6px 9px;
  }
}