/* ============================================================
   LT Tools — menú off-canvas + footer 4 columnas
   Child theme de hello-elementor
   ============================================================ */

:root {
	--lt-navy:      #14294d;
	--lt-navy-deep: #0f2140;
	--lt-white:     #ffffff;
}

/* Neutraliza el desbordamiento horizontal del carrusel de marcas (GS Logo Slider).
   `clip` no crea contenedor de scroll ni rompe position:sticky. */
html,
body {
	overflow-x: clip;
	max-width: 100%;
}

/* ============================================================
   1) HAMBURGUESA FIJA (trigger)
   ============================================================ */
.lt-menu-trigger {
	position: fixed;
	top: 22px;
	right: 26px;
	z-index: 100000;
	width: 54px;
	height: 46px;
	padding: 11px 10px;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: rgba(20, 41, 77, 0.55) !important;
	border: 0 !important;
	border-radius: 9px;
	cursor: pointer;
	box-shadow: none !important;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	transition: background 0.25s ease;
}
.lt-menu-trigger:hover,
body.lt-menu-open .lt-menu-trigger {
	background: rgba(20, 41, 77, 0.72) !important;
}
.lt-menu-trigger span {
	display: block;
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: var(--lt-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	transition: transform 0.3s ease, opacity 0.3s ease;
}
body.lt-menu-open .lt-menu-trigger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
body.lt-menu-open .lt-menu-trigger span:nth-child(2) { opacity: 0; }
body.lt-menu-open .lt-menu-trigger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ============================================================
   2) CONTENEDOR (recorta el panel fuera de pantalla → sin scroll horizontal)
   ============================================================ */
.lt-offcanvas-wrap {
	position: fixed;
	inset: 0;
	z-index: 99990;
	overflow: hidden;
	pointer-events: none;
}

/* Overlay oscuro */
.lt-offcanvas-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 40, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	pointer-events: none;
}
body.lt-menu-open .lt-offcanvas-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ============================================================
   3) PANEL OFF-CANVAS
   ============================================================ */
.lt-offcanvas {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 88vw);
	background: rgba(20, 41, 77, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: -14px 0 44px rgba(0, 0, 0, 0.35);
	transform: translateX(100%);
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	overflow-y: auto;
	pointer-events: auto;
}
body.lt-menu-open .lt-offcanvas {
	transform: translateX(0);
}
.lt-offcanvas__inner {
	width: 100%;
	margin: auto;
	padding: 48px 34px;
	text-align: center;
}
.lt-offcanvas__logo {
	display: inline-block;
	margin-bottom: 40px;
}
.lt-offcanvas__logo img {
	width: 155px;
	height: auto;
}
.lt-offcanvas__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --- Nivel superior --- */
.lt-menu > .lt-menu__item {
	margin: 16px 0;
}
.lt-menu > .lt-menu__item > a {
	display: inline-block;
	color: var(--lt-white) !important;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 1.3rem;
	line-height: 1.2;
	padding-bottom: 4px;
	border-bottom: 3px solid transparent;
	transition: opacity 0.25s ease, border-color 0.25s ease;
}
.lt-menu > .lt-menu__item > a:hover {
	opacity: 0.72;
}
.lt-menu > .lt-menu__item.is-active > a {
	border-bottom-color: var(--lt-white);
}

/* --- Submenú --- */
.lt-submenu li {
	margin: 9px 0;
}
.lt-submenu a {
	display: inline-block;
	color: var(--lt-white) !important;
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.03em;
	opacity: 0.82;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lt-submenu a:hover {
	opacity: 1;
}
.lt-submenu li.is-active a {
	opacity: 1;
	border-bottom-color: var(--lt-white);
}

/* Grupos con submenú: chevron indicador (rota al abrir) */
.lt-has-children > a {
	cursor: pointer;
}
.lt-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.55em;
	border-right: 2px solid rgba(255, 255, 255, 0.7);
	border-bottom: 2px solid rgba(255, 255, 255, 0.7);
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform 0.3s ease;
}
.lt-has-children.is-open > a::after {
	transform: translateY(0.1em) rotate(-135deg);
}

/* Submenú: COLAPSADO por defecto (todos los dispositivos).
   Se despliega SOLO al hacer clic en el grupo padre (clase .is-open vía JS). */
.lt-has-children > .lt-submenu {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: 0;
	transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.lt-has-children.is-open > .lt-submenu {
	max-height: 340px;
	opacity: 1;
	margin-top: 10px;
}

/* ============================================================
   4) FOOTER 4 COLUMNAS
   ============================================================ */
.lt-footer {
	background: var(--lt-navy);
	color: #fff;
	padding: 58px 24px;
}
.lt-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
	gap: 34px;
	align-items: start;
}
.lt-footer a {
	color: #fff !important;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}
.lt-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}
.lt-footer__title {
	margin: 0 0 18px;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
}
.lt-footer p {
	margin: 9px 0;
	font-size: 1rem;
	line-height: 1.5;
}
.lt-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lt-footer li {
	margin: 11px 0;
	font-size: 1rem;
}
.lt-footer__brand img {
	display: block;
	width: 185px;
	height: auto;
	margin-bottom: 16px;
}
.lt-footer__brand p {
	opacity: 0.85;
	font-size: 0.95rem;
}

/* ============================================================
   5) RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
	.lt-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
	.lt-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.lt-footer__brand img { margin-left: auto; margin-right: auto; }
	.lt-offcanvas { width: 86vw; }
}
