
fieldset {
  display: block;
  border: 1px solid #023877;
  border-radius: 5px;
  margin: .3em;
  padding: .1em;
  width: 100%;
}

legend {
  padding: 0 1em;
  font-size: 1.3em;
  text-align: left;
  font-family: 'Concert One';
  color: #023877;
}


.membrete {
  -o-border-image: none;
     border-image: none;
  display: block;
  margin: auto;
  height: 114px;
  width: 375px;
}

.titulo {
  margin-top: 1em;
  font-size: 3em;
  margin-bottom: 0.5em;
  text-align: center;
  background-color: cover;
}

.subtitulo {
  font-size: 2em;
  text-align: left;
}

.subcenter {
  font-size: 1.7em;
  text-align: center;
}

.formulario {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  background-color: #ffffff;
  margin: auto;
  width: 90%;
  padding: 2em 2em;
  border-radius: 1em;
  -webkit-box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.3);
          box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.3);
  text-align: justify;
  margin-top: 40px;
  margin-bottom: 30px;
}

.miniform {
  display: block;
  background-color: #ffffff;
  width: 33%;
  margin: auto;
  text-align: center;
  padding: 2em 2em;
  border-radius: 1em;
  -webkit-box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.3);
          box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.3);

}

.formulario__label,
.miniform__label {
  display: block;
  width: 70%;
  font-weight: normal;
  font-size: small;
  color: #7a7a7a;
  padding: 5px 3px 0px 3px;
  margin: auto;
  cursor: pointer;
  align-items: baseline;
  text-align: center;
}

/* caracteristicas generales de inputs de texto */
input,
select,
.ctw-input,
p .formulario__input-textareamax {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: none;
  -moz-box-shadow: 0 5px 5px rgba(0, 0, 255, 0.2);
  -webkit-box-shadow: 0 5px 5px rgba(0, 0, 255, 0.2);
  box-shadow: 0 5px 5px rgba(0, 0, 255, 0.2);
  color: #7a7a7a;
  border-radius: 7px;
  font-size: 1em;
  line-height: 1.2;
  padding: 5px;
  margin-bottom: 6px;
  -webkit-transition: 0.3s ease all;
  transition: 0.3s ease all;
}

.formulario__input,
.miniform__input,
.ctw-input,
.formulario__input-dx {
  height: 45px;
  width: 70%;
}

.formulario__input-textarea {
  height: 70px;
}

.formulario__input-textareamax {
  height: 200px;
}

.formulario__input-textareasupermax {
  height: 90vh;
}

/* focus en inputs de texto */
input:focus,
p .formulario__input-textareamax:focus {
  border: none;
  outline: none;
  -moz-box-shadow: 0 5px 10px rgba(44, 44, 255, 0.8);
  -webkit-box-shadow: 0 5px 10px rgba(44, 44, 255, 0.8);
  box-shadow: 0 5px 10px rgba(44, 44, 255, 0.8);
}


/* color y espesor a placeholders */
input::placeholder{
  color: #7a7a7a5e;
  font-weight: 100;
}

input:invalid { 
  border: none;
  -moz-box-shadow: 0 5px 15px rgba(255, 44, 44, 0.4);
  -webkit-box-shadow: 0 5px 15px rgba(255, 44, 44, 0.4);
  box-shadow: 0 5px 15px rgba(255, 44, 44, 0.4);
} 

input:invalid:focus { 
  border: none;
  outline: none;
  -moz-box-shadow: 0 5px 15px rgba(255, 44, 44, 0.8);
  -webkit-box-shadow: 0 5px 15px rgba(255, 44, 44, 0.8);
  box-shadow: 0 5px 15px rgba(255, 44, 44, 0.8);
} 

.hidden{
  visibility: hidden;
}

/* GRID 12 COLUMNAS */
.boton-guardar-editar,
.subcenteropd,
.formulario__firma,
.formulario__btn,
.contenedor,
.encabezado12col,
.contenedor12col,
.input12col,
.membrete,
.titulo,
.subtitulo,
.parrafo,
.renglonvacio,
img,
.button-img {
  -ms-grid-column-span: 12;
  grid-column: span 12;
}

/* GRID 3 COLUMNAS */
.encabezado3col,
.contenedor3col,
.input3col {
  -ms-grid-column-span: 3;
  grid-column: span 3;
}

.boton-guardar-editar{
  margin: auto;
  width: 10vw;
  background: none;
  border: none;
  
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 70%;
  padding-right: 20px; /* espacio para el ícono */
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}

.password-wrapper button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9861bc;
  font-size: 18px;
}


/* ----- -----  Mediaqueries ----- ----- */
@media screen and (max-width: 946px) {

  .boton-guardar-editar{
    margin: auto;
    width: 20vw;
    background: none;
    border: none;
  }
  .membrete {
    height: 76px;
    width: 250px;
  }
}

@media screen and (max-width: 720px) {

  .formulario {
    display: block;
    width: 95%;
    padding: 20px 20px;
    text-align: center;
  }

  .miniform {
    width: 95%;
    padding: 20px 20px;
    text-align: center;
  }
  
.formulario__label,
.miniform__label,
.miniform__input {
  font-size: 1.5em;
  width: 90%;
}

.password-wrapper {
  position: relative;
  display: block;
}

.password-wrapper input {
  width: 90%;
  padding-right: 30px; /* espacio para el ícono */
}

.password-wrapper button {
  right: 35px;
}

.input3col{
  margin-top:   20px;
  margin-bottom: 25px;
}

  .formulario__btn {
    width: 50%;
  }
  .membrete {
    height: 76px;
    width: 250px;
  }

  .boton-guardar-editar{
    margin: auto;
    width: 40vw;
    background: none;
    border: none;
  }
}