/* Conduweb CEA - estilos personalizados */

.btn {
	border-radius: 25px;
	text-transform: none;
	font-weight: 600;
}

.whatsapp-float {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 40px;
	right: 40px;
	background-color: #25d366;
	color: #fff;
	border-radius: 50px;
	text-align: center;
	font-size: 30px;
	box-shadow: 2px 2px 3px #999;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.whatsapp-float:hover {
	background-color: #128c7e;
	color: #fff;
}

/* Proceso CEA */
.cea-process-steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.cea-process-steps span {
	background: #f9da00;
	border: 2px solid #111;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #111;
}

.cea-process-steps a {
	color: inherit;
	text-decoration: none;
}

/* Rombo categorias */
.course-item {
	background: #f9da00 !important;
	border: 4px solid #111 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	position: relative;
	transition: all 0.8s ease-in-out !important;
	clip-path: none !important;
	margin: 60px auto !important;
	box-shadow: 6px 6px 0 #111 !important;
	width: 205px;
	height: 205px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(45deg);
	color: #111 !important;
	overflow: visible;
}

.course-item-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.course-item-link:hover,
.course-item-link:focus {
	text-decoration: none;
	color: inherit;
}

.course-item:hover {
	background-color: #fff !important;
	transform: rotate(405deg);
	box-shadow: 6px 6px 0 #f9da00 !important;
	color: #111 !important;
	border-color: #111 !important;
}

.course-item-inner {
	width: 153px;
	height: 153px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	transform: rotate(-45deg);
	transition: transform 0.8s ease-in-out;
	padding: 0 10px 16px;
	box-sizing: border-box;
}

.course-item:hover .course-item-inner {
	transform: rotate(-405deg);
}

.course-item-body {
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	padding: 0;
	box-sizing: border-box;
}

.course-item h4,
.course-item p {
	transform: none !important;
	margin: 0 !important;
	text-align: center !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	color: inherit !important;
	box-sizing: border-box;
}

.course-item i {
	font-size: 32px !important;
	height: 58px !important;
	width: 58px !important;
	flex: none !important;
	background: #fff !important;
	border: 3px solid #111;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: -21px 0 12px !important;
	transform: rotate(45deg) !important;
	transition: all 0.8s ease-in-out;
	color: #111 !important;
	transform-origin: center center !important;
}

.course-item i::before {
	transform: rotate(-45deg);
	display: block;
	transition: all 0.8s ease-in-out;
}

.course-item:hover i {
	background: #f9da00 !important;
	transform: rotate(45deg) rotate(-360deg) !important;
}

.course-item:hover i::before {
	transform: rotate(315deg);
}

.course-item h4 {
	font-size: 15px !important;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.15;
}

.course-item p {
	font-size: 11px !important;
	line-height: 1.35;
	font-weight: 400;
	padding: 0 !important;
	margin: 2px -8px 0 !important;
	width: calc(100% + 16px) !important;
	max-width: calc(100% + 16px) !important;
}

.course-item h4::before {
	display: none !important;
}

/* Home — textos explicativos en la parte inferior del rombo */
.course-wrapper .course-item-inner {
	justify-content: flex-start;
	align-items: center;
	padding: 10px 8px 12px;
}

.course-wrapper .course-item i {
	margin: -30px 0 8px !important;
	background: transparent !important;
	border: none !important;
	height: auto !important;
	width: auto !important;
	font-size: 44px !important;
	line-height: 1 !important;
	transform: none !important;
}

.course-wrapper .course-item i::before {
	transform: none !important;
}

.course-wrapper .course-item:hover i {
	background: transparent !important;
	transform: none !important;
}

.course-wrapper .course-item:hover i::before {
	transform: none !important;
}

.course-wrapper .course-item-body {
	flex: 0 1 auto;
	margin-top: auto;
	justify-content: flex-end;
	align-items: center;
	width: calc(100% + 22px);
	max-width: calc(100% + 22px);
	margin-left: -11px;
	margin-right: -11px;
	padding-bottom: 2px;
}

.course-wrapper .course-item h4 {
	margin-bottom: 3px !important;
}

.course-wrapper .course-item p {
	margin: 0 !important;
	line-height: 1.3;
}

.course-wrapper .course-item .course-meta {
	margin-top: 3px !important;
	line-height: 1.25;
}

/* Centro CEA: modulos en rombos compactos, una sola fila */
.cea-centro-page .cea-centro-modules {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 40px;
}

.cea-centro-page .cea-centro-module {
	flex: 1 1 0;
	min-width: 0;
	max-width: 20%;
	text-align: center;
}

.cea-centro-page .cea-centro-module .course-item {
	width: 167px;
	height: 167px;
	margin: 18px auto !important;
}

