/* ==========================================================================
   MG VISUAL SPORT PRO — base, header, menú, buscador, carrito, footer
   ========================================================================== */
:root {
	--g: #8dff00;
	--g-2: #b8ff4d;
	--g-d: #5cb800;
	--g-a: rgba(141, 255, 0, .14);
	--bk: #050605;
	--bk-1: #090b09;
	--bk-2: #0f120f;
	--bk-3: #171b17;
	--tx: #f2f5ef;
	--mu: rgba(242, 245, 239, .64);
	--mu-2: rgba(242, 245, 239, .42);
	--ln: rgba(255, 255, 255, .09);
	--ln-2: rgba(255, 255, 255, .16);
	--ln-g: rgba(141, 255, 0, .32);
	--r: 18px;
	--r-lg: 30px;
	--fd: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--fb: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.76, 0, .24, 1);
	--hh: 84px;
	--glow: 0 0 0 1px rgba(141, 255, 0, .45), 0 10px 40px rgba(141, 255, 0, .28);
}

/* ---------- Reset sobre Astra ---------- */
html { scroll-behavior: smooth; }
html body.mgx,
body.mgx #page,
body.mgx .site,
body.mgx .site-content,
body.mgx .ast-separate-container,
body.mgx.ast-separate-container,
body.mgx .ast-plain-container,
body.mgx.ast-plain-container {
	background: var(--bk) !important;
	color: var(--tx);
}
body.mgx {
	font-family: var(--fb);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
}
body.mgx::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(900px 600px at 0% 0%, rgba(141, 255, 0, .07), transparent 60%),
		radial-gradient(800px 600px at 100% 100%, rgba(141, 255, 0, .05), transparent 60%);
}
body.mgx ::selection { background: var(--g); color: #000; }
body.mgx a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
body.mgx a:focus-visible,
body.mgx button:focus-visible,
body.mgx input:focus-visible,
body.mgx textarea:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
body.mgx *, body.mgx *::before, body.mgx *::after { box-sizing: border-box; }
body.mgx img { max-width: 100%; }
body.mgx #page { overflow-x: clip; }
body.mgx h1, body.mgx h2, body.mgx h3, body.mgx h4, body.mgx h5, body.mgx h6 {
	font-family: var(--fd);
	color: var(--tx);
	letter-spacing: -.005em;
}
body.mgx .entry-content p, body.mgx p { color: inherit; }

/* Contenedor a ancho completo en las páginas del tema */
body.mgx-full .site-content > .ast-container,
body.mgx-full #primary,
body.mgx-full .site-main { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
body.mgx-full #content { padding: 0 !important; }
body.mgx:not(.mgx-full):not(.mgx-has-hero) #content { padding-top: calc(var(--hh) + 30px); }
body.mgx #content { position: relative; z-index: 1; }

/* Ocultar piezas del header/footer de Astra que siguen saliendo por wp_footer */
body.mgx #ast-mobile-popup-wrapper,
body.mgx .ast-mobile-popup-drawer,
body.mgx .astra-cart-drawer,
body.mgx .astra-mobile-cart-overlay,
body.mgx #ast-scroll-top,
body.mgx #masthead,
body.mgx .site-footer:not(.mgx-footer) { display: none !important; }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Utilidades ---------- */
.mgx-container { width: min(1320px, 92vw); margin-inline: auto; position: relative; }
.mgx-section { position: relative; padding: clamp(72px, 9vw, 136px) 0; }
.mgx-center { display: flex; justify-content: center; margin-top: 48px; }
.mgx-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mgx-row--center { justify-content: center; }
.mgx-ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.mgx-ico svg { width: 100%; height: 100%; }

.mgx-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--fd);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--g);
}
.mgx-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 12px var(--g); }
.mgx-kicker--live::before { display: none; }
.mgx-kicker--live i,
.mgx-dot-live {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--g);
	box-shadow: 0 0 0 0 rgba(141, 255, 0, .7);
	animation: mgxPulse 1.8s infinite;
	display: inline-block;
	flex: none;
}
@keyframes mgxPulse { 0% { box-shadow: 0 0 0 0 rgba(141,255,0,.7); } 70% { box-shadow: 0 0 0 12px rgba(141,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(141,255,0,0); } }

.mgx-h2, .mgx-h3, .mgx-display {
	font-family: var(--fd) !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	line-height: .9 !important;
	margin: 14px 0 22px !important;
	color: var(--tx);
}
.mgx-h2 { font-size: clamp(42px, 5.4vw, 80px) !important; }
.mgx-h2--xl { font-size: clamp(48px, 6.6vw, 104px) !important; }
.mgx-h3 { font-size: clamp(28px, 3vw, 40px) !important; margin: 0 !important; }
.mgx-display { font-size: clamp(60px, 10.5vw, 168px) !important; letter-spacing: -.01em; }
.mgx-display--md { font-size: clamp(50px, 7.6vw, 120px) !important; }
.mgx-display--sm { font-size: clamp(44px, 6vw, 88px) !important; }
.mgx-h2 em, .mgx-h3 em, .mgx-display em, .mgx-hero__title em {
	font-style: italic;
	color: var(--g);
	text-shadow: 0 0 40px rgba(141, 255, 0, .35);
	padding-right: .06em;
}
.mgx-h2 > span:not(.mgx-w), .mgx-display > span:not(.mgx-w) { display: block; }

.mgx-lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--mu); max-width: 60ch; margin: 0 0 22px; }
.mgx-lead b { color: var(--tx); }
.mgx-lead--xl { font-size: clamp(22px, 2vw, 30px); line-height: 1.35; color: var(--tx); font-weight: 500; }
.mgx-lead a { color: var(--g); border-bottom: 1px solid var(--ln-g); }

