/**
 * Modelo pedagógico — idea animada con cerebro y foco.
 */

.ci-modelo-home {
	background:
		radial-gradient(circle at 8% 15%, rgba(255, 187, 0, 0.1), transparent 25%),
		radial-gradient(circle at 92% 80%, rgba(0, 189, 209, 0.1), transparent 28%),
		#fffaf0;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(58px, 7vw, 88px) 24px clamp(58px, 7vw, 84px);
	position: relative;
}

.ci-modelo-home::before {
	background: linear-gradient(90deg, #138bba 0 14%, #00bdd1 14% 33%, #ff6976 33% 52%, #ff7f2d 52% 72%, #ffbb00 72% 91%, #0f4a6e 91% 100%);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 4;
}

.ci-modelo-home::after {
	background-image: radial-gradient(rgba(15, 74, 110, 0.13) 1px, transparent 1px);
	background-size: 22px 22px;
	content: "";
	height: 330px;
	mask-image: linear-gradient(135deg, #000, transparent 72%);
	opacity: 0.28;
	pointer-events: none;
	position: absolute;
	right: -40px;
	top: 22px;
	width: 390px;
	z-index: -1;
}

.ci-modelo-home__inner {
	max-width: 1160px;
	position: relative;
}

.ci-modelo-home__header {
	margin: 0 auto;
	max-width: 980px;
	position: relative;
	text-align: center;
	z-index: 3;
}

.ci-modelo-home__header::after {
	background: linear-gradient(90deg, #ff6976, #ff7f2d, #ffbb00, #7ac943, #00bdd1);
	border-radius: 999px;
	content: "";
	display: block;
	height: 4px;
	margin: 1.25rem auto 0;
	width: 62px;
}

.ci-modelo-home__intro {
	font-family: Poppins, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 auto;
	max-width: 960px;
}

.ci-eclectic-stage {
	align-items: center;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.84)),
		radial-gradient(circle at 12% 22%, rgba(0, 189, 209, 0.14), transparent 42%);
	border: 1px solid rgba(15, 74, 110, 0.08);
	border-radius: 40px;
	box-shadow: 0 30px 74px rgba(15, 74, 110, 0.13);
	display: grid;
	gap: clamp(18px, 3vw, 42px);
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
	margin: 2.15rem auto 0;
	max-width: 1080px;
	min-height: 430px;
	overflow: hidden;
	padding: clamp(28px, 4vw, 46px);
	position: relative;
	width: 100%;
}

.ci-eclectic-stage::before {
	background:
		radial-gradient(circle at center, rgba(0, 189, 209, 0.15), transparent 63%),
		linear-gradient(145deg, rgba(255, 187, 0, 0.11), rgba(0, 189, 209, 0.05));
	border: 1px solid rgba(0, 189, 209, 0.12);
	border-radius: 50%;
	content: "";
	height: 440px;
	left: -105px;
	pointer-events: none;
	position: absolute;
	top: -5px;
	width: 440px;
}

.ci-eclectic-stage::after {
	background: linear-gradient(180deg, #ff6976, #ff7f2d, #ffbb00, #7ac943, #00bdd1);
	border-radius: 999px;
	content: "";
	height: 126px;
	op: 42px;
	opacity: 0.78;
	position: absolute;
	right: 0;
	width: 4px;
}

.ci-eclectic-idea {
	align-items: center;
	aspect-ratio: 1;
	display: flex;
	justify-content: center;
	justify-self: center;
	max-width: 330px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.ci-eclectic-idea::before {
	background: linear-gradient(145deg, rgba(0, 189, 209, 0.18), rgba(19, 139, 186, 0.06));
	border: 1px solid rgba(19, 139, 186, 0.14);
	border-radius: 42% 58% 53% 47% / 45% 42% 58% 55%;
	box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.36), 0 24px 48px rgba(15, 74, 110, 0.11);
	content: "";
	height: 76%;
	position: absolute;
	transform: rotate(-7deg);
	width: 76%;
}

.ci-eclectic-idea__brain {
	animation: ci-brain-breathe 3.8s ease-in-out infinite;
	background: linear-gradient(135deg, #138bba, #00bdd1);
	display: block;
	height: 128px;
	-webkit-mask: url("../icons/lucide/brain.svg") center / contain no-repeat;
	mask: url("../icons/lucide/brain.svg") center / contain no-repeat;
	position: relative;
	width: 128px;
	z-index: 3;
}

.ci-eclectic-idea__orbit {
	border: 2px dashed rgba(19, 139, 186, 0.2);
	border-radius: 50%;
	position: absolute;
}

.ci-eclectic-idea__orbit::after {
	background: #ff6976;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 7px 16px rgba(15, 74, 110, 0.14);
	content: "";
	height: 18px;
	left: 15%;
	position: absolute;
	top: -10px;
	width: 18px;
}

.ci-eclectic-idea__orbit--one {
	animation: ci-idea-orbit 15s linear infinite;
	height: 88%;
	width: 88%;
}

.ci-eclectic-idea__orbit--two {
	animation: ci-idea-orbit-reverse 11s linear infinite;
	border-color: rgba(255, 187, 0, 0.25);
	height: 67%;
	width: 67%;
}

.ci-eclectic-idea__orbit--two::after {
	background: #ffbb00;
	height: 14px;
	left: auto;
	right: 3%;
	top: 58%;
	width: 14px;
}

.ci-eclectic-idea__bulb {
	animation: ci-bulb-float 2.8s ease-in-out infinite;
	background: #ffbb00;
	border: 5px solid #fff;
	border-radius: 50% 50% 46% 46%;
	box-shadow: 0 0 0 10px rgba(255, 187, 0, 0.11), 0 0 32px rgba(255, 187, 0, 0.34), 0 12px 24px rgba(15, 74, 110, 0.16);
	height: 62px;
	position: absolute;
	right: 20px;
	top: 28px;
	width: 62px;
	z-index: 4;
}

.ci-eclectic-idea__bulb::before {
	border-bottom: 3px solid #fff;
	border-left: 3px solid #fff;
	content: "";
	height: 16px;
	left: 19px;
	position: absolute;
	top: 19px;
	transform: rotate(-45deg);
	width: 16px;
}

.ci-eclectic-idea__bulb::after {
	background: #ff7f2d;
	border: 4px solid #fff;
	border-radius: 4px 4px 8px 8px;
	bottom: -15px;
	content: "";
	height: 19px;
	left: 17px;
	position: absolute;
	width: 28px;
}

.ci-eclectic-idea__bulb i {
	background: #fff;
	border-radius: 999px;
	height: 3px;
	left: 19px;
	position: absolute;
	top: 40px;
	width: 24px;
}

.ci-eclectic-idea__spark {
	animation: ci-idea-spark 1.9s ease-in-out infinite;
	background: #ff6976;
	border-radius: 50%;
	height: 9px;
	position: absolute;
	width: 9px;
	z-index: 5;
}

.ci-eclectic-idea__spark--one { right: 2px; top: 16px; }
.ci-eclectic-idea__spark--two { animation-delay: 0.45s; background: #7ac943; right: 4px; top: 88px; }
.ci-eclectic-idea__spark--three { animation-delay: 0.9s; background: #00bdd1; right: 78px; top: 2px; }

.ci-eclectic-idea__caption {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(15, 74, 110, 0.08);
	border-radius: 999px;
	bottom: 20px;
	box-shadow: 0 12px 28px rgba(15, 74, 110, 0.1);
	color: #0f4a6e;
	font-family: Poppins, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	left: 50%;
	line-height: 1.35;
	padding: 0.62rem 1rem;
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
	white-space: nowrap;
	z-index: 5;
}

.ci-eclectic-stage .ci-eclectic-box {
	background:
		radial-gradient(circle at 0 32%, rgba(255, 127, 45, 0.08), transparent 23%),
		rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(15, 74, 110, 0.08);
	border-radius: 30px;
	box-shadow: 0 18px 44px rgba(15, 74, 110, 0.1);
	margin: 0;
	max-width: none;
	min-height: 315px;
	padding: clamp(32px, 4vw, 46px);
	position: relative;
	text-align: left;
	transition: border-color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
	z-index: 2;
}

.ci-eclectic-box__eyebrow {
	color: #ff7f2d;
	display: block;
	font-family: Poppins, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-bottom: 0.55rem;
	text-transform: uppercase;
}

.ci-eclectic-box .ci-eclectic-box__title {
	color: #0f4a6e;
	display: block;
	font-family: Poppins, sans-serif;
	font-size: clamp(1.35rem, 2vw, 1.78rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.8rem;
}

.ci-eclectic-box > p {
	color: #3d4650;
	font-family: Poppins, sans-serif;
	font-size: 0.97rem;
	line-height: 1.7;
	margin: 0;
}

.ci-eclectic-box > p strong {
	color: #ff7f2d;
	display: inline;
	font-weight: 700;
	margin: 0;
}

.ci-eclectic-box__principles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.35rem;
}

.ci-eclectic-box__principles span {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(15, 74, 110, 0.09);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(15, 74, 110, 0.06);
	color: #0f4a6e;
	display: inline-flex;
	font-family: Poppins, sans-serif;
	font-size: 0.73rem;
	font-weight: 600;
	gap: 7px;
	padding: 0.52rem 0.78rem;
	transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.ci-eclectic-box__principles i {
	background: #ff6976;
	border-radius: 50%;
	display: block;
	height: 7px;
	width: 7px;
}

.ci-eclectic-box__principles span:nth-child(2) i { background: #ffbb00; }
.ci-eclectic-box__principles span:nth-child(3) i { background: #00bdd1; }

@media (hover: hover) and (pointer: fine) {
	.ci-eclectic-stage:hover .ci-eclectic-box {
		border-color: rgba(0, 189, 209, 0.24);
		box-shadow: 0 24px 52px rgba(15, 74, 110, 0.14);
		transform: translateY(-4px);
	}

	.ci-eclectic-box__principles span:hover {
		border-color: rgba(255, 127, 45, 0.35);
		box-shadow: 0 10px 22px rgba(15, 74, 110, 0.1);
		transform: translateY(-3px);
	}
}

@keyframes ci-brain-breathe {
	0%, 100% { filter: drop-shadow(0 8px 14px rgba(19, 139, 186, 0.18)); transform: translateY(0) scale(1); }
	50% { filter: drop-shadow(0 14px 22px rgba(0, 189, 209, 0.3)); transform: translateY(-7px) scale(1.05); }
}

@keyframes ci-bulb-float {
	0%, 100% { transform: rotate(4deg) translateY(0) scale(1); }
	50% { transform: rotate(-5deg) translateY(-8px) scale(1.06); }
}

@keyframes ci-idea-orbit { to { transform: rotate(360deg); } }
@keyframes ci-idea-orbit-reverse { to { transform: rotate(-360deg); } }

@keyframes ci-idea-spark {
	0%, 100% { opacity: 0.45; transform: scale(0.7); }
	50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.48); opacity: 1; transform: scale(1.2); }
}

@media (max-width: 780px) {
	.ci-modelo-home {
		padding-left: 17px;
		padding-right: 17px;
	}

	.ci-modelo-home::after { display: none; }

	.ci-eclectic-stage {
		gap: 8px;
		grid-template-columns: 1fr;
		padding: 22px 16px 18px;
	}

	.ci-eclectic-stage::before {
		height: 350px;
		left: 50%;
		top: -85px;
		transform: translateX(-50%);
		width: 350px;
	}

	.ci-eclectic-idea { max-width: 265px; }
	.ci-eclectic-idea__brain { height: 102px; width: 102px; }
	.ci-eclectic-idea__bulb { height: 54px; right: 12px; top: 21px; width: 54px; }
	.ci-eclectic-idea__bulb::before { left: 16px; top: 16px; }
	.ci-eclectic-idea__bulb::after { left: 13px; }
	.ci-eclectic-idea__bulb i { left: 15px; top: 35px; }
	.ci-eclectic-idea__caption { bottom: 8px; }

	.ci-eclectic-stage .ci-eclectic-box {
		min-height: 0;
		padding: 28px 22px 25px;
		width: 100%;
	}

	.ci-eclectic-box__principles { gap: 6px; }
	.ci-eclectic-box__principles span { font-size: 0.68rem; padding: 0.46rem 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ci-eclectic-idea__brain,
	.ci-eclectic-idea__bulb,
	.ci-eclectic-idea__orbit,
	.ci-eclectic-idea__spark {
		animation: none !important;
	}

	.ci-eclectic-stage .ci-eclectic-box,
	.ci-eclectic-box__principles span {
		transition: none !important;
	}
}
