/* Menú full-screen — medidas del prototipo (design/source › MENÚ). */
.lp-menu {
	--lp-azul: var(--wp--preset--color--azul, #006eae);
	--lp-amarillo: var(--wp--preset--color--amarillo, #fff03e);
	--lp-tinta: var(--wp--preset--color--tinta, #0e1b26);
	display: flex;
	align-items: center;
	gap: 10px;
}
.lp-menu button {
	font-family: inherit;
	cursor: pointer;
}
.lp-menu__search-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	border: 1.5px solid var(--lp-tinta);
	background: transparent;
	color: var(--lp-tinta);
	font-size: 14px;
	font-weight: 700;
}
.lp-menu__search-btn:hover { background: var(--lp-amarillo); }
.lp-menu__lens {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border: 2px solid currentColor;
	border-radius: 50%;
}
.lp-menu__burger {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 18px 0 16px;
	border: 0;
	background: var(--lp-azul);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.lp-menu__burger:hover { background: var(--lp-tinta); }
.lp-menu__lines { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.lp-menu__lines span { height: 3px; background: currentColor; }
.lp-menu__lines span:nth-child(2) { width: 70%; }
.lp-menu__lines span:nth-child(3) { background: var(--lp-amarillo); }
@media (max-width: 480px) {
	.lp-menu__search-btn > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.lp-menu__search-btn { padding: 0 14px; }
}

/* Overlay */
.lp-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--lp-azul);
	color: #fff;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	container-type: inline-size;
}
.lp-overlay[hidden] { display: none; }
.admin-bar .lp-overlay { top: var(--wp-admin--admin-bar--height, 32px); }
.lp-overlay a { color: inherit; text-decoration: none; }
.lp-overlay a:focus-visible,
.lp-overlay button:focus-visible,
.lp-overlay input:focus-visible { outline: 3px solid var(--lp-amarillo); outline-offset: 3px; }
.lp-overlay__frame { position: relative; min-height: 100%; overflow: hidden; }
.lp-overlay__geo img { position: absolute; display: block; height: auto; pointer-events: none; }
.lp-overlay__geo-a { right: -4cqi; bottom: -4cqi; width: min(40cqi, 520px); }
.lp-overlay__geo-b { right: min(34cqi, 450px); bottom: min(14cqi, 180px); width: min(12cqi, 150px); }
.lp-overlay__geo-c { right: min(8cqi, 100px); bottom: min(22cqi, 290px); width: min(10cqi, 130px); }
.lp-overlay__inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	/* espacio reservado abajo para las piezas: nunca debajo del texto */
	padding: 14px clamp(16px, 4cqi, 48px) min(28cqi, 380px);
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 5cqi, 64px);
}
.lp-overlay__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; }
.lp-overlay__brand { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.05; font-weight: 500; }
.lp-overlay__brand img { width: 44px; height: 44px; display: block; }
.lp-overlay__brand b { font-weight: 900; }
.lp-overlay__close {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	background: var(--lp-amarillo);
	color: var(--lp-tinta);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.lp-overlay__close:hover { background: #fff; }
.lp-overlay__x { position: relative; width: 18px; height: 18px; }
.lp-overlay__x::before,
.lp-overlay__x::after { content: ""; position: absolute; left: -2px; right: -2px; top: 7px; height: 3px; background: currentColor; transform: rotate(45deg); }
.lp-overlay__x::after { transform: rotate(-45deg); }

.lp-overlay__cols { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5cqi, 80px); align-items: flex-start; }
.lp-overlay__doors { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid #fff; }
.lp-door { border-bottom: 1px solid rgba(255, 255, 255, .35); padding: clamp(14px, 2cqi, 22px) 0; display: flex; flex-direction: column; gap: 10px; }
.lp-door__main { display: flex; align-items: baseline; gap: clamp(12px, 2cqi, 24px); }
.lp-door__main:hover,
.lp-door.is-current .lp-door__main { color: var(--lp-amarillo); }
.lp-door__n { flex: 0 0 auto; font: 14px var(--wp--preset--font-family--mono, monospace); } /* blanco pleno: al 75 % no llega a AA sobre azul */
.lp-door__label { min-width: 0; font-size: clamp(30px, 4.2cqi, 60px); line-height: .95; font-weight: 900; font-stretch: 110%; letter-spacing: -.02em; overflow-wrap: break-word; }
.lp-door__items { list-style: none; margin: 0; padding: 0 0 0 calc(clamp(12px, 2cqi, 24px) + 22px); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 500; }
.lp-door__items a { display: inline-block; padding: 6px 0; opacity: .85; } /* objetivo táctil ≥ 44px con el gap */
.lp-door__items a:hover { opacity: 1; text-decoration: underline; }

.lp-overlay__side { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.lp-overlay__search { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px; background: #fff; color: var(--lp-tinta); }
.lp-overlay__search .lp-menu__lens { width: 14px; height: 14px; border-width: 2.5px; }
.lp-overlay__search input { flex: 1; min-width: 0; min-height: 56px; border: 0; outline: 0; background: transparent; color: var(--lp-tinta); font: inherit; font-size: 17px; }
.lp-overlay__temas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-overlay__temas a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1.5px solid #fff; font-size: 14px; font-weight: 600; }
.lp-overlay__temas a:hover { background: #fff; color: var(--lp-azul); }
.lp-overlay__cafe { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--lp-tinta); color: #fff; }
.lp-overlay__cafe:hover { outline: 3px solid var(--lp-amarillo); }
.lp-overlay__cafe-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-overlay__cafe-meta > span:last-child { opacity: .75; }
.lp-overlay__cafe-title { font-size: 22px; font-weight: 800; line-height: 1.15; font-stretch: 105%; }
.lp-overlay__cafe-cta { font-size: 14px; font-weight: 700; color: var(--lp-amarillo); }
.lp-overlay__links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; }
.lp-overlay__links a { display: inline-block; padding: 8px 0; }
.lp-overlay__links a:hover { text-decoration: underline; }

.lp-badge { padding: 5px 9px; }
.lp-badge--amarillo { background: var(--lp-amarillo, #fff03e); color: var(--lp-tinta, #0e1b26); }

html.lp-menu-open,
html.lp-menu-open body { overflow: hidden; }

/* ---------- Transición de apertura y cierre ----------
   El azul entra como un corte diagonal desde la esquina del botón Menú;
   después suben las puertas, entra la columna derecha y llegan las piezas. */
.lp-overlay {
	clip-path: polygon(100% 0, 100% 0, 100% 0);
	transition: clip-path .62s cubic-bezier(.7, 0, .2, 1);
}
.lp-overlay.is-open { clip-path: polygon(-140% 0, 100% 0, 100% 240%); }
.lp-overlay.is-closing { clip-path: polygon(100% 0, 100% 0, 100% 0); transition-duration: .48s; transition-timing-function: cubic-bezier(.6, 0, .4, 1); }

@keyframes lp-menu-subir { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes lp-menu-lado { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes lp-menu-pieza { from { opacity: 0; transform: translate(80px, 80px) rotate(-40deg) scale(.8); } to { opacity: 1; transform: none; } }

.lp-overlay.is-open .lp-overlay__top { animation: lp-menu-subir .5s cubic-bezier(.2, .8, .2, 1) .18s both; }
.lp-overlay.is-open .lp-door { animation: lp-menu-subir .6s cubic-bezier(.2, .8, .2, 1) both; }
.lp-overlay.is-open .lp-door:nth-child(1) { animation-delay: .24s; }
.lp-overlay.is-open .lp-door:nth-child(2) { animation-delay: .30s; }
.lp-overlay.is-open .lp-door:nth-child(3) { animation-delay: .36s; }
.lp-overlay.is-open .lp-door:nth-child(4) { animation-delay: .42s; }
.lp-overlay.is-open .lp-door:nth-child(n+5) { animation-delay: .48s; }
.lp-overlay.is-open .lp-overlay__side > * { animation: lp-menu-lado .6s cubic-bezier(.2, .8, .2, 1) both; }
.lp-overlay.is-open .lp-overlay__side > :nth-child(1) { animation-delay: .30s; }
.lp-overlay.is-open .lp-overlay__side > :nth-child(2) { animation-delay: .38s; }
.lp-overlay.is-open .lp-overlay__side > :nth-child(3) { animation-delay: .46s; }
.lp-overlay.is-open .lp-overlay__side > :nth-child(n+4) { animation-delay: .54s; }
.lp-overlay.is-open .lp-overlay__geo img { animation: lp-menu-pieza 1s cubic-bezier(.2, .9, .25, 1.05) .35s both; }
.lp-overlay.is-open .lp-overlay__geo img:nth-child(2) { animation-delay: .5s; }
.lp-overlay.is-open .lp-overlay__geo img:nth-child(3) { animation-delay: .62s; }
/* al cerrar, el contenido se desvanece antes de que se recoja el azul */
.lp-overlay.is-closing .lp-overlay__inner,
.lp-overlay.is-closing .lp-overlay__geo { opacity: 0; transition: opacity .2s ease; }

/* Botón Menú: las líneas giran al pulsarlo */
.lp-menu__lines span { transition: transform .35s ease, width .35s ease; }
html.lp-menu-open .lp-menu__burger .lp-menu__lines span:nth-child(2) { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.lp-overlay, .lp-overlay.is-open, .lp-overlay.is-closing { clip-path: none; transition: opacity .16s ease; }
	.lp-overlay { opacity: 0; }
	.lp-overlay.is-open { opacity: 1; }
	.lp-overlay.is-open *, .lp-overlay.is-open .lp-overlay__geo img { animation: none !important; }
}

/* ---------- Barra de navegación de escritorio (≥ 1100 px) ----------
   Puertas con submenú desplegable (ratón, teclado o clic en la flecha) y
   búsqueda siempre visible. Por debajo quedan Buscar + Menú (full-screen). */
.lp-nav, .lp-nav__search { display: none; }
@media (min-width: 1100px) {
	.lp-menu { flex: 1 1 auto; justify-content: flex-end; gap: 20px; }
	.lp-menu__search-btn, .lp-menu__burger { display: none; }
	.lp-nav { display: block; margin-right: auto; margin-left: clamp(16px, 3vw, 48px); }
	.lp-nav__list { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; }
	.lp-nav__item { position: relative; display: flex; align-items: center; }
	.lp-nav__link { display: block; padding: 12px 6px 12px 12px; color: var(--lp-tinta); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
	.lp-nav__item:not(:has(.lp-nav__toggle)) .lp-nav__link { padding-right: 12px; }
	.lp-nav__link:hover, .lp-nav__item.is-current > .lp-nav__link { color: var(--lp-azul); }
	.lp-nav__item.is-current > .lp-nav__link { box-shadow: inset 0 -3px 0 var(--lp-amarillo); }
	.lp-nav__toggle { display: grid; place-items: center; width: 24px; height: 36px; margin-right: 4px; padding: 0; border: 0; background: transparent; color: var(--lp-tinta); }
	.lp-nav__toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
	.lp-nav__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
	.lp-nav__panel {
		position: absolute; top: 100%; left: 0; z-index: 60; min-width: 240px; padding: 10px 0;
		background: #fff; border-top: 3px solid var(--lp-azul); box-shadow: 0 18px 40px -18px rgba(14, 27, 38, .45);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.lp-nav__item:not(.is-closed):hover > .lp-nav__panel,
	.lp-nav__item:not(.is-closed):focus-within > .lp-nav__panel,
	.lp-nav__item.is-open > .lp-nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.lp-nav__panel ul { margin: 0; padding: 0; list-style: none; }
	.lp-nav__panel a { display: block; padding: 9px 20px; color: var(--lp-tinta); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
	.lp-nav__panel a:hover, .lp-nav__panel a:focus-visible { background: var(--lp-amarillo); }
	.lp-nav__search { display: flex; align-items: center; gap: 8px; width: 200px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--lp-tinta); background: #fff; transition: width .2s ease; }
	.lp-nav__search:focus-within { width: 260px; border-color: var(--lp-azul); }
	.lp-nav__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--lp-tinta); }
	.lp-nav__search input:focus { outline: none; }
}
@media (min-width: 1100px) and (max-width: 1280px) {
	.lp-nav__link { font-size: 14px; padding-left: 8px; }
	.lp-nav__search { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-nav__panel, .lp-nav__toggle::before, .lp-nav__search { transition: none; }
}
