
/* ===== NAVEGACION CLIENTE FIJA 2026-09-03 =====
   La pantalla no mueve la barra: solo se desplaza su contenido central. */
body:has(#s-home.screen.active),
html:has(#s-home.screen.active) {
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#s-home.screen.active,
#s-favoritos.screen.active,
#s-mispedidos.screen.active,
#s-perfil.screen.active {
  display: flex !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  transform: none !important;
  animation: none !important;
}

#s-home > .content,
#s-favoritos > .content,
#s-mispedidos > .content,
#s-perfil > .content {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}

#s-home .bnav,
#s-favoritos .bnav,
#s-mispedidos .bnav,
#s-perfil .bnav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9990 !important;
  transform: none !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 760px) {
  #s-home .bnav,
  #s-favoritos .bnav,
  #s-mispedidos .bnav,
  #s-perfil .bnav {
    width: min(720px, 100%) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}



/* ===== BÚSQUEDA CLIENTE EN MODO ENFOCADO ===== */
#s-home.search-active { background:#fff; }
#s-home.search-active .hdr {
  position:sticky; top:0; z-index:220;
  background:#fff; color:var(--texto);
  padding:9px 12px 10px;
  box-shadow:0 2px 14px rgba(15,25,35,.08);
  overflow:visible;
}
#s-home.search-active .hdr::before,
#s-home.search-active .hdr::after,
#s-home.search-active .hdr-row,
#s-home.search-active .client-hero { display:none !important; }
#s-home.search-active .search {
  margin:0; padding:10px 12px;
  background:#f3f5f7; border:1px solid #e2e7ec;
  box-shadow:none; border-radius:14px;
}
#s-home.search-active .search svg { color:var(--texto2) !important; }
#s-home.search-active .search input { color:var(--texto); font-size:15px; }
#s-home.search-active .search input::placeholder { color:var(--texto3); }
#s-home .search-cancel-btn {
  display:none; border:none; background:transparent; color:var(--verde);
  font-family:'Plus Jakarta Sans',sans-serif; font-size:12px; font-weight:900;
  padding:4px 2px; cursor:pointer; flex-shrink:0;
}
#s-home.search-active .search-cancel-btn { display:block; }
#s-home.search-active .content { padding:10px 12px 18px; background:#fff; }
#s-home.search-active #cliente-pedido-live,
#s-home.search-active .chamofavor-home-card,
#s-home.search-active #publicidad-cliente,
#s-home.search-active #client-cat-grid,
#s-home.search-active .content > .client-section-title:not(:has(#rest-list-titulo)),
#s-home.search-active #cliente-ofertas-section,
#s-home.search-active #cliente-destacados-section,
#s-home.search-active #cliente-promos-section,
#s-home.search-active #home-cart-float,
#s-home.search-active .bnav { display:none !important; }
#s-home.search-active .content > .client-section-title:has(#rest-list-titulo) {
  margin:2px 2px 10px;
}
#s-home.search-active .global-search-summary { display:none; }
#s-home.search-active .global-search-heading { margin-top:10px; }
#s-home.search-active #rest-list { padding-bottom:18px; }


/* ===== AJUSTE CLIENTE: detalle compacto + portada completa del negocio ===== */
#s-menu > .bhdr { min-height:190px; }
#s-menu #menu-hdr-foto img { object-fit:cover !important; object-position:center center !important; }
@media (max-width:430px){
  #s-menu > .bhdr { height:200px !important; }
  #s-menu #menu-nombre { font-size:14px !important; }
}

/* Reconocimiento de comercios fundadores: independiente de la calificación. */
.fundador-logo{display:inline-block;position:relative;overflow:hidden;width:27px;aspect-ratio:420/218;flex-shrink:0;background:#013e1e;vertical-align:middle;}
.fundador-logo img{position:absolute!important;width:325.715%!important;max-width:none!important;height:auto!important;left:-98%;top:-136.2%;object-fit:initial!important;}
.fundador-insignia{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 10px;margin-top:7px;border-radius:99px;background:#013e1e;color:#ffb511;font-size:11px;font-weight:800;line-height:1.3;text-shadow:none;white-space:normal;}
.fundador-insignia.compacta{font-size:10px;padding:5px 7px;gap:5px;}
.fundador-insignia.compacta .fundador-logo{width:21px;}
#menu-fundador{padding:0 16px 8px;background:var(--blanco);}
#menu-fundador[hidden],#rest-fundador[hidden]{display:none!important;}
.fundador-tarjeta{background:#013e1e;color:white;border-radius:18px;padding:20px;margin-bottom:16px;}
.fundador-tarjeta .fundador-logo{width:56px;margin-bottom:14px;}
.fundador-tarjeta .fundador-etiqueta{color:#ffb511;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:1px;margin-bottom:8px;}
.fundador-tarjeta h3{margin:0 0 10px;font-size:22px;line-height:1.2;color:white;}
.fundador-tarjeta p{margin:0;color:#e1eee5;font-size:13px;line-height:1.5;}
.fundador-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:9px 0;border-top:1px solid var(--gris2);font-size:12px;font-weight:800;color:var(--verde2);cursor:pointer;}
.fundador-control input{width:22px;height:22px;accent-color:#013e1e;flex-shrink:0;}

.registro-promo{margin-top:10px;padding:10px;border-radius:10px;background:var(--gris);color:var(--texto2);font-size:11px;line-height:1.6;overflow-wrap:anywhere;}
.registro-promo strong{color:var(--texto);}
.registro-promo small{display:block;font-size:10px;color:var(--texto3);margin-top:3px;}
.registro-promo-estado{display:inline-block;margin-top:4px;font-weight:800;color:var(--verde2);}
.registro-promo-estado.por-revisar{color:#92400e;background:#fef3c7;border-radius:6px;padding:2px 6px;}

.chamocredit-meta{background:linear-gradient(135deg,#013e1e,#0d291b);border-radius:20px;padding:20px;margin-top:12px;color:#fff;box-shadow:0 10px 26px rgba(15,36,25,.18);}
.chamocredit-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:16px;font-weight:900;}
.chamocredit-tag{font-size:9px;letter-spacing:.7px;background:#ffffff18;border:1px solid #ffffff25;padding:5px 8px;border-radius:20px;color:#ffe19b;}
.chamocredit-meta h3{font-size:25px;line-height:1.15;margin:22px 0 10px;letter-spacing:-.5px;color:#fff;}
.chamocredit-meta p{font-size:12px;line-height:1.6;color:#e1eee5;margin:0 0 18px;}
.chamocredit-conteo{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px;}
.chamocredit-conteo strong{font-size:18px;color:#ffcb4d;}
.chamocredit-conteo span{font-size:11px;color:#e1eee5;}
.chamocredit-barra{height:10px;border-radius:99px;background:#ffffff24;overflow:hidden;}
#chamocredit-avance{width:0;height:100%;background:#ffb511;border-radius:inherit;}
.chamocredit-hitos{display:flex;justify-content:space-between;font-size:10px;color:#c9decd;margin:7px 0 16px;}
.chamocredit-meta .chamocredit-nota{font-size:11px;margin-bottom:15px;color:#c9decd;}
.chamocredit-meta .btn{width:100%;background:#ffb511;color:#173e2c;box-shadow:none;}
.chamocredit-meta [hidden]{display:none!important;}
