:root {
  --main-bg-color: rgb(40, 40, 40);
  --secondary-bg-color: rgb(223, 223, 223);
  --contrast-bg-color: white;
  --test-color: #d9d5d5;
}

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

.hidden {
  display: none;
}

.fadeIn {
  display: inherit;
  animation: 0.8s fadeIn forwards;
}

.button {
  padding: 12px 15px;
  border: 1px solid grey;
  border-radius: 10px;
  box-shadow: 2px 4px 1px;
  cursor: pointer;
}

body {
  font-family: "Raleway", sans-serif;
}

/* Menu hamburguesa */

.icon-container {
  position: absolute;
  display: none;
  z-index: 3;
  right: 0;
}
.toggle-icon {
  position: fixed;
  font-size: 10px;
  margin: 3vh auto 0 0.2em;
  transition: 600ms;
  cursor: pointer;
  left: 83%;
  /* left: calc(100% - 4.8em); */
}
.toggle-icon .bar {
  display: block;
  width: 3.8em;
  height: 0.2em;
  margin: 0.9em;
  border-right: 3.8em solid #fff;
  /* border-left: 0.6em solid #d6d6d6; */
  box-sizing: border-box;
  transition-property: transform, margin, border-right-color, box-shadow;
  transition-duration: 600ms;
}
.toggle-icon .bar:nth-of-type(1) {
  transition: opacity 300ms;
}
.toggle-icon .bar:nth-of-type(2) {
  transform: rotate(-180deg);
}
.pushed .toggle-icon {
  margin: 0.2em 0 0 0.7em;
}
.pushed .bar:nth-of-type(1) {
  opacity: 0;
}
.pushed .bar:nth-of-type(2) {
  margin-left: 1.4em;
  transform: rotate(-137deg) translateY(-1.5em);
}
.pushed .bar:nth-of-type(3) {
  margin-left: 0.5em;
  transform: rotate(-42deg);
}

.backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: 1s all;
  position: fixed;
  z-index: 2;
  height: 100vh;
  width: 100vw;
  top: 0;
  right: 0;
  position: absolute;
}

/* Menú */

.header {
  height: 12vh;
  position: fixed;
  width: 100%;
  /* background-color: var(--test-color); */
  background-color: #d8d8d8;
  z-index: 1;
  box-shadow: 0 0 5px grey;
}

.header-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-logo {
  height: 12vh;
}

.menu-logo img {
  height: 95%;
}

.menu ul {
  display: flex;
  list-style: none;
}

.menu a {
  text-decoration: none;
  margin: 0 15px;
  opacity: .85;
  color: black;
}

.line {
  height: 1px;
  width: 100%;
  background-color: grey;
  /* box-shadow: 2px 2px 5px grey; */
}

/* Home */

.home {
  width: 80%;
  height: 100vh;
  margin: 0 auto;
  padding: 18vh 0;
}

.home-image-container {
  display: flex;
  position: relative;
  justify-content: center;
}

.home-image {
  position: relative;
  width: 50%;
  height: 470px;
  background-image: url(images/backgroung-home.webp);
  background-size: cover;
}

.home-description {
  background-color: black;
  width: 40%;
}

.home-description p {
  color: white;
  font-size: 28px;
  width: 70%;
  margin: 0 auto;
  margin-top: 160px;
}



/* About */

.about-section {
  /* width: 80%; */
  margin: 0 auto;
  text-align: center;
  padding: 14vh 0 24vh;
  background-color: var(--main-bg-color);
  color: white;
}

.about-section h3 {
  margin-bottom: 70px;
  font-size: 25px;
}

