/* Portada (agent 2): hero A/B/C, ventajas, categorías, tarjetas, banner y FAQ.
   Tot penja de .mo-home; els colors i les fonts surten dels tokens de 10-base.css
   (agent 1) amb valors per defecte. */

.mo-home {
	--h-purple: var(--mo-purple, #7c2cf3);
	--h-purple-light: var(--mo-purple-light, #b48cff);
	--h-purple-dark: var(--mo-purple-dark, #2a0b5c);
	--h-lilac: var(--mo-lilac, #f2ecff);
	--h-black: var(--mo-black, #0a0a0a);
	--h-ink: var(--mo-ink, #1a1a1a);
	--h-muted: var(--mo-muted, #5b5566);
	--h-radius: var(--mo-radius-card, 14px);
	--h-radius-btn: var(--mo-radius-btn, 8px);
	--h-head: var(--mo-font-head, "Outfit", "Lexend", system-ui, sans-serif);
	--h-poster: var(--mo-font-poster, "Anton", "Impact", "Arial Narrow", sans-serif);
	--h-body: var(--mo-font-body, "Inter Molongo", "Inter", system-ui, sans-serif);
	--h-wide: min(1240px, calc(100% - 32px));
}

.mo-sr-only {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mo-home .mo-h2 {
	font-family: var(--h-head);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--h-ink);
}

/* ---------- Hero A/B/C ---------- */

.mo-home > .mo-hero {
	position: relative;
	margin-block: 0;
	background: var(--h-black);
	overflow: hidden;
}

/* Abans que hero.js triï, només es veu A (i amb un retard curt, per evitar el
   canvi de variant a la vista). Sense JS, A apareix igualment. */
.mo-hero__v { display: none; }
.mo-hero:not([data-active]) .mo-hero__v--a {
	display: grid;
	animation: mo-hero-reveal 0s linear 1s both;
}
.mo-hero[data-active] .mo-hero__v:not([hidden]) { display: grid; }
.mo-hero .mo-hero__v[hidden] { display: none; }
@keyframes mo-hero-reveal { from { visibility: hidden; } to { visibility: visible; } }

.mo-hero__v {
	position: relative;
	min-height: clamp(520px, 46vw, 700px);
	align-items: center;
	color: #fff;
	background: var(--h-black);
}
.mo-hero__v--a { background: #0a080e; }
.mo-hero__v--b { color: var(--h-ink); background: #f7f4f1; }
.mo-hero__v--c { background: #07040d; }

.mo-hero__media { position: absolute; inset: 0 0 0 auto; width: min(72%, 1180px); }
.mo-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;
}
.mo-hero__v--b .mo-hero__media img,
.mo-hero__v--c .mo-hero__media img { object-position: 85% 22%; }

/* Degradat sota el text perquè es llegeixi bé sobre la foto */
.mo-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.mo-hero__v--a .mo-hero__media::after { background: linear-gradient(90deg, #0a080e 0%, rgba(10, 8, 14, 0) 22%); }
.mo-hero__v--b .mo-hero__media::after { background: linear-gradient(90deg, #f7f4f1 0%, rgba(247, 244, 241, .7) 14%, rgba(247, 244, 241, 0) 32%); }
.mo-hero__v--c .mo-hero__media::after { background: linear-gradient(90deg, #07040d 0%, rgba(7, 4, 13, .6) 16%, rgba(7, 4, 13, 0) 34%); }

.mo-hero__body {
	position: relative;
	z-index: 1;
	width: var(--h-wide);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.mo-hero__body > * { max-width: 34rem; }

.mo-hero__kicker {
	margin: 0 0 1rem;
	font-family: var(--h-body);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--h-purple);
}
.mo-hero__kicker--hand {
	display: inline-block;
	font-family: var(--h-head);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 600;
	letter-spacing: .04em;
	color: #fff;
	transform: rotate(-4deg);
	padding-bottom: .35rem;
	background: linear-gradient(var(--h-purple), var(--h-purple)) left bottom / 55% 3px no-repeat;
}

.mo-hero .mo-hero__title {
	margin: 0;
	color: inherit;
	line-height: .95;
}
.mo-hero__title--poster {
	font-family: var(--h-poster);
	font-weight: 400;
	font-size: clamp(3.2rem, 7.4vw, 6.4rem);
	text-transform: uppercase;
	letter-spacing: .005em;
}
.mo-hero__title--poster > span { display: block; }
.mo-hero__title--poster .mo-hero__small { font-size: .5em; line-height: 1.05; margin-top: .15em; }
.mo-hero__title--round {
	font-family: var(--h-head);
	font-weight: 800;
	font-size: clamp(2.5rem, 5.2vw, 4.4rem);
	letter-spacing: -0.02em;
	line-height: 1.02;
}
.mo-hero__hl { color: var(--h-purple); }
.mo-hero__v--a .mo-hero__hl,
.mo-hero__v--c .mo-hero__hl { color: #9a5cff; }
.mo-hero__hl--brush {
	display: inline-block;
	transform: rotate(-4deg);
	text-shadow: 0 0 28px rgba(124, 44, 243, .45);
}

.mo-hero .mo-hero__lead {
	margin: 1.25rem 0 0;
	font-family: var(--h-body);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, .86);
}
.mo-hero__v--b .mo-hero__lead { color: #3d3846; }

.mo-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 2rem 0 0;
}
.mo-hero .mo-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .9rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--h-radius-btn);
	font-family: var(--h-body);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.mo-hero .mo-hero__btn--primary { background: var(--h-purple); color: #fff; }
.mo-hero .mo-hero__btn--primary:hover { background: #6a1fe0; transform: translateY(-1px); }
.mo-hero .mo-hero__btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.mo-hero .mo-hero__btn--ghost:hover { background: #fff; color: var(--h-black); border-color: #fff; }
.mo-hero__v--b .mo-hero__btn--ghost { background: #fff; }
.mo-hero__v--b .mo-hero__btn--ghost:hover { background: var(--h-ink); color: #fff; border-color: var(--h-ink); }
.mo-hero .mo-hero__btn:focus-visible { outline: 3px solid var(--h-purple-light); outline-offset: 2px; }

@media (max-width: 1200px) and (min-width: 1001px) {
	.mo-hero__body > * { max-width: 26rem; }
	.mo-hero__title--poster { font-size: clamp(3rem, 6.4vw, 4.6rem); }
	.mo-hero__title--round { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
}

/* Mòbil i tauleta: la foto a dalt i el text a sota */
@media (max-width: 1000px) {
	.mo-hero__v { min-height: 0; align-items: start; }
	.mo-hero__media { position: relative; width: auto; aspect-ratio: 4 / 3; max-height: 70vh; }
	.mo-hero__v--a .mo-hero__media { aspect-ratio: 5 / 4; }
	.mo-hero__v--b .mo-hero__media img,
	.mo-hero__v--c .mo-hero__media img { object-position: 74% 30%; }
	.mo-hero__media::after { background: none !important; }
	.mo-hero__v--a .mo-hero__media::after { background: linear-gradient(0deg, rgba(10, 8, 14, 1) 0%, rgba(10, 8, 14, 0) 30%) !important; }
	.mo-hero__v--c .mo-hero__media::after { background: linear-gradient(0deg, rgba(7, 4, 13, 1) 0%, rgba(7, 4, 13, 0) 30%) !important; }
	.mo-hero__v--b { background: var(--h-lilac); }
	.mo-hero__body { padding-block: 1.25rem 2.25rem; }
	.mo-hero__v--a .mo-hero__body,
	.mo-hero__v--c .mo-hero__body { margin-top: -3.5rem; }
	.mo-hero__title--poster { font-size: clamp(2.6rem, 13vw, 4rem); }
	.mo-hero__title--round { font-size: clamp(2rem, 9vw, 2.8rem); }
	.mo-hero__ctas { margin-top: 1.5rem; }
	.mo-hero .mo-hero__btn { flex: 1 1 auto; justify-content: center; padding: .85rem 1.1rem; }
}

/* ---------- Ventajas ---------- */

.mo-home > .mo-trust {
	margin-block: 0;
	background: var(--h-lilac);
	color: var(--h-ink);
}
.mo-trust__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 2rem;
	width: var(--h-wide);
	margin: 0 auto;
	padding: 1.4rem 0;
	list-style: none;
}
.mo-trust__list li {
	display: flex;
	align-items: center;
	gap: .85rem;
	font-family: var(--h-body);
	font-size: .92rem;
	line-height: 1.35;
	color: var(--h-muted);
}
.mo-trust__list strong { display: block; color: var(--h-ink); font-size: 1rem; }
.mo-trust__list svg {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	fill: none;
	stroke: var(--h-purple);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (max-width: 900px) {
	.mo-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
	.mo-trust__list li { font-size: .85rem; gap: .6rem; }
	.mo-trust__list svg { width: 28px; height: 28px; }
}

/* ---------- Tarjetas de producto (vertical 4:5) ---------- */

.mo-home .mo-section__head { margin-bottom: .5rem; }
.mo-home .mo-cards .wc-block-components-product-image,
.mo-home .mo-cards .wp-block-woocommerce-product-image {
	border-radius: var(--h-radius);
	overflow: hidden;
	background: #f4f2f7;
}
.mo-home .mo-cards .wc-block-components-product-image img,
.mo-home .mo-cards .wp-block-woocommerce-product-image img {
	transition: transform .3s ease;
}
.mo-home .mo-cards li:hover .wp-block-woocommerce-product-image img,
.mo-home .mo-cards li:hover .wc-block-components-product-image img { transform: scale(1.03); }
.mo-home .mo-cards .wp-block-post-title {
	font-family: var(--h-body);
	font-weight: 600;
	font-size: 1rem !important;
}
.mo-home .mo-cards .wp-block-post-title a { color: var(--h-ink); text-decoration: none; }
.mo-home .mo-cards .wp-block-post-title a:hover { color: var(--h-purple); }
.mo-home .mo-cards .wc-block-components-product-price,
.mo-home .mo-cards .wp-block-woocommerce-product-price { color: var(--h-purple); font-weight: 700; }

/* ---------- Encuentra tu frikismo ---------- */

.mo-home > .mo-cats {
	margin-block: 0;
	background: var(--h-lilac);
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.mo-cats__inner { width: var(--h-wide); margin: 0 auto; }
.mo-cats .mo-h2 { margin: 0 0 1.5rem; text-align: center; }
.mo-cats__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mo-cat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
	height: 100%;
	box-sizing: border-box;
	padding: 1.4rem 1.25rem;
	border: 1px solid #e2d6ff;
	border-radius: var(--h-radius);
	background: #fff;
	color: var(--h-ink);
	text-decoration: none;
	transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.mo-cat svg {
	width: 40px;
	height: 40px;
	margin-bottom: .5rem;
	fill: none;
	stroke: var(--h-purple);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mo-cat__name { font-family: var(--h-head); font-weight: 700; font-size: 1.15rem; }
.mo-cat__desc { font-family: var(--h-body); font-size: .88rem; color: var(--h-muted); }
.mo-cat:hover, .mo-cat:focus-visible {
	background: var(--h-purple);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(124, 44, 243, .22);
}
.mo-cat:hover svg, .mo-cat:focus-visible svg { stroke: #fff; }
.mo-cat:hover .mo-cat__desc, .mo-cat:focus-visible .mo-cat__desc { color: rgba(255, 255, 255, .85); }
@media (max-width: 900px) {
	.mo-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mo-cats__grid li:last-child { grid-column: 1 / -1; }
	.mo-cat { padding: 1rem; }
	.mo-cat svg { width: 32px; height: 32px; margin-bottom: .25rem; }
}

/* ---------- Banner discreto de personalizadas ---------- */

.mo-home > .mo-custom-banner {
	max-width: var(--h-wide);
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	padding: .9rem 1.25rem;
	border: 1px dashed #cdb8ff;
	border-radius: var(--h-radius);
	background: #fbf9ff;
	text-align: center;
}
.mo-custom-banner p {
	margin: 0;
	font-family: var(--h-body);
	font-size: .95rem;
	color: var(--h-muted);
}
.mo-custom-banner strong { color: var(--h-ink); }
.mo-custom-banner a {
	margin-left: .35rem;
	color: var(--h-purple);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* ---------- Preguntas frecuentes ---------- */

.mo-home .mo-faq { background: #fff; }
.mo-faq .mo-h2 { margin-bottom: 1.25rem; }
.mo-faq .mo-faq__item {
	border-bottom: 1px solid #e8e2f3;
	padding: 0;
}
.mo-faq .mo-faq__item summary {
	position: relative;
	padding: 1.05rem 2.5rem 1.05rem 0;
	font-family: var(--h-head);
	font-weight: 700;
	font-size: 1.08rem;
	color: var(--h-ink);
	cursor: pointer;
	list-style: none;
}
.mo-faq .mo-faq__item summary::-webkit-details-marker { display: none; }
.mo-faq .mo-faq__item summary::after {
	content: "+";
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	color: var(--h-purple);
}
.mo-faq .mo-faq__item[open] summary::after { content: "–"; }
.mo-faq .mo-faq__item p {
	margin: 0 0 1.1rem;
	font-family: var(--h-body);
	color: var(--h-muted);
	line-height: 1.6;
}
.mo-faq a { color: var(--h-purple); text-underline-offset: 2px; }
.mo-faq .mo-faq__more { margin-top: 1.5rem; color: var(--h-muted); }
