/* ZEArte Inicio — estilos de la página principal.
   Todo cuelga de .zh-root para no chocar con el tema. */

.zh-root {
	--zh-accent: #ffb000;
	--zh-dark: #222529;
	--zh-ink: #222529;
	--zh-mist: #f0ebe2;
	--zh-sale: #d9480f;
	--zh-head: "Archivo", "Arial Black", system-ui, sans-serif;
	--zh-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	position: relative;
	width: var(--zh-vw, 100vw);
	margin-left: calc(50% - var(--zh-vw, 100vw) / 2);
	color: var(--zh-ink);
	font-family: var(--zh-body);
	font-size: 16px;
	line-height: 1.5;
	overflow: hidden;
}

.zh-root *,
.zh-root *::before,
.zh-root *::after { box-sizing: border-box; }
.zh-root img { display: block; max-width: 100%; height: auto; }
.zh-root a { color: inherit; text-decoration: none; }
.zh-root h2, .zh-root h3, .zh-root p, .zh-root ul { margin: 0; padding: 0; }
.zh-root ul { list-style: none; }
.zh-root button { font: inherit; }

.zh-wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }

/* ---------- Botón ---------- */
.zh-root .zh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.1rem;
	border: 0;
	border-radius: 2px;
	background: var(--zh-accent);
	color: var(--zh-ink);
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 108%;
	font-size: 1.05rem;
	line-height: 1.1;
	box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.zh-root .zh-btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.zh-root .zh-btn:focus-visible,
.zh-root .zh-arrow:focus-visible,
.zh-root .zh-seg:focus-visible,
.zh-root .zh-link:focus-visible,
.zh-root .zh-cat:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--zh-dark); }

/* ---------- Etiqueta (Buen Fin) ---------- */
.zh-root .zh-badge { display: inline-flex; align-items: center; }
.zh-root .zh-badge__txt {
	display: inline-block;
	padding: .3em .85em;
	border: 2px solid var(--zh-accent);
	border-radius: 2px;
	color: var(--zh-accent);
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 115%;
	font-size: 1.05rem;
	line-height: 1.2;
}
.zh-root .zh-badge__logo { width: auto; max-width: 100%; height: var(--zh-logo-h, 80px); object-fit: contain; }

/* ---------- Carrusel ---------- */
.zh-hero {
	position: relative;
	height: clamp(480px, 46vw, 760px);
	background: var(--zh-dark);
	color: #fff;
	isolation: isolate;
}
.zh-hero__track { position: absolute; inset: 0; }

.zh-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.zh-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }

