/* Header nuevo y menu movil (Figma Header / Escritorio, Header / Móvil, 208:495). */

body.cgc-hd-on header.bde-header-builder { display: none !important; }

.cgc-hd {
	--hd-ink: #000;
	--hd-red: #f82c1f;
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 60;
	font-family: 'Bricolage Grotesque', 'Anek Latin', Arial, sans-serif;
	color: var(--hd-ink);
}
.cgc-hd *, .cgc-hd-menu * { box-sizing: border-box; }
.cgc-hd a { text-decoration: none; }

.cgc-hd__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 120px;
	/* Mismo ancho que el contenido de las paginas nuevas (1120 px). */
	max-width: 1168px;
	margin: 0 auto;
	padding: 20px 24px;
}
.cgc-hd__logo { display: block; flex: 0 0 auto; width: 80px; height: 80px; }
.cgc-hd__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.cgc-hd__nav { display: flex; align-items: center; gap: 36px; }
.cgc-hd__nav a {
	font-size: 16px;
	line-height: 19px;
	font-weight: 400;
	color: inherit;
	white-space: nowrap;
}
.cgc-hd__nav a:hover, .cgc-hd__nav a:focus-visible { color: var(--hd-red); }
/* Pagina actual: subrayado rojo */
.cgc-hd__nav a, .cgc-hd__drop-btn { position: relative; }
.cgc-hd__nav a.is-actual::after, .cgc-hd__drop-btn.is-actual::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	border-radius: 2px;
	background: var(--hd-red);
}
.cgc-hd__drop-btn.is-actual::after { right: 20px; }

