/* ======================================================
   SHIMGE — SOBRE NOSOTROS
   Full-bleed real + retícula global SHIMGE
   ====================================================== */

.shg-about {
	--shg-about-teal: #009da3;
	--shg-about-ink: #0b1115;
	--shg-about-copy: #27343c;
	--shg-about-muted: #56646c;
	--shg-about-line: #dce4e7;
	--shg-about-soft: #f7f9fa;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--shg-about-ink);
	background: #fff;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

.shg-about *,
.shg-about *::before,
.shg-about *::after {
	box-sizing: border-box;
}

/* Elementor no debe encerrar el shortcode en su caja estándar. Esto se
 * aplica desde el primer render con :has() y se refuerza por JS con las
 * clases host para evitar saltos o franjas laterales. */
body :is(
	.elementor,
	.elementor-section-wrap,
	.elementor-section,
	.elementor-container,
	.elementor-row,
	.elementor-column,
	.elementor-column-wrap,
	.elementor-widget-wrap,
	.elementor-element,
	.e-con,
	.e-con-inner,
	.elementor-widget-shortcode,
	.elementor-widget-html,
	.elementor-widget-container,
	.elementor-shortcode
):has([data-shimge-about]),
.shg-about-shell-node {
	--container-max-width: none !important;
	--container-widget-width: 100% !important;
	--content-width: 100% !important;
	--padding-left: 0px !important;
	--padding-right: 0px !important;
	--margin-left: 0px !important;
	--margin-right: 0px !important;
	--gap: 0px 0px !important;
	--row-gap: 0px !important;
	--column-gap: 0px !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	gap: 0 !important;
}

/* La retícula interior replica la geometría global usada por el header:
 * caja exterior 1344 px y 24 px internos por lado en escritorio. */
.shg-about__inner {
	box-sizing: border-box;
	width: min(var(--shimge-layout-max, 1344px), calc(100% - 48px));
	max-width: var(--shimge-layout-max, 1344px);
	min-width: 0;
	margin-inline: auto;
	padding-inline: var(--shimge-layout-gutter-desktop, 24px);
}

.shg-about h1,
.shg-about h2,
.shg-about h3,
.shg-about p,
.shg-about figure {
	margin-top: 0;
}

.shg-about h1,
.shg-about h2,
.shg-about h3 {
	color: var(--shg-about-ink);
	letter-spacing: -.035em;
}

.shg-about h1,
.shg-about h2 {
	font-weight: 800;
	line-height: 1.08;
}

.shg-about h1 {
	max-width: 1150px;
	margin-bottom: 28px;
	font-size: clamp(36px, 3.2vw, 58px);
}

.shg-about h2 {
	margin-bottom: 24px;
	font-size: clamp(34px, 3vw, 54px);
}

.shg-about h3 {
	margin-bottom: 10px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 750;
}

.shg-about p {
	color: var(--shg-about-copy);
	font-size: 18px;
	line-height: 1.62;
}

.shg-about__eyebrow {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--shg-about-teal);
	font-size: 13px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
}

/* VIDEO: es el único bloque cuyo contenido también es full width. */
.shg-about-video {
	position: relative;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
	line-height: 0;
}

.shg-about-video video {
	width: 100%;
	max-width: none;
	height: auto;
	display: block;
	margin: 0;
	padding: 0;
	object-fit: contain;
	object-position: center;
	background: #fff;
}

.shg-about-section {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding-block: 98px;
}

/* Quiénes somos */
.shg-about-intro {
	background: #fff;
	border-bottom: 1px solid var(--shg-about-line);
}

.shg-about-intro__text {
	max-width: 1120px;
}

.shg-about-intro__text p {
	margin-bottom: 24px;
}

.shg-about-intro__text p:last-child {
	margin-bottom: 0;
}

/* Pilares */
.shg-about-pillars {
	background: var(--shg-about-soft);
	border-bottom: 1px solid var(--shg-about-line);
}

.shg-about-pillars h2 {
	margin-bottom: 48px;
}

.shg-about-pillars__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.shg-about-pillar {
	min-height: 214px;
	padding: 30px 30px 28px;
	border: 1px solid var(--shg-about-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.shg-about-pillar:hover {
	border-color: rgba(0, 157, 163, .34);
	box-shadow: 0 14px 34px rgba(0, 125, 132, .08);
	transform: translateY(-2px);
}

.shg-about-pillar__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 24px;
	color: var(--shg-about-teal);
}

.shg-about-pillar__icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.shg-about-pillar p {
	max-width: 370px;
	margin-bottom: 0;
	color: var(--shg-about-muted);
	font-size: 16px;
	line-height: 1.45;
}

.shg-about-section__lead {
	max-width: 1050px;
	margin-bottom: 46px;
}

/* Fábrica e instalaciones */
.shg-about-facilities {
	background: #fff;
	border-bottom: 1px solid var(--shg-about-line);
}

.shg-about-facilities h2 {
	margin-bottom: 16px;
}

.shg-about-facilities__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 22px;
}

.shg-about-photo-card,
.shg-about-product-card {
	display: grid;
	grid-template-rows: auto auto;
	align-content: start;
	margin: 0;
	min-width: 0;
}

