/* ======================================================
   SHIMGE — RETÍCULA GLOBAL HOME + CATÁLOGO
   Versión 0.7.119
   ====================================================== */

:root {
	--shimge-layout-max: 1344px;
	--shimge-layout-gutter-desktop: 24px;
	--shimge-layout-gutter-tablet: 20px;
	--shimge-layout-gutter-mobile: 16px;
}

/* ======================================================
   ELEMENTOR — SIN FRANJAS ENTRE SECCIONES FULL WIDTH
   ====================================================== */

/*
 * Los scripts de cada shortcode añaden una de estas clases a todos
 * sus contenedores ascendentes. Elementor puede asignarles padding,
 * margen, espacio entre widgets o gap de Flexbox; cualquiera de ellos
 * deja visible una franja del fondo de la página entre dos secciones.
 */
:is(
	.shg-destacados-host,
	.shg-documentacion-host,
	.shg-cta-contacto-host,
	.shg-header-host,
	.shg-footer-host
) {
	--container-widget-width: 100% !important;
	--gap: 0px 0px !important;
	--row-gap: 0px !important;
	--column-gap: 0px !important;
	--widgets-spacing: 0px 0px !important;
	--kit-widget-spacing: 0px !important;
	box-sizing: border-box !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

:is(
	.shg-destacados-host,
	.shg-documentacion-host,
	.shg-cta-contacto-host,
	.shg-header-host,
	.shg-footer-host
) > :is(.e-con-inner, .elementor-container) {
	--gap: 0px 0px !important;
	--row-gap: 0px !important;
	--column-gap: 0px !important;
	box-sizing: border-box !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

:is(
	.shg-destacados-host,
	.shg-documentacion-host,
	.shg-cta-contacto-host,
	.shg-header-host,
	.shg-footer-host
) :is(
	.elementor-widget-shortcode,
	.elementor-widget-html,
	.elementor-widget-container,
	.elementor-shortcode
) {
	margin: 0 !important;
	padding: 0 !important;
}

/* ======================================================
   HOME — LIBERA LOS CONTENEDORES BOXED DE ELEMENTOR
   ====================================================== */

body.page-id-13 .elementor-13 > :is(
	.elementor-element-fc1dbe9,
	.elementor-element-8f29711,
	.elementor-element-b150d0c,
	.elementor-element-161d712,
	.elementor-element-18989e7
) {
	--container-max-width: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.page-id-13 .elementor-13 > :is(
	.elementor-element-fc1dbe9,
	.elementor-element-8f29711,
	.elementor-element-b150d0c,
	.elementor-element-161d712,
	.elementor-element-18989e7
) > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.page-id-13 .elementor-13 > :is(
	.elementor-element-fc1dbe9,
	.elementor-element-8f29711,
	.elementor-element-b150d0c,
	.elementor-element-161d712,
	.elementor-element-18989e7
) > .e-con-inner > .elementor-widget-html {
	width: 100% !important;
	max-width: none !important;
}

/* Fondo completo independiente de la caja interior. */
body.page-id-13 .shg-accesos {
	--shimge-layout-background: #ffffff;
}

body.page-id-13 .shg-cifras {
	--shimge-layout-background: #0a1018;
}

body.page-id-13 .shg-categorias {
	--shimge-layout-background: #ffffff;
}

body.page-id-13 .shg-familias {
	--shimge-layout-background: #fafbfc;
}

body.page-id-13 .shg-selector {
	--shimge-layout-background: #ffffff;
}

body.page-id-13 :is(
	.shg-accesos,
	.shg-cifras,
	.shg-categorias,
	.shg-familias,
	.shg-selector
) {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	background-color: var(--shimge-layout-background) !important;
	box-shadow: 0 0 0 100vmax var(--shimge-layout-background) !important;
	clip-path: inset(0 -100vmax);
}

body.page-id-13 :is(
	.shg-accesos__contenido,
	.shg-cifras__contenido,
	.shg-categorias__contenido,
	.shg-familias__contenido,
	.shg-selector__contenido
) {
	box-sizing: border-box !important;
	width: calc(100% - (var(--shimge-layout-gutter-desktop) * 2)) !important;
	max-width: var(--shimge-layout-max) !important;
	min-width: 0 !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

/*
 * El Catálogo usa una caja exterior de 1344 px y reserva 24 px
 * dentro de cada borde. La Home replica exactamente esa geometría:
 * 1344 px exteriores y 1296 px útiles en escritorio.
 */
@media (min-width: 851px) {
	body.page-id-13 :is(
		.shg-accesos__contenido,
		.shg-cifras__contenido,
		.shg-categorias__contenido,
		.shg-familias__contenido,
		.shg-selector__contenido
	) {
		padding-right: var(--shimge-layout-gutter-desktop) !important;
		padding-left: var(--shimge-layout-gutter-desktop) !important;
	}
}

body.page-id-13 .shg-accesos__lista,
body.page-id-13 :is(
	.shg-cifras__lista,
	.shg-categorias__lista,
	.shg-familias__lista,
	.shg-selector__preliminar,
	.shg-selector__panel-completo
) {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

body.page-id-13 .shg-accesos__lista {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

body.page-id-13 :is(
	.shg-accesos,
	.shg-cifras,
	.shg-categorias,
	.shg-familias,
	.shg-selector
) :is(img, svg) {
	max-width: 100%;
}

/* ======================================================
   CATÁLOGO — MISMA CAJA EXTERIOR DE 1344 PX
   ====================================================== */

body.page-id-176 .elementor-176,
body.page-id-176 .elementor-176 > .elementor-element-b184420,
body.page-id-176 .elementor-176 .elementor-element-6ec6e67,
body.page-id-176 .elementor-176 .elementor-shortcode {
	--container-max-width: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.page-id-176 .shimge-catalog {
	left: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* ======================================================
   TABLET
   ====================================================== */

@media (min-width: 851px) and (max-width: 1180px) {
	body.page-id-13 :is(
		.shg-accesos__contenido,
		.shg-cifras__contenido,
		.shg-categorias__contenido,
		.shg-familias__contenido,
		.shg-selector__contenido
	) {
		width: calc(100% - (var(--shimge-layout-gutter-desktop) * 2)) !important;
		max-width: 1120px !important;
	}
}

/* ======================================================
   MÓVIL
   ====================================================== */

@media (max-width: 767px) {
	body.page-id-13 :is(
		.shg-accesos__contenido,
		.shg-categorias__contenido,
		.shg-familias__contenido,
		.shg-selector__contenido
	) {
		width: 100% !important;
		max-width: 100% !important;
	}

	body.page-id-13 .shg-cifras__contenido {
		width: calc(100% - (var(--shimge-layout-gutter-mobile) * 2)) !important;
		max-width: 100% !important;
	}
}
