/*!
 * Gadget Premier Header 1.1.0
 * Estética: consola portátil retro + teclado mecánico.
 * JetBrains Mono (SIL OFL 1.1) alojada en local.
 */

/* ============ Fuente ============ */
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-800-normal.woff2") format("woff2");
}

/* ============ Tokens ============ */
.gp-header-wrap {
	--gp-shell: #EDEBE3;      /* carcasa de la consola */
	--gp-shell-edge: #D6D3C8;
	--gp-cap: #FBFAF6;        /* tecla clara */
	--gp-ink: #1B1D1F;        /* contorno del logo */
	--gp-bezel: #585C60;      /* marco de la pantalla */
	--gp-lcd: #A5DE75;        /* pantalla */
	--gp-lcd-ink: #1F4A12;
	--gp-red: #F2293D;        /* botones A/B */
	--gp-teal: #116278;       /* etiqueta de la consola */
	--gp-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--gp-max: 1320px;
	--gp-logo-h: 66px;
	--gp-logo-h-sm: 46px;
	--gp-bar-py: 14px;
	--gp-press: 4px;
	--gp-radius: 11px;
	--gp-top: 0px;
	--gp-speed: .2s;

	position: relative;
	font-family: var(--gp-font);
	color: var(--gp-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============ Reset acotado (protege del tema y del kit de Elementor) ============ */
.gp-header-wrap *,
.gp-header-wrap *::before,
.gp-header-wrap *::after {
	box-sizing: border-box;
}
.gp-header-wrap :is(a, button, input, p, span, li, label) {
	font-family: var(--gp-font);
	letter-spacing: 0;
	text-transform: none;
}
.gp-header-wrap :is(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gp-header-wrap :is(p, li) {
	margin: 0;
}
.gp-header-wrap a {
	text-decoration: none;
	color: inherit;
}
.gp-header-wrap :is(button, [type="button"], [type="submit"]) {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	line-height: 1;
	min-height: 0;
	cursor: pointer;
}
.gp-header-wrap img {
	max-width: none;
	border: 0;
	box-shadow: none;
}
.gp-header-wrap svg.gp-icon {
	width: 22px;
	height: 22px;
	display: block;
	flex: none;
}
.gp-header-wrap :is(a, button, input):focus-visible {
	outline: 3px solid var(--gp-teal);
	outline-offset: 3px;
}
.gp-header-wrap .gp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.gp-header-wrap .gp-container {
	width: 100%;
	max-width: var(--gp-max);
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 36px);
}

/* ============ Estructura ============ */
.gp-header-wrap .gp-header {
	position: relative;
	z-index: 9990;
	width: 100%;
}

.gp-header-wrap--sticky .gp-header {
	position: fixed;
	top: var(--gp-top);
	left: 0;
	right: 0;
}
.gp-header-wrap .gp-header__spacer {
	height: var(--gp-h, calc(var(--gp-logo-h) + var(--gp-bar-py) * 2 + 37px));
}
body.admin-bar .gp-header-wrap { --gp-top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .gp-header-wrap { --gp-top: 46px; }
}
/* En el editor de Elementor se queda en su sitio */
body.elementor-editor-active .gp-header-wrap--sticky .gp-header { position: relative; top: 0; }
body.elementor-editor-active .gp-header-wrap .gp-header__spacer { display: none; }

/* ============ Barra superior ============ */
.gp-header-wrap .gp-topbar {
	display: grid;
	grid-template-rows: 1fr;
	background: var(--gp-ink);
	color: var(--gp-lcd);
	transition: grid-template-rows var(--gp-speed) ease;
}
.gp-header-wrap .gp-topbar__inner {
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.gp-header-wrap .gp-topbar__text {
	display: block;
	padding-block: 9px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--gp-lcd);
	text-align: center;
}
.gp-header-wrap a.gp-topbar__text:hover {
	color: var(--gp-cap);
	text-decoration: underline;
	text-decoration-style: dashed;
	text-underline-offset: 4px;
}
.gp-header-wrap .gp-topbar__led {
	width: 8px;
	height: 8px;
	flex: none;
	background: var(--gp-lcd);
	box-shadow: 0 0 0 2px rgba(165, 222, 117, .18), 0 0 10px rgba(165, 222, 117, .55);
}

/* ============ Barra principal ============ */
.gp-header-wrap .gp-bar {
	background: var(--gp-shell);
	border-bottom: 3px solid var(--gp-ink);
	box-shadow: 0 5px 0 rgba(27, 29, 31, .08);
	transition: background-color var(--gp-speed) ease;
}
.gp-header-wrap .gp-bar__inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
	padding-block: var(--gp-bar-py);
	transition: padding var(--gp-speed) ease;
}

/* Logo */
.gp-header-wrap .gp-logo {
	flex: none;
	display: block;
	line-height: 0;
	transform-origin: 30% 60%;
	transition: transform .18s ease;
}
.gp-header-wrap .gp-logo img {
	display: block;
	height: var(--gp-logo-h);
	width: auto;
	transition: height var(--gp-speed) ease;
}
.gp-header-wrap .gp-logo:hover {
	transform: rotate(-2deg) scale(1.02);
}

/* ============ Navegación escritorio ============ */
.gp-header-wrap .gp-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}
.gp-header-wrap .gp-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 2px;
}
.gp-header-wrap .gp-nav__list li {
	position: relative;
}
.gp-header-wrap .gp-nav__list a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px 9px 22px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--gp-ink);
	white-space: nowrap;
	transition: background-color .15s ease;
}

