body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #c5c6c7d8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.container {
  width: 90%;
  max-width: 950px;
  background: rgb(241, 239, 239);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input,
select,
button
{
  width: 95%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}
label{
    font-size: 1.0rem;
}
button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: #0056b3;
}
#cip {
  width: 10%;
}
#campoenfermedad {
  display: none; /* oculto por defecto */
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#campoenfermedad label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

  

#campoenfermedad input[type="checkbox"] {
  margin: 0;
}

#validadorreniec{ 
    position:absolute;
    right: 0;
    width: 3rem;
    background-color:#ccc!important;
    padding: 9px; 
    padding-left: 4px;
    padding-right: 4px; 
    border-top-left-radius: unset; 
    border-bottom-left-radius: unset;
    }
    
/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 15px;
  }
  h1 {
    font-size: 1.0rem;
  }
  h2 {
    font-size: 0.9rem;
  }
  h3{
      font-size: 0.8rem;
  }
  h4{
      font-size: 0.7rem;
  }
  input,
  select,
  button,
  textarea
  {
    font-size: 0.6rem;
    width : 100%;
  }
  label{
      font-size: 0.6rem;
  }
  #campoenfermedad {
   display: block;
}
#validadorreniec{
    width : 2rem;
    padding : 5px;
    padding-left : 0px;
    padding-right : 0px;
}

}

@media (max-width: 480px) {
  h1 {
    font-size: 1.0rem;
  }
  h2 {
    font-size: 0.9rem;
  }
  h3{
      font-size: 0.8rem;
  }
  h4{
      font-size: 0.7rem;
  }
  label{
      font-size: 0.6rem;
  }
  input,
  select,
  button,
  textarea
  {
    font-size: 0.6rem;
    
    width : 90%;
  }
  #campoenfermedad label {
    flex: 1 1 100%;
  }
 #cip {
  width: 15%;
  } 
  #campoenfermedad {
  display: block;
}
#validadorreniec{
    width : 2rem;
    padding : 5px;
    padding-left : 0px;
    padding-right : 0px;
}
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #007bff44;
}

#fotoPreview {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 10px;
}