.shg-about-photo-card__media,
.shg-about-product-card__media {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100% !important;
	display: block;
	padding: 0 !important;
	margin: 0 !important;
	color: inherit !important;
	cursor: zoom-in;
	overflow: hidden;
	box-shadow: none !important;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.shg-about-photo-card__media {
	height: 240px !important;
	aspect-ratio: auto !important;
	border: 0 !important;
	border-radius: 9px;
	background: transparent !important;
}

.shg-about-photo-card img,
.shg-about-product-card img {
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
	transition: transform .25s ease;
}

.shg-about-photo-card img {
	object-fit: cover;
}

.shg-about-photo-card__media:hover,
.shg-about-photo-card__media:focus,
.shg-about-photo-card__media:focus-visible,
.shg-about-photo-card__media:active {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: 0 0 0 3px rgba(0, 157, 163, .14) !important;
}

.shg-about-photo-card__media:hover img,
.shg-about-product-card__media:hover img {
	transform: scale(1.018);
}

.shg-about-photo-card figcaption,
.shg-about-product-card figcaption {
	padding-top: 11px;
	color: #4f5c63;
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
}

/* Galería de productos */
.shg-about-products {
	background: #fff;
	border-bottom: 1px solid var(--shg-about-line);
}

.shg-about-products h2 {
	margin-bottom: 16px;
}

.shg-about-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 16px;
}

.shg-about-product-card__media {
	height: 260px !important;
	aspect-ratio: auto !important;
	border: 1px solid #dfe6e8 !important;
	border-radius: 10px;
	background: #f1f5f6 !important;
}

/* El tema/Elementor puede inyectar rosa en hover/focus de botones.
 * Se anula de forma explícita y se usa únicamente el teal SHIMGE. */
.shg-about-product-card__media:hover,
.shg-about-product-card__media:focus,
.shg-about-product-card__media:focus-visible,
.shg-about-product-card__media:active {
	border-color: rgba(0, 157, 163, .48) !important;
	background: #eef8f8 !important;
	box-shadow: 0 0 0 3px rgba(0, 157, 163, .12) !important;
	color: inherit !important;
}

.shg-about-product-card img {
	object-fit: contain;
	padding: 18px;
}

/* Disponibilidad local: fondo full width, contenido en retícula */
.shg-about-local {
	min-height: 410px;
	display: flex;
	align-items: flex-start;
	background: var(--shg-about-soft);
}

.shg-about-local h2 {
	margin-bottom: 24px;
}

.shg-about-local .shg-about-section__lead {
	max-width: 1160px;
	margin-bottom: 0;
}

/* Lightbox */
.shg-about-lightbox[hidden] {
	display: none !important;
}

.shg-about-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.shg-about-lightbox__backdrop {
	appearance: none !important;
	position: absolute;
	inset: 0;
	border: 0 !important;
	background: rgba(7, 15, 18, .82) !important;
	box-shadow: none !important;
	backdrop-filter: none;
	cursor: zoom-out;
}

.shg-about-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(1120px, 92vw);
	max-height: 90vh;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 80, 86, .20);
}

.shg-about-lightbox__dialog img {
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	background: #f2f5f6;
}

.shg-about-lightbox__caption {
	padding: 13px 18px 15px;
	font-size: 14px;
	font-weight: 700;
	color: var(--shg-about-ink);
}

.shg-about-lightbox__close,
.shg-about-lightbox__close:hover,
.shg-about-lightbox__close:focus,
.shg-about-lightbox__close:active {
	appearance: none !important;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0 !important;
	border-radius: 50%;
	background: #009da3 !important;
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(0, 125, 132, .20) !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

body.shg-about-lock {
	overflow: hidden;
}

@media (min-width: 851px) and (max-width: 1180px) {
	.shg-about__inner {
		width: min(1120px, calc(100% - 48px));
		max-width: 1120px;
	}
}

@media (max-width: 1200px) {
	.shg-about__inner {
		width: min(1040px, calc(100% - 32px));
		max-width: 1040px;
		padding-inline: 0;
	}

	.shg-about-section {
		padding-block: 78px;
	}

	.shg-about-pillars__grid,
	.shg-about-facilities__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shg-about-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.shg-about-photo-card__media { height: 220px !important; }
	.shg-about-product-card__media { height: 235px !important; }
}

@media (max-width: 760px) {
	.shg-about__inner {
		width: 100%;
		max-width: none;
		padding-inline: var(--shimge-layout-gutter-mobile, 16px);
	}

	.shg-about-section {
		padding-block: 62px;
	}

	.shg-about h1 {
		font-size: clamp(34px, 9vw, 46px);
	}

	.shg-about h2 {
		font-size: clamp(32px, 8vw, 44px);
	}

	.shg-about p {
		font-size: 16px;
	}

	.shg-about-pillars h2 {
		margin-bottom: 32px;
	}

	.shg-about-pillars__grid,
	.shg-about-facilities__grid,
	.shg-about-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shg-about-pillar {
		min-height: 195px;
		padding: 24px;
	}

	.shg-about-section__lead {
		margin-bottom: 32px;
	}

	.shg-about-local {
		min-height: 330px;
	}

	.shg-about-photo-card__media { height: 190px !important; }
	.shg-about-product-card__media { height: 220px !important; }
}

@media (max-width: 520px) {
	.shg-about-pillars__grid,
	.shg-about-facilities__grid,
	.shg-about-products__grid {
		grid-template-columns: 1fr;
	}

	.shg-about-product-card__media {
		height: 270px !important;
		aspect-ratio: auto !important;
	}

	.shg-about-photo-card__media { height: 230px !important; }
}
