/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  min-height: 100vh;
  width: 100%;
  background: #009579;
}
.container{
  position: absolute;
  top: 0%;
  left: 0%;
  #transform: translate(-50%,-50%);
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.container .registration{
  display: none;
}
/* ---------------------- ALERT -------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  min-width: 300px;
  animation: fadeIn 0.3s ease;
}

.modal-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.modal-button:hover { background-color: #0056b3; }

/* Animación de entrada */
@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------------------- Servicio ----------------------- */

.main-header {
    background-repeat: no-repeat;
    background-size: 47px 47px; /* Tamaño exacto de tu logo */
    background-position: 10px center;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.header-servicio {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 10px 0 85px; /* Espacio para el logo a la izquierda e iconos a la derecha */
    border-radius: 0 0 4px 4px;
}

.logo-flotante {
    position: absolute;
    left: 10px;
    top: -12px;
    width: 65px;
    height: 65px;
    background-color: #2196f3;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.titulo-central {
    flex: 1; /* Ocupa todo el espacio disponible */
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    margin-right: 5px; /* Pequeño ajuste para no pegar al bloque de iconos */
}

.acciones-header {
    display: flex;
    align-items: center;
    gap: 8px; /* Separación exacta de 10px entre iconos */
}

/* Estilos de iconos */
.material-symbols-outlined {
    cursor: pointer;
    user-select: none;
}

.icon-admin { color: #ffcccc; font-size: 28px; } /* Color suave para no competir con el fondo */
.icon-logout { color: #ffffff; font-size: 28px; }

.loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(38, 38, 37, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff; /* Color azul de tu servicio Agua */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------- */

#check:checked ~ .registration{
  display: block;
}
#check:checked ~ .login{
  display: none;
}
#check{
  display: none;
}

.container .form{
  padding: 1rem;
}
.form header{
  font-size: 2rem;
  font-weight: 500;
  text-align: right;
  margin-bottom: .5rem;
}

.form input{
   height: 60px;
   width: 100%;
   padding: 0 15px;
   font-size: 15px;
   margin-bottom: 1.3rem;
   border: 1px solid #ddd;
   border-radius: 6px;
   outline: none;
 }
.form input:focus{
   box-shadow: 0 1px 0 rgba(0,0,0,0.2);
 }

.form input.button{
  color: #fff;
  background: #009579;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.4s;
}                                                         
.form input.button:hover{
  background: #006653;
}

.form input.msj{
  color: #A52A2A;
  height: 40px;
  padding: 0 10px;
  background: #FFFACD;
  text-align: center; 
  width: 49%;
  font-size: 17px;
  font-weight: normal;
  cursor: pointer;
  transition: 0.4s;
}

.form input.msj2{
  color: #A52A2A;
  height: 40px;
  padding: 0 5px;
  background: #FFFACD;
  text-align: center; 
  width: 24%;
  font-size: 17px;
  font-weight: normal;
  cursor: pointer;
  transition: 0.4s;
}

.form input.titulo{
  height: 40px;
  color: #000;
  background: #fff;
  text-align: center; 
  width: 49%;
  font-size: 17px;
  font-weight: 500;
  cursor: not-allowed;
  transition: 0.4s;
}

.form input.login{
   height: 60px;
   width: 78%;
   padding: 0 15px;
   font-size: 15px;
   margin-bottom: 1.3rem;
   border: 1px solid #ddd;
   border-radius: 6px;
   outline: none;
 }

.form input.medio{
  width: 49%;
  height: 40px;
  font-size: 17px;
}

.form input.btn{
  width: 49%;
  height: 40px;
  font-size: 14px; 
  text-align: center; 
  padding: 3px;
}

.form select{
   height: 50px;
   width: 100%;
   padding: 0 15px;
   font-size: 15px;
   margin-bottom: 1.3rem;
   border: 1px solid #ddd;
   border-radius: 6px;
   outline: none;
 }
.form select:focus{
   box-shadow: 0 1px 0 rgba(0,0,0,0.2);
 }
 
.form a{
  font-size: 16px;
  color: #009579;
  text-decoration: none;
}
.form a:hover{
  text-decoration: underline;
}

.button{
  background-color: #04AA6D;
  border: none;
  color: white;
  padding: 6px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  width: 100%;  
}

.btn-azul {background-color: #008CBA;} 
.btn-marron {background-color: #61615f;} 
.btn-gris {background-color: #e7e7e7; color: black;} 

.modal-contenido{
  background-color:#fff;
  width:300px;
  padding: 10px 20px;
  margin: 20% auto;
  position: relative;
}
.modal{
  background-color: rgba(0,0,0,.8);
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  left:0;
  opacity:0;
  pointer-events:none;
  transition: all 1s;
}
.modal .button{
  height: 40px;
  width: 100%;
  padding: 0 15px;
  font-size: 15px;
  margin-bottom: 1.3rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  color: #fff;
  background: #009579;
  font-weight: 500;
  cursor: pointer;
  transition: 0.4s;
}

.modal .btnAdv{
  height: 40px;                                   
  width: 100%;                                    
  padding: 0 15px;                                 
  font-size: 1.2rem;                               
  margin-bottom: 1.3rem;                         
  border: 1px solid #ddd;                         
  border-radius: 6px;
  outline: none;
  color: #696969;
  background: #FFD700;
  font-weight: 500;
  cursor: pointer;
  transition: 0.4s;
}

.modal .btnAdv:hover{
  background: #DAA520;
    color: #000;
}

#miModal:target{
  opacity:1;
  pointer-events:auto;
}

.signup{
  font-size: 17px;
  text-align: center;
}
.signup label{
  color: #009579;
  cursor: pointer;
}
.signup label:hover{
  text-decoration: underline;
}

.icon-bar {
  width: 100%;
  background-color: #555;
  overflow: auto;
}
.icon-bar a {
  float: left;
  width: 20%;
  text-align: center;
  padding: 12px 0;
  transition: all 0.3s ease;
  color: white;
  font-size: 36px;
}
.icon-bar a:hover {
  background-color: #000;
}
.active {
  background-color: #04AA6D;
}

.btn-bar{
	text-align: center; 
	padding: 3px;
	font-size:32px;
}
.btn-bar i:hover {
  color: #fff;
  background-color: #009579;
  padding: auto;
}

#rotulo{
	width:50%;
	float:left;
	height: 20px;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	padding-left: 5px;
	cursor: not-allowed;
}

#rotulo2{
	width:33%;
	float:left;
	height: 20px;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	padding-left: 5px;
	cursor: not-allowed;
}

.barra{
	margin-right:30px;
	margin-bottom:20px;	
}

.disabled {
  opacity: 0.5;
  color: #000;
  background: #ccc;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: not-allowed;
}

#myProgress {
  width: 100%;
  height: 30px;
  background-color: #ddd;
  border-radius : 20px ; 	
}

#myBar {
  width: 1%;
  height: 30px;
  background-color: #04AA6D;
  border-radius : 20px ; 	
}

progress[value] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;	
	border: none;
	overflow:hidden;	
	width: 100%;
	height: 25px;
}

progress::-moz-progress-bar{ 
	background: #009579;
	background: rgba(0,149,121,1);
	background: -moz-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,149,121,1)), color-stop(100%, rgba(25,112,97,1)));
	background: -webkit-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -o-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -ms-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: linear-gradient(to right, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffaf4b', endColorstr='#ff920a', GradientType=1 );	
	border-radius : 20px ; 
	} 
	
progress::-webkit-progress-value { 
	background: #009579;
	background: rgba(0,149,121,1);
	background: -moz-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,149,121,1)), color-stop(100%, rgba(25,112,97,1)));
	background: -webkit-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -o-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: -ms-linear-gradient(left, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	background: linear-gradient(to right, rgba(0,149,121,1) 0%, rgba(25,112,97,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffaf4b', endColorstr='#ff920a', GradientType=1 );
	border-radius : 20px ; 	
}

progress::-webkit-progress-bar { 
	background-color:#D8D8D8;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
	border-radius : 20px ; 	
}
