/**
 * Editorial feature card (B2) — icon + serif heading + short turquoise
 * divider + description, on a neutral off-white surface with no border and
 * no shadow. Opt-in: only markup carrying BOTH .ed-feature-card and
 * .ed-feature-card--editorial gets it, so the legacy .ed-feature-card call
 * sites (Contacto link cards, Sobre nosotros diagram cards) are untouched.
 *
 *   .ed-feature-card--editorial   standard card (category "Por qué…",
 *                                 Sobre nosotros, Garantía, Devoluciones)
 *   .ed-feature-card--compact     denser variant (Home trust band,
 *                                 Cómo instalar "Antes de empezar")
 *   .ed-feature-grid--editorial   16px gap for an .ed-feature-grid of B2 cards
 *
 * Tokens: --ed-card-* in base.css. Icon 56 / glyph 27 apply inside these
 * cards only; the global .ed-feature-icon defaults (44 / 20–22) are not
 * changed. On .ed-section--alt the card turns white so it stays visible.
 * See project-docs/05-components.md.
 */

.ed-feature-grid.ed-feature-grid--editorial {
	gap: var(--ed-space-sm);
}

/* Cards sitting on a grey (--alt) band: white surface instead of #f5f5f4. */
.ed-section--alt {
	--ed-card-surface: var(--ed-card-surface-on-alt);
	--ed-card-surface-hover: var(--ed-card-surface-on-alt-hover);
}

.ed-feature-card.ed-feature-card--editorial {
	padding: 26px 40px 26px 28px;
	background-color: var(--ed-card-surface);
	border: 0;
	border-radius: var(--ed-card-radius);
	box-shadow: none;
	transition: transform var(--ed-transition-base), background-color var(--ed-transition-base);
}

/* Four-up rows are narrow: drop the editorial right-hand air to match the left. */
.ed-feature-grid--cols-4 > .ed-feature-card.ed-feature-card--editorial {
	padding-right: 28px;
}

/* Icon: 56px circle with the approved soft radial halo; static on hover. */
.ed-feature-card--editorial .ed-feature-icon {
	width: var(--ed-card-icon-size);
	height: var(--ed-card-icon-size);
	margin-bottom: var(--ed-space-sm);
	background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(0, 183, 183, 0.13) 55%, rgba(0, 183, 183, 0.07) 100%);
	box-shadow: 0 0 0 6px rgba(0, 183, 183, 0.035);
}

.ed-feature-card--editorial .ed-feature-icon .ed-icon,
.ed-feature-card--editorial .ed-feature-icon .ed-icon--feature {
	width: var(--ed-card-glyph);
	height: var(--ed-card-glyph);
}

.ed-feature-card--editorial .ed-feature-card__title {
	margin: 0;
	color: var(--ed-card-heading-color);
	font-family: var(--ed-font-heading);
	font-size: 1.5rem; /* 24px */
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.005em;
}

/* Short, thin brand divider — identical in every B2 card, never animated. */
.ed-feature-card--editorial .ed-feature-card__title::after {
	content: "";
	display: block;
	width: var(--ed-card-divider-width);
	height: var(--ed-card-divider-height);
	margin: 10px 0 var(--ed-space-2xs);
	background-color: var(--ed-color-primary);
}

.ed-feature-card--editorial .ed-feature-card__desc {
	max-width: 34ch;
	margin: 0;
	color: var(--ed-card-text-color);
	font-family: var(--ed-font-body);
	font-size: var(--ed-font-size-sm);
	line-height: 1.65;
}

@media (hover: hover) {
	.ed-feature-card.ed-feature-card--editorial:hover {
		transform: translateY(-2px);
		background-color: var(--ed-card-surface-hover);
	}
}

/* -------------------------------------------------------------------- */
/* Compact modifier — same system, denser                                 */
/* -------------------------------------------------------------------- */

.ed-feature-card.ed-feature-card--compact {
	padding: var(--ed-space-md); /* 24px */
}

.ed-feature-card--compact .ed-feature-icon {
	margin-bottom: 14px;
}

.ed-feature-card--compact .ed-feature-card__title {
	font-size: 1.25rem; /* 20px */
	line-height: 1.2;
}

.ed-feature-card--compact .ed-feature-card__title::after {
	margin: var(--ed-space-2xs) 0 6px;
}

.ed-feature-card--compact .ed-feature-card__desc {
	line-height: 1.55;
}

/* -------------------------------------------------------------------- */
/* Phones                                                                 */
/* -------------------------------------------------------------------- */

@media (max-width: 639px) {
	.ed-feature-card.ed-feature-card--editorial {
		padding: 24px 28px 24px 22px;
	}

	.ed-feature-card--editorial .ed-feature-icon {
		margin-bottom: 14px;
	}

	/* Compact cards can sit two-up (Home trust band): tighter still. */
	.ed-feature-card.ed-feature-card--compact {
		padding: var(--ed-space-sm); /* 16px */
	}

	.ed-feature-card--compact .ed-feature-icon {
		margin-bottom: 12px;
	}

	.ed-feature-card--compact .ed-feature-card__title {
		font-size: 1.125rem; /* 18px */
		line-height: 1.2;
	}

	.ed-feature-card--compact .ed-feature-card__desc {
		line-height: 1.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-feature-card.ed-feature-card--editorial {
		transition: none;
	}

	.ed-feature-card.ed-feature-card--editorial:hover {
		transform: none;
	}
}
