/* ==========================================================================
   Centroman · estilos del tema
   Reproduce el diseño original (Avada 5.8) sobre bloques nativos.
   ========================================================================== */

:root {
	--cm-morado: #30126d;
	--cm-morado-2: #30176b;
	--cm-verde: #26a98a;
	--cm-amarillo: #f5a623;
	--cm-texto: #666666;
	--cm-titulos: #333333;
	--cm-borde: #e5e5e5;
	--cm-gris: #f4f4f4;
	--cm-ancho: 1100px;
	--cm-gutter: 20px;
	--cm-header-h: 103px;
	--cm-font: Archivo, 'Helvetica Neue', Arial, sans-serif;
	--cm-font-black: 'Archivo Black', Archivo, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: var(--cm-header-h);
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--cm-texto);
	font-family: var(--cm-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--cm-verde);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--cm-morado-2);
}

p {
	margin: 0 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--cm-titulos);
	font-weight: 400;
}

h1 {
	font-family: var(--cm-font-black);
	font-size: 3.5em;
	line-height: 1.4;
	margin: 0 0 0.67em;
}

h2 {
	font-family: var(--cm-font-black);
	font-size: 36px;
	line-height: 1.5;
	margin: 0 0 0.5em;
}

h3 {
	font-family: var(--cm-font-black);
	font-size: 24px;
	line-height: 1.5;
	margin: 1em 0 0.8em;
}

h4 {
	font-family: var(--cm-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--cm-morado);
	margin: 0 0 1.33em;
}

h5,
h6 {
	font-family: var(--cm-font);
	font-size: 14px;
	margin: 0 0 1em;
}

h1 a,
h2 a,
h3 a,
h4 a {
	color: inherit;
}

strong,
b {
	font-weight: 700;
}

ul,
ol {
	margin: 0 0 20px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.cm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--cm-morado);
	color: #fff;
	padding: 10px 16px;
}

.cm-skip-link:focus {
	left: 10px;
	top: 10px;
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--cm-verde);
	outline-offset: 2px;
}

/* --- Cabecera y menú desplegable ------------------------------------------ */

.cm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid var(--cm-borde);
	transition: box-shadow 0.2s ease;
}

.admin-bar .cm-header {
	top: 32px;
}

.cm-header.is-scrolled {
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.cm-header__inner {
	max-width: var(--cm-ancho);
	margin: 0 auto;
	padding: 31px var(--cm-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cm-header__logo {
	display: block;
	line-height: 0;
}

.cm-header__logo img {
	width: 232px;
	height: auto;
}

.cm-menu-toggle {
	position: relative;
	z-index: 120;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--cm-titulos);
}

.cm-menu-toggle:hover {
	color: var(--cm-morado-2);
}

.cm-menu-toggle__bars,
.cm-menu-toggle__bars::before,
.cm-menu-toggle__bars::after {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 3px;
	background: currentColor;
	transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
	content: '';
}

.cm-menu-toggle__bars {
	top: 20px;
}

.cm-menu-toggle__bars::before {
	left: 0;
	top: -8px;
}

.cm-menu-toggle__bars::after {
	left: 0;
	top: 8px;
}

.cm-menu-toggle[aria-expanded='true'] .cm-menu-toggle__bars {
	background: transparent;
}

.cm-menu-toggle[aria-expanded='true'] .cm-menu-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
	background: currentColor;
}

.cm-menu-toggle[aria-expanded='true'] .cm-menu-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
	background: currentColor;
}

.cm-flyout {
	position: fixed;
	inset: 0;
	z-index: 90; /* por debajo de la cabecera, que sigue visible con el botón de cerrar */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--cm-header-h) + 20px) var(--cm-gutter) 40px;
	background: rgba(255, 255, 255, 0.97);
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.cm-flyout[hidden] {
	display: none;
}

.cm-flyout.is-open {
	opacity: 1;
}

.cm-flyout__menu,
.cm-flyout__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.cm-flyout__menu > li {
	margin: 0;
	padding: 10px 0;
}

