/* ===== BLOG STYLES (Desarrollos LM) ===== */
/* Reutiliza la paleta verde y Poppins de styles.css. NO modifica styles.css. */

/* Espacio para navbar fija */
.blog-page { padding-top: 84px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--green-600); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray-300); margin: 0 8px; }

/* ===== BLOG HERO / HEAD ===== */
.blog-hero {
  background: linear-gradient(135deg, #f0faf4 0%, #ffffff 60%, #e8f7ee 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-100);
}
.blog-hero .eyebrow { margin-bottom: 16px; }
.blog-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -.5px;
  max-width: 760px;
}
.blog-hero p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 700px;
}

/* ===== BLOG LISTING GRID ===== */
.blog-list { padding: 60px 0 90px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.post-thumb {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
}
.post-cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  background: var(--green-500);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.post-date {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
  font-weight: 600;
}
.post-card h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card h2 a:hover { color: var(--green-600); }
.post-excerpt {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-600);
  font-weight: 600;
  font-size: 14.5px;
}
.post-more:hover { gap: 10px; }
.post-more::after { content: '→'; transition: transform .2s; }

/* ===== ARTICLE ===== */
.article-wrap { padding: 40px 0 80px; }
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article-header { margin-bottom: 36px; }
.article-header h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-500);
}
.article-meta .meta-cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
}
.article-meta .meta-sep { color: var(--gray-300); }

.article-cover {
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, var(--green-200), var(--green-50));
  margin-bottom: 40px;
}

/* Cuerpo del artículo: tipografía legible */
.article-body { font-size: 17px; line-height: 1.8; color: var(--gray-700); }
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -.3px;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-100);
}
.article-body h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 32px 0 14px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding-left: 4px;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.article-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-500);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.article-body ol { counter-reset: li; }
.article-body ol li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.article-body strong { color: var(--gray-900); font-weight: 700; }
.article-body a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--green-200);
}
.article-body a:hover { text-decoration-color: var(--green-600); }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--green-900);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Tarjeta de "lugar / agencia / diseñador" dentro del listicle */
.entry-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin: 28px 0;
}
.entry-card h3 { margin-top: 0; }
.entry-card p:last-child { margin-bottom: 0; }

/* ===== FAQ BOX ===== */
.faq-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin: 44px 0;
}
.faq-box h2 {
  margin-top: 0;
  border: none;
  padding-bottom: 0;
}
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--gray-900);
}
.faq-item p { margin-bottom: 0; font-size: 16px; }

/* ===== ARTICLE CTA ===== */
.article-cta {
  margin: 50px 0 10px;
  padding: 40px 36px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
}
.article-cta h2 {
  color: white;
  border: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 1.5rem;
}
.article-cta p {
  color: rgba(255,255,255,.9);
  margin-bottom: 26px;
  font-size: 16px;
}
.article-cta .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Volver al blog */
.back-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  color: var(--green-600);
  font-weight: 600;
  font-size: 15px;
}
.back-blog:hover { text-decoration: underline; }
.back-blog::before { content: '←'; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .posts-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 1.4rem; }
  .article-cta { padding: 32px 22px; }
  .article-cta .cta-buttons { flex-direction: column; }
  .article-cta .cta-buttons .btn { width: 100%; }
}