.zh-slide__media { position: absolute; inset: 0; overflow: hidden; }
.zh-slide--g1 .zh-slide__media { background: linear-gradient(120deg, #1c1d20, #4d4943); }
.zh-slide--g2 .zh-slide__media { background: linear-gradient(120deg, #2a2119, #8c6c49); }
.zh-slide--g3 .zh-slide__media { background: linear-gradient(120deg, #26282c, #6d7178); }
.zh-slide--g4 .zh-slide__media { background: linear-gradient(120deg, #2e2a24, #9a8566); }
.zh-slide__media picture { display: block; width: 100%; height: 100%; }
.zh-root .zh-slide__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 8s ease-out;
}
.zh-root .zh-slide.is-active .zh-slide__media img { transform: scale(1); }

.zh-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 19, 18, var(--zh-shade, .6)) 0%, rgba(20, 19, 18, calc(var(--zh-shade, .6) * .6)) 42%, rgba(20, 19, 18, 0) 80%);
}
.zh-slide--right .zh-slide__media::after {
	background: linear-gradient(270deg, rgba(20, 19, 18, var(--zh-shade, .6)) 0%, rgba(20, 19, 18, calc(var(--zh-shade, .6) * .6)) 42%, rgba(20, 19, 18, 0) 80%);
}
.zh-slide--center .zh-slide__media::after { background: rgba(20, 19, 18, calc(var(--zh-shade, .6) * .75)); }

.zh-slide__inner {
	position: relative;
	display: flex;
	align-items: center;
	width: min(1280px, 100% - 40px);
	height: 100%;
	margin-inline: auto;
	padding-bottom: 70px;
}
.zh-slide--center .zh-slide__inner { justify-content: center; }
.zh-slide--right .zh-slide__inner { justify-content: flex-end; }

.zh-slide__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	max-width: 660px;
}
.zh-slide--center .zh-slide__copy { align-items: center; text-align: center; }
.zh-slide--right .zh-slide__copy { align-items: flex-end; text-align: right; }

.zh-root .zh-slide__title {
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 112%;
	font-size: clamp(2.1rem, 1rem + 4.8vw, 5.2rem);
	line-height: .98;
	letter-spacing: -.01em;
	color: #fff;
	text-wrap: balance;
}
.zh-root .zh-slide__text {
	max-width: 36ch;
	font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
	color: rgba(255, 255, 255, .93);
}

/* Entrada del texto: una sola secuencia al cambiar de diapositiva */
.zh-slide__copy > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.zh-slide.is-active .zh-slide__copy > * { opacity: 1; transform: none; }
.zh-slide.is-active .zh-slide__copy > :nth-child(1) { transition-delay: .25s; }
.zh-slide.is-active .zh-slide__copy > :nth-child(2) { transition-delay: .35s; }
.zh-slide.is-active .zh-slide__copy > :nth-child(3) { transition-delay: .45s; }
.zh-slide.is-active .zh-slide__copy > :nth-child(4) { transition-delay: .55s; }

/* Sello de oferta */
.zh-sticker {
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-content: center;
	width: clamp(112px, 13vw, 176px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--zh-accent);
	color: var(--zh-ink);
	text-align: center;
	line-height: 1;
	box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
	transform: translateY(-62%) rotate(-20deg) scale(.6);
	opacity: 0;
	transition: transform .6s cubic-bezier(.2, 1.4, .4, 1) .8s, opacity .3s ease .8s;
}
.zh-slide--right .zh-sticker { right: auto; left: 0; }
.zh-slide--center .zh-sticker { right: 2%; }
.zh-slide.is-active .zh-sticker { opacity: 1; transform: translateY(-62%) rotate(-8deg); }
.zh-sticker::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 2px dashed rgba(23, 33, 29, .55);
	border-radius: 50%;
}
.zh-sticker__top, .zh-sticker__bot {
	max-width: 78%;
	margin-inline: auto;
	font-weight: 600;
	font-size: clamp(.72rem, .6rem + .35vw, .95rem);
	text-wrap: balance;
}
.zh-sticker__big {
	margin: 4px 0;
	font-family: var(--zh-head);
	font-weight: 900;
	font-stretch: 112%;
	font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.4rem);
	letter-spacing: -.02em;
	white-space: nowrap;
}
.zh-sticker--long .zh-sticker__big { font-size: clamp(1.25rem, .8rem + 1.5vw, 2.2rem); letter-spacing: -.03em; }

/* Barra inferior: progreso + flechas */
.zh-hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: 22px; }
.zh-hero__barin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1280px, 100% - 40px);
	margin-inline: auto;
}
.zh-segs { display: flex; flex: 1; gap: 8px; max-width: 520px; }
.zh-root .zh-seg {
	position: relative;
	flex: 1;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.zh-seg::before, .zh-seg::after {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	height: 4px;
}
.zh-seg::before { right: 0; background: rgba(255, 255, 255, .35); }
.zh-seg::after { width: 0; background: var(--zh-accent); }
.zh-seg.is-done::after { width: 100%; }
.zh-seg.is-active::after { animation: zh-fill var(--zh-interval, 6s) linear forwards; }
.zh-hero--static .zh-seg.is-active::after { width: 100%; animation: none; }
.zh-hero:hover .zh-seg.is-active::after,
.zh-hero:focus-within .zh-seg.is-active::after { animation-play-state: paused; }
@keyframes zh-fill { from { width: 0; } to { width: 100%; } }

.zh-arrows { display: flex; gap: 8px; }
.zh-root .zh-arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .75);
	border-radius: 50%;
	background: rgba(20, 19, 18, .3);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.zh-root .zh-arrow:hover { background: var(--zh-accent); border-color: var(--zh-accent); color: var(--zh-ink); }

/* ---------- Secciones ---------- */
.zh-sec { padding: clamp(48px, 7vw, 88px) 0; background: #fff; }
.zh-sec--best { background: var(--zh-mist); }
.zh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.zh-root .zh-h2 {
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 110%;
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem);
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--zh-ink);
}
.zh-head p { max-width: 46ch; margin-top: 8px; color: #5d5a54; }
.zh-root .zh-link {
	flex-shrink: 0;
	padding-bottom: 2px;
	border-bottom: 3px solid var(--zh-accent);
	font-weight: 600;
}
.zh-root .zh-link:hover { border-bottom-color: var(--zh-ink); }

/* ---------- Categorías (mosaico) ---------- */
.zh-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	grid-auto-rows: clamp(170px, 21vw, 290px);
	gap: 12px;
}
.zh-cats--6 { grid-template-columns: repeat(4, 1fr); }
.zh-cats--6 .zh-cat:nth-child(1),
.zh-cats--6 .zh-cat:nth-child(6) { grid-column: span 2; }

