/* Página 404 — diseño child (desktop en fila, móvil en columna). */

body.error404 .theme-page.relative {
	background-color: #f5f6f8;
}

.mc-404-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(1.5rem, 5vw, 4rem);
	box-sizing: border-box;
	min-height: clamp(18rem, 55vh, 32rem);
	margin: clamp(1rem, 3vw, 2rem) auto;
	padding: clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1rem);
	max-width: 72rem;
	background-color: transparent;
	font-family: inherit;
}

.mc-404-layout__code {
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
	padding: 0;
	font-weight: 700;
	line-height: 1;
	color: #348fff;
	/* Protagonista visual: muy superior al titular y al resto del bloque */
	font-size: clamp(5rem, calc(18vw + 1.75rem), 12.5rem) !important;
	letter-spacing: -0.025em;
}

.mc-404-layout__content {
	flex: 1 1 18rem;
	max-width: 100%;
	text-align: left;
}

.mc-404-layout__heading {
	margin: 0 0 clamp(0.75rem, 2vw, 1.125rem);
	font-weight: 700;
	color: #2a2929;
	font-size: clamp(1.125rem, 2.75vw, 1.75rem);
	line-height: 1.28;
	font-family: inherit;
}

.mc-404-layout__text {
	max-width: 36em;
	color: #575c65;
	font-weight: 400;
	font-size: clamp(0.9375rem, 2.1vw, 1.0625rem) !important;
	line-height: 1.55;
	font-family: inherit;
	padding: 0.5rem 0 !important;
}

