/* ============================================================
   NX Ficha de Curso — CSS acotado a body.nx-ficha-curso
   Colores y tipografía exactos del prototipo aprobado.
   Nada de este CSS actúa fuera de las fichas activadas.
   ============================================================ */

body.nx-ficha-curso {
	--nxc-navy: #0b1738;
	--nxc-navy-card: #0f2050;
	--nxc-azul: #4592CD;
	--nxc-azul-hover: #4592CD;
	--nxc-azul-claro: #8fb2ff;
	--nxc-morado: #4592CD;
	--nxc-morado-bg: #eaf1fc;
	--nxc-verde: #4cae4f;
	--nxc-verde-ok: #1f8a3b;
	--nxc-txt: #16181d;
	--nxc-txt-2: #3f4653;
	--nxc-txt-3: #5c6470;
	--nxc-txt-tenue: #8b93a1;
	--nxc-borde: #e5e8ee;
	--nxc-borde-2: #d8dde5;
	--nxc-fondo-alt: #f5f7fa;
	--nxc-fondo-hero: #f7f8fb;
}

/* ============ INTEGRACIÓN CON THE7 (solo fichas activas) ============ */
/* 1) The7 recorta el contenido con overflow en sus contenedores, lo que
      desactiva la card sticky. Se libera SOLO en esta página. */
body.nx-ficha-curso #page,
body.nx-ficha-curso #main,
body.nx-ficha-curso #main > .wf-wrap,
body.nx-ficha-curso #main .wf-container-main,
body.nx-ficha-curso #main .wf-container { overflow: visible !important; }

/* 2) La ficha estaba encajada en el ancho máximo de .wf-wrap (1200px),
      por eso los fondos del hero y del formulario se cortaban.
      Se libera el contenedor SOLO dentro de #main de esta página
      (el .wf-wrap del footer no se toca). */
body.nx-ficha-curso #main { padding: 0 !important; }
body.nx-ficha-curso #main > .main-gradient { display: none; }
body.nx-ficha-curso #main > .wf-wrap {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.nx-ficha-curso #main .wf-container-main { padding: 0 !important; }
body.nx-ficha-curso { overflow-x: clip; }

/* 3) El footer de The7 se genera pero queda oculto en esta plantilla:
      se fuerza su visibilidad en posición normal. */
body.nx-ficha-curso #footer {
	position: static !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}

.nxc, .nxc * { box-sizing: border-box; }
.nxc {
	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
	color: var(--nxc-txt);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	font-size: 16px;
	line-height: 1.6;
}
.nxc a { text-decoration: none; }
.nxc ::selection { background: #cfe0ff; }
.nxc img { max-width: 100%; height: auto; }

.nxc-container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.nxc-wrap-rel { position: relative; }
.nxc-kicker { font-size: 10.5px; font-weight: 800; color: var(--nxc-txt-tenue); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }

/* ============ HERO ============ */
.nxc-hero { background: var(--nxc-fondo-hero); position: relative; overflow: hidden; border-bottom: 1px solid var(--nxc-borde); }
.nxc-hero-glow { position: absolute; pointer-events: none; border-radius: 50%; }
.nxc-hero-glow-a { top: -100px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(111,95,191,.09), transparent 70%); }
.nxc-hero-glow-b { bottom: -140px; left: -100px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(75,155,255,.08), transparent 70%); }
.nxc-hero-inner { position: relative; padding-top: 22px; padding-bottom: 28px; }

.nxc-breadcrumb { font-size: 13px; color: var(--nxc-txt-tenue); margin-bottom: 28px; }
.nxc-breadcrumb a { color: var(--nxc-txt-tenue); }
.nxc-breadcrumb .nxc-sep { margin: 0 8px; opacity: .4; }
.nxc-breadcrumb .nxc-actual { color: var(--nxc-txt); font-weight: 700; }

