* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-family: Lexend Deca, cursive;
}

body {
  margin-top: 5vw;
  scroll-behavior: smooth;
}

/* Barra de navegación */

header {
  position: fixed;
  width: 100%;
  background: #2A437C;
  top: 0;
  z-index: 2;
  height: 5vw;
  padding: 0.5vw 11vw;
  display: flex;
  flex-direction: row;
}

.logo, .Titulo {
  width: 100%;
  align-self: center;
}

/* Logo */

.logo img {
  border-radius: 100%;
  width: 4vw;
  background: white;
  margin-top: 0.5vw;
}

/* Titular */

.Titulo {
  text-align: right;
}

.Titulo h1, .Titulo p {
  color: white;
}

.Titulo h1 {
  font-size: 1.5vw;
}

.Titulo p {
  font-size: 1.2vw;
}

/* Encabezado */

.bg-pic {
  position: relative;
  height: calc(100vh - 7.5vh);
  overflow: hidden;
  background-position: top;
  background-size: cover;
  background-image: url("Pics/girl_hero_pic.png");
  background-repeat: no-repeat;
}

/* Formulario */

.formulario {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  position: absolute;
  top: 15%;
  width: 100%;
}

.formulario h2 {
  color: #2A437C;
  margin-bottom: 1vw;
}

form {
  justify-items: center;
  grid-column: 2/5;
  margin: 0;
  background: rgba(255, 219, 43, 0.75);
  box-shadow: 0 0.6vw 0.6vw 1vw rgba(0, 0, 0, 0.2), 0 0.6vw 0.6vw 0 rgba(0, 0, 0, 0.19);
  border-radius: 2vw;
  padding: 1.5vw 3vw;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
}

.datos-form {
  display: grid;
  gap: 0.5vw;
  grid-auto-rows: auto;
  grid-template-columns: repeat(2, minmax(1vw, auto));
}

#fname, #lname, #email, #phone {
  width: 100%;
  height: 5.5vh;
  padding-left: 2vw;
  border-radius: 0.8vw;
}

.modalidad > h3, .info > h3 {
  font-size: 1.5vw;
  margin: 1vw 0;
}

form>h2 {
  font-size: 2vw;
}

.form-nam {
  align-self: center;
  width: 100%;
  margin-bottom: 1vw;
  font-size: 1.5vw;
}

.form-opt {
  display: flex;
  flex-direction: column;
  line-height: 2vw;
  font-size: 1.5vw;
}

.form-opt>h3 {
  margin: 1vw 0;
}

.taller-opt {
  display: flex;
  flex-direction: row;
  font-size: 1.2vw;
}

.taller-opt label {
  padding-left: 1vw;
  line-height: 2vw;
}

.form-per {
  align-items: center;
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: 1vw;
}

.form-per label {
  padding-left: 1vw;
}

form input {
  border: none;
  align-self: center;
  font-size: 1.5vw;
}

form button {
  font-size: 1.5vw;
  padding: 0.5vw 4vw;
  margin-top: 1vw;
  border-radius: 1vw;
  background: #2A437C;
  font-weight: bold;
  color: white;
}

.fecha {
  grid-column: 7/9;
  margin: 0 3vw 0 3vw;
}

.fecha img {
  transition: transform .2s;
}

.fecha img:hover {
-ms-transform: scale(1.2);
/* IE 9 */
-webkit-transform: scale(1.2);
/* Safari 3-8 */
-moz-transform: scale(1.2);
transform: scale(1.2);
}

/* Talleres */

.Talleres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 2.5vw;
  padding: 4vw 11vw;
}

