/* ==========================================================================
   METODOLOGÍA — Proceso / Pasos (template-parts/metodologia-proceso.php)
   Página Metodología. Extraído de metodologia.html (#metodologia-2).
   Prefijo m2-* (clases únicas, no existen en otros CSS del tema).
   ========================================================================== */

#metodologia-2 {
	background: var(--navy);
}

.m2-header {
	max-width: 680px;
	margin: 0 auto 4rem;
	text-align: center;
}

.m2-line {
	width: 56px;
	height: 2px;
	background: var(--gold);
	margin: 0 auto;
}

.m2-title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--white);
	margin: 1.5rem 0;
}

.m2-title em {
	font-style: normal;
	color: var(--gold);
}

.m2-desc {
	font-size: 0.92rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.9;
}

.m2-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: center;
}

/* Columna imagen + botón */
.m2-media {
	position: relative;
	align-self: stretch;
	max-height: clamp(400px, 16vw, 500px);
}

.m2-img {
	width: 100%;
	height: 100%;
	border: 1px solid rgba(198, 170, 71, 0.25);
	border-radius: 20px;
	overflow: hidden;
}

.m2-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s;
}

.m2-media:hover .m2-img img {
	transform: scale(1.04);
}

.m2-cta {
	position: absolute;
	left: 50%;
	bottom: -1.4rem;
	transform: translateX(-50%);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	background: var(--gold);
	color: var(--navy);
	padding: 0.85rem 1.6rem 0.85rem 0.85rem;
	border: none;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
	transition:
		background 0.25s,
		transform 0.25s;
}

.m2-cta:hover {
	background: var(--gold2);
	transform: translateX(-50%) translateY(-2px);
}

.m2-cta-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid rgba(13, 27, 42, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.m2-cta-icon svg {
	width: 18px;
	height: 18px;
}

/* Columna pasos */
.m2-steps {
	display: flex;
	flex-direction: column;
}

.m2-step {
	display: flex;
	align-items: flex-start;
	gap: 1.3rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(198, 170, 71, 0.15);
}

.m2-step:first-child {
	padding-top: 0;
}

.m2-step:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.m2-step-icon {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid rgba(198, 170, 71, 0.35);
	background: rgba(198, 170, 71, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
}

.m2-step-icon svg {
	width: 24px;
	height: 24px;
}

.m2-step-title {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--white);
	margin-bottom: 0.35rem;
}

.m2-step-text {
	font-size: 0.85rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.7;
}

@media (max-width: 900px) {
	.m2-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.m2-media {
		max-height: clamp(400px, 16vw, 500px);
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 600px) {
	.m2-cta {
		padding: 1rem 1.2rem;
	}

	.m2-cta .m2-cta-icon {
		display: none;
	}
}
