/* Nubéame Divi Modules — Texto animado */

.nbm-ta .nbm-ta__heading {
	padding: 0;
}

.nbm-ta .nbm-ta__part,
.nbm-ta .nbm-ta__main {
	display: inline-block;
	line-height: 1;
	vertical-align: baseline;
}

.nbm-ta .nbm-ta__main {
	animation-duration: var(--nbm-ta-duration, 500ms);
	animation-fill-mode: forwards;
	animation-timing-function: ease;
}

/* Cursor de la máquina de escribir */
.nbm-ta--typing .nbm-ta__main::after {
	content: "";
	display: inline-block;
	width: 0.06em;
	height: 0.9em;
	margin-left: 0.08em;
	background: currentColor;
	vertical-align: -0.05em;
	animation: nbm-ta-caret 1s steps(1) infinite;
}

.nbm-ta--typing .nbm-ta__main.is-done::after {
	display: none;
}

@keyframes nbm-ta-caret {
	50% { opacity: 0; }
}

/* Entrada y salida de cada efecto */
.nbm-ta--fade .is-out { animation-name: nbm-ta-fade-out; }
.nbm-ta--fade .is-in { animation-name: nbm-ta-fade-in; }
@keyframes nbm-ta-fade-out { to { opacity: 0; } }
@keyframes nbm-ta-fade-in { from { opacity: 0; } to { opacity: 1; } }

.nbm-ta--slide .nbm-ta__heading { overflow: hidden; }
.nbm-ta--slide .is-out { animation-name: nbm-ta-slide-out; }
.nbm-ta--slide .is-in { animation-name: nbm-ta-slide-in; }
@keyframes nbm-ta-slide-out { to { opacity: 0; transform: translateY(100%); } }
@keyframes nbm-ta-slide-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

.nbm-ta--zoom .is-out { animation-name: nbm-ta-zoom-out; }
.nbm-ta--zoom .is-in { animation-name: nbm-ta-zoom-in; }
@keyframes nbm-ta-zoom-out { to { opacity: 0; transform: scale(0.2); } }
@keyframes nbm-ta-zoom-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }

.nbm-ta--bounce .is-out { animation-name: nbm-ta-bounce-out; }
.nbm-ta--bounce .is-in { animation-name: nbm-ta-bounce-in; }
@keyframes nbm-ta-bounce-out { 30% { transform: scale(0.95); } 50% { transform: scale(1.1); opacity: 1; } to { transform: scale(0.2); opacity: 0; } }
@keyframes nbm-ta-bounce-in { from { transform: scale(0.2); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } 70% { transform: scale(0.9); } to { transform: none; opacity: 1; } }

.nbm-ta--flip .nbm-ta__heading { perspective: 400px; }
.nbm-ta--flip .is-out { animation-name: nbm-ta-flip-out; }
.nbm-ta--flip .is-in { animation-name: nbm-ta-flip-in; }
@keyframes nbm-ta-flip-out { to { transform: rotateX(90deg); } }
@keyframes nbm-ta-flip-in { from { transform: rotateX(90deg); } to { transform: none; } }

.nbm-ta--wipe .is-out { animation-name: nbm-ta-wipe-out; }
.nbm-ta--wipe .is-in { animation-name: nbm-ta-wipe-in; }
@keyframes nbm-ta-wipe-out {
	from { opacity: 1; clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0); }
	to { opacity: 0; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); }
}
@keyframes nbm-ta-wipe-in {
	from { opacity: 0; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); }
	to { opacity: 1; clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0); }
}

/* Quien tenga activado "reducir movimiento" ve las frases cambiar sin animación */
@media (prefers-reduced-motion: reduce) {
	.nbm-ta .nbm-ta__main { animation: none !important; }
}
