/* ============================================================
   Certificaciones — design-mockup's seals (index.html #certificaciones)
   and LAPEM certificates page (certificaciones.html).
   Markup: GEA_Widget_Cert_Seals and GEA_Widget_Lapem_List
   (inc/elementor/widgets/). Loaded only where those widgets are used.
   ============================================================ */

/* ---------- Sellos (Inicio · Calidad GEA) ---------- */
.gea-cert-seals {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--mist-cool);
}

.gea-cert-seals li {
	display: grid;
	justify-items: start;
	gap: 12px;
	margin: 0;
}

.gea-cert-seals .seal-link {
	display: inline-block;
	border-radius: 12px;
	transition: transform 0.2s ease;
}

.gea-cert-seals .seal-link:hover {
	transform: translateY(-2px);
}

/* `.elementor img { height: auto }` would win over a plain class */
.gea-cert-seals .seal-logo,
.elementor .gea-cert-seals img.seal-logo {
	display: block;
	height: 88px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.gea-cert-seals .seal__caption {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--slate);
}

.gea-cert-seals .seal__caption strong {
	color: var(--ink);
	font-weight: 600;
}

.gea-cert-seals .seal__more {
	display: block;
	margin-top: 6px;
	font-weight: 500;
	color: var(--accent);
	text-decoration: none;
}

@media (max-width: 640px) {
	.gea-cert-seals {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.gea-cert-seals li {
		grid-template-columns: 80px 1fr;
		align-items: center;
		gap: 16px;
	}

	.gea-cert-seals .seal-logo,
	.elementor .gea-cert-seals img.seal-logo {
		height: 80px;
	}
}

/* ---------- Constancias LAPEM (página Certificaciones) ---------- */
.lapem-page {
	width: min(var(--container, 1240px), 100% - 48px);
	margin-inline: auto;
	padding-bottom: clamp(64px, 8vw, 104px);
}

.lapem-page__intro {
	max-width: 680px;
	margin: 0 0 32px;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--slate);
}

.lapem-list {
	list-style: none;
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.lapem-list li {
	margin: 0;
}

.lapem {
	display: grid;
	grid-template-columns: 200px 1fr;
	align-items: center;
	gap: 24px;
	padding: 14px 24px 14px 14px;
	background: var(--white);
	border: 1px solid var(--mist-warm);
	border-radius: var(--r-card);
	color: inherit;
	text-decoration: none;
}

/* optional PDF link per card (the mockup currently has none) */
a.lapem {
	grid-template-columns: 200px 1fr auto;
	transition: border-color 0.2s ease;
}

a.lapem:hover {
	border-color: var(--ink);
}

.lapem__brand {
	display: grid;
	place-items: center;
	height: 96px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--ink);
}

.lapem__brand .brand-logo,
.elementor .lapem__brand img.brand-logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	align-self: center;
}

.lapem__brand .brand-logo--stacked,
.elementor .lapem__brand img.brand-logo--stacked {
	height: 58px;
}

.lapem__brand .brand-logo--sistelec {
	filter: brightness(1.9);
}

.lapem__brand .brand-logo--bcn {
	filter: brightness(2.2);
}

.lapem__body {
	display: grid;
	gap: 2px;
}

.lapem__plant {
	font-size: 19px;
	font-weight: 500;
	color: var(--ink);
}

.lapem__city {
	font-size: 15px;
	color: var(--ink);
}

.lapem__company {
	margin-top: 6px;
	font-size: 14px;
	color: var(--slate);
}

.lapem__meta {
	font-size: 13.5px;
	color: var(--slate);
}

.lapem__open {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--accent);
	white-space: nowrap;
}

.lapem:hover .lapem__open span {
	display: inline-block;
	transform: translate(2px, -2px);
}

.lapem-page__back {
	margin: 32px 0 0;
}

.lapem-page__back .link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--accent);
	text-decoration: none;
}

.lapem-page__back .link-arrow span {
	transition: transform 0.25s ease;
}

.lapem-page__back .link-arrow:hover span {
	transform: translateX(4px);
}

@media (max-width: 760px) {
	.lapem,
	a.lapem {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 14px 14px 18px;
	}

	.lapem__brand {
		height: 80px;
		justify-items: start;
	}
}
