/* =============================================================================
   Widget: Blog Profic (Home)
   Figma Design-Profic-Mike 2:460
   Fondo #F8F8F8 · vectores centrados · subtítulo #969696
   IMPORTANTE: no usar vw > 100% en decorativos (rompe overflow-x de toda la página)
   ============================================================================= */

.elementor-widget-profic_blog_home {
	margin-bottom: 0 !important;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

.elementor-widget-profic_blog_home > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

.profic-blog-home-section {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 47px 25px 120px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	overflow: hidden;
	overflow-x: clip;
	isolation: isolate;
	contain: paint;
	background-color: #f8f8f8 !important;
	z-index: 1;
}

@media (min-width: 800px) {
	.profic-blog-home-section {
		padding: 48px 30px 120px;
	}

	.profic-blog-home-header,
	.profic-blog-home-cards {
		max-width: 740px;
	}

	.profic-blog-home-title {
		font-size: 36px;
		line-height: 1.2;
	}

	.profic-blog-home-subtitle {
		font-size: 17px;
		line-height: 1.24;
		max-width: 500px;
	}
}

@media (min-width: 1280px) {
	.profic-blog-home-section {
		padding: 90px 120px 120px;
	}

	.profic-blog-home-header,
	.profic-blog-home-cards {
		max-width: 1040px;
	}

	.profic-blog-home-title {
		font-size: 45px;
		line-height: 1.2;
	}

	.profic-blog-home-subtitle {
		max-width: 1040px;
	}
}

/* Vectores — bandas al 100% del section; el SVG/img se centra DENTRO
 * (nunca un box abspos de 1336px: eso infla scrollWidth y crea la franja negra) */
.profic-blog-home-strokes {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: 100%;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.profic-blog-home-stroke {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	pointer-events: none;
	line-height: 0;
	overflow: hidden;
	display: none;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.profic-blog-home-stroke img,
.profic-blog-home-stroke svg {
	display: block;
	flex-shrink: 0;
	width: 1336px;
	max-width: none;
	height: 223px;
}

.profic-blog-home-stroke.show-desktop,
.profic-blog-home-stroke.show-tablet,
.profic-blog-home-stroke.show-mobile {
	display: none;
}

/*
 * Desktop: arco centrado (Figma 2:466 / 2:467).
 * Contenedor = 100% ancho; imagen 1336 clipada por overflow.
 */
.profic-blog-home-stroke--top.show-desktop {
	display: flex;
	top: calc(50% - 361px);
	height: 223px;
	transform: translateY(-50%);
}

.profic-blog-home-stroke--bottom.show-desktop {
	display: flex;
	top: calc(50% + 278px);
	height: 223px;
	transform: translateY(-50%);
}

.profic-blog-home-stroke--bottom.show-desktop img {
	transform: rotate(180deg);
}

/* Mobile: laterales dentro del 100% (sin left negativos extremos) */
.profic-blog-home-stroke--side-a.show-mobile,
.profic-blog-home-stroke--side-b.show-mobile {
	display: flex;
	top: 0;
	bottom: 0;
	height: auto;
	width: 80px;
	max-width: 80px;
	opacity: 0.45;
	left: auto;
	right: auto;
}

.profic-blog-home-stroke--side-a.show-mobile {
	right: 0;
	left: auto;
	justify-content: flex-end;
}

.profic-blog-home-stroke--side-b.show-mobile {
	left: 0;
	justify-content: flex-start;
}

.profic-blog-home-stroke--side-a.show-mobile svg,
.profic-blog-home-stroke--side-b.show-mobile svg {
	width: 120px;
	height: 100%;
}

@media (min-width: 800px) {
	.profic-blog-home-stroke.show-desktop {
		display: none !important;
	}

	.profic-blog-home-stroke.show-mobile {
		display: none !important;
	}

	.profic-blog-home-stroke--top.show-tablet,
	.profic-blog-home-stroke--bottom.show-tablet {
		display: flex;
		height: auto;
		aspect-ratio: 1336 / 223;
		max-height: 180px;
	}

	.profic-blog-home-stroke--top.show-tablet {
		top: calc(50% - 280px);
		transform: translateY(-50%);
	}

	.profic-blog-home-stroke--bottom.show-tablet {
		top: calc(50% + 220px);
		transform: translateY(-50%);
	}

	.profic-blog-home-stroke--top.show-tablet img,
	.profic-blog-home-stroke--bottom.show-tablet img {
		width: 100%;
		max-width: 1336px;
		height: 100%;
	}

	.profic-blog-home-stroke--bottom.show-tablet img {
		transform: rotate(180deg);
	}
}

@media (min-width: 1280px) {
	.profic-blog-home-stroke.show-tablet {
		display: none !important;
	}

	.profic-blog-home-stroke--top.show-desktop,
	.profic-blog-home-stroke--bottom.show-desktop {
		display: flex !important;
	}
}

/* Cabecera + velo de lectura */
.profic-blog-home-header {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	text-align: center;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 24px 0;
	box-sizing: border-box;
}

.profic-blog-home-header::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(920px, 100%);
	height: 220%;
	pointer-events: none;
	z-index: -1;
	background: radial-gradient(
		ellipse 55% 50% at 50% 50%,
		#f8f8f8 0%,
		rgba(248, 248, 248, 0.92) 35%,
		rgba(248, 248, 248, 0.55) 55%,
		rgba(248, 248, 248, 0) 75%
	);
}

.profic-blog-home-title {
	margin: 0;
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 300;
	font-size: clamp(28px, 4vw, 45px);
	line-height: 1.2;
	color: #090511;
	white-space: normal; /* evita overflow horizontal en mobile */
	position: relative;
	max-width: 100%;
}

.profic-blog-home-title-bold,
.profic-blog-home-title-light {
	font-weight: 300;
}

.profic-blog-home-subtitle {
	margin: 0;
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: 0;
	color: #969696;
	max-width: 1040px;
	width: 100%;
	position: relative;
}

/*
 * Cards fluidas — flex:1, gap 25; stack <700px
 */
.profic-blog-home-cards {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	margin: 0;
	min-width: 0;
}

.profic-blog-home-grid {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 25px;
	width: 100%;
	min-width: 0;
}

@media (min-width: 700px) {
	.profic-blog-home-grid {
		flex-direction: row;
		align-items: stretch;
		height: 440px;
	}
}

.profic-blog-home-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	background-color: #ffffff;
	border: none;
	border-radius: 21px;
	height: 440px;
	min-height: 440px;
	box-sizing: border-box;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	transition: none;
	transform: none;
}

@media (min-width: 700px) {
	.profic-blog-home-card {
		flex: 1 1 0;
		width: auto;
		min-height: 0;
	}
}

.profic-blog-home-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.profic-blog-home-card:hover {
	transform: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.profic-blog-home-card-image-wrap {
	width: 100%;
	height: 180px;
	background-color: #ebebeb;
	overflow: hidden;
	flex-shrink: 0;
}

.profic-blog-home-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profic-blog-home-card-placeholder {
	width: 100%;
	height: 100%;
	background-color: #ebebeb; /* Figma Imagen placeholder */
}

.profic-blog-home-card-info {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	background-color: #ffffff;
	min-height: 0;
	min-width: 0;
	gap: 10px;
}

.profic-blog-home-card-text {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.profic-blog-home-card-category {
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 400;
	font-size: 9px;
	line-height: 1.38em;
	letter-spacing: 0.54px;
	color: #5d0fec;
	text-transform: uppercase;
	margin: 0;
}

.profic-blog-home-card-title {
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.32em;
	color: #090511;
	margin: 0;
	min-height: 52px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.profic-blog-home-card-excerpt {
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.38em;
	color: #090511;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.profic-blog-home-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	min-width: 0;
}

.profic-blog-home-card-author {
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.38em;
	color: #090511;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profic-blog-home-card-date {
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.38em;
	color: #8c8c8c;
	text-align: right;
	margin: 0;
	flex-shrink: 0;
}

.profic-blog-home-empty {
	width: 100%;
	text-align: center;
	color: #8c8c8c;
	padding: 40px 0;
	margin: 0;
	font-family: 'Amsi Pro', sans-serif;
}

/* Figma 1:1792 — stacked 325×440 cards, gap 25. Do not change ≥700px row layout. */
@media (max-width: 699px) {
	.profic-blog-home-section {
		contain: none;
		padding: 47px 25px 120px;
		gap: 40px;
	}

	.profic-blog-home-header {
		padding: 0 0 24px;
		gap: 24px;
	}

	.profic-blog-home-title {
		font-size: 45px;
		line-height: 1.2;
	}

	.profic-blog-home-grid {
		flex-direction: column;
		height: auto;
		gap: 25px;
	}

	.profic-blog-home-card {
		flex: 0 0 auto;
		width: 100%;
		height: 440px;
		min-height: 440px;
	}
}
