/*
 * PF Hero — hero + panel patrocinado + controles + beneficios de
 * Hardware Store Homepage.dc.html. Columnas por ancho del bloque.
 */

.pf-hero-root {
	container-type: inline-size;
}

.pf-hero {
	--pf-hero-h: 420px;
	padding: 24px 0 28px;
}

.pf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
	gap: 20px;
	align-items: stretch;
}

.pf-hero--solo .pf-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

/* ---------- Carrusel ---------- */

.pf-hero__stage {
	position: relative;
	min-width: 0;
	height: var(--pf-hero-h);
	overflow: hidden;
	background: #f4f4f7;
	touch-action: pan-y;
}

.pf-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.pf-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease, visibility 0s;
}

.pf-hero__media {
	position: absolute;
	inset: 0;
	display: block;
}

.pf-hero-root .pf-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.pf-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0) 62%);
}

.pf-hero__copy {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 56%;
	min-width: 320px;
	max-width: 560px;
	padding: 40px 24px 40px 36px;
}

.pf-hero-root .pf-hero__kicker {
	margin: 0 0 2px;
	font-family: var(--pf-font-display);
	font-weight: 700;
	font-size: clamp(15px, 1.7vw, 22px);
	line-height: 1.25;
	color: var(--pf-text);
}

.pf-hero-root .pf-hero__big {
	margin: 0 0 10px;
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 0.92;
	letter-spacing: -0.035em;
	color: var(--pf-ink);
	white-space: nowrap;
}

.pf-hero-root .pf-hero__headline {
	max-width: 340px;
	margin: 0 0 26px;
	font-family: var(--pf-font-display);
	font-weight: 700;
	font-size: clamp(15px, 1.7vw, 22px);
	line-height: 1.3;
	color: var(--pf-text);
	text-wrap: pretty;
}

.pf-hero-root .pf-hero__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 14px 26px;
	border-radius: 4px;
	background: var(--pf-orange);
	color: #fff;
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: 13.5px;
	line-height: 1;
	letter-spacing: 0.06em;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.pf-hero-root .pf-hero__cta:hover,
.pf-hero-root .pf-hero__cta:focus {
	background: var(--pf-orange-dark);
	color: #fff;
}

.pf-hero-root .pf-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 64px;
	margin-top: -32px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pf-ink);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.pf-hero-root .pf-hero__arrow:hover,
.pf-hero-root .pf-hero__arrow:focus {
	background: #fff;
	color: var(--pf-orange);
}

.pf-hero__arrow--prev {
	left: 0;
}

.pf-hero__arrow--next {
	right: 0;
}

/* ---------- Panel patrocinado ---------- */

.pf-hero__sponsor {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--pf-line);
	color: inherit;
}

.pf-hero__sptop {
	position: relative;
	display: block;
	flex: 1;
	min-height: 120px;
	background: #f4f4f7;
}

.pf-hero-root .pf-hero__spimg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.pf-hero__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pf-hero__badge {
	padding: 4px 7px;
	background: var(--pf-ink);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.pf-hero__badge--muted {
	background: var(--pf-text);
	letter-spacing: 0.06em;
}

.pf-hero__spbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	background: var(--pf-orange);
}

.pf-hero__sptitle {
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.25;
	color: #fff;
	text-align: center;
}

.pf-hero-root .pf-hero__spprod {
	display: block;
	width: 100%;
	height: 78px;
	object-fit: contain;
}

.pf-hero__splink {
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	text-decoration: underline;
}

.pf-hero__sponsor:hover .pf-hero__splink {
	text-decoration-thickness: 2px;
}

/* ---------- Controles ---------- */

.pf-hero__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding-top: 6px;
}

/* Cada punto es un objetivo táctil de 44 px; lo visible es el ::before. */
.pf-hero-root .pf-hero__dot,
.pf-hero-root .pf-hero__play {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 32px;
	padding: 0 3px;
	color: #c81e2c;
}

.pf-hero-root .pf-hero__dot::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 100px;
	background: var(--pf-text-2);
	transition: width 0.25s ease, background-color 0.25s ease;
}

.pf-hero-root .pf-hero__dot.is-active::before {
	width: 30px;
	background: #c81e2c;
}

.pf-hero__icon-play {
	display: none;
}

.pf-hero.is-paused .pf-hero__icon-play {
	display: block;
}

.pf-hero.is-paused .pf-hero__icon-pause {
	display: none;
}

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

.pf-hero__benefits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin-top: 8px;
	padding: 18px 24px;
	background: var(--pf-soft);
}

.pf-hero__blist {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
}

.pf-hero__benefit {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

.pf-hero__benefit strong {
	font-family: var(--pf-font-display);
	font-weight: 800;
	font-size: 14px;
	color: var(--pf-ink);
	white-space: nowrap;
}

.pf-hero__benefit span {
	font-size: 13px;
	line-height: 1.4;
	color: var(--pf-text-3);
}

.pf-hero-root .pf-hero__note {
	flex: 1;
	min-width: 220px;
	margin: 0;
	font-size: 11px;
	line-height: 1.45;
	color: #a8abbb;
}

/* ---------- Tablet: el panel pasa abajo como tarjeta horizontal ---------- */

@container (max-width: 900px) {
	.pf-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.pf-hero__sponsor {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}

	.pf-hero__sptop {
		min-height: 150px;
	}

	.pf-hero__spbody {
		justify-content: center;
	}
}

/* ---------- Teléfono ---------- */

@container (max-width: 600px) {
	.pf-hero {
		--pf-hero-h: 360px;
		padding: 12px 0 16px;
	}

	/* Texto arriba, imagen visible abajo. */
	.pf-hero__shade {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0) 72%);
	}

	.pf-hero__copy {
		bottom: auto;
		justify-content: flex-start;
		width: 100%;
		min-width: 0;
		max-width: none;
		padding: 22px 20px;
	}

	.pf-hero-root .pf-hero__big {
		font-size: clamp(40px, 13cqw, 56px);
		margin-bottom: 6px;
	}

	.pf-hero-root .pf-hero__headline {
		max-width: 280px;
		margin-bottom: 16px;
		font-size: 15px;
	}

	.pf-hero-root .pf-hero__cta {
		padding: 13px 20px;
		font-size: 13px;
	}

	.pf-hero-root .pf-hero__arrow {
		display: none; /* Se desliza con el dedo. */
	}

	.pf-hero__sponsor {
		grid-template-columns: 38% minmax(0, 1fr);
	}

	.pf-hero__sptop {
		min-height: 128px;
	}

	.pf-hero__spbody {
		gap: 8px;
		padding: 12px;
	}

	.pf-hero__sptitle {
		font-size: 14.5px;
		text-align: left;
	}

	.pf-hero-root .pf-hero__spprod {
		height: 48px;
		object-position: left center;
	}

	.pf-hero__splink {
		text-align: left;
	}

	.pf-hero__benefits {
		gap: 10px;
		padding: 14px 16px;
	}

	.pf-hero__blist {
		flex-direction: column;
		gap: 8px;
	}

	.pf-hero__benefit {
		flex-wrap: wrap;
		gap: 2px 6px;
	}

	.pf-hero__benefit span {
		font-size: 12.5px;
	}

	.pf-hero-root .pf-hero__note {
		min-width: 0;
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pf-hero__slide,
	.pf-hero-root .pf-hero__dot::before {
		transition: none;
	}
}
