body {
  font-family: "Montserrat", sans-serif;
}

.header {
  text-align: center;
}

/*
.header img {
  border-radius: 1em;
}
*/

.header-logo {
  height: 75px;
  width: auto;
  padding-top: 5px;
  /* padding-bottom: 5px; */
  border-radius: 1em;
}

h1 {
  /* Centrar el título en la página */
  text-align: center;
  color: #004378;
}

form {
  /* Centrar el formulario en la página */
  margin: 0 auto;
  width: 510px;
  /* Esquema del formulario */
  padding: 1em;
  border: 1px solid #004378;
  border-radius: 1em;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

form li + li {
  margin-top: 1em;
}

.label1 {
  /* Tamaño y alineación uniforme */
  display: inline-block;
  width: 200px;
  /* text-align: right; */
}

.label2 {
  /* Tamaño y alineación uniforme */
  display: inline-block;
  /* text-align: right; */
}

input,
textarea {
  /* Para asegurarse de que todos los campos de texto tienen la misma configuración de letra
     Por defecto, las áreas de texto tienen un tipo de letra monoespaciada */
  font: 1em sans-serif;

  /* Tamaño uniforme del campo de texto */
  width: 300px;
  box-sizing: border-box;

  /* Hacer coincidir los bordes del campo del formulario */
  border: 1px solid #999;
}

/* Checkbox */
input[type="checkbox"] {
  width: 30px;
}

fieldset {
  margin-left: 70px;
  margin-right: 70px;
}

fieldset > div > label {
  text-align: start;
}

input:focus,
textarea:focus {
  /* Destacado adicional para elementos que tienen el cursor */
  border-color: #000;
}

textarea {
  /* Alinear los campos de texto multilínea con sus etiquetas */
  vertical-align: top;

  /* Proporcionar espacio para escribir texto */
  height: 5em;
}

.button {
  /* Alinear los botones con los campos de texto */
  padding-left: 90px; /* mismo tamaño que los elementos de la etiqueta */
}

button {
  /* Este margen adicional representa aproximadamente el mismo espacio que el espacio
     entre las etiquetas y sus campos de texto */
  margin-left: 0.5em;
  background: #004378;
  color: white;
  border: 0;
  border-radius: 5px;
}

button:hover {
  background: black;
}

.button-container {
  text-align: center; /* Centrar el botón */
  margin-top: 20px; /* Separación del div de los datos */
}
.button-container button {
  padding: 10px 20px;
  font-size: 16px;
}

.required:after {
  content: "*";
  color: red;
}

#msg-response-container {
  display: none;
  /* Centrar el formulario en la página */
  margin: 0 auto;
  margin-top: 10px;
  width: 600px;
  /* Esquema del formulario */
  padding: 1em;
  border: 1px solid #004378;
  border-radius: 1em;
}

#msg-response-ok {
  display: none;
  color: black;
  background-color: #77ca32;
  padding: 10px;
  border-radius: 5px;
}

#msg-response-error {
  display: none;
  color: white;
  background-color: #ad1519;
  padding: 10px;
  border-radius: 5px;
}

#msg-response-validation {
  display: none;
  color: black;
  background-color: #fabb00;
  padding: 10px;
  border-radius: 5px;
}

/* Override if neccesary */
#cifOperadoresContainer > input {
  margin-left: 25px;
}

#addCifOperadorBtn {
  margin-left: 205px;
  margin-top: 0.6em;
  height: 2em;
}

.div-kaptcha {
  /* No se centra el div */
  text-align: center; /* Centra el contenido inline */
}

.div-kaptcha input {
  width: 70%; /* Ancho del input */
  padding: 8px;
}

.div-kaptcha button {
  vertical-align: top;
  margin-left: 0.5em;
  background: #cccccc;
  border: 0;
  border-radius: 5px;
}

.kaptcha-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 96px;
  background-color: #f4de7a;
  color: #004378;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.kaptcha-error {
  display: none;
  max-width: 150px;
  color: #ad1519;
  font-size: 12px;
  line-height: 1.2;
}

.kaptcha-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kaptcha-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 67, 120, 0.25);
  border-top-color: #004378;
  border-radius: 50%;
  animation: kaptcha-spin 0.8s linear infinite;
}

.kaptcha-loading-text {
  font-size: 12px;
}

.kaptcha-input-label {
  display: block;
  width: 70%;
  margin: 0 auto 4px auto;
  text-align: left;
}

.kaptcha-box.is-loading #imgKaptcha,
.kaptcha-box.is-loading .kaptcha-error {
  display: none;
}

.kaptcha-box.is-loading .kaptcha-loader {
  display: flex;
}

.kaptcha-box.has-error #imgKaptcha {
  display: none;
}

.kaptcha-box.has-error .kaptcha-error {
  display: block;
}

.kaptcha-box.has-error .kaptcha-loader {
  display: none;
}

@keyframes kaptcha-spin {
  to {
    transform: rotate(360deg);
  }
}