.cm-flyout__menu a {
	display: inline-block;
	color: var(--cm-titulos);
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1.3;
	padding: 4px 0;
	border-bottom: 3px solid transparent;
}

.cm-flyout__menu a:hover,
.cm-flyout__menu a:focus,
.cm-flyout__menu .current-menu-item > a,
.cm-flyout__menu .current-menu-ancestor > a {
	color: var(--cm-morado-2);
	border-bottom-color: var(--cm-morado-2);
}

.cm-flyout__menu .sub-menu a {
	font-size: clamp(15px, 1.6vw, 18px);
	color: var(--cm-texto);
}

body.cm-menu-open {
	overflow: hidden;
}

/* --- Barra de título -------------------------------------------------------- */

.cm-titlebar {
	display: flex;
	align-items: center;
	min-height: 120px;
	background: #2a2a2a url('../img/page-title.jpg') center / cover no-repeat;
}

.cm-titlebar__inner {
	width: 100%;
	max-width: var(--cm-ancho);
	margin: 0 auto;
	padding: 20px var(--cm-gutter);
	text-align: center;
}

.cm-titlebar__title {
	margin: 0;
	color: #ffffff;
	font-size: 32px;
	line-height: 1.2;
}

/* --- Contenido y secciones -------------------------------------------------- */

.cm-entry__content > * {
	margin-top: 0;
}

.cm-entry__content > :not(.alignfull) {
	max-width: var(--cm-ancho);
	margin-left: auto;
	margin-right: auto;
}

.cm-entry--plain .cm-entry__content {
	max-width: var(--cm-ancho);
	margin: 0 auto;
	padding: 60px var(--cm-gutter) 80px;
}

.cm-entry__content > .alignfull,
.cm-entry__content > .wp-block-group.alignfull,
.cm-entry__content > .wp-block-cover.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.cm-section {
	padding-left: var(--cm-gutter);
	padding-right: var(--cm-gutter);
}

.cm-section--full {
	padding-left: 30px;
	padding-right: 30px;
}

.cm-section > *:last-child,
.wp-block-column > *:last-child {
	margin-bottom: 0;
}

.wp-block-columns {
	margin-bottom: 20px;
}

.wp-block-columns:last-child {
	margin-bottom: 0;
}

.wp-block-column > .wp-block-image:first-child,
.wp-block-column > figure:first-child {
	margin-top: 0;
}

.wp-block-image {
	margin: 0 0 20px;
}

.wp-block-image img {
	display: block;
}

.wp-block-image.aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid #e0dede;
	margin: 30px auto;
	opacity: 1;
}

.wp-block-spacer {
	margin: 0;
}

iframe {
	max-width: 100%;
}

/* Tablas de modelos (antes .table-2 de Avada) */
.wp-block-table {
	margin: 0 0 20px;
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #dcdcdc;
}

.wp-block-table th,
.wp-block-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #dcdcdc;
	text-align: left;
}

.wp-block-table th {
	background: var(--cm-verde);
	color: #ffffff;
	font-weight: 700;
}

.wp-block-table tbody tr:nth-child(even) td {
	background: #f7f7f7;
}

/* --- Botones -------------------------------------------------------------- */

.wp-block-buttons {
	margin-bottom: 20px;
}

