body {
  width: 100%;
  height: 100%;
  border: 0px solid black;
  margin-left: auto;
  margin-right: auto;
}
/* contenedor principal*/
.layout {
  width: 50%;
  height: 600px;
  border: 3px solid var(--color-principal);
  border-radius: 15px;
  background-color: white;
  box-shadow: 5px 5px 5px gray;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}
/* contenedor del titulo */
#tituloregistro {
  width: 70%;
  height: 7%;
  border: 0px solid aqua;
  margin-top: 1rem;
  margin-left: 4rem;
  text-align: center;
  line-height: 0.1;
}
#titulo {
  font-family: "cambriabold";
  font-size: 2.7rem;
  color: var(--color-principal);
}

/* formulario */
form {
  width: 90%;
  height: 80%;
  border: 0px solid black;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5%;
}
/* contenedor invisible de los datos del formulario */
section {
  width: 100%;
  height: 100%;
  border: 0px solid orangered;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}
/* contenedor de la etiqueta y de la caja (input) */
#grupo {
  width: 95%;
  height: 7%;
  border: 0px solid black;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#etiqueta {
  width: 40%;
  height: 90%;
  border: 0px solid red;
}
#caja {
  width: 60%;
  height: 100%;
  border: 0px solid violet;
}

/* contenedor invisible de la pizarra */
article {
  width: 95%;
  height: 30%;
  border: 0px solid green;
}

#pizarra {
  width: 97%;
  height: 95%;
  background-color: rgb(203, 199, 199);
  resize: none;
}

/* input (datos introducidos) */
#nombre,
#apellido1,
#apellido2,
#email {
  width: 90%;
  height: 70%;
  background-color: rgb(203, 199, 199);
}
#telefono {
  width: 40%;
  height: 70%;
  background-color: rgb(203, 199, 199);
}
label,
input,
textarea,
#mensaje {
  font-family: "cambria";
  font-size: 1.2rem;
}
#mensaje {
  border: 1px solid red;
  margin-right: 80%;
}
/* Contenedor Campos obligatorios */
aside {
  width: 60%;
  height: 10%;
  margin-right: 30%;
}
#campos {
  color: red;
  font-family: "cambriabold";
  font-size: 1.2rem;
}

/* Contenedor de los botones */
#botones {
  width: 50%;
  height: 10%;
  border: 0px solid blue;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
/* boton */
#boton {
  width: 30%;
  height: 80%;
  border: 2px solid black;
  border-radius: 10px;
  background: rgb(210, 136, 136);
  box-shadow: 5px 5px 5px gray;
}

#boton:active {
  scale: 0.92;
  box-shadow: 0px 0px 0px;
}
#boton:hover {
  background: linear-gradient(270deg, rgb(177, 9, 9) 0%, rgb(240, 88, 88) 60%);
  color: white;
}

/* PARA DISPOSITIVOS CON RESOLUCION HASTA  768PX DE ANCHO  */
@media screen and (max-width: 1024px) {
  .layout {
    width: 75%;
    margin-top: 2rem;
  }
  /* contenedor del titulo */
  #tituloregistro {
    width: 70%;
    height: 7%;
    margin-top: 1rem;
    margin-left: 4rem;
    line-height: 0.1;
  }
  #titulo {
    font-size: 2.7rem;
  }

  /* formulario */
  form {
    width: 90%;
    height: 80%;
    margin-top: 5%;
  }
  /* contenedor invisible de los datos del formulario */
  section {
    width: 100%;
    height: 100%;
  }
  /* contenedor de la etiqueta y de la caja (input) */
  #grupo {
    width: 95%;
    height: 7%;
  }

  #etiqueta {
    width: 40%;
    height: 90%;
  }
  #caja {
    width: 60%;
    height: 100%;
  }

  /* contenedor invisible de la pizarra */
  article {
    width: 95%;
    height: 30%;
  }

  #pizarra {
    width: 97%;
    height: 95%;
  }

  /* input (datos introducidos) */
  #nombre,
  #apellido1,
  #apellido2,
  #email {
    width: 90%;
    height: 70%;
  }
  #telefono {
    width: 40%;
    height: 70%;
  }
  /* Contenedor Campos obligatorios */
  aside {
    width: 60%;
    height: 10%;
    margin-right: 30%;
  }
  #campos {
    font-size: 1.2rem;
  }

  /* Contenedor de los botones */
  #botones {
    width: 50%;
    height: 10%;
  }
  /* boton */
  #boton {
    width: 30%;
    height: 80%;
  }
}

