/**
 * Reusable card primitives — shared by the 4 product category pages and
 * the content pages introduced alongside them (Muestras gratis, FAQ,
 * Contacto, Sobre nosotros, Envíos, Devoluciones, Garantía, Formas de
 * pago). Enqueued via inc/enqueue.php whenever either category-page.css or
 * content-page.css loads.
 *
 * Same visual recipe as Home's .ed-trust__* (icon chip, card padding/
 * radius) — intentionally reimplemented under a generic name here rather
 * than importing home.css (page-specific, front-page-only) or editing it,
 * since Home's design is approved and explicitly out of scope for this
 * batch of pages. See project-docs/05-components.md.
 */

/* -------------------------------------------------------------------- */
/* Feature / benefit grid — icon + title + description                   */
/* -------------------------------------------------------------------- */

.ed-feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ed-space-md);
}

@media (min-width: 640px) {
	.ed-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ed-feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ed-feature-grid--cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.ed-feature-grid--cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ed-feature-card {
	padding: var(--ed-space-lg);
	background-color: var(--ed-color-surface);
	border: 1px solid var(--ed-color-border);
	border-radius: var(--ed-radius-md);
}

/* Circle, size and glyph come from the shared .ed-feature-icon (base.css). */
.ed-feature-card__icon {
	margin-bottom: var(--ed-space-sm);
}

.ed-feature-card__title {
	margin: 0 0 var(--ed-space-3xs);
	font-family: var(--ed-font-heading);
	font-size: var(--ed-font-size-md);
	font-weight: 500;
}

.ed-feature-card__desc {
	margin: 0;
	color: var(--ed-color-muted);
	font-size: var(--ed-font-size-sm);
}

.ed-feature-card__diagram {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: var(--ed-space-sm);
}

/* -------------------------------------------------------------------- */
/* Steps — numbered process (Cómo funciona)                              */
/* -------------------------------------------------------------------- */

.ed-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ed-space-lg);
}

@media (min-width: 768px) {
	.ed-steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ed-steps__item {
	padding: var(--ed-space-lg);
	background-color: var(--ed-color-surface);
	border: 1px solid var(--ed-color-border);
	border-radius: var(--ed-radius-md);
}

.ed-steps__title {
	margin: var(--ed-space-2xs) 0 var(--ed-space-2xs);
}

.ed-steps__desc {
	margin: 0;
	color: var(--ed-color-muted);
	font-size: var(--ed-font-size-sm);
}

/* -------------------------------------------------------------------- */
/* Tinted CTA callout — centered, aqua-tinted, single column              */
/* Same tint recipe already proven on Guía de tejidos' samples card.      */
/* -------------------------------------------------------------------- */

.ed-cta-tinted {
	max-width: 720px;
	margin-inline: auto;
	padding: var(--ed-space-xl);
	background-color: rgba(0, 183, 183, 0.06);
	border-left: 5px solid var(--ed-color-primary);
	border-radius: 20px;
	text-align: center;
}

.ed-cta-tinted__title {
	margin: 0 0 var(--ed-space-sm);
}

.ed-cta-tinted__desc {
	margin: 0 auto var(--ed-space-lg);
	max-width: 56ch;
	color: var(--ed-color-text);
}

.ed-cta-tinted .wp-block-buttons {
	justify-content: center;
}

/* -------------------------------------------------------------------- */
/* Pill tag — small rounded label (used for "ideal para" / filter chips)  */
/* -------------------------------------------------------------------- */

.ed-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ed-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-pill {
	display: inline-block;
	padding: var(--ed-space-3xs) var(--ed-space-sm);
	background-color: rgba(0, 183, 183, 0.08);
	border-radius: var(--ed-radius-full);
	color: var(--ed-color-link-hover);
	font-size: var(--ed-font-size-xs);
	font-weight: 600;
}

/* -------------------------------------------------------------------- */
/* Icon-list — compact vertical list with a leading check icon            */
/* -------------------------------------------------------------------- */

.ed-icon-list {
	display: flex;
	flex-direction: column;
	gap: var(--ed-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-icon-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--ed-space-sm);
	color: var(--ed-color-text);
}

.ed-icon-list .ed-icon-check {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 0.15em;
	color: var(--ed-color-link);
}