.wp-block-button .wp-block-button__link,
.cm-button,
.wpcf7-submit,
.cm-search__submit {
	display: inline-block;
	padding: 13px 29px;
	border: 0;
	border-radius: 2px;
	background: var(--cm-verde);
	color: #ffffff;
	font-family: var(--cm-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 17px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.cm-button:hover,
.cm-button:focus,
.wpcf7-submit:hover,
.wpcf7-submit:focus,
.cm-search__submit:hover {
	background: rgba(38, 169, 138, 0.58);
	color: #ffffff;
}

.wp-block-button.cm-btn--medium .wp-block-button__link,
.cm-button--small {
	padding: 11px 23px;
	font-size: 13px;
	line-height: 16px;
}

.wp-block-button.cm-btn--xlarge .wp-block-button__link {
	padding: 17px 40px;
	font-size: 18px;
	line-height: 21px;
}

.wp-block-button.cm-btn--pill .wp-block-button__link {
	border-radius: 100px;
}

.wp-block-button.cm-btn--morado .wp-block-button__link {
	background: var(--cm-morado);
}

.wp-block-button.cm-btn--morado .wp-block-button__link:hover,
.wp-block-button.cm-btn--morado .wp-block-button__link:focus {
	background: rgba(48, 18, 109, 0.66);
}

.wp-block-button.cm-btn--block {
	width: 100%;
}

.wp-block-button.cm-btn--block .wp-block-button__link {
	display: block;
	width: 100%;
}

/* Botones que abren la ventana de consulta (contenido original: <a class="consulta-comercial"><button>) */
.consulta-comercial {
	display: inline-block;
	cursor: pointer;
}

.consulta-comercial button {
	padding: 15px 34px;
	border: 0;
	border-radius: 100px;
	background: var(--cm-morado);
	color: #ffffff;
	font-family: var(--cm-font);
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.consulta-comercial:hover button,
.consulta-comercial button:focus-visible {
	background: rgba(48, 18, 109, 0.8);
}

/* --- Portada ---------------------------------------------------------------- */

.cm-hero.wp-block-cover {
	padding: 50px var(--cm-gutter);
}

.cm-hero .wp-block-cover__inner-container {
	max-width: var(--cm-ancho);
	margin: 0 auto;
}

.jumbo-image {
	position: relative;
	top: 20px;
	left: 80px;
}

.jumbo-title h1,
.jumbo-title p {
	color: #ffffff !important;
}

.jumbo-title h1 {
	line-height: 1;
	margin-bottom: 50px;
}

.jumbo-title p {
	font-size: 1.3em;
	line-height: 1.1;
	margin-bottom: 40px;
}

.wp-block-button.jumbo-button .wp-block-button__link {
	background: #371c74;
	text-transform: none;
}

.wp-block-button.jumbo-button .wp-block-button__link:hover {
	background: #371c74;
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1300px) {
	.jumbo-title h1 {
		font-size: 2em;
		margin-bottom: 20px;
	}

	.jumbo-image {
		left: 0;
	}
}

.hp-card-p,
.hp-card-g,
.hp-card-y {
	background-color: var(--cm-gris);
}

.hp-card-p {
	border-top: 5px solid var(--cm-morado);
}

.hp-card-g {
	border-top: 5px solid var(--cm-verde);
}

.hp-card-y {
	border-top: 5px solid var(--cm-amarillo);
}

.hp-card-p a,
.hp-card-g a,
.hp-card-y a {
	color: #323232;
}

.hp-card-p a:hover,
.hp-card-g a:hover,
.hp-card-y a:hover {
	color: var(--cm-morado-2);
}

.hp-card-p h3,
.hp-card-g h3,
.hp-card-y h3 {
	padding: 10px 30px 0 25px;
}

.hp-card-p p,
.hp-card-g p,
.hp-card-y p {
	padding: 0 25px 25px;
}

.hp-card-p .wp-block-image,
.hp-card-g .wp-block-image,
.hp-card-y .wp-block-image {
	margin-bottom: 0;
}

.hp-card-p .wp-block-image img,
.hp-card-g .wp-block-image img,
.hp-card-y .wp-block-image img {
	width: 100%;
}

.hp-featured {
	border: 1px solid #e4e4e4;
	min-height: 505px;
	display: flex;
	flex-direction: column;
}

.hp-featured .wp-block-image img {
	padding: 30px;
	margin: 0 auto;
}

.hp-featured h3,
.hp-featured p {
	padding: 5px 20px;
}

.hp-featured h3 {
	padding-top: 25px;
	line-height: 1.3;
}

.hp-featured .wp-block-buttons {
	margin: auto 0 40px 20px;
}

.formacion-banner,
.formacion-banner h2 {
	color: #ffffff;
}

.formacion-banner h2 {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

/* --- Fichas de producto ----------------------------------------------------- */

.ficha-producto h3 {
	margin-bottom: 30px;
	color: var(--cm-verde);
}

.ficha-producto .wp-block-table {
	margin-top: 40px;
	font-size: 0.8em;
	line-height: 1.2;
}

.ficha-caracteristicas,
.ficha-tecnica {
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	margin-bottom: 30px;
	overflow: hidden;
}

.ficha-caracteristicas {
	margin-top: 60px;
}

.ficha-tecnica {
	margin-top: 30px;
}

.ficha-caracteristicas h3,
.ficha-tecnica h3 {
	margin: 0 !important;
	padding: 5px 10px;
	background-color: var(--cm-verde);
	color: #ffffff;
	font-size: 1.2em;
}

.ficha-caracteristicas p {
	padding: 15px 10px 0;
	font-size: 1em;
}

.ficha-tecnica ul {
	list-style: none;
	padding: 15px 20px 5px 20px;
	margin: 0;
}

.ficha-tecnica li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}

.ficha-tecnica li::before {
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326a98a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 15h6M9 18h4'/%3E%3C/svg%3E") no-repeat center / contain;
	content: '';
}

/* --- Plantilla de páginas interiores ---------------------------------------- */

.tmp-mod-1 {
	font-size: 0.85em;
}

.tmp-mod-1 h3 {
	margin: 20px 0 10px;
	font-family: var(--cm-font);
	font-size: 1.2em;
	font-weight: 700;
	color: var(--cm-morado);
}

.mod-2-feat,
.mod-2-feat h2,
.mod-2-feat h3,
.mod-2-feat p,
.mod-2-feat a {
	color: #ffffff !important;
}

.mod-2-feat p a {
	font-weight: 700;
	padding: 3px;
	border-bottom: 2px solid #ffffff;
}

.mod-2-feat .wp-block-button__link {
	padding: 20px 50px !important;
	border-radius: 100px !important;
	border: 1px solid #ffffff;
}

.cm-equipo {
	border-radius: 4px;
	background-color: #2fa88a;
	padding: 10px;
	color: #ffffff;
	font-size: 0.8em;
	text-transform: uppercase;
}

.cm-address ul {
	padding: 0;
	list-style: none;
}

.cm-address li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dedede;
}

/* Iconos en fila heredados del contenido antiguo (clases de Bootstrap) */
.col-md-3 {
	display: inline-block;
	width: 24%;
	padding: 10px;
	text-align: center;
	vertical-align: top;
	font-weight: 700;
	color: var(--cm-titulos);
}

.col-md-3 img {
	display: block;
	margin: 0 auto 8px;
	max-width: 120px;
}

.col-md-3 br {
	display: none;
}

@media (max-width: 640px) {
	.col-md-3 {
		width: 49%;
	}
}

/* --- Landing (Google Ads) --------------------------------------------------- */

.lp-top-text h1 {
	font-size: 42px !important;
	line-height: 1.15;
}

.lp-top-text {
	margin-bottom: 30px;
}

.lp-cards-ventajas {
	text-align: center;
}

.lp-cards-ventajas p:first-of-type {
	margin-top: 30px;
	font-family: var(--cm-font-black);
	font-size: 1.25em;
}

.lp-contact h3 {
	margin-top: -10px;
	font-size: 2em !important;
	color: #afafaf;
}

.lp-contact-ph {
	background-color: #26a989;
	border-radius: 4px;
	padding: 30px 35px 15px;
	color: #ffffff;
}

.lp-contact-ph a {
	color: #ffffff;
	font-family: var(--cm-font-black);
	font-size: 2.3em;
	line-height: 1.2;
}

.lp-contact-ph a:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* --- Formularios (Contact Form 7) ------------------------------------------- */

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='url'],
input[type='number'],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 12px 15px;
	border: 1px solid #d2d2d2;
	border-radius: 4px;
	background: #ffffff;
	color: #323232;
	font-family: var(--cm-font);
	font-size: 15px;
	line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--cm-verde);
	outline: none;
	box-shadow: 0 0 0 2px rgba(38, 169, 138, 0.2);
}

