/* El Rey De Las Botas — Hero "El Campo" (Brand Guidelines v1.0 §1, §2, §7). */

.erh-hero {
	--h-verde: #0B3D2C;
	--h-noche: #06231A;
	--h-oro: #F2B632;
	--h-oro-d: #D99A12;
	--h-rojo: #E23B2E;
	--h-rojo-t: #B8261B;
	--h-cal: #F4F5EF;
	--h-linea: #D7E3D4;
	--h-ink: #121613;
	--h-grada: #5C655F;
	--h-photo: #F0F0F0;
	--h-fd: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
	--h-fu: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--h-fb: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--h-bw: 2.5px;
	--h-sh-sm: 3px 3px 0 var(--h-ink);
	--h-sh: 5px 5px 0 var(--h-ink);
	--h-sh-lg: 8px 8px 0 var(--h-ink);

	position: relative;
	isolation: isolate;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	color: var(--h-cal);
	font-family: var(--h-fb);
	background-color: var(--h-verde);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='%23F2B632' fill-opacity='.11'%3E%3Ccircle cx='14' cy='14' r='5'/%3E%3Ccircle cx='42' cy='42' r='5'/%3E%3Ccircle cx='42' cy='14' r='2.5'/%3E%3Ccircle cx='14' cy='42' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
	border-bottom: var(--h-bw) solid var(--h-ink);
}
.erh-hero *, .erh-hero *::before, .erh-hero *::after { box-sizing: border-box; }

/* Pitch markings (halfway line + centre circle), purely decorative. */
.erh-hero__pitch {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 72% 50%, transparent 0 calc(min(34vw, 380px) - 2px), rgba(244, 245, 239, .09) calc(min(34vw, 380px) - 2px) min(34vw, 380px), transparent min(34vw, 380px)),
		radial-gradient(circle at 72% 50%, rgba(244, 245, 239, .12) 0 6px, transparent 7px),
		linear-gradient(90deg, transparent calc(72% - 1px), rgba(244, 245, 239, .09) calc(72% - 1px) calc(72% + 1px), transparent calc(72% + 1px));
}

.erh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	gap: clamp(28px, 5vw, 80px);
	max-width: 1360px;
	min-height: min(86vh, 760px);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px) clamp(48px, 6vw, 96px);
}

/* ---------- Copy ---------- */
.erh-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 24px);
	min-width: 0;
}
.erh-hero__eyebrow {
	display: inline-block;
	padding: 7px 14px;
	font: 700 13px/1.2 var(--h-fu);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--h-ink);
	background: var(--h-oro);
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 999px;
	box-shadow: var(--h-sh-sm);
}
.erh-hero .erh-hero__title {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: var(--h-fd);
	font-weight: 900;
	font-size: clamp(54px, 8.6vw, 132px);
	line-height: .86;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--h-cal);
	text-shadow: 4px 4px 0 var(--h-ink);
}
.erh-hero__line { display: block; }
.erh-hero__line--gold { color: var(--h-oro); }
.erh-hero__lead {
	max-width: 46ch;
	margin: 0;
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.55;
	color: var(--h-linea);
}
.erh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.erh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 14px 30px;
	font: 700 19px/1 var(--h-fu);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 8px;
	box-shadow: var(--h-sh);
	cursor: pointer;
	transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.erh-btn--gold { color: var(--h-ink) !important; background: var(--h-oro); }
.erh-btn--gold:hover { background: var(--h-oro-d); }
.erh-btn--green { color: var(--h-cal) !important; background: var(--h-verde); }
.erh-btn--green:hover { background: var(--h-noche); }
.erh-btn--sm { min-height: 46px; padding: 10px 18px; font-size: 16px; box-shadow: var(--h-sh-sm); }
.erh-btn:hover { transform: translate(-1px, -1px); }
.erh-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.erh-btn .erh-icon { width: 22px; height: 22px; transition: transform .15s ease; }
.erh-btn:hover .erh-icon { transform: translateX(4px); }

