/* =========================================================
   Course Tag Page — V2 (DEBUG_MODE)
   Pixel-aligned with Figma node 14405:19084
   Colors and sizes taken directly from design context.
   ========================================================= */

.ct2-page {
	/* Brand colors — extracted from Figma */
	--ct2-brand:        #026f97;  /* primary teal — section titles, accents */
	--ct2-brand-dark:   #145981;  /* secondary headings */
	--ct2-aicad-blue:   #10509b;  /* legacy AICAD blue */

	/* Surface palette */
	--ct2-soft-1:       #f1f7ff;  /* FAQ item bg */
	--ct2-soft-2:       #eff6ff;  /* Contenido accordion bg */
	--ct2-soft-3:       #deecfe;  /* Demanda gradient end */
	--ct2-soft-4:       #dbeafe;
	--ct2-border-1:     #a1c0ff;  /* FAQ border */
	--ct2-border-2:     #bedbff;  /* Contenido accordion border, text on dark */

	/* Text */
	--ct2-text:         #364153;  /* main body */
	--ct2-text-2:       #3d3d3d;  /* alt body */
	--ct2-text-light:   #f9f9f9;  /* hero title */

	/* Dark spotlight palette */
	--ct2-navy:         #0a1628;  /* Salidas Profesionales bg */
	--ct2-navy-2:       #00183b;
	--ct2-navy-3:       #00245b;
	--ct2-navy-muted:   #41548c;

	color: var(--ct2-text);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Hero ────────────────────────────────────────────────── */
.ct2-hero {
	position: relative;
	overflow: hidden;
	min-height: 506px;
	padding: 28px 0 64px;
	color: #fff;
}
.ct2-hero-bg {
	position: absolute; inset: 0; z-index: 0;
	/* v1 production hero gradient */
	background: linear-gradient(89deg, #193b6d 0%, #3165b1 50%, #07657a 100%);
}
/* Decorative ellipse SVGs reused from existing /landing-pages/home/images/svgs/
   matching Figma "Ellipse 1007" + accents */

.ct2-hero-inner { position: relative; z-index: 2; }

.ct2-breadcrumbs .breadcrumb,
.ct2-breadcrumbs .breadcrumb a,
.ct2-breadcrumbs .breadcrumb span {
	color: rgba(255,255,255,0.85) !important;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
}
.ct2-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255,255,255,0.55) !important;
}

.ct2-badges {
	display: flex; flex-wrap: wrap; gap: 12px;
	margin: 22px 0 24px;
}
.ct2-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 17px;
	background: rgba(255,255,255,0.10);
	border: 1px solid rgba(255,255,255,0.20);
	border-radius: 999px;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 14px; line-height: 20px;
	white-space: nowrap;
}
.ct2-badge i { font-size: 16px; }

.ct2-hero-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 500; /* Poppins Medium */
	font-size: 50px;
	line-height: 75px;
	color: var(--ct2-text-light);
	margin: 0 0 40px; /* Figma: title ends y=365, CTA starts y=405 → 40px gap */
	letter-spacing: -0.5px;
}
/* Full-width subtitle/description block below hero+meta strip
   (Figma: y=594, x=100, w=1240) */
.ct2-hero-lead {
	padding: 32px 0 16px;
}
.ct2-hero-lead-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 32px;
	color: var(--ct2-brand-dark);
	margin: 0 0 14px;
}
.ct2-hero-lead-desc {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	line-height: 30px;
	color: var(--ct2-text);
}
.ct2-hero-lead-desc p { margin: 0 0 12px; }
.ct2-hero-lead-desc p:last-child { margin-bottom: 0; }

.ct2-hero-cta { display: flex; flex-wrap: wrap; gap: 18px; }

.ct2-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 24px;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 18px; line-height: 28px;
	text-decoration: none;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ct2-btn:hover { transform: translateY(-1px); }
.ct2-btn-primary {
	background: #fff;
	color: var(--ct2-brand);
	box-shadow: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.10);
}
.ct2-btn-primary:hover {
	background: #fff; color: var(--ct2-brand);
	box-shadow: 0 14px 22px rgba(0,0,0,0.15), 0 6px 8px rgba(0,0,0,0.10);
}
.ct2-btn-ghost {
	background: rgba(255,255,255,0.10);
	color: #fff;
	border-color: rgba(255,255,255,0.30);
}
.ct2-btn-ghost:hover {
	background: rgba(255,255,255,0.18); color: #fff;
}

