/* Full-width organic edges. Put the background on the masked section itself. */
.tsm-seccion-curva-01 {
	--tsm-seccion-mascara: url('../masks/seccion-01.svg');
	--tsm-seccion-decoracion: url('../masks/seccion-fondo-01.svg');
}
.tsm-seccion-curva-02 {
	--tsm-seccion-mascara: url('../masks/seccion-02.svg');
	--tsm-seccion-decoracion: url('../masks/seccion-fondo-02.svg');
}
.tsm-seccion-curva-03 {
	--tsm-seccion-mascara: url('../masks/seccion-03.svg');
	--tsm-seccion-decoracion: url('../masks/seccion-fondo-03.svg');
}

:is(.tsm-seccion-curva-01, .tsm-seccion-curva-02, .tsm-seccion-curva-03) {
	position: relative;
	z-index: 1;
	-webkit-mask-image: var(--tsm-seccion-mascara);
	mask-image: var(--tsm-seccion-mascara);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* Added to the section's parent when a decorative SVG is requested. */
.tsm-seccion-host {
	isolation: isolate;
	overflow: visible;
}

.tsm-seccion-decoracion {
	--tsm-seccion-salida: 1.025;
	position: absolute;
	display: block;
	z-index: 0;
	pointer-events: none;
	background-color: var(--tsm-fondo-color, var(--tsm-marca-salmon));
	-webkit-mask-image: var(--tsm-seccion-decoracion);
	mask-image: var(--tsm-seccion-decoracion);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	transform: translateY(0) scaleY(1);
	transform-origin: center;
	transition: transform 1000ms cubic-bezier(.2, .75, .25, 1);
}

.tsm-seccion-decoracion.tsm-en-vista {
	transform: translateY(3px) scaleY(var(--tsm-seccion-salida));
}

@media (prefers-reduced-motion: reduce) {
	.tsm-seccion-decoracion {
		transition: none;
	}
}
