/**
 * ArtyDecoLizz · Home
 * Todos los estilos viven dentro de .arty-home para no tocar el resto del tema.
 */

.arty-home {
	--ah-accent: #5f4fdb;
	--ah-accent-dark: #2a1d92;
	--ah-ink: #111111;
	--ah-muted: #5d5d68;
	--ah-line: #e8e4f0;
	--ah-surface: #f8f6f3;
	--ah-white: #ffffff;
	--ah-radius: 18px;
	--ah-max: 1240px;
	color: var(--ah-ink);
	font-family: inherit;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.arty-home *,
.arty-home *::before,
.arty-home *::after {
	box-sizing: border-box;
}

.arty-home img {
	display: block;
	max-width: 100%;
	height: auto;
}

.arty-home a {
	text-decoration: none;
	color: inherit;
}

.arty-home p {
	margin: 0 0 1rem;
}

.arty-home h1,
.arty-home h2,
.arty-home h3 {
	margin: 0;
	color: var(--ah-ink);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.arty-home :focus-visible {
	outline: 2px solid var(--ah-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Contenedor y utilidades ------------------------------------------------ */

.ah-wrap {
	width: 100%;
	max-width: var(--ah-max);
	margin: 0 auto;
	padding: 0 24px;
}

.ah-section {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.ah-eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ah-accent);
}

.ah-eyebrow--light {
	color: rgba(255, 255, 255, 0.7);
}

.ah-title {
	font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.ah-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ah-head .ah-title {
	margin: 0;
}

.ah-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: none;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ah-accent-dark);
	transition: opacity 0.2s ease;
}

.ah-link:hover {
	opacity: 0.65;
	color: var(--ah-accent-dark);
}

/* Botones ---------------------------------------------------------------- */

.ah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.95rem 1.65rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ah-btn svg {
	flex: none;
	transition: transform 0.2s ease;
}

.ah-btn:hover svg {
	transform: translateX(3px);
}

.ah-btn--primary {
	background: var(--ah-accent);
	color: #fff;
	box-shadow: 0 10px 24px -12px rgba(95, 79, 219, 0.75);
}

.ah-btn--primary:hover,
.ah-btn--primary:focus {
	background: var(--ah-accent-dark);
	color: #fff;
}

.ah-btn--ghost {
	border-color: rgba(17, 17, 17, 0.22);
	color: var(--ah-ink);
}

.ah-btn--ghost:hover {
	border-color: var(--ah-ink);
	background: var(--ah-ink);
	color: #fff;
}

.ah-btn--light {
	background: #fff;
	color: var(--ah-accent-dark);
}

.ah-btn--light:hover {
	background: rgba(255, 255, 255, 0.88);
	color: var(--ah-accent-dark);
}

/* Astra define colores de enlaces con más especificidad: los reforzamos acá. */
.arty-home a.ah-link {
	color: var(--ah-accent-dark);
}

.arty-home a.ah-btn--primary {
	color: #fff;
}

.arty-home a.ah-btn--primary:hover {
	color: #fff;
}

.arty-home a.ah-btn--ghost {
	color: var(--ah-ink);
}

.arty-home a.ah-btn--ghost:hover {
	color: #fff;
}

.arty-home a.ah-btn--light {
	color: var(--ah-accent-dark);
}

.arty-home a.ah-btn--light:hover {
	color: var(--ah-accent-dark);
}

/* Hero ------------------------------------------------------------------- */

.ah-hero {
	position: relative;
	padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(2rem, 4.5vw, 3.75rem);
	background:
		radial-gradient(900px 420px at 82% -12%, rgba(95, 79, 219, 0.17), transparent 62%),
		radial-gradient(600px 320px at 0% 100%, rgba(42, 29, 146, 0.08), transparent 60%),
		linear-gradient(180deg, var(--ah-surface) 0%, #fff 100%);
}

.ah-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.25rem);
}

.ah-hero__title {
	margin: 0 0 1.15rem;
	max-width: 15ch;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
	letter-spacing: -0.03em;
}

.ah-hero__text {
	max-width: 46ch;
	margin: 0 0 1.9rem;
	font-size: clamp(1rem, 1.15vw, 1.1rem);
	color: var(--ah-muted);
}

.ah-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

.ah-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-hero__proof li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	color: var(--ah-muted);
}

.ah-hero__proof svg {
	color: var(--ah-accent);
}

.ah-hero__figure {
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	background: linear-gradient(135deg, #ece7fb, #f3f0ff);
	box-shadow: 0 40px 80px -50px rgba(42, 29, 146, 0.55);
}

.ah-hero__figure img {
	width: 100%;
	aspect-ratio: 4 / 3.6;
	object-fit: cover;
}

.ah-hero__figure--empty {
	aspect-ratio: 4 / 3.4;
}

.ah-mosaic {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	aspect-ratio: 1 / 1.02;
}

.ah-mosaic__item {
	overflow: hidden;
	border-radius: 16px;
	background: #efeaf8;
}

.ah-mosaic__item:first-child {
	grid-row: span 2;
}

.ah-mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ah-mosaic__item:hover img {
	transform: scale(1.04);
}

/* Beneficios ------------------------------------------------------------- */

.ah-benefits {
	padding: 18px 0;
	background: var(--ah-accent-dark);
	color: #fff;
}

.ah-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-benefit {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.ah-benefit svg {
	flex: none;
	opacity: 0.9;
}

.ah-benefit strong {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
}

.ah-benefit span span,
.ah-benefit > span > span {
	display: block;
	font-size: 0.76rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.66);
}

/* Categorías ------------------------------------------------------------- */

.ah-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 178px;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-cat {
	position: relative;
	min-width: 0;
}

.ah-cat:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.ah-cat__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--ah-radius);
	background: #efeaf8;
	isolation: isolate;
}