.mgx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.mgx-head__aside { max-width: 440px; margin: 0 0 22px; }
.mgx-head--tight { margin-bottom: 24px; align-items: center; }

.mgx-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--g) !important; }
.mgx-link:hover .mgx-ico { transform: translate(3px, -3px); }
.mgx-link .mgx-ico { transition: transform .3s var(--ease); }

/* ---------- Botones ---------- */
.mgx-btn {
	--bh: 56px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--bh);
	padding: 0 28px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--fd);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .07em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.mgx-btn .mgx-ico { transition: transform .35s var(--ease); }
.mgx-btn:hover .mgx-ico--arrow { transform: translate(3px, -3px) rotate(0deg); }
.mgx-btn:hover .mgx-ico--right { transform: translateX(4px); }
.mgx-btn:hover .mgx-ico--down { transform: translateY(3px); }
.mgx-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .7s var(--ease);
}
.mgx-btn:hover::after { transform: translateX(120%); }
.mgx-btn:hover { transform: translateY(-3px); }
.mgx-btn--green { background: var(--g); color: #061003 !important; box-shadow: 0 10px 30px rgba(141, 255, 0, .22); }
.mgx-btn--green:hover { box-shadow: var(--glow); background: var(--g-2); }
.mgx-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: var(--tx) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mgx-btn--ghost:hover { border-color: var(--g); color: var(--g) !important; }
.mgx-btn--line { background: transparent; border-color: var(--ln-g); color: var(--tx) !important; }
.mgx-btn--line:hover { border-color: var(--g); background: var(--g-a); }
.mgx-btn--sm { --bh: 46px; padding: 0 20px; font-size: 15px; }
.mgx-btn--block { width: 100%; }

.mgx-icon-btn {
	position: relative;
	width: 46px; height: 46px;
	display: inline-grid; place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--ln-2);
	color: var(--tx);
	cursor: pointer;
	transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
	padding: 0;
}
.mgx-icon-btn .mgx-ico { width: 20px; height: 20px; }
.mgx-icon-btn:hover { border-color: var(--g); color: var(--g); transform: translateY(-2px); }

.mgx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mgx-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--ln-2);
	background: rgba(255, 255, 255, .04);
	font-family: var(--fd); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
	color: var(--tx) !important;
	cursor: pointer;
	transition: all .3s var(--ease);
}
.mgx-chip small { color: var(--g); font-size: 13px; }
.mgx-chip:hover, .mgx-chip.is-active { border-color: var(--g); background: var(--g); color: #061003 !important; }
.mgx-chip:hover small, .mgx-chip.is-active small { color: #061003; }

/* ---------- Animaciones de entrada ---------- */
.mgx-js [data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.mgx-js [data-reveal].is-in { opacity: 1; transform: none; }
.mgx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .08em; margin: -.04em -.02em -.08em; }
.mgx-w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0s)); }
.is-in .mgx-w > span, .mgx-w.is-in > span { transform: none; }