textarea {
	min-height: 150px;
}

.wpcf7 label {
	display: block;
	margin-bottom: 18px;
	color: var(--cm-titulos);
}

.wpcf7 label input,
.wpcf7 label textarea {
	margin-top: 6px;
}

.form-centroman input:not([type='checkbox']):not([type='submit']),
.form-centroman textarea {
	padding: 20px 15px;
}

.wpcf7-list-item {
	display: block;
	margin: 0 0 10px;
}

.wpcf7-list-item label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-size: 0.9em;
	color: var(--cm-texto);
}

.wpcf7-list-item input {
	margin-top: 4px;
	flex: none;
}

.form-button .wpcf7-submit,
.lp-form-button .wpcf7-submit {
	margin: 10px 0 30px;
	padding: 20px 60px;
	border-radius: 100px;
	font-size: 1.2em;
	line-height: 1;
}

.lp-form-button {
	text-align: right;
}

.lp-form-button .wpcf7-submit {
	padding: 20px 40px;
	background: var(--cm-morado);
}

.lp-form-button .wpcf7-submit:hover {
	background: rgba(48, 18, 109, 0.8);
}

.lp-form-contact .column,
.lp-form-contact .column-2 {
	float: left;
	width: 50%;
	margin-bottom: 10px;
}

.lp-form-contact .column {
	padding-right: 20px;
}