.ah-cat__media,
.ah-cat__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ah-cat__media img {
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ah-cat__link:hover .ah-cat__media img,
.ah-cat__link:focus-visible .ah-cat__media img {
	transform: scale(1.06);
}

.ah-cat__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 46px 16px 14px;
	color: #fff;
	background: linear-gradient(180deg, rgba(11, 8, 30, 0) 0%, rgba(11, 8, 30, 0.72) 100%);
}

.ah-cat__name {
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.25;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.ah-cat:first-child .ah-cat__name {
	font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.ah-cat__meta {
	flex: none;
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.85);
}

/* Productos -------------------------------------------------------------- */

.arty-home .ah-products__grid > .woocommerce {
	margin: 0;
}

.arty-home ul.products {
	display: grid;
	margin: 0;
	padding: 0;
}

/* Columnas: se fuerza para ganarle al layout mobile de Astra (1 columna a ≤544px). */
.arty-home .ah-products__grid ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 28px 20px;
}

.arty-home ul.products::before,
.arty-home ul.products::after {
	content: none;
}

.arty-home ul.products li.product {
	float: none;
	width: 100% !important;
	margin: 0 !important;
	padding: 0;
	text-align: left;
}

.arty-home ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 14px;
	background: #f2f0f7;
}

.arty-home ul.products li.product .woocommerce-loop-product__title {
	padding: 0.85rem 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ah-ink);
}

.arty-home ul.products li.product .price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ah-accent-dark);
}

.arty-home ul.products li.product .price del {
	opacity: 0.5;
	font-weight: 400;
}

.arty-home ul.products li.product .button,
.arty-home ul.products li.product .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.7rem;
	padding: 0.7rem 1rem;
	border-radius: 10px;
	font-size: 0.83rem;
	font-weight: 600;
	line-height: 1;
	background: var(--ah-ink);
	color: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}

.arty-home ul.products li.product .button:hover {
	background: var(--ah-accent);
	color: #fff;
}

.arty-home ul.products li.product .added_to_cart {
	margin-left: 0;
	background: transparent;
	color: var(--ah-accent-dark);
	text-decoration: underline;
}

.arty-home ul.products li.product .onsale {
	top: 12px;
	right: 12px;
	left: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	background: var(--ah-accent);
	color: #fff;
}

.arty-home ul.products li.product .star-rating {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
}

/* Banda mayorista -------------------------------------------------------- */

.ah-band__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding: clamp(1.75rem, 4vw, 3.25rem);
	border-radius: 24px;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
		linear-gradient(120deg, var(--ah-accent-dark) 0%, #4a37c4 100%);
	color: #fff;
}

.ah-band__title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	color: #fff;
}

.ah-band__text {
	max-width: 52ch;
	margin: 0;
	font-size: 0.97rem;
	color: rgba(255, 255, 255, 0.82);
}

/* CTA final -------------------------------------------------------------- */

.ah-cta {
	padding-top: 0;
}

.ah-cta__card {
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
	border: 1px solid var(--ah-line);
	border-radius: 24px;
	background: var(--ah-surface);
	text-align: center;
}

.ah-cta__text {
	max-width: 58ch;
	margin: 0.85rem auto 1.75rem;
	color: var(--ah-muted);
}

/* Ajustes de página en Astra -------------------------------------------- */

body.arty-home-page .site-content .ast-container {
	max-width: 100%;
	width: 100%;
	padding-right: 0;
	padding-left: 0;
}

body.arty-home-page .entry-header,
body.arty-home-page .ast-breadcrumbs-wrapper,
body.arty-home-page .ast-single-post .entry-title {
	display: none;
}

body.arty-home-page .site-content {
	padding-top: 0;
}

body.arty-home-page .entry-content {
	margin: 0;
	padding: 0;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
	.ah-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: 165px;
	}

	.ah-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ah-hero__grid {
		grid-template-columns: 1fr;
	}

	.ah-hero__media {
		order: -1;
	}

	.ah-mosaic {
		aspect-ratio: 16 / 9;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 1fr;
	}

	.ah-mosaic__item {
		grid-row: auto !important;
	}

	.ah-mosaic__item:first-child {
		display: none;
	}

	.ah-hero__figure img {
		aspect-ratio: 16 / 10;
	}

	.arty-home .ah-products__grid ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.ah-band__card {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 720px) {
	.ah-wrap {
		padding: 0 18px;
	}

	.ah-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 148px;
		gap: 12px;
	}

	.ah-cat:first-child {
		grid-column: span 2;
		grid-row: span 1;
	}

	.arty-home .ah-products__grid ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px 14px;
	}

	.ah-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 520px) {
	.ah-benefits__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ah-hero__actions .ah-btn {
		width: 100%;
	}

	.ah-mosaic {
		grid-template-columns: 1fr 1fr;
		aspect-ratio: 4 / 3;
	}

	.ah-mosaic__item:nth-child(3) {
		display: none;
	}

	.ah-cat__body {
		padding: 40px 12px 10px;
	}

	.ah-cat__meta {
		display: none;
	}

	.arty-home ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.88rem;
	}
}

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

	.arty-home .ah-btn:hover svg {
		transform: none;
	}
}
