/**
 * Home (front page) layout — fixes VC full-width rows, hero, services tabs, blog strip.
 */

/* Home: mismo contenedor que el resto del sitio (max-width 1184px en .site-main) */
body.home .entry-content {
	margin: 0;
	padding: 0;
}

body.home .entry-content .wpb-content-wrapper {
	margin: 0;
	padding: 0;
	width: 100%;
}

/* Filas full-width WPBakery */
body.home .vc_row[data-vc-full-width="true"] {
	left: 0 !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.home .vc_row-full-width.vc_clearfix {
	height: 0;
	margin: 0;
}

/* ---- Hero ---- */
body.home .header-home {
	position: relative;
	min-height: 560px;
	background-repeat: no-repeat !important;
	background-position: right center !important;
	background-size: 58% auto !important;
	overflow: visible !important;
}

body.home .header-home .header-home_title.vc_column_container {
	background: transparent !important;
}

body.home .header-home .header-home_title > .vc_column-inner {
	background-color: rgba(255, 255, 255, 0.75);
	border-radius: 0 20px 20px 0;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
	margin-top: 100px;
	margin-bottom: 70px;
	padding: 40px 6% 40px 8% !important;
}

body.home .header-home .header-home_title h1 {
	margin-top: 0;
}

body.home .header-home .header-home_title h2 {
	font-size: 1.25rem;
	font-weight: 400;
	margin: 0.5rem 0 1rem;
}

body.home .header-home .header-home_title .btn {
	margin-top: 1rem;
}

/* Columna derecha vacía: deja ver la imagen de fondo */
body.home .header-home > .vc_col-sm-6:last-child .vc_column-inner {
	background: transparent;
	min-height: 1px;
}

/* ---- Redes sociales: debajo del hero, alineadas a la derecha del contenido (1184px) ---- */
body.home .redes-home .textwidget ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.home .redes-home .textwidget ul li {
	margin: 0;
}

body.home .redes-home img {
	max-height: 28px;
	width: auto;
}

/* ---- Servicios (tabs) ---- */
body.home .tabHomerow {
	min-height: 480px;
	align-items: stretch !important;
}

body.home .tabHomerow .servicios-tab .vc_column-inner {
	border-radius: 20px;
	overflow: hidden;
}

body.home .tabHomerow .wpb_text_column.tab-servicio {
	display: none;
}

body.home .tabHomerow .wpb_text_column.tab-servicio.active {
	display: block;
}

/* ---- Destacado central (sombra solo en .destacado-home, ver main-altior.css) ---- */
body.home .tabHomerow + .vc_row {
	position: relative;
	z-index: 4;
	margin-top: -70px !important;
	margin-bottom: -50px !important;
}

body.home .destacado-home {
	position: relative;
	z-index: 4;
}

body.home .destacado-home .wpb_wrapper {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

body.home .destacado-home h3 {
	margin: 0;
}

/* ---- Título sección blog ---- */
body.home .entry-content .vc_row .wpb_text_column h2 {
	font-family: "Poppins", sans-serif;
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1.15;
	margin: 2.5rem 0 0.5rem;
}

body.home .entry-content .vc_row .wpb_text_column h2 strong {
	color: var(--primary);
	font-weight: 700;
}

body.home .entry-content .vc_row .wpb_text_column h2 + p {
	color: var(--grey);
	margin: 0 0 2rem;
	font-size: 1rem;
}

/* ---- Sección blog en home ---- */
body.home .wpb_text_column .cont-blog-home {
	margin-top: 0;
}

body.home .cont-blog-home {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	margin: 20px auto 10px;
}

body.home .cont-blog-home .blog-home {
	width: calc(33.333% - 14px);
	flex: 0 0 calc(33.333% - 14px);
	margin: 0;
}

body.home .cont-blog-home .blog-home > a {
	display: block;
	height: 100%;
	text-decoration: none;
}

body.home .cont-blog-home .blog-home .cont-img {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
}

body.home .cont-blog-home .blog-home .cont-img img {
	display: block;
	width: 100%;
	height: 250px;
	min-height: 250px;
	object-fit: cover;
}

body.home .cont-blog-home .blog-home .fecha {
	position: absolute;
	top: 131px;
	left: -33px;
	background-color: var(--primary);
	padding: 6px 22px;
	border-top-right-radius: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(270deg);
	transform-origin: 0 0;
	z-index: 2;
}

body.home .cont-blog-home .blog-home .cat {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--grey);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	margin: 14px 0 8px;
}

body.home .cont-blog-home .blog-home .cat::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background: url(/wp-content/uploads/2022/07/categoria.svg) center/contain no-repeat;
	flex-shrink: 0;
}

body.home .cont-blog-home .blog-home h3 {
	color: var(--sucess);
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
}

body.home .cont-blog-home .blog-home:hover {
	margin-top: -10px;
}

body.home .cont-blog-home .blog-home:hover .cont-img img {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón "Leer todas" */
body.home .entry-content .wpb-content-wrapper .vc_row .btn p {
	text-align: right;
	margin: 0 0 50px;
}

/* Nuestra historia */
body.home .nuestra-historia_destacado {
	margin-top: -80px;
}

/* Números decorativos asesorías */
body.home .asesoria-empresas::before,
body.home .asesoria-autonomos::before {
	pointer-events: none;
}

/* ---- Tablet / móvil ---- */
@media (max-width: 991px) {
	body.home .header-home {
		background-size: cover !important;
		background-position: top center !important;
		min-height: 420px;
	}

	body.home .header-home .header-home_title > .vc_column-inner {
		margin-top: 90px;
		margin-bottom: 40px;
		border-radius: 0;
		padding: 2rem 1.25rem !important;
	}

	body.home .cont-blog-home {
		flex-wrap: wrap;
		justify-content: center;
	}

	body.home .cont-blog-home .blog-home {
		width: 100%;
		flex: 0 0 100%;
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	body.home .redes-home {
		margin-top: 0;
	}

	body.home .redes-home .textwidget ul {
		justify-content: center;
	}

	body.home .tabHomerow {
		min-height: auto;
	}

	body.home .tabHomerow + .vc_row {
		margin-top: -40px !important;
		margin-bottom: -30px !important;
	}

	body.home .destacado-home {
		padding: 1.5rem;
	}
}
