.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:#000;
	opacity:0.6;
	filter:alpha(opacity=60);
	z-index:9999;
}

.modal {
	position:fixed;
	/* Estilos para móviles (Base-First) */
	width: 90%;
	max-width: 600px;
	min-height: 200px;
	max-height: 80vh;
	overflow-y: auto;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	z-index:9999;
	background-color:white;
}
.close-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

/* Estilo para escritorios (redefine la posición y el tamaño) */
@media screen and (min-width: 801px) {
    .modal {
        width: 600px;
		max-height: 70vh; /* limita la altura del modal */
        overflow-y: auto; /* asegurarse de que aparezca scroll si se excede */
    }
}

.modal.free {
	width: initial;
	margin: -20px auto auto -20px;
}

.modal.p10 {
	top: 10%;
}

.box {
	margin: 14px 4px;
	padding: 15px 15px;
	-ms-border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	-moz-background-clip: padding;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	-moz-box-shadow: 0 0 10px #999;
	-webkit-box-shadow: 0 0 10px #999;
	box-shadow: 0 0 10px #999;
}

#overlay .title-bar h2 {
	color:#FF8040;
	margin-top: 0;
}

#overlay .title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: thin solid black;
}

#overlay .modal-content {
	padding:10px 10px;
	font-size:12pt;
	text-align:left;
}

#overlay .modal-content p {
	margin-top: 0;
	text-align: left;
}

.errorText { color:red; font-weight:bold; }
