#tj-herramientas-portada {
  container: tjh-portada / inline-size;
  width: 100%;
}

#tj-herramientas-portada .tjh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

#tj-herramientas-portada .thseo-tool__card {
  display: grid;
  grid-template-columns: clamp(62px, 15cqw, 134px) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px clamp(12px, 2cqw, 23px);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(15px, 2.25cqw, 28px);
  color: #fff;
  background: #e6007e;
  text-decoration: none;
}

#tj-herramientas-portada .thseo-tool__card:focus-visible {
  outline: 3px solid #19171c;
  outline-offset: 3px;
}

#tj-herramientas-portada .thseo-tool__image {
  display: block;
  grid-area: 1 / 1 / 3 / 2;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

#tj-herramientas-portada .thseo-tool__copy {
  grid-area: 1 / 2;
  min-width: 0;
}

#tj-herramientas-portada .thseo-kicker {
  display: block;
  margin-bottom: 6px;
  color: #19171c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#tj-herramientas-portada .thseo-tool__copy h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(22px, 2.75cqw, 35px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

#tj-herramientas-portada .thseo-tool__copy p {
  margin: 8px 0 0;
  padding: 0;
  color: #fff;
  font-size: clamp(14px, 1.25cqw, 16px);
  line-height: 1.45;
}

#tj-herramientas-portada a.thseo-tool__card > .tjh-button {
  display: inline-flex;
  grid-area: 2 / 2;
  justify-self: start;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  color: #fff !important;
  background: #19171c !important;
  border: 2px solid #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

#tj-herramientas-portada a.thseo-tool__card:hover > .tjh-button,
#tj-herramientas-portada a.thseo-tool__card:focus-visible > .tjh-button {
  color: #19171c !important;
  background: #fff !important;
  border-color: #19171c;
}

@container tjh-portada (max-width: 540px) {
  #tj-herramientas-portada .thseo-tool__card {
    grid-template-columns: clamp(94px, 27cqw, 124px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 8px 12px;
  }

  #tj-herramientas-portada .thseo-tool__copy {
    display: contents;
  }

  #tj-herramientas-portada .thseo-kicker {
    grid-area: 1 / 2;
    align-self: end;
    margin: 0;
  }

  #tj-herramientas-portada .thseo-tool__copy h2 {
    grid-area: 2 / 2;
    align-self: start;
  }

  #tj-herramientas-portada .thseo-tool__copy p {
    grid-area: 3 / 1 / 4 / -1;
    margin: 3px 0 0;
    text-align: left;
  }

  #tj-herramientas-portada a.thseo-tool__card > .tjh-button {
    grid-area: 4 / 1 / 5 / -1;
    justify-self: stretch;
  }
}

@container tjh-portada (min-width: 760px) {
  #tj-herramientas-portada .tjh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
