/* ===== HERO ===== */
#hero {
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
}

#hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

#hero-content {
	position: relative;
	margin-left: auto;
	margin-right: 6%;
	width: 36%;
	min-width: 320px;
	padding: 120px 0 60px;
	text-align: left;
	animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(32px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#hero-content h1 {
	color: var(--color-primary-dark);
	margin: 0 0 20px;
	text-wrap: pretty;
}

#hero-content p {
	font-size: clamp(15px, 1.4vw, 17px);
	color: #1A3A6B;
	line-height: 1.75;
	margin: 0 0 36px;
	text-wrap: pretty;
}

#hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* ===== STATS ===== */
#stats {
	background: var(--color-surface-alt);
	border-top: 1px solid var(--color-border-strong);
	border-bottom: 1px solid var(--color-border-strong);
}

#stats-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.stat {
	padding: 32px 40px;
	text-align: center;
}

.stat:not(:last-child) {
	border-right: 1px solid var(--color-border-strong);
}

.stat-number {
	font-size: 48px;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1;
}

.stat-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-soft);
	margin-top: 6px;
}

/* ===== WHO CARDS (quiénes somos) ===== */
.wcard-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wcard {
	background: var(--color-surface-alt);
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	text-align: left;
}

.wcard-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 3px;
}

.wcard-text {
	font-size: 13px;
	color: var(--color-text-soft);
	line-height: 1.6;
}

/* ===== SERVICIOS ===== */
#services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.svc {
	background: white;
	border: 1.5px solid var(--color-border);
	border-radius: 16px;
	padding: 24px;
	text-align: left;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.svc:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 44px rgba(26, 86, 216, 0.1);
	border-color: #A8C4F8;
}

.svc .ibox {
	margin-bottom: 16px;
}

.svc-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 7px;
}

.svc-text {
	font-size: 13px;
	color: var(--color-text-soft);
	line-height: 1.65;
}

/* ===== EJERCICIO (dark gradient) ===== */
#ejercicio-section {
	background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
	overflow: hidden;
}

.deco-circle {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

#deco-1 {
	top: -80px;
	right: -80px;
	width: 420px;
	height: 420px;
}

#deco-2 {
	bottom: -60px;
	left: -40px;
	width: 280px;
	height: 280px;
}

#ejercicio-section .section-inner {
	position: relative;
}

#ejercicio-section h2,
#ejercicio-section .dcard-title {
	color: white;
}

#ejercicio-section .text-soft {
	color: rgba(255, 255, 255, 0.8);
}

#ejercicio-section .text-soft:last-of-type {
	margin-bottom: 32px;
}

.dcard-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dcard {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	text-align: left;
}

.dcard .ibox-sm {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.15);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dcard-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.dcard-text {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.6;
}

/* ===== DERECHOS ===== */
.check-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
}

.check-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-icon {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--color-surface-alt);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.check-item div:last-child {
	font-size: 15px;
	color: var(--color-text-soft);
	line-height: 1.6;
}

.highlight-card {
	background: var(--color-surface);
	border: 1.5px solid var(--color-border);
	border-radius: 20px;
	padding: 40px;
	text-align: center;
}

.highlight-card .ibox-lg {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.highlight-card h3 {
	margin-bottom: 12px;
}

.highlight-card p {
	font-size: 14px;
	color: var(--color-text-soft);
	line-height: 1.7;
	margin: 0 0 24px;
}

.highlight-note {
	background: var(--color-surface-alt);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 13px;
	color: var(--color-primary);
	font-weight: 600;
	line-height: 1.5;
}

/* ===== COMUNIDAD ===== */
#community-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ccard {
	background: white;
	border: 1.5px solid var(--color-border);
	border-radius: 18px;
	padding: 32px 28px;
	text-align: left;
}

.ccard .ibox {
	margin-bottom: 18px;
}

.ccard h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 10px;
}

.ccard p {
	font-size: 14px;
	color: var(--color-text-soft);
	line-height: 1.7;
	margin: 0;
}

/* ===== CONTACTO ===== */
.contact-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: left;
}

.contact-item {
	display: flex;
	gap: 16px;
	align-items: center;
}

.contact-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 2px;
}

.contact-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
}

.form-card {
	background: var(--color-surface);
	border: 1.5px solid var(--color-border);
	border-radius: 20px;
	padding: 36px;
	text-align: left;
}

.form-card h3 {
	margin-bottom: 6px;
}

.form-card p {
	font-size: 14px;
	color: var(--color-text-soft);
	margin: 0 0 24px;
	line-height: 1.6;
}

.form-card .btn-b {
	justify-content: center;
	width: 100%;
}

/* ===== RESPONSIVE ===== */
@media all and (max-width: 1050px) {
	#services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	#hero-content {
		width: 44%;
	}
}

@media all and (max-width: 850px) {
	#hero {
		min-height: 0;
		flex-direction: column;
		align-items: stretch;
		background: linear-gradient(180deg, #fff 0%, var(--color-surface-alt) 100%);
	}

	#hero-bg {
		position: static;
		width: 100%;
		height: 46vh;
		min-height: 300px;
		object-position: 22% center;
	}

	#hero-content {
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 36px 24px 56px;
	}

	#community-grid {
		grid-template-columns: 1fr;
	}

	#stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.stat {
		padding: 24px 12px;
	}

	.stat-number {
		font-size: 36px;
	}
}

@media all and (max-width: 550px) {
	#services-grid {
		grid-template-columns: 1fr;
	}

	#stats-grid {
		grid-template-columns: 1fr;
	}

	.stat:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid var(--color-border-strong);
	}

	#hero-actions .btn-b,
	#hero-actions .btn-outline {
		width: 100%;
		justify-content: center;
	}

	.form-card,
	.highlight-card {
		padding: 28px 22px;
	}
}
