/* Caminando por Aquí — plantilla editorial de Guías v1.4.0
   Deliberately scoped to single guide posts; independent from Portada CPA styles. */
body.cpa-gd-page{margin:0;background:#fffdf9;color:#202c27;font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
body.cpa-gd-page *,body.cpa-gd-page *::before,body.cpa-gd-page *::after{box-sizing:border-box}
body.cpa-gd-page{--cpa-gd-forest:#214d3a;--cpa-gd-deep:#153e2d;--cpa-gd-ochre:#d79a49;--cpa-gd-cream:#f6f4ea;--cpa-gd-moss:#73945a;--cpa-gd-text:#202c27}
.cpa-gd{width:100%;overflow:clip;min-height:100vh;font-size:16px;line-height:1.6}
.cpa-gd a{color:var(--cpa-gd-forest)}
.cpa-gd a:hover{text-decoration:underline}
.cpa-gd :focus-visible{outline:3px solid var(--cpa-gd-ochre);outline-offset:3px}
.cpa-gd-container{width:min(1120px,calc(100% - 48px));margin-inline:auto}
.cpa-gd-skip{position:fixed;top:-85px;left:12px;padding:12px 18px;background:white;color:var(--cpa-gd-forest);z-index:999999}
.cpa-gd-skip:focus{top:10px}
.cpa-gd-header{background:var(--cpa-gd-cream);position:relative;z-index:20;box-shadow:0 1px 8px rgba(17,57,35,.12)}
.cpa-gd-header-inner{height:90px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.cpa-gd-brand{flex-shrink:0;display:flex;align-items:center;color:var(--cpa-gd-deep)!important;font-weight:900;text-decoration:none!important;font-size:21px}
.cpa-gd-brand img{width:234px;height:auto;max-height:79px;object-fit:contain;display:block}
.cpa-gd-brand em{color:var(--cpa-gd-ochre)}
.cpa-gd-nav{display:flex;align-items:center;gap:28px;margin-left:auto;margin-right:auto}
.cpa-gd-nav a{font-size:14px;line-height:1.3;font-weight:700;white-space:nowrap;text-decoration:none;color:#20382d;position:relative;padding-block:35px}
.cpa-gd-nav a:hover,.cpa-gd-nav a.cpa-gd-active{color:var(--cpa-gd-forest)}
.cpa-gd-nav a.cpa-gd-active::after{content:"";height:3px;background:var(--cpa-gd-ochre);position:absolute;bottom:23px;left:0;right:0;border-radius:3px}
.cpa-gd-header-actions{display:flex;align-items:center;gap:12px}
.cpa-gd-search{background:var(--cpa-gd-forest);color:white!important;width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.cpa-gd-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cpa-gd-menu-toggle{display:none;background:transparent;border:0;padding:9px;cursor:pointer;width:44px;height:44px}
.cpa-gd-menu-toggle span{display:block;height:2px;background:var(--cpa-gd-forest);border-radius:3px;margin:6px 0}
.cpa-gd-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:4px;font-size:13px;line-height:1.45;margin:27px 0 25px;color:#526a5b}
.cpa-gd-breadcrumb a{font-weight:600;text-decoration:none}
.cpa-gd-breadcrumb .cpa-gd-current{max-width:400px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#6b7a6e}
.cpa-gd-article{margin-bottom:76px}
.cpa-gd-article-header{padding:0 16px 0 16px;max-width:980px;margin-bottom:24px}
.cpa-gd-pill{display:inline-block;color:white;background:var(--cpa-gd-forest);border-radius:100px;font-size:12px;line-height:1.2;padding:8px 15px;font-weight:750;margin-bottom:15px;box-shadow:0 2px 5px #153e2d18}
.cpa-gd-article-header h1{color:var(--cpa-gd-deep);font-size:clamp(34px,3.7vw,50px);font-weight:900;letter-spacing:-.032em;line-height:1.13;margin:0 0 15px;max-width:960px}
.cpa-gd-deck{margin:0 0 20px;font-size:20px;line-height:1.55;color:#3a4a3e;max-width:815px}
.cpa-gd-meta{display:flex;gap:23px;align-items:center;flex-wrap:wrap;font-size:13px;color:#41584c}
.cpa-gd-meta>span:not(.cpa-gd-meta-category){display:inline-flex;align-items:center;gap:7px}
.cpa-gd-meta svg{width:17px;height:17px;fill:none;stroke:var(--cpa-gd-forest);stroke-width:1.8;stroke-linecap:round}
.cpa-gd-meta-category{display:inline-flex;align-items:center;background:#e8f0df;color:#244c38;border-radius:20px;padding:6px 11px;font-weight:700}
.cpa-gd-hero{width:100%;height:360px;border-radius:16px;overflow:hidden;position:relative;background:linear-gradient(110deg,#2a5644,#3e7660 55%,#a4b59a);box-shadow:0 9px 28px #153e2d15;margin-bottom:18px;isolation:isolate}
.cpa-gd-hero img.cpa-gd-hero-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 52%}
.cpa-gd-hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 25%,rgba(5,40,25,.05) 60%,rgba(6,37,25,.26) 100%);z-index:1}
.cpa-gd-hero-label{position:absolute;bottom:22px;right:22px;z-index:2;background:#153e2dea;color:white;padding:17px 21px;display:flex;align-items:center;gap:15px;border-radius:13px;box-shadow:0 6px 14px #0002;font-weight:800;font-size:17px;line-height:1.3}
.cpa-gd-post-sign{width:42px;height:42px;flex:none;fill:none;stroke:#e6ac51;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cpa-gd-features{background:linear-gradient(90deg,#f0f4eb,#f6f4ea);border:1px solid #e1e8d7;border-radius:13px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 26px;margin:22px 7px 30px}
.cpa-gd-features>div{display:flex;align-items:center;gap:13px;min-width:0;padding:0 21px;border-right:1px solid #d0dacb}
.cpa-gd-features>div:first-child{padding-left:0}
.cpa-gd-features>div:last-child{padding-right:0;border-right:0}
.cpa-gd-feature-icon{color:#5c853f;width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cpa-gd-features p{margin:0!important;display:flex;flex-direction:column;gap:1px}
.cpa-gd-features strong{color:var(--cpa-gd-deep);font-size:15px;line-height:1.25}
.cpa-gd-features small{color:#41544a;font-size:12px;line-height:1.35}
/* Gutenberg post body stays native and editable. */
.cpa-gd-body{font-size:17px;line-height:1.78;max-width:840px;margin:0 auto;color:#26382f}
.cpa-gd-body > *{max-width:100%}
.cpa-gd-body p{margin:0 0 21px}
.cpa-gd-body > p:first-of-type{font-size:18px;line-height:1.7;border-left:4px solid var(--cpa-gd-ochre);padding:9px 0 9px 20px;margin-bottom:20px}
.cpa-gd-body h2{font-size:clamp(25px,2.5vw,31px);font-weight:850;letter-spacing:-.032em;color:var(--cpa-gd-deep);line-height:1.28;margin:42px 0 18px;scroll-margin-top:32px}
.cpa-gd-body h3{font-size:clamp(20px,2vw,24px);font-weight:800;color:var(--cpa-gd-deep);line-height:1.35;margin:29px 0 13px;scroll-margin-top:32px}
.cpa-gd-body :is(h4,h5,h6){color:var(--cpa-gd-deep);line-height:1.4;scroll-margin-top:32px}
.cpa-gd-body ul,.cpa-gd-body ol{padding-left:25px;margin:7px 0 25px}
.cpa-gd-body li{margin-bottom:8px;padding-left:2px}
.cpa-gd-body li::marker{color:var(--cpa-gd-forest)}
.cpa-gd-body strong{color:#164532}
.cpa-gd-body a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.cpa-gd-body .wp-block-image{margin:29px 0 34px}
.cpa-gd-body img{max-width:100%;height:auto;border-radius:13px}
.cpa-gd-body figcaption{color:#6b7a6f;font-size:13px;line-height:1.5;text-align:center;margin-top:9px}
.cpa-gd-body blockquote,.cpa-gd-body .wp-block-quote{background:#fcf3e6;border-left:4px solid var(--cpa-gd-ochre);padding:18px 23px;border-radius:10px;font-size:17px;margin:30px 0}
/* Optional Gutenberg paragraph style: select “Consejo destacado CPA” under Styles. */
.cpa-gd-body p.is-style-cpa-guia-consejo{background:#fcf3e6;border-left:4px solid var(--cpa-gd-ochre);border-radius:10px;padding:17px 20px;margin:25px 0;color:#26382f}
.cpa-gd-body .wp-block-table{overflow:auto}
.cpa-gd-body table{width:100%;border-collapse:collapse;font-size:15px}
.cpa-gd-body td,.cpa-gd-body th{padding:12px;border:1px solid #dbe3d7}
.cpa-gd-body th{background:#edf2e8}
/* Rank Math Table of Contents native block. No JS or fake anchors. */
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block){background:linear-gradient(135deg,#fffdf7,#faf7ef);border:1px solid #e7d5b3;border-radius:15px;box-shadow:0 4px 12px #153e2d0a;padding:25px 30px 23px;margin:37px 0 39px;max-width:100%}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) :is(h2,h3,h4){margin:0 0 16px;color:var(--cpa-gd-deep);line-height:1.25;scroll-margin-top:0;font-size:26px;font-weight:850}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) ol,
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) ul{margin:3px 0 0;padding-left:25px}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) li{margin:7px 0;line-height:1.5;overflow-wrap:anywhere}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) a{font-weight:650;color:var(--cpa-gd-deep);text-decoration:underline;text-decoration-color:#73945a78;text-underline-offset:3px}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) li li a{font-weight:400}
.cpa-gd-article-end{max-width:840px;margin:46px auto 0;padding:23px 26px;background:var(--cpa-gd-cream);border-left:4px solid var(--cpa-gd-ochre);border-radius:12px}
.cpa-gd-article-end p{margin:0 0 15px;font-size:15px;line-height:1.6}
.cpa-gd-article-end a{display:inline-flex;align-items:center;gap:14px;background:var(--cpa-gd-forest);color:#fff!important;border-radius:50px;padding:9px 18px;text-decoration:none;font-size:14px;font-weight:800}
.cpa-gd-article-end a:hover{background:#153e2d;text-decoration:none}
.cpa-gd-footer{background:var(--cpa-gd-deep);color:#f1f6ef}
.cpa-gd-footer-inner{display:flex;justify-content:space-between;align-items:center;gap:30px;padding-top:24px;padding-bottom:23px}
.cpa-gd-footer-brand{display:flex;align-items:center;gap:20px;min-width:0}
.cpa-gd-footer-brand img{width:150px;height:auto;display:block;object-fit:contain}
.cpa-gd-footer-brand p{border-left:1px solid #ffffff50;padding-left:18px;max-width:260px;line-height:1.4;font-size:12px;margin:0}
.cpa-gd-footer nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:17px}
.cpa-gd-footer a{color:#f1f6ef;font-size:12px;text-decoration:none;white-space:nowrap}
.cpa-gd-footer-bottom{border-top:1px solid #ffffff30;padding-top:12px;padding-bottom:14px;font-size:11px;color:#c9d7cd}
@media(max-width:900px){
  .cpa-gd-header-inner{height:77px}.cpa-gd-brand img{width:190px}
  .cpa-gd-nav{display:none;position:absolute;left:0;right:0;top:100%;z-index:50;background:var(--cpa-gd-cream);box-shadow:0 12px 20px #0003;padding:10px 22px 20px;flex-direction:column;align-items:stretch;gap:0}
  .cpa-gd-nav.cpa-gd-nav-open{display:flex}
  .cpa-gd-nav a{padding:14px 5px;border-bottom:1px solid #dbe5d9}
  .cpa-gd-nav a.cpa-gd-active::after{width:34px;bottom:7px;right:auto}
  .cpa-gd-menu-toggle{display:block}
  .cpa-gd-breadcrumb .cpa-gd-current{max-width:190px}
  .cpa-gd-hero{height:320px}
  .cpa-gd-footer-inner{display:block}
  .cpa-gd-footer-brand{margin-bottom:24px}
  .cpa-gd-footer nav{justify-content:flex-start}
}
@media(max-width:600px){
  .cpa-gd-container{width:calc(100% - 30px)}
  .cpa-gd-header-inner{gap:10px}
  .cpa-gd-brand img{width:170px;max-height:65px}
  .cpa-gd-search{width:35px;height:35px}
  .cpa-gd-header-actions{gap:4px}
  .cpa-gd-breadcrumb{font-size:11px;margin:19px 0 19px}
  .cpa-gd-breadcrumb .cpa-gd-current{display:none}
  .cpa-gd-article-header{padding:0 2px}
  .cpa-gd-article-header h1{font-size:34px;line-height:1.14;margin-bottom:15px}
  .cpa-gd-pill{font-size:11px;margin-bottom:12px}
  .cpa-gd-deck{font-size:16px;line-height:1.55}
  .cpa-gd-meta{gap:11px 15px;font-size:11px;line-height:1.35}
  .cpa-gd-meta-category{padding:5px 9px}
  .cpa-gd-hero{height:235px;border-radius:12px;margin-top:22px}
  .cpa-gd-hero-label{right:10px;bottom:10px;padding:10px 12px;gap:8px;font-size:12px;border-radius:9px}
  .cpa-gd-post-sign{width:27px;height:27px}
  .cpa-gd-features{margin:16px 0 23px;padding:13px 11px;gap:4px;border-radius:10px}
  .cpa-gd-features>div{padding:0 6px;gap:5px;flex-direction:column;text-align:center;justify-content:center}
  .cpa-gd-feature-icon{width:23px;height:23px}
  .cpa-gd-features strong{font-size:11px}
  .cpa-gd-features small{font-size:9px}
  .cpa-gd-body{font-size:17px;line-height:1.65}
  .cpa-gd-body p{font-size:17px;line-height:1.65;margin:0 0 18px}
  .cpa-gd-body>p:first-of-type{font-size:17px;line-height:1.6;padding-left:14px}
  .cpa-gd-body h2{font-size:25px;line-height:1.30;margin:33px 0 15px}
  .cpa-gd-body h3{font-size:21px;line-height:1.35;margin:25px 0 11px}
  .cpa-gd-body ul,.cpa-gd-body ol{padding-left:22px}
  .cpa-gd-body li{font-size:17px;line-height:1.6}
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block){padding:18px 16px;margin:26px 0 28px;border-radius:11px}
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) :is(h2,h3,h4){font-size:22px}
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) li{font-size:15px;line-height:1.5}
  .cpa-gd-article-end{margin-top:35px;padding:19px}
  .cpa-gd-footer-inner{padding-top:22px}
  .cpa-gd-footer-brand img{width:128px}
  .cpa-gd-footer-brand p{font-size:11px}
}
@media(prefers-reduced-motion:no-preference){.cpa-gd{scroll-behavior:smooth}}

/* V1.2 — INDEX EDITORIAL + PRIMER PASO CON FOTO (solo fichas de Guías).
   Conserva tabla de contenidos Rank Math original y sus IDs. */
@media (min-width: 781px) {
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) {
    width: calc(100% + 96px);
    max-width: calc(100vw - 48px);
    margin-left: -48px;
  }
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) {
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#fffdf8 0%,#fffaf1 100%);
  border:2px solid #ead5ad;
  border-radius:17px;
  padding:25px 32px 28px;
  box-shadow:0 5px 20px #153e2d0a;
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block)::after {
  content:"";
  position:absolute;
  right:-49px;top:-77px;width:190px;height:180px;
  border-radius:50%;
  background:repeating-radial-gradient(ellipse at center, transparent 0 10px, rgba(215,154,73,.23) 11px 12px,transparent 13px 20px);
  pointer-events:none;
  opacity:.7;
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) :is(h2,h3,h4) {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
  font-size:clamp(23px,2.6vw,29px);
  position:relative;
  z-index:1;
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) :is(h2,h3,h4)::before {
  content:"";
  display:block;
  flex:none;
  width:33px;height:35px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M3 8 12 5l11 3 10-4v23l-10 4-11-3-9 3V8Zm9-3v23m11-20v23' fill='none' stroke='%23214d3a' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M21 7c0 4-7 9-7 13m7-13c3 4 2 7 0 10' fill='none' stroke='%23214d3a' stroke-dasharray='2 2' stroke-width='1.5'/%3E%3Ccircle cx='23' cy='7' r='4' fill='%23d79a49' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
/* Two-column TOC only for native top-level navigation lists, never the article's lists. */
@media (min-width: 781px) {
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > :is(ol,ul),
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > nav > :is(ol,ul) {
    columns:2;
    column-gap:60px;
    column-rule:1px solid #e5d7bf;
    padding-left:26px;
  }
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > :is(ol,ul) > li,
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > nav > :is(ol,ul) > li {
    break-inside:avoid;
    -webkit-column-break-inside:avoid;
    page-break-inside:avoid;
  }
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > :is(ol,ul),
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > nav > :is(ol,ul) {
  position:relative;z-index:1;
}
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > :is(ol,ul) > li,
.cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > nav > :is(ol,ul) > li {
  margin:6px 0 11px;
}
/* First H2 styled as the numbered first step; actual anchor/id remains untouched. */
.cpa-gd-body > h2:first-of-type {
  display:flex;
  align-items:center;
  gap:14px;
  max-width:100%;
  margin-top:39px;
}
.cpa-gd-body > h2:first-of-type::before {
  content:"1";
  display:grid;
  place-items:center;
  flex:0 0 39px;
  width:39px;height:39px;
  border-radius:50%;
  background:#cc880f;
  color:white;
  font:bold 22px/1 Arial,Helvetica,sans-serif;
  box-shadow:0 4px 12px #9d611c22;
}
/* Photo from Gutenberg: put the image block after first H2 and choose “Foto lateral CPA”.
   Explicit editor style avoids silently altering unrelated editorial photos. */
.cpa-gd-body figure.wp-block-image.is-style-cpa-guia-foto-lateral {
  float:right;
  width:44%;
  max-width:44%;
  margin:4px 0 20px 24px;
}
.cpa-gd-body figure.is-style-cpa-guia-foto-lateral img {
  width:100%;height:260px;object-fit:cover;display:block;
  border-radius:13px;
}
.cpa-gd-body figure.is-style-cpa-guia-foto-lateral figcaption{font-size:12px}
/* Use paragraph block style “Consejo destacado CPA”, already supported in 1.1. */
.cpa-gd-body p.is-style-cpa-guia-consejo {
  display:block;
  background:#faf0df;
  border:0;
  border-radius:12px;
  padding:16px 18px 16px 48px;
  position:relative;
  font-size:15px;
  line-height:1.55;
  margin:20px 0 22px;
}
.cpa-gd-body p.is-style-cpa-guia-consejo::before {
  content:"";
  position:absolute;
  top:15px;left:13px;
  width:25px;height:29px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 2a8 8 0 0 0-5 14c1.5 1.1 2 3 2 4h6c0-1 0-2.5 2-4A8 8 0 0 0 12 2ZM9 22h6m-5 3h4' fill='none' stroke='%23d79a49' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width:780px) {
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) {
    margin-left:0;
    width:100%;
    padding:19px 16px 21px;
  }
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > :is(ol,ul),
  .cpa-gd-body :is(.wp-block-rank-math-toc-block,.rank-math-toc,.rank-math-toc-block) > nav > :is(ol,ul) {columns:1;column-rule:none;padding-left:20px}
  .cpa-gd-body > h2:first-of-type{gap:10px;align-items:flex-start;font-size:24px}
  .cpa-gd-body > h2:first-of-type::before{width:32px;height:32px;flex-basis:32px;font-size:18px}
  .cpa-gd-body figure.wp-block-image.is-style-cpa-guia-foto-lateral{float:none;width:100%;max-width:100%;margin:16px 0 22px}
  .cpa-gd-body figure.is-style-cpa-guia-foto-lateral img{height:auto;max-height:300px;aspect-ratio:16/10;object-fit:cover}
}

/* V1.3: Primer paso, maqueta editorial de dos columnas.
   Sólo se activa si Gutenberg usa AMBOS estilos voluntarios (foto lateral + consejo).
   El JS no elimina contenidos ni cambia IDs de anclaje; si falla, permanece diseño V1.2. */
.cpa-gd-body .cpa-gd-step-grid{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.96fr);
  column-gap:24px;
  align-items:start;
  margin:7px 0 23px;
  width:100%;
}
.cpa-gd-body .cpa-gd-step-copy{min-width:0;}
.cpa-gd-body .cpa-gd-step-copy p:not(.is-style-cpa-guia-consejo){
  margin:0 0 14px;
  font-size:17px;
  line-height:1.58;
}
.cpa-gd-body .cpa-gd-step-copy p.is-style-cpa-guia-consejo{
  width:100%;margin:12px 0 0;
  padding:15px 16px 15px 48px;
  font-size:15px;line-height:1.5;
  background:#faf0df;border:0;
}
.cpa-gd-body .cpa-gd-step-grid > figure.wp-block-image.is-style-cpa-guia-foto-lateral{
  width:100%;max-width:none;min-width:0;float:none;
  margin:0;align-self:stretch;
}
.cpa-gd-body .cpa-gd-step-grid > figure.is-style-cpa-guia-foto-lateral img{
  height:260px;max-height:none;min-height:0;aspect-ratio:auto;
  width:100%;object-fit:cover;object-position:center;
  border-radius:13px;
}
@media (max-width:780px){
  .cpa-gd-body .cpa-gd-step-grid{display:flex;flex-direction:column;gap:15px;margin-bottom:22px}
  .cpa-gd-body .cpa-gd-step-grid > figure.wp-block-image.is-style-cpa-guia-foto-lateral{
    width:100%;margin:0;order:2;
  }
  .cpa-gd-body .cpa-gd-step-copy{width:100%;order:1}
  .cpa-gd-body .cpa-gd-step-copy p:not(.is-style-cpa-guia-consejo){font-size:17px;line-height:1.65}
  .cpa-gd-body .cpa-gd-step-grid > figure.is-style-cpa-guia-foto-lateral img{
    height:auto;max-height:320px;aspect-ratio:16/10;object-fit:cover;
  }
}


/* V1.4 — NUMERACIÓN COHERENTE DE LOS OCHO PASOS PRINCIPALES.
   El índice de Rank Math y sus H2 internos quedan excluidos. El contador
   sólo recorre H2 directos del cuerpo; no cambia el HTML guardado ni los IDs.
   Los H2 posteriores al octavo (FAQ, fuentes, conclusión...) no llevan círculo. */
.cpa-gd-body{counter-reset:cpa-gd-paso}
.cpa-gd-body > h2{counter-increment:cpa-gd-paso}
.cpa-gd-body > h2:nth-of-type(-n+8){
  display:flex;align-items:center;gap:14px;
}
.cpa-gd-body > h2:nth-of-type(-n+8)::before{
  content:counter(cpa-gd-paso);
  display:grid;place-items:center;flex:0 0 39px;
  width:39px;height:39px;border-radius:50%;
  background:#cc880f;color:#fff;
  font:bold 22px/1 Arial,Helvetica,sans-serif;
  box-shadow:0 4px 12px #9d611c22;
}
@media(max-width:780px){
  .cpa-gd-body > h2:nth-of-type(-n+8){gap:10px;align-items:flex-start;font-size:24px}
  .cpa-gd-body > h2:nth-of-type(-n+8)::before{width:32px;height:32px;flex-basis:32px;font-size:18px}
}