/* Desplegable de Sucursales */
.cgc-hd__drop { position: relative; }
.cgc-hd__drop-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: 400 16px/19px 'Bricolage Grotesque', 'Anek Latin', Arial, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}
.cgc-hd__drop-btn svg { transition: transform .15s; }
.cgc-hd__drop-btn:hover, .cgc-hd__drop-btn:focus-visible { color: var(--hd-red); }
.cgc-hd__drop-panel {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	z-index: 5;
	display: none;
	width: max-content;
	min-width: 300px;
	padding: 8px;
	border-radius: 18px;
	background: #fff;
	color: #111;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
	transform: translateX(-50%);
}
.cgc-hd__drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.cgc-hd__drop:hover .cgc-hd__drop-panel,
.cgc-hd__drop:focus-within .cgc-hd__drop-panel,
.cgc-hd__drop.is-abierto .cgc-hd__drop-panel { display: block; }
.cgc-hd__drop:hover .cgc-hd__drop-btn svg, .cgc-hd__drop.is-abierto .cgc-hd__drop-btn svg { transform: rotate(180deg); }
.cgc-hd__suc {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
	border-radius: 12px;
	color: #111 !important;
}
.cgc-hd__suc:hover, .cgc-hd__suc:focus-visible { background: #f2f2f2; }
.cgc-hd__suc strong { font: 800 22px/1 'Saira Extra Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; }
.cgc-hd__suc span { font: 400 14px/1.35 'Anek Latin', Arial, sans-serif; color: #555; }
.cgc-hd__suc .cgc-hd__suc-tel { color: #f82c1f; font-weight: 700; }

.cgc-hd__acciones { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.cgc-hd__ico {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid currentColor;
	border-radius: 99px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.cgc-hd__ico:hover { color: var(--hd-red); }
.cgc-hd__ico svg { display: block; }
.cgc-hd__ico--menu { display: none; background: #000; border-color: #000; color: #fff; }
.cgc-hd__ico--menu:hover { color: #fff; }

.cgc-hd-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--hd-red);
	color: #fff;
	font: 700 12px/20px 'Anek Latin', Arial, sans-serif;
	text-align: center;
	white-space: nowrap;
}
.cgc-hd-count[hidden] { display: none; }

.cgc-hd__btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	border-radius: 99px;
	background: var(--hd-red);
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}
.cgc-hd__btn:hover { background: #d81f13; }

/* Sobre el hero oscuro del Inicio (Figma Inicio v3) */
body:has(.lcdg-v3-hero) .cgc-hd { --hd-ink: #fff; }
body:has(.lcdg-v3-hero) .cgc-hd__in { padding-top: 24px; padding-bottom: 24px; }
body:has(.lcdg-v3-hero) .cgc-hd__logo { width: 113px; height: 113px; }
body:has(.lcdg-v3-hero) .cgc-hd__btn { height: 40px; padding: 0 24px; font-size: 14px; border: 1px solid #fff; }

/* Sobre el hero oscuro de las sucursales: blanco desde el primer pintado,
   sin esperar a header.js (antes tardaba segundos en cambiar). */
body:has(.lcdg-suc-hero) .cgc-hd { --hd-ink: #fff; }

/* Sobre cualquier otro fondo oscuro (lo detecta header.js) */
.cgc-hd.cgc-hd--oscuro { --hd-ink: #fff; }

@media (max-width: 1240px) {
	.cgc-hd__nav { gap: 24px; }
}

/* Celular y tablet: logo, carrito y menu */
@media (max-width: 1080px) {
	.cgc-hd__in, body:has(.lcdg-v3-hero) .cgc-hd__in { min-height: 76px; padding: 12px 16px; }
	.cgc-hd__logo, body:has(.lcdg-v3-hero) .cgc-hd__logo { width: 52px; height: 52px; }
	.cgc-hd__nav, .cgc-hd__btn, .cgc-hd__ico--cuenta { display: none !important; }
	.cgc-hd__acciones { gap: 10px; }
	.cgc-hd__ico--menu { display: inline-flex; }
	body:has(.lcdg-v3-hero) .cgc-hd { background: #0b0b0b; }
}

/* Menu movil abierto (208:495) */
.cgc-hd-menu {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: #000;
	color: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.cgc-hd-menu[hidden] { display: none; }
.cgc-hd-menu a { text-decoration: none; }
body.cgc-hd-abierto { overflow: hidden; }

.cgc-hd-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 12px 16px;
}
.cgc-hd-menu__logo { display: block; width: 52px; height: 52px; }
.cgc-hd-menu__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cgc-hd-menu__cerrar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid #fff;
	border-radius: 99px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.cgc-hd-menu__top { padding: 8px 24px 0; }
.cgc-hd-menu__links { display: flex; flex-direction: column; gap: 0; padding: 12px 24px 8px; }
.cgc-hd-menu__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
	color: #fff;
	font: 800 32px/1 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
	text-transform: uppercase;
	white-space: nowrap;
}
.cgc-hd-menu__links a svg { flex: 0 0 auto; color: #f82c1f; transition: transform .15s; }
.cgc-hd-menu__links a:hover svg, .cgc-hd-menu__links a:focus-visible svg { transform: translateX(4px); }

.cgc-hd-menu__links a.is-actual span { color: #f82c1f; }

/* Sucursales en el menu movil, con WhatsApp o llamada */
.cgc-hd-menu__sucs { display: flex; flex-direction: column; gap: 10px; padding: 8px 24px 24px; }
.cgc-hd-menu__tit { margin: 0 0 2px; font: 800 12px/1 'Bricolage Grotesque', Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; }
.cgc-hd-menu__suc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 14px 18px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 16px;
	background: rgba(255, 255, 255, .05);
}
.cgc-hd-menu__suc-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: #fff !important; }
.cgc-hd-menu__suc-info strong { font: 800 24px/1 'Saira Extra Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; }
.cgc-hd-menu__suc-info span { font: 400 14px/1.3 'Anek Latin', Arial, sans-serif; color: #bdbdbd; }
.cgc-hd-menu__suc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	height: 44px;
	padding: 0 16px;
	border-radius: 99px;
	background: #fff;
	color: #000 !important;
	font: 800 14px/1 'Bricolage Grotesque', Arial, sans-serif;
	white-space: nowrap;
}
.cgc-hd-menu__suc-btn svg { width: 18px; height: 18px; }

.cgc-hd-menu__pie { display: flex; flex-direction: column; gap: 12px; padding: 0 24px 32px; }
.cgc-hd-menu__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	border-radius: 99px;
	background: #f82c1f;
	color: #fff !important;
	font: 800 18px/1 'Bricolage Grotesque', Arial, sans-serif;
	white-space: nowrap;
}
.cgc-hd-menu__redes { display: flex; align-items: center; gap: 16px; }
.cgc-hd-menu__redes a { display: inline-flex; color: #fff; }
.cgc-hd-menu__redes span { font: 400 15px/1.2 'Anek Latin', Arial, sans-serif; color: #bdbdbd; }

@media (min-width: 1081px) { .cgc-hd-menu { display: none !important; } }

/* Boton ES/EN (Figma "Selector de idioma" 354:4428): pastilla con borde y
   el idioma activo relleno. Claro sobre header claro; invertido sobre fondos
   oscuros y en el menu movil. */
.cgc-hd-lang {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 3px;
	border: 1.5px solid currentColor;
	border-radius: 99px;
	color: var(--hd-ink, #000);
	white-space: nowrap;
}
.cgc-hd-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 99px;
	color: inherit;
	font: 800 13px/1 'Bricolage Grotesque', Arial, sans-serif;
	letter-spacing: .04em;
	text-decoration: none;
	white-space: nowrap;
}
.cgc-hd-lang a.is-on { background: var(--hd-ink, #000); color: var(--hd-bg, #fff); }
.cgc-hd-lang a:not(.is-on):hover { color: var(--hd-red, #f82c1f); }
.cgc-hd.cgc-hd--oscuro, body:has(.lcdg-v3-hero) .cgc-hd, body:has(.lcdg-suc-hero) .cgc-hd { --hd-bg: #000; }
.cgc-hd-lang--oscuro { --hd-ink: #fff; --hd-bg: #000; align-self: flex-start; }

/* Inicio: tarjeta "Reserva tu bahía" con efecto glass (pedido 4-dic). */
.lcdg-v3-hero .lcdg-v3-card.lcdg-v3-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.09) 100%);
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lcdg-v3-hero .lcdg-v3-card input,
.lcdg-v3-hero .lcdg-v3-card select {
	background-color: rgba(0, 0, 0, 0.25);
}