/* Cursor de menú de videojuego ▶ */
.gp-header-wrap :is(.gp-nav__list, .gp-mnav__list) a::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 8px;
	height: 14px;
	margin-top: -7px;
	background: currentColor;
	clip-path: polygon(0 0, 2px 0, 2px 2px, 4px 2px, 4px 4px, 6px 4px, 6px 6px, 8px 6px, 8px 8px, 6px 8px, 6px 10px, 4px 10px, 4px 12px, 2px 12px, 2px 14px, 0 14px);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .12s steps(2), transform .12s steps(2);
}
.gp-header-wrap .gp-nav__list a:hover,
.gp-header-wrap .gp-nav__list a:focus-visible,
.gp-header-wrap .gp-nav__list li:focus-within > a {
	background: rgba(27, 29, 31, .06);
	color: var(--gp-ink);
}
.gp-header-wrap :is(.gp-nav__list, .gp-mnav__list) a:is(:hover, :focus-visible)::before,
.gp-header-wrap :is(.gp-nav__list, .gp-mnav__list) :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a::before {
	opacity: 1;
	transform: none;
}
.gp-header-wrap :is(.gp-nav__list, .gp-mnav__list) a:hover::before {
	animation: gp-blink 1s steps(1) .25s infinite;
}
.gp-header-wrap .gp-nav__list > :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a {
	font-weight: 700;
	background-image: linear-gradient(90deg, var(--gp-ink) 50%, transparent 0);
	background-size: 6px 3px;
	background-repeat: repeat-x;
	background-position: 22px calc(100% - 4px);
}
.gp-header-wrap .gp-nav__list > :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a:hover {
	background-color: rgba(27, 29, 31, .06);
}

/* Flecha de submenú */
.gp-header-wrap .gp-nav__list .menu-item-has-children > a::after,
.gp-header-wrap .gp-sub-toggle::after {
	content: "";
	width: 10px;
	height: 6px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h2v2H0zM8 0h2v2H8zM2 2h2v2H2zM6 2h2v2H6zM4 4h2v2H4z'/%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 10 6'%3E%3Cpath d='M0 0h2v2H0zM8 0h2v2H8zM2 2h2v2H2zM6 2h2v2H6zM4 4h2v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s steps(2);
}
.gp-header-wrap .gp-nav__list .menu-item-has-children:is(:hover, :focus-within) > a::after {
	transform: rotate(180deg);
}
.gp-header-wrap .gp-nav__list .sub-menu .menu-item-has-children > a::after {
	margin-left: auto;
	transform: rotate(-90deg);
}

