/* ==========================================================================
   La Glorieta – cabecera
   Barra superior + cabecera que se convierte en píldora flotante al bajar.
   Menú hamburguesa por debajo de 1100 px (el de WordPress salta a 600 px).
   ========================================================================== */

.lg-site-header { position: sticky; top: 0; z-index: 100; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.admin-bar .lg-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .lg-site-header { top: 0; } }
.lg-site-header.is-hidden { transform: translateY(-115%); }
:where(.wp-site-blocks) > .lg-site-header + * { margin-block-start: 0; }

/* ---------- Barra superior ---------- */
.lg-topbar { max-height: 3.2rem; overflow: hidden; transition: max-height .4s cubic-bezier(.22, 1, .36, 1), padding .4s, opacity .3s; }
.lg-site-header.is-scrolled .lg-topbar { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; }
.lg-topbar p { margin: 0; }
.lg-topbar a { color: inherit; text-decoration: none; opacity: .88; transition: opacity .2s, color .2s; }
.lg-topbar a:hover { opacity: 1; color: var(--wp--preset--color--orange); }
.lg-topbar__right { gap: 1.5rem !important; }
.lg-tb a { display: inline-flex; align-items: center; gap: .45rem; }
.lg-tb a::before { content: ""; width: 14px; height: 14px; background: var(--wp--preset--color--orange); -webkit-mask: var(--lg-tb-icon) center / contain no-repeat; mask: var(--lg-tb-icon) center / contain no-repeat; }
.lg-tb--pin { --lg-tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.lg-tb--phone { --lg-tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.lg-tb--wa { --lg-tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2a9.9 9.9 0 0 0-8.5 15l-1.4 5.1 5.2-1.4A9.9 9.9 0 1 0 12.04 2Z'/%3E%3C/svg%3E"); }
.lg-gbadge--mini { padding: 0; gap: .4rem; color: inherit; }
.lg-gbadge--mini .lg-gbadge__g { width: 1.05rem; height: 1.05rem; padding: .12rem; }
.lg-gbadge--mini .lg-gbadge__score { font-size: .8rem; }
.lg-gbadge--mini .lg-gbadge__meta { flex-direction: row; align-items: center; gap: .4rem; }
.lg-gbadge--mini .lg-gbadge__stars { font-size: .7rem; letter-spacing: 1px; color: rgba(255, 255, 255, .25); }
.lg-gbadge--mini .lg-gbadge__count { font-size: .75rem; }
@media (max-width: 781px) { .lg-topbar { display: none; } }

/* ---------- Cabecera principal ---------- */
.lg-header {
	position: relative; margin: 0 auto; width: 100%;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
	transition: width .45s cubic-bezier(.22, 1, .36, 1), margin .45s cubic-bezier(.22, 1, .36, 1), border-radius .45s, padding .35s, background-color .35s, box-shadow .35s;
}
.lg-site-header.is-scrolled .lg-header {
	width: calc(100% - 2 * clamp(8px, 1.4vw, 20px)); max-width: 1400px; margin-top: clamp(6px, 1vw, 12px) !important;
	border-radius: 20px; padding-top: .5rem !important; padding-bottom: .5rem !important;
	background-color: rgba(255, 255, 255, .82) !important;
	backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
	box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.lg-header__row { gap: 1.5rem; }
.lg-header__logo { margin: 0; flex: none; }
.lg-header__logo img { display: block; transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.lg-site-header.is-scrolled .lg-header__logo img { width: 128px !important; }
.lg-header__nav { flex: 1; }

/* Enlaces de primer nivel con subrayado animado. */
.lg-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position: relative; padding-block: .55rem; font-weight: 600; }
.lg-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--wp--preset--color--orange);
	transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.lg-header__nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.lg-header__nav .wp-block-navigation__submenu-icon { transition: transform .3s; }
.lg-header__nav .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon { transform: rotate(180deg); }

/* Desplegables con descripción. */
.lg-header__nav .wp-block-navigation__submenu-container {
	min-width: 330px !important; padding: .6rem !important; border: 0 !important; border-radius: 18px;
	box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05) !important;
	top: calc(100% + 6px) !important;
}
.lg-header__nav .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.lg-header__nav .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container { animation: lg-drop .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes lg-drop { from { opacity: 0; transform: translateY(10px); } }
.lg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block !important; padding: .7rem .9rem !important; border-radius: 12px; transition: background-color .2s;
}
.lg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label { display: block; font-weight: 600; font-size: .92rem; }
.lg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description { display: block; margin-top: .15rem; font-size: .78rem; font-weight: 400; color: rgba(245, 238, 223, .62); }
.lg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .07); }
.lg-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: var(--wp--preset--color--orange); }