.erh-icon {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Sole chooser */
.erh-hero__soles { width: 100%; margin-top: 4px; }
.erh-hero__soles-label {
	display: block;
	margin-bottom: 10px;
	font: 700 13px/1 var(--h-fu);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--h-linea);
}
.erh-hero__soles ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 560px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.erh-hero__soles li { margin: 0; padding: 0; }
.erh-hero__soles li::before { display: none !important; }
.erh-sole {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	min-height: 44px;
	padding: 10px 12px;
	color: var(--h-ink) !important;
	text-decoration: none !important;
	background: var(--h-cal);
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 8px;
	box-shadow: var(--h-sh-sm);
	transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.erh-sole strong { font: 900 26px/1 var(--h-fd); }
.erh-sole span { font: 700 14px/1.15 var(--h-fu); text-transform: uppercase; letter-spacing: .02em; }
.erh-sole em { font: 500 12px/1.2 var(--h-fb); font-style: normal; color: var(--h-grada); }
.erh-sole:hover { background: #CFE6CF; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--h-ink); }
.erh-sole:active { transform: translate(3px, 3px); box-shadow: none; }

/* ---------- Stage (deal spotlight) ---------- */
.erh-hero__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	perspective: 1200px;
}
.erh-stage__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.erh-stage__label {
	font: 700 15px/1 var(--h-fu);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--h-oro);
}
.erh-stage__pause,
.erh-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--h-ink);
	background: var(--h-cal);
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 8px;
	box-shadow: var(--h-sh-sm);
	cursor: pointer;
	transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.erh-stage__pause:hover, .erh-arrow:hover { background: var(--h-oro); }
.erh-stage__pause:active, .erh-arrow:active { transform: translate(3px, 3px); box-shadow: none; }
.erh-stage__pause .erh-icon { width: 20px; height: 20px; }
.erh-stage__pause .erh-icon--play { display: none; }
.erh-stage__pause[aria-pressed="true"] .erh-icon--pause { display: none; }
.erh-stage__pause[aria-pressed="true"] .erh-icon--play { display: block; }

.erh-stage__viewport {
	position: relative;
	display: grid;
	transform-style: preserve-3d;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1);
	will-change: transform;
}
.erh-card {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	color: var(--h-ink);
	background: #FFFFFF;
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 14px;
	box-shadow: var(--h-sh-lg);
	opacity: 0;
	transform: translateX(24px) rotate(1.5deg);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.erh-card[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.erh-card.is-active { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.erh-card.is-leaving { opacity: 0; transform: translateX(-24px) rotate(-1.5deg); }

.erh-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	max-height: min(52vh, 460px);
	overflow: hidden;
	background: var(--h-photo);
	border-bottom: var(--h-bw) solid var(--h-ink);
}
.erh-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transform: scale(1.02);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.erh-card.is-active .erh-card__media:hover .erh-card__img { transform: scale(1.07) rotate(-2deg); }
.erh-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 14px;
	font: 700 20px/1 var(--h-fu);
	font-variant-numeric: tabular-nums;
	color: #FFFFFF;
	background: var(--h-rojo);
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 999px;
	box-shadow: var(--h-sh-sm);
}
.erh-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}
.erh-hero .erh-card__title {
	margin: 0;
	font: 700 clamp(20px, 1.8vw, 26px)/1.1 var(--h-fu);
	letter-spacing: .01em;
	text-transform: uppercase;
}
.erh-card__title a { color: var(--h-ink) !important; text-decoration: none !important; }
.erh-card__title a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.erh-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
	font-family: var(--h-fu);
	line-height: 1;
}
.erh-card__price ins { font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); color: var(--h-rojo-t); text-decoration: none; background: none; }
.erh-card__price del { font-weight: 600; font-size: 18px; color: var(--h-grada); text-decoration-thickness: 1.5px; }
.erh-card__from { flex-basis: 100%; font: 700 12px/1 var(--h-fu); letter-spacing: .14em; text-transform: uppercase; color: var(--h-grada); }
.erh-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
}
.erh-card__save {
	padding: 5px 11px;
	font: 700 14px/1.1 var(--h-fu);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--h-ink);
	background: #FBE2A0;
	border: 2px solid var(--h-ink);
	border-radius: 999px;
}

