/* ACM BLOG FACIL v1.2: maquetacion editorial automatica, sin tocar el contenido guardado. */
:root { --acmbf-corten:#c65a27; --acmbf-paper:#f2efe7; --acmbf-ink:#302019; }

/* Deshacer el panel blanco de ancho completo de la version anterior. */
body.single-post.acmbf-post .entry-content {
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
body.single-post.acmbf-post .entry-content > .acmbf-editorial {
  box-sizing:border-box;
  width:min(100%, 920px);
  max-width:920px;
  margin:0 auto;
}
body.single-post.acmbf-post .acmbf-editorial { color:var(--acmbf-ink); }
body.single-post.acmbf-post .acmbf-editorial__intro,
body.single-post.acmbf-post .acmbf-section {
  background:#fff;
  border-left:4px solid var(--acmbf-corten);
  border-radius:9px;
  padding:clamp(22px,3.6vw,34px);
  margin:0 0 20px;
  box-shadow:0 4px 18px rgba(48,32,25,.035);
  overflow:flow-root;
}
body.single-post.acmbf-post .acmbf-editorial__intro {font-size:1.04em;}
body.single-post.acmbf-post .acmbf-section h2 {
  font-size:clamp(23px,2.4vw,30px);
  line-height:1.22;
  margin:0 0 16px;
  color:var(--acmbf-ink);
}
body.single-post.acmbf-post .acmbf-section h3 {
  font-size:clamp(19px,1.8vw,22px);
  line-height:1.3;
  margin:19px 0 9px;
  color:var(--acmbf-ink);
}
body.single-post.acmbf-post .acmbf-editorial p,
body.single-post.acmbf-post .acmbf-editorial ul,
body.single-post.acmbf-post .acmbf-editorial ol {
  font-size:16.5px;
  line-height:1.65;
  margin-top:0;
  margin-bottom:13px;
}
body.single-post.acmbf-post .acmbf-editorial p:last-child {margin-bottom:0;}
body.single-post.acmbf-post .acmbf-section li {margin-bottom:5px;}
body.single-post.acmbf-post .acmbf-section__body {display:flow-root;}
/* Textos largos en doble columna: solo escritorio y solo apartados sin imagen. */
@media (min-width: 980px) {
  body.single-post.acmbf-post .acmbf-section--columns .acmbf-section__body {
    columns:2;
    column-gap:34px;
  }
  body.single-post.acmbf-post .acmbf-section--columns p,
  body.single-post.acmbf-post .acmbf-section--columns ul,
  body.single-post.acmbf-post .acmbf-section--columns ol { break-inside:avoid-column; }
}
/* Imagen panoramica: ancho completo y enlace para ver original. */
body.single-post.acmbf-post .acmbf-foto-articulo {margin:10px 0 20px;}
body.single-post.acmbf-post .acmbf-foto-articulo img {
  display:block;
  max-width:100%;
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:8px;
}
body.single-post.acmbf-post .acmbf-foto-articulo figcaption {
  color:#76685d;
  font-size:12px;
  line-height:1.4;
  text-align:center;
  margin-top:7px;
}
@media(min-width:800px) {
  body.single-post.acmbf-post .acmbf-foto-articulo:not(.acmbf-foto--wide) {
    float:right;
    width:44%;
    margin:0 0 18px 24px;
  }
}
body.single-post.acmbf-post .acmbf-indice {
  border:1px solid #e1d8ce;
  background:#fff;
  border-radius:9px;
  padding:17px 22px;
  margin:0 0 20px;
}
body.single-post.acmbf-post .acmbf-indice summary {
  cursor:pointer;
  color:var(--acmbf-ink);
  font-weight:700;
  font-size:17px;
}
body.single-post.acmbf-post .acmbf-indice summary span {font-weight:400;color:#76685d;}
body.single-post.acmbf-post .acmbf-indice ol {
  columns:2;
  column-gap:32px;
  padding-left:22px;
  margin:16px 0 0;
}
body.single-post.acmbf-post .acmbf-indice li {break-inside:avoid; margin:0 0 8px;}
body.single-post.acmbf-post .acmbf-indice a {color:#99421f;text-decoration:none;}
body.single-post.acmbf-post .acmbf-indice a:hover {text-decoration:underline;}
body.single-post.acmbf-post .acmbf-cta {
  background:#e9e0d6;
  border-left:4px solid var(--acmbf-corten);
  border-radius:8px;
  padding:24px 28px;
  margin:0 0 16px;
}
body.single-post.acmbf-post .acmbf-cta strong {font-size:20px;display:block;}
body.single-post.acmbf-post .acmbf-cta p {margin:9px 0 16px;}
body.single-post.acmbf-post .acmbf-cta a {
  display:inline-block;
  padding:11px 18px;
  color:#fff;
  font-weight:600;
  background:var(--acmbf-corten);
  border-radius:5px;
  text-decoration:none;
}
body.single-post.acmbf-post .acmbf-cta a:hover {background:#aa4921;color:#fff;}
/* Tarjetas publicas: se mantienen las configuraciones de Blocksy. */
body.blog .entries article,
body.blog article.entry-card {background:#fff;border-radius:10px;overflow:hidden;}
body.blog .entries article .entry-title,
body.blog article.entry-card .entry-title {line-height:1.33;}
body.blog .entries article .entry-excerpt,
body.blog article.entry-card .entry-excerpt {line-height:1.62;}
@media(max-width: 767px) {
  body.single-post.acmbf-post .acmbf-editorial__intro,
  body.single-post.acmbf-post .acmbf-section {padding:20px 17px;margin-bottom:14px;}
  body.single-post.acmbf-post .acmbf-section h2 {font-size:22px;}
  body.single-post.acmbf-post .acmbf-indice ol {columns:1;}
  body.single-post.acmbf-post .acmbf-cta {padding:20px 17px;}
}


/* === ACM BLOG FACIL v1.4: presentaciones editoriales por articulo === */
/* Guía: mantiene todos los estilos de la v1.3. */
body.single-post.acmbf-layout--visual .acmbf-editorial {
  width:min(100%,1000px);
  max-width:1000px;
}
body.single-post.acmbf-layout--visual .acmbf-editorial__intro {
  background:#fff;
  border-left-color:var(--acmbf-corten);
  padding:clamp(24px,4vw,40px);
  font-size:1.10em;
}
body.single-post.acmbf-layout--visual .acmbf-section {
  border-left:4px solid var(--acmbf-corten);
  padding:clamp(22px,3.8vw,38px);
  margin-bottom:22px;
}
body.single-post.acmbf-layout--visual .acmbf-section:nth-of-type(even) {
  background:#fffaf5;
}
body.single-post.acmbf-layout--visual .acmbf-section h2 {
  margin:0 0 18px;
  font-size:clamp(24px,2.6vw,32px);
  letter-spacing:-.025em;
}
body.single-post.acmbf-layout--visual .acmbf-section--photo .acmbf-visual-media {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  align-items:start;
  gap:clamp(20px,3vw,36px);
}
body.single-post.acmbf-layout--visual .acmbf-section--side-photo .acmbf-foto-articulo {
  float:none;
  width:100%;
  min-width:0;
  margin:0;
}
body.single-post.acmbf-layout--visual .acmbf-section--side-photo .acmbf-foto-articulo img {
  width:100%;
  height:auto;
  max-height:490px;
  object-fit:cover;
  border-radius:8px;
}
body.single-post.acmbf-layout--visual .acmbf-section--side-photo .acmbf-visual-media__text > :first-child {
  margin-top:0;
}
body.single-post.acmbf-layout--visual .acmbf-section--side-photo .acmbf-visual-media__text > :last-child {
  margin-bottom:0;
}
/* Sin fotografías: alternar composición de apartados, no cortar párrafos en columnas. */
@media (min-width:980px) {
  body.single-post.acmbf-layout--visual .acmbf-section:nth-of-type(3n) {
    margin-left:3.2%;
  }
  body.single-post.acmbf-layout--visual .acmbf-section:nth-of-type(3n + 1) {
    margin-right:3.2%;
  }
  body.single-post.acmbf-layout--visual .acmbf-section--photo {
    margin-left:0;
    margin-right:0;
  }
}
@media (max-width:800px) {
  body.single-post.acmbf-layout--visual .acmbf-section--photo .acmbf-visual-media {
    display:block;
  }
  body.single-post.acmbf-layout--visual .acmbf-section--side-photo .acmbf-foto-articulo {
    margin:0 0 22px;
  }
  body.single-post.acmbf-layout--visual .acmbf-section {
    margin-left:0;
    margin-right:0;
  }
}
