:root {
	--cimed-blue: #087da8;
	--cimed-navy: #082f49;
	--cimed-gold: #d9a62e;
	--cimed-text: #172033;
	--cimed-muted: #667085;
	--cimed-border: #e6eaf0;
	--cimed-bg: #f5f8fb;
}

.cimed-et-featured,
.cimed-et-catalog,
.cimed-et-access,
.cimed-et-hero,
.cimed-et-bank {
	--cimed-accent: var(--cimed-blue);
	font-family: inherit;
	color: var(--cimed-text);
}

.cimed-et-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 12px;
	background: var(--cimed-accent);
	color: #fff !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--cimed-accent) 24%, transparent);
	transition: transform .2s ease, box-shadow .2s ease;
}

.cimed-et-button:hover,
.cimed-et-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--cimed-accent) 30%, transparent);
}

.cimed-et-button--small {
	min-height: 40px;
	padding: 9px 15px;
	font-size: 14px;
}

.cimed-et-kicker {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 6px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cimed-accent) 12%, white);
	color: var(--cimed-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cimed-et-editor-note {
	padding: 16px;
	border: 1px dashed #b9c3d0;
	border-radius: 10px;
	background: #f8fafc;
	color: #475467;
}

/* Curso destacado */
.cimed-et-featured {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	overflow: hidden;
	border: 1px solid var(--cimed-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(8, 47, 73, .1);
}

.cimed-et-featured__media { min-height: 340px; background: var(--cimed-navy); }
.cimed-et-featured__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.cimed-et-featured__placeholder,
.cimed-et-hero__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, var(--cimed-navy), var(--cimed-accent)); color: #fff; font-size: 30px; font-weight: 800; }
.cimed-et-featured__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 58px); }
.cimed-et-featured h2 { margin: 0 0 16px; color: var(--cimed-navy); font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
.cimed-et-featured p { margin: 0 0 26px; color: var(--cimed-muted); font-size: 17px; line-height: 1.7; }
.cimed-et-featured__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.cimed-et-price { color: var(--cimed-navy); font-size: 20px; font-weight: 800; }

/* Catalogo */
.cimed-et-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.cimed-et-section-heading h2 { margin: 0; color: var(--cimed-navy); font-size: clamp(27px, 3vw, 40px); line-height: 1.15; }
.cimed-et-section-heading > span { color: var(--cimed-muted); font-weight: 700; }
.cimed-et-section-heading--stacked { display: block; }
.cimed-et-section-heading--stacked p { max-width: 680px; margin: 10px 0 0; color: var(--cimed-muted); }

.cimed-et-catalog__toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, 280px); gap: 12px; margin-bottom: 24px; }
.cimed-et-catalog__toolbar input,
.cimed-et-catalog__toolbar select { width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #cfd6df; border-radius: 12px; background: #fff; color: var(--cimed-text); outline: none; }
.cimed-et-catalog__toolbar input:focus,
.cimed-et-catalog__toolbar select:focus { border-color: var(--cimed-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cimed-accent) 16%, transparent); }