.nxc-hero-row { display: flex; gap: 40px 48px; align-items: flex-start; }
.nxc-hero-main { flex: 1 1 auto; min-width: 0; }
.nxc-hero-hueco { flex: 0 0 340px; }

.nxc-badge {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;
	font-size: 12px; font-weight: 700; color: var(--nxc-navy);
	letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px;
}
.nxc-badge-sq { width: 10px; height: 10px; background: var(--nxc-morado); display: inline-block; flex-shrink: 0; }
.nxc-badge-claro { color: var(--nxc-azul-claro); font-size: 11.5px; margin-bottom: 18px; }

.nxc .nxc-h1 {
	font-family: 'Roboto', system-ui, sans-serif;
	font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 800;
	margin: 0 0 12px; padding: 0; letter-spacing: -0.4px; color: var(--nxc-navy);
}

.nxc-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13.5px; color: var(--nxc-txt-3); }
.nxc-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.nxc-meta-item strong { color: var(--nxc-navy); font-weight: 700; }
.nxc-meta-icon { color: var(--nxc-txt-tenue); }
.nxc-meta-dot { color: var(--nxc-borde-2); }

.nxc-intro { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--nxc-txt-2); margin: 0 0 26px; max-width: 60ch; }
.nxc-intro strong { color: var(--nxc-navy); }