/* Desplegables */
.gp-header-wrap .gp-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 20;
	min-width: 240px;
	padding: 8px;
	background: var(--gp-shell);
	border: 2px solid var(--gp-ink);
	border-radius: 12px;
	box-shadow: 5px 5px 0 var(--gp-ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s steps(3), transform .16s steps(3), visibility 0s linear .16s;
}
.gp-header-wrap .gp-nav__list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}
.gp-header-wrap .gp-nav__list li:is(:hover, :focus-within) > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.gp-header-wrap .gp-nav__list .sub-menu .sub-menu {
	top: -10px;
	left: calc(100% + 10px);
}
.gp-header-wrap .gp-nav__list .sub-menu .sub-menu::before {
	top: 0;
	bottom: 0;
	left: -14px;
	width: 14px;
	height: auto;
}
.gp-header-wrap .gp-nav__list .sub-menu a {
	width: 100%;
	padding: 10px 12px 10px 26px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 500;
	background: none;
}
.gp-header-wrap .gp-nav__list .sub-menu a:hover,
.gp-header-wrap .gp-nav__list .sub-menu a:focus-visible,
.gp-header-wrap .gp-nav__list .sub-menu li:focus-within > a {
	background: var(--gp-lcd);
	color: var(--gp-lcd-ink);
}

/* ============ Acciones (teclas) ============ */
.gp-header-wrap .gp-actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding-bottom: var(--gp-press);
}
.gp-header-wrap .gp-key {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--gp-cap);
	color: var(--gp-ink);
	border: 2px solid var(--gp-ink);
	border-radius: var(--gp-radius);
	box-shadow: 0 var(--gp-press) 0 var(--gp-ink), inset 0 -3px 0 var(--gp-shell-edge);
	transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.gp-header-wrap .gp-key:hover,
.gp-header-wrap .gp-key:focus-visible,
.gp-header-wrap .gp-key[aria-expanded="true"] {
	background: var(--gp-lcd);
	color: var(--gp-lcd-ink);
	border-color: var(--gp-ink);
	transform: translateY(1px);
	box-shadow: 0 calc(var(--gp-press) - 1px) 0 var(--gp-ink), inset 0 -3px 0 rgba(31, 74, 18, .18);
}
.gp-header-wrap .gp-key:active {
	transform: translateY(var(--gp-press));
	box-shadow: 0 0 0 var(--gp-ink), inset 0 -1px 0 rgba(31, 74, 18, .18);
}
.gp-header-wrap .gp-key.gp-key--wide {
	width: auto;
	padding-inline: 16px;
	font-size: 14px;
	font-weight: 700;
}

/* Contador del carrito */
.gp-header-wrap .gp-cart-count {
	position: absolute;
	top: -9px;
	right: -9px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	background: var(--gp-red);
	color: #fff;
	border: 2px solid var(--gp-ink);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}
.gp-header-wrap .gp-cart-count.is-empty {
	display: none;
}
.gp-header-wrap .gp-cart-count.is-bump {
	animation: gp-bump .36s steps(3);
}

