/* ============================================================
   BLOG-SPECIFIC STYLES
   ============================================================ */

/* Active state for nav */
.primary-nav a.active,
.mobile-nav a.active {
  color: var(--blue-900);
  font-weight: 500;
}
.primary-nav a.active::after {
  transform: scaleX(1);
  background: var(--lemon-700);
}

/* sr-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   BLOG HERO
   ============================================================ */
.blog-hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 1000px 500px at 50% 0%, var(--blue-50), transparent 70%),
    var(--off-white);
  overflow: hidden;
}
.blog-hero-inner {
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.blog-hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--blue-900);
  margin: 20px 0 22px;
  text-wrap: balance;
}
.blog-hero-title em {
  font-style: italic;
  color: var(--blue-700);
}
.blog-hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto;
  text-wrap: pretty;
}
.blog-hero-lemon {
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -100px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   FILTROS
   ============================================================ */
.blog-filters {
  padding: 30px 0 50px;
  position: sticky;
  top: 92px;
  z-index: 30;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.filter-bar::-webkit-scrollbar { height: 4px; }
.filter-bar::-webkit-scrollbar-thumb { background: var(--blue-300); border-radius: 4px; }

.filter-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: var(--off-white);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  font-family: var(--sans);
  letter-spacing: 0.01em;
}
.filter-chip:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
}
.filter-chip.active {
  background: var(--blue-700);
  color: var(--off-white);
  border-color: var(--blue-700);
}

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-post {
  padding: 60px 0 30px;
}
.feat-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feat-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.feat-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-feat {
  aspect-ratio: 16/11;
  min-height: 320px;
  border-radius: var(--radius-lg);
}
.feat-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--blue-900);
  color: var(--off-white);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
  z-index: 2;
}
.feat-body { padding-right: 24px; }
.feat-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 16px 0 16px;
  text-wrap: balance;
}
.feat-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.feat-cta { padding: 13px 24px; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-sep { color: var(--ink-mute); }

/* ============================================================
   POSTS GRID
   ============================================================ */
.blog-posts {
  padding: 60px 0 100px;
  background: var(--off-white);
}
.blog-posts .posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 20px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.post:hover { transform: translateY(-4px); }
.post.hidden { display: none; }
.post .photo-thumb { min-height: 220px; }

.empty-state {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  padding: 40px 0;
  font-family: var(--serif);
  font-size: 22px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  padding: 100px 0;
  background: var(--cream);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1080px;
}
.newsletter .section-title {
  margin: 14px 0 0;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.newsletter-form input {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.newsletter-form .btn {
  padding: 14px 22px;
}
.nl-success {
  margin: 0;
  padding: 10px;
  background: #DDEEE3;
  color: #2D6A4F;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  display: none;
}
.nl-success.show { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feat-wrap { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .feat-body { padding: 8px 16px 20px; }
  .blog-posts .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .blog-hero { padding: 60px 0 40px; }
  .blog-filters { top: 76px; padding: 20px 0 30px; }
  .featured-post { padding: 40px 0 20px; }
  .blog-posts { padding: 40px 0 80px; }
  .blog-posts .posts-grid { grid-template-columns: 1fr; gap: 36px; }
  .newsletter { padding: 70px 0; }
  .newsletter-form { padding: 22px; }
  .feat-title { font-size: 26px; }
}
