/* Patrones compartidos por varios bloques: .ff-iat (imagen + texto: image-and-text, featured-post,
 * product-description) y .ff-tagline (tagline, product-tagline). */

.ff-iat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: var(--gap-lg);
	align-items: center;
}

/* Filas consecutivas (v4 «Contenido destacado»): separación como en el diseño. */
.entry-content > .ff-iat + .ff-iat {
	margin-top: clamp(30px, 4vw, 50px);
}

/* Tras una fila de imagen + texto, la siguiente sección arranca con el ritmo normal. */
.entry-content > .ff-iat + .ff-block {
	margin-top: var(--section-y);
	padding-top: 0;
}

.entry-content > .ff-iat:last-child {
	margin-bottom: var(--section-y);
}

.ff-iat--image-right .ff-iat__media {
	order: 2;
}

.ff-iat--no-image {
	grid-template-columns: 1fr;
}

.ff-iat__media {
	position: relative;
}

.ff-iat__new {
	position: absolute;
	top: 14px;
	right: 14px;
}

.ff-iat__title {
	margin: 0;
	color: var(--c-blue);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.3;
}

.ff-iat__content {
	font-size: var(--fs-body);
	line-height: 1.75;
}

.ff-iat__content > * + * {
	margin-top: 1em;
}

.ff-iat__content ul {
	padding-left: 1.25rem;
	list-style: disc;
}

/* Variante sobre fondo de color (backgroundColor heredado) */
.ff-iat.has-background {
	padding: clamp(24px, 4vw, 48px);
}

@media (max-width: 700px) {
	.ff-iat--image-right .ff-iat__media {
		order: 0;
	}
}

.ff-tagline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 2px;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	color: var(--c-navy);
	text-decoration: none;
}

.ff-tagline__title {
	margin: 0;
	color: inherit;
	font-size: var(--fs-h2);
	font-weight: 600;
	line-height: 1.3;
}

.ff-tagline--link .ff-cta__arrow {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	transition: transform .25s ease, background var(--t-fast);
}

.ff-tagline--link:hover {
	color: var(--c-blue);
}

.ff-tagline--link:hover .ff-cta__arrow {
	transform: rotate(45deg);
	background: var(--c-coral-hover);
}

/* Texto en color de marca heredado (textColor) */
.ff-tagline.has-text-color {
	border-color: currentColor;
}