/* Botón destacado: tecla roja de la consola */
.gp-header-wrap .gp-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	background: var(--gp-red);
	color: #fff;
	border: 2px solid var(--gp-ink);
	border-radius: var(--gp-radius);
	box-shadow: 0 var(--gp-press) 0 var(--gp-ink), inset 0 -3px 0 rgba(0, 0, 0, .18);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.gp-header-wrap .gp-cta::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 6px;
	width: 7px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .7);
}
.gp-header-wrap .gp-cta:hover,
.gp-header-wrap .gp-cta:focus-visible {
	color: #fff;
	filter: brightness(1.06);
	transform: translateY(1px);
	box-shadow: 0 calc(var(--gp-press) - 1px) 0 var(--gp-ink), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.gp-header-wrap .gp-cta:active {
	transform: translateY(var(--gp-press));
	box-shadow: 0 0 0 var(--gp-ink), inset 0 -1px 0 rgba(0, 0, 0, .18);
}

/* ============ Buscador desplegable ============ */
.gp-header-wrap .gp-search {
	background: var(--gp-ink);
	padding-block: 16px;
	border-bottom: 3px solid var(--gp-ink);
}
.gp-header-wrap .gp-search:not([hidden]) {
	animation: gp-drop .2s steps(4);
}
.gp-header-wrap .gp-search .gp-search-form {
	max-width: 760px;
	margin-inline: auto;
}
.gp-header-wrap .gp-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 14px;
	background-color: var(--gp-lcd);
	background-image: repeating-linear-gradient(0deg, rgba(31, 74, 18, .06) 0 1px, transparent 1px 3px);
	border: 2px solid var(--gp-ink);
	border-radius: 10px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.gp-header-wrap .gp-search-form__prompt {
	font-weight: 800;
	font-size: 16px;
	color: var(--gp-lcd-ink);
	animation: gp-blink 1s steps(1) infinite;
}
.gp-header-wrap .gp-search-form__input,
.gp-header-wrap .gp-search-form__input:focus {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 4px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	color: var(--gp-lcd-ink);
	caret-color: var(--gp-lcd-ink);
	font-size: 16px; /* evita zoom en iOS */
	font-weight: 500;
}
.gp-header-wrap .gp-search-form__input::placeholder {
	color: rgba(31, 74, 18, .6);
	opacity: 1;
}
.gp-header-wrap .gp-search-form__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
.gp-header-wrap .gp-search-form:focus-within {
	outline: 3px solid rgba(165, 222, 117, .45);
	outline-offset: 2px;
}
.gp-header-wrap .gp-search-form__submit,
.gp-header-wrap .gp-search-form__submit:hover,
.gp-header-wrap .gp-search-form__submit:focus {
	flex: none;
	height: 40px;
	padding: 0 16px;
	background: var(--gp-ink);
	color: var(--gp-lcd);
	border: 0;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 700;
}
.gp-header-wrap .gp-search-form__submit:hover {
	color: #fff;
}

/* ============ Menú móvil (la consola) ============ */
.gp-header-wrap .gp-mobile-only { display: none; }

.gp-header-wrap .gp-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
}
.gp-header-wrap .gp-drawer[hidden] { display: none; }
.gp-header-wrap .gp-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(27, 29, 31, .6);
	animation: gp-fade .2s ease;
}
.gp-header-wrap .gp-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 92vw);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
	background: var(--gp-shell);
	border-left: 3px solid var(--gp-ink);
	border-radius: 22px 0 0 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: gp-slide .26s steps(6);
}
.gp-header-wrap .gp-drawer.is-closing .gp-drawer__panel {
	animation: gp-slide-out .18s steps(4) forwards;
}
.gp-header-wrap .gp-drawer.is-closing .gp-drawer__backdrop {
	animation: gp-fade-out .18s ease forwards;
}
.gp-header-wrap .gp-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.gp-header-wrap .gp-drawer__logo img {
	display: block;
	height: 44px;
	width: auto;
}
.gp-header-wrap .gp-drawer__close,
.gp-header-wrap .gp-drawer__close:hover,
.gp-header-wrap .gp-drawer__close:focus {
	width: 46px;
	height: 46px;
	flex: none;
	display: grid;
	place-items: center;
	background: var(--gp-red);
	color: #fff;
	border: 2px solid var(--gp-ink);
	border-radius: 50%;
	box-shadow: 0 var(--gp-press) 0 var(--gp-ink);
	transition: transform .08s ease, box-shadow .08s ease;
}
.gp-header-wrap .gp-drawer__close svg.gp-icon { width: 18px; height: 18px; }
.gp-header-wrap .gp-drawer__close:active {
	transform: translateY(var(--gp-press));
	box-shadow: 0 0 0 var(--gp-ink);
}

