/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 200; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	transition: .4s;
}

/* Modal Content */
.modal-content {
	position: relative;
	background-color: #fefefe;
	margin: auto;
	padding: 0;
	border: 2px solid grey;
	border-radius: 10px;
	width: 50%;
	box-shadow: 0 4px 8px 10px rgba(0,0,0,0.2), 0 6px 20px 10px rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s
}
@media (max-width: 990px) {
	.modal-content {
		width: 90%;
	}
}

/* Add Animation */
@-webkit-keyframes animatetop {
	from {top:-300px; opacity:0} 
	to {top:0; opacity:1}
}

@keyframes animatetop {
	from {top:-300px; opacity:0}
	to {top:0; opacity:1}
}

/* The Close Button */
.close-modal {
	box-sizing: border-box;
	display: inline-table;
	text-align: center;
	color: var(--color-text);
	font-size: 20px;
	font-weight: bold;
	padding: 16px 0px;
	transition: .2s;
	width: 7%;
	border: 0px;
	border-top-right-radius: 8px;
}
.close-modal:hover {
	cursor: pointer;
	background: #ff1717;
	color: white;
	-webkit-box-shadow: 0 0 4px 1px #FFFFFF;
	box-shadow: 0 0 4px 1px #FFFFFF;
}

.modal-header {
	position: relative;
	background-color: #b2b2b2;
	font-size: 20px;
	font-weight: bold;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	display: flex;
    justify-content: space-between;
    overflow: hidden; /* Oculta los elementos que se salen del contenedor */
    transition: max-height 0.3s ease-out; /* Agregado una transición para suavizar la expansión */
}

.modal-header > span {
	box-sizing: border-box;
	text-align: center;
	color: var(--color-text);
	margin: 0;
	padding: 16px 0px;
	transition: .2s;
	width: 31%;
}
.modal-header > span:first-child {
	border-top-left-radius: 8px;
}
.modal-header > span:hover {
	background: #ff1717;
	color: white;
	cursor: pointer;
	-webkit-box-shadow: 0 0 4px 1px #FFFFFF;
	box-shadow: 0 0 4px 1px #FFFFFF;
}
.modal-header > span.activo {
	background: #ff1717;
	color: white;
	cursor: pointer;
	-webkit-box-shadow: 0 0 4px 1px #FFFFFF;
	box-shadow: 0 0 4px 1px #FFFFFF;
}

.modal-body {
	padding: 16px 16px;
	text-align: center;
}

.modal-body-cont {
	padding: 10px 10px;
	margin: auto;
}
.modal-body-cont > div {
	margin: 10px;
	display: inline-block;
}

@media (max-width: 768px) {
	.modal-header {
		font-size: 3.5vw;
	}
	.modal-content .cuadro-texto {
		width: 80%;
	}
	.modal-content input {
		width: 100%;
	}
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

