@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

/* Style the ventajas section */
.ventajas {
	padding: 2rem;
	font-family: 'Montserrat', sans-serif;
	max-width: 1200px;
	margin: 0 auto;
}


/* Reset counter and grid layout for the ol */
.ventajas ol {
	counter-reset: list;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
}



/* Style each li inside ventajas ol - now grid items */
.ventajas ol li {
	--stop: calc(100% / var(--length) * var(--i));
	--l: 62%;
	--l2: 88%;
	--h: calc((var(--i) - 1) * (180 / var(--length)));
	--c1: hsl(var(--h), 71%, var(--l));
	--c2: hsl(var(--h), 71%, var(--l2));

	position: relative;
	counter-increment: list;
	padding: 2rem 1rem 1rem;
	box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
	border-radius: 0.25rem;
	overflow: hidden;
	background-color: white;
	list-style: none;
	margin: 0;
	width: 100%;
}


/* Gradient top border for each li */
.ventajas ol li::before {
	content: '';
	display: block;
	width: 100%;
	height: 1rem;
	position: absolute;
	top: 0;
	left: 0;
	/* background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop)); */
}

.ventajas ol li::after {
	content: '';
	display: block;
	width: 100%;
	height: 3px;
	position: absolute;
	bottom: 0;
	/* Changed from top: 0 */
	left: 0;
	/* background: linear-gradient(to right, #000000, #666666); */
	background-color: black;
}



/* Style h3 inside ventajas li */
.ventajas ol li h3 {
	display: flex;
	align-items: baseline;
	margin: 0 0 1rem;
	color: rgb(70, 70, 70);
	font-family: 'Montserrat', sans-serif;
}

/* Numbered circles before each h3 */
.ventajas ol li h3::before {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 auto;
	margin-right: 1rem;
	width: 3rem;
	height: 3rem;
	content: counter(list);
	padding: 1rem;
	border-radius: 50%;
	background-color: #e35959;
	color: white;
	font-weight: bold;
}

/* Responsive grid layouts - Maximum 2 columns */
@media (width >=700px) {
	.ventajas ol {
		grid-template-columns: 1fr 1fr;
		/* 2 columns on medium+ screens */
		gap: 2rem;
		/* Reduced from 3rem */
	}

	.ventajas ol li {
		padding: 2rem 1.5rem 1.5rem;
		/* Reduced padding */
	}

	.ventajas ol li h3 {
		font-size: 1.5rem;
		/* Reduced from 2.25rem */
		margin: 0 0 1rem;
		/* Reduced margin */
	}

	.ventajas ol li h3::before {
		margin-right: 1rem;
		/* Reduced from 1.5rem */
		width: 2.5rem;
		/* Smaller circle */
		height: 2.5rem;
		font-size: 0.9rem;
		/* Smaller number */
	}


	.ventajas p {
		font-size: 15px;
	}
}


@media (width >=700px) {

	.ventajas p {
		font-size: 22px;
	}


	.ventajas ol li:last-child {
		grid-column: 1 / -1;
		/* Span across both columns */
		max-width: 50%;
		/* Keep it the same width as others */
		margin: 0 auto;
		/* Center it */
	}


}