/* ---------- Barra de progreso ---------- */
.mgx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1002; pointer-events: none; }
.mgx-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--g-d), var(--g)); box-shadow: 0 0 14px var(--g); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.mgx-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1001;
	height: var(--hh);
	transition: transform .5s var(--ease), background .4s, border-color .4s, height .4s var(--ease);
	border-bottom: 1px solid transparent;
}
.admin-bar .mgx-header { top: 32px; }
.mgx-header.is-scrolled {
	--hh: 72px;
	background: rgba(5, 6, 5, .74);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--ln);
}
.mgx-header.is-hidden { transform: translateY(-110%); }
body.mgx-menu-open .mgx-header { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mgx-header__inner { height: 100%; width: min(1440px, 94vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.mgx-logo { display: inline-flex; align-items: center; flex: none; }
.mgx-logo__img { height: 58px; width: auto; object-fit: contain; transition: height .4s var(--ease), filter .4s; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.mgx-header.is-scrolled .mgx-logo__img { height: 48px; }
.mgx-logo:hover .mgx-logo__img { filter: drop-shadow(0 0 18px rgba(141, 255, 0, .45)); }
.mgx-logo__word { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); text-transform: uppercase; line-height: .85; color: var(--tx); }
.mgx-logo__word b { font-size: 40px; font-weight: 900; font-style: italic; color: var(--g); letter-spacing: -.02em; }
.mgx-logo__word span { font-size: 15px; font-weight: 800; letter-spacing: .12em; }

.mgx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.mgx-nav li { position: relative; }
.mgx-nav > ul > li > a {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 12px 16px;
	font-family: var(--fd); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--tx);
}
.mgx-nav > ul > li > a .mgx-ico { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.mgx-nav > ul > li > a::after {
	content: "";
	position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
	background: var(--g); box-shadow: 0 0 10px var(--g);
	transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.mgx-nav > ul > li > a:hover, .mgx-nav > ul > li > a.is-current { color: var(--g); }
.mgx-nav > ul > li > a:hover::after, .mgx-nav > ul > li > a.is-current::after { transform: scaleX(1); transform-origin: left; }
.mgx-nav .has-mega:hover > a .mgx-ico, .mgx-nav .has-mega:focus-within > a .mgx-ico { transform: rotate(180deg); }

.mgx-mega {
	position: absolute; top: calc(100% + 14px); left: 50%;
	width: min(760px, 80vw);
	padding: 22px;
	border-radius: var(--r-lg);
	background: rgba(9, 11, 9, .92);
	backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
	border: 1px solid var(--ln-g);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(141, 255, 0, .08);
	opacity: 0; visibility: hidden;
	transform: translate(-50%, 14px) scale(.98);
	transition: all .45s var(--ease);
}
.mgx-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega:hover .mgx-mega, .has-mega:focus-within .mgx-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mgx-mega__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mgx-mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mgx-mega__card { display: block; color: var(--tx) !important; }
.mgx-mega__img { display: block; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--ln); }
.mgx-mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.8); }
.mgx-mega__card:hover img { transform: scale(1.08); filter: saturate(1.1); }
.mgx-mega__card strong { display: block; font-family: var(--fd); font-size: 16px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.mgx-mega__card small { color: var(--g); font-size: 13px; font-weight: 600; }
.mgx-mega__card:hover strong { color: var(--g); }

.mgx-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mgx-cart-count {
	position: absolute; top: -4px; right: -4px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px;
	background: var(--bk-3); color: var(--mu);
	border: 1px solid var(--ln-2);
	font: 800 11px/18px var(--fb);
	text-align: center;
	transition: transform .4s var(--ease), background .3s;
}
.mgx-cart-count.has-items { background: var(--g); color: #061003; border-color: var(--g); box-shadow: 0 0 14px rgba(141, 255, 0, .6); }
.mgx-cart-count.is-bump { animation: mgxBump .6s var(--ease); }
@keyframes mgxBump { 0% { transform: scale(1); } 35% { transform: scale(1.7); } 100% { transform: scale(1); } }

.mgx-burger {
	display: inline-flex; align-items: center; gap: 12px;
	height: 46px; padding: 0 8px 0 20px;
	border-radius: 999px;
	background: var(--g); color: #061003;
	border: 0; cursor: pointer;
	font-family: var(--fd); font-weight: 800; font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
	transition: transform .35s var(--ease), box-shadow .35s;
}
.mgx-burger:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.mgx-burger__lines { width: 32px; height: 32px; border-radius: 50%; background: #061003; display: grid; place-content: center; gap: 4px; }
.mgx-burger__lines i { display: block; width: 14px; height: 2px; background: var(--g); border-radius: 2px; transition: transform .45s var(--ease), opacity .3s, width .3s; }
.mgx-burger__lines i:nth-child(2) { width: 9px; margin-left: 5px; }
.mgx-burger:hover .mgx-burger__lines i:nth-child(2) { width: 14px; margin-left: 0; }
.mgx-burger[aria-expanded="true"] .mgx-burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mgx-burger[aria-expanded="true"] .mgx-burger__lines i:nth-child(2) { opacity: 0; }
.mgx-burger[aria-expanded="true"] .mgx-burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Menú a pantalla completa ---------- */
.mgx-menu {
	position: fixed; inset: 0; z-index: 1000;
	visibility: hidden;
	pointer-events: none;
	color: var(--tx);
	overflow: hidden;
}
.mgx-menu.is-open { visibility: visible; pointer-events: auto; }
.mgx-menu__curtain { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.mgx-menu__curtain span { background: var(--bk-1); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-io); }
.mgx-menu__curtain span:nth-child(1) { transition-delay: 0s; background: #060806; }
.mgx-menu__curtain span:nth-child(2) { transition-delay: .06s; }
.mgx-menu__curtain span:nth-child(3) { transition-delay: .12s; background: #060806; }
.mgx-menu__curtain span:nth-child(4) { transition-delay: .18s; }
.mgx-menu.is-open .mgx-menu__curtain span { transform: scaleY(1); }
.mgx-menu.is-closing .mgx-menu__curtain span { transform-origin: bottom; transform: scaleY(0); transition-delay: calc(.25s + var(--cd, 0s)); }
.mgx-menu__curtain span:nth-child(2) { --cd: .05s; } .mgx-menu__curtain span:nth-child(3) { --cd: .1s; } .mgx-menu__curtain span:nth-child(4) { --cd: .15s; }

.mgx-menu__photos { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease) .4s; }
.mgx-menu.is-open .mgx-menu__photos { opacity: 1; }
.mgx-menu.is-closing .mgx-menu__photos { opacity: 0; transition-delay: 0s; transition-duration: .3s; }
.mgx-menu__photo {
	position: absolute; inset: 0 0 0 38%;
	background-size: cover; background-position: center 30%;
	opacity: 0; transform: scale(1.12);
	filter: grayscale(1) contrast(1.15) brightness(.55);
	transition: opacity .8s var(--ease), transform 1.4s var(--ease);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
	mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.mgx-menu__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(141, 255, 0, .22), rgba(141, 255, 0, .04)); mix-blend-mode: color; }
.mgx-menu__photo.is-on { opacity: .75; transform: scale(1); }

.mgx-menu__pitch { position: absolute; inset: 6vh 3vw; width: 94vw; height: 88vh; fill: none; stroke: rgba(141, 255, 0, .14); stroke-width: 1.5; }
.mgx-menu__pitch * { stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2s var(--ease) .45s; }
.mgx-menu.is-open .mgx-menu__pitch * { stroke-dashoffset: 0; }

.mgx-menu__inner {
	position: relative; z-index: 2;
	height: 100%;
	width: min(1440px, 94vw); margin-inline: auto;
	display: grid; grid-template-columns: 1.6fr 1fr; gap: 6vw;
	align-items: center;
	padding: calc(var(--hh) + 20px) 0 90px;
	overflow-y: auto;
}
.mgx-menu__links { display: flex; flex-direction: column; }
.mgx-menu__links a {
	position: relative;
	display: flex; align-items: center; gap: 22px;
	padding: 2px 0;
	color: var(--tx) !important;
	overflow: hidden;
}
.mgx-menu__num { font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--g); letter-spacing: .1em; width: 26px; opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 70ms + .45s); }
.mgx-menu__txt {
	position: relative;
	display: inline-block;
	font-family: var(--fd); font-weight: 900; font-style: italic; text-transform: uppercase;
	font-size: clamp(54px, 8.6vh, 118px); line-height: .98; letter-spacing: -.01em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(242, 245, 239, .85);
	transform: translateY(110%) skewY(6deg);
	transition: transform .9s var(--ease), color .35s;
	transition-delay: calc(var(--i) * 70ms + .4s), 0s;
}
.mgx-menu__txt::after {
	content: attr(data-text);
	position: absolute; left: 0; top: 0;
	color: var(--g); -webkit-text-stroke: 0;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .55s var(--ease);
}
.mgx-menu__links a .mgx-ico { width: clamp(28px, 4vh, 48px); height: clamp(28px, 4vh, 48px); color: var(--g); opacity: 0; transform: translate(-20px, 20px); transition: all .45s var(--ease); }
.mgx-menu__links a:hover .mgx-menu__txt::after, .mgx-menu__links a.is-current .mgx-menu__txt::after { clip-path: inset(0 0 0 0); }
.mgx-menu__links a:hover .mgx-ico { opacity: 1; transform: none; }
.mgx-menu.is-open .mgx-menu__txt { transform: none; }
.mgx-menu.is-open .mgx-menu__num { opacity: 1; transform: none; }
.mgx-menu.is-closing .mgx-menu__txt { transform: translateY(-110%) skewY(-4deg); transition-delay: calc(var(--i) * 30ms); transition-duration: .45s; }
.mgx-menu.is-closing .mgx-menu__num { opacity: 0; transition-delay: 0s; }

.mgx-menu__side { display: grid; gap: 34px; opacity: 0; transform: translateY(30px); transition: all .8s var(--ease) .75s; }
.mgx-menu.is-open .mgx-menu__side { opacity: 1; transform: none; }
.mgx-menu.is-closing .mgx-menu__side { opacity: 0; transition-delay: 0s; transition-duration: .3s; }
.mgx-menu__search {
	display: flex; align-items: center; gap: 14px;
	width: 100%; padding: 20px 24px;
	border-radius: 20px;
	background: var(--g); color: #061003;
	border: 0; cursor: pointer;
	font-family: var(--fd); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .05em;
	transition: transform .35s var(--ease), box-shadow .35s;
}
.mgx-menu__search .mgx-ico { width: 24px; height: 24px; }
.mgx-menu__search:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.mgx-menu__block ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ln); }
.mgx-menu__block li a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--ln); font-family: var(--fd); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; transition: padding .35s var(--ease), color .3s; }
.mgx-menu__block li a small { font-size: 13px; color: var(--mu-2); font-family: var(--fb); }
.mgx-menu__block li a:hover { color: var(--g); padding-left: 10px; }
.mgx-menu__contact { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; color: var(--mu) !important; }
.mgx-menu__contact .mgx-ico { color: var(--g); width: 20px; height: 20px; }
.mgx-menu__contact:hover { color: var(--tx) !important; }
.mgx-menu__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 3vw; display: flex; justify-content: space-between; font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--mu-2); border-top: 1px solid var(--ln); opacity: 0; transition: opacity .6s .9s; }
.mgx-menu.is-open .mgx-menu__foot { opacity: 1; }
.mgx-menu.is-closing .mgx-menu__foot { opacity: 0; transition-delay: 0s; }
body.mgx-menu-open { overflow: hidden; }