.mc-404-layout__text.last {
	margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.mc-404-layout__button {
	display: inline-block;
	box-sizing: border-box;
	padding: clamp(0.65rem, 2vw, 0.875rem) clamp(1.25rem, 3.5vw, 2rem);
	background-color: #002a6c;
	color: #fff;
	font-weight: 500;
	font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
	font-family: inherit;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	transition: background-color 0.2s ease;
}

.mc-404-layout__button:hover,
.mc-404-layout__button:focus-visible {
	background-color: #348fff;
	color: #fff;
}

/* Contenedor WPBakery (fallback cuando VC está activo). */
.mc-404-vc-root .wpb_column > .wpb_wrapper {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 719px) {
	.mc-404-layout {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mc-404-layout__content {
		text-align: center;
		max-width: 100%;
	}

	.mc-404-layout__text {
		text-align: left;
	}

	.mc-404-layout__heading {
		font-size: clamp(1.1875rem, calc(3vw + 0.9375rem), 1.375rem);
	}

	.mc-404-layout__button {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Edición del single.php */

.comment-box .comments-number a, body.single ul.blog li.single .post-content > a.reply-button[href="#comment_form"], .reply-button {
	display: none !important;
}

/* Blog CPT: sin caja azul de fecha a la izquierda; contenido a ancho completo */
body.single-blog ul.blog li.single > .comment-box,
.single ul.blog li.type-blog > .comment-box,
.single ul.blog li.type-blog2 > .comment-box {
	display: none !important;
}

.single ul.blog li.type-blog .post-content,
.single ul.blog li.type-blog2 .post-content,
body.single-blog ul.blog li.single .post-content {
	float: none;
	width: 100%;
}

.single ul.blog li.type-blog .post-content > a.post-image,
.single ul.blog li.type-blog2 .post-content > a.post-image,
body.single-blog ul.blog li.single .post-content > a.post-image,
.single ul.blog li.type-blog .post-content > div.post-image,
.single ul.blog li.type-blog2 .post-content > div.post-image,
body.single-blog ul.blog li.single .post-content > div.post-image {
	display: block;
	width: 100%;
	margin-bottom: 1.5rem;
	border-radius: 10px;
	overflow: hidden;
}

.single ul.blog li.type-blog .post-content > a.post-image img,
.single ul.blog li.type-blog2 .post-content > a.post-image img,
body.single-blog ul.blog li.single .post-content > a.post-image img,
.single ul.blog li.type-blog .post-content > div.post-image img,
.single ul.blog li.type-blog2 .post-content > div.post-image img,
body.single-blog ul.blog li.single .post-content > div.post-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.single .post-content .post-title {
	color: #000;
	font-size: 24px;
	line-height: 1.5;
}

/* Single blog: breadcrumbs alineadas al contenido (1230px) y más aire bajo el menú */

.page-header.mc-blog-page-header {
	display: block !important;
	width: 100%;
	visibility: visible;
}

.page-header.mc-blog-page-header > .vc_inner {
	display: block !important;
	box-sizing: border-box;
	width: 1230px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-top: 2.5rem;
	padding-bottom: 1.25rem;
	padding-left: 0;
	padding-right: 0;
	border-bottom: 1px solid #e5e5e5;
}

.page-header.mc-blog-page-header .page-header-left {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	vertical-align: baseline;
}

.page-header.mc-blog-page-header .page-header-right {
	display: none !important;
}

.bread-crumb.mc-blog-breadcrumb {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	float: none !important;
	clear: both;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	font-family: "Open Sans", sans-serif;
	visibility: visible !important;
	opacity: 1 !important;
}

.bread-crumb.mc-blog-breadcrumb li {
	float: none !important;
	display: inline-block;
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	text-transform: none !important;
	color: #999;
}

.bread-crumb.mc-blog-breadcrumb li a {
	color: #999;
	text-decoration: none;
}

.bread-crumb.mc-blog-breadcrumb li a:hover {
	color: #348fff;
}

.bread-crumb.mc-blog-breadcrumb li.separator {
	width: auto !important;
	height: auto !important;
	margin: 0 0.45rem !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: #999;
}

.bread-crumb.mc-blog-breadcrumb li.current {
	color: #348fff !important;
}

@media (max-width: 1279px) {
	.page-header.mc-blog-page-header > .vc_inner {
		width: 990px;
	}
}

@media (max-width: 999px) {
	.page-header.mc-blog-page-header > .vc_inner {
		width: 750px;
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 767px) {
	.page-header.mc-blog-page-header > .vc_inner {
		width: 100%;
		padding-top: 1.75rem;
		padding-left: 15px;
		padding-right: 15px;
	}
}

body.single-blog .widget_archive,
body.single-blog2 .widget_archive,
.mc-blog-page-header ~ .clearfix .widget_archive {
	display: none !important;
}

/* Meta bajo el título del blog */
.mc-blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 0;
	margin: 0.75rem 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e5e5;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #999;
}

.mc-blog-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 0.75rem;
	border-left: 1px solid #e5e5e5;
	color: #999;
}

.mc-blog-meta__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.mc-blog-meta__text {
	color: #999;
}

.mc-blog-meta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.mc-blog-meta__author-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e8f0fc;
	line-height: 0;
}

.mc-blog-meta__tags {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0 0 0.75rem;
	border-left: 1px solid #e5e5e5;
}

.mc-blog-meta__item:first-child.mc-blog-meta__tags {
	padding-left: 0;
	border-left: 0;
}

.mc-blog-meta__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: #e8f0fc;
	color: #002a6c;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

@media (max-width: 719px) {
	.mc-blog-meta {
		gap: 0.5rem 0;
	}

	.mc-blog-meta__item,
	.mc-blog-meta__tags {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.mc-blog-meta__item:first-child {
		padding-left: 0;
	}
}

/* Imágenes de doctores a color */

.mc-gallery .gallery-box img {
	filter: none !important;
}

/* Sentence WPBakery (.sentence.template-quote-2) — cita en recuadro */

.sentence.template-quote-2 {
	box-sizing: border-box;
	margin-top: 24px;
	margin-bottom: 0;
	padding: 1.25rem 1.5rem;
	color: #002a6c;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.55;
	border-radius: 0 8px 8px 0;
	border-left: 5px solid #348fff;
	background: #fff;
	box-shadow: 0 2px 8px 0 rgba(0, 42, 108, 0.06);
}

.sentence.template-quote-2::before,
body .site-container .sentence.template-quote-2::before,
body .site-container li.sentence.template-quote-2::before {
	content: none !important;
	display: none !important;
}

/* Box header numeral: círculo con número (clases "numeral" + "01"|"02"|…) */

.box-header.numeral[data-numeral] {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	font-family: "Open Sans", sans-serif;
}

.box-header.numeral[data-numeral]::before {
	content: attr(data-numeral);
	box-sizing: border-box;
	grid-column: 1;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #348fff;
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.box-header.numeral[data-numeral]::after {
	grid-column: 2;
	grid-row: 2;
	justify-self: start;
	width: 100px;
}

/* Caja de mensaje (WPBakery): no heredar padding/offset de .single .post-content p */

.single .post-content .vc_message_box p,
.single .post-content .vc_message_box p:last-of-type {
	padding: 0;
	position: static;
	top: auto;
}

.single .post-content .vc_message_box,
.single .post-content .vc_message_box.vc_do_message {
	margin-bottom: 0;
}

/* Texto WPBakery: respetar color inline del editor en <strong> (el padre fuerza strong { color: #000 }) */

.single .post-content [style*="color"] strong {
	color: inherit;
}

/* Info Box (WPBakery) — recuadro con listas en columnas */

.single .post-content .info-box {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2rem;
	row-gap: 0.5rem;
	align-items: start;
	padding: 1.5rem 1.75rem;
	text-align: left;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.single .post-content .info-box::before {
	content: none;
	display: none;
}

.single .post-content .info-box > h3 {
	grid-column: 1 / -1;
	margin: 0 0 0.75rem;
	color: #002a6c;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	text-transform: uppercase;
}

.single .post-content .info-box > p,
.single .post-content .info-box > p:last-of-type {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
	color: inherit;
	text-align: left;
	position: static;
	top: auto;
}

.single .post-content .info-box > p:empty {
	display: none;
}

.single .post-content .info-box ul,
.single .post-content .info-box ol {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.single .post-content .info-box ul li,
.single .post-content .info-box ol li {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	text-align: left;
	font-size: 12px;
	line-height: 1.55;
}

.single .post-content .info-box ul li::before {
	content: "" !important;
	position: static;
	flex-shrink: 0;
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #348fff;
	color: #348fff;
	font-family: inherit;
	font-size: 0;
	line-height: 0;
	margin: 0;
	top: auto;
	left: auto;
}

.single .post-content .info-box ol {
	counter-reset: info-box-ol;
}

.single .post-content .info-box ol li {
	counter-increment: info-box-ol;
}

.single .post-content .info-box ol li::before {
	content: counter(info-box-ol) "." !important;
	position: static;
	flex-shrink: 0;
	display: block;
	width: auto;
	min-width: 1.25em;
	height: auto;
	border-radius: 0;
	background: none;
	color: #348fff;
	font-family: "Open Sans", sans-serif;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.55;
	margin: 0;
	top: auto;
	left: auto;
	text-align: right;
}

@media (max-width: 719px) {
	.single .post-content .info-box {
		grid-template-columns: 1fr;
	}
}

/* Cards de características (row con clase "caracteristicas") */

.single .post-content .vc_row.caracteristicas {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1rem;
	margin-left: 0;
	margin-right: 0;
}

.single .post-content .vc_row.caracteristicas::before,
.single .post-content .vc_row.caracteristicas::after {
	display: none;
}

.single .post-content .vc_row.caracteristicas > .wpb_column {
	display: flex;
	float: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

.single .post-content .vc_row.caracteristicas > .wpb_column > .vc_column-inner {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.single .post-content .vc_row.caracteristicas > .wpb_column > .vc_column-inner > .wpb_wrapper {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	padding: 1.5rem 1.25rem;
	text-align: center;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

/* Anchos: 2 / 3 / 4 columnas en desktop (respetando vc_col-sm-*) */
.single .post-content .vc_row.caracteristicas > .vc_col-sm-6 {
	width: calc(50% - 0.5rem);
	flex: 0 0 calc(50% - 0.5rem);
	max-width: calc(50% - 0.5rem);
}

.single .post-content .vc_row.caracteristicas > .vc_col-sm-4 {
	width: calc(33.333% - 0.67rem);
	flex: 0 0 calc(33.333% - 0.67rem);
	max-width: calc(33.333% - 0.67rem);
}

.single .post-content .vc_row.caracteristicas > .vc_col-sm-3 {
	width: calc(25% - 0.75rem);
	flex: 0 0 calc(25% - 0.75rem);
	max-width: calc(25% - 0.75rem);
}

.single .post-content .vc_row.caracteristicas > .vc_col-sm-12 {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

.single .post-content .vc_row.caracteristicas .box-header {
	color: #348fff;
	text-align: center;
	font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 600;
	line-height: 33px;
	margin: 0;
}

.single .post-content .vc_row.caracteristicas .box-header::after {
	margin-left: auto;
	margin-right: auto;
}

/* Ícono: solo reducir espacio abajo; tamaño/caja lo define WPBakery */
.single .post-content .vc_row.caracteristicas .vc_icon_element {
	margin-top: 0;
	margin-bottom: 0.5rem;
	margin-left: auto;
	margin-right: auto;
}

/* Imagen única: slot fijo con contain (sin deformar ni alargar la card) */
.single .post-content .vc_row.caracteristicas .wpb_single_image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	margin: 0 auto 0.75rem;
	padding: 0;
	overflow: hidden;
}

.single .post-content .vc_row.caracteristicas .wpb_single_image .wpb_wrapper,
.single .post-content .vc_row.caracteristicas .wpb_single_image .vc_figure,
.single .post-content .vc_row.caracteristicas .wpb_single_image .vc_single_image-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.single .post-content .vc_row.caracteristicas .wpb_single_image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	margin: 0;
}

.single .post-content .vc_row.caracteristicas .wpb_text_column,
.single .post-content .vc_row.caracteristicas .wpb_text_column .wpb_wrapper,
.single .post-content .vc_row.caracteristicas .wpb_text_column p,
.single .post-content .vc_row.caracteristicas .wpb_text_column p:last-of-type {
	margin: 0;
	padding: 0;
	text-align: center;
	position: static;
	top: auto;
	color: #666;
}

@media (max-width: 991px) {
	.single .post-content .vc_row.caracteristicas > .wpb_column,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-3,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-4,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-6 {
		width: calc(50% - 0.5rem);
		flex: 0 0 calc(50% - 0.5rem);
		max-width: calc(50% - 0.5rem);
	}
}

@media (max-width: 719px) {
	.single .post-content .vc_row.caracteristicas {
		justify-content: center;
	}

	.single .post-content .vc_row.caracteristicas > .wpb_column,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-3,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-4,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-6,
	.single .post-content .vc_row.caracteristicas > .vc_col-sm-12 {
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Single blog: ocultar widget Archivos; sidebar "Otras notas" */

body.single-blog .widget_archive,
body.single-blog2 .widget_archive {
	display: none !important;
}

body.single-blog .mc-scrolling-most-viewed-widget .scrolling-controls .header-right,
body.single-blog .mc-scrolling-most-viewed-widget .scrolling-list-wrapper,
body.single-blog2 .mc-scrolling-most-viewed-widget .scrolling-controls .header-right,
body.single-blog2 .mc-scrolling-most-viewed-widget .scrolling-list-wrapper {
	display: none !important;
}

.mc-otras-notas {
	font-family: "Open Sans", sans-serif;
}

.mc-otras-notas .box-header {
	margin-bottom: 1rem;
}

.mc-otras-notas__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mc-otras-notas__card {
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.mc-otras-notas__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f5f6f8;
}

.mc-otras-notas__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mc-otras-notas__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 140px;
	background: #e8f0fc;
}

.mc-otras-notas__body {
	padding: 1rem 1.1rem 1.15rem;
}

.mc-otras-notas__title {
	margin: 0 0 0.5rem;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #2a2929;
}

.mc-otras-notas__title a {
	color: inherit;
	text-decoration: none;
}

.mc-otras-notas__title a:hover {
	color: #348fff;
}

.mc-otras-notas__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.6rem;
	margin-bottom: 0.75rem;
	font-size: 12px;
	color: #999;
}

.mc-otras-notas__tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.mc-otras-notas__tag {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: #e8f0fc;
	color: #002a6c;
	font-size: 11px;
	font-weight: 500;
}

.mc-otras-notas__more {
	display: inline-block;
	color: #0d6bdf;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.mc-otras-notas__more:hover {
	text-decoration: underline;
}

/* Listado blog: badge tiempo de lectura sobre la imagen */

ul.blog li.post .post-content > a.post-image,
ul.blog li.post a.thumb-image,
ul.blog li.post .gallery-box .image-carousel > li {
	position: relative;
	display: block;
	overflow: hidden;
}

ul.blog li.post .post-content > a.post-image .mc-reading-badge,
ul.blog li.post a.thumb-image .mc-reading-badge,
ul.blog li.post .gallery-box .image-carousel > li .mc-reading-badge,
.vc_gitem-zone.vc_gitem-zone-a .mc-reading-badge {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	box-sizing: border-box;
	margin: 0;
	padding: 0.35rem 0.55rem 0.35rem 0.45rem;
	border-radius: 0 8px 0 0;
	background: #fff;
	color: #0d6bdf;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
}

ul.blog li.post .mc-reading-badge svg,
.vc_gitem-zone.vc_gitem-zone-a .mc-reading-badge svg {
	display: block;
	flex-shrink: 0;
}

.vc_gitem-zone.vc_gitem-zone-a {
	position: relative;
	overflow: hidden;
}

form.wpcf7-form button[type="submit"]:disabled,
form.wpcf7-form input[type="submit"]:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

