/* Conexión landing ↔ cursos: barra flotante + modal, con la estética de la marca */

.bmcc-toolbar {
	position: fixed;
	top: 16px;
	right: 18px;
	z-index: 99990;
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: 'Nunito', system-ui, sans-serif;
}
.bmcc-tb-btn {
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	font-weight: 800;
	font-family: 'Fredoka', 'Nunito', sans-serif;
	font-size: 15px;
	padding: 10px 20px;
	background: #F08268;
	color: #fff;
	box-shadow: 0 8px 22px rgba(240, 130, 104, .38);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	line-height: 1;
}
.bmcc-tb-btn:hover { transform: translateY(-2px); background: #E16A50; }
.bmcc-tb-btn.bmcc-cart {
	background: #fff;
	color: #1F6E6B;
	padding: 10px 14px;
	font-size: 18px;
	position: relative;
	border: 2px solid #1F6E6B;
	box-shadow: 0 8px 22px rgba(31, 110, 107, .18);
}
.bmcc-tb-btn.bmcc-cart:hover { background: #FFF7EF; }
.bmcc-cart-count {
	position: absolute;
	top: -6px; right: -6px;
	background: #1F6E6B;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	min-width: 20px; height: 20px;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	padding: 0 5px;
}
.bmcc-cart-count[hidden] { display: none; }

/* ---- Modal ---- */
.bmcc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px;
	overflow-y: auto;
}
.bmcc-modal.open { display: flex; }
.bmcc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(31, 110, 107, .45);
	backdrop-filter: blur(4px);
}
.bmcc-modal-box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	background: #FFF7EF;
	border-radius: 24px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
	padding: 1.2rem 1.2rem 1.8rem;
	animation: bmcc-pop .25s ease;
}
@keyframes bmcc-pop {
	from { opacity: 0; transform: translateY(18px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
.bmcc-modal-close {
	position: absolute;
	top: 12px; right: 16px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: #1F6E6B;
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
}
.bmcc-modal-close:hover { color: #F08268; }
.bmcc-modal-content { max-height: 78vh; overflow-y: auto; }
.bmcc-modal-content .bmc-wrap { padding: .6rem 1rem 0; }

/* Spinner */
.bmcc-spinner {
	width: 42px; height: 42px;
	border: 4px solid #FBE7D5;
	border-top-color: #F08268;
	border-radius: 50%;
	margin: 3rem auto;
	animation: bmcc-spin .8s linear infinite;
}
@keyframes bmcc-spin { to { transform: rotate(360deg); } }

/* Carrito */
.bmcc-cart-items { list-style: none; padding: 0; margin: 1rem 0; }
.bmcc-cart-items li {
	display: flex; justify-content: space-between; gap: 1rem;
	padding: .7rem 0; border-bottom: 1px solid #f3e0d0;
}
.bmcc-cart-total { font-size: 1.2rem; margin: 1rem 0 1.4rem; }
.bmcc-cart-product { text-align: center; margin-top: 1rem; }
.bmcc-cart-product .bmc-price { display: block; margin-bottom: 1rem; }

/* La landing oculta el cursor del sistema (cursor personalizado).
   Dentro de la barra y el modal forzamos que se vea siempre. */
.bmcc-toolbar, .bmcc-toolbar *,
.bmcc-modal, .bmcc-modal * { cursor: auto !important; }
.bmcc-tb-btn,
.bmcc-modal a, .bmcc-modal button, .bmcc-modal .bmc-btn,
.bmcc-modal-close, .bmcc-modal-overlay,
.bmcc-modal input[type=submit], .bmcc-modal label { cursor: pointer !important; }
.bmcc-modal input[type=text], .bmcc-modal input[type=email],
.bmcc-modal input[type=password], .bmcc-modal textarea { cursor: text !important; }

@media (max-width: 600px) {
	.bmcc-toolbar { top: auto; bottom: 16px; right: 16px; }
	.bmcc-tb-btn { padding: 9px 16px; font-size: 14px; }
}
