header {
  background-image: url("../images/home_bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
}

.navbar-light .navbar-toggler {
  color: #999999 !important;
  border: none !important;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("../images/menu.svg");
}

.menu {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5%;
}

.menu .navbar-nav {
  border-radius: 1rem;
  background-color: #343a40cc !important;
  text-transform: uppercase;
}

.menu .navbar-nav .nav-item a {
  color: #00a69c;
}

.menu .navbar-nav .nav-item a:hover {
  color: #06b6aa;
}

#nosotros {
  background-color: #e6e6e6;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

h1 {
  /* Style for "Nosotros" */
  color: #015c68;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 2.2rem;
  text-transform: uppercase;
  margin-top: 0rem;
  letter-spacing: -0.12rem;
}

hr {
  width: 35px;
  height: 4px;
  background-color: #7fa84c;
  margin-bottom: 3rem;
}

#nosotros hr {
  margin-bottom: 2rem;
}

#nosotros p {
  color: #272727;
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8rem;
}

#nosotros ul {
  /* Style for "Trabajando" */
  color: #272727;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1rem;
  margin-left: 2rem;
  list-style: none;
  margin: 1.4rem 0 0;
}

#nosotros ul li {
  margin-bottom: 1.2rem;
  vertical-align: middle;
}

#nosotros ul li img {
  margin-right: 4px;
  vertical-align: bottom;
}

#fortalezas {
  background-color: #f5f5f5;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

#fortalezas h1 {
  margin-top: 1rem;
}

#fortalezas a {
  text-decoration: none;
  position: relative;
  width: 206px;
  height: 206px;
}

#fortalezas a .over {
  color: #272727;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
}

#fortalezas a:checked .over,
#fortalezas a:active .over,
#fortalezas a:focus .over,
#fortalezas a:hover .over {
  opacity: 1;
  visibility: visible;
}

#fortalezas a.agilidad {
  margin-top: 68px;
  margin-right: -10px;
}
#fortalezas a.flexibilidad {
  margin-top: 0px;
}
#fortalezas a.trayectoria {
  margin-top: 105px;
  margin-left: -15px;
}

#fortalezas a.agilidad .over {
  position: absolute;
  left: -110%;
  top: 40%;
  width: 100%;
}

#fortalezas a.flexibilidad .over {
  position: absolute;
  right: -105%;
  top: -15%;
  width: 120%;
}

#fortalezas a.trayectoria .over {
  position: absolute;
  right: -95%;
  bottom: -18%;
  width: 100%;
}

#que-hacemos {
  color: #015c68;
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 72px;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

#que-hacemos a h2 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

#que-hacemos a {
  text-decoration: none;
  max-height: 400px;
}

#que-hacemos a .bg {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
  padding: 1.2rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#que-hacemos ul {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  list-style-image: url("../images/flecha_que_hacemos.png");
  margin: 1rem auto 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
}

#que-hacemos ul li {
  margin-bottom: 1rem;
}

#que-hacemos a.active ul,
#que-hacemos a:active ul,
#que-hacemos a:focus ul,
#que-hacemos a:hover ul {
  opacity: 1;
  visibility: visible;
}

#que-hacemos .activaciones .bg {
  background-image: url("../images/rojo_imagen.png");
}

#que-hacemos .activaciones.active .bg,
#que-hacemos .activaciones:focus .bg,
#que-hacemos .activaciones:hover .bg {
  background-image: url("../images/rojo.png");
}

#que-hacemos .acciones .bg {
  background-image: url("../images/azul_imagen.png");
}

#que-hacemos .acciones:focus .bg,
#que-hacemos .acciones:hover .bg {
  background-image: url("../images/azul.png");
}

#que-hacemos .diseno .bg {
  background-image: url("../images/amarillo_imagen.png");
}

#que-hacemos .diseno:focus .bg,
#que-hacemos .diseno:hover .bg {
  background-image: url("../images/amarillo.png");
}

#que-hacemos .activaciones {
  display: inline-block;
}

#que-hacemos .activaciones img {
  display: inline-block;
}

#que-hacemos .activaciones img.over {
  display: none;
}

#que-hacemos .activaciones:focus img,
#que-hacemos .activaciones:hover img {
  display: none;
}

