/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f4f8;
  margin: 0;
  padding: 0;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  min-height: 100vh;
}

/* Modal contenedor */
.modal--always-visible {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Panel principal */
.modal__content {
  background-color: #ffffff;
  width: 100%;
  max-width: 700px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Título */
.modal__title {
  text-align: center;
  font-size: 24px;
  color: #333333;
  margin-bottom: 25px;
}

/* Etiquetas */
.modal__label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
  color: #444;
}

/* Inputs y selects */
.modal__input {
  width: 100%;
  max-width: 100%;
  /* Los inputs ocupan todo el ancho disponible dentro de la celda */
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 6px;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease-in-out;
  box-sizing: border-box;
  /* Para que el padding no aumente el tamaño total */
}

.modal__input:focus {
  border-color: #007bff;
  outline: none;
  background-color: #ffffff;
}

/* Campos agrupados */
.modal__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 30px;
  /* Más espacio horizontal y vertical */
  padding: 0 15px;
  /* Padding lateral para que no se pegue a los bordes */
  box-sizing: border-box;
}

.modal__check{
  width: auto !important;
  margin-left: 10px;
}


/* Secciones de delito y CCC */
#campoDelito,
#campoCCC {
  grid-column: 1 / -1;
}

/* Botones */
.modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  gap: 10px;
}

.modal__button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal__button--save {
  background-color: #28a745;
  color: #fff;
}

.modal__button--save:hover {
  background-color: #218838;
}

.modal__button--cancel {
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.modal__button--cancel:hover {
  background-color: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
  .modal__content {
    padding: 20px;
  }

  .modal__fields {
    grid-template-columns: 1fr;
  }

  .modal__input {
    max-width: 100%;
    /* Los inputs ocuparán todo el ancho disponible en pantallas pequeñas */
  }

  .modal__button {
    /* width: 100%; */
    text-align: center;
  }

  .modal__actions {
    flex-direction: column;
    gap: 12px;
  }

  .oculto {
    display: none !important;
  }
}

.oculto {
  display: none !important;
}