/* ============================================================
   Blog Articles — Puebla Inmobiliaria
   Estilos para artículos del blog generados con HTML semántico
   ============================================================ */

/* ── Wrapper del artículo ─────────────────────────────────── */
.article-wrapper {
  max-width: 100%;
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.75;
  color: #1A1A2E;
}

/* ── Header del artículo ──────────────────────────────────── */
.article-header {
  border-bottom: 3px solid #C0392B;
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-category {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 14px;
}

.article-meta {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: #888;
}

.article-meta span {
  margin-right: 18px;
}

/* ── Keywords bar ─────────────────────────────────────────── */
.keywords-bar {
  background: #F7F7F9;
  border-left: 4px solid #C0392B;
  padding: 12px 18px;
  margin-bottom: 36px;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: #555;
}

.keywords-bar strong {
  color: #1A1A2E;
}

/* ── Tipografía del cuerpo ────────────────────────────────── */
.article-wrapper p,
.single.blog article p {
  margin-bottom: 22px;
  text-align: justify;
}

.article-wrapper h2,
.single.blog article h2 {
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #C0392B;
  margin: 48px 0 16px;
  line-height: 1.3;
  border: none;
  padding: 0;
}

/* ── Highlight box ────────────────────────────────────────── */
.highlight-box {
  background: #F2F5F2;
  border-left: 5px solid #1A3A2E;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.65;
}

.highlight-box strong {
  color: #1A1A2E;
}

/* ── CTA box ──────────────────────────────────────────────── */
.cta-box {
  background: #1A1A2E;
  color: #fff;
  border-radius: 8px;
  padding: 32px 36px;
  margin: 48px 0 24px;
  font-family: 'Arial', sans-serif;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 20px;
  text-align: left;
}

.cta-box a {
  display: inline-block;
  background: #C0392B;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.cta-box a:hover {
  background: #a93226;
}

/* ── Article footer ───────────────────────────────────────── */
.article-footer {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 48px;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: #aaa;
}

/* ── Impact grid (artículo impuesto cedular) ──────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.impact-card {
  background: #F2F5F2;
  border-top: 4px solid #1A3A2E;
  border-radius: 4px;
  padding: 20px 18px;
  font-family: 'Arial', sans-serif;
}

.impact-card .impact-title {
  font-size: 13px;
  font-weight: 700;
  color: #1A3A2E;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.impact-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
  text-align: left;
}

/* ── Stats grid (tarjetas de números grandes) ─────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-card {
  background: #1A3A2E;
  color: #fff;
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.stat-card .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 4px;
}

.stat-card .stat-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  display: block;
}

/* ── Zone grid (artículo metro cuadrado) ──────────────────── */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.zone-card {
  background: #1A3A2E;
  color: #fff;
  border-radius: 6px;
  padding: 20px 18px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.zone-card .price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.zone-card .zone-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.zone-card .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: block;
}

/* ── Tablas de precios ────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  margin: 28px 0 8px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.article-wrapper table,
.single.blog article table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
}

.article-wrapper table caption,
.single.blog article table caption {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A2E;
  text-align: left;
  padding: 0 0 10px 0;
  font-family: 'Arial', sans-serif;
  caption-side: top;
}

.article-wrapper table thead th,
.single.blog article table thead th {
  background: #1A3A2E;
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
}

.article-wrapper table thead th:last-child,
.single.blog article table thead th:last-child {
  text-align: right;
}

.article-wrapper table tbody tr:nth-child(odd),
.single.blog article table tbody tr:nth-child(odd) {
  background: #fff;
}

.article-wrapper table tbody tr:nth-child(even),
.single.blog article table tbody tr:nth-child(even) {
  background: #F2F5F2;
}

.article-wrapper table tbody tr:hover,
.single.blog article table tbody tr:hover {
  background: #E8F0E8;
  transition: background 0.15s;
}

.article-wrapper table td,
.single.blog article table td {
  padding: 11px 16px;
  border-bottom: 1px solid #E5E5E5;
  color: #1A1A2E;
  border-top: none;
}

.article-wrapper table td:first-child,
.single.blog article table td:first-child {
  color: #888;
  font-size: 13px;
}

.article-wrapper table td:last-child,
.single.blog article table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #1A3A2E;
}

.source-note {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  margin-bottom: 36px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .article-wrapper {
    font-size: 16px;
  }

  .article-wrapper h2,
  .single.blog article h2 {
    font-size: 19px;
  }

  .cta-box {
    padding: 24px 20px;
  }

  .zone-card .price {
    font-size: 22px;
  }

  .stat-card .stat-number {
    font-size: 28px;
  }
}