.lp-form-contact::after {
	display: block;
	clear: both;
	content: '';
}

.clausula-privacidad {
	font-size: 0.8em;
	opacity: 0.75;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0 0 20px;
	padding: 12px 15px;
	border-radius: 4px;
}

.wpcf7-not-valid-tip {
	font-size: 0.85em;
}

/* --- Ventana emergente ------------------------------------------------------- */

.cm-modal {
	width: min(640px, calc(100% - 40px));
	max-height: calc(100vh - 60px);
	padding: 40px;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	color: var(--cm-texto);
}

.cm-modal::backdrop {
	background: rgba(30, 20, 60, 0.6);
}

.cm-modal__title {
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.25;
	padding-right: 30px;
}

.cm-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--cm-titulos);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* --- Blog -------------------------------------------------------------------- */

.cm-blog {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 23%;
	gap: 6%;
	max-width: var(--cm-ancho);
	margin: 80px auto;
	padding: 0 var(--cm-gutter);
}

.cm-post--card {
	display: grid;
	grid-template-columns: 38% minmax(0, 1fr);
	gap: 30px;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--cm-borde);
}

.cm-post--card:not(:has(.cm-post__thumb)) {
	grid-template-columns: 1fr;
}

.cm-post__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 2px;
}

.cm-post__title {
	margin: 0 0 8px;
	font-family: var(--cm-font);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.cm-post__title a {
	color: var(--cm-titulos);
}

.cm-post__title a:hover {
	color: var(--cm-morado-2);
}

.cm-post__meta {
	margin: 0 0 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #999999;
}

.cm-post__meta a {
	color: inherit;
}

.cm-post__image {
	margin: 0 0 20px;
}

.cm-post__image img {
	display: block;
	width: 100%;
}

.cm-post__content h2 {
	font-size: 28px;
	margin-top: 1.2em;
}

.cm-post__content h3 {
	font-size: 22px;
}

.cm-post__content > :not(.alignfull) {
	max-width: none;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--cm-borde);
	font-weight: 700;
}

.pagination .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 8px 12px;
	border: 1px solid var(--cm-borde);
	text-align: center;
	color: var(--cm-titulos);
}

.pagination .page-numbers.current {
	background: var(--cm-morado);
	border-color: var(--cm-morado);
	color: #ffffff;
}

.cm-sidebar {
	align-self: start;
	padding: 50px 30px;
	border-radius: 4px;
	background-color: rgba(236, 236, 236, 0.5);
}

.cm-widget {
	margin-bottom: 35px;
}

