/**
 * Mix Gourmet landing — isolated styles.
 */

:root {
	--mg-blue-dark: #00178F;
	--mg-blue: #0033a0;
	--mg-blue-hero: #0046c8;
	--mg-blue-light: #0094ff;
	--mg-yellow: #ffe500;
	--mg-yellow-dark: #e6cc00;
	--mg-white: #ffffff;
	--mg-font: "Nunito", "Montserrat", sans-serif;
	--mg-container: min(1200px, calc(100% - 48px));
	--mg-radius-lg: 40px;
	--mg-radius-pill: 999px;
	--mg-hero-height: clamp(508px, 44vw, 702px);
	--mg-scroll-size: 54px;
}

.mixgourmet-body {
	margin: 0;
	font-family: var(--mg-font);
	color: var(--mg-white);
	background: var(--mg-blue-dark);
	overflow-x: hidden;
}

.mixgourmet-body .mg-page,
.mixgourmet-body .mg-page * {
	box-sizing: border-box;
}

.mg-container {
	width: var(--mg-container);
	margin-inline: auto;
}

/* Theme menu (header.php) on Mix Gourmet */
.mixgourmet-body header.menu-header {
	z-index: 100;
}

/* Hero */
.mg-hero {
	position: relative;
	padding: 88px 0 88px;
	background: radial-gradient(ellipse 120% 80% at 50% 20%, #3d8fe8 0%, #1a6fd4 35%, #0050c8 70%, #003da0 100%);
	overflow: hidden;
}

.mg-hero--has-bg {
	padding: 0;
	background: var(--mg-blue-dark);
	width: 100%;
	height: var(--mg-hero-height);
	overflow: visible;
}

.mg-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: 0;
}

.mg-hero__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.mg-hero--has-bg .mg-hero__stage {
	position: absolute;
	inset: clamp(56px, 6vw, 80px) 0 clamp(80px, 11vw, 120px);
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 12px;
	align-items: center;
	width: min(1180px, calc(100% - 40px));
	min-height: unset;
	margin-inline: auto;
	padding-bottom: 0;
	transform: translateY(-28px);
}

.mg-hero__stage {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 12px;
	align-items: center;
	width: min(1180px, calc(100% - 40px));
	min-height: clamp(380px, 52vw, 520px);
	margin-inline: auto;
	padding-bottom: 88px;
}

.mg-hero__copy,
.mg-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.mg-hero__copy {
	justify-content: center;
	padding-bottom: 0;
}

.mg-hero__visual {
	justify-content: flex-end;
	align-items: center;
}

.mg-hero__copy-img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
}

.mg-hero__visual-img {
	display: block;
	width: 100%;
	max-width: 640px;
	height: auto;
}

.mg-hero--has-bg .mg-hero__copy-img {
	max-width: min(460px, 42vw);
}

.mg-hero--has-bg .mg-hero__visual-img {
	max-width: min(560px, 48vw);
}

.mg-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: calc(var(--mg-scroll-size) / -2);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--mg-scroll-size);
	height: var(--mg-scroll-size);
	border-radius: 50%;
	background: var(--mg-white);
	transform: translateX(-50%);
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.mg-hero__scroll-icon {
	display: block;
	width: 14px;
	height: 14px;
	border-right: 3px solid var(--mg-blue);
	border-bottom: 3px solid var(--mg-blue);
	transform: rotate(45deg) translate(-2px, -2px);
}

.mg-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 4;
	line-height: 0;
	pointer-events: none;
}

.mg-hero__wave svg {
	display: block;
	width: 100%;
	height: clamp(72px, 10vw, 120px);
}

.mg-hero__wave path {
	fill: var(--mg-blue-dark);
}

/* Intro */
.mg-intro {
	margin-top: -1px;
	padding: 48px 0 72px;
	background: var(--mg-blue-dark);
}

.mg-hero--has-bg + .mg-intro {
	padding-top: calc(48px + (var(--mg-scroll-size) / 2));
}

.mg-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 40px;
	align-items: center;
}

.mg-intro__left {
	position: relative;
	padding-bottom: 28px;
}

.mg-intro__ambassador {
	transform: scaleX(-1);
	line-height: 0;
}

.mg-intro__ambassador-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.mg-intro__quote-row {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
}

.mg-intro__quote-box {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
}