.cea-centro-page .cea-centro-module .course-item-inner {
	width: 121px;
	height: 121px;
	padding: 0 0 6px;
	justify-content: flex-start;
}

.cea-centro-page .cea-centro-module .course-item-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 0;
	width: calc(100% + 18px);
	max-width: calc(100% + 18px);
	margin: 0 -9px;
}

.cea-centro-page .cea-centro-module .course-item i {
	font-size: 22px !important;
	height: 40px !important;
	width: 40px !important;
	margin: -10px 0 4px !important;
}

.cea-centro-page .cea-centro-module .course-item h4 {
	font-size: 10px !important;
	line-height: 1.15;
	margin-bottom: 2px !important;
}

.cea-centro-page .cea-centro-module .course-item p {
	display: block !important;
	font-size: 9px !important;
	line-height: 1.3;
	font-weight: 400;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.cea-centro-page .cea-centro-module-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 28px;
	height: auto !important;
	margin-top: auto;
	padding: 5px 8px !important;
	font-size: 11px !important;
	line-height: 1.15 !important;
	text-align: center !important;
	white-space: normal;
	border-radius: 14px;
	text-transform: none !important;
	font-weight: 600;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.cea-centro-page .cea-centro-module .course-item {
		width: 153px;
		height: 153px;
	}

	.cea-centro-page .cea-centro-module .course-item-inner {
		width: 111px;
		height: 111px;
	}

	.cea-centro-page .cea-centro-module .course-item-body {
		width: calc(100% + 14px);
		max-width: calc(100% + 14px);
		margin: 0 -7px;
	}

	.cea-centro-page .cea-centro-module .course-item h4 {
		font-size: 9px !important;
	}

	.cea-centro-page .cea-centro-module .course-item p {
		font-size: 8px !important;
	}

	.cea-centro-page .cea-centro-module-btn {
		font-size: 10px !important;
		min-height: 26px;
		padding: 4px 6px !important;
	}
}

@media (max-width: 991px) {
	.cea-centro-page .cea-centro-modules {
		flex-wrap: wrap;
		gap: 16px 12px;
	}

	.cea-centro-page .cea-centro-module {
		flex: 1 1 calc(33.333% - 12px);
		max-width: calc(33.333% - 12px);
	}
}

@media (max-width: 767px) {
	.cea-centro-page .cea-centro-module {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.cea-centro-page .cea-centro-module .course-item {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 0 10px !important;
	}

	.cea-centro-page .cea-centro-module .course-item-inner {
		width: 100% !important;
		height: auto !important;
	}
}

/* Topbar CEA */
.cea-topbar {
	background: #111;
	color: #fff;
	font-size: 12px;
	padding: 8px 0;
}

.cea-topbar span {
	margin-right: 18px;
	display: inline-block;
}

.cea-topbar i {
	color: #f9da00;
	margin-right: 4px;
}

.cea-nav-cta > a.btn {
	margin-top: 18px;
	padding: 8px 16px !important;
}

/* Slider — títulos con amarillo del logo */
.hero-slide-content h1 span,
.hero-slide-content h4 span {
	color: #f9da00 !important;
}

/* Botón MATRICULARME — texto centrado */
.cea-btn-matricular,
.hero-slide-content .button-group .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-top: 18px;
	padding: 0 20px !important;
	min-width: 132px;
	line-height: 1.2;
}

.hero-slide-content .button-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.hero-slide-content .button-group .btn + .btn {
	margin-left: 0;
}

.hero-slide-content .button-group .btn.color:first-child {
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Slider home — formulario "Encuentre su curso" */
:root {
	--cea-home-header-clearance: 228px;
	--cea-home-slider-bottom-clearance: 56px;
}

.hero-slider-area .nivo-caption {
	padding-top: 0;
	box-sizing: border-box;
}

.hero-slider-area .slide-table,
.hero-slider-area .table-cell {
	position: relative;
	height: 100%;
}

.hero-slider-area #htmlcaption1 .table-cell,
.hero-slider-area #htmlcaption2 .table-cell {
	display: grid;
	align-items: stretch;
	gap: 24px;
	padding: 0 28px;
	box-sizing: border-box;
	width: 100%;
	min-height: 100%;
	position: relative;
}

.hero-slider-area #htmlcaption1 .table-cell,
.hero-slider-area #htmlcaption2 .table-cell {
	grid-template-columns: 360px minmax(0, 1fr);
	grid-template-areas: "form content";
}

.hero-slider-area #htmlcaption1 .hero-slide-content,
.hero-slider-area #htmlcaption2 .hero-slide-content,
.hero-slider-area #htmlcaption1 .find-course-form,
.hero-slider-area #htmlcaption2 .find-course-form,
.hero-slider-area .nivo-caption .find-course-form {
	float: none !important;
}