.cm-widget:last-child {
	margin-bottom: 0;
}

.cm-widget__title {
	margin-bottom: 15px;
	color: var(--cm-titulos);
	font-size: 16px;
	text-transform: uppercase;
}

.cm-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-widget li {
	padding: 7px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 14px;
}

.cm-widget li a {
	color: var(--cm-titulos);
}

.cm-widget li a:hover {
	color: var(--cm-morado-2);
}

.cm-search {
	display: flex;
	gap: 6px;
}

.cm-search__input {
	flex: 1;
	min-width: 0;
}

.cm-search__submit {
	padding: 10px 16px;
}

.cm-empty,
.cm-404 {
	text-align: center;
}

.cm-404 .cm-search {
	max-width: 480px;
	margin: 30px auto;
}

/* --- Pie ----------------------------------------------------------------------- */

.cm-footer {
	background: #ffffff;
	border-top: 1px solid #e9eaee;
	color: var(--cm-texto);
}

.cm-footer__widgets {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	max-width: var(--cm-ancho);
	margin: 0 auto;
	padding: 43px var(--cm-gutter) 40px;
}

.cm-footer__title,
.cm-footer h4 {
	margin: 0 0 15px;
	font-size: 21px;
	font-weight: 700;
	color: var(--cm-titulos);
}

.cm-footer a {
	color: var(--cm-morado);
}

.cm-footer a:hover {
	color: rgba(48, 18, 109, 0.58);
}

.cm-footer p {
	margin-bottom: 6px;
}

.cm-footer__menu {
	list-style: none;
	margin: 0;
	padding: 45px 0 0;
	text-align: right;
}

.cm-footer__menu li {
	padding: 10px 10px 10px 12px;
	font-weight: 700;
}

.cm-footer__copyright {
	border-top: 1px solid var(--cm-borde);
}

.cm-footer__copyright p {
	max-width: var(--cm-ancho);
	margin: 0 auto;
	padding: 18px var(--cm-gutter) 16px;
	font-size: 15px;
}

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	:root {
		--cm-header-h: 83px;
	}

	.cm-header__inner {
		padding-top: 21px;
		padding-bottom: 21px;
	}
}

@media (max-width: 900px) {
	.cm-blog {
		grid-template-columns: 1fr;
		gap: 50px;
		margin: 50px auto;
	}

	.cm-post--card {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 782px) {
	.admin-bar .cm-header {
		top: 46px;
	}

	h1 {
		font-size: 2.5em !important;
	}

	h2 {
		font-size: 1.5em !important;
	}

	.formacion-banner h2 {
		font-size: 1.5em !important;
	}

	.cm-titlebar {
		min-height: 70px;
	}

	.cm-titlebar__title {
		font-size: 24px !important;
	}

	.cm-section,
	.cm-section--full {
		padding-left: var(--cm-gutter) !important;
		padding-right: var(--cm-gutter) !important;
	}

	.cm-section[style*='padding-top:120px'],
	.cm-section[style*='padding-top: 120px'] {
		padding-top: 60px !important;
	}

	.cm-section[style*='padding-bottom:120px'],
	.cm-section[style*='padding-bottom: 120px'] {
		padding-bottom: 60px !important;
	}

	.jumbo-image {
		top: 0;
	}

	.hp-featured {
		min-height: 0;
	}

	.lp-form-contact .column,
	.lp-form-contact .column-2 {
		float: none;
		width: 100%;
		padding-right: 0;
	}

	.cm-footer__widgets {
		grid-template-columns: 1fr;
	}

	.cm-footer__menu {
		padding-top: 0;
		text-align: left;
	}

	.cm-footer__menu li {
		padding-left: 0;
	}

	.cm-header__logo img {
		width: 180px;
	}
}

/* Visibilidad por dispositivo (equivalente a "hide_on_mobile" de Avada) */
@media (max-width: 640px) {
	.cm-hide-small {
		display: none !important;
	}
}

@media (min-width: 641px) and (max-width: 1024px) {
	.cm-hide-medium {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.cm-hide-large {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
