.gfh-slot{--gfh-height:84px;--gfh-accent:var(--bs-color-accent,#fe3e6b);min-height:var(--gfh-height)}
.gfh-slot.gfh-home{min-height:0}
.gfh{position:sticky;top:0;z-index:1000;background:var(--bs-color-background,#fff);color:var(--bs-color-heading,#171717);font-family:var(--bs-font-body,inherit)}
.gfh-slot .gfh{position:fixed;inset:0 0 auto}
.admin-bar .gfh-slot .gfh{top:32px}
.gfh-home .gfh:not(.gfh-scrolled){background:linear-gradient(#101010bc,transparent);color:#fff}
.gfh-inner{box-sizing:border-box;max-width:var(--bs-container-max,1320px);padding-inline:var(--bs-container-padding,32px);margin-inline:auto;min-height:var(--gfh-height);display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative}
.gfh-logo{display:grid;width:200px;flex:none}.gfh-logo img{grid-area:1/1;width:100%;height:auto}.gfh-white,.gfh-home .gfh:not(.gfh-scrolled) .gfh-black{visibility:hidden}.gfh-home .gfh:not(.gfh-scrolled) .gfh-white{visibility:visible}
.gfh nav{display:flex;align-items:center;gap:clamp(16px,2.4vw,38px);font-weight:600}
.gfh a,.gfh summary{color:inherit;text-decoration:none}.gfh a:hover,.gfh summary:hover,.gfh a[aria-current=page]{color:var(--gfh-accent)}.gfh a[aria-current=page]{text-decoration:underline;text-underline-offset:7px}
.gfh button{font:inherit;color:inherit;background:transparent;border:0;box-shadow:none;cursor:pointer;min-width:44px;min-height:44px}
.gfh summary{cursor:pointer;list-style:none}.gfh summary::-webkit-details-marker{display:none}.gfh-services>summary::after{content:"⌄";margin-left:.45em}
.gfh-contact{border-radius:50%;display:grid;place-items:center}.gfh-contact span{width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:-6px -6px,0 -6px,6px -6px,-6px 0,6px 0,-6px 6px,0 6px,6px 6px}
.gfh-contact b,.gfh .gfh-mobile{display:none}
.gfh-mega{position:absolute;right:var(--bs-container-padding,32px);top:100%;width:min(880px,calc(100% - 48px));background:#fff;color:#171717;border-radius:12px;box-shadow:0 18px 52px #0002;padding:24px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-height:70vh;overflow:auto}
.gfh-group+ .gfh-group{border-left:1px solid #17171722;padding-left:18px}.gfh-group>summary{font-weight:800;font-family:var(--bs-font-heading,inherit);cursor:default}.gfh-group ul{list-style:none;padding:0;margin:10px 0 0}.gfh-group a{display:flex;gap:10px;align-items:center;padding:6px;min-height:44px;border-radius:6px;font-size:.9rem}.gfh-group a:hover{background:#f6f3f3}.gfh-group img{width:56px;height:38px;object-fit:cover;border-radius:4px}
.gfh-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(100%,520px);max-width:none;height:100%;max-height:none;background:#171717;color:#fff;border:0;padding:clamp(24px,5vw,48px);overflow:auto}
.gfh-drawer::backdrop{background:#0008}.gfh-drawer form{position:absolute;right:14px;top:10px}.gfh-drawer form button{font-size:28px}.gfh-drawer>img{width:180px;height:auto}.gfh-drawer h2,.gfh-drawer h3{color:#fff}.gfh-drawer section{border-top:1px solid #fff4;padding-block:16px}.gfh-drawer p{margin-block:4px 12px}.gfh-phone{display:block;padding-block:8px}.gfh-map{display:inline-block;margin-bottom:6px;text-decoration:underline!important}
.gfh :focus-visible{outline:2px solid var(--gfh-accent);outline-offset:3px}
@media(max-width:1024px){.gfh-logo{width:180px}}
@media(max-width:767px){
 .gfh-slot{--gfh-height:68px}.gfh-logo{width:156px}.gfh-inner{padding-inline:16px}.gfh .gfh-mobile{display:block;font-size:24px}
 .gfh nav{display:none;position:absolute;top:100%;inset-inline:0;max-height:calc(100dvh - 114px);overflow:auto;background:#fff;color:#171717;padding:16px 22px;align-items:stretch;gap:0;flex-direction:column}
 .gfh nav.is-open{display:flex}.gfh nav>a,.gfh-services>summary{display:block;padding-block:10px}.gfh-mega{position:static;display:block;width:auto;max-height:none;box-shadow:none;padding:0 0 8px;border-radius:0}
 .gfh-group+.gfh-group{border-left:0;padding-left:0}.gfh-group>summary{padding:10px 0;border-top:1px solid #17171722;cursor:pointer}.gfh-group>summary::after{content:" +";color:var(--gfh-accent)}.gfh-group[open]>summary::after{content:" −"}.gfh-contact{border-radius:0;display:flex;gap:12px;align-items:center;padding-inline:10px}.gfh-contact b{display:inline}
 .admin-bar .gfh-slot .gfh{top:46px}
}

/* Navegación editorial de Grafito */
.gfh .gfh-services > summary::after { content: none; }
.gfh nav > a,
.gfh .gfh-services > summary {
	position: relative;
	text-decoration: none;
}
.gfh nav > a::before,
.gfh .gfh-services > summary::before {
	content: "";
	position: absolute;
	inset: auto 0 -7px;
	height: 2px;
	background: var(--gfh-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 200ms ease;
}
.gfh nav > a:is(:hover,:focus-visible,[aria-current="page"])::before,
.gfh .gfh-services > summary:is(:hover,:focus-visible)::before,
.gfh .gfh-services[open] > summary::before,
.gfh .gfh-services:has(a[aria-current="page"]) > summary::before { transform: scaleX(1); }

@media (min-width: 768px) {
	.gfh nav .gfh-contact {
		flex: 0 0 50px;
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
		padding: 0;
		border-radius: 50%;
		aspect-ratio: 1;
		background: #171717;
		color: #fff;
	}
	.gfh-home .gfh:not(.gfh-scrolled) .gfh-contact { background: #fff; color: #171717; }
	.gfh nav .gfh-contact:hover { background: var(--gfh-accent); color: #171717; }
	.gfh .gfh-mega {
		width: min(980px, calc(100% - 48px));
		padding: clamp(22px, 2.7vw, 40px);
		gap: clamp(12px, 2vw, 32px);
		border-radius: 0 0 14px 14px;
		border-top: 3px solid var(--gfh-accent);
		background: #faf8f6;
		box-shadow: 0 20px 54px #17171726;
	}
	.gfh-services[open] .gfh-mega { animation: gfh-reveal 210ms ease-out both; }
	.gfh .gfh-group > summary {
		min-height: 2.3em;
		font-size: clamp(1rem, 1.35vw, 1.35rem);
		line-height: 1.12;
		letter-spacing: -.025em;
	}
	.gfh .gfh-group ul { margin-top: 14px; }
	.gfh .gfh-group a {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr) auto;
		border-radius: 0;
		border-bottom: 1px solid #17171716;
		line-height: 1.25;
		padding: 8px 4px;
		transition: background-color 180ms ease;
	}
	.gfh .gfh-group a::after {
		content: "↗";
		color: var(--gfh-accent);
		opacity: 0;
		transform: translate(-3px, 3px);
		transition: opacity 180ms ease, transform 180ms ease;
	}
	.gfh .gfh-group a:is(:hover,:focus-visible,[aria-current="page"]) { background: #fe3e6b0d; color: #171717; }
	.gfh .gfh-group a:is(:hover,:focus-visible,[aria-current="page"])::after { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
	.gfh nav > a::before, .gfh .gfh-services > summary::before { bottom: 3px; right: auto; width: 32px; }
}
@keyframes gfh-reveal {
	from { opacity: 0; transform: translateY(-7px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gfh .gfh-mega, .gfh nav *::before, .gfh nav *::after { animation: none !important; transition: none !important; }
}

.gfh-drawer > h2 { margin-block: 24px 16px; }
.gfh-drawer .gfh-location,
.gfh-drawer .gfh-channels { padding-block: 18px; }
.gfh-drawer section h3 { margin: 0; }
.gfh-drawer section p { color: #e0dcdc; line-height: 1.55; }
.gfh-phones, .gfh-social { display: flex; flex-wrap: wrap; gap: 8px; }
.gfh-drawer .gfh-phone {
	display: grid;
	flex: 1 1 115px;
	gap: 2px;
	padding: 9px 12px;
	border: 1px solid #fff3;
	border-radius: 8px;
	background: #ffffff0a;
}
.gfh-drawer .gfh-phone span { color: #e0dcdc; font-size: .8rem; }
.gfh-drawer .gfh-map, .gfh-drawer .gfh-email { font-weight: 700; }
.gfh-drawer .gfh-email { display: inline-block; margin-bottom: 12px; }
.gfh-social a { padding: 8px 12px; border: 1px solid #fff4; border-radius: 999px; }
.gfh-drawer :is(.gfh-phone, .gfh-social a):is(:hover, :focus-visible) { border-color: var(--gfh-accent); }
@media (min-width: 768px) {
	.gfh nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; padding-block: 4px; }
	.gfh nav > a { white-space: nowrap; }
}

@media (max-width: 767px) {
	.gfh-slot .gfh-inner { padding-inline: 8px; }
	.gfh-slot .gfh button.gfh-mobile {
		display: grid;
		place-items: center;
		box-sizing: border-box;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: inherit;
		box-shadow: none;
		line-height: 1;
	}
	.gfh-slot .gfh nav > .gfh-contact { margin-top: 10px; }
}
