/**
 * Action Bar global: WhatsApp + Calendly + carrito.
 */

.ac-floating-bar {
	position: fixed;
	z-index: 9999;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 10px 20px;
	background: #003552;
	color: #fff;
	border-radius: 20px !important;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 53, 82, 0.35);
	font-family: 'Nunito Sans', system-ui, sans-serif;
}

/* Botón carrito dentro de la barra: anula el FAB fijo del bundle tienda */
.ac-floating-bar .ac-floating-cart {
	position: relative !important;
	right: auto !important;
	bottom: auto !important;
	top: auto !important;
	left: auto !important;
	width: 52px !important;
	height: 52px !important;
	min-width: 52px;
	flex-shrink: 0;
	margin: 0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ac-floating-bar .ac-floating-cart__badge.ac-floating-cart-count {
	top: 0;
	right: 0;
}

.ac-floating-bar__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 0;
	padding: 8px 10px;
	border-radius: 14px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.ac-floating-bar__whatsapp {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.ac-floating-bar__whatsapp:hover,
.ac-floating-bar__whatsapp:focus-visible {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

.ac-floating-bar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex-shrink: 0;
}

.ac-floating-bar__icon--whatsapp {
	color: #b9f5c8;
}

.ac-floating-bar__whatsapp:hover .ac-floating-bar__icon--whatsapp,
.ac-floating-bar__whatsapp:focus-visible .ac-floating-bar__icon--whatsapp {
	color: #fff;
}

.ac-floating-bar__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Calendly: reusa .nav-cta del header; color de «Agendar» fijado en la barra */
.ac-floating-bar .nav-cta.ac-floating-bar__calendly {
	flex: 1 1 0;
	width: auto;
	height: auto;
	min-height: 44px;
	padding: 10px 14px;
	white-space: nowrap;
	border-radius: 14px;
	font-size: 13px;
	font-weight: 700;
	background: #e24352;
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(226, 67, 82, 0.35);
}

.ac-floating-bar .nav-cta.ac-floating-bar__calendly:hover,
.ac-floating-bar .nav-cta.ac-floating-bar__calendly:focus-visible {
	background: #ea6070;
	color: #fff;
	transform: translateY(-1px);
}

@media (min-width: 769px) {
	.ac-floating-bar {
		bottom: 30px;
		right: 30px;
		left: auto;
		transform: none;
		width: auto;
		max-width: min(420px, calc(100vw - 40px));
	}
}

@media (max-width: 768px) {
	.ac-floating-bar {
		bottom: 20px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		width: 90%;
		max-width: 350px;
	}

	.ac-floating-bar__label {
		font-size: 12px;
	}

	.ac-floating-bar .nav-cta.ac-floating-bar__calendly {
		font-size: 12px;
		padding: 9px 10px;
	}
}
