/* =====================================================================
   Galería de trabajos — parte pública (shortcode [hm26_galeria])
   Mismo sistema visual que el resto de la web: fondo blanco, Raleway,
   textos grandes, azul #396DBE y navy #10203c.
===================================================================== */

.hm26gl {
	font-family: 'Raleway', Arial, sans-serif;
	background: #fff;
}
.hm26gl * {
	box-sizing: border-box;
}

.hm26gl-wrap {
	max-width: 1220px;
	margin: 0 auto;
	padding: 90px 24px;
}

.hm26gl-cabecera {
	max-width: 700px;
	margin: 0 auto 50px;
	text-align: center;
}
.hm26gl-eyebrow {
	color: #396DBE;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.hm26gl-cabecera h2 {
	font-size: 2.4rem;
	color: #10203c;
	font-weight: 800;
	margin: 0 0 18px;
	letter-spacing: -0.5px;
	line-height: 1.15;
}
.hm26gl-intro {
	font-size: 1.08rem;
	color: #435270;
	line-height: 1.7;
	margin: 0;
}

/* ============ Pestañas de filtro por oficio ============ */
.hm26gl-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 44px;
}
.hm26gl-tab {
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
	color: #435270;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 10px 22px;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.hm26gl-tab:hover {
	background: #eef2f9;
}
.hm26gl-tab.is-active {
	background: #10203c;
	border-color: #10203c;
	color: #fff;
}

/* ============ Rejilla de trabajos ============ */
.hm26gl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.hm26gl-card {
	background: #fff;
	border: 1px solid #eef1f6;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hm26gl-card:hover {
	box-shadow: 0 14px 34px rgba(16, 32, 60, 0.12);
	transform: translateY(-2px);
}
.hm26gl-card.hm26gl-oculta {
	display: none;
}

.hm26gl-card-foto {
	position: relative;
	aspect-ratio: 4 / 3;
	background-color: #eef2f9;
	overflow: hidden;
}
.hm26gl-card-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hm26gl-toggle {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: flex;
	background: rgba(16, 32, 60, 0.55);
	backdrop-filter: blur(4px);
	border-radius: 100px;
	padding: 3px;
	gap: 2px;
}
.hm26gl-toggle-btn {
	border: none;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 6px 14px;
	border-radius: 100px;
	cursor: pointer;
}
.hm26gl-toggle-btn.is-active {
	background: #fff;
	color: #10203c;
}

.hm26gl-card-body {
	padding: 22px 24px 26px;
}
.hm26gl-badge {
	display: inline-block;
	background: #eef2f9;
	color: #396DBE;
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 5px 12px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.hm26gl-card-body h3 {
	font-size: 1.18rem;
	color: #10203c;
	font-weight: 800;
	margin: 0;
	line-height: 1.35;
}

.hm26gl-vacio {
	text-align: center;
	color: #8c8f94;
	font-style: italic;
	padding: 40px 0;
}

/* ============ Ficha ampliada (overlay/modal) ============ */
.hm26gl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 16, 32, 0.72);
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px;
	overflow-y: auto;
	z-index: 99999;
}
.hm26gl-overlay.is-visible {
	display: flex;
}
.hm26gl-modal {
	background: #fff;
	border-radius: 18px;
	max-width: 860px;
	width: 100%;
	padding: 40px;
	position: relative;
	font-family: 'Raleway', Arial, sans-serif;
}
.hm26gl-modal-cerrar {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #f0f2f6;
	color: #10203c;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
.hm26gl-modal-cerrar:hover {
	background: #e2e6ee;
}
.hm26gl-modal-contenido h3 {
	font-size: 1.6rem;
	color: #10203c;
	font-weight: 800;
	margin: 0 0 12px;
	padding-right: 30px;
}
.hm26gl-modal-contenido .hm26gl-badge {
	margin-bottom: 18px;
}
.hm26gl-modal-texto {
	font-size: 1rem;
	color: #435270;
	line-height: 1.75;
	margin-bottom: 30px;
}
.hm26gl-modal-columna {
	margin-bottom: 26px;
}
.hm26gl-modal-columna h4 {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #396DBE;
	font-weight: 800;
	margin: 0 0 12px;
}
.hm26gl-modal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}
.hm26gl-modal-grid img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}

@media (max-width: 980px) {
	.hm26gl-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 700px) {
	.hm26gl-wrap {
		padding: 56px 20px;
	}
	.hm26gl-cabecera h2 {
		font-size: 1.8rem;
	}
	.hm26gl-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.hm26gl-modal {
		padding: 26px;
	}
}