/* Controls */
.erh-stage__controls {
	display: flex;
	align-items: center;
	gap: 10px;
}
.erh-thumbs {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 4px 6px 2px;
}
.erh-thumbs::-webkit-scrollbar { display: none; }
.erh-thumb {
	position: relative;
	flex: 1 0 52px;
	max-width: 76px;
	aspect-ratio: 1 / 1;
	padding: 0;
	overflow: hidden;
	background: var(--h-photo);
	border: var(--h-bw) solid var(--h-ink);
	border-radius: 8px;
	box-shadow: var(--h-sh-sm);
	cursor: pointer;
	opacity: .72;
	transition: opacity .15s ease, transform .1s ease;
}
.erh-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.erh-thumb:hover { opacity: 1; }
.erh-thumb.is-active { opacity: 1; outline: 3px solid var(--h-oro); outline-offset: 1px; }
.erh-thumb__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 0;
	background: var(--h-oro);
}
.erh-thumb.is-active .erh-thumb__bar { animation: erh-progress var(--erh-interval, 5500ms) linear forwards; }
.erh-hero__stage.is-paused .erh-thumb.is-active .erh-thumb__bar { animation-play-state: paused; }
@keyframes erh-progress { to { width: 100%; } }

/* Focus */
.erh-hero a:focus-visible,
.erh-hero button:focus-visible {
	outline: 3px solid var(--h-oro);
	outline-offset: 3px;
}

/* ---------- Ticker ---------- */
.erh-ticker {
	position: relative;
	overflow: hidden;
	color: var(--h-ink);
	background: var(--h-oro);
	border-top: var(--h-bw) solid var(--h-ink);
	white-space: nowrap;
}
.erh-ticker__track {
	display: inline-flex;
	animation: erh-marquee 38s linear infinite;
}
.erh-ticker:hover .erh-ticker__track { animation-play-state: paused; }
.erh-ticker__group {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	padding: 12px 11px;
	font: 800 clamp(16px, 1.5vw, 20px)/1 var(--h-fd);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.erh-ticker__crown { width: 18px; height: 18px; }
@keyframes erh-marquee { to { transform: translateX(-50%); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.erh-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		gap: 36px;
	}
	.erh-hero__pitch {
		background:
			radial-gradient(circle at 50% 78%, transparent 0 calc(min(60vw, 340px) - 2px), rgba(244, 245, 239, .08) calc(min(60vw, 340px) - 2px) min(60vw, 340px), transparent min(60vw, 340px)),
			linear-gradient(180deg, transparent calc(78% - 1px), rgba(244, 245, 239, .08) calc(78% - 1px) calc(78% + 1px), transparent calc(78% + 1px));
	}
	.erh-hero__stage { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
	.erh-hero__inner { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
	.erh-hero .erh-hero__title { font-size: clamp(48px, 15vw, 76px); text-shadow: 3px 3px 0 var(--h-ink); }
	.erh-hero__actions, .erh-hero__actions .erh-btn { width: 100%; }
	.erh-hero__soles ul { gap: 8px; }
	.erh-sole { padding: 8px 9px; }
	.erh-sole strong { font-size: 22px; }
	.erh-sole span { font-size: 12px; }
	.erh-sole em { font-size: 11px; }
	.erh-card__media { max-height: none; }
	.erh-card__foot .erh-btn { width: 100%; }
	.erh-card { box-shadow: var(--h-sh); }
	.erh-thumb { flex-basis: 46px; }
}
@media (max-width: 359px) {
	.erh-hero__soles ul { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.erh-hero *, .erh-hero *::before, .erh-hero *::after {
		animation: none !important;
		transition: none !important;
	}
	.erh-stage__viewport { transform: none !important; }
	.erh-ticker__track { transform: none; }
}

/* Brand tagline kept under the headline as a sign-off. */
.erh-hero__tagline {
	margin: -4px 0 0;
	font: 700 clamp(17px, 1.6vw, 22px)/1.2 var(--h-fu);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--h-oro);
}
