/* =========================
   PROYECTOS / CATEGORÍAS
========================= */
.projects-categories {
  padding: 80px 0;
  background: #f6f3f2;
  overflow: hidden;
}

.projects-categories-wrap {
  width: 100%;
}

.projects-categories-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.projects-categories-copy {
  max-width: 36rem;
  min-width: 0;
}

.projects-categories-kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb956;
}

.projects-categories-title {
  font-family: "Noto Serif", serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  color: #322214;
}

.projects-categories-nav {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.projects-categories-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 196, 187, 0.3);
  background: transparent;
  color: #322214;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.projects-categories-btn:hover {
  background: #322214;
  color: #ffffff;
}

.projects-categories-btn .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.projects-categories-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  cursor: grab;
}

.projects-categories-slider::-webkit-scrollbar {
  display: none;
}

.projects-categories-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.projects-categories-slider .projects-categories-card,
.projects-categories-slider img {
  user-select: none;
  -webkit-user-drag: none;
}

.projects-categories-card {
  flex: 0 0 352px;
  min-width: 352px;
  max-width: 352px;
  background: #ffffff;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.projects-categories-image {
  height: 396px;
  overflow: hidden;
  background: #e9e6e3;
}

.projects-categories-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.projects-categories-card:hover .projects-categories-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.projects-categories-content {
  padding: 32px 28px;
}

.projects-categories-content h3 {
  font-family: "Noto Serif", serif;
  font-size: 30px;
  font-weight: 400;
  color: #322214;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.projects-categories-card:hover .projects-categories-content h3 {
  color: #ffb956;
}

.projects-categories-content p {
  font-size: 14px;
  line-height: 1.625;
  color: #625e57;
}

/* =========================
   DESKTOP ONLY
========================= */
@media (min-width: 769px) {
  .projects-categories {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .projects-categories-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  .projects-categories-title {
    font-size: 44px;
  }

  .projects-categories-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
  }

  .projects-categories-image {
    height: 360px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .projects-categories {
    padding: 64px 0;
    min-height: auto;
    display: block;
  }

  .projects-categories-wrap {
    display: block;
  }

  .projects-categories-head {
    margin-bottom: 32px;
    align-items: flex-end;
    gap: 20px;
  }

  .projects-categories-title {
    font-size: 40px;
    line-height: 1.04;
  }

  .projects-categories-nav {
    gap: 12px;
  }

  .projects-categories-btn {
    width: 48px;
    height: 48px;
  }

  .projects-categories-slider {
    gap: 16px;
    padding-bottom: 20px;
  }

  .projects-categories-card {
    flex: 0 0 calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .projects-categories-image {
    height: auto;
    aspect-ratio: 1 / 1.18;
  }

  .projects-categories-image img {
    filter: grayscale(0%);
  }

  .projects-categories-content {
    padding: 24px 20px 28px;
  }

  .projects-categories-content h3 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .projects-categories-content p {
    font-size: 15px;
    line-height: 1.6;
  }
}/* FIX BOTÓN */
.projects-next-btn {
  align-self: flex-start;
}