.primero {
  background-image: url("Pics/fondo_papel.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

.segundo {
  background-color: #2A437C;
  color: #FFFFFF;
}

.taller-ttl h2 {
  font-size: 3vw;
  font-family: Quicksand, cursive;
  text-align: center;
}

.taller-ttl p {
  font-size: 1.2vw;
}

.one, .two {
  grid-column: 1/4;
}

.direccion {
  grid-column: 1/4;
  text-align: center;
  font-size: 2vw;
}

.para-1 > h3, .para-2 > h3 {
  font-family: Quicksand, cursive;
  text-align: center;
  font-size: 2vw;
  padding: 2vh 0px;
  border-radius: 1vw;
}

.para-1 > h3 {
  background: rgba(255, 219, 43, 0.75);
}

.para-2 > h3 {
  color: rgb(42, 67, 124);
  background: white;
}

.para-2 {
  grid-column: 2/3;
}

.para-1 > p, .para-2 > p {
  text-align: center;
  font-family: Quicksand, cursive;
  font-size: 1.7vw;
  margin-top: 1.5vw;
}

.Talleres picture img {
  border-radius: 100%;
  box-shadow: 0 0.5vw 1vw 0 rgba(0, 0, 0, 0.2), 0 2vw 4vw 0 rgba(0, 0, 0, 0.19);
  transition: transform .2s;
}

.Talleres picture img:hover {
  -ms-transform: scale(1.2);
  /* IE 9 */
  -webkit-transform: scale(1.2);
  /* Safari 3-8 */
  -moz-transform: scale(1.2);
  transform: scale(1.2);
}

.pic-uno, .pic-dos {
  grid-row: 2/4;
}

.pic-dos {
  grid-column: 3/4;
}

/* Ilustradora */

.Ilustradora {
  display: flex;
  flex-direction: row;
  padding: 4vw 11vw;
  align-items: center;
  background-image: url("Pics/fondo_gabito.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.Ilustradora picture, .Ilustradora article {
  width: 100%;
}

.Ilustradora article {
  text-align: center;
}

.Ilustradora article h2 {
  margin: 1.5vh 0;
  font-family: Quicksand, cursive;
  font-size: 3vw;
}

.Ilustradora article p {
  font-family: Quicksand, cursive;
  color: #000000;
  font-size: 2vw;
}

.Ilustradora picture img {
  border-radius: 3.5vw;
  box-shadow: 0 0.5vw 1vw 0 rgba(0, 0, 0, 0.2), 0 2vw 4vw 0 rgba(0, 0, 0, 0.19);
  transition: transform .2s;
}

.Ilustradora picture img:hover {
  -ms-transform: scale(1.2);
  /* IE 9 */
  -webkit-transform: scale(1.2);
  /* Safari 3-8 */
  -moz-transform: scale(1.2);
  transform: scale(1.2);
}

/* Contacto */

.Contacto {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4vw 11vw 0 11vw;
  background-image: url("Pics/fondo_papel.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

.Contacto picture {
  width: 100%;
}

.Contacto article {
  color: #2A437C;
  width: 100%;
  text-align: center;
  padding: 4vw;
  margin-right: 4vw;
  background: #d6dae6;
  box-shadow: 0 0.5vw 1vw 0 rgba(0, 0, 0, 0.2), 0 2vw 4vw 0 rgba(0, 0, 0, 0.19);
}

.Contacto article h2 {
  font-size: 3.5vw;
}

.Contacto article p {
  font-size: 2vw;
  word-spacing: 0.2vh;
  margin-bottom: 1.5vh;
}

/* Boton TOP*/

#myBtn {
  width: auto;
  height: auto;
  padding: 1vw;
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 4.5vh;
  /* Place the button at the bottom of the page */
  right: 3vw;
  /* Place the button 30px from the right */
  z-index: 1;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  background-color: #FFDB2B;
  /* Set a background color */
  color: #2A437C;
  /* Text color */
  cursor: pointer;
  /* Add a mouse pointer on hover */
  border-radius: 50%;
  /* Rounded corners */
  font-size: 1.2vw;
  /* Increase font size */
  transition: 0.2s;
  box-shadow: 0 0.5vw 1vw 0 rgb(0 0 0 / 20%), 0 2vw 4vw 0 rgb(0 0 0 / 19%);
}

#myBtn:hover {
  background-color: #555;
  /* Add a dark-grey background on hover */
}

footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2.5vh 0;
  text-align: center;
  background: #2A437C;
  color: white;
}

footer p {
  width: 100%;
  font-size: 2vw;
}

footer span {
  font-size: 3vw;
  position: absolute;
  left: 85%;
}

footer a:link, a:visited {
  color: white;
  text-decoration: none;
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
  body {
    margin-top: 10vw;
  }
  header {
    height: 10vw;
  }
  .logo {
    width: 30%;
  }
  .logo img {
    width: 8vw;
  }
  .Titulo {
    width: 70%;
  }
  .Titulo h1 {
    font-size: 2.5vw;
  }
  .Titulo p {
    font-size: 2.5vw;
  }
  .formulario {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 30vw;
    top: 10%;
  }
  form>h2 {
    font-size: 3.5vw;
    text-align: center;
  }
  .datos-form {
    display: flex;
    flex-direction: column;
    row-gap: 1vh;
  }
  .form-nam {
    font-size: 2.5vw;
  }
  .form-opt>h3 {
    font-size: 2.5vw;
  }
  #fname, #lname, #email, #phone {
    font-size: 2vw;
    height: 3vh;
  }
  .modalidad > h3, .info > h3 {
    font-size: 2.5vw;
  }
  .fecha {
    margin: 3vw;
  }
  .bg-pic {
    background-position: right;
  }
  .taller-opt label {
    font-size: 1.7vw;
    line-height: 3vw;
  }
  .form-per label i {
    font-size: 1.2vw;
  }
  form button {
    font-size: 2.5vw;
  }
  .taller-ttl h2 {
    font-size: 3.5vw;
  }
  .taller-ttl p {
    font-size: 1.8vw;
  }
  .Talleres {
    row-gap: 1.5vh;
  }
  .para-1 > h3, .para-2 > h3 {
    font-size: 2vw;
    padding: 1.5vh 0px;
  }
  .para-1 > p, .para-2 > p {
    font-size: 1.8vw;
  }
  .Ilustradora article h2 {
    margin: 0.5vh 0;
    font-size: 4vw;
}
  footer {
    padding: 1vh 0;
  }
}

@media screen and (max-width: 425px) {
  body {
    margin-top: 20vw;
  }
  header {
    height: 20vw;
  }
  .bg-pic {
    height: calc(100vh - 20vw);
    background-position: center;
  }
  .Titulo h1 {
    font-size: 4vw;
  }
  .Titulo p {
    font-size: 3vw;
  }
  .logo img {
    width: 15vw;
  }
  form>h2 {
    font-size: 4vw;
  }
  .formulario {
    padding: 0px 20vw;
    top: 14%;
  }
  #fname, #lname, #email, #phone {
    font-size: 3vw;
    height: 4vh;
  }
  .form-nam {
    font-size: 3.5vw;
  }
  .form-opt>h3 {
    font-size: 4vw;
    margin: 2vw 0;
  }
  .form-per label i {
    font-size: 2.5vw;
  }
  form button {
    font-size: 5vw;
    margin-top: 3vw;
  }
  .taller-opt label {
    font-size: 2.8vw;
    margin-bottom: 2vw;
  }
  #taller2>label {
    line-height: unset;
  }
  .fecha {
    margin: 0 30vw 5vw 0;
  }
  .modalidad > h3, .info > h3 {
    font-size: 3.5vw;
    margin: 1vh 0;
  }
  .Talleres {
    row-gap: 2vh;
    display: flex;
    flex-direction: column;
    padding: 11vw;
  }
  .Talleres picture img {
    display: none;
  }
  .taller-ttl h2 {
    font-size: 6vw;
  }
  .taller-ttl p {
    font-size: 2.6vw;
  }
  .para-1 > h3, .para-2 > h3 {
    font-size: 5vw;
    padding: 0.5vh 0px;
  }
  .para-1 > p, .para-2 > p {
    font-size: 4.5vw;
    margin-top: 2.5vh;
  }
  .direccion {
    font-size: 4vw;
  }
  .img-one, .img-two {
    width: 50%;
    align-self: center;
  }
  .Ilustradora {
    flex-direction: column;
    padding: 11vw;
    position: relative;
  }
  .Ilustradora article {
    margin: 0 0 8vh 0;
  }
  .Ilustradora article h2 {
    margin: 0;
    font-size: 7vw;
  }
  .Ilustradora article p {
    font-size: 5vw;
  }
  .Ilustradora article p b {
    font-size: 4vw;
    top: 10%;
    left: 15%;
    position: absolute;
  }
  .Ilustradora picture {
    padding: 3vw;
  }
  .Contacto {
    flex-direction: column;
    padding: 11vw 11vw 0 11vw;
  }
  .Contacto article {
    margin: 0;
  }
  .Contacto article h2 {
    font-size: 8vw;
  }
  .Contacto article p {
    font-size: 4.7vw;
  }
  .Contacto picture img {
    padding: 0px 11vw;
  }
  footer p {
    font-size: 2.5vw;
  }
  footer span a .fa-facebook-square:before {
    content: "\f082";
    font-size: 5vw;
  }
  footer span a .fa-instagram:before {
    content: "\f16d";
    font-size: 5vw;
  }
}