.hero-slider-area #htmlcaption1 .hero-slide-content,
.hero-slider-area #htmlcaption2 .hero-slide-content {
	grid-area: content;
	align-self: center;
	justify-self: end;
	width: max-content;
	max-width: 100%;
	margin-top: 0 !important;
	padding-top: var(--cea-home-header-clearance);
	box-sizing: border-box;
	text-align: right;
	min-width: 0;
}

.hero-slider-area #htmlcaption1 .find-course-form,
.hero-slider-area #htmlcaption2 .find-course-form,
.hero-slider-area .nivo-caption .find-course-form {
	position: absolute;
	top: auto;
	bottom: var(--cea-home-slider-bottom-clearance);
	left: 28px;
	z-index: 1;
	grid-area: auto;
	align-self: auto;
	justify-self: auto;
	width: 360px;
	max-width: calc(100% - 56px);
	min-height: 0;
	margin: 0;
	padding: 0 16px 14px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
	box-sizing: border-box;
	background-color: rgba(18, 18, 18, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
	animation: none !important;
	transform: none !important;
	visibility: visible !important;
}

.hero-slider-area .find-course-form h5 {
	margin: 0 -16px 10px;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.35;
	overflow: visible;
	flex-shrink: 0;
	background-color: #fff;
	color: #333;
}

.hero-slider-area .find-course-form h5 span {
	display: block;
	float: left;
	line-height: 1.35;
}

.hero-slider-area .find-course-form h5 i {
	float: right;
	font-size: 15px;
	line-height: 1.35;
}

.hero-slider-area .find-course-form form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 8px;
	row-gap: 9px;
	margin-left: 0;
	margin-right: 0;
	flex-shrink: 0;
}

.hero-slider-area .find-course-form form > div {
	float: none;
	width: 100% !important;
	margin-bottom: 0;
}

.hero-slider-area .find-course-form form > .course-input:nth-of-type(1) {
	grid-column: 1 / -1;
}

.hero-slider-area .find-course-form form > .course-input:nth-of-type(2) {
	grid-column: 1;
}

.hero-slider-area .find-course-form form > .course-input:nth-of-type(3) {
	grid-column: 2;
}

.hero-slider-area .find-course-form form > .course-select:nth-of-type(1) {
	grid-column: 1;
}

.hero-slider-area .find-course-form form > .course-input:nth-of-type(4) {
	grid-column: 2;
}

.hero-slider-area .find-course-form form > .course-field-course,
.hero-slider-area .find-course-form form > .course-field-consent,
.hero-slider-area .find-course-form form > .course-submit {
	grid-column: 1 / -1;
}

.hero-slider-area .find-course-form form > .course-field-consent {
	padding-left: 2px;
}

.hero-slider-area .find-course-form form > .course-field-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 12px !important;
	line-height: 1.4;
	color: #f5f5f5 !important;
	cursor: pointer;
}

.hero-slider-area .find-course-form form > .course-field-consent input[type="checkbox"] {
	margin: 2px 0 0;
	flex-shrink: 0;
	width: auto;
	height: auto;
}

.hero-slider-area .find-course-form form > div input,
.hero-slider-area .find-course-form form .cusselect {
	background-color: rgba(0, 0, 0, 0.42) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
	height: 38px;
	line-height: 26px;
	padding: 5px 10px 5px 32px;
	font-size: 13px;
}

.hero-slider-area .find-course-form .bootstrap-select {
	width: 100% !important;
}

.hero-slider-area .find-course-form .bootstrap-select > .dropdown-toggle {
	height: 38px !important;
	min-height: 38px;
	padding: 5px 28px 5px 32px !important;
	line-height: 26px !important;
	font-size: 13px !important;
	background-color: rgba(0, 0, 0, 0.42) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
}

.hero-slider-area .find-course-form form > div i {
	height: 38px;
	line-height: 38px;
	font-size: 13px;
}

.hero-slider-area .find-course-form form > div input::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.hero-slider-area .find-course-form form .course-select label {
	font-size: 12px !important;
	line-height: 1.35;
	display: block;
	padding-top: 6px;
}

.hero-slider-area .find-course-form form .course-submit {
	margin-top: 2px;
}

.hero-slider-area .find-course-form form .course-submit input {
	width: 100%;
	text-align: center;
	background-color: #9f7a12;
	height: 40px;
	line-height: 26px;
	padding: 6px 16px;
	font-size: 13px;
}

.hero-slider-area .find-course-form form label {
	color: #f5f5f5 !important;
}

