/* ==========================================================================
   blog-concasaya.css — Estilos compartidos de los artículos del blog
   CONCASAYA. Extraído del template de casa-prefabricada-para-finca-colombia
   para que los artículos nuevos (/blog/*.html) mantengan exactamente la misma
   identidad visual sin duplicar ~400 líneas de CSS en cada archivo.

   Uso:  <link rel="stylesheet" href="/assets/css/blog-concasaya.css" />
   ========================================================================== */

html { scroll-behavior: smooth; }
body { font-family: "Poppins", sans-serif; background: #f8fafc; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  border-radius: 12px; padding: 0.5rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); backdrop-filter: blur(10px);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Contenido del artículo ---------- */
.post-content {
  line-height: 1.85; color: #334155; font-size: 1.08rem;
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}
.post-content h2 { font-size: 2rem; font-weight: 800; margin-top: 2rem; margin-bottom: 1.25rem; color: #0f172a; padding-bottom: 0.6rem; border-bottom: 2px solid #e2e8f0; letter-spacing: -0.4px; }
.post-content h2:first-of-type { margin-top: 0; }
.post-content h3 { font-size: 1.4rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: 0.85rem; color: #1e293b; }
.post-content p { margin-bottom: 1.25rem; line-height: 1.85; }
.post-content ul, .post-content ol { margin: 1.25rem 0; padding-left: 1.75rem; }
.post-content li { margin-bottom: 0.6rem; line-height: 1.75; }
.post-content strong { color: #0f172a; font-weight: 700; }
.post-content a { color: #0077b6; font-weight: 600; }
.post-content a:hover { text-decoration: underline; }

/* ---------- HERO azul con textura de puntos ---------- */
.og-hero {
  position: relative; width: 100%; min-height: 520px; overflow: hidden;
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.10) 1px, transparent 1.6px) 0 0 / 32px 32px,
    linear-gradient(135deg, #0a2540 0%, #0077b6 55%, #023e7d 100%);
}
.og-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.55) 0%, rgba(10, 37, 64, 0.78) 60%, rgba(10, 37, 64, 0.92) 100%);
}
.og-hero .og-hero__content {
  position: relative; z-index: 2; padding: 2.5rem 1.5rem 3rem; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.og-hero .og-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.75);
  font-weight: 500; flex-wrap: wrap;
}
.og-hero .og-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; }
.og-hero .og-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.og-hero .og-bc-sep { color: rgba(255,255,255,0.4); }
.og-hero .og-bc-current { color: #fff; font-weight: 700; }
.og-hero .og-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.og-hero .og-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.3px;
}
.og-hero .og-tag--cat { background: rgba(255,255,255,0.95); color: #0077b6; }
.og-hero .og-tag--featured { background: #ffd166; color: #0a2540; }
.og-hero h1 {
  color: #fff; font-size: clamp(1.95rem, 4.2vw, 3.1rem); font-weight: 900; line-height: 1.1;
  max-width: 950px; text-shadow: 0 2px 28px rgba(0,0,0,0.45); margin: 0; letter-spacing: -0.7px;
}
.og-hero p.og-subtitle {
  color: rgba(255,255,255,0.92); font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 820px; line-height: 1.55; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.og-hero .og-author { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.25rem; }
.og-hero .og-author__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #ffd166;
  color: #0a2540; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.og-hero .og-author__info { display: flex; flex-direction: column; line-height: 1.2; }
.og-hero .og-author__name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.og-hero .og-author__role { color: rgba(255,255,255,0.72); font-size: 0.82rem; }
.og-hero .og-author__sep { width: 1px; height: 32px; background: rgba(255,255,255,0.28); margin: 0 0.25rem; }
.og-hero .og-author__meta { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: rgba(255,255,255,0.88); }
.og-hero .og-author__meta i { color: #ffd166; margin-right: 0.35rem; }
.og-hero .og-hashtags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.og-hero .og-hash {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95); padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; backdrop-filter: blur(6px);
}
.og-hero .og-cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.85rem; }
.og-hero .og-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700;
  font-size: 0.95rem; text-decoration: none; transition: transform 0.18s ease;
}
.og-hero .og-cta--primary { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,0.4); }
.og-hero .og-cta--primary:hover { transform: translateY(-2px); background: #1ebe5d; }
.og-hero .og-cta--ghost {
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff; backdrop-filter: blur(8px);
}
.og-hero .og-cta--ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
@media (max-width: 640px) {
  .og-hero .og-author__sep { display: none; }
  .og-hero .og-author { gap: 0.6rem; }
}

/* ---------- Caja de respuesta rápida (AEO/GEO) ---------- */
.quick-answer {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-left: 4px solid #0077b6; border-radius: 16px;
  padding: 1.5rem 1.75rem; margin: 0 0 2.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.08);
}
.quick-answer h2 { font-size: 1.15rem !important; color: #0369a1 !important; font-weight: 800 !important; margin: 0 0 0.6rem 0 !important; padding: 0 !important; border: 0 !important; letter-spacing: 0.3px; text-transform: uppercase; }
.quick-answer p { margin: 0 !important; color: #0c4a6e; font-size: 1.05rem; line-height: 1.65 !important; }
.quick-answer strong { color: #075985; }

/* ---------- Layout: contenido + sidebar ---------- */
.article-layout {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
.article-main { min-width: 0; }
.article-sidebar { position: relative; }
@media (min-width: 1024px) {
  .article-sidebar__inner {
    position: sticky; top: 100px;
    max-height: calc(100vh - 120px); overflow-y: auto;
    padding-right: 0.25rem;
  }
  .article-sidebar__inner::-webkit-scrollbar { width: 6px; }
  .article-sidebar__inner::-webkit-scrollbar-track { background: transparent; }
  .article-sidebar__inner::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
  .article-sidebar__inner::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
}
@media (max-width: 1023px) {
  .article-sidebar { order: -1; }
  .article-sidebar__inner { position: static !important; max-height: none !important; }
}

/* ---------- Bloques del sidebar ---------- */
.sidebar-block {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
  padding: 1.35rem 1.5rem; margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.sidebar-block__title {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: #0077b6; margin: 0 0 1rem 0; padding-bottom: 0.65rem;
  border-bottom: 2px solid #e0f2fe;
  display: flex; align-items: center; gap: 0.5rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: tocitem; }
.toc-list li { counter-increment: tocitem; margin-bottom: 0.45rem; }
.toc-list a {
  display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0.6rem;
  color: #475569; font-size: 0.92rem; line-height: 1.4; border-radius: 10px;
  text-decoration: none; transition: all 0.18s ease; border-left: 3px solid transparent;
}
.toc-list a::before {
  content: counter(tocitem, decimal); flex-shrink: 0; min-width: 1.5rem; height: 1.5rem;
  background: #f1f5f9; color: #64748b; font-size: 0.78rem; font-weight: 700;
  border-radius: 6px; display: grid; place-items: center;
}
.toc-list a:hover { background: #f0f9ff; color: #0077b6; border-left-color: #0077b6; }
.toc-list a.is-active { background: #e0f2fe; color: #0369a1; font-weight: 700; border-left-color: #0077b6; }
.toc-list a.is-active::before { background: #0077b6; color: #fff; }

.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 0.75rem; }
.related-list a {
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.7rem;
  color: #1e293b; font-size: 0.92rem; line-height: 1.4; text-decoration: none;
  border-radius: 10px; background: #f8fafc; border: 1px solid #f1f5f9;
  transition: all 0.18s ease;
}
.related-list a:hover { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }
.related-list .related-icon {
  flex-shrink: 0; width: 1.85rem; height: 1.85rem; border-radius: 8px;
  background: #0077b6; color: #fff; display: grid; place-items: center; font-size: 0.8rem;
}
.related-list .related-text strong { display: block; color: #0f172a; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.15rem; }
.related-list .related-text span { color: #64748b; font-size: 0.8rem; }

.sidebar-cta {
  background: linear-gradient(135deg, #0077b6 0%, #023e7d 100%);
  color: #fff; border-radius: 18px; padding: 1.5rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 119, 182, 0.22);
  text-align: center;
}
.sidebar-cta h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin: 0 0 0.5rem 0; }
.sidebar-cta p { color: rgba(255,255,255,0.88); font-size: 0.88rem; line-height: 1.45; margin: 0 0 1.1rem 0; }
.sidebar-cta a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ffd166; color: #0a2540; font-weight: 800;
  padding: 0.75rem 1.25rem; border-radius: 999px; text-decoration: none;
  font-size: 0.92rem; transition: transform 0.18s ease;
}
.sidebar-cta a:hover { transform: translateY(-2px); }

/* ---------- CTA box dentro del contenido ---------- */
.cta-box {
  background: linear-gradient(135deg, #0077b6 0%, #00a8e8 100%);
  color: #fff; border-radius: 20px; padding: 1.5rem 1.75rem;
  margin: 2rem 0; box-shadow: 0 16px 40px rgba(0, 119, 182, 0.18);
}
.cta-box h3 { color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0 0 0.4rem 0; }
.cta-box p { color: rgba(255,255,255,0.92); font-size: 0.95rem; margin: 0; }
.cta-box a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; color: #0077b6; font-weight: 700;
  padding: 0.6rem 1.25rem; border-radius: 999px; text-decoration: none;
  margin-top: 0.85rem; font-size: 0.92rem;
}

/* ---------- Tabla de precios ---------- */
.price-table-wrap { width: 100%; overflow-x: auto; margin: 1.5rem 0; border-radius: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table thead { background: linear-gradient(135deg, #0077b6 0%, #023e7d 100%); color: #fff; }
.price-table th { padding: 1rem 0.85rem; text-align: left; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px; }
.price-table td { padding: 0.95rem 0.85rem; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; color: #334155; vertical-align: top; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #f8fafc; }
.price-table .price-cell { font-weight: 800; color: #0077b6; font-size: 1.05rem; }
.price-table .price-cell small { display: block; color: #64748b; font-size: 0.78rem; font-weight: 500; margin-top: 0.2rem; }
.price-table .range-pill { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.price-table .range-cabana { background: #d1fae5; color: #065f46; }
.price-table .range-familiar { background: #dbeafe; color: #1e40af; }
.price-table .range-campestre { background: #fef3c7; color: #92400e; }
.price-table .range-premium { background: #fce7f3; color: #9f1239; }
.price-table .range-plazo { background: #ede9fe; color: #5b21b6; }
.price-table .range-alerta { background: #fee2e2; color: #991b1b; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.faq-item summary {
  font-weight: 700; color: #0f172a; cursor: pointer; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #0077b6; font-size: 1.5rem; font-weight: 700; transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.85rem 0 0 0; color: #475569; line-height: 1.7; }

/* ---------- Bloques de apoyo (reutilizables) ---------- */
.warning-box {
  background: #fef3c7; border-left: 4px solid #f59e0b; border-radius: 14px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.warning-box strong { color: #92400e; display: block; margin-bottom: 0.4rem; }
.warning-box p { color: #78350f; margin: 0; line-height: 1.65; }

.checklist {
  background: #f0fdf4; border-left: 4px solid #10b981; border-radius: 14px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.checklist strong { color: #065f46; display: block; margin-bottom: 0.6rem; font-size: 1.05rem; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; color: #064e3b; line-height: 1.6; }
.checklist li::before { content: "✅"; position: absolute; left: 0; }

/* ---------- Timeline de fases (plazos) ---------- */
.fases-timeline { margin: 1.75rem 0; }
.fase-item {
  display: flex; gap: 1.1rem; margin-bottom: 1.5rem; align-items: flex-start;
}
.fase-num {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, #0077b6 0%, #023e7d 100%); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}
.fase-body { flex: 1; min-width: 0; }
.fase-body h3 { margin: 0 0 0.35rem 0; font-size: 1.15rem; color: #0f172a; font-weight: 700; }
.fase-body .fase-meta {
  display: inline-block; background: #e0f2fe; color: #0369a1;
  font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.65rem;
  border-radius: 999px; margin-bottom: 0.5rem;
}
.fase-body p { margin: 0; color: #475569; line-height: 1.7; font-size: 0.98rem; }

/* ---------- Grid de errores (antes de comprar) ---------- */
.errores-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 768px) { .errores-grid { grid-template-columns: repeat(2, 1fr); } }
.error-card {
  background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444;
  border-radius: 16px; padding: 1.35rem 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.error-card h3 { margin: 0 0 0.6rem 0; font-size: 1.1rem; color: #0f172a; }
.error-card p { margin: 0 0 0.75rem 0; font-size: 0.95rem; color: #475569; line-height: 1.7; }
.error-card .error-solution {
  background: #f0fdf4; border-radius: 10px; padding: 0.75rem 0.9rem;
  font-size: 0.9rem; color: #065f46; line-height: 1.6;
}
.error-card .error-solution strong { color: #047857; }

/* ---------- Stats destacadas ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.stat-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 1.25rem 1rem; text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.stat-card .stat-value {
  font-size: 1.65rem; font-weight: 800; color: #0077b6;
  line-height: 1.1; margin-bottom: 0.3rem;
}
.stat-card .stat-label { font-size: 0.85rem; color: #64748b; font-weight: 500; line-height: 1.4; }
