* {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Alegreya Sans";
  scroll-behavior: smooth;
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

a {
  text-decoration: none;
}

h1, h2 {
  font-size: 2em;
  margin: 40px 10px 20px 10px;
  padding: 0;
}

#whatsapp {
  position: fixed;
  display: block;
  height: 40px;
  width: 40px;
  z-index: 20;
  right: 18px;
  bottom: 18px;
}

nav {
  position: fixed;
  height: 60px;
  width: 100%;
  z-index: 3;
  line-height: 60px;
  font-family: 'Alegreya Sans SC';
  font-size: 17px;
  font-weight: 400;
  -webkit-transition: all 0.5s; /* Safari */
  transition: all 0.5s;
}

nav a {
  color: rgba(248,248,248,0.9);
  display: flex;
  align-items: center;
  float: right;
  margin-right: 3%;
  letter-spacing: 1px;
}

nav a:last-child {
  float: left;
  margin-left: 5%;
  -webkit-filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin-top: 20px;
  -webkit-transition: all 0.5s; /* Safari */
  transition: all 0.5s;
}

nav a:hover {
  filter: drop-shadow(0px 0px 5px rgba(255, 215, 0, 1));
}

nav a:last-child:hover {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 1));
}

@media (min-width:1200px) {
  .grande {display: inline}
  .mediano {display: none}
  .chico {display: none}
}

@media (min-width:700px) and (max-width:1199px) {
  .grande {display: none}
  .mediano {display: inline}
  .chico {display: none}
}

@media (max-width:699px) {
  .grande {display: none}
  .mediano {display: none}
  .chico {display: inline}
}

.scrolled {
  background-color: rgba(0,0,0,0.75);
  height: 55px;
  line-height: 55px;
  z-index: 10;
}

.scrolled img, .scrolled a:last-child {
  transform: scale(0.81);
  -webkit-transform: scale(0.81);
  margin-top: 1px;
}


section {
  min-height: 100vh;
}

@media (max-height: 500px) {
  section {
    min-height: 800px
  }
}

#overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 1%, rgba(40, 40, 40, 0.5) 25%, rgba(10, 20, 60, 0.7) 75%);
  z-index: 2;
}



#header {
  background: url('../img/header.jpg') no-repeat;
  background-size: cover;
  z-index: 0;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#header p, #header a {
  z-index: 3;
}

#header p {
  color: rgba(248,248,248,0.9);
  margin-bottom: 40px;
  font-family: "Roboto Condensed";
  text-shadow: 0 2px 2px rgba(0,0,0,0.5);
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 1));
  width: 75%;
}

#header p:first-of-type {
  font-size: 1.4em;
}

#header p:last-of-type {
  font-size: 2.8em;
}

#header p span {
  color: #0080ff;
}

@media (max-width: 550px) {
  #header p {
    width: 90%;
  }

  #header p:first-of-type {
    font-size: 4.4vw;
  }

  #header p:last-of-type {
    font-size: 8vw;
  }
}

#header a {
  border-radius: 2px;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  padding: 8px 37px;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

#header a:hover, #header a:focus {
  background: white;
  color: #111;
  transition: all 0.5s;
}

#b2b, #office {
  background-image: linear-gradient(to right, #ffffff , #dfdfdf);
  padding: 35px 0 20px 0;
  text-align: center;
  color: #555;
}

#b2b {
  border-top: 1px solid #000000;
}

#b2b p, #office p {
  width: 90%;
  max-width: 920px;
  margin: 0 auto;
  font-size: 1.2em;
  font-weight: 500;
}

#b2b p:first-of-type {
  font-size: 1.25em;
  margin-bottom: 30px;
}

#b2b h2 {
  font-size: 1.75em;
  word-spacing: 0.1em;
}


.container {
  display: flex;
  flex-wrap: wrap;
}

#b2b .container {
  justify-content: center;
  align-items: center;
}

