/* Estilos para dispositivos móviles */
body {
  font-family: Arial, sans-serif;
  /*background-color:blanchedalmond;*/
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  z-index: -999;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("Imagenes/fondo.webp");
	background-repeat: no-repeat;
	background-size:auto; /* Mantiene la proporción original */
	background-position: center;
	opacity: 0.5; /* 50% de transparencia */
	z-index: -1; /* Coloca la imagen detrás del contenido */
}

input {
  flex: 1;
  margin-right: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

h1 {
  text-align: center;
  color: #333;
}

.mobile {
  display: none; /* Ocultar elemento por defecto */
}

/* BOTONES */
.myButtonRed {
	box-shadow:inset 0px 39px 0px -24px #e67a73;
	background-color:#e4685d;
	border-radius:4px;
	border:1px solid #ffffff;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:6px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #b23e35;
}
.myButtonRed:hover {
	background-color:#eb675e;
}
.myButtonRed:active {
	position:relative;
	top:1px;
}

.myButtonGreen {
	box-shadow:inset 0px 39px 0px -24px #3dc21b;
	background-color:#44c767;
	border-radius:4px;
	border:1px solid #18ab29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:6px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2f6627;
}
.myButtonGreen:hover {
	background-color:#5cbf2a;
}
.myButtonGreen:active {
	position:relative;
	top:1px;
}

.myButtonBlue {
	box-shadow:inset 0px 39px 0px -24px #9fb4f2;
	background-color:#7892c2;
	border-radius:4px;
	border:1px solid #4e6096;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:6px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #283966;
}
.myButtonBlue:hover {
	background-color:#476e9e;
}
.myButtonBlue:active {
	position:relative;
	top:1px;
}

.myButtonGray {
	box-shadow:inset 0px 39px 0px -24px #91b8b3;
	background-color:#768d87;
	border-radius:4px;
	border:1px solid #566963;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:6px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2b665e;
}
.myButtonGray:hover {
	background-color:#6c7c7c;
}
.myButtonGray:active {
	position:relative;
	top:1px;
}

/* MENU */
header {
  background-color: #333;
  color: #fff;
  padding: 5px;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 999;
}
header label {
  position: absolute;
  right: 15px;
  top: 8px;
  color: #fff;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
}
header img {
  position: absolute;
  left: 45%;
  top: 0;
  padding: 2px;
  max-height: 90%;
}
#menu {
  width: 200px;
  height: 100%;
  background: rgba(90, 90, 90, 0.9);
  color: #fff;
  position: fixed;
  top: 0;
  left: -200px;
  transition: left 0.3s ease;
  overflow-y: auto;
  z-index: 990;
}
#menu.show {
    left: 0;
}
#menu ul {
    list-style-type: none;
    padding: 0;
}
#menu ul li {
    padding: 10px;
    border-bottom: 1px solid #4323d3;
}
#menu ul li a {
    color: hsl(64, 98%, 51%);
    text-decoration: none;
}
#menu label {
  position: absolute;
  right: 5px;
  top: 7px;
  color: #fff;
  font-size: 18px;
}