.about-info {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.about-card {
  width: 30%;
  border: 1px solid white;
  background-color: var(--test-color);
  color: black;
  padding: 7px 10px;
  box-shadow: 5px 5px 3px grey;
}

.about-card h4 {
  margin: 5px 0;
}

.about-mision {
  padding-bottom: 15px;
}

.about-vision {
  transform: translateY(25px);
}

.about-valores {
  transform: translateY(50px);
}

/* Services */

.services-section {
  /* width: 50%; */
  margin: 0 auto;
  /* padding: 14vh 0 5vh; */
  padding: 14vh 0 3vh;
  text-align: center;
  background-color: var(--test-color);
}

.services-section h3 {
  margin-bottom: 70px;
  font-size: 25px;
}

.services {
  width: 55%;
  margin: 0 auto;
}

.ovens {
  width: 55%;
  margin: 0 auto;
}

.service {
  margin-bottom: 25px;
  border: 1px solid grey;
  padding: 15px 10px 25px;
  border-radius: 10px;
  background-color: rgb(236 237 242);
}

.oven {
  margin-bottom: 25px;
  border: 1px solid grey;
  padding: 15px 10px 25px;
  border-radius: 10px;
  background-color: rgb(236 237 242);
}

.service h4, .oven h4 {
  font-size: 18px;
}

.service p {
  /* margin: 5px 0 10px; Versión anterior */
}

.electric-services {
  background-color: white;
  padding: 60px;
  margin-top: 50px;
}

.oven-services {
  /* background-color: white; */
  padding: 60px;
  margin-top: 50px;
}

.service-container {
  margin: 0 auto;
  width: 80%;
  display: flex;
  justify-content: space-between;
}

.electric-services h4, .oven-services h4 {
  font-size: 20px;
}

.electric-services p, .oven-services p {
  margin: 25px 0 20px;
}

.left-side-service {
  width: 50%;
  text-align: start;
}

.left-side-service ul {
  /* width: 50%; */
  padding-left: 30px;
}

.button-service-container {
  display: flex;
  justify-content: center;
}

.services-button {
  /* padding: 8px; */
  padding: 8px 10px;
  box-shadow: 1px 2px 1px;
  /* border-radius: 15px; */
  margin-top: 30px;
}

.service-image {
  width: 35%;
}

.service-image img {
  width: 100%;
}

.button-desktop {
  display: flex;
  text-decoration: none;
}

.button-mobile {
  display: none;
  text-decoration: none;
}


/* Old services */

.service-images {
  display: flex;
  max-height: 250px;
  margin-top: 8px;
}

.oven-images {
  display: flex;
  max-height: 250px;
  margin-top: 8px;
}

.service-images figure {
  /* width: 50%; */
  display: flex;
  justify-content: center;
}

.oven-images figure {
  /* width: 50%; */
  display: flex;
  justify-content: center;
}

.first-service figure img, .second-service figure img, .eighth-service figure img {
  max-width: 50%;
}

.first-oven figure img, .second-oven figure img, .third-oven figure img, .sixth-oven figure img, .seventh-oven figure img, .eighth-oven figure img {
  max-width: 50%;
}

.fourth-service figure, .fifth-service figure, .sixth-service figure{
  width: 100%;
}

.fourth-oven figure, .fifth-oven figure, .eighth-oven figure{
  width: 100%;
}

.seventh-service figure {
  margin: 0 auto;
  width: 33%;
}

.service img {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.oven img {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.right-service-images {
  display: flex;
  flex-direction: column;
}

.right-service-images img {
  height: 50%;
}

/* Clients */

.client-section {
  width: 80%;
  margin: 0 auto;
  text-align: center;
  padding: 14vh 0 10vh;
}

.client-section h3 {
  margin-bottom: 30px;
  font-size: 25px;
}

.clients {
  /* display: grid; */
  /* grid-template-columns: repeat(5, 1fr); */
  /* grid-gap: 15px 20px; */
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 360px;
  position: relative;
}

.logo-client img {
  width: 100%;
  margin-bottom: 20px;
}

.group-clients {
  display: flex;
  width: 100%;
  justify-content: center;
  position: absolute;
  /* width: 100%; */
  opacity: 1;
  will-change: transform, opacity;
  animation: carousel-animate-vertical 21s linear infinite;
}

.group-clients:nth-child(1) {
  animation-delay: calc(7s * -1);
}

/* .group-clients:nth-child(1) .client{
  display: flex;
  flex-direction: column;
  justify-content: center;
} */

.group-clients:nth-child(1) img {
  height: 130px;
  /* width: 70%; */
}

.group-clients:nth-child(2) {
  animation-delay: calc(7s * 0);
}

.group-clients:nth-child(2) img {
  /* height: 130px; */
  /* width: 70%; */
  margin-top: 50px;
}

.group-clients:last-child {
  animation-delay: calc(-7s * 2);
}
.group-clients:last-child img {
  margin-top: 40px;
  height: 120px;
  width: auto;
  max-width: 100%;
}

.client {
  min-width: 29%;
  margin: 0 2%;
}

/* Contact */

.contact-section {
  width: 100%;
  /* text-align: center; */
  padding: 15vh 0 10vh;
  background-color: var(--main-bg-color);
  color: white;
}

.contact-container {
  width: 50%;
  margin: 0 auto;
}

.contact-section h3 {
  text-align: center;
  font-size: 25px;
}

.contact-tel {
  text-align: center;
  margin: 20px auto 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-tel p {
  margin: 2px 0;
}

.contact-section .form {
  display: flex;
  flex-direction: column;
}

.contact-section label{
  margin: 10px 0 3px 3px;
}

.contact-section input, .contact-section textarea{
  padding: 7px 5px;
  border: 1px solid grey;
  border-radius: 4px;
  background-color: var(--test-color);
}

.contact-section button {
  font-size: 14px;
  margin-top: 10px;
  padding: 6px 3px;
  cursor: pointer;
  border: 1px solid grey;
  border-radius: 7px;
  background-color: var(--test-color);
}

.button-up-container {
  position: fixed;
  bottom: 3%;
  right: 1%;
  border: 1px solid black;
  border-radius: 5px;
  width: 40px;
  height: 40px;
  background-color: var(--test-color);
  display: none;
  transition: .15s all;
}

.button-up {
  width: 40px;
  height: 40px;
  background-image: url(images/arrow-up.svg);
  background-size: cover;
  cursor: pointer;
  transform: rotate(45deg);
  transition: .25s all;
  color: white;
  /* background-color: black; */
}

.button-up-container:hover {
  transform: rotate(0deg);
  scale: 1.1;
  /* box-shadow: 3px 3px 3px white; */
  /* border-color: white; */
}

.button-up-container:hover, .button-up:hover {
  transform: rotate(0deg);
}


/* Footer */

footer {
  height: 10vh;
  box-shadow: 4px 0 4px grey;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  /* background-color: var(--test-color); */
  background-color: #d8d8d8;
}


/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes toRight {
  from {
    transform: translateX(200%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes carousel-animate-vertical {
  0% {
    transform: translateX(100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }
  3%, 33.3333333333% {
    transform: translateX(100%) scale(0.7);
    opacity: 0.4;
    visibility: hidden;
  }
  36.3333333333%, 66.6666666667% {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
  }
  69.6666666667%, 100% {
    transform: translateX(-100%) scale(0.7);
    opacity: 0.4;
    visibility: hidden;
  }
  103% {
    transform: translateX(-100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }
  /* 100% {
    transform: translateX(-100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  } */
}

@media screen and (max-width: 768px) {
  .icon-container {
    display: flex;
  }
  .backdrop-container {
    /* height: 100vh;
    width: 100vw;
    top: 0;
    right: 0;
    position: absolute; */
  }
  /* menu */
  .header-container {
    /* justify-content: center; */
  }
  .menu {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100vh;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60%;
    background: rgba(0, 0, 0, .9);
    animation: 1s toRight both;

  }
  .menu ul {
    flex-direction: column;
  }
  .menu li {
    margin: 20px 0;
  }
  .menu a {
    margin: 20px 0;
    color: white;
    font-size: 18px;
  }
  /* home */
  .home {
    width: 95%;
  }

  .home-image {
    width: 100%;
  }

  .home-description {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: rgba(0, 0, 0, .9);
  }

  .home-description p {
    text-align: center;
    font-size: 26px;
}

  /* about */
  .about-info {
    width: 97%;
  }

  /* Services */
  .services {
    width: 80%;
  }

  .service-container {
    width: 100%;
  }

  .service-image {
    width: 40%;
  }


  .electric-services, .oven-services {
    padding: 60px 30px;
  }

  /* Clients */
  .client-section {
    width: 95%;
  }

  /* Contact */
  .contact-container {
    width: 75%;
  }
}

@media screen and (max-width: 425px) {
  /* home */
  .home {
    width: 100%;
    padding-top: 23vh;
  }
  .home-image-container {
    /* flex-direction: column; */
  }
  .home-image {
    /* width: 55%; */
    width: 100%;
    max-width: 425px;
    height: 38vh;
    /* transform: translateY(50%); */
    background-image: url(images/backgroung-home_60.webp);
  }
  .home-description {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    /* width: 100%; */
    /* transform: translateY(-38vh); */
    background: rgba(0, 0, 0, .9)
  }

  .home-description p {
    margin: 40% auto;
    width: 100%;
    text-align: center;
    font-size: 23px;
}

  /* about */
  .about-info {
    width: 100%;
    align-items: center;
    flex-direction: column;
  }

  .about-card {
    width: 90%;
  }

  /* Services */
  .service-container {
    display: block;
  }

  .left-side-service {
    width: 100%;
  }

  .service-image {
    width: 80%;
    margin: 30px auto 10px;
  }

  .button-desktop {
    display: none;
  }

  .button-mobile {
    display: flex;
  }

  .services {
    width: 95%;
  }

  /* Clients */
  .client-section {
    width: 100%;
  }

  /* Contact */
  .contact-container {
    width: 80%;
  }
}

.visible {
  display: flex;
}