/* Barra superior — fija encima del nav (fuera del header) */
.eyv-topbar {
	--eyv-topbar-bg: #f0f0f0;
	--eyv-topbar-fg: #2c3a4a;
	--eyv-topbar-accent: #1a4f8b;
	--eyv-topbar-green: #2e9d4f;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1100;
	background: var(--eyv-topbar-bg);
	color: var(--eyv-topbar-fg);
	font-size: 0.875rem;
	line-height: 1.2;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transform: translateY(0);
	transition: transform 0.28s ease;
}

body.eyv-topbar-scrolled .eyv-topbar {
	transform: translateY(-100%);
	pointer-events: none;
}

body.admin-bar .eyv-topbar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .eyv-topbar {
		top: 46px;
	}
}

.eyv-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.55rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: nowrap;
}

.eyv-topbar__left,
.eyv-topbar__right {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.eyv-topbar__social {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.eyv-topbar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--eyv-topbar-fg);
	opacity: 0.9;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.eyv-topbar__social-link:hover,
.eyv-topbar__social-link:focus-visible {
	opacity: 1;
	color: var(--eyv-topbar-green);
	outline: none;
}

.eyv-topbar__social-link svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.eyv-topbar__rnt {
	color: #5a6570;
	font-weight: 500;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.eyv-topbar__cta,
.eyv-topbar__cta--static {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--eyv-topbar-accent);
}

.eyv-topbar__cta:hover,
.eyv-topbar__cta:focus-visible {
	color: var(--eyv-topbar-green);
	outline: none;
}

.eyv-topbar__cta:hover .eyv-topbar__cta-btn,
.eyv-topbar__cta:focus-visible .eyv-topbar__cta-btn {
	color: var(--eyv-topbar-green);
	border-color: var(--eyv-topbar-green);
	background: rgba(46, 157, 79, 0.08);
}

.eyv-topbar__cta:hover .eyv-topbar__cta-logo,
.eyv-topbar__cta:focus-visible .eyv-topbar__cta-logo {
	color: var(--eyv-topbar-green);
}

.eyv-topbar__cta-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--eyv-topbar-accent);
	flex-shrink: 0;
}

.eyv-topbar__cta-logo img {
	display: block;
	max-height: 24px;
	width: auto;
}

.eyv-topbar__cta-logo-svg {
	display: block;
	width: 28px;
	height: 24px;
}

.eyv-topbar__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.95rem;
	border: 1.5px solid var(--eyv-topbar-accent);
	border-radius: 999px;
	color: var(--eyv-topbar-accent);
	font-weight: 800;
	font-size: 0.86rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eyv-topbar__cta-chevron {
	font-size: 1.1em;
	line-height: 1;
	transform: translateY(-0.5px);
}

/* Menú móvil abierto: ocultar barra */
body:has(.is-menu-open) .eyv-topbar,
body.eyv-destinos-open .eyv-topbar {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.eyv-topbar {
		transition: none;
	}
}

@media (max-width: 640px) {
	.eyv-topbar__inner {
		padding: 0.4rem 0.75rem;
		gap: 0.5rem;
		flex-wrap: wrap;
		justify-content: center;
	}

	.eyv-topbar__left {
		gap: 0.45rem;
		order: 2;
		width: 100%;
		justify-content: center;
	}

	.eyv-topbar__right {
		order: 1;
		width: 100%;
		justify-content: center;
	}

	.eyv-topbar__rnt {
		font-size: 0.75rem;
	}

	.eyv-topbar__cta-btn {
		padding: 0.28rem 0.7rem;
		font-size: 0.75rem;
	}
}

@media (max-width: 420px) {
	.eyv-topbar__rnt {
		display: none;
	}

	.eyv-topbar__social-link {
		width: 1.05rem;
		height: 1.05rem;
	}
}
