/* =====================
   HERO BLOG
===================== */
.hero-blog {
  position: relative;
  overflow: hidden;

  background:
  linear-gradient(
rgba(20,61,42,.45),
rgba(20,61,42,.35)
),
    url("/assets/img/ec680514-bfd6-4e42-83fe-e0b0378f521c.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--color-white);

  padding: 150px 0;

  text-align: center;
}
/* overlays ambientales */
.hero-blog::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top center,
      rgba(224, 161, 38, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(201, 106, 27, 0.12),
      transparent 30%
    );

  pointer-events: none;
}
.hero-blog::after {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.05;

  background-image:
    url("");

  mix-blend-mode: overlay;

  pointer-events: none;
}
.hero-blog .container {
  position: relative;
  z-index: 2;
}

.hero-blog h2 {
  font-size: clamp(2.5rem, 8vw, 4.2rem);

  line-height: 1.05;

  font-weight: 800;

  letter-spacing: -1.5px;

  margin-bottom: 18px;

  animation: fadeUp 0.8s ease;
}

.hero-blog p {
  font-size: 1.1rem;

  max-width: 760px;

  margin: auto;

  color: rgba(255,255,255,0.88);

  animation: fadeUp 1s ease;
}
.hero-label {
  display: inline-block;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;

  color: var(--color-surface);

  background: rgba(201, 106, 27, 0.12); /* naranja suave */
  border: 1px solid rgba(201, 106, 27, 0.25);

  padding: 6px 12px;
  border-radius: 999px;

  backdrop-filter: blur(4px);

  margin-bottom: 14px;
}
/* =====================
   BLOG SECTION
===================== */

.blog {
  padding: 100px 0;
}

.blog h2 {
  text-align: center;

  margin-bottom: 60px;

  font-size: 2.5rem;

  color: var(--color-brand-dark);

  letter-spacing: -1px;
}

/* =====================
   GRID
===================== */

.blog-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 35px;
}

/* =====================
   BLOG CARD
===================== */

.blog-card {
  position: relative;
  background: var(--color-surface);

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow-card);

  border:
    1px solid rgba(20, 61, 42, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 20px 45px rgba(20, 61, 42, 0.14);

  border-color:
    rgba(201, 106, 27, 0.18);
}

/* =====================
   IMG
===================== */

.blog-card img {
  width: 100%;

  height: 240px;

  object-fit: cover;

  transition:
    transform 0.45s ease,
    filter 0.45s ease;

  filter:
    contrast(1.03)
    saturate(0.96);
}

.blog-card:hover img {
  transform: scale(1.04);

  filter:
    contrast(1.05)
    saturate(1.05);
}

/* =====================
   CONTENT
===================== */

.blog-content {
  padding: 24px;

  display: flex;

  flex-direction: column;

  gap: 14px;
}

/* =====================
   TAG
===================== */

.blog-tag {
  width: fit-content;

  background:
    rgba(201, 106, 27, 0.12);

  color: var(--color-accent);

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.3px;

  text-transform: uppercase;
}

/* =====================
   TITLE
===================== */

.blog-content h3 {
  font-size: 1.35rem;

  line-height: 1.3;

  color: var(--color-brand-dark);
   transition: color 0.25s ease;
}


.blog-card:hover h3 {
  color: var(--color-accent);
}
/* =====================
   TEXT
===================== */

.blog-content p {
  font-size: 0.96rem;

  line-height: 1.7;

  color: var(--color-text-soft);
}

/* =====================
   LINK
===================== */

.read-more {
  width: fit-content;

  margin-top: 10px;

  color: var(--color-accent);

  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.read-more:hover {
  color: var(--color-accent-light);

  transform: translateX(4px);
}

/* =====================
   HERO POST (DINÁMICO)
===================== */

.post-hero {
  position: relative;
  padding: 160px 0;

  background-size: cover;
  background-position: center;

  color: white;
  text-align: center;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(20, 61, 42, 0.35),
      rgba(20, 61, 42, 0.15)
    );

  z-index: 1;
}

.post-hero .container {
  position: relative;
  z-index: 2;
}

/* LABEL */

.hero-label {
  display: inline-block;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;

  background: rgba(201, 106, 27, 0.15);
  border: 1px solid rgba(201, 106, 27, 0.3);

  padding: 6px 14px;
  border-radius: 999px;

  margin-bottom: 16px;
}

/* AUTOR */

.post-author {
  margin-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: var(--color-accent);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  color: white;
}

.post-author span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* =====================
   CONTENIDO
===================== */

.post-container {
  max-width: 820px;
  margin: auto;
}

.post-content {
  margin-top: -80px;

  background: white;
  padding: 45px;

  border-radius: var(--radius-lg);

  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

/* TEXTO */

.post-content p {
  margin-bottom: 22px;
  line-height: 1.9;
  font-size: 1.05rem;
}

/* TITULOS */

.post-content h2 {
  margin: 35px 0 15px;
  font-size: 1.7rem;
}

.post-content h3 {
  margin: 25px 0 10px;
  font-size: 1.3rem;
}

/* LISTAS */

.post-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

/* BOTÓN */

.post-content .btn {
  margin-top: 40px;
}
/* =====================
   ANIMATIONS
===================== */

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

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

@media (max-width: 992px) {

  .blog-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .hero-blog {
    padding: 120px 0;
  }

  .hero-blog h2 {
    font-size: 2.4rem;
  }

  .hero-blog p {
    font-size: 1rem;
  }

  .blog {
    padding: 80px 0;
  }

  .blog h2 {
    font-size: 2rem;
  }

  .blog-card img {
    height: 220px;
  }

  .post-content {
    padding: 24px;
  }

}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-soft);
  opacity: 0.8;
}

.empty-state h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}