/* Hero illustration — Figma: 507×309 panel, top-aligned right */
.ct2-hero-img-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 0;
}
.ct2-hero-img-bubble {
	position: relative;
	width: 100%;
	max-width: 520px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.ct2-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
}

/* ── Course Meta Strip (Modalidad / Duración / Convocatoria / Créditos)
       Figma node 14416:18953 ──────────────────────────────────────── */
.ct2-meta-wrap {
    margin-top: 20px;
	margin-bottom: 20px;
	position: relative;
	z-index: 5;
}
.ct2-meta-strip {
	background: #f2faff;
	border: 1px solid #68c9ff;
	border-radius: 10px;
	padding: 8px 16px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	box-shadow: 0 0 5px rgba(61,61,61,0.12);
	font-family: 'Poppins', sans-serif;
}
.ct2-meta-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 8px;
	color: #41548c;
	font-size: 16px;
	letter-spacing: 1.6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ct2-meta-cell + .ct2-meta-cell { border-left: 1px solid rgba(104,201,255,0.35); }
.ct2-meta-cell i { font-size: 22px; color: #41548c; flex-shrink: 0; }
.ct2-meta-label { font-weight: 600; }
.ct2-meta-value { font-weight: 400; }

/* ── Featured Course banner — Figma: image 802 (y=1114, w=1238, h=268) ── */
.ct2-featured {
	padding: 24px 0;
}
.ct2-featured-card {
	display: flex;
	align-items: center;
	gap: 32px;
	background: var(--ct2-soft-2);
	border: 1px solid var(--ct2-border-2);
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 4px 14px rgba(2,111,151,0.05);
}
.ct2-featured-image {
	flex-shrink: 0;
	width: 220px;
	height: 220px;
	border-radius: 14px;
	overflow: hidden;
}
.ct2-featured-image img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.ct2-featured-body { flex: 1; min-width: 0; }
.ct2-featured-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffc107;       /* v1 production yellow */
	color: #1a1a2e;            /* v1 dark navy text */
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.ct2-featured-label i { font-size: 12px; }
.ct2-featured-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--ct2-brand-dark);
	margin: 0 0 10px;
}
.ct2-featured-desc {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ct2-text);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ct2-btn-featured {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ct2-brand);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 22px;
	border-radius: 10px;
	text-decoration: none;
	transition: background-color .2s ease, transform .15s ease;
}
.ct2-btn-featured:hover {
	background: var(--ct2-brand-dark);
	color: #fff;
	transform: translateY(-1px);
}

/* ── Generic section ─────────────────────────────────────── */
.ct2-section { padding: 26px 0; }

.ct2-narrow {
	max-width: 1180px;
	padding-left: 24px;
	padding-right: 24px;
}

.ct2-section-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 500; /* Poppins Medium */
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.15;
	color: var(--ct2-brand);
	margin: 0 0 24px;
	display: flex;
	align-items: start;
	gap: 16px;
	flex-wrap: nowrap;
}
.ct2-section-title.text-center { justify-content: center; }
.ct2-section-title > .ct2-icon-chip { flex-shrink: 0; }
.ct2-section-title > span:not(.ct2-icon-chip) { flex: 1; min-width: 0; }
.ct2-section-title-2 { color: var(--ct2-brand-dark); }
/* Split title (prefix + accent) — plain block layout, NOT flex */
.ct2-section-title.ct2-section-title-split {
	display: block;
}
.ct2-section-title-split .ct2-st-prefix {
	color: var(--ct2-brand-dark);
	display: inline;
}
.ct2-section-title-split .ct2-st-accent {
	color: var(--ct2-brand);
	display: inline;
}
/* When centered, keep the inline run centered */
.ct2-section-title.ct2-section-title-split.text-center { text-align: center; }
.ct2-section-title.ct2-section-title-split.text-start  { text-align: start; }

