/* Ferrari WhatsApp */
.fwa {
	--fwa-green: #25d366;
	--fwa-green-dark: #1da851;
	--fwa-ink: #222;
	--fwa-muted: #6b7280;
	--fwa-line: #e7e9ec;
	font-family: inherit;
	line-height: 1.3;
	box-sizing: border-box;
}
.fwa *, .fwa *::before, .fwa *::after { box-sizing: inherit; }

.fwa-i { display: block; width: 100%; height: 100%; }

.fwa__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.fwa__toggle:focus-visible,
.fwa__opt:focus-visible {
	outline: 2px solid #04568d;
	outline-offset: 3px;
}

/* Desplegable (común) */
.fwa__panel {
	position: absolute;
	width: 250px;
	padding: 8px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, .16), 0 2px 6px rgba(17, 24, 39, .08);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	text-align: left;
}
.fwa.is-open .fwa__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.fwa__title {
	margin: 4px 8px 8px !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 500;
	color: var(--fwa-muted) !important;
	letter-spacing: 0;
	text-transform: none;
}
.fwa__opt {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 10px 10px !important;
	margin: 0 !important;
	border-radius: 10px;
	color: var(--fwa-ink) !important;
	text-decoration: none !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	background: transparent;
	transition: background-color .15s ease;
}
.fwa__opt + .fwa__opt { margin-top: 2px !important; }
.fwa__opt:hover { background: #f1fbf4; }
.fwa__opt-icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 50%;
	background: #e9f9ef;
	color: var(--fwa-green-dark);
}
.fwa__opt-label { flex: 1 1 auto; }
.fwa-i--arrow {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: #b6bcc4;
	transition: transform .15s ease, color .15s ease;
}
.fwa__opt:hover .fwa-i--arrow { transform: translateX(2px); color: var(--fwa-green-dark); }

/* Botón flotante */
.fwa--float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
}
.fwa--float .fwa__toggle {
	position: relative;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--fwa-green);
	color: #fff;
	box-shadow: 0 6px 18px rgba(37, 211, 102, .38), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .2s ease, background-color .2s ease;
}
.fwa--float .fwa__toggle:hover { background: var(--fwa-green-dark); transform: scale(1.05); }
.fwa--float .fwa__toggle .fwa-i { position: absolute; width: 30px; height: 30px; transition: opacity .18s ease, transform .18s ease; }
.fwa--float .fwa-i--close { width: 24px; height: 24px; opacity: 0; transform: rotate(-90deg); }
.fwa--float.is-open .fwa-i--wa { opacity: 0; transform: rotate(90deg); }
.fwa--float.is-open .fwa-i--close { opacity: 1; transform: none; }
.fwa--float .fwa__panel {
	right: 0;
	bottom: 72px;
	transform: translateY(8px) scale(.98);
	transform-origin: bottom right;
}

/* Ícono del menú (solo escritorio, igual que el menú del tema: colapsa en 968px) */
.fwa--header {
	position: relative;
	display: none;
	align-self: center;
	margin-left: 18px;
}
@media (min-width: 969px) {
	.fwa--header { display: block; }
}
.fwa--header .fwa__toggle {
	width: 38px;
	height: 38px;
	padding: 9px;
	border-radius: 50%;
	background: transparent;
	color: var(--fwa-green-dark);
	box-shadow: inset 0 0 0 1px var(--fwa-line);
	transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.fwa--header .fwa__toggle:hover,
.fwa--header.is-open .fwa__toggle {
	background: var(--fwa-green);
	color: #fff;
	box-shadow: inset 0 0 0 1px var(--fwa-green);
}
.fwa--header .fwa__panel {
	right: -6px;
	top: calc(100% + 12px);
	z-index: 99991;
	transform: translateY(-6px);
	transform-origin: top right;
}
.fwa--header .fwa__panel::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 19px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 2px 0 0 0;
	box-shadow: -1px -1px 1px rgba(17, 24, 39, .05);
}
/* Menú fijo al hacer scroll (DirectoryPRO: logo flotado + menú en bloque) */
.sticky-menu .grid-main > .fwa--header {
	position: absolute;
	top: 20px;
	right: 20px;
	margin: 0;
}
@media (min-width: 969px) {
	.sticky-menu .grid-main.fwa-host > .main-nav { padding-right: 52px; }
}

@media (max-width: 968px) {
	.fwa--float.fwa--mobile-only { display: block; }
}
@media (min-width: 969px) {
	.fwa--float.fwa--mobile-only { display: none; }
}
@media (max-width: 480px) {
	.fwa--float { right: 16px; bottom: 16px; }
	.fwa--float .fwa__toggle { width: 54px; height: 54px; }
	.fwa--float .fwa__panel { bottom: 66px; width: min(250px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
	.fwa *, .fwa__panel { transition: none !important; }
}
@media print {
	.fwa { display: none !important; }
}
