/* ════════════════════════════════════════════════════════════════════════
   GH · Bloques de marcas
   Fila horizontal de tarjetas (imagen + enlace) con scroll. MISMO diseño que
   ghdiscoverblocks ("Descubrir por producto"): tarjeta 220px, blanca, borde
   suave, radio 16px, media 16/10, hover que levanta.
   ════════════════════════════════════════════════════════════════════════ */

.gh-brandblocks,
.gh-brandblocks * {
  box-sizing: border-box;
}

.gh-brandblocks {
  width: 100%;
  max-width: var(--gh-container, 1280px);
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── Pista horizontal con scroll ────────────────────────────────────── */
.gh-brandblocks__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c9cfca transparent;
}
.gh-brandblocks__track::-webkit-scrollbar { height: 8px; }
.gh-brandblocks__track::-webkit-scrollbar-track { background: transparent; }
.gh-brandblocks__track::-webkit-scrollbar-thumb { background: #c9cfca; border-radius: 999px; }
.gh-brandblocks__track::-webkit-scrollbar-thumb:hover { background: #aab2ab; }

/* ── Tarjeta ────────────────────────────────────────────────────────── */
.gh-brandblocks__card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.gh-brandblocks__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.10);
  border-color: #d6e9dd;
}

/* ── Media (imagen de la marca) ─────────────────────────────────────── */
.gh-brandblocks__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f5f3;
  overflow: hidden;
}
.gh-brandblocks__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ── Cuerpo (textos) ────────────────────────────────────────────────── */
.gh-brandblocks__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}
.gh-brandblocks__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2a24;
}
.gh-brandblocks__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #6b756e;
}
.gh-brandblocks__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f7a4d;
}
.gh-brandblocks__cta svg { transition: transform 0.2s ease; }
a.gh-brandblocks__card:hover .gh-brandblocks__cta svg { transform: translateX(3px); }