.nxc-incluye { margin-bottom: 22px; }
.nxc-incluye-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.nxc-incluye-item { display: flex; align-items: baseline; gap: 9px; font-size: 14px; line-height: 1.4; }
.nxc-incluye-item strong { color: var(--nxc-navy); font-weight: 600; }
.nxc-incluye-item .nxc-extra { font-weight: 400; color: var(--nxc-txt-3); }
.nxc-check { color: var(--nxc-verde-ok); font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* ============ CARD DE PRECIO (columna sticky) ============ */
.nxc-card-col { position: absolute; top: 68px; bottom: 0; left: 0; right: 0; pointer-events: none; z-index: 16; }
.nxc-card-col-inner { height: 100%; display: flex; justify-content: flex-end; align-items: stretch; }
.nxc-card-slot { width: 340px; max-width: 100%; }
.nxc-card-sticky { position: sticky; top: 86px; pointer-events: auto; }

.nxc-card { border-radius: 0; overflow: hidden; box-shadow: 0 24px 60px rgba(11,23,56,.15); background: #fff; border: 1px solid var(--nxc-borde); }
.nxc-card-body { padding: 20px 22px; }

.nxc-mods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.nxc-mod {
	background: #fff; color: var(--nxc-txt); border: 1.5px solid var(--nxc-borde);
	padding: 12px 14px; border-radius: 0; font-family: inherit; cursor: pointer;
	text-align: left; display: flex; align-items: center; gap: 12px; line-height: 1.25; width: 100%;
}
.nxc-mod-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8ccd4; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nxc-mod-dot span { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.nxc-mod-txt { flex: 1; min-width: 0; }
.nxc-mod-label { display: block; font-weight: 700; font-size: 14.5px; }
.nxc-mod-sub { display: block; font-size: 12px; font-weight: 500; color: var(--nxc-txt-tenue); margin-top: 2px; max-width: 150px; line-height: 1.35; }
.nxc-mod-precio { font-weight: 700; font-size: 14px; color: var(--nxc-txt-tenue); white-space: nowrap; }
.nxc-mod-activa { background: var(--nxc-morado-bg); border-color: var(--nxc-morado); }
.nxc-mod-activa .nxc-mod-dot { border-color: var(--nxc-morado); }
.nxc-mod-activa .nxc-mod-dot span { background: var(--nxc-morado); }
.nxc-mod-activa .nxc-mod-sub { color: #2f6ea3; }
.nxc-mod-activa .nxc-mod-precio { color: var(--nxc-morado); }

.nxc-panel { display: none; }
.nxc-panel-activo { display: block; }
.nxc-price-label { font-size: 11px; color: var(--nxc-txt-tenue); font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.nxc-price { font-size: 24px; font-weight: 600; color: var(--nxc-navy-card); letter-spacing: -0.3px; line-height: 1.2; margin-top: 4px; }
.nxc-price-nota { font-size: 12.5px; color: var(--nxc-txt-tenue); margin-top: 6px; margin-bottom: 18px; }
.nxc-panel-bloque { margin-bottom: 16px; }

.nxc-fechas { display: flex; flex-direction: column; gap: 0; }
.nxc-fecha { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eef0f4; padding: 10px 2px; }
.nxc-fecha:last-child { border-bottom: none; }
.nxc-fecha-txt { flex: 1; min-width: 0; }
.nxc-fecha-dates { display: block; font-weight: 700; font-size: 13.5px; color: var(--nxc-navy); }
.nxc-fecha-detalle { display: block; font-size: 11.5px; color: var(--nxc-txt-tenue); margin-top: 1px; }
.nxc-fechas-vacio { font-size: 12.5px; color: var(--nxc-txt-tenue); margin: 0; }
.nxc-tag { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.nxc-tag-proxima { color: var(--nxc-verde-ok); background: #e7f6ea; }
.nxc-tag-plazas { color: var(--nxc-azul); background: #eaf1fc; }

.nxc-mini-lista { display: flex; flex-direction: column; gap: 7px; }
.nxc-mini-item { display: flex; gap: 9px; align-items: baseline; font-size: 13px; line-height: 1.4; color: #2a303c; }
.nxc-mini-item .nxc-check { font-size: 12px; }
.nxc-link { display: inline-block; font-size: 13px; font-weight: 700; color: var(--nxc-azul); margin-top: 10px; }

.nxc .nxc-cta {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(135deg, #42b04a, #4cae4f); color: #fff !important;
	font-weight: 800; font-size: 16px; padding: 15px; border-radius: 999px;
	box-shadow: 0 12px 26px rgba(76,174,79,.4); margin-bottom: 10px; letter-spacing: .2px;
}
.nxc-cta-fl { font-size: 18px; }
.nxc-cta-nota { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 12px; color: var(--nxc-txt-3); text-align: center; margin: -2px 0 10px; }
.nxc-lock { color: var(--nxc-verde-ok); }
.nxc .nxc-btn-wa {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #fff; color: var(--nxc-txt) !important; font-weight: 700; font-size: 14.5px;
	padding: 12px; border-radius: 999px; border: 1.5px solid var(--nxc-borde-2);
}
.nxc-wa-dot { color: #25a34c; }

/* ============ SUB-NAV ============ */
.nxc-subnav {
	position: sticky; top: 0; z-index: 15;
	background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--nxc-borde); margin-top: 36px;
}
.nxc-subnav-inner { display: flex; gap: 28px; font-size: 14.5px; font-weight: 700; overflow-x: auto; }
.nxc-subnav a { padding: 16px 0; white-space: nowrap; color: var(--nxc-txt-3); border-bottom: 2px solid transparent; }
.nxc-subnav a:hover { color: var(--nxc-azul-hover); }
.nxc-subnav a.nxc-nav-activo { color: var(--nxc-azul-hover); border-bottom-color: var(--nxc-azul-hover); }

/* ============ CUERPO ============ */
.nxc-body { padding-top: 48px; padding-bottom: 80px; }
.nxc-main { max-width: 760px; width: calc(100% - 388px); min-width: 0; }
.nxc-sec { scroll-margin-top: 80px; margin-bottom: 52px; }
.nxc-sec-final { margin-bottom: 20px; }

.nxc .nxc-h2 { font-family: 'Roboto', system-ui, sans-serif; font-size: 18px; font-weight: 700; margin: 0 0 18px; padding: 0; letter-spacing: -0.4px; color: var(--nxc-txt); }
.nxc-h2-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.nxc-h2-row .nxc-h2 { margin-bottom: 0; }
.nxc-mod-count { font-size: 14px; color: var(--nxc-txt-tenue); font-weight: 600; }
.nxc .nxc-h3 { font-family: 'Roboto', system-ui, sans-serif; font-size: 16.5px; font-weight: 700; color: var(--nxc-navy); line-height: 1.35; margin: 0 0 10px; padding: 0; }

.nxc-prosa { font-size: 16px; line-height: 1.65; color: var(--nxc-txt-2); }
.nxc-prosa p { margin: 0 0 14px; }
.nxc-prosa p:last-child { margin-bottom: 0; }
.nxc-prosa strong { color: var(--nxc-navy); }

.nxc ul.nxc-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nxc .nxc-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: #2a303c; margin: 0; }
.nxc .nxc-lista .nxc-marca { flex-shrink: 0; color: var(--nxc-morado); font-weight: 700; }
.nxc .nxc-lista-compacta { gap: 6px; }
.nxc .nxc-lista-compacta li { font-size: 14.5px; line-height: 1.55; color: var(--nxc-txt-2); gap: 10px; }

.nxc-temario { display: flex; flex-direction: column; gap: 24px; }

.nxc-examen-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nxc-exc { background: #f7f8fb; border: none; padding: 20px 22px; }
.nxc-exc-t { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #0b1738; font-size: 15.5px; margin-bottom: 8px; }
.nxc-exc-check { width: 17px; height: 17px; background: #4592CD; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nxc-exc-c { font-size: 14.5px; line-height: 1.6; color: var(--nxc-txt-2); margin: 0; }
.nxc-examen-cta { margin: 16px 0 0; font-size: 15px; color: var(--nxc-txt-2); }
.nxc-examen-cta a { color: #4592CD; font-weight: 700; }

/* Panel modalidad subvencionada */
.nxc-subv-txt { font-size: 13px; line-height: 1.55; color: var(--nxc-txt-2); margin: 0 0 10px; }
.nxc-subv-logo img { max-width: 200px; max-height: 64px; width: auto; height: auto; object-fit: contain; }

/* Sección Acompañamiento técnico */
.nxc-acomp { background: linear-gradient(135deg, #0f2050, #1a2d6c); padding: 48px 40px; text-align: center; }
.nxc .nxc-acomp-t { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 12px; padding: 0; letter-spacing: -0.3px; }
.nxc-acomp-p { color: #c3cbdf; font-size: 15.5px; line-height: 1.65; max-width: 560px; margin: 0 auto 18px; }
.nxc .nxc-acomp-link { color: #8fb2ff; text-decoration: underline; font-weight: 700; font-size: 15.5px; }
.nxc .nxc-acomp-link:hover { color: #fff; }

.nxc-partner { border: none; background: #f4f4f7; padding: 30px 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nxc-partner-badge { width: 150px; height: 150px; flex-shrink: 0; }
.nxc-partner-badge img { width: 100%; height: 100%; object-fit: contain; }
.nxc-partner-kicker { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #4592CD; margin-bottom: 6px; }
.nxc-partner-txt { flex: 1; min-width: 260px; }
.nxc-partner-titulo { font-size: 18px; font-weight: 800; color: var(--nxc-navy); line-height: 1.35; margin: 0 0 8px; }
.nxc-partner-txt p { font-size: 15px; line-height: 1.65; color: var(--nxc-txt-2); margin: 0; }

.nxc-faqs { display: flex; flex-direction: column; gap: 22px; }
.nxc .nxc-faq-q { font-size: 17px; font-weight: 700; color: var(--nxc-navy); line-height: 1.4; margin: 0 0 8px; padding: 0; }
.nxc-faq-a { font-size: 15.5px; line-height: 1.65; color: var(--nxc-txt-2); margin: 0; }

/* ============ FORMULARIO ============ */
.nxc-form-sec { scroll-margin-top: 70px; background: var(--nxc-navy); color: #fff; position: relative; overflow: hidden; }
.nxc-form-glow { position: absolute; pointer-events: none; border-radius: 50%; }
.nxc-form-glow-a { top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(143,178,255,.15), transparent 70%); }
.nxc-form-glow-b { bottom: -160px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(111,95,191,.18), transparent 70%); }
.nxc-form-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 64px 24px; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.nxc-form-copy { flex: 1 1 320px; min-width: 280px; }
.nxc .nxc-form-h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin: 0 0 16px; padding: 0; line-height: 1.1; letter-spacing: -0.5px; color: #fff; }
.nxc-form-p { font-size: 16px; line-height: 1.6; color: #c3cbdf; margin: 0 0 22px; max-width: 36ch; }
.nxc-contactos { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.nxc-contacto { display: flex; align-items: center; gap: 12px; }
.nxc-contacto a { color: #fff !important; font-weight: 700; }
.nxc-contacto-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nxc-ci-tel { background: rgba(143,178,255,.15); color: var(--nxc-azul-claro); }
.nxc-ci-mail, .nxc-ci-wa { background: rgba(126,211,137,.15); color: #7ed389; }

.nxc-form-card { flex: 1.4 1 360px; min-width: 300px; background: #fff; color: var(--nxc-txt); border-radius: 0; padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.nxc-form-card input[type=text], .nxc-form-card input[type=email], .nxc-form-card input[type=tel],
.nxc-form-card select, .nxc-form-card textarea {
	font-family: inherit; font-size: 14.5px; padding: 12px 14px;
	border: 1.5px solid var(--nxc-borde-2); border-radius: 0; background: #fbfcfd; color: var(--nxc-txt);
	width: 100%;
}
.nxc-form-card input[type=submit], .nxc-form-card button[type=submit] {
	background: linear-gradient(135deg, #42b04a, #4cae4f); color: #fff; font-family: inherit;
	font-weight: 700; font-size: 16px; padding: 15px 28px; border: none; border-radius: 999px;
	box-shadow: 0 12px 26px rgba(76,174,79,.35); cursor: pointer; letter-spacing: .2px; width: 100%;
}
.nxc-form-vacio { margin: 0; font-size: 15px; }
.nxc-form-vacio a { color: var(--nxc-azul); font-weight: 700; }

/* ============ STICKY BOTTOM BAR ============ */
.nxc-sticky-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	background: #030824;
	border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.nxc-sticky-bar[hidden] { display: none; }
.nxc-sticky-inner { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nxc-sticky-info { color: #fff; min-width: 0; }
.nxc-sticky-titulo { font-weight: 700; font-size: 15.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxc-sticky-sub { font-size: 13px; color: #9aa0ac; }
.nxc-sticky-ctas { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nxc .nxc-sticky-link { color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 12px 2px; }
.nxc .nxc-sticky-link:hover { color: #4592CD !important; }
.nxc .nxc-sticky-link-wa:hover { color: #7ed389 !important; }
.nxc-sticky-link .nxc-wa-dot { color: #7ed389; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
	.nxc-hero-hueco { display: none; }
	.nxc-card-col { position: static; pointer-events: auto; }
	.nxc-card-col-inner { justify-content: center; }
	.nxc-card-slot { width: 100%; max-width: 480px; }
	.nxc-card-sticky { position: static; margin-top: 24px; }
	.nxc-main { width: 100%; max-width: none; }
	.nxc-subnav { margin-top: 24px; }
}
@media (max-width: 640px) {
	.nxc-incluye-grid { grid-template-columns: 1fr; }
	.nxc-examen-cards { grid-template-columns: 1fr; }
	.nxc-acomp { padding: 36px 22px; }
	.nxc-partner { padding: 20px; gap: 18px; }
	.nxc-form-inner { padding: 44px 20px; }
	.nxc-body { padding-top: 32px; padding-bottom: 56px; }
	.nxc-sticky-titulo { max-width: 55vw; }
}
@media (prefers-reduced-motion: reduce) {
	.nxc, .nxc * { scroll-behavior: auto !important; transition: none !important; }
}
