/* 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); }

/* Rayitos de los títulos con píldora verde: cuadrado del alto de la píldora pegado a su extremo derecho.
   El centro del svg = centro de la curva derecha, así los rayos salen radialmente desde su borde. */
.he-home .he-rays { display: none; position: absolute; right: 0; top: 0; height: 100%; aspect-ratio: 1 / 1; color: oklch(0.68 0.15 122); pointer-events: none; }
.he-home .he-rays svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (min-width: 640px) { .he-home .he-rays { display: block; } }