/* Botones. */
.lg-header__cta { gap: .5rem !important; flex: none; }
.lg-header__cta .wp-block-button__link { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.25rem !important; border-radius: 999px !important; font-size: .875rem; white-space: nowrap; }
.lg-header__cta .is-style-outline .wp-block-button__link { border: 1.5px solid rgba(15, 23, 42, .18) !important; }
.lg-header__cta .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--navy) !important; background: var(--wp--preset--color--navy) !important; color: #fff !important; }
.lg-hbtn-phone .wp-block-button__link::before, .lg-hbtn-sell .wp-block-button__link::after {
	content: ""; width: 16px; height: 16px; background: currentColor; flex: none;
}
.lg-hbtn-phone .wp-block-button__link::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lg-hbtn-sell .wp-block-button__link::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s; }
.lg-hbtn-sell .wp-block-button__link:hover::after { transform: translateX(3px); }

/* Accesos del menú móvil: ocultos en escritorio. */
.lg-header__nav .lg-nav-cta { display: none !important; }

/* ---------- Tablet y móvil: menú a pantalla completa ---------- */
@media (max-width: 1099px) {
	.lg-header__nav { flex: none; order: 3; }
	.lg-header__row { justify-content: flex-start !important; }
	.lg-header__cta { order: 2; margin-left: auto !important; }
	.lg-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid !important; }
	.lg-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.lg-header__nav .wp-block-navigation__responsive-container-open {
		place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--wp--preset--color--navy); color: #fff;
		transition: transform .25s;
	}
	.lg-header__nav .wp-block-navigation__responsive-container-open:active { transform: scale(.94); }
	.lg-header__nav .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
	.lg-header__logo img { width: 128px !important; }
	.lg-header__cta .lg-hbtn-sell { display: none; }
	.lg-hbtn-phone .wp-block-button__link { width: 46px; height: 46px; padding: 0 !important; justify-content: center; font-size: 0 !important; background: var(--wp--preset--color--cream) !important; border: 0 !important; }
	.lg-hbtn-phone .wp-block-button__link::before { width: 19px; height: 19px; background: var(--wp--preset--color--navy); }
	.lg-header__row { gap: .6rem; }
}

/* Menú abierto (overlay). */
.lg-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1.25rem, 5vw, 2.5rem) !important;
	background: radial-gradient(90% 60% at 100% 0%, rgba(235, 150, 39, .22), transparent 60%), var(--wp--preset--color--navy) !important;
	animation: lg-menu-in .4s cubic-bezier(.22, 1, .36, 1);
}
@keyframes lg-menu-in { from { opacity: 0; transform: translateY(-12px); } }
.lg-header__nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); width: 46px; height: 46px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: grid; place-items: center;
}
.lg-header__nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; align-items: flex-start !important; gap: 0 !important; }
.lg-header__nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%; padding: .9rem 0; border-bottom: 1px solid rgba(245, 238, 223, .12);
	animation: lg-rise .5s cubic-bezier(.22, 1, .36, 1) both;
}
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: .05s; }
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: .1s; }
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: .15s; }
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: .2s; }
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; letter-spacing: -.02em;
}
.lg-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after { display: none; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container {
	padding: .4rem 0 0 !important; gap: 0 !important; background: transparent !important; box-shadow: none !important; min-width: 0 !important; animation: none;
}
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem 0 !important; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__label { font-size: 1rem; font-weight: 500; opacity: .9; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__description { color: rgba(245, 238, 223, .55); }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
.lg-header__nav .is-menu-open .lg-nav-cta { display: block !important; width: 100%; box-sizing: border-box; border: 0 !important; padding: .35rem 0 !important; }
.lg-header__nav .is-menu-open .lg-nav-cta > .wp-block-navigation-item__content { box-sizing: border-box; }
.lg-header__nav .is-menu-open .wp-block-navigation__container { box-sizing: border-box; max-width: 100%; }
.lg-header__nav .is-menu-open .lg-nav-cta:first-of-type, .lg-header__nav .is-menu-open .lg-nav-cta--wa { margin-top: 1.25rem; }
.lg-header__nav .is-menu-open .lg-nav-cta > .wp-block-navigation-item__content {
	display: flex !important; justify-content: center; align-items: center; gap: .5rem; width: 100%; padding: 1rem !important; border-radius: 16px;
	font-family: var(--wp--preset--font-family--body) !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: 0 !important;
}
.lg-header__nav .is-menu-open .lg-nav-cta--wa > .wp-block-navigation-item__content { background: #25d366; color: #06341a !important; }
.lg-header__nav .is-menu-open .lg-nav-cta--phone > .wp-block-navigation-item__content { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--navy) !important; }
.lg-header__nav .is-menu-open .lg-nav-cta--phone { margin-top: .5rem; }
html.has-modal-open .lg-wa-float { display: none; }

/* Menú abierto: todo alineado a la izquierda y sin descripciones (más corto). */
.lg-header__nav .is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.lg-header__nav .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) { align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__description { display: none; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container { padding-left: 0 !important; }
.lg-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .35rem 0 !important; }
.lg-header__nav .is-menu-open .wp-block-navigation-item { margin: 0 !important; }
.lg-site-header { overflow-anchor: none; }