.mg-intro__quote {
	margin: 0;
	padding: 12px 110px 12px 22px;
	border: 2px solid var(--mg-yellow);
	border-radius: 999px;
	font-size: clamp(0.85rem, 1.6vw, 1rem);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.mg-intro__signature {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	margin-left: -96px;
}

.mg-intro__signature-img {
	display: block;
	width: clamp(140px, 16vw, 210px);
	max-width: none;
	height: auto;
}

.mg-intro__right {
	text-align: center;
}

.mg-intro__heading {
	margin: 0 0 12px;
	color: var(--mg-yellow);
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
}

.mg-intro__subheading {
	margin: 0 0 28px;
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.mg-intro__proteins {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.mg-intro__protein {
	text-align: center;
}

.mg-intro__protein-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin-inline: auto;
}

.mg-intro__protein-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.mg-intro__protein-label {
	margin: 10px 0 0;
	font-size: 1.35rem;
	font-weight: 900;
}

.mg-intro__description {
	margin: 0 auto;
	max-width: 520px;
	font-size: 1rem;
	line-height: 1.55;
	text-align: center;
}

.mg-intro__description strong,
.mg-intro__description b {
	font-weight: 900;
}

/* Products */
.mg-products {
	padding: 24px 0 72px;
	background: var(--mg-blue-dark);
}

.mg-product-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	margin-bottom: 56px;
}

.mg-product-row:last-child {
	margin-bottom: 0;
}

.mg-product-row--reverse .mg-product-row__media {
	order: 2;
}

.mg-product-row--reverse .mg-product-row__content {
	order: 1;
	text-align: right;
}

.mg-product-row__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: 32px;
	border-radius: var(--mg-radius-lg);
	background: var(--mg-panel-color, var(--mg-blue-light));
	overflow: hidden;
}

.mg-product-row__image {
	max-width: 100%;
	height: auto;
}

.mg-product-row__title {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 900;
	line-height: 1.15;
}

.mg-product-row__title-accent {
	display: block;
	color: var(--mg-yellow);
}

.mg-product-row__title-rest {
	display: block;
	color: var(--mg-white);
}

.mg-product-row__description {
	margin: 0 0 24px;
	font-size: 1rem;
	line-height: 1.55;
}

.mg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 12px 36px;
	border-radius: var(--mg-radius-pill);
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
}

.mg-btn--buy {
	background: var(--mg-yellow);
	color: var(--mg-blue-dark);
}

.mg-btn--buy:hover {
	background: var(--mg-yellow-dark);
	transform: translateY(-1px);
}

/* Benefits — canvas 980×940 + coordenadas calibradas al PSD */
.mg-benefits {
	--mg-ben-canvas-w: min(980px, 96vw);
	--mg-ben-canvas-ratio: 980 / 940;
	--mg-ben-bowl-w: 58%;
	--mg-ben-bowl-top: 1%;
	--mg-ben-card-w-side: 42%;
	--mg-ben-card-w-featured: 62%;
	/* ProteÃ­na â€” 8 en punto */
	--mg-ben-top-left-x: -17%;
	--mg-ben-top-left-y: 35%;
	/* Omega 3 â€” 4 en punto */
	--mg-ben-top-right-x: 76%;
	--mg-ben-top-right-y: 35%;
	/* Taurina â€” curva hacia el bowl */
	--mg-ben-bottom-left-x: -12%;
	--mg-ben-bottom-left-y: 47%;
	/* Minerales â€” curva hacia el bowl */
	--mg-ben-bottom-right-x: 70%;
	--mg-ben-bottom-right-y: 47%;
	/* PostbiÃ³ticos â€” centro inferior */
	--mg-ben-featured-x: 50%;
	--mg-ben-featured-y: 62%;
	padding: 16px 0 40px;
	background: var(--mg-blue-dark);
	overflow: visible;
}

.mg-benefits__canvas {
	position: relative;
	width: var(--mg-ben-canvas-w);
	aspect-ratio: var(--mg-ben-canvas-ratio);
	margin-inline: auto;
}

.mg-benefits__bowl {
	position: absolute;
	left: 50%;
	top: var(--mg-ben-bowl-top);
	z-index: 1;
	width: var(--mg-ben-bowl-w);
	line-height: 0;
	transform: translateX(-50%);
}

.mg-benefits__bowl-img {
	display: block;
	width: 100%;
	height: auto;
}

.mg-benefit-card {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
}

.mg-benefit-card--top-left {
	left: var(--mg-ben-top-left-x);
	top: var(--mg-ben-top-left-y);
	width: var(--mg-ben-card-w-side);
	align-items: flex-end;
}

