/**
 * Módulo 05 · Galería asimétrica (ensayo visual)
 *
 * Móvil: apilado (imagen → texto → imagen → texto).
 * Escritorio (≥1024): rejilla de 12 columnas.
 *   fila 1: imagen (span 8)   texto  (span 4)
 *   fila 2: imagen (span 4)   texto  (span 8)
 *
 * Si el bloque 2 no existe (sin imagen ni texto secundarios), el bloque 1
 * queda como composición de una imagen grande + texto lateral, sin rota.
 */

.mod05__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.mod05__figura {
	margin: 0;
	overflow: hidden;
}

.mod05__figura a {
	display: block;
	border: none;
}

.mod05__figura--principal {
	aspect-ratio: 8 / 5;
}

.mod05__figura--secundaria {
	aspect-ratio: 3 / 4;
}

.mod05__figura img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease;
}

.mod05__figura a:hover img,
.mod05__figura a:focus-visible img {
	opacity: 0.9;
}

.mod05__texto {
	border-top: 1px solid var(--filete-fuerte);
	padding-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mod05__antetitulo {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tinta-secundaria);
	font-weight: 700;
	margin: 0;
}

.mod05__subtitulo {
	font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--tinta-principal);
	margin: 0;
}

.mod05__extracto {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--tinta-terciaria);
	margin: 0;
}

@media (min-width: 1024px) {

	.mod05__grid {
		grid-template-columns: repeat(12, 1fr);
		gap: 3rem 2rem;
	}

	.mod05__figura--principal {
		grid-column: span 8;
		aspect-ratio: auto;
		height: 500px;
	}

	.mod05__texto--principal {
		grid-column: span 4;
	}

	.mod05__figura--secundaria {
		grid-column: span 4;
		aspect-ratio: auto;
		height: 500px;
	}

	.mod05__texto--secundario {
		grid-column: span 8;
	}
}

@media (min-width: 1440px) {
	.mod05__figura--principal,
	.mod05__figura--secundaria {
		height: 560px;
	}
}