.zh-root .zh-cat { position: relative; display: block; overflow: hidden; color: #fff; }
.zh-cat--g1 { background: linear-gradient(140deg, #1c1d20, #56524b); }
.zh-cat--g2 { background: linear-gradient(140deg, #2a2119, #a07a4f); }
.zh-cat--g3 { background: linear-gradient(140deg, #26282c, #767a82); }
.zh-cat--g4 { background: linear-gradient(140deg, #2e2a24, #a8926f); }
.zh-cat--g5 { background: linear-gradient(140deg, #33302b, #8a8478); }
.zh-cat--g6 { background: linear-gradient(140deg, #1f2124, #5f636a); }
.zh-root .zh-cat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.zh-root .zh-cat:hover .zh-cat__img { transform: scale(1.05); }
.zh-cat::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20, 19, 18, .72) 0%, rgba(20, 19, 18, 0) 55%);
}
.zh-cat__name {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	z-index: 2;
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 108%;
	font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem);
	line-height: 1.1;
}
.zh-cat__name::after {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	margin-top: 8px;
	background: var(--zh-accent);
	transition: width .3s ease;
}
.zh-cat:hover .zh-cat__name::after { width: 64px; }

/* ---------- Más vendidos ---------- */
.zh-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.zh-prod__img { position: relative; display: block; overflow: hidden; background: #fff; aspect-ratio: 1; }
.zh-root .zh-prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zh-root .zh-prod:hover .zh-prod__img img { transform: scale(1.04); }
.zh-prod__sale {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: .2em .6em;
	background: var(--zh-sale);
	color: #fff;
	font-family: var(--zh-head);
	font-weight: 800;
	font-size: .9rem;
}
.zh-root .zh-prod__name { margin-top: 12px; color: var(--zh-ink); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.zh-prod__name a { background: linear-gradient(var(--zh-accent), var(--zh-accent)) 0 100% / 0 3px no-repeat; transition: background-size .25s ease; }
.zh-prod:hover .zh-prod__name a { background-size: 100% 3px; }
.zh-prod__price { margin-top: 4px; font-family: var(--zh-head); font-weight: 800; font-size: 1.15rem; }
.zh-prod__price del { margin-right: .4em; font-weight: 500; opacity: .55; }
.zh-prod__price ins { text-decoration: none; }

/* ---------- Banner de promoción ---------- */
.zh-promo { background: var(--zh-dark); color: #fff; }
.zh-promo__grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding: clamp(44px, 6vw, 84px) 0;
}
.zh-promo--noimg .zh-promo__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.zh-promo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.zh-promo--noimg .zh-promo__copy { align-items: center; max-width: 760px; }
.zh-root .zh-promo__title {
	color: #fff;
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 112%;
	font-size: clamp(2rem, 1.1rem + 3.8vw, 4.2rem);
	line-height: 1;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.zh-root .zh-promo__text { max-width: 44ch; font-size: 1.15rem; color: rgba(255, 255, 255, .9); }
.zh-promo__media { box-shadow: 12px 12px 0 var(--zh-accent); }
.zh-root .zh-promo__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.zh-cd[hidden] { display: none; }
.zh-root .zh-cd__lead { margin-bottom: 8px; font-weight: 600; color: #fff; }
.zh-cd__row { display: flex; gap: 10px; }
.zh-cd__b { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 8px; border: 2px solid rgba(255, 255, 255, .28); }
.zh-cd__n {
	font-family: var(--zh-head);
	font-weight: 800;
	font-stretch: 112%;
	font-size: 2rem;
	line-height: 1;
	color: var(--zh-accent);
	font-variant-numeric: tabular-nums;
}
.zh-cd__l { margin-top: 4px; font-size: .8rem; opacity: .85; }

/* ---------- Tabletas ---------- */
@media (max-width: 1000px) {
	.zh-prods { grid-template-columns: repeat(3, 1fr); }
	.zh-promo__grid { grid-template-columns: 1fr; }
	.zh-promo__media { max-width: 560px; }
}

/* ---------- Celulares ---------- */
@media (max-width: 700px) {
	.zh-hero { height: clamp(540px, 130vw, 720px); }
	.zh-slide__media::after,
	.zh-slide--right .zh-slide__media::after,
	.zh-slide--center .zh-slide__media::after {
		background: linear-gradient(0deg, rgba(20, 19, 18, var(--zh-shade, .6)) 0%, rgba(20, 19, 18, calc(var(--zh-shade, .6) * .55)) 55%, rgba(20, 19, 18, .05) 100%);
	}
	.zh-slide__inner,
	.zh-slide--center .zh-slide__inner,
	.zh-slide--right .zh-slide__inner { justify-content: flex-start; align-items: flex-end; padding-bottom: 84px; }
	.zh-slide__copy,
	.zh-slide--center .zh-slide__copy,
	.zh-slide--right .zh-slide__copy { align-items: flex-start; text-align: left; gap: 14px; }
	.zh-sticker,
	.zh-slide--right .zh-sticker,
	.zh-slide--center .zh-sticker { top: 18px; right: 0; left: auto; width: 116px; transform: rotate(-20deg) scale(.6); }
	.zh-sticker__big { font-size: 2rem; }
	.zh-sticker--long .zh-sticker__big { font-size: 1.3rem; }
	.zh-slide.is-active .zh-sticker { transform: rotate(-8deg); }
	.zh-root .zh-arrow { width: 42px; height: 42px; }
	.zh-root .zh-badge__logo { height: calc(var(--zh-logo-h, 80px) * .72); }
	.zh-cats,
	.zh-cats--6 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
	.zh-head { flex-direction: column; align-items: flex-start; }
	.zh-prods { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
	.zh-cd__b { min-width: 0; flex: 1; }
	.zh-cd__row { width: 100%; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.zh-root *, .zh-root *::before, .zh-root *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
	.zh-root .zh-slide__media img { transform: none; }
	.zh-seg.is-active::after { width: 100%; }
}
