:root {
  --color1: rgb(219, 144, .5);
  /* --color1: rgb(8, 23, 71); */
  --color2: rgba(23, 180, 83, .0788);
  --color3: rgba(11, 194, 211, .623);
  --fondo: #f2f2f2;
  --titulos: 33px;
  --margenes: 60px;
  --espacios: 10px;
  --espacios-contenido: 45px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'open sans';
  background: var(--fondo);
}

img {
  vertical-align: top;
}

/*Preloader*/
.hidden {
  overflow: hidden;
}

.centrado {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;

}

.lds-ripple {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #cef;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: -1px;
    left: -1px;
    width: 58px;
    height: 58px;
    opacity: 0;
  }
}

/* Header*/
header {
    width: 100%;
    height: 600px;
    background: linear-gradient(to bottom,
    rgba(211, 135, 20, .6),
    rgba(29, 241, 171, .6),
    rgba(7, 109, 150, .45)), url(../images/rawpixel-620227-unsplash.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

nav {
  width: 100%;
  position: fixed;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
}

.nav1 {
    line-height:90px;
    text-align:center;
    background: transparent;
    height: 80px;
    color: #fff;
}

.nav2 {
    line-height: 90px;
    text-align: center;
    background: var(--fondo);
    height: 100px;
    color: #000;
}

.contenedor-nav {
  display: flex;
  margin: auto;
  width: 90%;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  height: inherit;
  overflow: hidden;
}

nav .enlaces a {
  display: inline-block;
  padding: 5px 0;
  margin-right: 17px;
  font-size: 17px;
  font-weight: 300;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  color: inherit;
}

nav .enlaces a:hover {
  border-bottom: 3px solid #1498a4;
  transition: 0.6s;
}

.logo,
.logo img {
  height: 80px;
}

.icono {
  display: none;
  font-size: 24px;
  padding: 23.5px 20px;
}

.textos {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.textos>h1 {
  font-size: 50px;
}

.textos>h2 {
  font-size: 30px;
  font-weight: 300;
}

.contenedor {
  margin: auto;
  padding: var(--margenes) 0;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  overflow: hidden;
}

.contenedor h3 {
  font-size: var(--titulos);
  color: var(--color1);
  margin-bottom: var(--espacios);
}

.contenedor h4 {
    font-size: 20px;
    color: var(--color1);
    margin-bottom: var(--espacios);
}


.contenedor p {
  font-size: var(--subtitulos);
  font-weight: 300;
  color: var(--color1);
}

.after::after {
  content: '';
  display: block;
  margin: auto;
  margin-top: var(--espacios);
  width: 100px;
  height: 2px;
  background: var(--color1);
  margin-bottom: var(--espacios-contenido);
}

.card {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.content-card {
  width: 31%;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
  overflow: hidden;
  height: 400px;
}

.people {
  height: 80%;
}

.content-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texto-team {
  height: 20%;
  width: 100%;
  padding: var(--espacios) 0;
}

.texto-team p {
    max-width: 600px;
    margin: 20px auto;
    font-size: 15px;
    font-weight: 300;
}

.about {
  background: url(../images/rawpixel-585633-unsplash.jpg);
  height: auto;
}

.servicios {
  display: flex;
  color: #fff;
  justify-content: space-between;
  margin: auto;
  flex-wrap: wrap;
}

.caja-servicios {
  width: 20%;
  margin: auto;
  margin-bottom: var(--espacios);
}

.caja-servicios img {
  width: 40%;
  height: 40%;
  object-fit: cover;

}

.caja-servicios>h4 {
  margin-bottom: var(--espacios);
}

.caja-servicios>p {
  text-align: center;
}

.botones-work {
  overflow: hidden;
}

.botones-work li {
  display: inline-block;
  text-align: center;
  margin-left: var(--espacios);
  margin-bottom: var(--espacios-contenido);
  padding: 6px 12px;
  border: 1px solid var(--color1);
  list-style: none;
  color: var(--color1);
}

.botones-work li:hover {
  background: var(--color1);
  color: #fff;
  cursor: pointer;
}

.botones-work .active {
  background: var(--color1);
  color: #fff;
}

.galeria-work {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}


.cont-work {
  width: 31%;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
  height: 300px;
  overflow: hidden;
  margin-bottom: var(--espacios-contenido);
}

.img-work {
  height: 90%;
  width: 100%;
}

.img-work img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.textos-work {
  height: 10%;
}

.textos-work h4 {
  line-height: 30px;
  font-weight: 300;
}

/* Footer*/
footer {
  background: url(../images/rawpixel-620227-unsplash.jpg);  
}

.marca-logo {
  width: 15%;
  margin: auto;
  margin-bottom: var(--espacios);
}

.marca-logo img {
  width: 100%;
}

.iconos {
  display: flex;
  margin: auto;
  justify-content: space-around;
  width: 100%;
}

.fab {
  font-size: 60px;
  color: #fff;
  margin-bottom: var(--espacios);
  display: inline-block;
}

footer p {
  margin-top: var(--espacios);
}

.flex{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*.textos{
    padding:300px;
    color: #fff;
    text-align: center;
}

h1{
    font-size: 40PX;
    margin-bottom:20px;
}

a{
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    padding: 10px;
    width: 220px;
    border: 1px solid #fff;
    border-radius: 10px;
    color: #fff;
}

a:hover{ background: #000; color: #fff; border: 1px solid #000;}*/

/*Ventana modal*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    overflow: auto;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.452);
}


.contenido-modal {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    width: 30%;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.4);
    animation-name: modal;
    animation-duration: 1s;
}

@keyframes modal{
    from{top:-300px; opacity:0;}
    to{top: 0; opacity: 1;}

}

.close{
    color: #f2f2f2;
    font-size: 30px;
    font-weight: bold;
}

.close:hover{
    color: #7f8c8d;
    text-decoration: none;
    cursor: pointer;
}

.modal-header, .footer-modal{
    padding: 8px 16px;
    background: #34495e;
    color: #f2f2f2;
}

/*p{
    text-align: justify;
}*/

.modal-body{
    padding: 20px 16px;
}



@media screen and (max-width: 700px) {
  .nav2 {
    color: #fff;
  }

  .icono {
    display: block;
    cursor: pointer;
  }

  .enlaces {
    position: fixed;
    top: 80px;
    background: #2c3e50;
    left: 0;
    height: 100%;
    transition: 1s;
    width: 0;
    overflow: hidden;
  }

  .enlaces a {
    display: block;
    width: 100%;
    height: 50px;
    padding: 20px;
    text-align: center;
    background: #34495e;
    color: #fff;
  }

  .textos>h1 {
    font-size: 40px;
  }

  .textos>h2 {
    font-size: 35px;
  }

  .content-card {
    width: 48%;
    margin-bottom: var(--margenes);
  }

  .caja-servicios {
    width: 48%;
    margin-bottom: var(--margenes);
  }

  .cont-work {
    width: 48%;
    margin-bottom: var(--margenes);
  }

  :root {
    --margenes: 30px;

  }

  /*Ventana modal*/
  .contenido-modal{
      width: 70%;
  }
  .textos{
      padding: 150px;
  }
}

@media screen and (max-width: 500px) {
  :root {
    --espacios-contenido: 25px;
  }

  .content-card {
    width: 90%;
  }

  .caja-servicios {
    width: 90%;
    margin-bottom: var(--margenes);
  }

  .cont-work {
    width: 85%;
  }

  .marca-logo {
    width: 80%;
  }

  .iconos {
    margin: auto;
  }

  .textos>h1 {
    font-size: 30px;
  }

  /*Ventana modal*/
  .textos {
    padding: 50px;
  }
}