/* =========================================================
   HESSA - Conocimiento Técnico
   CSS específico de sección
   ========================================================= */

.ct-hero {
  min-height: 620px;

  background:
    linear-gradient(
      rgba(16, 36, 61, 0.42),
      rgba(16, 36, 61, 0.42)
    ),
    url("../img/conocimiento-tecnico/hero-conocimiento-tecnico.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

.ct-hero__overlay {
  width: 100%;
  min-height: 620px;

  display: flex;
  align-items: center;
}
.ct-hero__content {
  max-width: 820px;
  color: #ffffff;
}

.ct-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-verde);
  margin-bottom: 14px;
}

.ct-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 22px;
  color: #ffffff;
}

.ct-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
}

/* Intro */

.ct-intro {
  background: #ffffff;
}

.ct-intro__content {
  max-width: 920px;
  text-align: center;
}

.ct-intro h2 {
  color: var(--color-azul);
  margin-bottom: 18px;
}

.ct-intro p {
  color: var(--color-texto);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Artículo destacado */

.ct-featured {
  background: #f5f8fb;
}

.ct-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.12);
}

.ct-featured-card__image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.ct-featured-card__content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ct-category {
  display: inline-block;
  width: fit-content;
  background: rgba(56, 142, 60, 0.12);
  color: var(--color-verde);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ct-meta {
  font-size: 0.9rem;
  color: #6d7b88;
  margin-bottom: 14px;
}

.ct-featured-card h2 {
  color: var(--color-azul);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.ct-featured-card p {
  line-height: 1.75;
  color: var(--color-texto);
  margin-bottom: 24px;
}

/* Listado */

.ct-listing {
  background: #ffffff;
}

.ct-section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.ct-section-heading h2 {
  color: var(--color-azul);
  margin-bottom: 14px;
}

.ct-section-heading p {
  color: var(--color-texto);
  line-height: 1.7;
}

/* Herramientas */

.ct-tools {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 38px;
}

#blogSearch {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8e0e7;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--color-texto);
  background: #ffffff;
}

#blogSearch:focus {
  outline: none;
  border-color: var(--color-verde);
  box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.14);
}

.ct-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-filter {
  border: 1px solid #d8e0e7;
  background: #ffffff;
  color: var(--color-azul);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ct-filter:hover,
.ct-filter.active {
  background: var(--color-azul);
  border-color: var(--color-azul);
  color: #ffffff;
}

/* Grid */

.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ct-card {
  background: #ffffff;
  border: 1px solid #e4ebf1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 36, 61, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(16, 36, 61, 0.14);
}

.ct-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.ct-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ct-card h3 {
  color: var(--color-azul);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.ct-card p {
  color: var(--color-texto);
  line-height: 1.65;
}

.ct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.ct-tags span {
  font-size: 0.78rem;
  color: #52616f;
  background: #f0f4f7;
  padding: 6px 10px;
  border-radius: 999px;
}

.ct-link {
  margin-top: auto;
  color: var(--color-verde);
  font-weight: 700;
  text-decoration: none;
}

.ct-link:hover {
  text-decoration: underline;
}

/* Sin resultados */

.ct-no-results {
  display: none;
  margin-top: 30px;
  padding: 18px;
  background: #f5f8fb;
  border-left: 4px solid var(--color-verde);
  color: var(--color-azul);
  font-weight: 600;
}

/* CTA final */

.ct-final-cta {
  background: var(--color-azul);
  color: #ffffff;
  padding: 82px 0;
  text-align: center;
}

.ct-final-cta__content {
  max-width: 820px;
}

.ct-final-cta h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.ct-final-cta p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* =========================================================
   Página individual de artículo
   ========================================================= */

.article-hero {
  background: #f5f8fb;
  padding: 150px 0 70px;
}

.article-hero__content {
  max-width: 920px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #6d7b88;
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--color-azul);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-hero h1 {
  color: var(--color-azul);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.article-intro {
  font-size: 1.14rem;
  color: var(--color-texto);
  line-height: 1.8;
}

.article-cover {
  margin-top: 38px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.12);
}

.article-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-layout {
  padding: 70px 0;
  background: #ffffff;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
}

.article-container h2 {
  color: var(--color-azul);
  margin-top: 42px;
  margin-bottom: 16px;
}

.article-container h3 {
  color: var(--color-azul);
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-container p {
  color: var(--color-texto);
  line-height: 1.85;
  margin-bottom: 18px;
}

.article-container ul {
  margin: 0 0 24px 22px;
}

.article-container li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: var(--color-texto);
}

.article-toc {
  background: #f5f8fb;
  border-left: 4px solid var(--color-verde);
  padding: 24px;
  border-radius: 14px;
  margin: 36px 0;
}

.article-toc h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.article-toc a {
  color: var(--color-azul);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-highlight {
  background: rgba(56, 142, 60, 0.1);
  border-left: 4px solid var(--color-verde);
  padding: 24px;
  border-radius: 14px;
  margin: 34px 0;
}

.article-authority {
  background: #f5f8fb;
  padding: 26px;
  border-radius: 16px;
  margin-top: 46px;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0;
}

.article-share a,
.article-share button {
  border: 1px solid #d8e0e7;
  background: #ffffff;
  color: var(--color-azul);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.article-share a:hover,
.article-share button:hover {
  background: var(--color-azul);
  color: #ffffff;
}

.related-articles {
  margin-top: 60px;
}

.related-articles h2 {
  color: var(--color-azul);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-card {
  border: 1px solid #e4ebf1;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  background: #ffffff;
  color: var(--color-texto);
  transition: all 0.25s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 36, 61, 0.12);
}

.related-card span {
  color: var(--color-verde);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.related-card h3 {
  color: var(--color-azul);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Responsive específico */

@media (max-width: 1024px) {
  .ct-featured-card {
    grid-template-columns: 1fr;
  }

  .ct-featured-card__image img {
    min-height: 360px;
  }

  .ct-tools {
    grid-template-columns: 1fr;
  }

  .ct-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ct-hero,
  .ct-hero__overlay {
    min-height: 520px;
  }

  .ct-featured-card__content {
    padding: 30px;
  }

  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-filters {
    flex-direction: column;
  }

  .ct-filter {
    width: 100%;
  }

  .article-hero {
    padding: 120px 0 52px;
  }

  .article-share {
    flex-direction: column;
  }

  .article-share a,
  .article-share button {
    width: 100%;
    text-align: center;
  }
}
/* CTA artículos individuales */

.ct-article-cta {
  background: #10243d;

  border-radius: 24px;

  padding: 70px 60px;

  margin-top: 90px;
  margin-bottom: 90px;

  text-align: center;
}

.ct-article-cta__content {
  max-width: 980px;
  margin: 0 auto;
}

.ct-article-cta h2 {
  color: #ffffff;

  font-size: 56px;
  line-height: 1.18;
  font-weight: 800;

  margin-bottom: 34px;
}

.ct-article-cta p {
  color: rgba(255,255,255,.82);

  font-size: 24px;
  line-height: 1.7;

  margin-bottom: 42px;
}

.ct-article-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 250px;
  height: 62px;

  padding: 0 34px;

  border-radius: 999px;

  background: var(--color-verde);

  color: #ffffff;

  font-size: 17px;
  font-weight: 700;

  text-decoration: none;

  transition: all .3s ease;
}

.ct-article-cta .btn-secondary:hover {
  transform: translateY(-2px);
  opacity: .92;
}
