/* ==========================================================================
   Excellence — "Lleva la excelencia académica a tu organización"
   Mobile-first
   ========================================================================== */

/* --- Section --- */
.excellence {
	padding: 48px 0;
	background: #FFFFFF;
	position: relative;
}

.excellence::before {
	content: '';
	display: none;
	position: absolute;
	left: 19px;
	bottom: -80px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(10, 130, 155, 0.7);
	filter: blur(60px);
	z-index: 2;
	pointer-events: none;
}

.excellence > .container {
	position: relative;
	z-index: 1;
}

/* --- Header --- */
.excellence__header {
	text-align: center;
	margin-bottom: 32px;
}

.excellence__title {
	font-family: var(--font-primary);
	font-size: 30px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: 0%;
	color: #03336A;
	margin: 0 0 12px;
}

.excellence__title-highlight {
	color: #016FDF;
}

.excellence__subtitle {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 400;
	line-height: 130%;
	letter-spacing: 0%;
	color: #444444;
	margin: 0;
}

/* --- Blocks container --- */
.excellence__blocks {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --- Block (card) --- */
.excellence__block {
	background: #FFFFFF;
	border-radius: 32px;
	box-shadow: 0 4px 40px rgba(0, 0, 0, 0.10);
	padding: 16px;
	display: flex;
	flex-direction: column;
}

/* --- Block main (image + content) --- */
.excellence__block-main {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* --- Block Image --- */
.excellence__block-image {
	width: 100%;
	aspect-ratio: 350 / 263;
	overflow: hidden;
	border-radius: 24px;
}

.excellence__block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 24px;
}

/* --- Block Content --- */
.excellence__block-content {
	padding: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: center;
	flex: 1;
}

/* --- Block Title --- */
.excellence__block-title {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 140%;
	letter-spacing: 0%;
	color: #03336A;
	margin: 0;
}

/* --- Block Text --- */
.excellence__block-text {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 400;
	line-height: 140%;
	letter-spacing: 0%;
	color: #444444;
	margin: 0;
}

/* --- CTAs --- */
.excellence__block-ctas {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	width: 230px;
	align-self: center;
}

.excellence__block-ctas .excellence__block-btn {
	width: 100%;
	box-sizing: border-box;
}

.excellence__block-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	min-width: 210px;
	background: #0798F9;
	color: #FFFFFF;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0%;
	border-radius: 48px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.excellence__block-btn:hover {
	background: #0680d4;
	color: #FFFFFF;
}

.excellence__block-btn--outline {
	background: #FFFFFF;
	color: #016FDF;
	border: 2px solid #016FDF;
	white-space: nowrap;
	padding: 10px 18px;
	min-width: 210px;
}

.excellence__block-btn--outline:hover {
	background: rgba(1, 111, 223, 0.06);
	color: #016FDF;
}

/* --- Logos section --- */
.excellence__block-logos {
	padding: 16px 0;
	align-items: center;
	text-align: center;
	border-top: 1px solid #EEF0F3;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.excellence__logos-label {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 400;
	line-height: 120%;
	letter-spacing: 0%;
	color: #444444;
}

.excellence__logos-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.excellence__logo-item {
	height: 32px;
	display: flex;
	align-items: center;
}

.excellence__logo-item img {
	height: 22px;
	width: auto;
	object-fit: contain;
}

/* ==========================================================================
   Tablet — min-width: 768px
   ========================================================================== */

@media (min-width: 768px) {

	.excellence {
		padding: 56px 0;
	}

	.excellence__header {
		margin-bottom: 40px;
	}

	.excellence__title {
		font-size: 32px;
		line-height: 110%;
	}

	.excellence__subtitle {
		font-size: 18px;
	}

	.excellence__block {
		flex-direction: row;
		align-items: stretch;
		min-height: 295px;
	}

	.excellence__block-main {
		flex-direction: row;
		flex: 2;
	}

	.excellence__block-image {
		width: 250px;
		flex-shrink: 0;
		aspect-ratio: auto;
		align-self: stretch;
	}

	.excellence__block-content {
		text-align: left;
		justify-content: center;
		padding: 20px;
	}

	.excellence__block-ctas {
		align-items: center;
		align-self: flex-start;
	}

	.excellence__block-logos {
		flex: 1;
		border-top: none;
		padding: 24px;
		justify-content: center;
		position: relative;
	}

	.excellence__block-logos::before {
		content: '';
		position: absolute;
		left: 0;
		top: 24px;
		bottom: 24px;
		width: 0;
		border-left: 1px solid #BEC8D6;
	}
}

/* ==========================================================================
   Desktop — min-width: 1024px
   ========================================================================== */

@media (min-width: 1024px) {

	.excellence {
		padding: 64px 0;
	}

	.excellence__title {
		font-size: 36px;
	}

	/* Block layout: image left, content + logos right */
	.excellence__block {
		flex-direction: row;
		align-items: stretch;
	}

	.excellence__block-main {
		flex-direction: row;
		flex: 2;
	}

	.excellence__block-image {
		width: 350px;
		flex-shrink: 0;
		aspect-ratio: auto;
		align-self: stretch;
	}

	.excellence__block-content {
		text-align: left;
		justify-content: center;
		padding: 24px;
	}

	.excellence__block-title {
		font-size: 24px;
	}

	.excellence__block-text {
		font-size: 16px;
	}

	.excellence__block-ctas {
		flex-direction: column;
		align-items: flex-start;
		width: 220px;
	}

	.excellence__block-btn {
		align-self: flex-start;
	}

	/* Logos on the right */
	.excellence__block-logos {
		flex: 1;
		border-top: none;
		border-left: none;
		justify-content: center;
		align-items: flex-start;
		text-align: left;
		padding: 24px;
		position: relative;
	}

	.excellence__logos-row {
		justify-content: flex-start;
	}

	.excellence__block-logos::before {
		content: '';
		position: absolute;
		left: 0;
		top: 24px;
		bottom: 24px;
		width: 0;
		border-left: 1px solid #BEC8D6;
	}

	.excellence__block-text {
		font-size: 15px;
	}

	.excellence::before {
		display: block;
	}

	.excellence::after {
		content: '';
		position: absolute;
		right: 40px;
		top: calc(50% - 55px);
		width: 110px;
		height: 110px;
		border-radius: 50%;
		background: rgba(226, 40, 77, 0.87);
		filter: blur(60px);
		z-index: 0;
		pointer-events: none;
	}
}
