
/* Estilos generales */
body {
  font-family: sans-serif;
  background-color: #f8f9fa;
  min-width: 373px;
  overflow-x: auto;
}

.container {
  max-width: 800px;
}

/* Encabezado */
header {
  background-color: #232224;
  color: white;
}

/* Media Query para el encabezado en móvil */
@media (max-width: 767.98px) {
  header .container-fluid {
    flex-direction: column;
  }

  header .container-fluid > * {
    margin-bottom: 1rem;
  }

  header .container-fluid > *:last-child {
    margin-bottom: 0;
  }

  header nav {
    order: 3; /* Mueve "MODALIDADES" al final */
  }

  header .d-flex.align-items-center.flex-wrap.justify-content-center {
    order: 2; /* Mueve los iconos y el botón de sesión al medio */
  }

  header a[href="https://opositatcae.es/"] {
    order: 1; /* Mueve el logo al principio */
  }
}

/* Formulario */
#inscriptionForm {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Lienzo de la firma */
.signature-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 2 / 1;
  background-color: #dee2e6;
  border-radius: 0.25rem;
}

#signature-pad {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  -ms-touch-action: none;
  cursor: crosshair;
  background-color: transparent; /* ya el contenedor tiene color */
  border-radius: 0.25rem;
}


/* Botones */
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Estilos para la respuesta del formulario */
#form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
}

#form-message.success {
  border: 2px solid #28a745;
  color: #155724;
  background: #d4edda;
}

#form-message.error {
  border: 2px solid #dc3545;
  color: #721c24;
  background: #f8d7da;
}

/* Estilos de validación */
.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  display: none;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Media queries para la capacidad de respuesta */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  #inscriptionForm {
    padding: 1.5rem;
  }

  .row {
    flex-direction: column;
  }

  .col {
    width: 100%;
    margin-bottom: 1rem;
  }
}
.website-visual {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
