/* Markup generado por [hero_rotator] (inc/hero-rotator.php). */

.screen-reader-text {
	position: absolute !important; /* patrón WP estándar */
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Título ---- */
.hero-rotator__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(42px, 12vw, 72px);
	letter-spacing: -.055em;
	line-height: 1.02;
}
.hero-rotator__static { display: block; }
.hero-rotator__roll {
	display: block;
	height: 1.15em;
	line-height: 1.1;
	overflow: hidden;
	color: var(--hero-accent);
	transition: color .5s;
}
.hero-rotator__word {
	display: inline-block;
	transition: transform .45s var(--ease-swap), opacity .45s;
}
.hero-rotator__word--out { transform: translateY(-105%); opacity: 0; }
.hero-rotator__word--pre { transform: translateY(105%); opacity: 0; transition: none; }

/* ---- Disco ---- */
.hero-rotator__disc-box {
	position: relative;
	width: min(72vw, 330px);
	aspect-ratio: 1;
	margin-inline: auto;
}
.hero-rotator__disc {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: var(--hero-disc);
	transition: background-color .7s ease;
}
.hero-rotator__product {
	width: 74%;
	height: auto;
	mix-blend-mode: multiply;
	transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.hero-rotator__product--swap { transform: scale(.6) rotate(-14deg); opacity: 0; }
.hero-rotator__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity var(--dur-base);
}
.hero-rotator__disc--people .hero-rotator__photo { opacity: 1; }
.hero-rotator__disc--people .hero-rotator__product { opacity: 0; }

.hero-rotator__badge {
	position: absolute;
	right: -5%;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 120px;
	max-width: 165px;
	padding: 9px 12px;
	background: #fff;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}
/* img en el selector: le gana a ".elementor img", que fuerza height: auto. */
.hero-rotator__badge img { height: 24px; width: auto; max-width: 70px; object-fit: contain; }
.hero-rotator__logo[hidden] { display: none; }
.hero-rotator__cat { font-size: 10px; line-height: 1.3; color: var(--color-muted); }

/* ---- Categorías ---- */
.hero-rotator__cats {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	padding: 18px var(--wrap-pad) 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--wrap-pad);
	scrollbar-width: thin;
}
.hero-rotator__cat-btn,
.hero-rotator__pause {
	flex: 0 0 auto;
	min-height: 38px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	scroll-snap-align: start;
	padding: 9px 14px;
	border: 1px solid rgba(40, 30, 25, .12);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--color-muted);
	cursor: pointer;
}
/* Pisa el hover rosado que el tema padre le pone a todos los <button>. */
.hero-rotator__cat-btn:hover,
.hero-rotator__cat-btn:focus { background: rgba(41, 33, 31, .08); color: var(--color-ink); }
.hero-rotator__pause:hover,
.hero-rotator__pause:focus { background: var(--color-ink); color: #fff; }
.hero-rotator__cat-btn[aria-current="true"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.hero-rotator__pause { border: 1.5px solid var(--color-ink); color: var(--color-ink); }

@media (max-width: 390px) {
	.hero-rotator__title { font-size: clamp(42px, 11.5vw, 50px); }
	.hero-rotator__disc-box { width: min(73vw, 275px); }
	.hero-rotator__badge { right: -8%; }
}

@media (min-width: 768px) {
	.hero-rotator__title { font-size: clamp(46px, 6.8vw, 78px); letter-spacing: -.045em; line-height: 1; }
	.hero-rotator__roll { height: 1.12em; }
	.hero-rotator__disc-box { width: min(100%, 390px); }
	.hero-rotator__badge { right: 2%; bottom: 8%; gap: var(--space-3); min-width: 170px; max-width: none; padding: 12px 16px; }
	.hero-rotator__badge img { height: 30px; max-width: 100px; }
	.hero-rotator__cat { font-size: 12px; }

	.hero-rotator__cats { flex-wrap: wrap; gap: 6px; padding: 0; overflow: visible; }
	.hero-rotator__cat-btn,
	.hero-rotator__pause { min-height: 38px; font-size: 14px; padding: 8px 14px; }
	.hero-rotator__cat-btn { border-color: transparent; }
	.hero-rotator__pause { margin-left: auto; }
}

@media (min-width: 1025px) {
	.hero-rotator__title { font-size: clamp(46px, 6vw, 100px); }
	.hero-rotator__disc-box { width: min(100%, 510px); }
	.hero-rotator__badge { min-width: 190px; }
	.hero-rotator__badge img { height: 34px; max-width: 110px; }
	.hero-rotator__cat { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero,
	.hero-rotator__roll,
	.hero-rotator__word,
	.hero-rotator__disc,
	.hero-rotator__product,
	.hero-rotator__photo { transition: none; }
}
