/* ═══════════════════════════════════════════════════
 * Shortcode Servicios — [pimem_servicios]
 * Grid de servicios con cards (según prototipo final)
 * ═══════════════════════════════════════════════════ */

/* ── Variables ── */
.pimem-servicios-hub {
	--red: #e8312b;
	--red2: #c0211c;
	--ink: #17171c;
	--gray: #5c5c66;
	--line: #e7e7ec;
	--soft: #f4f4f6;
	--green: #147a50;
	--greenbg: #e9f7ef;
	--blue: #1d4ed8;
	--bluebg: #e9eefc;
	--gold: #b45309;
	--goldbg: #fef3c7;
}

/* ── Grid ── */
.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* ── Card base ── */
.service {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 26px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	transition: transform .18s, box-shadow .18s;
}

.service.featured {
	grid-column: span 2;
	border-top: 4px solid var(--red);
}

.service:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, .09);
}

/* ── Icono circular ── */
.service .ic {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #fdeceb;
	color: var(--red);
	display: grid;
	place-items: center;
	font-weight: 900;
	font-size: 18px;
	margin-bottom: 18px;
	flex-shrink: 0;
}

.service.blue .ic {
	background: var(--bluebg);
	color: var(--blue);
}

.service.green .ic {
	background: var(--greenbg);
	color: var(--green);
}

.service.gold .ic {
	background: var(--goldbg);
	color: var(--gold);
}

/* ── Título ── */
.service h3 {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.65px;
	line-height: 1.16;
	margin: 0;
}

/* ── Descripción ── */
.service p {
	font-size: 13.5px;
	color: var(--gray);
	margin-top: 10px;
	flex: 1;
	line-height: 1.6;
}

/* ── Chip (etiqueta) ── */
.service .chip {
	display: inline-flex;
	width: max-content;
	margin-top: 15px;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
	background: var(--greenbg);
	color: var(--green);
}

.service .chip.blue {
	background: var(--bluebg);
	color: var(--blue);
}

.service .chip.gold {
	background: var(--goldbg);
	color: var(--gold);
}

/* ── Enlace ── */
.service > a {
	margin-top: 18px;
	color: var(--red);
	font-weight: 900;
	font-size: 13px;
	text-decoration: none;
}

.service > a:hover {
	text-decoration: underline;
}

/* ── Estado vacío ── */
.pimem-servicios-empty {
	text-align: center;
	padding: 48px 24px;
	color: var(--gray);
	font-size: 15px;
	background: var(--soft);
	border-radius: 18px;
	border: 1px dashed var(--line);
}

/* ── Contenedor global para grid de mini-cards (usado por otros shortcodes) ── */
.pimem-servicios-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* ═══════════════════════════════════════════════════
 * Responsive
 * ═══════════════════════════════════════════════════ */

@media (max-width: 1120px) {
	.services {
		grid-template-columns: 1fr 1fr;
	}

	.service.featured {
		grid-column: span 2;
	}

	.pimem-servicios-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.services,
	.pimem-servicios-grid {
		grid-template-columns: 1fr;
	}

	.service.featured {
		grid-column: auto;
	}

	.service h3 {
		font-size: 19px;
	}
}