/* Ajuste automático en pantallas bajas: sin barra de desplazamiento */
.hero-slider-area .find-course-form.cea-form-compact h5 {
	margin-bottom: 8px;
	padding: 8px 12px;
	font-size: 12px;
}

.hero-slider-area .find-course-form.cea-form-compact form {
	row-gap: 7px;
}

.hero-slider-area .find-course-form.cea-form-compact form > div input,
.hero-slider-area .find-course-form.cea-form-compact form .cusselect,
.hero-slider-area .find-course-form.cea-form-compact .bootstrap-select > .dropdown-toggle {
	height: 34px !important;
	min-height: 34px !important;
	line-height: 22px !important;
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	font-size: 12px !important;
}

.hero-slider-area .find-course-form.cea-form-compact form > div i {
	height: 34px;
	line-height: 34px;
}

.hero-slider-area .find-course-form.cea-form-compact form .course-submit input {
	height: 36px;
	padding: 5px 16px;
}

.hero-slider-area .find-course-form.cea-form-compact form > .course-field-consent label {
	font-size: 11px !important;
	line-height: 1.3;
}

/* Flechas centradas abajo; puntos a la derecha */
.box-layout .hero-slider-area .nivo-directionNav {
	bottom: 22px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	z-index: 120;
}

.box-layout .hero-slider-area .nivo-directionNav::before {
	left: 50%;
}

.box-layout .hero-slider-area .nivo-controlNav {
	bottom: 26px;
	right: 28px;
	z-index: 120;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.hero-slider-area #htmlcaption1 .table-cell,
	.hero-slider-area #htmlcaption2 .table-cell {
		grid-template-columns: 340px minmax(0, 1fr);
	}

	.hero-slider-area #htmlcaption1 .find-course-form,
	.hero-slider-area #htmlcaption2 .find-course-form,
	.hero-slider-area .nivo-caption .find-course-form {
		width: 340px;
		max-width: calc(100% - 56px);
	}
}

@media (max-width: 991px) {
	.hero-slider-area #htmlcaption1 .table-cell,
	.hero-slider-area #htmlcaption2 .table-cell {
		display: block;
		padding: 12px 15px 70px;
	}

	.hero-slider-area #htmlcaption1 .find-course-form,
	.hero-slider-area #htmlcaption2 .find-course-form,
	.hero-slider-area .nivo-caption .find-course-form {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		max-width: none;
		margin: 24px 0 0;
	}
}

/* Breadcrumb y stepper */
.cea-breadcrumb {
	background: transparent;
	margin: 15px 0 0;
	padding: 8px 15px;
}

.cea-stepper {
	margin: 20px 0 10px;
}

.cea-stepper-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.cea-stepper-item a {
	display: block;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 24px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
}

.cea-stepper-item.is-active a {
	background: #f9da00;
	border-color: #111;
	color: #111;
}

.cea-stepper-item.is-done a {
	background: #fff;
	border-color: #111;
}

.cea-checklist {
	padding-left: 18px;
	line-height: 1.7;
}

.cea-footer-info {
	color: #fff;
	font-size: 13px;
}

.cea-footer-info a {
	color: #f9da00;
}

.cea-institutional-bar {
	background: #111;
	color: #fff;
	padding: 28px 0;
	font-size: 13px;
}

.cea-institutional-bar strong {
	color: #f9da00;
}

.course-meta {
	font-size: 10px !important;
	font-weight: 700;
	margin-top: 4px !important;
	text-transform: uppercase;
}

/* Movil: cards en lugar de rombos */
@media (max-width: 767px) {
	.course-item {
		transform: none !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 0 16px !important;
		clip-path: none !important;
		border-radius: 8px !important;
		padding: 16px !important;
		box-shadow: 4px 4px 0 #111 !important;
	}

	.course-item-inner {
		transform: none !important;
		width: 100% !important;
		height: auto !important;
		padding: 0 !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: 12px;
	}

	.course-item:hover,
	.course-item:hover .course-item-inner,
	.course-item:hover i,
	.course-item:hover i::before {
		transform: none !important;
	}

	.course-item i {
		margin: 0 !important;
		transform: none !important;
		flex-shrink: 0;
	}

	.course-item i::before {
		transform: none !important;
	}

	.course-item-body {
		text-align: left !important;
		align-items: flex-start !important;
	}

	.course-wrapper .course-item-body {
		margin-top: 0 !important;
		justify-content: flex-start !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-bottom: 0 !important;
	}

	.course-item h4,
	.course-item p {
		text-align: left !important;
	}

	.cea-stepper-item a {
		font-size: 11px;
		padding: 6px 10px;
	}

	.cea-topbar {
		display: none;
	}
}
