/* Groups and clubs. Builds on /base.css: the dark opening of the channels page, then each
   section as a two-column list with the group's own links as buttons. */
.g-top { background: var(--noche); color: #fff; padding: 36px 0 40px; }
.g-top h1 { margin-top: 6px; font-family: var(--cond); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: .92; }
.g-top .lead { margin-top: 14px; max-width: 60ch; font-size: 19px; color: var(--niebla); }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--niebla); border-radius: 999px; color: #fff; text-decoration: none; font-size: 16px; }
.chip:hover { border-color: var(--barro-claro); color: var(--barro-claro); }

.g-body { padding-bottom: 72px; }
.g-sec { margin-top: 48px; scroll-margin-top: 16px; }
.g-sec h2 { font-family: var(--cond); font-weight: 800; font-size: 32px; line-height: 1; }
.sub { margin-top: 6px; max-width: 64ch; color: var(--gris); }

.grupos { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(24rem, 100%), 1fr)); column-gap: 40px; }
.grupos li { display: flex; flex-direction: column; padding: 18px 0 20px 16px; border-left: 4px solid var(--barro); border-bottom: 1px solid var(--linea); scroll-margin-top: 16px; }
.grupos li:target { background: var(--surface); }
.grupos h3 { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.05; }
.g-meta { margin-top: 2px; font-size: 15px; color: var(--gris); }
.grupos li > p:not(.g-meta) { margin-top: 8px; font-size: 16px; max-width: 62ch; }
.g-datos { margin-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.g-datos div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.g-datos dt { font-weight: 700; color: var(--noche); }
.g-datos dt::after { content: ":"; }
.g-datos a { text-decoration-color: var(--barro); text-decoration-thickness: 2px; }
.grupos li > .g-links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.g-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px 6px 11px; border: 2px solid var(--noche); border-radius: 999px; color: var(--noche); font-family: var(--cond); font-weight: 600; font-size: 17px; text-decoration: none; }
.g-link:hover { background: var(--noche); color: #fff; }
.g-link svg { flex: none; }
.g-whatsapp { border-color: #1a7f4b; color: #156b3f; }
.g-whatsapp:hover { background: #156b3f; border-color: #156b3f; color: #fff; }

.g-band .btn { display: inline-flex; }
.checked { margin-top: 18px; color: var(--gris); font-size: 14px; max-width: 72ch; }

/* Each group under its own logo, on a panel of the logo's colour; initials when it has none.
   The same panels, small, run along the dark opening as a row of who is on the page. */
.grupos { grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr)); gap: 40px 36px; }
.grupos li { padding: 0 0 18px; border-left: 0; }
.grupos li:target { background: none; }
.grupos li:target .g-plate { outline: 3px solid var(--barro); outline-offset: 3px; }
.g-plate { display: grid; place-items: center; aspect-ratio: 16 / 7; margin-bottom: 14px; border-radius: var(--radius-md); background: var(--fondo, var(--noche)); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.g-plate, .g-cara { position: relative; }
.g-plate img, .g-cara img { position: absolute; inset: 12% 15%; width: 70%; height: 76%; object-fit: contain; }
.g-mono { background: var(--barro); }
.g-mono span { font-family: var(--cond); font-weight: 800; font-size: 72px; line-height: 1; color: #fff; letter-spacing: .02em; }
.g-caras { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-caras a { display: block; border-radius: var(--radius-sm); }
.g-caras a:focus-visible { outline: 3px solid var(--barro-claro); outline-offset: 2px; }
.g-cara { display: grid; place-items: center; width: 112px; height: 64px; border-radius: var(--radius-sm); background: var(--fondo, var(--noche-2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); overflow: hidden; transition: transform .15s ease; }
.g-cara img { inset: 10%; width: 80%; height: 80%; }
.g-cara.g-mono span { font-size: 30px; }
.g-caras a:hover .g-cara { transform: translateY(-2px); }
@media (max-width: 600px) {
  .g-caras { gap: 8px; }
  .g-cara { width: 76px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-cara { transition: none; }
}
