:root{--ern:#062640;--erg:#22E58B;--erb:#0B6FA4;--ert:#0C2033;--erm:#667788;--erl:#DCE7EE;--erbg:#F4F9FC;--erw:#fff}
body.single-post .ast-container{max-width:none!important;padding-left:0!important;padding-right:0!important}.er-v1-shell{max-width:1280px;margin:0 auto;padding-left:28px;padding-right:28px}.er-v1-main{background:#fff}.er-v1-hero{position:relative;min-height:430px;overflow:hidden;background:var(--erbg)}.er-v1-hero-media{position:absolute;inset:0}.er-v1-hero-media img{width:100%;height:100%;object-fit:cover;display:block}.er-v1-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,38,64,.82),rgba(6,38,64,.48) 50%,rgba(6,38,64,.1)),linear-gradient(180deg,rgba(6,38,64,.08),rgba(6,38,64,.64))}.er-v1-hero-copy{position:relative;z-index:2;min-height:430px;display:flex;flex-direction:column;justify-content:flex-end;padding-top:68px;padding-bottom:52px;color:#fff}.er-v1-kicker{align-self:flex-start;background:var(--erg);color:var(--ern);padding:8px 14px;border-radius:999px;font-weight:800;text-decoration:none}.er-v1-hero h1{max-width:850px;margin:18px 0 12px;color:#fff;font-size:clamp(2.3rem,4.1vw,4.35rem);line-height:1.03;letter-spacing:-.04em}.er-v1-meta{display:flex;gap:10px;flex-wrap:wrap;color:rgba(255,255,255,.86)}.er-v1-keydata,.er-v1-end{padding-top:38px;padding-bottom:20px}.er-v1-section-head{margin-bottom:18px}.er-v1-section-head h2{margin:0;color:var(--ern);font-size:2rem}.er-v1-section-head p{margin:6px 0 0;color:var(--erm)}.er-v1-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.er-v1-card{display:flex;gap:16px;padding:22px;border:1px solid var(--erl);border-radius:18px;background:var(--erbg);box-shadow:0 6px 18px rgba(6,38,64,.04)}.er-v1-icon{display:flex;width:52px;height:52px;align-items:center;justify-content:center;flex:0 0 auto;border-radius:16px;background:#e7fff2;font-size:1.45rem}.er-v1-card small{display:block;color:var(--erm);font-weight:800}.er-v1-card strong{display:block;margin-top:4px;color:var(--ern);font-size:1.45rem;line-height:1.1}.er-v1-card p{margin:8px 0 0;color:var(--erm);line-height:1.45}.er-v1-content{padding-top:18px;padding-bottom:18px;color:var(--ert);font-size:1.08rem;line-height:1.72}.er-v1-content h2,.er-v1-content h3{color:var(--ern);line-height:1.15}.er-v1-content img{max-width:100%;height:auto;border-radius:16px;margin:24px auto;display:block}.er-v1-content table{width:100%;border-collapse:collapse;margin:24px 0}.er-v1-content th,.er-v1-content td{border:1px solid var(--erl);padding:12px 14px}.er-v1-content th{background:#eef6fa;color:var(--ern)}.er-v1-cta{padding-top:18px;padding-bottom:28px}.er-v1-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px;border-radius:24px;background:linear-gradient(120deg,#062640,#0a4569);color:#fff}.er-v1-cta-inner small{color:#aaf0cb;font-weight:800;letter-spacing:.1em}.er-v1-cta-inner h2{margin:8px 0;color:#fff}.er-v1-cta-inner p{margin:0;color:rgba(255,255,255,.86);max-width:760px}.er-v1-cta-inner>a{background:var(--erg);color:var(--ern);padding:14px 20px;border-radius:999px;text-decoration:none;font-weight:800;white-space:nowrap}.er-v1-related{padding-top:18px;padding-bottom:0}.er-v1-related-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.er-v1-related-head h2{margin:0;color:var(--ern)}.er-v1-related-head a{color:var(--erb);font-weight:800;text-decoration:none}.er-v1-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.er-v1-related-card{overflow:hidden;border:1px solid var(--erl);border-radius:16px;background:#fff;text-decoration:none}.er-v1-related-img{display:block;height:180px;overflow:hidden}.er-v1-related-img img{width:100%;height:100%;object-fit:cover}.er-v1-related-copy{display:block;padding:16px}.er-v1-related-copy small{display:block;color:var(--erm);margin-bottom:6px}.er-v1-related-copy strong{display:block;color:var(--ern);line-height:1.25}.er-v1-section-card{min-height:180px;display:flex;align-items:flex-end;background:linear-gradient(135deg,#062640,#0b4a70)}.er-v1-section-card strong{color:#fff}.er-v1-section-card small{color:#bde8d0}.er-v1-nav{display:grid;grid-template-columns:1fr 220px 1fr;margin-top:26px;margin-bottom:58px;border:1px solid var(--erl);border-radius:18px;overflow:hidden;background:var(--erbg);padding-left:0;padding-right:0}.er-v1-nav>div>a,.er-v1-nav .disabled{display:flex;min-height:118px;flex-direction:column;justify-content:center;padding:20px 22px;text-decoration:none}.er-v1-nav small{color:#14ae65;font-weight:900;text-transform:uppercase}.er-v1-nav strong{color:var(--ern);margin-top:7px}.er-v1-nav .center{display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--ern);color:#fff;text-align:center}.er-v1-nav .center a{color:var(--erg);font-weight:900;text-decoration:none}.er-v1-nav .disabled{opacity:.5}@media(max-width:900px){.er-v1-grid3,.er-v1-related-grid{grid-template-columns:1fr 1fr}.er-v1-nav{grid-template-columns:1fr}.er-v1-cta-inner{display:block}.er-v1-cta-inner>a{display:inline-flex;margin-top:18px}}@media(max-width:640px){.er-v1-shell{padding-left:14px;padding-right:14px}.er-v1-grid3,.er-v1-related-grid{grid-template-columns:1fr}.er-v1-hero,.er-v1-hero-copy{min-height:420px}.er-v1-hero-copy{padding-bottom:26px}.er-v1-nav{margin-left:14px;margin-right:14px}}

/* ElectroRuta Editorial v1.1.1: encaje de la plantilla dentro de Astra.
   Limitar a páginas que contienen la plantilla editorial para no alterar otras entradas. */
body.single-post .site-content .ast-container:has(.er-v1-main) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.single-post .site-content .ast-container:has(.er-v1-main) #primary {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-post .site-content .ast-container:has(.er-v1-main) #secondary {
  display: none !important;
}
/* Conservar exactamente el ancho editorial previo de 1280px. */
body.single-post .er-v1-main .er-v1-shell {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* v1.1.2: ajuste exclusivamente de pantallas pequeñas; escritorio intacto. */
@media (max-width:767px){
 body.single-post .site-content .ast-container:has(.er-v1-main),
 body.single-post .site-content .ast-container:has(.er-v1-main) #primary{
   width:100%!important;min-width:0!important;max-width:100%!important;
   margin:0!important;padding:0!important;
 }
 body.single-post .er-v1-main{width:100%;max-width:100%;min-width:0;overflow-x:clip;}
 body.single-post .er-v1-main .er-v1-shell{width:100%;max-width:100%;min-width:0;margin-inline:auto;box-sizing:border-box;padding-inline:16px;}
 body.single-post .er-v1-main .er-v1-content,
 body.single-post .er-v1-main .er-v1-card,
 body.single-post .er-v1-main .er-v1-cta-inner{min-width:0;max-width:100%;box-sizing:border-box;}
 body.single-post .er-v1-main .er-v1-content figure{width:100%;max-width:100%;margin:20px 0;}
 body.single-post .er-v1-main .er-v1-content img{max-width:100%;height:auto;}
 body.single-post .er-v1-main .er-v1-content div[style*="overflow-x:auto"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
 body.single-post .er-v1-main .er-v1-content table{max-width:100%;}
 body.single-post .er-v1-main .er-v1-nav{margin-left:auto;margin-right:auto;grid-template-columns:minmax(0,1fr);}
 body.single-post .er-v1-main .er-v1-nav>div{min-width:0;}
 body.single-post .er-v1-main .er-v1-nav .center{min-height:94px;padding:15px;}
 body.single-post .er-v1-main .er-v1-card{padding:17px;gap:12px;}
 body.single-post .er-v1-main .er-v1-hero h1{overflow-wrap:break-word;}
 body.single-post .er-v1-main .er-v1-cta-inner{padding:22px;}
}
@media (max-width:380px){
 body.single-post .er-v1-main .er-v1-shell{padding-inline:12px;}
 body.single-post .er-v1-main .er-v1-icon{width:42px;height:42px;flex-basis:42px;}
 body.single-post .er-v1-main .er-v1-card strong{font-size:1.22rem;}
}



/* v1.1.4 — Corrige los selectores reales de la plantilla:
   main.er-v1-main > article.er-v1-article > header/section.
   Alcanza la columna #primary de Astra sin alterar cabecera o footer globales. */
body.single-post:has(.er-v1-main) .site-content > .ast-container,
body.single-post:has(.er-v1-main) #content .ast-container {
  width:100%!important;max-width:none!important;display:block!important;
  padding-inline:0!important;margin-inline:auto!important;
}
body.single-post:has(.er-v1-main) #primary,
body.single-post:has(.er-v1-main) .content-area {
  display:block!important;width:100%!important;max-width:100%!important;
  flex:0 0 100%!important;float:none!important;
  padding:0!important;margin:0!important;min-width:0!important;
}
body.single-post:has(.er-v1-main) #secondary {display:none!important;}
body.single-post .er-v1-main,
body.single-post .er-v1-main > .er-v1-article {
  width:100%;max-width:none;min-width:0;margin:0;box-sizing:border-box;
}
/* El hero ocupa la zona de contenido completa, sin max-width de lectura. */
body.single-post .er-v1-main > .er-v1-article > .er-v1-hero {
  width:100%;max-width:none;margin:0;left:auto;box-sizing:border-box;
}
body.single-post .er-v1-main .er-v1-hero-copy {
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
body.single-post .er-v1-main .er-v1-kicker {align-self:center;}
body.single-post .er-v1-main .er-v1-hero h1 {margin-left:auto;margin-right:auto;}
body.single-post .er-v1-main .er-v1-meta {justify-content:center;}
/* Contenido central; datos, CTA y navegación mantienen el ancho editorial 1280 px. */
body.single-post .er-v1-main > .er-v1-article > .er-v1-content {
  width:100%;max-width:960px;margin-left:auto;margin-right:auto;
  box-sizing:border-box;
}
@media(max-width:767px){
 body.single-post .er-v1-main > .er-v1-article > .er-v1-content {max-width:100%;}
 body.single-post .er-v1-main .er-v1-hero-copy {padding-inline:16px;}
}


/* v1.1.5 — reparación de la limitación observada en el DOM (1905px > article 1360px).
   La plantilla personalizada inserta main.er-v1-main DIRECTAMENTE dentro de
   .ast-container (no usa #primary), por eso las versiones anteriores no alcanzaban
   al elemento que Astra limita en su contenedor flex. */
body.single-post #content > .ast-container:has(> main.er-v1-main),
body.single-post .site-content > .ast-container:has(> main.er-v1-main) {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  padding-inline:0 !important;
}
body.single-post .site-content .ast-container > main.er-v1-main,
body.single-post .site-content .ast-container > main.er-v1-main > article.er-v1-article {
  display:block !important;
  float:none !important;
  flex:0 0 100% !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
body.single-post .site-content main.er-v1-main > article.er-v1-article > header.er-v1-hero {
  display:block;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}
body.single-post .site-content main.er-v1-main .er-v1-shell {
  width:100%; max-width:1280px; margin-inline:auto;
  box-sizing:border-box;
}
body.single-post .site-content main.er-v1-main .er-v1-content {
  max-width:960px;
}
body.single-post .site-content main.er-v1-main .er-v1-hero-copy {
  align-items:center;
  text-align:center;
}
body.single-post .site-content main.er-v1-main .er-v1-kicker {align-self:center;}
body.single-post .site-content main.er-v1-main .er-v1-meta {justify-content:center;}
@media(max-width:767px){
 body.single-post .site-content main.er-v1-main .er-v1-shell {max-width:100%;}
 body.single-post .site-content main.er-v1-main .er-v1-content {max-width:100%;}
}


/* ElectroRuta 1.1.6 - corrección validada visualmente con DevTools.
   Solo entradas que renderizan el template Editorial. No modifica Astra globalmente.
   El contenedor flex de Astra se centra y la portada se extiende al viewport;
   las secciones internas conservan su ancho editorial y centrado. */
body.single-post #content > .ast-container:has(main.er-v1-main),
body.single-post .site-content > .ast-container:has(main.er-v1-main) {
    justify-content: center !important;
}
body.single-post main.er-v1-main,
body.single-post main.er-v1-main > article.er-v1-article {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
body.single-post main.er-v1-main > article.er-v1-article > header.er-v1-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
body.single-post main.er-v1-main .er-v1-shell {
    margin-left: auto;
    margin-right: auto;
}
@media(max-width:767px) {
    body.single-post main.er-v1-main > article.er-v1-article > header.er-v1-hero {
       min-width: 0 !important;
    }
}


/* v1.1.7: Navegación inferior compacta y neutra. No afecta al hero ni a Astra. */
body.single-post main.er-v1-main nav.er-v1-nav {
  grid-template-columns:minmax(0,1fr) minmax(150px,200px) minmax(0,1fr);
  gap:0;
  background:#f4f9fb;
  border:1px solid #dbe7ec;
  border-radius:18px;
  overflow:hidden;
}
body.single-post main.er-v1-main nav.er-v1-nav > div {min-width:0;}
body.single-post main.er-v1-main nav.er-v1-nav > div > a,
body.single-post main.er-v1-main nav.er-v1-nav > div > .disabled {
  min-height:98px; padding:16px 20px;
}
body.single-post main.er-v1-main nav.er-v1-nav > div > a strong,
body.single-post main.er-v1-main nav.er-v1-nav > div > .disabled strong {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; overflow-wrap:anywhere; font-size:.94rem; line-height:1.4;
}
body.single-post main.er-v1-main nav.er-v1-nav .center {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:0; min-height:98px; padding:14px 16px;
  background:#eaf3f5; color:#667b87;
  border-left:1px solid #dbe7ec; border-right:1px solid #dbe7ec;
  text-align:center;
}
body.single-post main.er-v1-main nav.er-v1-nav .center span {
  font-size:.73rem; line-height:1.3; letter-spacing:.02em;
}
body.single-post main.er-v1-main nav.er-v1-nav .center a {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:40px; max-width:100%; color:#08744e; font-size:.92rem;
  font-weight:800; line-height:1.35; text-decoration:none;
  overflow-wrap:anywhere;
}
body.single-post main.er-v1-main nav.er-v1-nav .center a::before {
  content:'↗'; font-size:1.05rem; font-weight:700; aria-hidden:true;
}
body.single-post main.er-v1-main nav.er-v1-nav .center a:hover,
body.single-post main.er-v1-main nav.er-v1-nav .center a:focus-visible {text-decoration:underline;color:#045c3c;}
@media(max-width:767px) {
  body.single-post main.er-v1-main nav.er-v1-nav {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    margin-inline:auto;
  }
  body.single-post main.er-v1-main nav.er-v1-nav > div:first-child {grid-column:1;grid-row:1;border-right:1px solid #dbe7ec;}
  body.single-post main.er-v1-main nav.er-v1-nav > div:last-child {grid-column:2;grid-row:1;}
  body.single-post main.er-v1-main nav.er-v1-nav .center {
    grid-column:1 / -1;grid-row:2;min-height:66px; padding:9px 12px;
    border:0;border-top:1px solid #dbe7ec;
  }
  body.single-post main.er-v1-main nav.er-v1-nav > div > a,
  body.single-post main.er-v1-main nav.er-v1-nav > div > .disabled {min-height:94px;padding:12px;}
  body.single-post main.er-v1-main nav.er-v1-nav > div > a strong,
  body.single-post main.er-v1-main nav.er-v1-nav > div > .disabled strong {font-size:.85rem;}
}
