/* GS Tours - divisores de papel rasgado.
   Uso (Elementor > Avanzado > Clases CSS): gs-torn-top | gs-torn-bottom, + gs-torn--v2 | gs-torn--v3, gs-torn--flip.
   --gs-torn-color: color del papel (igual al de la seccion vecina). --gs-torn-h: altura. */
.gs-torn-top,
.gs-torn-bottom {
	position: relative;
	--gs-torn-color: #fff;
	--gs-torn-h: clamp(16px, 2.5vw, 40px);
	--gs-torn-img: url(../img/torn/torn-1.svg);
	--gs-torn-fx: 1;
}
.gs-torn--v2 { --gs-torn-img: url(../img/torn/torn-2.svg); }
.gs-torn--v3 { --gs-torn-img: url(../img/torn/torn-3.svg); }
.gs-torn--flip { --gs-torn-fx: -1; }

.gs-torn-top::before,
.gs-torn-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: var(--gs-torn-h);
	background-color: var(--gs-torn-color);
	-webkit-mask: var(--gs-torn-img) center / 100% 100% no-repeat;
	mask: var(--gs-torn-img) center / 100% 100% no-repeat;
	pointer-events: none;
	z-index: 1; /* sobre la imagen de fondo, bajo el contenido (que va en z-index >= 2) */
}
.gs-torn-top::before { top: -1px; transform: scale(var(--gs-torn-fx), -1); }
.gs-torn-bottom::after { bottom: -1px; transform: scaleX(var(--gs-torn-fx)); }

/* El contenido de Elementor queda por encima del borde. */
.gs-torn-top > .e-con-inner,
.gs-torn-top > .elementor-container,
.gs-torn-top > .elementor-widget-wrap,
.gs-torn-bottom > .e-con-inner,
.gs-torn-bottom > .elementor-container,
.gs-torn-bottom > .elementor-widget-wrap { position: relative; z-index: 2; }