.cimed-et-course-grid { display: grid; gap: 22px; }
.cimed-et-course-grid.cimed-et-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cimed-et-course-grid.cimed-et-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cimed-et-course-grid.cimed-et-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cimed-et-course-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--cimed-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(8, 47, 73, .07); transition: transform .2s ease, box-shadow .2s ease; }
.cimed-et-course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(8, 47, 73, .12); }
.cimed-et-course-card[hidden] { display: none !important; }
.cimed-et-course-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cimed-navy); }
.cimed-et-course-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cimed-et-course-card:hover .cimed-et-course-card__image img { transform: scale(1.035); }
.cimed-et-course-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; font-size: 23px; font-weight: 800; }
.cimed-et-course-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.cimed-et-course-card__category { margin-bottom: 8px; color: var(--cimed-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.cimed-et-course-card__title { margin: 0 0 10px; font-size: 20px; line-height: 1.28; }
.cimed-et-course-card__title a { color: var(--cimed-navy); text-decoration: none; }
.cimed-et-course-card__excerpt { flex: 1; margin: 0 0 18px; color: var(--cimed-muted); font-size: 14px; line-height: 1.6; }
.cimed-et-course-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cimed-et-course-card__price { color: var(--cimed-navy); font-weight: 800; }
.cimed-et-empty { padding: 26px; border-radius: 14px; background: var(--cimed-bg); text-align: center; }

/* Acceso */
.cimed-et-access { display: inline-flex; align-items: center; gap: 11px; padding: 8px 14px 8px 9px; border: 1px solid color-mix(in srgb, var(--cimed-accent) 22%, #d6dce4); border-radius: 999px; background: #fff; color: var(--cimed-text) !important; text-decoration: none !important; box-shadow: 0 5px 18px rgba(8, 47, 73, .08); }
.cimed-et-access__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: var(--cimed-accent); }
.cimed-et-access__icon svg { width: 19px; fill: #fff; }
.cimed-et-access__text { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.cimed-et-access__text strong { font-size: 14px; }
.cimed-et-access__text small { max-width: 150px; overflow: hidden; margin-top: 3px; color: var(--cimed-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Hero */
.cimed-et-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: stretch; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, #f7fbfd, #fff); box-shadow: 0 18px 60px rgba(8, 47, 73, .1); }
.cimed-et-hero__content { padding: clamp(28px, 5vw, 60px); }
.cimed-et-hero h1 { margin: 0 0 18px; color: var(--cimed-navy); font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.cimed-et-hero p { max-width: 720px; margin: 0 0 23px; color: var(--cimed-muted); font-size: 17px; line-height: 1.7; }
.cimed-et-hero__facts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.cimed-et-hero__facts span { padding: 8px 12px; border-radius: 9px; background: #e9f4f8; color: var(--cimed-navy); font-size: 13px; font-weight: 700; }
.cimed-et-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.cimed-et-hero__actions strong { color: var(--cimed-navy); font-size: 22px; }
.cimed-et-hero__image { min-height: 380px; background: var(--cimed-navy); }
.cimed-et-hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Banco */
.cimed-et-bank__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cimed-et-bank-card { --bank-color: var(--cimed-blue); display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--cimed-border); border-left: 5px solid var(--bank-color); border-radius: 14px; background: #fff; color: var(--cimed-text) !important; text-decoration: none !important; box-shadow: 0 7px 22px rgba(8, 47, 73, .06); transition: transform .2s ease, border-color .2s ease; }
.cimed-et-bank-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bank-color) 38%, var(--cimed-border)); }
.cimed-et-bank-card__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--bank-color) 12%, white); color: var(--bank-color); font-size: 25px; font-weight: 400; }
.cimed-et-bank-card__body { display: flex; min-width: 0; flex-direction: column; }
.cimed-et-bank-card__body strong { color: var(--cimed-navy); font-size: 17px; }
.cimed-et-bank-card__body small { margin-top: 4px; color: var(--cimed-muted); }
.cimed-et-bank-card__status { padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bank-color) 10%, white); color: var(--bank-color); font-size: 11px; font-weight: 800; }

@media (max-width: 1024px) {
	.cimed-et-course-grid.cimed-et-cols-4,
	.cimed-et-course-grid.cimed-et-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.cimed-et-featured,
	.cimed-et-hero { grid-template-columns: 1fr; }
	.cimed-et-featured__media,
	.cimed-et-featured__media img { min-height: 220px; }
	.cimed-et-hero__image { order: -1; min-height: 230px; }
	.cimed-et-featured__content,
	.cimed-et-hero__content { padding: 26px 20px; }
	.cimed-et-catalog__toolbar { grid-template-columns: 1fr; }
	.cimed-et-course-grid.cimed-et-cols-2,
	.cimed-et-course-grid.cimed-et-cols-3,
	.cimed-et-course-grid.cimed-et-cols-4,
	.cimed-et-bank__grid { grid-template-columns: 1fr; }
	.cimed-et-section-heading { align-items: start; flex-direction: column; }
	.cimed-et-bank-card { grid-template-columns: 42px minmax(0, 1fr); }
	.cimed-et-bank-card__status { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
	.cimed-et-button,
	.cimed-et-course-card,
	.cimed-et-course-card__image img,
	.cimed-et-bank-card { transition: none; }
}

