/* Modal de carrito - Be Lawyer
   Se muestra al agregar un curso o si el curso ya estaba en el carrito. */

.blw-modal-fondo {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(9, 17, 33, 0.62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.blw-modal-fondo.blw-abierto {
	opacity: 1;
	visibility: visible;
}

.blw-modal {
	position: relative;
	width: 100%;
	max-width: 430px;
	background: #fff;
	border-radius: 18px;
	padding: 34px 30px 28px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(9, 17, 33, 0.3);
	transform: translateY(14px) scale(0.97);
	transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
	font-family: inherit;
	box-sizing: border-box;
}

.blw-modal-fondo.blw-abierto .blw-modal {
	transform: translateY(0) scale(1);
}

.blw-cerrar {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #94a3b8;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.blw-cerrar:hover {
	background: #f1f5f9;
	color: #18294B;
}

.blw-icono {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blw-icono svg {
	width: 30px;
	height: 30px;
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.blw-modal[data-estado="ok"] .blw-icono {
	background: #e7f7ee;
}

.blw-modal[data-estado="ok"] .blw-icono svg {
	stroke: #15925b;
}

.blw-modal[data-estado="ya"] .blw-icono {
	background: #eef2fb;
}

.blw-modal[data-estado="ya"] .blw-icono svg {
	stroke: #18294B;
}

.blw-modal[data-estado="error"] .blw-icono {
	background: #fdeceb;
}

.blw-modal[data-estado="error"] .blw-icono svg {
	stroke: #d64541;
}

.blw-titulo {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	color: #18294B;
}

.blw-curso {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.5;
	color: #475569;
}

.blw-curso strong {
	color: #18294B;
}

.blw-conteo {
	margin: 0 0 22px;
	font-size: 13px;
	color: #7c8899;
}

.blw-acciones {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blw-btn {
	display: block;
	width: 100%;
	padding: 13px 18px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	box-sizing: border-box;
	text-align: center;
}

.blw-btn-primario {
	background: #18294B;
	color: #fff;
}

.blw-btn-primario:hover,
.blw-btn-primario:focus {
	background: #08396B;
	color: #fff;
}

.blw-btn-secundario {
	background: #fff;
	color: #18294B;
	border-color: #dbe1ec;
}

.blw-btn-secundario:hover,
.blw-btn-secundario:focus {
	border-color: #18294B;
	background: #f7f9fd;
	color: #18294B;
}

.blw-cargando {
	pointer-events: none;
	opacity: 0.6;
}

@media (min-width: 480px) {
	.blw-acciones {
		flex-direction: row-reverse;
	}

	.blw-btn {
		flex: 1;
	}
}

@media (max-width: 380px) {
	.blw-modal {
		padding: 30px 20px 24px;
	}

	.blw-titulo {
		font-size: 19px;
	}
}