/* Pantalla con marco de consola (esquina inferior derecha más redonda) */
.gp-header-wrap .gp-screen {
	padding: 14px 14px 22px;
	background: var(--gp-bezel);
	border: 2px solid var(--gp-ink);
	border-radius: 12px 12px 40px 12px;
}
.gp-header-wrap .gp-mnav {
	padding: 8px;
	background-color: var(--gp-lcd);
	background-image: repeating-linear-gradient(0deg, rgba(31, 74, 18, .06) 0 1px, transparent 1px 3px);
	border-radius: 4px;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18), inset 0 6px 14px rgba(0, 0, 0, .12);
}
.gp-header-wrap .gp-mnav__list li {
	position: relative;
}
.gp-header-wrap .gp-mnav__list a {
	position: relative;
	display: block;
	padding: 13px 52px 13px 30px;
	border-radius: 4px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--gp-lcd-ink);
}
.gp-header-wrap .gp-mnav__list a::before {
	left: 11px;
}
.gp-header-wrap .gp-mnav__list a:hover,
.gp-header-wrap .gp-mnav__list a:focus-visible {
	background: rgba(31, 74, 18, .1);
	color: var(--gp-lcd-ink);
}
.gp-header-wrap .gp-mnav__list :is(.current-menu-item, .current_page_item) > a {
	font-weight: 800;
}
.gp-header-wrap .gp-mnav__list > li + li {
	border-top: 2px dashed rgba(31, 74, 18, .22);
}
.gp-header-wrap .gp-sub-toggle,
.gp-header-wrap .gp-sub-toggle:hover,
.gp-header-wrap .gp-sub-toggle:focus {
	position: absolute;
	top: 5px;
	right: 4px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	background: transparent;
	color: var(--gp-lcd-ink);
	border: 0;
	border-radius: 6px;
}
.gp-header-wrap .gp-sub-toggle:hover { background: rgba(31, 74, 18, .12); }
.gp-header-wrap .gp-sub-toggle::after { width: 14px; height: 8px; }
.gp-header-wrap .gp-sub-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.gp-header-wrap .gp-mnav__list .sub-menu {
	display: none;
	margin: 0 0 8px 20px;
	padding-left: 6px;
	border-left: 2px dashed rgba(31, 74, 18, .35);
}
.gp-header-wrap .gp-mnav__list .is-open > .sub-menu {
	display: block;
	animation: gp-drop .18s steps(3);
}
.gp-header-wrap .gp-mnav__list .sub-menu a {
	padding-block: 10px;
	font-size: 15px;
}

.gp-header-wrap .gp-drawer__foot {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto;
}
.gp-header-wrap .gp-drawer__row {
	display: flex;
	gap: 10px;
	padding-bottom: var(--gp-press);
}
.gp-header-wrap .gp-drawer__row .gp-cta {
	flex: 1 1 auto;
	height: 50px;
	font-size: 16px;
}

/* Decoración: cruceta y botones A/B */
.gp-header-wrap .gp-drawer__pad {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px 0;
	opacity: .9;
}
.gp-header-wrap .gp-dpad {
	width: 54px;
	height: 54px;
	background:
		linear-gradient(var(--gp-bezel), var(--gp-bezel)) center / 18px 100% no-repeat,
		linear-gradient(var(--gp-bezel), var(--gp-bezel)) center / 100% 18px no-repeat;
	filter: drop-shadow(0 3px 0 var(--gp-ink));
}
.gp-header-wrap .gp-ab {
	display: flex;
	gap: 12px;
	transform: rotate(-22deg);
}
.gp-header-wrap .gp-ab i {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--gp-red);
	border: 2px solid var(--gp-ink);
	box-shadow: 0 3px 0 var(--gp-ink), inset 4px 4px 0 -1px rgba(255, 255, 255, .45);
}
.gp-header-wrap .gp-ab i:first-child { margin-top: 14px; }