.box {
  border-radius: 15px;
  color: #ffffff;
  box-shadow: 0px 30px 40px -20px #a3a5ae;
  padding: 30px;
  margin: 20px;  
  max-width: 400px;
  height: 100%;
}

.box h2 {
  margin-top: 10px;
}

@media (max-width: 400px) {
  .box {
    padding: 30px 15px;
    margin: 20px 10px;
  }

  #b2b p:first-of-type {
    font-size: 1.1em;
  }
}

.box img {
  float: right;
}

.box p {
  text-align: justify;
}

#b2b .container div:nth-of-type(1) {
  border-top: 5px solid #1572ff;
  border-bottom: 5px solid #2a9dff;
  background-image: linear-gradient(to right, #1572ff , #2a9dff);
}

#b2b .container div:nth-of-type(2) {
  border-top: 5px solid #c5c5c5;
  border-bottom: 5px solid #969696;
  background-image: linear-gradient(to right, #c5c5c5 , #969696);
}

#b2b .container div:nth-of-type(3) {
  border-top: 5px solid #444444;
  border-bottom: 5px solid #666666;
  background-image: linear-gradient(to right, #444444 , #666666);
}

#b2b .container div:nth-of-type(4) {
  border-top: 5px solid #5599ff;
  border-bottom: 5px solid #2aa9ff;
  background-image: linear-gradient(to right, #5599ff , #2aa9ff);
}

#office .container {
  align-items: flex-start;
  justify-content: center;
}

#office img {
  height: 50vh;
  margin: 10px 40px;
}
/*
#office .container div:first-of-type {
  flex: 1 0 0;
  padding: 10px 20px;
  min-width: 140px;
  max-width: 180px;
}
*/
#office .container div:last-of-type {
  padding: 10px 20px;
  text-align: justify;
}



@media (min-width: 550px) {
  #office p {
  max-width: 420px;
  font-size: 1.5em;
  margin-left: 20px;
  margin-right: 20px;
  }
}

#about {
  background: url('../img/about-us.jpg') no-repeat;
  background-size: cover;
  color: #333;
}

#about div {
  padding: 50px 0 0 20px;
  border-top: 1px solid black;
}



#about h2, #about p {
  background-color: rgba(0,0,0,0.75);
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.5);
  color: #f8f8f8;
  margin-left: 20px;
}

#about h2 {
  width: max-content;
  font-size: 2.5em;
  font-weight: 500;
}

#about p {
  margin-top: 30px;
  width: 50%;
  font-size: 1.4em;
  text-align: justify;
}

@media (max-width:900px) {
  #about {
    background-position: center center;
  }

  #about h2 {
    margin: 80px auto 20px auto;
  }

  #about p {
    width: 85%;
    margin: 20px auto 0 auto;
    font-size: 1.3em;
  }

  #about div {
    padding: 0;
    margin: 0 auto;
  }

}


@media (max-width:600px) {

  #about h2 {
    font-size: 1.75em;
  }

  #about p {
    font-size: 1.1em;
  }


}

/* 231004

#about {
  background: url('../img/about-us.jpg') no-repeat;
  background-size: cover;
  color: #333;
}

#about div {
  padding: 50px 0 0 20px;
  border-top: 1px solid black;
}

#about h2 {
  margin: 40px 0 0 0;
}

#about h2, #about p {
  background-color: rgba(0,0,0,0.75);
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.5);
  color: #f8f8f8;
}

#about h2 {
  width: max-content;
  font-size: 2em;
  font-weight: 500;
}

#about p {
  margin-top: 30px;
  width: 50%;
  font-size: 1.25em;
  text-align: justify;
}

@media (max-width:900px) {
  #about {
    background-position: center center;
  }

  #about h2 {
    margin: 60px auto 10px auto;
  }

  #about p {
    width: 85%;
    margin: 20px auto 0 auto;
    font-size: 1em;
  }

  #about div {
    padding: 0;
    margin: 0 auto;
  }

}

*/

