/*
 Autor: Angel Salvador
 @angelsalvadormx
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
}

h1 {
  font-size: 3.75em;
  text-transform: uppercase;
  letter-spacing: -0.075rem;
}

.form-contact input,
.form-contact textarea {
  border: none;
  border-radius: 3px !important;
  margin-top: 20px !important;
}

.form-contact textarea {
  resize: none;
  font: 400 13.3333px Arial;
  padding: 15px;
  margin-bottom: 20px;
}

.form-contact input {
  height: 39px;
  padding: 5px;
  padding: 15px;
}

.form-contact button {
  padding: 14px 40px;
  background-color: #242d2e;
  border-color: #efefef;
}

.form-contact button:hover {
  color: #242d2e;
}

.form-contact .btn-send {
  border-color: #FFF;
}

.form-contact h2 {
  font-size: 30px !important;
}

#banner .layer {

  background-color: rgba(0,0,0,.3);
}

#home main p {
  font-size: 1.25em;
}

.header-sections {
  font-family: Oswald, sans-serif !important;
  font-size: 35px;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
}

.layer-green {
  background: linear-gradient(to top, rgba(43, 50, 94, 0.2), rgba(43, 50, 94, 0.2));
}

/*display*/
.d-grid {
  display: grid;
}

.d-inline {
  display: inline;
}

#home {
  height: 635px;
}


#portfolio {
  padding-top: 80px;
  padding-bottom: 100px;
}

/*top header*/


#logo {
  background-image: url('../images/logo/cercas_electricas.png');
  height: 95px;
  width: 115px;
  top: -34px;
}


.social-media {
  background-color: #1d2425;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.social-media i {
  font-size: 18px;
  margin-right: 12px;
}

.social-media li span {
  font-size: 13px;
}

.contact-info {
  width: 20%;
  left: 66%;
}

/*header*/
#header {
  height: 80px;
}

/*home*/
#banner {
  min-height: 600px !important;
}

.home-info {
  padding: 4em;
}

.home-info>article {
  top: 26%;
  left: 9%;
}

.home-info>form {
  width: 355px;
  margin-left: 22%;
  padding: 20px;
}





form>input {
  height: 30px;
}

/*about us*/
.aside-about-us {
  background-color: #242d2e !important;
  height: 80%;
  right: 5%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 60px 49px 60px 52px;
}

.aside-about-us h2 {
  text-transform: uppercase;
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-family: Oswald, sans-serif !important;
  padding-bottom: 40px !important;
}

.aside-about-us main {
  line-height: 1.6;
  color: #647072;
  font-family: Roboto;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
}

.aside-about-us main p {
  margin-bottom: 20px;
}

#about-us {
  height: 1000px;
}

/*services*/
#our-services {
  padding-top: 80px;
  padding-bottom: 100px;
}

.bolt::before,
.bolt::after {
  top: 50%;
  transform: translateY(-50%);
  content: '';
  width: 160px;
  height: 2px;
  background-color: #d9d9d9;
  position: absolute;
  display: block;
}

.bolt::before {
  right: 50%;
}

.bolt::after {
  left: 50%;
}

.bolt>i {
  font-size: 27px;
  width: 35px;
  height: 35px;
  padding: 5px;
  color: #be2b0b;
}

.services>article {
  height: 600px;
  margin: 0 25px 25px;
  border-radius: 6px;
  overflow: hidden;
  width: 400px;
}

.services>article>h2 {
  bottom: 85px;
}

.alarm {
  background-position: center;
}

/*portafolio*/
.portfolio-img .item-portfolio {
  width: 300px;
  height: 250px;
  margin: 10px;
  border-radius: 4px;
}

/*img transicion*/
#img-transicion {
  height: 400px;
}

.background-image {
  background-attachment: fixed;
  display: block;
  background-position: top;
}

/*footer*/

footer>main {
  padding: 50px 0;
}

.social-media-footer {
  height: 50px;
}

#footer-content {
  width: 600px;
}

footer .title,
footer h2 {
  font-family: Oswald, sans-serif !important;
  font-size: 35px;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

footer .title {
  width: 500px;
  line-height: 1.5;
  text-transform: uppercase;
  margin-top: 20px;
}


/*colors*/

.txt-nevada {
  color: #647072;
}

.txt-mine-shaft {
  color: #232323;
}

.bg-outer-space {
  background-color: #242d2e;
}

.bg-gallery {
  background-color: #efefef
}

.bg-mine-shaft {
  background-color: #242d2e;
}

.bg-white {
  background-color: white;
}

.bg-wild-sand {
  background-color: #f5f5f5;
}

.bg-yellow {
  background-color: #ffb609;
}

.hover-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  opacity: 0;
  background: #242d2e;
  padding: 30px;
  -webkit-transition: opacity .5s;
  -moz-transition: opacity .5s;
  -o-transition: opacity .5s;
  transition: opacity .5s;
}

.hover-wrap:hover {
  opacity: 1;
}

.hover-outer {
  position: relative;
  width: 100%;
  height: 100%;
}

.hover-outer::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
  border-top: solid 1px #fff;
  border-bottom: solid 1px #fff;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -ms-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  -webkit-transform: scale(0, 1);
  -moz-transform: scale(0, 1);
  -o-transform: scale(0, 1);
  -ms-transform: scale(0, 1);
  transform: scale(0, 1);
}

.hover-outer::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
  border-left: solid 1px #fff;
  border-right: solid 1px #fff;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -ms-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  -webkit-transform: scale(1, 0);
  -moz-transform: scale(1, 0);
  -o-transform: scale(1, 0);
  -ms-transform: scale(1, 0);
  transform: scale(1, 0);
}

.hover-wrap:active .hover-outer:before,
.hover-wrap:active .hover-outer::after,
.hover-wrap:hover .hover-outer:before,
.hover-wrap:hover .hover-outer:after {
  -webkit-transform: scale(1);
  -moz-transform: scale(1, 1);
  -o-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  transform: scale(1, 1);
}

.content-expand {
  font-size: 25px;
  color: #FFF;
  top: 44px;
  position: relative;
  transition: all .5s;
  opacity: 0;
}

.hover-wrap:hover .content-expand {
  top: 4px;
  opacity: 1;
}


/*img gallery lightbox*/
#background {
  background-color: rgba(0, 0, 0, .8);
  top: 0;
  left: 0;
}

.active {
  display: block !important;
  z-index: 4;
}

.img-back {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#close {
  font-size: 30px;
  color: #000; 
  cursor: pointer;
  right: -30px;
  top: -30px;
  width: 30px;
  height: 30px;
  background-color: #FFF;
  border-radius: 50%;
}