/* ============ Estado al hacer scroll ============ */
.gp-header-wrap.is-scrolled .gp-topbar {
	grid-template-rows: 0fr;
}
.gp-header-wrap.is-scrolled .gp-bar {
	background: color-mix(in srgb, var(--gp-shell) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
}
.gp-header-wrap.is-scrolled {
	--gp-bar-py: 10px;
}
.gp-header-wrap.is-scrolled .gp-logo img {
	height: var(--gp-logo-h-sm);
}

/* ============ Responsive ============ */
@media (max-width: 1279px) {
	.gp-header-wrap { --gp-logo-h: 56px; }
	.gp-header-wrap .gp-nav__list a { padding: 9px 8px 9px 20px; font-size: 14px; }
	.gp-header-wrap .gp-nav__list a::before { left: 7px; }
	.gp-header-wrap .gp-nav__list > :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { background-position: 20px calc(100% - 4px); }
	.gp-header-wrap .gp-cta { padding-inline: 16px; font-size: 14px; }
}

/* Menú largo: el JS aplica .is-wide, luego .is-tight y, si aún no cabe, .is-wrap (dos líneas).
   En escritorio el menú nunca se esconde. */
.gp-header-wrap.is-wide { --gp-max: 1760px; }
.gp-header-wrap.is-tight { --gp-logo-h: 52px; }
.gp-header-wrap.is-tight .gp-bar__inner { gap: 14px; }
.gp-header-wrap.is-tight .gp-nav__list { gap: 0; }
.gp-header-wrap.is-tight .gp-nav__list > li > a { padding: 8px 6px 8px 17px; font-size: 13px; }
.gp-header-wrap.is-tight .gp-nav__list > li > a::before { left: 5px; transform: scale(.85); }
.gp-header-wrap.is-tight .gp-nav__list > :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { background-position: 17px calc(100% - 4px); }
.gp-header-wrap.is-tight .gp-actions { gap: 8px; }
.gp-header-wrap.is-tight .gp-cta { padding-inline: 14px; font-size: 13px; }
.gp-header-wrap.is-wrap .gp-nav__list { flex-wrap: wrap; row-gap: 0; }
.gp-header-wrap.is-wrap .gp-nav__list > li > a { padding-block: 6px; }

/* Botón hamburguesa */
.gp-header-wrap .gp-burger,
.gp-header-wrap .gp-burger:hover {
	background: var(--gp-ink);
	color: var(--gp-lcd);
	box-shadow: 0 var(--gp-press) 0 var(--gp-ink), inset 0 -3px 0 rgba(255, 255, 255, .12);
}
.gp-header-wrap .gp-burger:hover { color: #fff; }

/* Cambio a menú móvil según el punto elegido */
@media (max-width: 1024px) {
	.gp-header-wrap {
		--gp-logo-h: 50px;
		--gp-logo-h-sm: 42px;
		--gp-bar-py: 12px;
	}
	.gp-header-wrap.gp-bp-1024 :is(.gp-nav, .gp-desktop-only) { display: none; }
	.gp-header-wrap.gp-bp-1024 .gp-mobile-only { display: inline-flex; }
}
@media (max-width: 767px) {
	.gp-header-wrap.gp-bp-767 :is(.gp-nav, .gp-desktop-only) { display: none; }
	.gp-header-wrap.gp-bp-767 .gp-mobile-only { display: inline-flex; }
}

@media (max-width: 480px) {
	.gp-header-wrap {
		--gp-logo-h: 42px;
		--gp-logo-h-sm: 36px;
		--gp-press: 3px;
		--gp-radius: 10px;
	}
	.gp-header-wrap .gp-actions { gap: 8px; }
	.gp-header-wrap .gp-key { width: 40px; height: 40px; }
	.gp-header-wrap svg.gp-icon { width: 20px; height: 20px; }
	.gp-header-wrap .gp-topbar__text { font-size: 11.5px; padding-block: 7px; }
	.gp-header-wrap .gp-cart-count { top: -8px; right: -8px; }
}

@media (max-width: 360px) {
	.gp-header-wrap { --gp-logo-h: 36px; --gp-logo-h-sm: 32px; }
	.gp-header-wrap .gp-actions { gap: 6px; }
	.gp-header-wrap .gp-key { width: 38px; height: 38px; }
}

/* Bloqueo de scroll con el menú abierto */
html.gp-lock,
html.gp-lock body {
	overflow: hidden;
}

/* ============ Animaciones ============ */
@keyframes gp-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}
@keyframes gp-drop {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
@keyframes gp-slide {
	from { transform: translateX(100%); }
	to { transform: none; }
}
@keyframes gp-slide-out {
	from { transform: none; }
	to { transform: translateX(100%); }
}
@keyframes gp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes gp-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}
@keyframes gp-bump {
	0% { transform: scale(1); }
	50% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.gp-header-wrap *,
	.gp-header-wrap *::before,
	.gp-header-wrap *::after {
		animation: none !important;
		transition: none !important;
	}
}
