/* Estructura y estilos de la tarjeta de perfil de taxonomía */
.taxonomy-profile-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* Área de medios y placeholders */
.taxonomy-profile-card__media {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.taxonomy-profile-card__image--author {
  display: block;
  width: 5.75rem;
  height: 5.75rem;
  object-fit: cover;
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.taxonomy-profile-card__image--editorial {
  display: block;
  width: 8rem;
  max-width: 8rem;
  height: 5rem;
  padding: 0.625rem 0.875rem;
  object-fit: contain;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.taxonomy-profile-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background-color: var(--bg);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.taxonomy-profile-card__placeholder--author {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
}

.taxonomy-profile-card__placeholder--editorial {
  width: 8rem;
  height: 5rem;
  border-radius: 0.25rem;
}

.taxonomy-profile-card__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  line-height: 1;
}

/* Cuerpo de texto y metadatos */
.taxonomy-profile-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.taxonomy-profile-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.375rem;
  padding: 0.125rem 0.625rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background-color: var(--primary-subtle);
  border-radius: 0.25rem;
  box-sizing: border-box;
}

.taxonomy-profile-card__title {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.taxonomy-profile-card__description {
  max-width: 54rem;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.6;
}

.taxonomy-profile-card__description p {
  margin: 0 0 0.5rem;
}

.taxonomy-profile-card__description p:last-child {
  margin-bottom: 0;
}

/* Estado vacío de la categoría */
.category-page__empty-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.category-page__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--text-muted);
}

/* Adaptabilidad responsive */
@media (max-width: 767px) {
  .taxonomy-profile-card {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.75rem;
    text-align: center;
  }

  .taxonomy-profile-card__image--author,
  .taxonomy-profile-card__placeholder--author {
    width: 5rem;
    height: 5rem;
  }

  .taxonomy-profile-card__image--editorial,
  .taxonomy-profile-card__placeholder--editorial {
    width: 7rem;
    height: 4.5rem;
  }

  .taxonomy-profile-card__badge {
    margin-bottom: 0.375rem;
  }

  .taxonomy-profile-card__title {
    margin-bottom: 0.5rem;
    font-size: var(--fs-lg);
  }

  .taxonomy-profile-card__description {
    max-width: 100%;
    font-size: var(--fs-xs);
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .taxonomy-profile-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .taxonomy-profile-card__image--author,
  .taxonomy-profile-card__placeholder--author {
    width: 4.5rem;
    height: 4.5rem;
  }

  .taxonomy-profile-card__image--editorial,
  .taxonomy-profile-card__placeholder--editorial {
    width: 6.25rem;
    height: 4rem;
  }

  .taxonomy-profile-card__placeholder-icon {
    font-size: var(--fs-md);
  }

  .taxonomy-profile-card__title {
    font-size: var(--fs-md);
  }

  .taxonomy-profile-card__description {
    font-size: var(--fs-xs);
  }
}