/* Vale da Rosa – Portada */
.vdr-hero {
	--vdr-hero-offset: 76px;
	--vdr-hero-h: calc(100vh - var(--vdr-hero-offset));
	--vdr-hero-x: 50%;
	--vdr-hero-y: 50%;
	--vdr-hero-bg: #f3e3d3;
	--vdr-hero-cta-bg: #e10098;
	--vdr-hero-cta-color: #fff;
	position: relative;
	width: 100%;
	height: var(--vdr-hero-h);
	min-height: 360px;
	overflow: hidden;
	background: var(--vdr-hero-bg);
}

/* svh evita el salto de la barra de direcciones en móviles */
@supports (height: 100svh) {
	.vdr-hero {
		--vdr-hero-h: calc(100svh - var(--vdr-hero-offset));
	}
}

.vdr-hero *,
.vdr-hero *::before,
.vdr-hero *::after {
	box-sizing: border-box;
}

.vdr-hero .vdr-hero__picture,
.vdr-hero .vdr-hero__link {
	display: block;
	width: 100%;
	height: 100%;
}

.vdr-hero .vdr-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--vdr-hero-x) var(--vdr-hero-y);
}

.vdr-hero .vdr-hero__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Botón flotante */
.vdr-hero .vdr-hero__cta,
.vdr-hero .vdr-hero__cta:visited {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 13px 22px 13px 18px;
	border-radius: 999px;
	background: var(--vdr-hero-cta-bg);
	color: var(--vdr-hero-cta-color);
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	/* El aro blanco lo mantiene visible también sobre las secciones rosas */
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 28px rgba(120, 0, 80, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vdr-hero .vdr-hero__cta:hover,
.vdr-hero .vdr-hero__cta:focus {
	color: var(--vdr-hero-cta-color);
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(120, 0, 80, 0.42);
}
.vdr-hero .vdr-hero__cta:focus-visible {
	outline: 2px solid var(--vdr-hero-cta-color);
	outline-offset: 3px;
}
.vdr-hero .vdr-hero__cta-icon {
	flex: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.vdr-hero {
		--vdr-hero-offset: 64px;
		--vdr-hero-x: 62%;
	}
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.vdr-hero {
		--vdr-hero-x: 67%;
		min-height: 320px;
	}
	/* En móvil el botón flotante se reduce a un círculo con el icono para no tapar contenido */
	.vdr-hero .vdr-hero__cta {
		right: 12px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		justify-content: center;
		width: 54px;
		height: 54px;
		padding: 0;
	}
	.vdr-hero .vdr-hero__cta-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

/* Móvil apaisado: que no quede una franja mínima */
@media (max-height: 480px) and (orientation: landscape) {
	.vdr-hero {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vdr-hero .vdr-hero__cta {
		transition: none;
	}
}
