/* Botones NH Roll — los valores por defecto llegan como variables en :root desde Ajustes → Botones NH Roll */

/* ---- Forma (doble clase para ganar a los estilos locales de Elementor) ---- */
.elementor .nh-roll.nh-roll,
.nh-roll.nh-roll {
	border-radius: var(--nh-roll-radius, 30px);
	transition-property: border-radius, background-color, color, border-color, box-shadow, transform;
	transition-duration: var(--nh-roll-shape-dur, 500ms), .3s, .3s, .3s, .3s, .3s;
	transition-timing-function: var(--nh-roll-ease, cubic-bezier(.65,0,.35,1)), ease, ease, ease, ease, ease;
}
.elementor .nh-roll.nh-roll:hover,
.elementor .nh-roll.nh-roll:focus-visible,
.nh-roll.nh-roll:hover,
.nh-roll.nh-roll:focus-visible {
	border-radius: var(--nh-roll-radius-hover, 4px 30px 4px 30px);
}

/* ---- Texto letra a letra ---- */
.nh-roll .nh-roll__word { display: inline-block; white-space: nowrap; }
.nh-roll .nh-roll__ch {
	display: inline-block;
	position: relative;
	overflow: hidden;
	vertical-align: top;
	line-height: inherit;
}
.nh-roll .nh-roll__ch > span {
	display: block;
	transition: transform var(--nh-roll-dur, 450ms) var(--nh-roll-ease, cubic-bezier(.65,0,.35,1));
	transition-delay: calc(var(--i, 0) * var(--nh-roll-stagger, 18ms));
	will-change: transform;
}
.nh-roll .nh-roll__ch > span + span {
	position: absolute;
	left: 0;
	top: calc(100% * var(--nh-roll-dir, 1));
}
.nh-roll:hover .nh-roll__ch > span,
.nh-roll:focus-visible .nh-roll__ch > span {
	transform: translateY(calc(-100% * var(--nh-roll-dir, 1)));
}

/* ---- Clases modificadoras por botón ---- */
.nh-roll.nh-roll--lento      { --nh-roll-dur: 700ms; --nh-roll-stagger: 32ms; --nh-roll-shape-dur: 800ms; }
.nh-roll.nh-roll--rapido     { --nh-roll-dur: 300ms; --nh-roll-stagger: 8ms;  --nh-roll-shape-dur: 300ms; }
.nh-roll.nh-roll--arriba     { --nh-roll-dir: 1; }
.nh-roll.nh-roll--abajo      { --nh-roll-dir: -1; }
.nh-roll.nh-roll--hoja-derecha   { --nh-roll-radius-hover: var(--nh-roll-leaf-r); }
.nh-roll.nh-roll--hoja-izquierda { --nh-roll-radius-hover: var(--nh-roll-leaf-l); }
.nh-roll.nh-roll--sin-forma  { --nh-roll-radius-hover: var(--nh-roll-radius); }
.nh-roll.nh-roll--sin-letras .nh-roll__ch > span { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	.nh-roll .nh-roll__ch > span { transition: none; }
	.nh-roll:hover .nh-roll__ch > span,
	.nh-roll:focus-visible .nh-roll__ch > span { transform: none; }
}
