/* ==========================================================================
   BLOG — artículo individual (.blog-post). Cargado solo desde lib_blog.php
   (getBlogAmpliado). Una sola familia: Montserrat (la del sitio).
   Escala: título clamp(24-34) · h2 26 · h3 21 · cuerpo 18/1.75 · meta 14.
   ========================================================================== */
.blog-post{
  --bp-cream:#f8f3e9;
  --bp-gold:#9a5c12;          /* dorado oscuro para texto sobre crema (AA) */
  --bp-accent:var(--orange,#FFA700);
  --bp-text:#3a3a3a;
  --bp-col:740px;
  --bp-wide:1140px;
  --bp-gap:clamp(56px,7vw,88px);
  position:relative;width:100%;background:#fff;color:var(--bp-text);
  font-family:'Montserrat',sans-serif;
}
.blog-post *{font-family:inherit;}
.blog-post__wide{max-width:calc(var(--bp-wide) + 80px);margin:0 auto;padding:0 40px;}

/* Header del sitio: sobre la cabecera clara necesita fondo sólido. */
.site-header{background:rgba(44,44,44,.96);box-shadow:0 4px 20px rgba(0,0,0,.18);}

/* ---------- Cabecera split: texto (5) + imagen (7), mismo contenedor ---------- */
.blog-post__head{
  background:var(--bp-cream);
  padding:calc(var(--header-h,100px) + 48px) 0 64px;
}
.blog-post__head-grid{
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;
}
.blog-post__head-text{min-width:0;}
.blog-post__back{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:28px;
  font-size:14px;font-weight:600;color:var(--bp-text);transition:color .2s ease;
}
.blog-post__back span{transition:transform .2s ease;}
.blog-post__back:hover{color:var(--bp-gold);}
.blog-post__back:hover span{transform:translateX(-3px);}
.blog-post__eyebrow{
  display:block;margin-bottom:14px;
  font-size:12px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--bp-gold);
}
.blog-post__title{
  font-size:clamp(24px,2.4vw,34px);font-weight:600;line-height:1.25;
  color:#2C2C2C;margin:0;text-wrap:balance;overflow-wrap:break-word;
}
.blog-post__title-bar{display:block;width:48px;height:4px;background:var(--bp-accent);margin:22px 0 18px;}
.blog-post__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;font-size:14px;font-weight:500;color:#6b6b6b;}
.blog-post__meta-sep{width:4px;height:4px;border-radius:50%;background:#a9a9a9;}
.blog-post__figure{margin:0;min-width:0;}
.blog-post__figure img{
  width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;background:#e9e2d4;
}

/* ---------- Cuerpo ---------- */
.blog-post__body{max-width:calc(var(--bp-wide) + 80px);margin:0 auto;padding:clamp(48px,6vw,72px) 40px 0;}
.blog-post__content{font-size:18px;font-weight:400;line-height:1.75;color:var(--bp-text);overflow-wrap:break-word;}
/* Una sola tipografía: anula lo que traiga el editor WYSIWYG. */
.blog-post__content,
.blog-post__content *{font-family:inherit !important;}
.blog-post__content :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)[style*="font-size"],
.blog-post__content font{font-size:inherit !important;}
.blog-post__content [style*="line-height"]{line-height:inherit !important;}
.blog-post__content [style*="font-family"]{font-family:inherit !important;}