/* CONTROLES GENERALES */
.img-logo-est {
	width: 100px;
	height: 100px;
	border: 1px solid #747474;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: white;
}
.est-container {
	background-color: rgba(235, 235, 235, 0.9);
	border: 1px solid #747474;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	width: 500px;
}
.est-container:only-child {
	width: 100%; /* El contenedor ocupa todo el ancho si es el único hijo visible */
}
.est-container h2 {
	text-align: center;
	margin-bottom: 20px;
}
.parent-container {
	display: flex;
	justify-content: center; /* Centra horizontalmente */
	align-items: center;     /* Centra verticalmente */
	min-height: 90vh;           /* Ocupa toda la altura del viewport */
}
.est-group {
	display: flex;
	/*justify-content: space-between;*/
	align-items: center;
	margin-bottom: 15px;
}
.est-group label {
	width: 20%;
	padding-right: 10px;
	text-align: right;
	align-items: center;
}
.est-group input {
	width: 70%;
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.est-group textarea {
	width: 77%;
	height: 60px;
	resize: none;
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.est-group select {
	width: 70%;
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.est-group input[type="checkbox"] {
	padding: 0px;
	width: auto;
	cursor: pointer;
}
.est-group input[type="radio"] {
	cursor: pointer;
	margin-right: 5px;
	display: inline-block;
}
.btn-back{
	width: auto;
	padding: 5px 15px 5px 15px;
	background-color: rgb(84, 127, 164);
	border: none;
	color: white;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
}
.btn-back:hover{
	background-color: rgb(46, 116, 177);
}
.btn-back:disabled{
	background-color: rgb(124, 149, 171);
	color: gainsboro;
	cursor: default;
}
.table-container {
	max-height: 350px; /* Define el alto máximo */
	overflow-y: auto;  /* Habilita la barra de desplazamiento vertical */
}
.table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
}
.table thead th{
	background-color: beige;
}
.table th, .table td {
	border: 1px solid #ccc;
	padding: 10px;
	/*text-align: left;*/
}
.table th {
	background-color: #f9f9f9;
}
.th-centrar {
	text-align: center;
}
.th-derecha {
	text-align: right;
}
.guardar {
	width: 130px;
	padding: 10px;
	background-color: green;
	border: none;
	color: white;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
}
.guardar:hover {
	background-color: rgb(2, 164, 2);
}
.guardar:disabled {
	background-color: rgb(133, 183, 133);
	cursor: default;
}
.cancelar {
	width: 130px;
	padding: 10px;
	background-color: red;
	border: none;
	color: white;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	margin-right: 10px;
}
.cancelar:hover {
	background-color: rgb(253, 87, 36);
}


.input {
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.select {
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
/* Estilos para la ventana emergente */
.legend-tooltip {
	display: none; /* Oculta por defecto */
	position: absolute;
	top: 45px; /* Ajusta según sea necesario */
	left: 0;
	background-color: #ffffff;
	color: #333333;
	border: 1px solid #cccccc;
	border-radius: 4px;
	padding: 10px;
	z-index: 1000;
	width: 150px; /* Ajusta según sea necesario */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.alerta {
	position: absolute;
	top: -30px; /* Ajustar la posición relativa */
	left: 0;
	background-color: rgb(239, 248, 171);
	padding: 5px;
	z-index: 1000;
	display: none; /* Inicia oculto */
}
/* Triángulo abajo izquierda */
.alerta.aba-izq::after {
	content: '';
	position: absolute;
	top: 100%; /* Coloca el triángulo debajo del tooltip */
	left: 20px; /* Ajusta para centrar sobre el ícono o la posición deseada */
	border-width: 10px;
	border-style: solid;
	border-color: rgb(239, 248, 171) transparent transparent transparent; /* Triángulo hacia abajo */
}
/* Triángulo abajo derecha */
.alerta.aba-der::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 20px;
	border-width: 10px;
	border-style: solid;
	border-color: rgb(239, 248, 171) transparent transparent transparent;
}
/* Triángulo arriba izquierda */
.alerta.arr-izq::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 20px;
	border-width: 10px;
	border-style: solid;
	border-color: transparent transparent rgb(239, 248, 171) transparent;
}
/* Triángulo arriba derecha */
.alerta.arr-der::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 20px;
	border-width: 10px;
	border-style: solid;
	border-color: transparent transparent rgb(239, 248, 171) transparent;
}
/* Alertas */
/* Fondo de superposición */
.alerta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* Caja de la alerta */
.alerta-caja {
    background: white;
    border-radius: 10px;
    /*width: 90%;*/
	min-width: 400px;
    max-width: 80%;
	max-height: 80%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: aparecer 0.3s ease-in-out;
}
/* Encabezado */
.alerta-encabezado {
    font-size: 1.5rem;
    /*color: #d9534f; /* Rojo */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}
/* Cuerpo */
.alerta-cuerpo-interior{
	max-height: 50vh;
	overflow-y: auto;
}
.alerta-cuerpo p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}
.alerta-cuerpo input {
	box-sizing: border-box; /* Asegura que el padding y el borde se incluyan en el ancho total */
	width: 80%;
	margin: auto; /* Lo centra en su contenedor */
	margin-top: 10px;
	padding: 8px;
	background-color: #f8fdf5;
	border: 1px solid #ccc;
	border-radius: 4px;
}
/* Pie con el botón */
.alerta-pie {
    margin-top: 20px;
}
.btn-alerta-red {
	min-width: 100px;
    background: #d9534f; /* Rojo */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-alerta-red:hover {
    background: #c9302c;
}
.btn-alerta-blue {
	min-width: 100px;
    background: #4f58d9; /* Azul */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-alerta-blue:hover {
    background: #2c2cc9;
}
.btn-alerta-green {
	min-width: 100px;
    background: #64d94f; /* Verde */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-alerta-green:hover {
    background: #51c92c;
}
/* Animación de aparición */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
#msg-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Color y opacidad del overlay */
    z-index: 9999; /* Asegúrate de que sea superior al de otros elementos */
    /*display: none; /* Inicialmente oculto */
    display: flex; /* Flexbox para centrar el loader */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}
