/**
 * TomaLink - estilos de los botones para compartir
 * La forma (redonda/cuadrada) y el tamaño se controlan por clases
 * en el contenedor .tomalink, y el color de cada red por la
 * variable --tl-color definida en línea en cada botón.
 */

.tomalink {
  margin: 1rem 0;
}

.tomalink__cta {
  margin: 0 0 .6rem;
  font-weight: 600;
}

.tomalink__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.tomalink__item {
  margin: 0;
  padding: 0;
}

.tomalink__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tl-color, #555);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  line-height: 0;
}

.tomalink__btn:hover,
.tomalink__btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
  opacity: .95;
  color: #fff;
}

.tomalink__icon {
  width: 55%;
  height: 55%;
  fill: #fff;
}

/* ---------- Forma ---------- */
.tomalink--round .tomalink__btn {
  border-radius: 50%;
}

.tomalink--square .tomalink__btn {
  border-radius: 8px;
}

/* ---------- Tamaño ---------- */
.tomalink--small .tomalink__btn {
  width: 34px;
  height: 34px;
}

.tomalink--medium .tomalink__btn {
  width: 42px;
  height: 42px;
}

.tomalink--large .tomalink__btn {
  width: 52px;
  height: 52px;
}

/* ---------- Con nombre debajo ---------- */
.tomalink--with-label .tomalink__list {
  gap: 1rem;
}

.tomalink--with-label .tomalink__item {
  text-align: center;
}

.tomalink--with-label .tomalink__btn {
  flex-direction: column;
  width: auto;
  height: auto;
  min-width: 64px;
  padding: .55rem .4rem;
  gap: .25rem;
  border-radius: 10px;
}

.tomalink--with-label.tomalink--round .tomalink__btn {
  border-radius: 16px;
}

.tomalink--with-label .tomalink__icon {
  width: 24px;
  height: 24px;
}

.tomalink--with-label.tomalink--large .tomalink__icon {
  width: 30px;
  height: 30px;
}

.tomalink__name {
  font-size: .72rem;
  line-height: 1.1;
  color: #fff;
}