.blog-post__content > *:first-child{margin-top:0;}
.blog-post__content > *:last-child{margin-bottom:0;}
.blog-post__content p,
.blog-post__content ul,
.blog-post__content ol{margin:0 0 1.4em;}
.blog-post__content h1,
.blog-post__content h2{font-size:26px !important;font-weight:700;line-height:1.3;color:#2C2C2C;margin:2em 0 .7em;}
.blog-post__content h3{font-size:21px !important;font-weight:600;line-height:1.35;color:#2C2C2C;margin:1.7em 0 .6em;}
.blog-post__content h4,
.blog-post__content h5,
.blog-post__content h6{font-size:18px !important;font-weight:600;line-height:1.4;color:#2C2C2C;margin:1.5em 0 .5em;}
.blog-post__content h2 + p,.blog-post__content h3 + p{margin-top:0;}
.blog-post__content strong,.blog-post__content b{font-weight:600;color:#2C2C2C;}
.blog-post__content a{color:var(--bp-gold);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.blog-post__content a:hover{color:#2C2C2C;}
.blog-post__content ul,
.blog-post__content ol{padding-left:1.4em;}
.blog-post__content li{margin:0 0 .55em;padding-left:.25em;}
.blog-post__content li::marker{color:var(--bp-accent);font-weight:700;}
.blog-post__content blockquote{
  margin:2em 0;padding:6px 0 6px 26px;border-left:4px solid var(--bp-accent);
  font-size:20px;line-height:1.6;font-style:italic;color:#2C2C2C;
}
.blog-post__content blockquote p:last-child{margin-bottom:0;}
.blog-post__content img{max-width:100%;height:auto !important;border-radius:6px;margin:2em auto;}
.blog-post__content p > img:only-child{margin:0 auto;}
.blog-post__content figure{margin:2em 0;}
.blog-post__content figcaption{font-size:14px;color:#6b6b6b;margin-top:10px;text-align:center;}
.blog-post__content iframe,.blog-post__content video{max-width:100%;border:0;}
.blog-post__content table{width:100%;border-collapse:collapse;margin:2em 0;font-size:16px;display:block;overflow-x:auto;}
.blog-post__content th,.blog-post__content td{padding:10px 12px;border-bottom:1px solid #e5e0d6;text-align:left;}
.blog-post__content hr{border:0;height:1px;background:#e5e0d6;margin:2.5em 0;}
.blog-post__aviso{
  background:var(--bp-cream);border-left:4px solid var(--bp-accent);padding:14px 18px;margin:0 0 1.6em !important;
  font-size:15px;font-weight:500;line-height:1.5;color:#2C2C2C;border-radius:0 4px 4px 0;
}

/* ---------- Compartir ---------- */
.blog-post__share{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;
  margin-top:56px;padding:24px 0;border-top:1px solid #e5e0d6;border-bottom:1px solid #e5e0d6;
}
.blog-post__share-label{font-size:15px;font-weight:600;color:#2C2C2C;}
.blog-post__share-list{display:flex;flex-wrap:wrap;gap:10px;}
.blog-post__share-btn{
  display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;
  border:1px solid #d9d2c4;border-radius:999px;background:#fff;
  font-size:14px;font-weight:500;color:#2C2C2C;cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.blog-post__share-btn:hover,
.blog-post__share-btn.is-ok{background:#2C2C2C;border-color:#2C2C2C;color:#fff;}

/* ---------- Más del blog ---------- */
.blog-post__related{padding-top:var(--bp-gap);}
.blog-post__related-head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:32px;
}
.blog-post__section-title{
  position:relative;font-size:clamp(24px,2.4vw,30px);font-weight:700;line-height:1.25;color:#2C2C2C;margin:0;padding-top:18px;
}
.blog-post__section-title::before{content:"";position:absolute;top:0;left:0;width:48px;height:4px;background:var(--bp-accent);}
.blog-post__related-all{font-size:14px;font-weight:600;color:var(--bp-gold);}
.blog-post__related-all:hover{color:#2C2C2C;}
.blog-post__related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;}
.blog-post__rel-card{display:flex;flex-direction:column;}
.blog-post__rel-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;border-radius:6px;margin-bottom:18px;background:#e9e2d4;}
.blog-post__rel-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease;}
.blog-post__rel-card:hover .blog-post__rel-media img{transform:scale(1.04);}
.blog-post__rel-bar{position:absolute;left:0;bottom:0;width:56px;height:4px;background:var(--bp-accent);}
.blog-post__rel-date{font-size:13px;font-weight:500;color:#6b6b6b;margin-bottom:8px;}
.blog-post__rel-title{font-size:18px;font-weight:700;line-height:1.35;color:#2C2C2C;margin:0 0 12px;}
.blog-post__rel-title a{color:inherit;transition:color .2s ease;}
.blog-post__rel-title a:hover{color:var(--bp-gold);}
.blog-post__rel-link{margin-top:auto;font-size:14px;font-weight:600;color:var(--bp-gold);}
.blog-post__rel-link:hover{color:#2C2C2C;}

/* ---------- CTA ---------- */
.blog-post__cta{margin-top:var(--bp-gap);background:var(--bp-cream);color:var(--bp-text);border-top:1px solid #ece4d3;}
.blog-post__cta-inner{position:relative;padding-top:72px;padding-bottom:72px;text-align:center;}
.blog-post__cta-bar{display:block;width:56px;height:4px;background:var(--bp-accent);margin:0 auto 24px;}
.blog-post__cta-title{font-size:clamp(26px,2.8vw,36px);font-weight:700;line-height:1.2;color:#2C2C2C;margin:0 0 14px;}
.blog-post__cta-text{font-size:17px;line-height:1.6;color:#5f5f5f;max-width:560px;margin:0 auto 32px;}
.blog-post__cta-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;}

/* ---------- Responsive ---------- */
@media (max-width:899px){
  .blog-post__head{padding:calc(var(--header-h,100px) + 28px) 0 40px;}
  .blog-post__head-grid{grid-template-columns:1fr;gap:28px;}
  .blog-post__back{margin-bottom:22px;}
  .blog-post__title{font-size:clamp(22px,5.6vw,26px);}
  .blog-post__title-bar{margin:18px 0 14px;}
  .blog-post__related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
  .blog-post__related-grid > :nth-child(3){display:none;}
  .blog-post__wide,.blog-post__body{padding-left:24px;padding-right:24px;}
}
@media (max-width:600px){
  .blog-post__wide,.blog-post__body{padding-left:20px;padding-right:20px;}
  .blog-post__content{font-size:17px;}
  .blog-post__content h1,.blog-post__content h2{font-size:23px !important;}
  .blog-post__content h3{font-size:19px !important;}
  .blog-post__share{flex-direction:column;align-items:flex-start;}
  .blog-post__share-btn{padding:0 14px;}
  .blog-post__related-grid{grid-template-columns:1fr;gap:36px;}
  .blog-post__related-grid > :nth-child(3){display:flex;}
  .blog-post__cta-inner{padding-top:56px;padding-bottom:56px;}
  .blog-post__cta-actions .btn{width:100%;}
}
