/*Del sensor al panel: las tres fases del proceso*/
.comotrabajamos {
	scroll-margin-top: 4em;

	/*Vista movil*/
	@media screen and (max-width: 600px) {
		font-size: 0.8em;
	}

	/*Vista PC*/
	@media screen and (min-width: 600px) {
		font-size: 0.9em;
	}

	.header {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;

		/* Vista Movil */
		@media screen and (orientation: portrait) {
			flex-direction: column;
		}

		margin-bottom: 4em;

		h1 {
			font-size: 3em;
			line-height: 125%;
			font-family: 'Montserrat', Arial;
		}

		h2 {
			font-size: 1.4em;
			margin-top: 0.5em;
			margin-bottom: 0.5em;
			line-height: 125%;

			/*Vista movil*/
			@media screen and (max-width: 600px) {
				margin-top: 1.5em;
				margin-bottom: 1.5em;
			}

		}

		p {
			line-height: 175%;

			/*Vista movil*/
			@media screen and (max-width: 600px) {
				font-size: 1rem;
				line-height: 125%;
			}


			b {
				color: black;
			}
		}

		> * {
			flex: 1;
		}

	}

	.body {
		display: flex;
		flex-wrap: wrap;

		/* Caret */
		overflow: hidden;

		/* Vista Movil */
		@media screen and (orientation: portrait) {
			flex-direction: column;

			.bloque::after {
				top: -1px;
				transform: translateX(-50%) scaleX(50%);
				left: 50%;
				border-top-color: inherit !important;
			}
		}

		/* Vista Movil */
		@media screen and (orientation: landscape) {
			flex-direction: row;

			.bloque::after {
				left: -1px;
				transform: translateY(-50%) scaleY(50%);
				top: 50%;
				border-left-color: inherit !important;
			}
		}



		.bloque {
			flex: 1;
			padding: 1.5em 4.5em 4em 2.5em;
			position: relative;


			&::after {
				content: '';
				display: block;
				border-color: transparent;
				border-style: solid;
				border-width: 1.5em;
				position: absolute;
			}

			h1 {
				font-size: 4em;
				display: flex;
				justify-content: space-between;
				align-items: center;

				svg {
					width: 0.8em;
					height: 0.8em;
					stroke: white;
					fill: none;
					stroke-width: 1.4;
					stroke-linecap: round;
					stroke-linejoin: round;
					opacity: 0.9;
				}
			}

			h2 {
				font-size: 2em;
			}

			h4 {
				font-size: 1em;
				font-weight: normal;
				margin-bottom: 3em;
			}

			ul {
				padding-left: 4ch;
				list-style-type: none;

				li {
					padding: 0.5em 0;
					border-top: 1px solid white;
				}

				li:last-child {
					border-bottom: 1px solid white;
				}
			}
		}

		.bgRojo {
			border-color: #c3253c;
			background-color: #c3253c;
			color: white;
		}

		.bgGris {
			flex: 1;
			background-color: #4A4A4A;
			color: white;
			border-color: #c3253c;
		}

		.bgNegro {
			flex: 1;
			background-color: black;
			color: white;
			border-color: #4A4A4A;
		}
	}
}

/* Contenedor "todo en uno" que engloba las tres fases */
.comotrabajamos .todoenuno {
	position: relative;
	background: white;
	border: 0.25em solid #c3253c;
	border-radius: 1.5em;
	box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.08);
	padding: 4em 3em 3em;
	margin-top: 2em;

	/*Vista movil*/
	@media screen and (max-width: 600px) {
		padding: 3.5em 1em 2em;
		border-radius: 1em;
	}

	/* Etiqueta sobre el borde, como la pestaña de una carpeta */
	.sello {
		position: absolute;
		top: 0;
		left: 3em;
		transform: translateY(-50%);
		display: flex;
		align-items: center;
		gap: 0.8em;
		background: #141414;
		color: white;
		border: 0.25em solid #c3253c;
		border-radius: 3em;
		padding: 0.5em 1.6em 0.5em 0.8em;
		font-family: 'Montserrat', Arial;
		font-weight: 700;
		font-size: 1.3em;
		letter-spacing: 0.12em;
		text-transform: uppercase;

		/*Vista movil*/
		@media screen and (max-width: 600px) {
			left: 50%;
			transform: translate(-50%, -50%);
			white-space: nowrap;
		}

		img {
			height: 1.8em;
			width: auto;
		}
	}

	.cabecera {
		text-align: center;
		margin-bottom: 2.5em;

		h3 {
			font-family: 'Montserrat', Arial;
			font-size: 1.9em;
			line-height: 125%;
			margin-bottom: 0.5em;
		}

		p {
			font-size: 1.1em;
		}
	}

	.body {
		border-radius: 1em;
	}

	.incluye {
		margin-top: 2.5em;

		h4 {
			font-family: 'Montserrat', Arial;
			font-size: 1.2em;
			text-align: center;
			margin-bottom: 1.2em;
		}

		ul {
			list-style: none;
			padding: 0;
			display: grid;
			/* 6 elementos: 3 x 2 en escritorio, 2 x 3 en tablet, 1 columna en móvil */
			grid-template-columns: repeat(3, 1fr);
			gap: 0.8em;

			@media screen and (max-width: 1000px) {
				grid-template-columns: repeat(2, 1fr);
			}

			@media screen and (max-width: 600px) {
				grid-template-columns: 1fr;
			}
		}

		li {
			display: flex;
			align-items: center;
			gap: 0.8em;
			background: #f4f4f3;
			border-radius: 0.6em;
			padding: 0.9em 1.2em;
			font-weight: 500;

			img {
				height: 1.1em;
				width: auto;
			}
		}
	}
}

/* Flujo de datos bajo los tres bloques */
.comotrabajamos .flujo {
	margin-top: 2.5em;
	padding-top: 2.5em;
	border-top: 1px solid #eee;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.8em 1.2em;
	font-family: 'Montserrat', Arial;
	font-weight: 600;
	color: #4A4A4A;

	span {
		background: white;
		border-radius: 2em;
		box-shadow: 0 0 0.55em rgb(200, 200, 200);
		padding: 0.6em 1.4em;
	}

	i {
		color: #c3253c;
		font-style: normal;
		font-size: 1.4em;
	}
}