#que-hacemos .activaciones:focus img.over,
#que-hacemos .activaciones:hover img.over {
  display: inline-block;
}

#que-hacemos .acciones {
  display: inline-block;
}

#que-hacemos .acciones img {
  display: inline-block;
}

#que-hacemos .acciones img.over {
  display: none;
}

#que-hacemos .acciones:focus img,
#que-hacemos .acciones:hover img {
  display: none;
}

#que-hacemos .acciones:focus img.over,
#que-hacemos .acciones:hover img.over {
  display: inline-block;
}

#que-hacemos .diseno {
  display: inline-block;
}

#que-hacemos .diseno img {
  display: inline-block;
}

#que-hacemos .diseno img.over {
  display: none;
}

#que-hacemos .diseno:focus img,
#que-hacemos .diseno:hover img {
  display: none;
}

#que-hacemos .diseno:focus img.over,
#que-hacemos .diseno:hover img.over {
  display: inline-block;
}

#algunos-trabajos p {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: #010101;
  line-height: 2rem;
  text-transform: uppercase;
  padding: 0.2rem;
}

#algunos-trabajos .over {
  background-color: #ffffff;
  opacity: 0.5;
}

/* fluid 3 columns */
/*
.grid-sizer { width: 33.333%; }
.grid-item { 
  width: 30%; 
  display: block;
  overflow: hidden;
  padding: 7px;
}
.grid-item--width1 { width: 40%; }
.grid-item--width2 { width: 45%; }
*/
/*
.gal {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
}
.gal a {
  width: 100%;
  padding: 7px 0;
  text-decoration: none;
  position: relative;
  display: block;
  overflow: hidden;
}
*/

.grid-item {
  width: 160px;
}
.grid-item--width1 {
  width: 320px;
}
.grid-item--width2 {
  width: 320px;
}

.gal {
  margin: 0 auto 20px auto;
}

.gal a {
  padding: 7px;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.gal a img {
  width: 100%;
}

.gal a .over {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
}

.gal a .over p {
  font-size: 1rem;
  margin-bottom: -20px;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
.gal a img {
  transition: all 0.5s ease-in-out;
}

.gal a:focus .over,
.gal a:hover .over {
  opacity: 1;
  visibility: visible;
}

.gal a:focus img,
.gal a:hover img {
  transform: scale(1.2, 1.2);
}

.gal a:focus .over p,
.gal a:hover .over p {
  font-size: 2rem;
  margin-bottom: 0;
  opacity: 1;
}

#contacto {
  background-color: #b0d2d3;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

#contacto .mail {
  font-size: 1.5rem;
}

#contacto .mail a {
  color: #717171;
  text-decoration: none;
}

#contacto p {
  /* Style for "info@brati" */
  color: #717171;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5rem;
}

footer {
  color: #717171;
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 2rem;
  letter-spacing: -0.18px;
}

@media (max-width: 500px) {
  .gal {
    -webkit-column-count: 1; /* Chrome, Safari, Opera */
    -moz-column-count: 1; /* Firefox */
    column-count: 1;
  }
}

@media (max-width: 400px) {
  #que-hacemos ul {
    margin: 0.2rem auto 1rem !important;
    font-size: 1.1rem !important;
    line-height: 1.2rem !important;
    width: 96% !important;
  }
}
@media (max-width: 760px) AND (max-height: 500px) {
  #que-hacemos a h2 {
    margin: 0.2rem 0 0.2rem !important;
  }
  #que-hacemos ul {
    margin: 0 auto !important;
    width: 85% !important;
  }

  #que-hacemos ulli {
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
  }
}

