/* Friends App · Grupos: catálogo público y alineación · 2026-11-04
   Exclusivo de /planes?view=grupos; no altera Inicio ni Planes. */
html body.bf-page-planes.bf-page-groups > .app {
  display:block !important;
  box-sizing:border-box !important;
  width:min(calc(100% - 48px),1180px) !important;
  max-width:1180px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:28px auto 56px !important;
  padding:0 0 28px !important;
  overflow:visible !important;
  scroll-snap-type:none !important;
  scroll-behavior:auto !important;
  overscroll-behavior:auto !important;
  align-items:initial !important;
}
html body.bf-page-groups > .app > #topSnap {display:none !important;}
html body.bf-page-planes.bf-page-groups > .app > #planesGruposWrap {
  display:block;
  box-sizing:border-box;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  height:auto;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  flex:none !important;
  transform:none !important;
}
html body.bf-page-groups #planesGruposWrap .bf-groups-featured {margin:0 0 20px !important;}
html body.bf-page-groups #planesGruposWrap .bf-groups-conversations {margin:0 0 28px !important;}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(132px,1fr));
  gap:22px 14px;
  width:100%;
  overflow:visible;
  scroll-snap-type:none;
  margin:0;
  padding:6px 0 24px;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation {
  display:flex;
  flex:initial;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0;
  min-height:0;
  padding:4px;
  gap:7px;
  text-align:center;
  scroll-snap-align:none;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo {
  width:104px;
  height:104px;
  flex:none;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-name {
  display:-webkit-box;
  max-width:100%;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  color:#1a1a1d;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  overflow-wrap:anywhere;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-label {
  max-width:100%;
  white-space:normal;
  color:#77777b;
  font-size:11px;
}
html body.bf-page-groups #planesGruposWrap .bf-groups-featured-head,
html body.bf-page-groups #planesGruposWrap .pg-head {
  max-width:100%;
  box-sizing:border-box;
}
@media(max-width:899px){
  html body.bf-page-planes.bf-page-groups > .app {
    width:calc(100% - 24px) !important;
    max-width:none !important;
    margin:14px auto 20px !important;
    padding:0 0 calc(88px + env(safe-area-inset-bottom,0px)) !important;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:19px 8px;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo {
    width:min(92px,25vw);
    height:min(92px,25vw);
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-name {
    font-size:12px;
  }
}
@media(max-width:360px){
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(prefers-reduced-motion:reduce){
  html body.bf-page-groups #planesGruposWrap .bf-group-recommendation {transition:none !important;}
}


/* Grupos públicos · Tarjetas de tamaño uniforme · 04-11-2026
   Sólo sin login. No cambia las recomendaciones ni los chats de miembros. */
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
  grid-template-columns:repeat(auto-fill,minmax(158px,1fr));
  grid-auto-rows:202px;
  align-items:stretch;
  gap:14px;
  padding:5px 0 24px;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation {
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:14px 10px;
  border:1px solid #e6e6e9;
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(0,0,0,.035);
  -webkit-tap-highlight-color:transparent;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo {
  display:block;
  width:92px;
  height:92px;
  flex:0 0 92px;
  overflow:hidden;
  border-radius:18px;
  box-shadow:none;
  background:#f0f0f2;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo .bf-group-cover {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-name {
  display:-webkit-box;
  width:100%;
  max-width:100%;
  min-height:34px;
  max-height:34px;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-size:13px;
  line-height:17px;
  font-weight:700;
  text-align:center;
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-label {
  flex:0 0 auto;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:16px;
}
@media(hover:hover) {
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation:hover {
    border-color:#c6c6ca;
    box-shadow:0 8px 20px rgba(0,0,0,.07);
    transform:translateY(-2px);
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation:hover .bf-group-rec-photo {
    transform:none;
    box-shadow:none;
  }
}
html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation:focus-visible {
  outline:2px solid #151515;
  outline-offset:3px;
  border-radius:20px;
}
@media(max-width:899px) {
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:194px;
    gap:12px;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo {
    width:86px;
    height:86px;
    flex-basis:86px;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-name {
    font-size:12px;
  }
}
@media(max-width:360px) {
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .bf-groups-scroll.is-public-catalog {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:187px;
    gap:9px;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation {
    padding:10px 7px;
    border-radius:17px;
  }
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-rec-photo {
    width:78px;
    height:78px;
    flex-basis:78px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html body.bf-page-groups #planesGruposWrap[data-guest="1"] .is-public-catalog .bf-group-recommendation {
    transition:none;
  }
}
