/* CENASAM — Oferta educativa / ficha de curso */
.ce-wrap {
	--navy: #071635;
	--purple: #594499;
	--blue: #335DA8;
	--gold: #EFC762;
	--cream: #F3F2E8;
	--text: #3b3d42;
	--muted: #6b7280;
	--line: rgba(7, 22, 53, 0.1);
	font-family: Montserrat, "Segoe UI", sans-serif;
	color: var(--text);
}

.ce-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
	background:
		radial-gradient(ellipse 80% 60% at 15% 20%, rgba(89, 68, 153, 0.35), transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 80%, rgba(51, 93, 168, 0.3), transparent 50%),
		linear-gradient(145deg, #071635 0%, #1a2a5c 45%, #335DA8 100%);
	color: #fff;
}

.ce-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(7, 22, 53, 0.35));
	z-index: -1;
}

/* Foto desvanecida a la derecha (capa real, no pseudo detrás del fondo) */
.ce-hero--fade {
	background: #071635;
}

.ce-hero--fade .ce-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.ce-hero--fade .ce-hero__photo img {
	position: absolute;
	top: 0;
	right: 0;
	width: min(70%, 860px);
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.7) contrast(1.05);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 55%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 55%);
}

.ce-hero--fade::after {
	z-index: 1;
	background:
		linear-gradient(90deg, #071635 0%, rgba(7, 22, 53, 0.88) 34%, rgba(7, 22, 53, 0.45) 58%, rgba(51, 93, 168, 0.28) 100%),
		linear-gradient(180deg, transparent 50%, rgba(7, 22, 53, 0.4));
}

.ce-hero--fade .ce-hero__inner {
	position: relative;
	z-index: 2;
	width: min(1120px, 100%);
	max-width: 640px;
	margin-left: max(1.5rem, calc((100% - 1120px) / 2));
	margin-right: auto;
}

@media (max-width: 900px) {
	.ce-hero--fade .ce-hero__photo img {
		width: 100%;
		opacity: 0.55;
		-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
	}

	.ce-hero--fade .ce-hero__inner {
		margin-left: auto;
		margin-right: auto;
		max-width: 1120px;
	}
}

.ce-hero__inner,
.ce-section__inner,
.ce-form-shell {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.ce-kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(239, 199, 98, 0.45);
	border-radius: 999px;
	color: var(--gold);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ce-hero h1 {
	margin: 0 0 1rem;
	max-width: 18ch;
	font-size: clamp(2rem, 5vw, 3.35rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}

.ce-hero p {
	margin: 0;
	max-width: 42rem;
	font-size: 1.05rem;
	line-height: 1.7;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.88);
}

.ce-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.ce-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.85rem;
	font-weight: 500;
	color: #fff;
}

.ce-section {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fff;
}

.ce-section--cream {
	background:
		linear-gradient(180deg, rgba(243, 242, 232, 0.95), rgba(243, 242, 232, 0.7)),
		radial-gradient(circle at 0% 0%, rgba(51, 93, 168, 0.08), transparent 40%);
}

.ce-section__head {
	margin-bottom: 2rem;
}

.ce-section__head h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.02em;
}

.ce-section__head p {
	margin: 0;
	max-width: 40rem;
	color: var(--muted);
	line-height: 1.65;
}

.ce-course-card {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 24px 60px rgba(7, 22, 53, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ce-course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 70px rgba(7, 22, 53, 0.12);
}

.ce-course-card__media {
	position: relative;
	min-height: 280px;
	background: #0d1b3a;
}

.ce-course-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ce-course-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 55%, rgba(7, 22, 53, 0.15));
}

.ce-course-card__body {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ce-course-card__body h3 {
	margin: 0 0 0.85rem;
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	line-height: 1.3;
	color: var(--navy);
	font-weight: 600;
}

.ce-course-card__body p {
	margin: 0 0 1.25rem;
	color: var(--muted);
	line-height: 1.65;
	font-weight: 300;
}

.ce-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 1.5rem;
}

.ce-fact {
	padding: 0.35rem 0.75rem;
	border-radius: 8px;
	background: rgba(51, 93, 168, 0.08);
	color: var(--blue);
	font-size: 0.8rem;
	font-weight: 600;
}

.ce-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.9rem 1.4rem;
	border-radius: 10px;
	border: none;
	background: var(--blue);
	color: #fff !important;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ce-btn:hover {
	background: var(--purple) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.ce-btn--ghost {
	background: transparent;
	color: var(--navy) !important;
	border: 1px solid rgba(7, 22, 53, 0.18);
}

.ce-btn--ghost:hover {
	background: var(--navy) !important;
	border-color: var(--navy);
}

.ce-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ce-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.ce-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.ce-panel {
	padding: 1.35rem 1.4rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--line);
}

.ce-panel h3,
.ce-panel h4 {
	margin: 0 0 0.55rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
}

.ce-panel p,
.ce-panel li {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 0.95rem;
	font-weight: 300;
}

.ce-audience {
	position: relative;
	padding: 1.6rem 1.45rem 1.5rem;
	border-radius: 16px;
	background:
		linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
	border: 1px solid var(--line);
	box-shadow: 0 12px 28px rgba(7, 22, 53, 0.05);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ce-audience::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--blue), var(--purple));
}

.ce-audience:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(7, 22, 53, 0.09);
}

