.work-category {
  --work-text: var(--color-bg-header);
  --work-tag: #5c5c6d;
  background: var(--color-section-muted);
}

.work-category__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
}

.work-category__projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-project {
  padding-bottom: clamp(3rem, 8vw, 5rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid #c8c8c8;
}

.work-project:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.work-category__empty {
  margin: 4rem auto;
  text-align: center;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 1.125rem;
  color: var(--work-tag);
}

/* Intro: título + etiqueta | descripción */
.work-category__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.work-category__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.work-category__title {
  margin: 0;
  font-family: "Merriweather SC", "Merriweather", Georgia, serif;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  color: var(--work-text);
}

.work-category__tag {
  margin: 0;
  padding: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(0.8125rem, 1vw + 0.4rem, 0.9375rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--work-tag);
  background: none;
}

/* Estadísticas opcionales */
.work-category__stats {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 3), 1fr);
  align-items: end;
  gap: 0;
  max-width: 900px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1rem, 3vw, 2rem) 0;
  text-align: center;
}

.work-category__stats[hidden] {
  display: none;
}

.work-category__stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  border-right: 1px solid #c8c8c8;
}

.work-category__stat-col:last-child {
  border-right: none;
}

.work-category__stat-prefix {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(0.8125rem, 1vw + 0.35rem, 0.9375rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--work-text);
  text-transform: lowercase;
}

.work-category__stat-number {
  font-family: "Merriweather SC", "Merriweather", Georgia, serif;
  font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--work-text);
}

.work-category__stat-label {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(0.875rem, 1vw + 0.4rem, 1rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--work-text);
}

.work-category__description {
  margin: 0;
  min-width: 0;
}

.work-category__description-box {
  margin: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--work-text);
}

.work-category__description-box p {
  margin: 0 0 0.85rem;
}

.work-category__description-box p:last-child {
  margin-bottom: 0;
}

/* Galería */
.work-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-item {
  margin: 0;
  min-width: 0;
}

.gallery-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.gallery-item-wrap--full {
  width: 100%;
}

.gallery-item-wrap--half {
  width: calc(50% - clamp(0.5rem, 1vw, 0.75rem));
}

.gallery-item-wrap .gallery-item {
  width: 100%;
}

.gallery-item--full,
.gallery-item-wrap--full {
  width: 100%;
}

.gallery-item--half,
.gallery-item-wrap--half {
  width: calc(50% - clamp(0.5rem, 1vw, 0.75rem));
}

.gallery-item__project-link {
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.gallery-item__project-link:hover,
.gallery-item__project-link:focus-visible {
  color: var(--color-cta);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item__video-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-item__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 8vw, 4.5rem);
  height: clamp(3rem, 8vw, 4.5rem);
  border-radius: 50%;
  background: var(--color-bg-header);
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  pointer-events: none;
}

@media (max-width: 768px) {
  .work-category__intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-category__stats {
    grid-template-columns: 1fr !important;
    max-width: none;
    gap: 1.75rem;
  }

  .work-category__stat-col {
    border-right: none;
    border-bottom: 1px solid #c8c8c8;
    padding-bottom: 1.75rem;
  }

  .work-category__stat-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .gallery-item--half,
  .gallery-item-wrap--half {
    width: 100%;
  }
}