@media (min-width: 200px) AND (max-width: 666px) {
  body header {
    padding: 0 !important;
  }

  .logo {
    margin-top: -80px;
  }

  .logo img {
    width: 408px;
  }

  h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  #nosotros p {
    font-size: 1.2rem;
    line-height: 1.4rem;
  }

  #nosotros ul {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-left: 1rem;
    list-style-image: url("../images/nosotros_fecha_2.png");
  }

  #nosotros ul li {
    margin-bottom: 0.8rem;
  }

  #nosotros ul li img {
    display: none;
  }

  #fortalezas a,
  #fortalezas img {
    width: 132px;
    height: 132px;
  }

  #fortalezas a.agilidad {
    margin-right: -12px;
  }

  #fortalezas a.trayectoria {
    margin-left: -32px;
  }

  #fortalezas a .over {
    display: none !important;
    visibility: hidden !important;
  }

  #que-hacemos a h2 {
    font-size: 1.4rem;
    line-height: 1.5rem;
    margin-bottom: 1.2rem;
  }

  #que-hacemos ul {
    margin: 0.6rem auto 1rem;
    font-size: 1.2rem;
    line-height: 1.4rem;
    width: 76%;
  }

  #algunos-trabajos p {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }

  #algunos-trabajos .gal a {
    position: relative;
  }

  #que-hacemos ul li {
    margin-bottom: 0.8rem;
  }

  footer {
    font-size: 0.75rem;
    line-height: 1.2rem;
  }

  .grid-item {
    width: 100%;
  }
  .grid-item--width1 {
    width: 100%;
  }
  .grid-item--width2 {
    width: 100%;
  }
}

@media (min-width: 667px) AND (max-width: 833px) {
  h1 {
    font-size: 2rem;
  }

  #nosotros p {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }

  #nosotros ul {
    font-size: 0.8rem;
    line-height: 1rem;
    list-style-image: url("../images/nosotros_fecha_2.png");
  }

  #nosotros ul li img {
    display: none;
  }

  #fortalezas a .over {
    display: none !important;
    visibility: hidden !important;
  }

  #algunos-trabajos p {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }
  #que-hacemos {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  #que-hacemos h1 {
    margin-top: 1rem;
  }

  #que-hacemos a .bg {
    padding: 0;
  }

  #que-hacemos a h2 {
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    line-height: 0.9rem;
  }

  #que-hacemos ul {
    font-size: 0.75rem;
    line-height: 0.8rem;
    padding: 0.2rem 1rem;
    list-style-image: url("../images/flecha_que_hacemos2.png");
    width: 80%;
    margin: 0 auto;
  }

  #que-hacemos ul li {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }
}

@media (min-width: 834px) AND (max-width: 1199px) {
  h1 {
    font-size: 2rem;
  }

  #nosotros p {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }

  #nosotros ul li img {
    display: none;
  }

  #fortalezas a .over {
    display: none !important;
    visibility: hidden !important;
  }

  #que-hacemos a h2 {
    font-size: 1rem;
    line-height: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
  }

  #que-hacemos ul {
    font-size: 1rem;
    line-height: 1.1rem;
    padding: 0.2rem 1.2rem;
    margin: 0.5rem auto 0.4rem;
    width: 86%;
  }

  #que-hacemos ul li {
    margin-bottom: 0.5rem;
  }

  #algunos-trabajos p {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }
  #que-hacemos {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  #que-hacemos h1 {
    margin-top: 1rem;
  }
}

@media (min-width: 1199px) AND (max-width: 1439px) {
  .grid-item {
    width: 320px;
  }
  .grid-item--width1 {
    width: 320px;
  }
  .grid-item--width2 {
    width: 480px;
  }

  #que-hacemos a h2 {
    font-size: 1.4rem;
    line-height: 1.2rem;
    margin-bottom: 2rem;
  }

  #que-hacemos ul {
    font-size: 1rem;
    line-height: 1rem;
    width: 92%;
  }
}

@media (min-width: 1440px) AND (max-width: 1599px) {
  .grid-item {
    width: 320px;
  }
  .grid-item--width1 {
    width: 640px;
  }
  .grid-item--width2 {
    width: 640px;
  }

  #que-hacemos a {
    min-height: 480px;
  }

  #contacto .img-fluid {
    margin-left: -100px;
  }

  .container-xl {
    max-width: 1366px;
  }
}

@media (min-width: 1600px) {
  .grid-item {
    width: 320px;
  }
  .grid-item--width1 {
    width: 640px;
  }
  .grid-item--width2 {
    width: 640px;
  }

  .container-xl {
    max-width: 1440px;
  }
  #que-hacemos a {
    min-height: 544px;
  }

  #contacto .img-fluid {
    margin-left: -100px;
  }
}