.ct2-section-lead {
	font-family: 'Poppins', sans-serif;
	color: var(--ct2-text);
	font-size: 16px; line-height: 30px;
	margin: 0 0 24px;
}
.ct2-icon-chip {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px;
	background: var(--ct2-soft-2);
	color: var(--ct2-brand);
	border-radius: 14px;
	font-size: 28px;
	flex-shrink: 0;
}

.ct2-rich {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	line-height: 30px;
	color: var(--ct2-text);
}
.ct2-rich h1, .ct2-rich h2 {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 32px; line-height: 1.2;
	color: var(--ct2-brand-dark);
	margin: 24px 0 14px;
}
.ct2-rich h3 { font-size: 24px; font-weight: 500; color: var(--ct2-brand-dark); margin: 18px 0 10px; }
.ct2-rich h4 { font-size: 19px; font-weight: 600; color: var(--ct2-text); margin: 14px 0 8px; }
.ct2-rich p  { margin: 0 0 12px; }
.ct2-rich ul, .ct2-rich ol { padding-left: 22px; }
.ct2-rich li { margin: 4px 0; }
.ct2-rich strong { color: var(--ct2-brand-dark); }
.ct2-rich a { color: var(--ct2-brand); }

/* ── Related courses section ─────────────────────────────── */
.ct2-courses { padding-top: 64px; padding-bottom: 64px; }
.ct2-courses .ct2-section-title { margin-bottom: 50px; }

/* ── Accordion (bullet + FAQ) ────────────────────────────── */
.ct2-accordion {
	display: flex; flex-direction: column; gap: 16px;
	background: transparent;
}

/* Bullet (Contenido) variant */
.ct2-accordion-bullet .ct2-accordion-item {
	background: var(--ct2-soft-2);
	border: 1px solid var(--ct2-border-2);
	border-radius: 14px;
	overflow: hidden;
}

/* FAQ variant */
.ct2-accordion-faq .ct2-accordion-item {
	background: var(--ct2-soft-1);
	border: 1px solid var(--ct2-border-1);
	border-radius: 14px;
	overflow: hidden;
}

.ct2-accordion-btn {
	background: transparent;
	color: var(--ct2-text);
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 17px; line-height: 28px;
	padding: 20px 24px;
	display: flex; align-items: center; gap: 16px;
	box-shadow: none !important;
	border-radius: 14px !important;
}
.ct2-accordion-btn:not(.collapsed) {
	background: transparent;
	color: var(--ct2-brand-dark);
}
.ct2-accordion-btn::after {
	background-size: 18px;
}
.ct2-bullet-num {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	background: var(--ct2-brand);
	color: #fff;
	border-radius: 50%;
	font-size: 14px; font-weight: 700;
}
.ct2-accordion-btn.collapsed .ct2-bullet-num { background: var(--ct2-brand-dark); opacity: 0.6; }
.ct2-bullet-text { flex: 1; }
.ct2-accordion-body {
	padding: 0 24px 22px 70px;
	color: var(--ct2-text);
	font-size: 15.5px; line-height: 28px;
}
.ct2-accordion-faq .ct2-accordion-body { padding-left: 24px; }