/* PARA DISPOSITIVOS CON RESOLUCION HASTA  768PX DE ANCHO  */
@media screen and (max-width: 768px) {
  .layout {
    width: 85%;
    height: 750px;
  }
  /* contenedor del titulo */
  #tituloregistro {
    width: 75%;
    height: 5%;
  }
  #titulo {
    font-size: 2rem;
  }

  /* formulario */
  form {
    width: 95%;
    height: 90%;
    margin-top: 2%;
  }
  /* contenedor invisible de los datos del formulario */
  section {
    width: 90%;
    height: 97%;
  }
  /* contenedor de la etiqueta y de la caja (input) */
  #grupo {
    width: 99%;
    height: 15%;
    flex-direction: column;
  }
  #etiqueta {
    width: 63%;
    height: 50%;
    margin-right: 25%;
  }
  #caja {
    width: 90%;
    height: 55%;
  }
  /* contenedor invisible de la pizarra */
  article {
    width: 95%;
    height: 27%;
  }
  #pizarra {
    width: 100%;
    height: 100%;
  }
  #nombre,
  #apellido1,
  #apellido2,
  #email {
    width: 90%;
    height: 70%;
  }
  #telefono {
    width: 40%;
    height: 70%;
  }
  label,
  input,
  textarea,
  #mensaje {
    font-size: 1.1rem;
  }
  /* Contenedor Campos obligatorios */
  aside {
    width: 80%;
    height: 5%;
    margin-right: 5rem;
  }
  #campos {
    font-size: 0.7rem;
  }
  /* Contenedor de los botones */
  #botones {
    width: 60%;
    height: 12%;
  }
  /* boton */
  #boton {
    width: 25%;
    height: 60%;
  }
}

/* PARA DISPOSITIVOS  MOVILES CON RESOLUCION HASTA  480PX DE ANCHO  */

@media screen and (max-width: 480px) {
  .layout {
    width: 90%;
    height: 650px;
    margin-top: 3%;
  }
  /* contenedor del titulo */
  #tituloregistro {
    width: 75%;
    height: 6%;
    margin-left: 3rem;
  }
  #titulo {
    font-size: 2rem;
  }

  /* formulario */
  form {
    width: 95%;
    height: 85%;
  }
  /* contenedor invisible de los datos del formulario */
  section {
    width: 99%;
    height: 99%;
  }
  /* contenedor de la etiqueta y de la caja (input) */
  #grupo {
    width: 99%;
    height: 8%;
  }
  #etiqueta {
    width: 72%;
    height: 55%;
  }
  #caja {
    width: 90%;
    height: 55%;
  }

  /* contenedor invisible de la pizarra */
  article {
    width: 95%;
    height: 26%;
  }

  #pizarra {
    width: 100%;
    height: 85%;
  }

  #nombre,
  #apellido1,
  #apellido2,
  #email {
    width: 87%;
    height: 70%;
  }
  #telefono {
    width: 40%;
    height: 70%;
  }
  label,
  input,
  textarea,
  #mensaje {
    font-size: 0.8rem;
  }

  /* Contenedor Campos obligatorios */
  aside {
    width: 90%;
    height: 30px;
    margin-right: 2rem;
  }
  #campos {
    font-size: 0.7em;
  }

  /* Contenedor de los botones */
  #botones {
    width: 80%;
    height: 10%;
  }
  /* boton */
  #boton {
    width: 30%;
    height: 60%;
  }
}
