/* togetherb2b · sección de plantillas en la home */
#tb-templates {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 0 10px;
  scroll-margin-top: 24px;
}
#tb-templates .tb-tpl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
#tb-templates .tb-tpl-head > div:first-child { max-width: 760px; }
#tb-templates .tb-tpl-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 800;
  color: #0B0B0B;
}
#tb-templates .tb-tpl-head h2 em { font-style: normal; color: #4F46E5; }
#tb-templates .tb-tpl-head p {
  margin: 0;
  max-width: 690px;
  color: #5B564C;
  font-size: 14px;
  line-height: 1.55;
}
#tb-templates .tb-tpl-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}
#tb-templates .tb-tpl-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0B0B0B;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid #0B0B0B;
  padding-bottom: 2px;
  white-space: nowrap;
}
#tb-templates .tb-tpl-head-actions > span {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A8274;
}
#tb-templates .tb-tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
#tb-templates .tb-tpl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E6DDC8;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #0B0B0B;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#tb-templates .tb-tpl-card:hover {
  transform: translateY(-3px);
  border-color: #D7CBB2;
  box-shadow: 0 18px 38px rgba(38,30,8,.10);
}
#tb-templates .tb-tpl-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #EFE8DA;
  border-bottom: 1px solid #E6DDC8;
}
#tb-templates .tb-tpl-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  display: block;
}
#tb-templates .tb-tpl-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 14px 15px;
  flex: 1;
}
#tb-templates .tb-tpl-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
#tb-templates .tb-tpl-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--tc, #4F6B52);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
#tb-templates .tb-tpl-mark svg { width: 19px; height: 19px; display: block; }
#tb-templates .tb-tpl-name b {
  display: block;
  font-size: 14px;
  letter-spacing: -.02em;
  line-height: 1.1;
}
#tb-templates .tb-tpl-name small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #7A7366;
  line-height: 1.2;
}
#tb-templates .tb-tpl-body p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #5B564C;
  min-height: 32px;
}
#tb-templates .tb-tpl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#tb-templates .tb-tpl-facts span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: #F4EEE2;
  color: #5B564C;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
#tb-templates .tb-tpl-link {
  margin-top: auto;
  padding-top: 4px;
  color: var(--tc, #4F6B52);
  font-size: 11.5px;
  font-weight: 800;
}
#tb-templates .tb-tpl-custom {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 24px;
  background: #12140F;
  border-radius: 16px;
  color: #F7F2E8;
}
#tb-templates .tb-tpl-custom .tb-kicker { color: #C9D6C0; }
#tb-templates .tb-tpl-custom b {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  letter-spacing: -.02em;
}
#tb-templates .tb-tpl-custom p {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #B9B3A6;
  max-width: 480px;
}
#tb-templates .tb-tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
#tb-templates .tb-tpl-chips span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(247,242,232,.22);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #E8E2D5;
  white-space: nowrap;
}
#tb-templates .tb-tpl-custom .btn { white-space: nowrap; }
#tb-templates .tb-tpl-note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #8A8274;
}
@media (max-width: 1024px) {
  #tb-templates .tb-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tb-templates .tb-tpl-custom { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  #tb-templates { padding: 44px 0 38px; }
  #tb-templates .tb-tpl-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  #tb-templates .tb-tpl-head-actions { align-items: flex-start; }
  #tb-templates .tb-tpl-grid { grid-template-columns: 1fr; }
  #tb-templates .tb-tpl-media img { aspect-ratio: 4 / 3; }
  #tb-templates .tb-tpl-custom { padding: 18px; }
  #tb-templates .tb-tpl-custom .btn { width: 100%; }
}
