/* Fondo oscuro */
.alert-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.55);
	display: none;
	justify-content: center;
	align-items: center;
	padding: 16px;
	z-index: var(--z-alert, 2000);
}

/* Caja del alert */
.alert-box {
	background: var(--surface, #fff);
	color: var(--text, #1e2433);
	padding: 28px 26px;
	border-radius: var(--radius-lg, 16px);
	width: 320px;
	max-width: 100%;
	text-align: center;
	box-shadow: var(--shadow-lg, 0 16px 40px rgba(16,24,40,.16));
	font-size: 1em;
	animation: alertPop .18s var(--ease, ease-out);
}

@keyframes alertPop {
	from { opacity: 0; transform: scale(.96) translateY(4px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Botón */
.alert-button {
	background: var(--primary, #4682b4);
	color: white;
	border: none;
	padding: 11px 20px;
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
	margin-top: 18px;
	font-size: .95em;
	font-weight: 500;
	width: 100%;
	transition: filter .2s var(--ease, ease), transform .1s var(--ease, ease);
}

.alert-button:hover {
	filter: brightness(1.08);
}

.alert-button:active {
	transform: scale(.97);
}


body.dark .alert-box {
  background-color: var(--surface, #1b1f27);
  border-color: var(--border, #2c313c);
  color: var(--text, #fff);
}