@import url(app.css);

/* CONTENEDOR PRINCIPAL DEL HERO */
.category-hero {
  position: relative;
  width: 100dvw;
  height: 490px;
  margin: 0;
  overflow: hidden;

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right; /* Priorizamos la pieza de acero */
}

/* Ejemplo de imagen para esta categoría */
.category-hero--tuberia {
  background-image: url('/assets/img/hero-perfil-estructural.webp');
}

/* Capa oscura suave para mejorar legibilidad del texto */
.category-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0% 50%,
    rgba(0, 0, 0, 0.65),
    transparent 55%
  );
  pointer-events: none;
}

/* Línea horizontal fina (como en tu diseño) */
/* .category-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(18, 68, 255, 0.6);
} */

/* CONTENIDO INTERNO */
.category-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.category-hero__content {
  margin-left: clamp(4rem, 10vw, 7rem); /* respiración lateral */
  transform: translateY(-15%); /* pequeño ajuste vertical como en el ejemplo */
}

/* TÍTULO */
.category-hero__title {
  font-family: var(--font-primary); /* cambia a la tipografía que uses */
  font-weight: 400;
  font-size: clamp(3rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--lightColor);
  margin: 0 200px;
}

/* BLOQUE AZUL BAJO EL TÍTULO */
.category-hero__accent {
  display: inline-block;
  margin-top: 12px;
  width: 650px; /* ajusta para que coincida visualmente */
  height: 4px;
  background-color: var(--accent1);
}

/* CATEGORY CONTENT */

/* CONTENEDOR GENERAL */
.category-detail {
  padding: 60px 16px 80px;
  background-color: #ffffff;
  color: var(--text-main);
}

.category-detail__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* PRIMER PÁRRAFO ANCHO COMPLETO */
.category-detail__intro-full {
  font-size: 1.6rem;
  line-height: 1.4;
  max-width: 1200px;
  text-align: center;
  margin: 0 auto 40px;
}

/* GRID PRINCIPAL */
.category-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* TEXTO */
.category-detail__text {
  font-size: 1rem;
  line-height: 1.65;
}

.category-detail__text p {
  margin: 0 0 16px;
}

.category-detail__list {
  list-style: disc;
  padding: 0;
  margin: 0 0 16px;
}

.category-detail__list li {
  margin-bottom: 4px;
}

.category-detail__subtitle {
  margin: 12px 0 8px;
  font-weight: 600;
  color: var(--accent1);
}

/* IMAGEN 1:1 */
.category-detail__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.category-detail__image {
  width: 450px;
  height: 450px;
  object-fit: cover;
  border-radius: 0;
}

/* BLOQUE INFERIOR */
.category-detail__bottom {
  margin-top: 48px;
  text-align: center;
}

.category-detail__bottom-text {
  max-width: 900px;
  margin: 0 auto 28px;
  line-height: 1.75;
  font-size: 1.4rem;
}

/* CTA */
.category-detail__cta {
  display: inline-block;
  padding: 18px 42px;
  background-color: var(--accent1);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: 0.15s ease;
}

.category-detail__cta:hover {
  transform: translateY(-2px);
  background-color: var(--accent2);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.slogan-text {
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
}

.slogan-line-1 {
  font-size: 2rem;
}
.slogan-line-2 {
  font-size: 4.6rem;
}
.slogan-line-3 {
  font-size: 4.9rem;
  color: var(--accent1);
  
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .category-hero {
    height: 380px;
    background-position: center;
  }

  .category-hero__content {
    margin-left: clamp(2rem, 6vw, 3rem);
    transform: translateY(-5%);
  }

  .category-hero::before {
    top: 60%;
  }

  /* CATEGORY CONTENT */

  .category-detail__intro-full {
    font-size: 1rem;
  }

  .category-detail__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .category-detail__image {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .category-hero {
    height: 320px;
    background-position: center;
  }

  .category-hero__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.2) 70%
    );
  }

  .category-hero__inner {
    align-items: center;
  }

  .category-hero__content {
    margin-left: 1.5rem;
    transform: translateY(0);
  }

  /* CATEGORY CONTENT */

  .category-detail__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .category-detail__image-wrapper {
    justify-content: center;
  }

  .category-detail__image {
    width: 320px;
    height: 320px;
  }

  .category-detail__bottom-text {
    font-size: 0.95rem;
  }

  .category-detail__cta {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .category-hero {
    height: 280px;
  }

  .category-hero__title {
    font-size: 1.9rem;
  }

  .category-hero__content {
    margin-left: 1.25rem;
  }

  /* CATEGORY CONTENT */
  .category-detail__image {
    width: 260px;
    height: 260px;
  }

  .category-detail__intro-full {
    font-size: 0.95rem;
  }
}