/* ── Opportunity alternating cards ───────────────────────── */
.ct2-opp-card {
	border-radius: 14px;
	padding: 22px 26px;
	font-size: 16px; line-height: 30px;
}
.ct2-opp-card-a { background: var(--ct2-soft-2); border-left: 4px solid var(--ct2-brand); }
.ct2-opp-card-b { background: #ffe5fc; border-left: 4px solid #c4bdff; }
.ct2-opp-card p:last-child { margin-bottom: 0; }

/* ── 3-Box opportunity row ───────────────────────────────── */
.ct2-opp-box {
	background: #fff;
	border: 1px solid var(--ct2-border-2);
	border-radius: 14px;
	padding: 24px;
	height: 100%;
	font-size: 15.5px; line-height: 28px;
	box-shadow: 0 4px 14px rgba(2,111,151,0.05);
}

/* ── Light gradient section (Demanda) — Figma to-right ───── */
.ct2-light-spot {
	background: linear-gradient(to right, #e7f1fe 0%, var(--ct2-soft-3) 100%);
	border-top: 1px solid var(--ct2-border-2);
	border-bottom: 1px solid var(--ct2-border-2);
	padding: 40px 0;
	margin: 32px 0 0;
}

/* ── Dark navy spotlight (Salidas) — Figma to-bottom ─────── */
.ct2-spotlight {
	background:
		radial-gradient(circle at 100% 0%, rgba(255,255,255,0.05), transparent 45%),
		linear-gradient(to bottom, var(--ct2-navy-2) 0%, var(--ct2-navy-3) 100%);
	color: #fff;
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}
.ct2-on-dark { color: #fff !important; }
.ct2-rich-on-dark { color: var(--ct2-border-2); }
.ct2-rich-on-dark h1, .ct2-rich-on-dark h2,
.ct2-rich-on-dark h3, .ct2-rich-on-dark h4,
.ct2-rich-on-dark strong { color: #fff !important; }
.ct2-rich-on-dark a { color: var(--ct2-border-2) !important; text-decoration: underline; }
.ct2-spotlight .ct2-section-title { color: #fff; }
.ct2-spotlight .ct2-section-lead { color: var(--ct2-border-2); }

/* Salidas boxes — production-matched layout (icon + title inline, desc below) */
.ct2-salida-box {
	padding: 24px;
	height: 100%;
	transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease;
}
.ct2-salida-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
/* First 3: bordered + semi-transparent bg */
.ct2-salida-box-bordered {
	background: rgba(255,255,255,0.10);
	border: 1px solid rgba(255,255,255,0.20);
	border-radius: 14px;
}
/* Rest: plain — only top divider */
.ct2-salida-box-plain {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.20);
	border-radius: 0;
	background: transparent;
}
.ct2-salida-box-content {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}
.ct2-salida-box-img {
	width: 56px; height: 56px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.ct2-salida-box-img img {
	width: 100%; height: 100%;
	object-fit: contain;
}
.ct2-salida-box-title {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	color: #fff;
	margin: 0;
	flex: 1; min-width: 0;
}
.ct2-salida-box-desc {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 22.75px;
	color: var(--ct2-border-2);
	margin: 0;
}

/* Production-style summary card inside dark spotlight */
.ct2-salida-summary {
	margin-top: 28px;
	padding: 24px;
	background: rgba(255,255,255,0.10);
	border: 1px solid rgba(255,255,255,0.20);
	border-radius: 16px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	line-height: 29.25px;
	color: var(--ct2-border-2);
}
.ct2-salida-summary p:last-child { margin-bottom: 0; }
.ct2-salida-summary strong { color: #fff; }
.ct2-salida-summary a { color: #fff; text-decoration: underline; }

/* ── FAQ section ─────────────────────────────────────────── */
.ct2-faq { padding: 64px 0 96px; }
.ct2-faq .ct2-section-title { justify-content: center; }

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet & below (≤ 991.98px) */
@media (max-width: 991.98px) {
	/* Hero: compact, no min-height, smaller title, smaller bottom gap */
	.ct2-hero {
		min-height: 0;
		padding: 20px 0 36px;
	}
	.ct2-hero-title {
		font-size: 36px;
		line-height: 1.18;
		margin: 0 0 24px;
	}
	.ct2-badges { margin: 18px 0 18px; }
	.ct2-badge { font-size: 13px; padding: 7px 14px; gap: 6px; }

	/* Hero image: full width on its own row, taller, centered */
	.ct2-hero-img-wrap {
		justify-content: center;
		margin: 8px 0 4px;
	}
	.ct2-hero-img-bubble {
		max-width: 100%;
		aspect-ratio: 16 / 9;
		border-radius: 14px;
	}

	/* Mobile CTAs row: spacing above + ensure flex */
	.ct2-hero-cta-mobile-wrap { margin-top: 18px; }
	.ct2-hero-cta-mobile-wrap .ct2-hero-cta { gap: 12px; flex-wrap: wrap; }
	.ct2-hero-cta .ct2-btn { width: 100%; padding: 14px 20px; font-size: 16px; }

	/* Hero lead: compact */
	.ct2-hero-lead { padding: 20px 0 8px; }
	.ct2-hero-lead-title { font-size: 19px; line-height: 1.4; }

	/* Generic section spacing */
	.ct2-section { padding: 36px 0; }
	.ct2-section-title { font-size: 30px; flex-wrap: wrap; gap: 12px; }
	.ct2-section-lead { font-size: 15.5px; line-height: 28px; }
	.ct2-icon-chip { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }

	/* Spotlight + Demanda */
	.ct2-light-spot { padding: 32px 0; }
	.ct2-spotlight { padding: 48px 0; margin: 28px 0; }

	/* Accordion */
	.ct2-accordion-btn { padding: 18px 18px; font-size: 16px; gap: 12px; }
	.ct2-accordion-body { padding: 0 18px 18px 60px; font-size: 15px; }
	.ct2-accordion-faq .ct2-accordion-body { padding-left: 18px; }
	.ct2-bullet-num { width: 28px; height: 28px; font-size: 13px; }

	/* Meta strip: 2x2 grid with row dividers */
	.ct2-meta-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 8px 12px;
		gap: 8px;
	}
	.ct2-meta-cell {
		font-size: 14px;
		letter-spacing: 0.4px;  /* tighter on mobile */
	}
	.ct2-meta-cell + .ct2-meta-cell { border-left: 0; }
	.ct2-meta-cell:nth-child(even) { border-left: 1px solid rgba(104,201,255,0.35); }

	/* Featured card: stack vertically */
	.ct2-featured-card { flex-direction: column; gap: 18px; padding: 22px; align-items: stretch; }
	.ct2-featured-image { width: 100%; height: 200px; }
	.ct2-featured-title { font-size: 21px; }

	/* Salidas boxes: more breathing room when stacked */
	.ct2-salida-box { padding: 20px; }
	.ct2-salida-summary { padding: 20px; font-size: 16px; line-height: 26px; }

	/* Opportunity alt cards padding */
	.ct2-opp-card { padding: 18px 20px; }
	.ct2-opp-box { padding: 20px; }
}

/* Phone (≤ 575.98px) */
@media (max-width: 575.98px) {
	.ct2-hero { padding: 16px 0 28px; }
	.ct2-hero-title { font-size: 28px; line-height: 1.2; margin-bottom: 18px; }
	.ct2-badges { gap: 8px; margin: 14px 0 14px; }
	.ct2-badge { font-size: 12px; padding: 6px 12px; }
	.ct2-badge i { font-size: 14px; }

	.ct2-hero-img-bubble { aspect-ratio: 4 / 3; }
	.ct2-hero-cta-mobile-wrap { margin-top: 14px; }

	.ct2-btn { padding: 13px 18px; font-size: 15px; }

	.ct2-hero-lead-title { font-size: 17px; }
	.ct2-hero-lead-desc { font-size: 15px; line-height: 26px; }

	.ct2-section { padding: 28px 0; }
	.ct2-section-title { font-size: 24px; gap: 10px; }
	.ct2-section-lead { font-size: 15px; }

	/* Meta strip: 1 column on phones, top dividers */
	.ct2-meta-strip { grid-template-columns: 1fr; padding: 6px 10px; gap: 4px; }
	.ct2-meta-cell { white-space: normal; padding: 10px 8px; }
	.ct2-meta-cell + .ct2-meta-cell,
	.ct2-meta-cell:nth-child(even) { border-left: 0; border-top: 1px solid rgba(104,201,255,0.35); }

	/* Featured: smaller image */
	.ct2-featured-image { height: 160px; }
	.ct2-featured-title { font-size: 19px; }
	.ct2-featured-desc { font-size: 14px; }

	/* Spotlight: tighter padding */
	.ct2-spotlight { padding: 36px 0; margin: 20px 0; }
	.ct2-light-spot { padding: 24px 0; }

	/* Accordion: compact on phone */
	.ct2-accordion-btn { padding: 16px 14px; font-size: 15px; gap: 10px; }
	.ct2-accordion-body { padding: 0 14px 16px 50px; }
	.ct2-accordion-faq .ct2-accordion-body { padding-left: 14px; }

	/* Salidas summary: compact */
	.ct2-salida-summary { padding: 18px; font-size: 15px; }

	/* Narrow container side gutter */
	.ct2-narrow { padding-left: 16px; padding-right: 16px; }
}
