/* Haciendo Escuela — header y footer del rediseño 2026. Todo con prefijo .he-* (no toca Elementor). */
.he-header-wrap, .he-header-wrap *, .he-footer, .he-footer * { box-sizing: border-box; }
.he-header-wrap { position: relative; z-index: 60; }
.he-header, .he-footer { font-family: "Poppins", system-ui, sans-serif; line-height: 1.5; }
.he-footer { font-family: "Nunito", ui-sans-serif, system-ui, sans-serif; }
.he-header a, .he-footer a { text-decoration: none; }
.he-header ul, .he-footer ul { list-style: none; margin: 0; padding: 0; }
.he-header img, .he-footer img { max-width: none; border: 0; }

/* ---------- Header: variante sólida (por defecto) ---------- */
.he-header { background: #fff; color: #3b3b3b; border-bottom: 1px solid #e3ebd6; }
.he-header a { color: inherit; }
.he-header__inner { max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.he-logo { display: block; flex: none; border-radius: .75rem; }
.he-logo img { display: block; height: 2.5rem; width: auto; }

.he-nav { display: none; }
.he-nav .he-menu { display: flex; gap: 2rem; font-size: .875rem; font-weight: 500; }
.he-menu > li { position: relative; }
.he-menu > li > a { display: flex; align-items: center; gap: .35rem; padding: .6rem 0; }
.he-menu > li > a:hover, .he-menu > li > a:focus-visible { color: #729b1c; }
.he-menu .menu-item-has-children > a::after { content: ""; width: .45rem; height: .45rem; margin-top: -.2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.he-menu .menu-item-has-children:hover > a::after, .he-menu .menu-item-has-children.is-open > a::after { transform: rotate(225deg); margin-top: .2rem; }

.he-menu .sub-menu { display: none; position: absolute; left: -1rem; top: 100%; min-width: 14rem; padding: .5rem; background: #fff; color: #3b3b3b; border: 1px solid #e3ebd6; border-radius: .75rem; box-shadow: 0 20px 40px -20px rgba(18,52,39,.35); z-index: 70; }
.he-menu li:hover > .sub-menu, .he-menu li:focus-within > .sub-menu, .he-menu li.is-open > .sub-menu { display: block; }
.he-menu .sub-menu a { display: block; padding: .5rem .75rem; border-radius: .5rem; font-weight: 500; }
.he-menu .sub-menu a:hover, .he-menu .sub-menu a:focus-visible { background: #f2f7e6; color: #729b1c; }

.he-cta { display: inline-block; background: #8cac2d; color: #fff !important; border-radius: 999px; padding: .625rem 1.25rem; font-size: .875rem; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background .15s; }
.he-cta:hover, .he-cta:focus-visible { background: #729b1c; }
.he-cta--deep { background: #729b1c; padding: .7rem 1.75rem; }
.he-cta--deep:hover { background: #5f8416; }
.he-cta--desktop { display: none; }

/* Hamburguesa */
.he-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 .65rem; background: transparent; border: 1px solid currentColor; border-radius: .75rem; cursor: pointer; color: inherit; }
.he-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.he-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.he-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.he-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel móvil: lista simple, todo expandido */
.he-mobile { background: #fff; color: #3b3b3b; border-top: 1px solid #e3ebd6; padding: 1rem 1.5rem 1.5rem; }
.he-mobile[hidden] { display: none; }
.he-menu--mobile { font-size: 1rem; font-weight: 600; }
.he-menu--mobile > li > a { display: block; padding: .7rem 0; border-bottom: 1px solid #eef3e3; }
.he-menu--mobile .sub-menu { display: block; position: static; padding: .25rem 0 .5rem 1rem; border: 0; box-shadow: none; min-width: 0; background: transparent; }
.he-menu--mobile .sub-menu a { font-size: .9rem; font-weight: 500; padding: .4rem 0; color: #555; }
.he-menu--mobile .menu-item-has-children > a::after { display: none; }
.he-mobile .he-cta { margin-top: 1.25rem; display: block; text-align: center; }

@media (min-width: 1024px) {
	.he-nav { display: block; }
	.he-cta--desktop { display: inline-block; }
	.he-burger, .he-mobile { display: none !important; }
}

/* ---------- Header: variante superpuesta (sobre el hero) ---------- */
.he-overlay .he-header-wrap { height: 0; }
.he-overlay .he-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.he-overlay .he-logo { background: #fff; padding: .5rem .75rem; }
.he-overlay .he-menu > li > a:hover, .he-overlay .he-menu > li > a:focus-visible { color: oklch(0.82 0.19 122); }
.he-overlay .he-mobile { position: absolute; left: 0; right: 0; top: 100%; }
.he-hero-spacer { height: 5.6rem; }

/* ---------- Footer ---------- */
.he-footer { background: #fff; color: #3b3b3b; border-top: 1px solid #e3ebd6; }
.he-footer__grid { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem; display: grid; gap: 2.5rem; }
.he-footer__logo { display: block; height: 3.5rem; width: auto; }
.he-footer__about { margin: 1rem 0 0; max-width: 20rem; font-size: .875rem; line-height: 1.7; color: #6f7269; }
.he-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.he-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #e3ebd6; border-radius: 50%; color: #6f7269; transition: color .15s, border-color .15s; }
.he-social a:hover { color: #729b1c; border-color: #8cac2d; }
.he-social svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.he-footer h3 { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: 1rem; font-weight: 700; color: #123427; }
.he-footer__links { margin-top: 1rem !important; display: grid; gap: .65rem; font-size: .875rem; }
.he-footer__links a { color: #6f7269; transition: color .15s; }
.he-footer__links a:hover { color: #729b1c; }
.he-footer__links span { color: #729b1c; margin-right: .4rem; }
.he-footer__contact { margin: .75rem 0 1rem; font-size: .875rem; color: #6f7269; max-width: 28rem; }
.he-footer__bar { border-top: 1px solid #e3ebd6; }
.he-footer__bar-inner { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .75rem; color: #6f7269; }
.he-footer__bar p { margin: 0; }
.he-footer__bar strong { color: #123427; font-weight: 600; }
@media (min-width: 640px) { .he-footer__grid, .he-footer__bar-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .he-footer__grid { grid-template-columns: 1fr 1fr; } .he-footer__bar-inner { flex-direction: row; justify-content: space-between; } }
@media (min-width: 1024px) { .he-footer__grid { grid-template-columns: 1.1fr .7fr 1.6fr; } }

/* ---------- Modal de video (home) ---------- */
.he-video { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 1.5rem; background: rgba(18,52,39,.9); }
.he-video iframe { width: 100%; max-width: 56rem; aspect-ratio: 16 / 9; border: 0; border-radius: 1rem; }

/* ---------- Home: corrige el contenedor del diseño ----------
   `overflow-x: hidden` convierte el contenedor en un "scroll container" (overflow-y pasa a auto):
   en móvil atrapa el gesto de scroll (cuesta bajar) y recorta lo que sobresale hacia el footer.
   `clip` recorta igual en horizontal sin crear scroll container. */
.he-home > .overflow-x-hidden { overflow-x: clip; overflow-y: visible; }

/* Carrusel de logos: capa propia para que no queden en blanco hasta mover el mouse */
.he-home .animate-marquee { will-change: transform; backface-visibility: hidden; }
.he-home .animate-marquee img { transform: translateZ(0); }

/* ---------- Decoración de los títulos con píldora verde ----------
   Dos variantes, se elige con la opción de WordPress `he_deco` ("pencils" = lápices, "rays" = rayitos)
   o a modo de prueba con ?deco=rays / ?deco=pencils en la URL. Ver he/inc/chrome.php. */

/* La píldora pasa a tener un fondo propio (.he-pill-bg) para poder poner cosas DETRÁS de ella. */
.he-home .he-pill { isolation: isolate; }
.he-home .he-pill-bg { position: absolute; inset: 0; z-index: 0; border-radius: 999px; background: oklch(0.68 0.15 122); }
.he-home .he-pill-text { position: relative; z-index: 1; }

.he-home .he-rays, .he-home .he-pencils { display: none; position: absolute; pointer-events: none; }
.he-home .he-pencils svg, .he-home .he-rays svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Rayitos: cuadrado del alto de la píldora pegado a su extremo derecho; el centro del svg es el centro de la
   curva derecha, así los rayos salen radialmente desde su borde. */
.he-home .he-rays { right: 0; top: 0; height: 100%; aspect-ratio: 1 / 1; color: oklch(0.68 0.15 122); }

/* Lápices: salen por detrás del borde superior derecho (z-index -1 = detrás del fondo de la píldora). */
.he-home .he-pencils { z-index: -1; right: 0; bottom: 50%; height: 130%; aspect-ratio: 100 / 130; transform: translate(10%, 14%); } /* translate: más hacia la esquina (derecha/abajo) */

/* El clip (título del PHE) va un poco más hacia adentro para que su base quede escondida tras la píldora. */
.he-home .he-pencils.he-clip { transform: translate(-6%, 8%); }
/* Chincheta (título "En qué trabajamos"): por delante de la píldora y sin desplazamiento extra. */
.he-home .he-pencils.he-pin { z-index: 2; transform: none; }
.he-home .he-pencils.he-clip-front { z-index: 2; } /* tramo delantero del clip: por encima del fondo y del texto de la píldora */

@media (min-width: 640px) {
	body:not(.he-deco-pencils) .he-home .he-rays { display: block; }
	body.he-deco-pencils .he-home .he-pencils { display: block; }
	/* "En qué trabajamos" usa siempre los rayitos, sea cual sea la variante elegida para el otro título. */
	.he-home .he-rays.he-rays-always { display: block; }
}

/* Lo que hemos logrado: encabezado a todo el ancho (título izq., descripción der.) */
@media (min-width:768px){.he-home .he-logrado-head{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:3rem}.he-home .he-logrado-desc{text-align:right;padding-bottom:.25rem}}

/* Lo que hemos logrado: versión compacta (menos aire) */
.he-home [aria-labelledby="achievements-title"] > .mt-14{margin-top:1.75rem}
.he-home [aria-labelledby="achievements-title"] > .mt-16{margin-top:1.25rem}
@media (min-width:768px){.he-home .he-logrado-head h2{white-space:nowrap;margin-top:.5rem}.he-home .he-logrado-head{gap:2rem}}
.he-home .he-logrado-desc{text-wrap:balance}

/* Lo que hemos logrado: encabezado centrado, texto transversal a los 3 puntos */
.he-home .he-logrado-head{flex-direction:column!important;align-items:center!important;text-align:center;gap:1rem!important}
.he-home .he-logrado-desc{text-align:center!important;padding-bottom:0!important;margin:0 auto}
.he-home .he-logrado-head h2{white-space:normal!important}
.he-home [aria-labelledby="achievements-title"] > .mt-14{margin-top:2rem}

/* Un poco menos de espacio entre "Una tienda. Una escuela." y "Resultados" (-16px) */
.he-home section:has(+ [aria-labelledby="achievements-title"]){padding-bottom:3rem!important}
.he-home [aria-labelledby="achievements-title"]{padding-top:1.5rem!important}

/* Newsletter del home: formulario real (JetFormBuilder) con el diseño de la maqueta.
   Solo se ve el correo; al escribir, se despliegan nombre e institución. */
.he-news .jet-form-builder{display:grid;gap:0;font-family:inherit}
.he-news .jet-form-builder-row,.he-news .jet-form-builder__conditional{margin-bottom:.75rem}
.he-news .jet-form-builder__field-wrap{margin:0}
.he-news input[type=text],.he-news input[type=email]{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:9999px;background:#fff;color:#1f2d1f;padding:.75rem 1.25rem;font:inherit;font-size:.875rem;line-height:1.25rem;outline:none;box-shadow:none;height:auto}
.he-news input[type=text]:focus,.he-news input[type=email]:focus{border-color:var(--primary-deep)}
.he-news .jet-form-builder__field-label{display:flex;align-items:center;gap:.6rem;font-size:.875rem;color:var(--muted-foreground,#5b665b);cursor:pointer}
.he-news input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:var(--primary-deep);margin:0}
.he-news .jet-form-builder__action-button-wrapper{display:flex;justify-content:center}
.he-news .jet-form-builder__submit{border:0;border-radius:9999px;background:var(--primary-deep);color:var(--primary-foreground);padding:.75rem 2.5rem;font-family:'Poppins',system-ui,sans-serif;font-weight:600;font-size:1rem;line-height:1.5rem;cursor:pointer;transition:filter .2s}
.he-news .jet-form-builder__submit:hover{filter:brightness(.92)}
.he-news .jet-form-builder-messages-wrap{font-size:.875rem;text-align:center}
.he-news .jfb-user-info{display:none!important}
/* campos que se despliegan */
.he-news .jet-form-builder-row:has([name=nombre]),.he-news .jet-form-builder-row:has([name=pertenece_institucion]),.he-news .jet-form-builder__conditional{max-height:0;margin-bottom:0;opacity:0;overflow:hidden;visibility:hidden;transition:max-height .35s ease,margin .35s ease,opacity .25s ease,visibility 0s linear .35s}
.he-news.is-open .jet-form-builder-row:has([name=nombre]),.he-news.is-open .jet-form-builder-row:has([name=pertenece_institucion]),.he-news.is-open .jet-form-builder__conditional{max-height:6rem;margin-bottom:.75rem;opacity:1;visibility:visible;transition:max-height .35s ease,margin .35s ease,opacity .25s ease .1s,visibility 0s}
.he-news.is-open .jet-form-builder__conditional{overflow:visible}
@media (prefers-reduced-motion:reduce){.he-news *{transition:none!important}}

/* Newsletter: mismas medidas que la maqueta (campo 46px, botón 48px, 12px entre ambos), icono de correo y flecha */
.he-news .jet-form-builder-row,.he-news .jet-form-builder__field-wrap,.he-news .jet-form-builder__action-button-wrapper{padding:0!important}
.he-news .jet-form-builder-row:has(.submit-type-reload),.he-news .jet-form-builder-row:has([type=submit]){margin-bottom:0}
.he-news input[type=text],.he-news input[type=email]{height:46px;padding-top:0;padding-bottom:0}
.he-news input[type=email]{padding-left:3rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b3b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat 1.25rem center}
.he-news .jet-form-builder__submit{height:48px;padding-top:0;padding-bottom:0;display:inline-flex;align-items:center;gap:.5rem}
.he-news .jet-form-builder__submit::after{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center/contain}

/* Título "¿Qué hace diferente al …?": PHE en escritorio, nombre completo en mobile */
.he-home .he-m-only{display:inline}
.he-home .he-d-only{display:none}
@media (min-width:768px){.he-home .he-m-only{display:none}.he-home .he-d-only{display:inline}}
@media (max-width:767px){.he-home h2 .he-pill-text{white-space:nowrap;font-size:.82em;padding-left:.75rem;padding-right:.75rem}}

/* ===== Páginas de nivel (CPT niveles): línea de diseño del home. El hero (banda con el título) no se toca ===== */
body.he-landing{--hn-forest:oklch(29% .05 160);--hn-lime:oklch(68% .15 122);--hn-muted:oklch(50% .01 120)}
/* fondo: sin manchas de colores; degradé suave + dos círculos difusos */
body.he-landing .elementor-element.e-con[style*="background"],body.he-landing :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child{position:relative;isolation:isolate;overflow:hidden}
body.he-landing :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child{background-image:linear-gradient(180deg,#fff 0%,oklch(98.5% .015 122) 40%,#fff 100%)!important}
body.he-landing :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child::before{content:"";position:absolute;z-index:-1;width:26rem;height:26rem;border-radius:50%;left:-11rem;top:22%;background:oklch(68% .15 122/.07)}
body.he-landing :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child::after{content:"";position:absolute;z-index:-1;width:16rem;height:16rem;border-radius:50%;right:-6rem;top:62%;background:oklch(82% .19 122/.1)}
/* títulos de sección: Nunito, verde bosque, con acento lima */
body.he-landing .elementor-widget-heading .elementor-heading-title{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;font-weight:800!important;color:var(--hn-forest)!important;letter-spacing:-.01em}
body.he-landing .elementor-widget-heading .elementor-heading-title::after{content:"";display:block;width:3rem;height:.25rem;border-radius:9999px;background:var(--hn-lime);margin:.6rem auto 0}
body.he-landing .elementor-widget-text-editor,body.he-landing .elementor-widget-text-editor p{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;color:var(--hn-muted)!important;font-size:1.05rem}
/* tarjetas de asignaturas / juegos: la caja es el .elementor-widget-container del widget */
body.single-niveles .elementor-widget-icon-box > .elementor-widget-container{background:#fff!important;border:1px solid oklch(91% .02 120);border-radius:1.5rem!important;box-shadow:0 12px 30px -18px oklch(29% .05 160/.35)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body.single-niveles .elementor-widget-icon-box:hover > .elementor-widget-container{transform:translateY(-4px);border-color:oklch(80% .1 122);box-shadow:0 20px 36px -18px oklch(29% .05 160/.4)!important}
/* título de la página (hero) con la tipografía del sitio */
body.he-landing .jet-listing-dynamic-field__content{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;font-weight:800!important;color:var(--hn-forest)!important;font-size:clamp(2rem,4vw,2.75rem)}
body.he-landing .elementor-icon-box-title,body.he-landing .elementor-icon-box-title a{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;font-weight:800!important;letter-spacing:.02em}
body.he-landing .elementor-widget-icon-box .elementor-icon{color:var(--hn-forest)!important;fill:var(--hn-forest)!important}
body.he-landing .elementor-widget-icon-box .elementor-icon svg{fill:var(--hn-forest)!important}
@media (max-width:700px){body.he-landing :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child::before{width:16rem;height:16rem;left:-9rem}}

/* ----- landings (videoclases, guías, juegos): filtros, filas y tarjetas ----- */
body.he-landing{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif}
body.he-landing .jet-select__control{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-weight:800;color:var(--hn-forest);background-color:#fff;border:1px solid oklch(88% .04 122);border-radius:9999px;padding:.6rem 2.4rem .6rem 1.25rem;box-shadow:0 10px 24px -16px oklch(29% .05 160/.45);cursor:pointer}
body.he-landing .jet-select__control:focus{outline:2px solid oklch(68% .15 122);outline-offset:2px}
body.he-landing .jet-radio-list__label{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;font-weight:800!important;color:oklch(50% .01 120)!important;padding-bottom:.35rem;border-bottom:3px solid transparent;transition:color .2s,border-color .2s}
body.he-landing .jet-radio-list__item:hover .jet-radio-list__label{color:var(--hn-forest)!important}
body.he-landing .jet-radio-list__input:checked ~ .jet-radio-list__button .jet-radio-list__label{color:var(--hn-forest)!important;border-bottom-color:var(--hn-lime)}
/* filas / tarjetas del listado */
body.he-landing .jet-listing-grid__item > .elementor > .e-parent{border:1px solid oklch(91% .02 120);border-radius:1.25rem!important;box-shadow:0 12px 30px -20px oklch(29% .05 160/.35)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body.he-landing .jet-listing-grid__item:hover > .elementor > .e-parent{transform:translateY(-3px);border-color:oklch(80% .1 122);box-shadow:0 18px 34px -20px oklch(29% .05 160/.4)!important}
body.he-landing .jet-listing-grid__item .elementor-heading-title,body.he-landing .jet-listing-grid__item .jet-listing-dynamic-field__content,body.he-landing .jet-listing-grid__item .jet-listing-dynamic-link__label,body.he-landing .jet-listing-grid__item .elementor-widget-text-editor{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important}
body.he-landing .jet-listing-grid__item .jet-listing-dynamic-field__content{font-weight:700}
/* paginación */
body.he-landing .jet-filters-pagination__link{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-weight:800;border-radius:9999px}
body.he-landing .jet-filters-pagination__item.jet-filters-pagination__current .jet-filters-pagination__link{background:var(--hn-lime);color:#fff;border-color:var(--hn-lime)}

body.he-landing .jet-listing-grid__item .elementor-heading-title::after{display:none}

/* dentro de cada fila no debe haber una segunda caja con sombra */
body.he-landing .jet-listing-grid__item > .elementor > .e-parent .e-con{box-shadow:none!important}

/* ===== Noticias: listado (/noticias/) y noticia individual ===== */
/* listado: el subtítulo no lleva segunda barra de acento y se lee como bajada */
body.page-id-2490 .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title::after{display:none}
body.page-id-2490 .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title{font-weight:500!important;color:var(--hn-muted)!important;font-size:1.15rem!important}
/* tarjetas del listado: la imagen respeta las esquinas */
body.page-id-2490 .jet-listing-grid__item > .elementor > .e-parent{overflow:hidden}
body.page-id-2490 .jet-listing-grid__item img{transition:transform .35s ease}
body.page-id-2490 .jet-listing-grid__item:hover img{transform:scale(1.03)}
/* noticia individual */
body.single-post [data-elementor-type="single-post"] > .e-parent > .e-child.e-con{background:#fff;border:1px solid oklch(91% .02 120);border-radius:2rem!important;box-shadow:0 20px 40px -24px oklch(29% .05 160/.3)!important}
body.single-post .elementor-widget-theme-post-featured-image img{border-radius:1.25rem}
body.single-post .elementor-widget-heading .elementor-heading-title{text-align:left!important;font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15}
body.single-post .elementor-widget-heading .elementor-heading-title::after{margin-left:0;margin-right:auto}
body.single-post .elementor-widget-post-info,body.single-post .elementor-widget-post-info *{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif!important;color:var(--hn-muted)!important;font-weight:600}
body.single-post .elementor-widget-divider{--divider-color:oklch(91% .02 120)}
body.single-post .jet-listing-dynamic-field__content,body.single-post .elementor-widget-theme-post-content{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-size:1.0625rem;line-height:1.8;color:oklch(32% 0 0)}
body.single-post .jet-listing-dynamic-field__content p,body.single-post .jet-listing-dynamic-field__content li{font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-size:1.0625rem;line-height:1.8;color:oklch(32% 0 0)}
body.single-post .jet-listing-dynamic-field__content :is(h2,h3,h4){font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-weight:800;color:var(--hn-forest);line-height:1.2;margin-top:2rem}
body.single-post .jet-listing-dynamic-field__content a{color:oklch(45% .12 150);text-decoration:underline;text-underline-offset:3px}
body.single-post .jet-listing-dynamic-field__content img{border-radius:1rem;height:auto;max-width:100%}
body.single-post .jet-listing-dynamic-field__content blockquote{border-left:4px solid var(--hn-lime);background:oklch(98% .02 122);margin:1.5rem 0;padding:1rem 1.25rem;border-radius:0 1rem 1rem 0}

body.single-post [data-elementor-type="single-post"] > .e-parent > .e-child.e-con:nth-child(2) .elementor-heading-title::after{display:none}
body.single-post [data-elementor-type="single-post"] > .e-parent > .e-child.e-con:nth-child(2) .jet-listing-grid__item .elementor-heading-title{font-size:.875rem;line-height:1.35}

body.single-post .elementor-widget-theme-post-featured-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

/* listado de noticias: menos aire entre el título y las tarjetas */
body.page-id-2490 .elementor-widget-jet-listing-grid > .elementor-widget-container{padding-top:12px!important}

body.single-post .elementor-widget-theme-post-featured-image,body.single-post .elementor-widget-theme-post-featured-image .elementor-widget-container{width:100%!important;max-width:100%!important}

/* ===== Actividades individuales: solo fondo (el contenido conserva su diseño) ===== */
body.he-bg-only :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child{position:relative;isolation:isolate;overflow:hidden;background-image:linear-gradient(180deg,#fff 0%,oklch(98.5% .015 122) 40%,#fff 100%)!important}
body.he-bg-only :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child::before{content:"";position:absolute;z-index:-1;width:26rem;height:26rem;border-radius:50%;left:-11rem;top:22%;background:oklch(68% .15 122/.07)}
body.he-bg-only :is([data-elementor-type="wp-page"],[data-elementor-type="single-post"]) > .e-con:first-child::after{content:"";position:absolute;z-index:-1;width:16rem;height:16rem;border-radius:50%;right:-6rem;top:62%;background:oklch(82% .19 122/.1)}

/* H1 de las páginas de nivel: el dato viene en mayúsculas ("2° BÁSICO"); se muestra como frase */
body.single-niveles h1.jet-listing-dynamic-field__content,body.single-niveles .jet-listing-dynamic-field__content h1{text-transform:lowercase;margin:0;font:inherit}
body.single-niveles h1.jet-listing-dynamic-field__content::first-letter,body.single-niveles .jet-listing-dynamic-field__content h1::first-letter{text-transform:uppercase}

/* ===== Galería de fotos dentro de una noticia + botón de enlace ===== */
body.single-post .he-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:1.75rem 0}
body.single-post .he-gallery figure{margin:0;overflow:hidden;border-radius:1rem;aspect-ratio:3/2;background:oklch(96% .03 122)}
body.single-post .he-gallery img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0!important;transition:transform .35s ease}
body.single-post .he-gallery figure:hover img{transform:scale(1.04)}
body.single-post .he-gallery-cta{margin:1.5rem 0 .5rem!important;text-align:center}
body.single-post a.he-btn-link{display:inline-block;padding:.85rem 1.75rem;border-radius:9999px;background:oklch(60% .15 125);color:#fff!important;font-weight:800;text-decoration:none!important;box-shadow:0 12px 24px -14px oklch(29% .05 160/.5);transition:transform .2s ease,background .2s ease}
body.single-post a.he-btn-link:hover{background:oklch(29% .05 160);transform:translateY(-2px)}
@media (max-width:700px){body.single-post .he-gallery{grid-template-columns:repeat(2,1fr)}}

body.single-post .jet-listing-dynamic-field__content ul{margin:1rem 0 1.5rem}
body.single-post .jet-listing-dynamic-field__content li{margin-bottom:.35rem}

/* ===== Lightbox de galería ===== */
.he-gallery figure{cursor:zoom-in}
.he-gallery figure:focus-visible{outline:3px solid oklch(68% .15 122);outline-offset:2px}
html.he-lb-open{overflow:hidden}
.he-lb{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:oklch(18% .03 160/.94);padding:2.5rem 4rem}
.he-lb[hidden]{display:none}
.he-lb__fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:.75rem}
.he-lb__fig img{max-width:100%;max-height:calc(100vh - 8rem);width:auto;height:auto;border-radius:1rem;box-shadow:0 30px 60px -20px #000}
.he-lb__fig figcaption{color:#fff;font:600 .9rem/1.4 'Nunito',ui-sans-serif,system-ui,sans-serif;text-align:center;max-width:46rem;opacity:.9}
.he-lb button{position:absolute;border:0;border-radius:9999px;background:#ffffff1f;color:#fff;cursor:pointer;font-family:inherit;line-height:1;display:grid;place-items:center;transition:background .2s}
.he-lb button:hover,.he-lb button:focus-visible{background:oklch(60% .15 125)}
.he-lb__close{top:1rem;right:1rem;width:2.75rem;height:2.75rem;font-size:2rem}
.he-lb__nav{top:50%;transform:translateY(-50%);width:3rem;height:3rem;font-size:2.4rem;padding-bottom:.2rem}
.he-lb__prev{left:.75rem}.he-lb__next{right:.75rem}
@media (max-width:700px){.he-lb{padding:3.5rem .5rem 2.5rem}.he-lb__nav{top:auto;bottom:.75rem;transform:none}.he-lb__prev{left:calc(50% - 3.75rem)}.he-lb__next{right:calc(50% - 3.75rem)}.he-lb__fig figcaption{font-size:.8rem;padding-bottom:3.5rem}}

body.single-post .jet-listing-dynamic-field__content blockquote cite{display:block;margin-top:.75rem;font-style:normal;font-weight:800;font-size:.95rem;color:var(--hn-forest)}
body.single-post .jet-listing-dynamic-field__content blockquote p{margin:0;font-size:1.1rem}

/* cita dentro de una noticia */
body.single-post .elementor-location-single blockquote.wp-block-quote{border:0;border-left:4px solid oklch(68% .15 122);background:oklch(98% .02 122);margin:1.75rem 0;padding:1.25rem 1.5rem;border-radius:0 1.25rem 1.25rem 0}
body.single-post .elementor-location-single blockquote.wp-block-quote p{margin:0;font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-size:1.1rem;line-height:1.7;font-style:italic;color:oklch(32% 0 0)}
body.single-post .elementor-location-single blockquote.wp-block-quote cite{display:block;margin-top:.9rem;font-family:'Nunito',ui-sans-serif,system-ui,sans-serif;font-style:normal;font-weight:800;font-size:.95rem;color:oklch(29% .05 160)}