/* ---------- Buscador ---------- */
.mgx-searchbox {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	height: 72px;
	padding: 0 8px 0 24px;
	border-radius: 999px;
	background: rgba(10, 12, 10, .62);
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
	transition: border-color .3s, box-shadow .3s;
	margin: 0;
}
.mgx-searchbox:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px rgba(141, 255, 0, .14), 0 30px 60px rgba(0, 0, 0, .45); }
.mgx-searchbox > .mgx-ico { width: 24px; height: 24px; color: var(--g); }
body.mgx .mgx-searchbox input[type="search"] {
	flex: 1; min-width: 0;
	height: 100%;
	background: transparent !important;
	border: 0 !important; box-shadow: none !important; outline: 0 !important;
	color: var(--tx) !important;
	font-family: var(--fb); font-size: 18px; font-weight: 500;
	padding: 0 !important;
}
.mgx-searchbox input::placeholder { color: var(--mu-2); }
.mgx-searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.mgx-searchbox .mgx-btn { --bh: 56px; }
.mgx-searchbox--xl { height: 84px; }
body.mgx .mgx-searchbox--xl input[type="search"] { font-size: clamp(20px, 2.4vw, 28px); font-family: var(--fd); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.mgx-hint { margin: 12px 0 0 26px; font-size: 14px; color: var(--mu-2); }

.mgx-results {
	position: absolute; left: 0; right: 0; top: calc(100% + 10px);
	z-index: 30;
	max-height: min(480px, 60vh); overflow-y: auto;
	padding: 10px;
	border-radius: 24px;
	background: #0a0c0a;
	border: 1px solid var(--ln-g);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .65);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: all .35s var(--ease);
	text-align: left;
}
.mgx-results.is-open { opacity: 1; visibility: visible; transform: none; }
.mgx-results__label { display: block; padding: 10px 12px 6px; font-family: var(--fd); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--g); }
.mgx-results__item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 14px; color: var(--tx) !important; transition: background .25s; }
.mgx-results__item:hover, .mgx-results__item.is-focus { background: rgba(141, 255, 0, .1); }
.mgx-results__item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bk-3); }
.mgx-results__item b { display: block; font-family: var(--fd); font-size: 18px; text-transform: uppercase; line-height: 1.05; }
.mgx-results__item small { color: var(--mu); font-size: 13px; }
.mgx-results__item mark { background: none; color: var(--g); }
.mgx-results__all { display: block; margin-top: 6px; padding: 12px; text-align: center; border-radius: 14px; background: var(--g-a); color: var(--g) !important; font-family: var(--fd); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mgx-results__empty, .mgx-results__loading { padding: 18px; color: var(--mu); text-align: center; }
.mgx-results__loading::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; border: 2px solid var(--ln-g); border-top-color: var(--g); animation: mgxSpin .8s linear infinite; }
@keyframes mgxSpin { to { transform: rotate(360deg); } }

