/**
 * WPBakery Page Builder 8.x compatibility (Altior theme).
 * Restores layout expectations after upgrade from WPBakery 6/7.
 */

/* ---- WPB 8 content wrapper ---- */
.entry-content .wpb-content-wrapper {
	box-sizing: border-box;
	width: 100%;
}

/* Filas VC dentro de .site-main (1184px): ocupan el ancho del contenedor, sin segundo max-width */
.entry-content .wpb-content-wrapper > .vc_row:not([data-vc-full-width="true"]) {
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.entry-content .wpb-content-wrapper > .vc_section {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.entry-content .wpb-content-wrapper > .vc_row.redes-home {
	position: relative;
	z-index: 3;
	margin-top: -50px;
	margin-bottom: 0;
}

/* ---- Grid / columns ---- */
.vc_row.vc_row-fluid {
	box-sizing: border-box;
}

.vc_row.vc_row-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.vc_row.vc_row-flex::before,
.vc_row.vc_row-flex::after {
	display: none;
}

.vc_row.vc_row-flex > .vc_column_container {
	display: flex;
	float: none;
}

.vc_row.vc_row-flex > .vc_column_container > .vc_column-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
}

.vc_row.vc_row-o-content-middle > .vc_column_container > .vc_column-inner {
	justify-content: center;
}

.vc_row.vc_row-o-content-bottom > .vc_column_container > .vc_column-inner {
	justify-content: flex-end;
}

.vc_column_container {
	box-sizing: border-box;
}

.vc_col-sm-1, .vc_col-sm-2, .vc_col-sm-3, .vc_col-sm-4, .vc_col-sm-5, .vc_col-sm-6,
.vc_col-sm-7, .vc_col-sm-8, .vc_col-sm-9, .vc_col-sm-10, .vc_col-sm-11, .vc_col-sm-12 {
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.vc_row:not(.vc_row-flex) > .vc_col-sm-6 {
		float: left;
		width: 50%;
	}
	.vc_row:not(.vc_row-flex) > .vc_col-sm-5 {
		float: left;
		width: 41.66666667%;
	}
	.vc_row:not(.vc_row-flex) > .vc_col-sm-12 {
		float: left;
		width: 100%;
	}
	.vc_row:not(.vc_row-flex)::after {
		content: "";
		display: table;
		clear: both;
	}
}

/* ---- Full-width rows ---- */
.vc_row[data-vc-full-width="true"] {
	box-sizing: border-box;
}

.vc_row-full-width.vc_clearfix {
	display: block;
	clear: both;
}

/* ---- Content blocks ---- */
.wpb_content_element {
	margin-bottom: 0;
}

.wpb_text_column.wpb_content_element {
	margin-bottom: 1rem;
}

.vc_custom_heading {
	margin-top: 0;
}

/* ---- Home: servicios + tabs ---- */
.tabHomerow.vc_row-flex {
	min-height: 480px;
}

@media (min-width: 768px) {
	.tabHomerow.vc_row-flex > .vc_col-sm-5 {
		flex: 0 0 41.666667%;
		max-width: 41.666667%;
	}
	.tabHomerow.vc_row-flex > .vc_col-sm-1 {
		flex: 0 0 8.333333%;
		max-width: 8.333333%;
	}
	.tabHomerow.vc_row-flex > .vc_col-sm-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	.header-home.vc_row-flex > .vc_col-sm-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

.tabHomerow .servicios-tab > .vc_column-inner {
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
}

.tabHomerow .wpb_text_column.tab-servicio {
	display: none !important;
}

.tabHomerow .wpb_text_column.tab-servicio.active {
	display: block !important;
}

/* ---- Home: asesorías 50/50 ---- */
.asesorias-cont.vc_row-flex > .vc_column_container {
	flex: 0 0 50%;
	max-width: 50%;
}

@media (max-width: 767px) {
	.asesorias-cont.vc_row-flex > .vc_column_container {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ---- Section wrapper ---- */
.vc_section {
	box-sizing: border-box;
}

/* ---- Widgetised column (redes) ---- */
.wpb_widgetised_column .widget {
	margin: 0;
}

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

/* Prevent VC from collapsing custom backgrounds */
.vc_row.vc_row-has-fill {
	background-size: cover;
	background-position: center;
}
