/*BANNER PRINCIPAL*/

.banner__container {
  height: 100vh;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

.banner__front {
  position: absolute;
  align-items: center;
  height: 10%;
}

.banner__title {
  text-align: center;
  z-index: 1;
  font-size: 120px;
  color: white;
  position: relative;
  top: 200px;
}

.text__banner {
  font-size: 250px;
  color: rgba(255, 255, 255, 0.151);
  position: absolute;
}

.parallax__over {
  overflow: hidden;
  background-image: url(../content/intermedik_doctores.jpg);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

@media (max-width: 850px) {
  .banner__title {
    font-size: 50px;
    top: inherit;
    text-align: center;
    margin: 0 20px;
    bottom: 50px;
  }
  .text__banner {
    font-size: 20px;
    color: white;
    z-index: 1;
    margin: 10px 20px 20px 20px;
  }
  .banner__container {
    flex-direction: column;
    align-items: center;
    height: 100vh;
  }
  .banner__front {
    height: 10vw;
  }
}

@media (max-width: 680px) {
  .banner__container {
    height: 67vh;
  }
}

/*INFO CONTAINER*/

.dr__container {
  display: flex;
  justify-content: center;
  background-image: url(../content/photos/background.png);
  background-size: cover;
  height: 50vh;
  padding-top: 20px;
  text-align: center;
  transition: 10s background-position;
  background-position: bottom;
}

.dr__container:hover {
  background-position: top;
}

.info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo__marce {
  background-image: url();
}

@media (max-width: 680px) {
  .info__container {
    height: 280px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .dr__container {
    height: 180px;
    font-size: 12px;
  }
}

/*SERVICIOS*/

.servicios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  margin: 0 8%;
  padding: 50px 0;
}

.icono__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 500;
  font-size: 30px;
  top: 50px;
  margin: 25px 0;
  text-decoration: none;
  color: #013653;
}

.icono {
  width: 175px;
  margin: 0 50px;
  transition: 0.2s;
  background-color: none;
  padding: 50px;
  border-radius: 20px;
}

.icono:hover {
  background-color: #e8ebf0;
}

@media (max-width: 1280px) {
  .servicios {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 6% 0;
  }
  .icono {
    padding: 25px;
  }
}

@media (max-width: 1100px) {
  .servicios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }
  .icono {
    padding: 30px;
  }
}

@media (max-width: 620px) {
  .servicios {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .icono {
    padding: 30px;
  }
}

/*DR INFO*/

.nosotros {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #013653;
  color: white;
}

.fotoricardo {
  background-image: url(../content/photos/dr-ricardo-pineda2.jpg);
  background-position: bottom;
  background-size: cover;
  height: 80vh;
  width: 100%;
  filter: grayscale(0%);
  transition: 0.5s;
}

.fotomarce {
  background-image: url(../content/photos/dra-marcela-sanchez2.jpg);
  background-position: bottom;
  background-size: cover;
  height: 80vh;
  width: 100%;
  filter: grayscale(0%);
  transition: 0.5s;
}

.fotogretel {
  background-image: url(../content/photos/gretel.jpg);
  background-position: bottom;
  background-size: cover;
  height: 80vh;
  width: 100%;
  filter: grayscale(0%);
  transition: 0.5s;
}

.fotomarce:hover,
.fotogretel:hover,
.fotoricardo:hover {
  filter: grayscale(100%);
}

.sobremi {
  margin: 0 5%;
  width: 75%;
}

.nombre {
  font-size: 50px;
}

.especialidad {
  font-size: 30px;
  color: #27c1c1;
  position: relative;
  top: -50px;
}

.descripcion {
  font-size: 18px;
  position: relative;
  top: -50px;
}

@media (max-width: 850px) {
  .nosotros {
    flex-direction: column;
  }
  .nosotros__inv {
    flex-direction: column-reverse;
  }
  .fotoricardo {
    height: 40vh;
  }

  .fotomarce {
    height: 40vh;
  }
}

/* MAPA */

.map__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map {
  height: 40vh;
  width: 100%;
  border-radius: 25px;
  border: none;
}

@media (max-width: 780px) {
  .map {
    height: 25vh;
    width: 100%;
  }
}

/*CONTACTOS*/

.info__container {
  display: flex;
  height: auto;
  flex-direction: row;
  width: 100%;
  background-color: white;
  background-image: url(../content/photos/background.png);
  background-size: cover;
  background-position: center;
}

@media (max-width: 1100px) {
  .info__container {
    flex-direction: column;
  }
}

.contenedor__contactos {
  padding: 20px 0 0 0;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.contacto__unidad {
  display: grid;
  border-radius: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transition: 0.5s;
  cursor: pointer;
  text-decoration: none;
  color: #27c1c1;
  text-align: start;
}

.icono__contacto {
  width: 30px;
  align-self: flex-start;
  margin: 25px 15px 0 0;
  justify-self: flex-end;
}

.descripcion__contacto {
  grid-column: 2/5;
}

.titulo__contacto {
  font-size: 22px;
  font-weight: bold;
}

.ejemplo__contacto {
  font-size: 16px;
  position: relative;
  top: -20px;
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.horario__contacto {
  display: flex;
}

.horario__izq {
  margin: 0px 20px 0 0;
}

.horario__der {
  font-weight: 600;
}

@media screen and (max-width: 1280px) {
  .contenedor__contacto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 10px;
    margin: 0 5%;
  }
  .contacto__unidad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 850px) {
  .contenedor__contacto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 8px;
    margin: 0 10%;
  }
  .contacto__unidad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .contenedor__contacto {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .contacto__unidad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contact__div {
  width: 100%;
  display: grid;
}

.map__div {
  color: white;
  width: 100%;
  padding: 50px;
}

.info__div h2 {
  font-size: 40px;
  color: rgb(212, 223, 233);
}

.info__div p {
  font-weight: 400;
  line-height: 2;
}

@media (max-width: 1100px) {
  .info__container {
    flex-direction: column;
  }
  .info__div {
    width: auto;
  }
  .photo__div {
    height: 50vh;
  }
  .map__div {
    color: white;
    width: 85%;
    padding: 15px;
  }
}

/*MISC*/

.seccion__div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffffff;
  background-color: #27c1c1;
  height: 50px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/*GALERIA*/

.container__photo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 400px));
  justify-content: center;
  align-items: center;
  padding: 50px 25px;
  grid-gap: 25px;
}

.photo {
  overflow: hidden;
}

.unique__photo {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.5s;
  position: relative;
  top: 0;
  justify-self: center;
  z-index: 1;
  filter: grayscale(50%);
}

.unique__photo:hover {
  top: -35px;
  filter: grayscale(0%);
}

@media (max-width: 780px) {
  .container__photo {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    padding: 15px;
    grid-gap: 15px;
    grid-auto-rows: auto;
  }
  .unique__photo {
    filter: grayscale(0%);
  }
  .unique__photo:hover {
    top: 0;
  }
}