.mgx-search {
	position: fixed; inset: 0; z-index: 1003;
	display: grid; place-items: start center;
	padding: 16vh 4vw 4vh;
	background: rgba(4, 5, 4, .9);
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	opacity: 0; visibility: hidden;
	transition: opacity .45s var(--ease), visibility .45s;
}
.mgx-search.is-open { opacity: 1; visibility: visible; }
.mgx-search__inner { width: min(900px, 100%); transform: translateY(30px); transition: transform .6s var(--ease); }
.mgx-search.is-open .mgx-search__inner { transform: none; }
.mgx-search .mgx-kicker { margin-bottom: 18px; }
.mgx-search .mgx-chips { margin-top: 30px; }
.mgx-search__close { position: absolute; top: 26px; right: 3vw; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--ln-2); color: var(--tx); cursor: pointer; transition: transform .45s var(--ease), border-color .3s, color .3s; }
.mgx-search__close .mgx-ico { width: 24px; height: 24px; }
.mgx-search__close:hover { transform: rotate(90deg); border-color: var(--g); color: var(--g); }

/* ---------- Carrito lateral ---------- */
.mgx-drawer { position: fixed; inset: 0; z-index: 1004; visibility: hidden; }
.mgx-drawer.is-open { visibility: visible; }
.mgx-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.mgx-drawer.is-open .mgx-drawer__scrim { opacity: 1; }
.mgx-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(460px, 94vw);
	display: flex; flex-direction: column;
	background: linear-gradient(180deg, #0c0f0c, #070807);
	border-left: 1px solid var(--ln-g);
	box-shadow: -40px 0 80px rgba(0, 0, 0, .5);
	transform: translateX(105%);
	transition: transform .6s var(--ease);
}
.mgx-drawer.is-open .mgx-drawer__panel { transform: none; }
.mgx-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 26px 26px 20px; border-bottom: 1px solid var(--ln); }
.mgx-drawer__head h3 { margin: 4px 0 0; font-size: 38px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; }
.mgx-minicart-inner { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mgx-minicart-inner .woocommerce-mini-cart { list-style: none; margin: 0 !important; padding: 10px 26px !important; flex: 1; overflow-y: auto; }
.mgx-minicart-inner .woocommerce-mini-cart-item {
	position: relative;
	display: grid !important; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: center;
	padding: 16px 30px 16px 0 !important;
	border-bottom: 1px solid var(--ln);
	animation: mgxIn .5s var(--ease) both;
}
@keyframes mgxIn { from { opacity: 0; transform: translateX(20px); } }
.mgx-minicart-inner .woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-family: var(--fd); font-weight: 700; font-size: 17px; line-height: 1.1; text-transform: uppercase; color: var(--tx) !important; }
.mgx-minicart-inner .woocommerce-mini-cart-item img { grid-row: span 2; width: 76px !important; height: 76px !important; object-fit: cover; border-radius: 12px; margin: 0 !important; border: 1px solid var(--ln); float: none !important; }
.mgx-minicart-inner .woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--g); font-weight: 700; font-size: 15px; }
.mgx-minicart-inner .woocommerce-mini-cart-item .remove {
	position: absolute !important; top: 50% !important; right: 0; left: auto !important; transform: translateY(-50%);
	width: 26px !important; height: 26px !important; line-height: 24px !important;
	border-radius: 50%; border: 1px solid var(--ln-2) !important;
	color: var(--mu) !important; background: transparent !important; text-align: center; font-size: 16px !important;
}
.mgx-minicart-inner .woocommerce-mini-cart-item .remove:hover { border-color: #ff5d5d !important; color: #ff5d5d !important; }
.mgx-minicart-inner .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 !important; padding: 20px 26px !important; border-top: 1px solid var(--ln); font-family: var(--fd); text-transform: uppercase; letter-spacing: .06em; font-size: 18px; color: var(--mu); }
.mgx-minicart-inner .woocommerce-mini-cart__total .amount { font-size: 32px; font-weight: 900; color: var(--tx); }
.mgx-minicart-inner .woocommerce-mini-cart__buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 !important; padding: 0 26px 26px !important; }
.mgx-minicart-inner .woocommerce-mini-cart__buttons .button { display: inline-flex !important; align-items: center; justify-content: center; height: 54px; margin: 0 !important; border-radius: 999px !important; font-family: var(--fd) !important; font-weight: 800 !important; font-size: 16px !important; letter-spacing: .07em; text-transform: uppercase; background: transparent !important; border: 1px solid var(--ln-g) !important; color: var(--tx) !important; padding: 0 12px !important; }
.mgx-minicart-inner .woocommerce-mini-cart__buttons .button.checkout { background: var(--g) !important; border-color: var(--g) !important; color: #061003 !important; }
.mgx-minicart-inner .woocommerce-mini-cart__buttons .button:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.mgx-minicart-inner .woocommerce-mini-cart__empty-message { margin: auto; padding: 60px 26px; text-align: center; color: var(--mu); font-family: var(--fd); font-size: 24px; text-transform: uppercase; }
.mgx-minicart-inner .woocommerce-mini-cart__empty-message::before { content: "⚽"; display: block; font-size: 54px; margin-bottom: 14px; filter: grayscale(1); animation: mgxBounce 1.8s var(--ease) infinite; }
@keyframes mgxBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Animación "foto volando al carrito" */
.mgx-fly { position: fixed; z-index: 1010; width: 90px; height: 90px; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 0 0 2px var(--g), 0 20px 40px rgba(0,0,0,.5); transition: transform .85s var(--ease-io), opacity .85s; }

/* ---------- Toast ---------- */
.mgx-toast {
	position: fixed; left: 50%; bottom: 26px; z-index: 1006;
	display: flex; align-items: center; gap: 14px;
	padding: 12px 12px 12px 20px;
	border-radius: 999px;
	background: rgba(12, 15, 12, .94);
	border: 1px solid var(--ln-g);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 30px rgba(141, 255, 0, .12);
	backdrop-filter: blur(14px);
	color: var(--tx);
	font-weight: 600;
	transform: translate(-50%, calc(100% + 60px));
	visibility: hidden;
	transition: transform .6s var(--ease), visibility .6s;
	max-width: 92vw;
}
.mgx-toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.mgx-toast__ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #061003; font-weight: 900; flex: none; }
.mgx-toast .mgx-btn { --bh: 42px; padding: 0 18px; font-size: 14px; }

/* ==========================================================================
   MARQUESINAS
   ========================================================================== */
.mgx-ticker { position: relative; z-index: 2; overflow: hidden; background: var(--g); color: #061003; padding: 16px 0; transform: rotate(-1.6deg) scale(1.03); margin: -12px 0; box-shadow: 0 20px 60px rgba(141, 255, 0, .18); }
.mgx-ticker--green { background: var(--bk-1); color: var(--g); border-block: 1px solid var(--ln-g); box-shadow: none; transform: rotate(1.2deg) scale(1.03); }
.mgx-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: mgxMarquee 32s linear infinite; }
.mgx-marquee__track span { font-family: var(--fd); font-weight: 900; font-style: italic; font-size: clamp(30px, 3.6vw, 52px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.mgx-marquee__track i { font-style: normal; font-size: clamp(22px, 2.4vw, 34px); }
.mgx-ticker:hover .mgx-marquee__track { animation-play-state: paused; }
@keyframes mgxMarquee { to { transform: translateX(-33.333%); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mgx-footer { position: relative; overflow: hidden; background: #030403; border-top: 1px solid var(--ln-g); padding: 0 0 26px; isolation: isolate; }
.mgx-footer__marquee { padding: 40px 0 10px; overflow: hidden; border-bottom: 1px solid var(--ln); }
.mgx-footer__marquee .mgx-marquee__track { animation-duration: 40s; gap: 40px; }
.mgx-footer__marquee span { font-size: clamp(64px, 11vw, 180px) !important; color: var(--tx); }
.mgx-footer__marquee span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--g); }
.mgx-footer__marquee i { color: var(--g); font-size: clamp(40px, 6vw, 90px) !important; }
.mgx-footer__glow { position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; bottom: -380px; border-radius: 50%; background: var(--g); filter: blur(160px); opacity: .14; pointer-events: none; }
.mgx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 48px; padding: 70px 0 56px; }
.mgx-logo--footer .mgx-logo__img { height: 110px; }
.mgx-logo--footer .mgx-logo__word b { font-size: 64px; }
.mgx-footer__brand p { margin: 18px 0 24px; max-width: 280px; color: var(--mu); font-size: 18px; }
.mgx-footer__col h4 { margin: 0 0 20px !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .22em; text-transform: uppercase; color: var(--g) !important; }
.mgx-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mgx-footer__col li a { position: relative; display: inline-block; font-family: var(--fd); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; color: var(--tx) !important; transition: transform .35s var(--ease), color .3s; }
.mgx-footer__col li a::before { content: "→"; position: absolute; left: -22px; opacity: 0; color: var(--g); transition: all .35s var(--ease); }
.mgx-footer__col li a:hover { transform: translateX(22px); color: var(--g) !important; }
.mgx-footer__col li a:hover::before { opacity: 1; }
.mgx-social { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: 18px; border: 1px solid var(--ln); background: rgba(255, 255, 255, .025); transition: all .35s var(--ease); }
.mgx-social .mgx-ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--g-a); color: var(--g); }
.mgx-social b { display: block; font-family: var(--fd); font-size: 18px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.mgx-social small { color: var(--mu); }
.mgx-social:hover { border-color: var(--g); transform: translateY(-3px); background: var(--g-a); }
.mgx-footer__pay { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--mu-2); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.mgx-footer__pay img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.mgx-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--ln); color: var(--mu-2); font-size: 14px; }
.mgx-footer__credit { color: var(--mu) !important; }
.mgx-footer__credit b { color: var(--g); }
.mgx-totop { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #061003; border: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.mgx-totop .mgx-ico { width: 22px; height: 22px; }
.mgx-totop:hover { transform: translateY(-5px); box-shadow: var(--glow); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
	.mgx-nav { display: none; }
	.mgx-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	:root { --hh: 70px; }
	.mgx-header.is-scrolled { --hh: 64px; }
	.mgx-logo__img { height: 46px; }
	.mgx-header.is-scrolled .mgx-logo__img { height: 40px; }
	.mgx-burger__label { display: none; }
	.mgx-burger { padding: 0 7px; }
	.mgx-menu__inner { grid-template-columns: 1fr; align-content: start; gap: 40px; padding-top: calc(var(--hh) + 30px); }
	.mgx-menu__photo { inset: 0; -webkit-mask-image: linear-gradient(0deg, #000, transparent 80%); mask-image: linear-gradient(0deg, #000, transparent 80%); }
	.mgx-menu__photo.is-on { opacity: .4; }
	.mgx-menu__txt { font-size: clamp(48px, 13vw, 76px); }
	.mgx-menu__foot { display: none; }
	.mgx-menu__curtain { grid-template-columns: repeat(2, 1fr); }
	.mgx-searchbox { height: 62px; padding-left: 18px; }
	.mgx-searchbox .mgx-btn { --bh: 48px; padding: 0 18px; }
	.mgx-searchbox--xl { height: 70px; }
	.mgx-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.mgx-footer__bottom { justify-content: center; text-align: center; }
	body.mgx { font-size: 16px; }
}
@media (max-width: 480px) {
	.mgx-searchbox > .mgx-ico { display: none; }
	.mgx-searchbox .mgx-btn { padding: 0 16px; font-size: 15px; }
	.mgx-actions { gap: 6px; }
	.mgx-icon-btn { width: 42px; height: 42px; }
	.mgx-btn { --bh: 52px; padding: 0 22px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.mgx-js [data-reveal] { opacity: 1; transform: none; }
	.mgx-w > span { transform: none; }
}

/* Evita que columnas con títulos grandes se coman la grilla */
[class*="__grid"] > * { min-width: 0; }