.ce-audience__mark {
	display: inline-block;
	margin-bottom: 0.85rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: rgba(51, 93, 168, 0.1);
	color: var(--blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.ce-audience h3 {
	margin: 0 0 0.55rem;
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--navy);
}

.ce-audience p {
	margin: 0;
	color: #3b3d42;
	line-height: 1.6;
	font-size: 0.95rem;
	font-weight: 400;
}

.ce-panel ul {
	margin: 0;
	padding-left: 1.1rem;
}

.ce-panel li + li {
	margin-top: 0.4rem;
}

.ce-module {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: 1rem;
	padding: 1.2rem 1.25rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--line);
}

.ce-module__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--blue), var(--purple));
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
}

.ce-module h3 {
	margin: 0 0 0.35rem;
	font-size: 1.02rem;
	color: var(--navy);
}

.ce-module p {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
	font-size: 0.92rem;
	font-weight: 300;
}

.ce-layout {
	display: grid;
	grid-template-columns: 1.35fr 0.9fr;
	gap: 2rem;
	align-items: start;
}

.ce-sticky {
	position: sticky;
	top: 1.25rem;
}

.ce-form-card {
	padding: 1.6rem;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 18px 50px rgba(7, 22, 53, 0.08);
}

.ce-form-card h2 {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	color: var(--navy);
}

.ce-form-card > p {
	margin: 0 0 1.35rem;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.ce-field {
	margin-bottom: 1rem;
}

.ce-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--navy);
}

.ce-field input,
.ce-field select,
.ce-field textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(7, 22, 53, 0.14);
	border-radius: 10px;
	background: #fafaf8;
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-field input:focus,
.ce-field select:focus,
.ce-field textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(51, 93, 168, 0.15);
	background: #fff;
}

.ce-field textarea {
	min-height: 100px;
	resize: vertical;
}

.ce-form-note {
	margin: 0.85rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
	line-height: 1.45;
}

.ce-form-success {
	display: none;
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: rgba(89, 68, 153, 0.1);
	color: var(--purple);
	font-size: 0.9rem;
	font-weight: 500;
}

.ce-form-card.is-preview .ce-form-success {
	display: block;
}

.ce-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.ce-table th,
.ce-table td {
	padding: 0.75rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.ce-table th {
	color: var(--navy);
	font-weight: 600;
	background: rgba(51, 93, 168, 0.06);
}

.ce-table td {
	color: #1f2937;
	font-weight: 400;
}

.ce-table tr:last-child td {
	border-bottom: none;
}

.ce-module ul li {
	margin-top: 0.35rem;
	color: var(--muted);
	font-weight: 300;
	line-height: 1.5;
	font-size: 0.9rem;
}

/* Banner hero full-bleed (estilo landing profesional) */
.ce-hero--banner {
	min-height: clamp(420px, 72vh, 640px);
	display: flex;
	align-items: flex-end;
	padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
	background-color: #071635;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.ce-hero--banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(7, 22, 53, 0.88) 8%, rgba(7, 22, 53, 0.55) 48%, rgba(51, 93, 168, 0.25) 100%),
		linear-gradient(0deg, rgba(7, 22, 53, 0.55), transparent 45%);
	z-index: 0;
}

.ce-hero--banner .ce-hero__inner {
	position: relative;
	z-index: 1;
}

.ce-hero--banner h1 em {
	font-style: italic;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	color: var(--gold);
}

.ce-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

.ce-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--gold);
}

.ce-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.ce-feature {
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 16px 40px rgba(7, 22, 53, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ce-feature:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 50px rgba(7, 22, 53, 0.1);
}

.ce-feature img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.ce-feature__body {
	padding: 1.15rem 1.2rem 1.35rem;
}

.ce-feature__body h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	color: var(--navy);
}

.ce-feature__body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
	font-weight: 300;
}

.ce-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2rem;
	align-items: center;
}

.ce-split img {
	width: 100%;
	border-radius: 18px;
	display: block;
	object-fit: cover;
	min-height: 280px;
}

.ce-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.ce-news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ce-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 50px rgba(7, 22, 53, 0.1);
}

.ce-news-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.ce-news-card__body {
	padding: 1.15rem 1.2rem 1.35rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ce-news-card__body h3 {
	margin: 0 0 0.55rem;
	font-size: 1.02rem;
	line-height: 1.35;
	color: var(--navy);
}

.ce-news-card__body p {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.55;
	font-weight: 300;
	flex: 1;
}

.ce-news-card__more {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--blue);
}

.ce-ally {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.5rem;
	align-items: center;
	padding: 1.4rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	margin-bottom: 1.15rem;
}

.ce-ally img {
	width: 100%;
	max-height: 110px;
	object-fit: contain;
}

.ce-ally h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	color: var(--navy);
}

.ce-ally p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
	font-weight: 300;
}

.ce-teachers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem;
}

.ce-teacher {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--line);
}

.ce-teacher img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.ce-teacher h3 {
	margin: 0 0 0.25rem;
	font-size: 0.98rem;
	color: var(--navy);
}

.ce-teacher p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 300;
}

@media (max-width: 900px) {
	.ce-course-card,
	.ce-layout,
	.ce-grid-2,
	.ce-grid-3,
	.ce-feature-grid,
	.ce-news-grid,
	.ce-split,
	.ce-teachers,
	.ce-ally {
		grid-template-columns: 1fr;
	}

	.ce-course-card__media {
		min-height: 220px;
	}

	.ce-sticky {
		position: static;
	}

	.ce-ally img {
		max-width: 160px;
		margin: 0 auto;
	}
}
