/* TEXTIL */

.active-link {
  opacity: .6;
}

/* HERO */

.tx-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url("img/textil.png") center center / cover no-repeat;
}

.tx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.90) 0%,
    rgba(0,0,0,.58) 50%,
    rgba(0,0,0,.18) 100%
  );
}

.tx-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.tx-hero-content > span,
.tx-label,
.tx-techniques-heading > span,
.tx-split-content > span,
.tx-cta-content > span {
  display: inline-block;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.tx-hero h1 {
  max-width: 900px;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .84;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.tx-hero p {
  max-width: 680px;
  margin: 30px 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.tx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* INTRO */

.tx-intro {
  padding: 110px 0;
}

.tx-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  align-items: end;
}

.tx-intro h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.tx-intro-copy {
  display: grid;
  gap: 18px;
}

.tx-intro-copy p {
  color: #6b6b72;
  font-size: 1.05rem;
  line-height: 1.7;
}


/* CATEGORÍAS */

.tx-categories {
  background: #f5f5f2;
}

.tx-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.tx-category-card {
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(0,0,0,.06);
}

.tx-category-card img {
  width: 100%;
  aspect-ratio: 330 / 450;
  object-fit: cover;
}

.tx-category-content {
  padding: 26px;
}

.tx-category-content > span {
  display: block;
  margin-bottom: 16px;
  color: #96969c;
  font-size: .76rem;
}

.tx-category-content h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.tx-category-content p {
  color: #6b6b72;
  line-height: 1.55;
}


/* TÉCNICAS */

.tx-techniques {
  padding: 110px 0;
  background: #fff;
}

.tx-techniques-heading {
  max-width: 850px;
  margin-bottom: 45px;
}

.tx-techniques-heading h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.tx-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.tx-tech-grid article {
  min-height: 300px;
  padding: 30px;
  background: #f5f5f2;
  border-radius: 22px;
}

.tx-tech-number {
  margin-bottom: 70px;
  color: #96969c;
  font-size: .78rem;
}

.tx-tech-grid h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.tx-tech-grid p {
  color: #6b6b72;
  line-height: 1.6;
}


/* SPLIT */

.tx-split {
  padding: 110px 0;
}

.tx-dark {
  background: #0b0b0d;
  color: #fff;
}

.tx-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tx-reverse .tx-split-image {
  order: 2;
}

.tx-split-image img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 28px;
}

.tx-split-content h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.tx-split-content p {
  max-width: 620px;
  color: #6d6d73;
  line-height: 1.7;
}

.tx-dark .tx-split-content p,
.tx-dark .tx-split-content li {
  color: rgba(255,255,255,.67);
}

.tx-split-content ul {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  list-style: none;
}

.tx-split-content li::before {
  content: "✓";
  margin-right: 10px;
  font-weight: 800;
}

.tx-light-btn {
  background: #fff;
  color: #111;
  border-color: #fff;
}


/* GALERÍA */

.tx-gallery-section {
  background: #f5f5f2;
}

.tx-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.tx-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}


/* CTA */

.tx-cta {
  padding: 110px 0;
  background: #151518;
  color: #fff;
  text-align: center;
}

.tx-cta-content {
  max-width: 900px;
}

.tx-cta h2 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.tx-cta p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,.67);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tx-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

  .tx-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 980px) {

  .tx-intro-grid,
  .tx-split-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .tx-reverse .tx-split-image {
    order: initial;
  }

  .tx-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {

  .tx-hero {
    min-height: 84vh;
  }

  .tx-hero-overlay {
    background: rgba(0,0,0,.65);
  }

  .tx-intro,
  .tx-techniques,
  .tx-split,
  .tx-cta {
    padding: 75px 0;
  }

  .tx-category-grid,
  .tx-tech-grid,
  .tx-gallery {
    grid-template-columns: 1fr;
  }

  .tx-category-card img,
  .tx-gallery img {
    aspect-ratio: 4 / 5;
  }

  .tx-tech-grid article {
    min-height: auto;
  }

  .tx-tech-number {
    margin-bottom: 40px;
  }

}