.msg-alert-box {
	border: 1px solid #747474;
	border-radius: 5px;
	padding: 20px;
	align-items: center;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: white;
}
.msg-alert-box img {
	width: 70px;
	height: 70px;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
	/* loadding spinner */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Color y opacidad del overlay */
    z-index: 9990; /* Asegúrate de que sea superior al de otros elementos */
    /*display: none; /* Inicialmente oculto */
    display: flex; /* Flexbox para centrar el loader */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}
.loader {
	color: red;
	font-size: 10px;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	position: relative;
	text-indent: -9999em;
	animation: mulShdSpin 1.3s infinite linear;
	transform: translateZ(0);
	margin: auto;
	top: 40px;
	z-index: 10000;
  }
  
  @keyframes mulShdSpin {
	0%,
	100% {
	  box-shadow: 0 -3em 0 0.2em, 
	  2em -2em 0 0em, 3em 0 0 -1em, 
	  2em 2em 0 -1em, 0 3em 0 -1em, 
	  -2em 2em 0 -1em, -3em 0 0 -1em, 
	  -2em -2em 0 0;
	}
	12.5% {
	  box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 
	  3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, 
	  -2em 2em 0 -1em, -3em 0 0 -1em, 
	  -2em -2em 0 -1em;
	}
	25% {
	  box-shadow: 0 -3em 0 -0.5em, 
	  2em -2em 0 0, 3em 0 0 0.2em, 
	  2em 2em 0 0, 0 3em 0 -1em, 
	  -2em 2em 0 -1em, -3em 0 0 -1em, 
	  -2em -2em 0 -1em;
	}
	37.5% {
	  box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
	   3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, 
	   -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
	}
	50% {
	  box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
	   3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, 
	   -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
	}
	62.5% {
	  box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
	   3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, 
	   -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
	}
	75% {
	  box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 
	  3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
	  -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
	}
	87.5% {
	  box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 
	  3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
	  -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
	}
  }

  @media (max-width: 600px) {
	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image: url("Imagenes/fondo_movil.jpeg");
		background-repeat: no-repeat;
		background-size:cover; /* Mantiene la proporción original */
		background-position: center;
		opacity: 0.5; /* 50% de transparencia */
		z-index: -1; /* Coloca la imagen detrás del contenido */
	}
	.table{
		margin-left: -5px;
		margin-right: -5px;
		font-size: 10px;
	}
	.table header{
		font-size: 5px;
	}
	.table th, .table td {
		padding: 5px;
	}
	.est-group {
		display: flex;
		/*justify-content: space-between;*/
		align-items: center;
		margin-bottom: 15px;
	}
	.est-group label {
		width: 25%;
	}
	.est-group select {
		width: 70%;
	}
	.alerta-caja {
		min-width: 0; /* Elimina el ancho mínimo */
	}
}
