/* Header, menú off-canvas y footer del rediseño (RD-19). Clase EM_Header_Footer.
   Se apoya en .em-header, .em-subnav y .em-menu* del kit (em-components.css); aquí va
   lo que el kit no trae: contenido del header, subcategorías del menú y el footer
   (tomado de mockups/mockups.css). Breakpoints del kit: 768 tablet, 1024 desktop. */

.em-hf__svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
/* ListingHive pone body { height: 100% }: con eso el sticky se despega al pasar los 100vh. */
body.em-hf-on { height: auto; min-height: 100%; }
.em-hf.em-header { top: var(--wp-admin--admin-bar--height, 0px); font-family: var(--em-font-sans); flex: none; min-height: var(--em-header-h); box-sizing: border-box;
	/* Encima del buscador del Home (snippet #18, z-index 999) al hacer scroll. */
	z-index: 1000; }
/* El kit de Elementor (post-8.css) pone fuente y color a todo `a` con .elementor-kit-8 a (0,1,1). */
html .em-hf a, html .em-hf__subnav a, html .em-hf__menu a, html .em-hf-foot a { font-family: inherit; }
.em-hf.em-header a { color: inherit; text-decoration: none; }
html body .em-hf__brand { font-family: var(--em-font-serif); font-weight: 700; font-size: 17px; line-height: .95; letter-spacing: .01em; color: var(--em-white); flex: none; }
html body .em-hf__brand--oliva { color: var(--em-olive-700); font-size: 18px; }
.em-hf__nav { display: none; gap: 26px; margin-left: 24px; flex: 1; font-size: 14px; font-weight: var(--em-fw-medium); }
.em-hf__nav a { opacity: .85; padding: 6px 0; }
.em-hf__nav a:hover { opacity: 1; }
.em-hf__nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--em-sand); }
.em-hf__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.em-hf__pro { display: none; font-size: 13.5px; font-weight: var(--em-fw-medium); }
.em-hf__pro:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.em-hf__login { display: none; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--em-radius-md); background: var(--em-smoke); color: var(--em-olive-700) !important; font-size: 13px; font-weight: var(--em-fw-semi); }
.em-hf__login:hover { background: var(--em-white); }
.em-hf__ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--em-white); border: 0; padding: 0; cursor: pointer; }
.em-hf__ib:hover { background: rgba(255, 255, 255, .2); }
.em-hf a:focus-visible, .em-hf button:focus-visible, .em-hf__subnav a:focus-visible, .em-hf__menu a:focus-visible, .em-hf__menu button:focus-visible, .em-hf-foot a:focus-visible { outline: 2px solid var(--em-sand); outline-offset: 2px; }

.em-hf__subnav { font-family: var(--em-font-sans); }
.em-hf__subnav::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
	html body .em-hf__brand { font-size: 19px; }
	.em-hf__pro { display: inline; }
	.em-hf__solo-tablet { display: inline-flex; }
	.em-hf__solo-movil { display: none; }
}
@media (min-width: 1024px) {
	.em-hf__nav { display: flex; }
	.em-hf__burger { display: none; }
}

/* ---------- Menú off-canvas: lo que el kit no trae ---------- */
/* Encima del buscador del Home (999) y del loader del tema (10000). */
.em-hf__scrim { z-index: 100000; }
.em-menu.em-hf__menu { z-index: 100001; }
.em-hf__menu { font-family: var(--em-font-sans); }
.em-hf__menu a { text-decoration: none; }
.em-hf__menu .em-menu__account b, .em-hf__menu .em-menu__pro b { font-family: var(--em-font-serif); font-size: 19px; line-height: 1.1; font-weight: 700; }
.em-hf__menu .em-menu__account p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--em-olive-800); }
.em-hf__row { display: flex; gap: 8px; }
.em-hf__row .em-btn { flex: 1; }
.em-hf__menu .em-menu__nav a > .em-hf__svg { width: 16px; height: 16px; color: var(--em-text-2); }
.em-hf__menu .em-menu__icon .em-hf__svg { width: 19px; height: 19px; }
.em-hf__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 10px 58px; }
.em-menu__nav .em-hf__cats a { display: inline-flex; min-height: 0; font-weight: var(--em-fw-medium); font-size: 12px; padding: 6px 10px; border-radius: var(--em-radius-pill); border: 1px solid var(--em-border); background: var(--em-surface); color: var(--em-text); }
.em-hf__menu .em-menu__pro p { margin: 0; line-height: 1.45; font-size: 12.5px; color: var(--em-beige); }
.em-hf__eyebrow { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--em-sand); }
.em-hf__eyebrow .em-hf__svg { width: 15px; height: 15px; }
.em-hf__btn-claro { background: var(--em-smoke); color: var(--em-olive-700) !important; justify-self: start; }
.em-hf__menu .em-menu__foot a { color: var(--em-text-2); }
.em-hf__menu .em-menu__foot .em-hf__wa { display: flex; gap: 8px; align-items: center; color: var(--em-whatsapp); font-weight: 600; font-size: 13px; }
/* El menú es solo para móvil y tablet. */
@media (min-width: 1024px) { .em-hf__menu, .em-hf__scrim { display: none; } }

/* ---------- Footer ---------- */
.em-hf-foot { background: var(--em-olive-900); color: #D5D8C9; padding: 28px var(--em-gutter) 22px; display: grid; gap: 18px; font-family: var(--em-font-sans); font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, .08); }
html body .em-hf-foot a { color: var(--em-olive-300); text-decoration: none; }
html body .em-hf-foot a:hover { color: var(--em-smoke); text-decoration: underline; text-underline-offset: 3px; }
.em-hf-foot__brand { display: grid; gap: 12px; align-content: start; }
html body .em-hf-foot__brand .em-hf__brand { font-size: 22px; line-height: 1; color: var(--em-smoke); }
html body .em-hf-foot__brand p { margin: 0; line-height: 1.5; color: var(--em-olive-300); }
.em-hf-foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html body .em-hf-foot__title { margin: 0 0 6px; font-family: var(--em-font-sans); font-size: 12.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--em-smoke); }
.em-hf-foot ul { list-style: none; margin: 0; padding: 0; }
.em-hf-foot li { line-height: 1.9; }
.em-hf-foot__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; font-size: 11px; color: #9DA38F; display: flex; flex-wrap: wrap; gap: 6px 16px; }
html body .em-hf-foot__legal a { color: #9DA38F; }
@media (min-width: 1024px) {
	.em-hf-foot { grid-template-columns: 1.2fr 3fr; padding-inline: max(var(--em-gutter), calc((100% - 1200px) / 2)); }
	.em-hf-foot__cols { grid-template-columns: repeat(4, 1fr); }
	.em-hf-foot__legal { grid-column: 1 / -1; }
}
