main#main {
  padding-bottom: 20px;
  margin-bottom: 70px;
  background: #eaeaec;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/*encabezado seccion*/
main div#tituloSecc {
  display: inline-block;
  position: absolute;
  width: auto;
  padding: 5px 5px 5px 5px;
  background: #48887b;
  margin: 25px 0 5px 0;
  color: #fff;
  font-size: 0.85em;
  font-family: "futuraMedium";
  border-radius: 0 5px 5px 0;
}

/*---boton turnos---*/

main a.turno {
  grid-column-start: 1;
  grid-column-end: -1;
  justify-self: center;
  background: #a8518a;
  text-decoration: none;
  text-align: center;
  color: #fff;
  font-size: 0.7em;
  display: inline-block;
  width: 90%;
  max-width: 245px;
  padding: 5px;
  margin: 0px 15px 0;
  border-radius: 5px;
}
main a.turno:hover {
  color: #a8518a;
  background: #fff;
  border: 1px solid #a8518a;
}

/*----- ocultamos la seccion contacto y dejamos solo el boton -----*/

main div#contacto {
  display: none;
}

/*----- adaptacion footer--------*/

footer #pie {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
}
footer #pie .contacto,
footer #pie #redes,
footer #pie #mail,
footer .creditos {
  grid-column-start: 1;
  grid-column-end: -1;
}
footer #pie .contacto {
  justify-self: center;
}

/*------boton contactanos-------*/

footer #pie > a.contacto {
  border-radius: 5px;
  max-width: 245px;
  background: #48887b;
  padding: 5px 2px;
  width: 90%;
  font-size: 0.8em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 15px;
}
footer #pie > a.contacto:hover {
  color: #48887b;
  background: #fff;
  border: 1px solid #48887b;
}

@media only screen and (min-width: 320px) {
  /*--- correccion de disposicion de botones obras sociales ---*/
  main {
    margin-bottom: 70px;
  }

  /*-------- CONTACTO -----------*/

  /*----- mostramos seccion contacto y ocultamos el boton contactanos---*/
  main a.turno {
    display: none;
  }

  main div#contacto {
    display: inherit;
    grid-column-start: 1;
    grid-column-end: -1;
  }

  main div#tituloSecc {
    font-size: 1em;
    padding-left: 25px;
    padding-right: 10px;
  }

  /******************SECCION CONTACTO******************/
  main div#contacto h3.titulos {
    margin-top: 15px;
  }

  /*---------FOOTER---------*/

  footer #pie {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }

  /*----acomoda boton contactanos----*/
  footer #pie a.contacto {
    grid-column-start: 1;
    grid-column-end: 3;
    justify-self: end;
    align-self: center;
  }

  footer #pie #redes {
    grid-column-start: 3;
    grid-column-end: -1;
    margin-bottom: 15px;
  }
}

@media only screen and (min-width: 480px) {
  /*******************FOOTER***********************/
  footer div#pie {
    padding: 0;
  }
  footer #pie a.contacto {
    display: none;
  }
  footer #pie #redes {
    margin: 0;
  }
}

@media only screen and (min-width: 720px) {
  main div#tituloSecc {
    padding-left: 50px;
  }
}

@media only screen and (min-width: 900px) {
  main div#tituloSecc {
    padding-left: 10%;
  }
}

@media only screen and (min-width: 1900px) {
  main div#tituloSecc {
    font-size: 1.5em;
    margin: 50px 0 20px 0;
    padding-left: 13%;
  }
}