.mg-benefit-card--top-right {
	left: var(--mg-ben-top-right-x);
	top: var(--mg-ben-top-right-y);
	width: var(--mg-ben-card-w-side);
	align-items: flex-start;
}

.mg-benefit-card--bottom-left {
	left: var(--mg-ben-bottom-left-x);
	top: var(--mg-ben-bottom-left-y);
	width: var(--mg-ben-card-w-side);
	align-items: flex-end;
}

.mg-benefit-card--bottom-right {
	left: var(--mg-ben-bottom-right-x);
	top: var(--mg-ben-bottom-right-y);
	width: var(--mg-ben-card-w-side);
	align-items: flex-start;
}

.mg-benefit-card--featured {
	left: var(--mg-ben-featured-x);
	top: var(--mg-ben-featured-y);
	width: var(--mg-ben-card-w-featured);
	align-items: center;
	transform: translateX(-50%);
}

.mg-benefit-card--top-left .mg-benefit-card__text,
.mg-benefit-card--bottom-left .mg-benefit-card__text {
	width: 100%;
	text-align: left;
}

.mg-benefit-card--top-right .mg-benefit-card__text,
.mg-benefit-card--bottom-right .mg-benefit-card__text {
	width: 100%;
	text-align: left;
}

.mg-benefit-card--featured .mg-benefit-card__text {
	text-align: center;
}

.mg-benefit-card__tag {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 22px 6px 10px;
	border-radius: 999px;
	background: #a5ad00;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mg-benefit-card__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
}

.mg-benefit-card__icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.mg-benefit-card__title {
	margin: 0;
	color: var(--mg-white);
	font-size: clamp(0.82rem, 1.4vw, 0.98rem);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.mg-benefit-card__text {
	margin: 8px 0 0;
	max-width: 100%;
	width: 100%;
	color: var(--mg-white);
	font-size: clamp(0.8rem, 1.05vw, 0.9rem);
	font-weight: 400;
	line-height: 1.38;
	text-align: left;
}

.mg-benefit-card--featured .mg-benefit-card__tag {
	min-height: 52px;
	padding: 8px 28px 8px 14px;
	border: 3px solid var(--mg-yellow);
	background: var(--mg-blue-dark);
	box-shadow: none;
}

.mg-benefit-card--featured .mg-benefit-card__icon {
	width: 44px;
	height: 44px;
}

.mg-benefit-card--featured .mg-benefit-card__title {
	font-size: clamp(0.9rem, 1.6vw, 1.05rem);
}

.mg-benefit-card--featured .mg-benefit-card__text {
	max-width: 100%;
	width: 100%;
	margin-top: 12px;
	font-size: clamp(0.82rem, 1.2vw, 0.92rem);
	text-align: center;
}

/* Quality */
.mg-quality {
	padding: 48px 0 96px;
}

.mg-quality__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
}

.mg-quality__title {
	margin: 0 0 20px;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 900;
	line-height: 1.1;
}

.mg-quality__title-highlight {
	display: block;
	color: var(--mg-yellow);
}

.mg-quality__title-rest {
	display: block;
	color: var(--mg-white);
}

.mg-quality__description {
	margin: 0 0 28px;
	max-width: 480px;
	font-size: 1rem;
	line-height: 1.55;
}

.mg-quality__seal-img {
	max-width: 140px;
	height: auto;
}

.mg-quality__video-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 28px;
	overflow: hidden;
	cursor: pointer;
	background: #111;
}

.mg-quality__video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 28px;
	overflow: hidden;
	background: #111;
}

.mg-quality__video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mg-quality__poster {
	display: block;
	width: 100%;
	height: auto;
}

.mg-quality__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
}

.mg-quality__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 18px solid var(--mg-blue-dark);
}

/* Video modal */
.mg-video-modal[hidden] {
	display: none;
}

.mg-video-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mg-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.mg-video-modal__dialog {
	position: relative;
	width: min(960px, 100%);
}

.mg-video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	border: 0;
	background: transparent;
	color: var(--mg-white);
	font-size: 2rem;
	cursor: pointer;
}

.mg-video-modal__content iframe,
.mg-video-modal__content video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

.mg-video-modal__content video {
	height: auto;
}

/* Hide default theme footer on this template */
.mixgourmet-body .site-footer,
.mixgourmet-body footer:not(.mg-video-modal),
.mixgourmet-body #landing {
	display: none !important;
}
