/**
 * SEI Integra — Archive / búsqueda
 * Título en una línea + tarjetas oscuras legibles.
 */

/* Hero de archivo */
body.search .elementor-element-3996ce2a,
body.archive .elementor-element-3996ce2a,
body.blog .elementor-element-3996ce2a {
	--content-width: min(100% - 2rem, 1100px) !important;
	--width: 100% !important;
	padding-block: clamp(1.5rem, 4vw, 2.75rem) !important;
}

body.search .elementor-element-3996ce2a > .e-con-inner,
body.archive .elementor-element-3996ce2a > .e-con-inner,
body.blog .elementor-element-3996ce2a > .e-con-inner {
	width: min(100% - clamp(1.25rem, 4vw, 2.5rem), 1100px) !important;
	max-width: 1100px !important;
	margin-inline: auto !important;
}

/* Título de resultados: un solo renglón en desktop/tablet */
body.search .elementor-element-74b99209,
body.archive .elementor-element-74b99209,
body.search .elementor-widget-theme-archive-title,
body.archive .elementor-widget-theme-archive-title {
	width: 100% !important;
	max-width: 100% !important;
	text-align: center !important;
}

body.search .elementor-widget-theme-archive-title .elementor-heading-title,
body.archive .elementor-widget-theme-archive-title .elementor-heading-title,
body.search .elementor-element-74b99209 .elementor-heading-title,
body.archive .elementor-element-74b99209 .elementor-heading-title {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	font-size: clamp(1.25rem, 2.4vw, 2rem) !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	word-spacing: normal !important;
	font-weight: 600 !important;
	color: var(--sei-silver-bright) !important;
	-webkit-text-fill-color: var(--sei-silver-bright) !important;
	background: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

@media (max-width: 600px) {
	body.search .elementor-widget-theme-archive-title .elementor-heading-title,
	body.archive .elementor-widget-theme-archive-title .elementor-heading-title,
	body.search .elementor-element-74b99209 .elementor-heading-title,
	body.archive .elementor-element-74b99209 .elementor-heading-title {
		white-space: normal !important;
		font-size: clamp(1.15rem, 5.2vw, 1.45rem) !important;
	}
}

/* Tarjetas de resultados — fondo oscuro, texto claro */
body.search .elementor-posts-container .elementor-post,
body.archive .elementor-posts-container .elementor-post,
body.search .elementor-widget-archive-posts .elementor-post,
body.archive .elementor-widget-archive-posts .elementor-post,
body.search .elementor-posts-container .elementor-post__card,
body.archive .elementor-posts-container .elementor-post__card {
	background: var(--sei-black-card) !important;
	background-color: var(--sei-black-card) !important;
	border: 1px solid var(--sei-border) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	box-shadow: none !important;
}

body.search .elementor-post .elementor-post__card,
body.archive .elementor-post .elementor-post__card,
body.search .elementor-post .elementor-post__text,
body.archive .elementor-post .elementor-post__text,
body.search .elementor-post .elementor-post__excerpt,
body.archive .elementor-post .elementor-post__excerpt,
body.search .elementor-post .elementor-post__meta-data,
body.archive .elementor-post .elementor-post__meta-data {
	background: var(--sei-black-card) !important;
	background-color: var(--sei-black-card) !important;
	color: var(--sei-silver-light) !important;
}

/* Neutraliza skins Elementor con fondo blanco inline / kit */
body.search .elementor-posts-container .elementor-post,
body.archive .elementor-posts-container .elementor-post,
body.search .elementor-post .elementor-post__text,
body.archive .elementor-post .elementor-post__text {
	--e-global-color-secondary: var(--sei-silver-bright);
	--e-global-color-text: var(--sei-silver-light);
}

body.search .elementor-post .elementor-post__title,
body.archive .elementor-post .elementor-post__title,
body.search .elementor-post .elementor-post__title a,
body.archive .elementor-post .elementor-post__title a {
	color: var(--sei-silver-bright) !important;
	-webkit-text-fill-color: var(--sei-silver-bright) !important;
	background: none !important;
}

body.search .elementor-post .elementor-post__title a:hover,
body.archive .elementor-post .elementor-post__title a:hover {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

body.search .elementor-post .elementor-post__excerpt,
body.archive .elementor-post .elementor-post__excerpt,
body.search .elementor-post .elementor-post__excerpt p,
body.archive .elementor-post .elementor-post__excerpt p {
	color: var(--sei-silver-bright) !important;
	-webkit-text-fill-color: var(--sei-silver-bright) !important;
}

body.search .elementor-post .elementor-post__meta-data,
body.archive .elementor-post .elementor-post__meta-data,
body.search .elementor-post .elementor-post__meta-data span,
body.archive .elementor-post .elementor-post__meta-data span {
	color: var(--sei-silver-dark) !important;
}

body.search .elementor-post .elementor-post__meta-data span + span:before,
body.archive .elementor-post .elementor-post__meta-data span + span:before {
	content: "•" !important;
	color: var(--sei-silver-dark) !important;
}

/* Skin cards: Elementor Pro suele pintar blanco por defecto */
body.search .elementor-posts--skin-classic .elementor-post__card,
body.archive .elementor-posts--skin-classic .elementor-post__card,
body.search .elementor-posts-container.elementor-posts-skin-classic .elementor-post,
body.archive .elementor-posts-container.elementor-posts-skin-classic .elementor-post,
body.search .elementor-element-3b7cb159 .elementor-post__card,
body.archive .elementor-element-3b7cb159 .elementor-post__card,
body.search .elementor-element-3b7cb159 .elementor-post__text,
body.archive .elementor-element-3b7cb159 .elementor-post__text {
	background: #1a1a1a !important;
	background-color: #1a1a1a !important;
	background-image: none !important;
}

body.search .elementor-element-3b7cb159 .elementor-post__title a,
body.archive .elementor-element-3b7cb159 .elementor-post__title a {
	color: #f0f0f0 !important;
	-webkit-text-fill-color: #f0f0f0 !important;
}

body.search .elementor-element-3b7cb159 .elementor-post__excerpt p,
body.archive .elementor-element-3b7cb159 .elementor-post__excerpt p {
	color: #e0e0e0 !important;
	-webkit-text-fill-color: #e0e0e0 !important;
}

body.search .elementor-post .elementor-post__thumbnail img,
body.archive .elementor-post .elementor-post__thumbnail img {
	background: var(--sei-black-elevated);
}

/* Grid de posts con aire */
body.search .elementor-element-aa4d33c > .e-con-inner,
body.archive .elementor-element-aa4d33c > .e-con-inner {
	width: min(100% - clamp(1.25rem, 4vw, 2.5rem), 1200px) !important;
	max-width: 1200px !important;
	margin-inline: auto !important;
	padding-bottom: 2.5rem;
}