#contact {
  border-top: 1px solid #000000;
  background-image: linear-gradient(to right, #ffffff , #dfdfdf);
  color: #555;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  padding: 10px;
}

#contact p {
  margin: 15px auto 20px auto;
}

#formulario, #mapa {

  margin: 40px 0 20px 0;  
  padding: 20px;
  color: #555;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  font-weight: 500;
  min-width: 260px;
}

@media(max-width: 636px) {
  #mapa {
    margin-top: 0;
  }
}

#formulario {
  flex: 1 0 0;
}

#mapa {
  flex: 2 0 0;
}

#formulario h2, #mapa h2 {
  border-bottom: 1px solid #999;
  padding-bottom: 5px;
  height: 30px;
  display: flex;
  align-items: center;
  color: #555555;
  text-shadow: 0 2px 2px rgba(255,255,255,0.5);
  font-weight: 500;
  font-size: 1.75em;
}

#formulario h2 svg, #mapa h2 svg {
  margin-right: 7px;
}

#formulario > *, #mapa > * {
  margin: 10px 0;
}


#formulario ul {
  list-style: none;
  
  padding: 0;
  font-size: 0.85em;
  font-style: italic;
}



#formulario ul li {
  padding: 0 5px;
  margin: 0 20px 0 0;
  margin-bottom: 8px;
}

#formulario ul li:last-child {

}

@media (min-width:1400px) {

}

#formulario input {
  max-width: 250px;
}

#formulario a, #gracias a {
  color: #5280e9;
  font-weight: 700;
}



#formulario a:hover, #gracias a:hover {
  color: #3BA3FF;
}

#formulario label {
  margin:0 0 3px 2px;
  padding:0px;
  display:block;
  color: #333;
}

#formulario input, #formulario textarea {
  display: block;
  width: 100%;
  height: 20px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #6f6f6f;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #cccccc;
  border-radius: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

#formulario input:focus, #formulario textarea:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

#formulario textarea {

  width: 100%;
  height: 200px;
}

#captcha {
  border: 1px dashed #666;
  width: 240px;
  margin: 8px auto 12px auto;
  padding: 4px;
  display: flex;
  height: 68px;
  flex-flow: column wrap;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  
}


#incorrecto {
  background-color: #ff0000;
  color: #ffffff;
  padding: 8px 0;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 5px;
  border: 2px solid #990000;
  display: none;
  margin-bottom: 10px;
  
}

#captchaimg {
  border: 1px solid #999;
}

#captcha * {
  width: 100px;
   
  margin: 3px;
  
}

#captcha label {
  width: max-content;
  margin: 4px;
  padding:0px;
  display:block;
  color: #333;
  font-size: 14px;
  font-style: italic;
  line-height: 14px;
}

#captcha input {
  
  width: 90px;
  height: 10px;
  text-align: center;
}



#mapa p {
  text-align: justify;
}

#leaflet {
  height: 500px;
  border: 1px solid #333;
  z-index: 5;
}

#formulario button {
  padding: 4px 8px;
}

footer {
  height: 50px;
  background-color: #333;
  text-align: center;
  color: rgba(248,248,248,0.9);;
  line-height: 50px;
}

#thankyou {
  width: 100%;
  text-align: center;
  padding-top: 35vh;
  min-height: 65vh;
}

#thankyou-titulo {
  font-size: 1.8em;
  font-weight: 500;
}

#thankyou-subtitulo {
    font-size: 1.2em;
    margin: 20px 0 40px 0;
}

#thankyou-btn {
  border-radius: 2px;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  padding: 8px 37px;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.75);
  color: #333;
}

#thankyou-btn:hover,#thankyou-btn:focus {
  background: #333;
  color: #fff;
  transition: all 0.5s;
}

@media (max-width: 400px) {

    #formulario, #mapa {

      min-width: 200px;

    }


    #formulario ul li:last-child {
      
      min-width: 200px;
    }

}