body {
  background: rgb(204, 204, 204);
}
page {
  background: white;
  display: block;
  margin: 0 auto;
  margin-bottom: 0.5cm;
  box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
}
page[size="A4"] {
  width: 21cm;
  height: 15cm;
}
page[size="A4"][layout="landscape"] {
  width: 29.7cm;
  height: 21cm;
}
@media print {
  body,
  page {
    background: white;
    margin: 0;
    box-shadow: 0;
  }
}

.HeaderFile {
  display: flex;
}

.HeaderImage {
  max-height: 200px;
  margin: 20px 0 0 60px;
}

.HeaderGeneralInfo {
  font-size: 20px;
  display: inline-flex;
  margin-left: 8%;
}

.HeaderText {
  margin-right: 5px;
  font-weight: bold;
}

.Fecha {
  display: flex;
  margin: 0 15px 0 120px;
}

.Paciente {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
}

.NombrePaciente {
  margin-right: 15px;
}

.InfoCita {
  margin: 0 70px 0 70px;
  font-size: 20px;
}

.CentroMedico {
  margin: 0 170px 0 100px;
  display: flex;
  font-size: 20px;
  justify-content: center;
  align-items: center;
}

.NCita {
  display: flex;
  padding: 0;
  font-size: 20px;
  justify-content: center;
  align-items: center;
}
.NCita .NCitaText {
  border: solid 2px #000000;
  padding: 0 10px;
  display: flex;
}

.NumeroCita {
  padding-left: 5px;
}

.Separador {
  margin: 0 80px;
  font-weight: bold;
}

.InfoGeneral {
  display: flex;
}

.InfoGeneralDetalles {
  margin-left: 10px;
  font-size: 15px;
}

.parent {
  display: grid;
  grid-template-columns: 1fr repeat(2, 1fr) 1.5fr;
  /* grid-template-rows: 0.3fr; */
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  }
  
  .childsML{
    margin-left: 60px;
  }
  /* Esto era para ordenarlos según su longitud ECM */
  /* .div1 { grid-area: 1 / 1 / 2 / 2; }
  .div2 { grid-area: 1 / 2 / 2 / 3; }
  .div3 { grid-area: 1 / 3 / 2 / 4; }
  .div4 { grid-area: 1 / 4 / 2 / 5; } */

/* Estilos para el contenedor principal */
.FlexContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 500px; /* Puedes ajustar el tamaño máximo según tus necesidades */
  margin: 0 auto;
}

/* Estilos para el mensaje largo */
.MensajeLargo {
  margin-top: 50px;
  justify-content: center;
  align-items: center;
  display: flex;
  font-weight: bold;
}

/* Estilos para el espacio en blanco y la firma */
.EspacioFirma {
  flex: 1;
  text-align: center;
  position: relative;
  margin-left: 30px;
  margin-top: -15px;
}

.EspacioFirma .Separador {
  width: 100%;
  border: 1px solid black;
}

/* Estilos para el div del canvas */
.CanvasContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Asegura que el canvas quede encima de otros elementos */
}

canvas {
  width: 100%;
  height: 100%;
}

.FirmaLimpiar{
  display: flex;
    justify-content: center;
    align-content: center;
    margin: 0 !important;
}

.TituloFirma{
  margin: 0 5px;
}

#limpiarCanvas:hover{
cursor: pointer;
}

.Centrar{
  justify-content: center;
  align-items: center;
  display: flex;
}

.TitlesBold{
  font-weight: bold;
}