/* ==========================================================================
   SIGUIENTE MODELO — child theme de Zephyr
   ==========================================================================
   Bloque justo antes del pie con la imagen del siguiente modelo, el texto
   "Next model" y su nombre. Todo el bloque es un enlace.
   HTML: /inc/next-model.php · Colocación: /js/next-model.js
   ========================================================================== */

.rdi-next {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(320px, 50vh, 560px);
	overflow: hidden;
	background: #1d1d1b;
	color: #ffffff;
	text-decoration: none;
}

.rdi-next:hover,
.rdi-next:focus {
	color: #ffffff;
	text-decoration: none;
}

/* Imagen del siguiente modelo, con el mismo velo que el menú */
.rdi-next-bg {
	position: absolute;
	inset: 0;
	background-color: #1d1d1b;
	background-position: center;
	background-size: cover;
	transform: scale(1.02);
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.rdi-next-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(29, 29, 27, 0.6);
	transition: background-color 0.4s ease;
}

.rdi-next:hover .rdi-next-bg,
.rdi-next:focus-visible .rdi-next-bg {
	transform: scale(1.06);
}

.rdi-next:hover .rdi-next-bg::after,
.rdi-next:focus-visible .rdi-next-bg::after {
	background-color: rgba(29, 29, 27, 0.5);
}

/* Textos */
.rdi-next-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 0 20px;
	text-align: center;
}

.rdi-next-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	opacity: 0.8;
}

.rdi-next-title {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: clamp(36px, 5.5vw, 90px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

/* Flecha → dibujada con CSS (sin imagen) */
.rdi-next-arrow {
	position: relative;
	display: inline-block;
	flex: none;
	width: 0.6em;
	height: 0.06em;
	min-height: 2px;
	background: currentColor;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.rdi-next-arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 0.22em;
	height: 0.22em;
	border-top: max(2px, 0.06em) solid currentColor;
	border-right: max(2px, 0.06em) solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	transform-origin: center;
}

.rdi-next:hover .rdi-next-arrow,
.rdi-next:focus-visible .rdi-next-arrow {
	transform: translateX(0.2em);
}

@media (prefers-reduced-motion: reduce) {
	.rdi-next-bg,
	.rdi-next-bg::after,
	.rdi-next-arrow {
		transition: none;
	}
}
