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

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

html {
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  background: #eee;
  margin: 0;
}

header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

a {
  text-decoration: none;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

p {
  color: black;
  font-size: 1.4rem;
  /* font-family: Helvetica, Arial, sans-serif; */
  margin-top: 5px;
  line-height: 2.5rem;
  font-weight: 300;
  letter-spacing: .05rem;
}

.section-title {
  font-size: 3.7rem;
  font-weight: 250;
  color: black;
  /* margin-top: 150px; */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .2rem;
  text-align: center;

  transform-origin: right;
}

.industria {
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.836);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .2rem;
  text-align: center;

  transform-origin: right;
}

.section-title span {
  color: #b31722;
}
 
/*header*/

/*end header*/
.main-nav {
  width: 100%;
  height: 7rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.none {
  display: none;
}

.block {
  display: block;
}

.logo {
  border-radius: 5px;
  /* background: #eee; */
  width: 180px;
  height: 90px;

}

.logo img {
  margin-left: -35px;
  width: 120%;
  /*height: 90%;*/
  height: 120%;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.sticky+.content {
  padding-top: 60px;
}

.desktop-nav {
  width: 100%;
  height: 30px !important;
  display: flex;
  justify-content: end;
  align-items: center;
}

.desktop-nav .ancla {
  padding: 0 15px;
}

.desktop-nav .cta-btn {
  margin-top: 0;
}

.hamburger-menu {
  display: none;
  height: 5rem;
  width: 5rem;
  background-color: #eee;
  border-radius: .4rem;
  box-shadow:
    .5rem .5rem 1rem #cacaca,
    -.5rem -.5rem 1rem #fff;
  cursor: pointer;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  z-index: 2000;

}

.hamburger-menu:hover {
  box-shadow: inset .5rem .5rem 1rem #cacaca,
    inset -.5rem -.5rem 1rem #fff;
  ;
}

.bar {
  width: 3rem;
  height: 2px;
  background-color: #333;
  display: inline-block;
  position: relative;
}

.bar::before,
.bar::after {
  content: "";
  position: absolute;
  width: inherit;
  height: inherit;
  background-color: #333;
  transition: all .5s;
}

.bar::before {
  top: -.8rem;
}

.bar::after {
  top: .8rem;
}

.open .bar {
  background-color: transparent;
}

.open .bar::before {
  top: 0;
  transform: rotate(135deg);
}

.open .bar::after {
  top: 0;
  transform: rotate(-135deg);
}

.nav-list {
  display: none;
  width: 25rem;
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #eee;
  transform: translateX(55rem);
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -.5rem 0 1rem rgba(0, 0, 0, .1);
  z-index: 1500;
  transition: transform .5s;
}

.open .nav-list {
  transform: translateX(0);
}

.nav-item {
  margin-bottom: 60px;
  list-style: none;
  border-bottom: 2px solid #b31722;

}

.nav-link {
  text-decoration: none;
  display: block;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .5rem;
}

.nav-link:hover {
  color: #b31722;
}

.hero {
  width: 100%;
  height: 100vh;
  /*background: url("/assets/img/empresa-portada.jpg") center no-repeat;*/
  background: url("/assets/img/hero-anuncio-portal.png") center no-repeat;
  background-size: cover;  
  position: relative;

}

.hero::after {
  content: '';
  position: absolute;
  width: inherit;
  height: inherit;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-clipped {
  width: 60%;
  height: inherit;
  background-color: #eee;
  position: absolute;
  top: 0;
  right: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: right;
  z-index: 10;

}

.hero-textbox {
  /*width: 100%;*/
  width: 55%;
  position: absolute;
  top: 60%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-family: sans-serif;
  /*text-transform: uppercase;*/
  text-align: left;
  line-height: 1.5;
  color: #333;
  padding: 1rem;
  z-index: 20;
  max-width: 800px;

}

.main-heading {
  font-size: 3.7rem;
  font-weight: 900;
  /*letter-spacing: .5rem;*/
}

.sub-heading {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .2rem;
}

.cta-btn {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: #fff;
  background-color: #b31722;
  padding: 1rem 2rem;
  margin-top: 5rem;
  border-radius: .4rem;
  box-shadow: 3px 3px 1rem rgba(0, 0, 0, .3);
  position: relative;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  z-index: -1;
}

.cta-btn:hover::after {
  transform: scaleX(1.2) scaleY(1.6);
  opacity: 0;
  transition: all .5s;

}

::selection {
  color: #fff;
  background: #ff7979;
}

.wrapper {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  position: relative;
}

.wrapper .center-line {
  position: absolute;
  height: 100%;
  width: 4px;
  background: #b31722;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}

.wrapper .row {
  display: flex;
}

.wrapper .row-1 {
  justify-content: flex-start;


}

.box-1 {
  transform: translateX(-1000px);
}

.box-2 {
  transform: translateX(1000px);
}

.box-3 {
  transform: translateX(-1000px);
}

.box-4 {
  transform: translateX(1000px);
}

/* .btn-access{
      transform: translateX(1000px);  
      } */
.wrapper .row-2 {
  justify-content: flex-end;
}

.wrapper .row section {
  background: #fff;
  border-radius: 5px;
  width: calc(50% - 40px);
  padding: 20px;
  position: relative;
}

.wrapper .row section::before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  background: #fff;
  top: 28px;
  z-index: -1;
  transform: rotate(45deg);
}

.row-1 section::before {
  right: -7px;
}

.row-2 section::before {
  left: -7px;
}

.row section .icon,
.center-line .scroll-icon {
  position: absolute;
  background: #eee;
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #b31722;
  font-size: 17px;
  box-shadow: 0 0 0 4px #b31722, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.center-line .scroll-icon {
  bottom: 0px;
  left: 50%;
  font-size: 25px;
  transform: translateX(-50%);
}

.row-1 section .icon {
  top: 15px;
  right: -60px;
}

.row-2 section .icon {
  top: 15px;
  left: -60px;
}

.row section .details,
.row section .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.row section .details .title {
  font-size: 22px;
  font-weight: 600;
  padding: 0 15px;
  margin-top: 10px;
}

.row section p {
  margin: 10px 0 17px 0;
  padding: 0 15px;
  text-align: justify;
}

.row section .calidad-img {
  width: 162px;
  height: 80px;
  float: right;
}

.row section .mision-img {
  width: 100px;
  height: 90px;
  float: right;

}

/*servicios*/
.grid-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 0fr);
  grid-gap: 40px;
  padding-left: 30px;
  justify-content: center;
}

.grid-item {
  height: 275px;
  width: 320px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 30px;

}

.grid-item:hover {
  background: rgb(255, 255, 255);
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(231, 231, 231, 1) 100%);
}

.grid-item .item-line {
  bottom: 0;
  margin-left: 10%;
  width: 80%;
  height: 2px;
  background: #b31722;
}

.item-number {
  margin-left: 10px;

  color: #717171a4;
}

.item-title img {
  margin-left: 29px;
  margin-top: 13px;
  margin-bottom: -30px;
  /* position: absolute; */
  width: 250px;
  height: 190px;
}

.info-servicio {
  padding: 10px;
  color: #717171;
  font-size: .7em;
  text-align: end;
  margin-right: 20px;
  /* float: right; */
}

.icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.icon-detail {
  width: 100px;
  height: 100px;
}

.item-text {
  margin-top: 20%;
  padding: 30px;
  text-align: justify;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  /* Stay in place */
  z-index: 11;
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  overflow-y: hidden;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  z-index: 11;
  margin: auto;
  padding: 20px 40px 40px 40px;
  border: 1px solid #888;
  width: 50%;
  text-align: justify;
  overflow: auto;
}

.modal-content p {
  padding: 40px;
}

.modal-content .item-img {
  padding: 0 40px;
  margin-top: 20px;
}

.modal-content .item-img .img-logo {
  background: #fdfdfd;
  position: absolute;
  z-index: 1;
  margin-left: -135px;
  width: 140px;
  height: 90px;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 0;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#services,
#about,
#contact {
  padding-top: 100px;
}

.container {
  margin: 0 auto;
  width: 70%;
  max-height: 750px;
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  vertical-align: middle;
  max-height: 500px;
}

.slide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.logo-servicio {
  position: absolute;
  top: 0;
  right: 0;
}

.logo-servicio img {
  width: 200px;
}

.text-servicio {
  padding: 8px 12px;
  position: absolute;
  font-size: 20px;
  font-weight: 600;
  color: #b31722;
  text-align: center;
  top: 0;
  right: 0;

}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

/*image text over*/
.content {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  /* Fallback color */
  background: rgba(0, 0, 0, 0.5);
  /* Black background with 0.5 opacity */
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
}

.content p {
  color: #f1f1f1;

}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}




.cliente-img {
  width: 180px;
  height: 160px;
  display: inline-block;
  margin: 0 24.7px;
  /* float: left; */
  transition: all .2s ease-out;
}

/* .cliente-img:hover {
  transform: scale(1.2);
  opacity: .5;
} */
.marquee {
  --gap: 1rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee--inner {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

#contact .box {
  position: relative;

  justify-content: center;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 3.5fr 2.5fr;
  grid-template-areas:
    "form map"
    "form info";
  grid-gap: 30px;

}

#contact .contacto {
  max-width: 1300px;
  justify-content: center;
  margin: 0 auto;
}

#contact .contact {
  padding: 40px;
  max-block-size: 775px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

#contact .contact.form {
  max-width: 800px;
}

#contact .contact h3 {
  color: #b31722;
  /* font-weight: 800; */
  font-size: 2.5em;
  margin-bottom: 7px
}

#contact .form {
  grid-area: form;
}

#contact .info {
  grid-area: info;
}

#contact .map {
  grid-area: map;
}

#contact .formBox {
  position: relative;
  width: 100%;
}

#contact .formBox .row50 {
  display: flex;
  gap: 20px;
}

#contact .inputBox {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  width: 50%;

}

.leaflet-control-attribution {
  display: none;
}

#contact .formBox .row100 .inputBox {
  width: 100%;
}

#contact .inputBox span {
  color: #b31722;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 1.5em;
  text-align: left;
}

#contact .inputBox input {
  padding: 10px;
  font-size: 1.5em;
  outline: none;
  border: 1px solid #333;
  border-radius: 5px;

}

#contact .inputBox textarea {
  padding: 10px;
  font-size: 1.1em;
  outline: none;
  border: 1px solid #333;
  resize: none;
  min-height: 190px;
  margin-bottom: 10px;
}

#contact .inputBox input[type="submit"] {
  background: #b31722;
  color: #fff;
  border: none;
  font-size: 1.5em;
  max-width: 120px;
  font-weight: 750;
  cursor: pointer;
  padding: 14px 15px;
}

#contact .inputBox ::placeholder {
  color: #ccc;
}

#contact .info {
  background: #b31722;
  max-height: 300px
}

#contact .info h3 {
  color: #fff;
  font-size: 2em;
}

#contact .info .infoBox div {
  display: flex;
  align-items: center;
}

#contact .info .infoBox div span {
  min-width: 30px;
  height: 30px;
  color: #fff;
  background: #FF4848;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  border-radius: 50%;
  margin-right: 15px;
  margin-bottom: 10px;
}

#contact .info .infoBox div p {
  color: #fff;
  font-size: 1.7em;
}

#contact .info .infoBox div a {
  color: #fff;
  text-decoration: none;
  font-size: 1.7em;
}

#contact .sci {
  display: flex;
  margin-top: 15px;
  text-align: center;
  justify-content: center;
}

#contact .sci li {
  list-style: none;
  margin-right: 15px;
}

#contact .sci li a {
  font-size: 2em;
  color: #ccc;
}

#contact .sci li a:hover {
  color: #fff;
}

#footer {
  background: #b31722;
  height: 80px;
  width: 100%;
  text-align: center;
}

#footer .line {
  width: 50%;
  height: 2px;
  background-color: #fff;
  display: inline-block;
  position: relative;
  margin: 20px;
}

#footer .copy-text h3 {
  color: #fff;
  font-weight: 650;
  margin-bottom: 10px;
}

.gracias-img {
  margin-top: 300px;
  text-align: center;
  font-size: large;
}

.gracias-img h3 {
  margin-top: 10px;
  font-weight: 500;
  font-style: italic;
}

@media screen and (max-width:1920px) {
  #contact .contact.form {
    max-height: 910px;
  }
}

@media screen and (max-width:1300px) {
  .hero-clipped {
    width: 100%;
    height: 65vh;
    bottom: 0;
    top: 35vh;
    clip-path: polygon(0 10%, 0 0, 200% 100%, 0 100%);
  }

  .logo a {
    color: #333;
    outline-color: #333;
  }

  .grid-container {
    grid-template-columns: repeat(3, 0fr)
  }

  .hero-textbox {
    top: 65%;
  }

  .modal-content {
    width: 60%;
    overflow: auto;
  }

}

@media(max-width:991px) {
  .hero {
    width: 100%;
    height: 100vh;
    background: url("/assets/img/segunda-foto.jpg") center no-repeat;
    background-size: cover;
    position: relative;

  }

  .hero-textbox {
    top: 70%;
  }

  .modal-content {
    padding: 10px;
    width: 50%;
  }

  #contact .box {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "form"
      "info"
      "map";
  }

  #contact .map {
    min-width: 300px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 0fr);
  }

  #about .container {
    display: block;
    gap: 40px;

  }

  #about .col-right {
    margin-top: 30px
  }
}

@media(max-width: 790px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-list {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .wrapper .center-line {
    left: 40px;
  }

  .wrapper .row {
    margin: 30px 0 3px 60px;
  }

  .wrapper .row section {
    width: 100%;
  }

  .row-1 section::before {
    left: -7px;
  }

  .row-1 section .icon {
    left: -60px;
  }

  .modal-content {
    width: 70%;
  }

  .modal-content .item-img .img-logo {
    margin-left: -100px;
    width: 100px;
  }
}

@media (max-width:760px) {
  .nav-list {
    width: 30rem;
  }

  .hero-textbox {
    width: 70%;
  }

  .main-heading {
    font-size: 3rem;
  }

  .sub-heading {
    font-size: 1.2rem;
  }

  .cta-btn {
    padding: 1rem 2.5rem;
  }

  #contact .formBox .row50 {
    display: flex;
    gap: 0;
    flex-direction: column;
  }

  #contact .inputBox {
    width: 100%
  }
}

@media(max-width:660px) {
  .grid-container {
    grid-template-columns: repeat(1, 0fr)
  }

  .item-title img {
    margin-left: 50px;
    width: 200px;
    height: 150px;
  }

  .grid-item {
    height: 250px;
    width: 300px;

  }

  .hero-textbox {
    width: 90%;
    top: 75%;
  }
}

@media(max-width:550px) {
  .grid-item {

    width: 300px;
  }

  .cliente-img {
    width: 100px;
    height: 50px;
  }

  .logo img {
    width: 180px;
    height: 100px;
  }

  .main-heading {
    font-size: 2.5rem;
  }

  .sub-heading {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .industria {
    font-size: 2rem;
  }

  .cta-btn {
    margin-top: 10px;
  }

  .slide {
    height: 80vh;
    width: 100vw;
  }

  .slides img {
    width: 100px;
  }

  .container {
    width: 100%;
  }

  .modal-content {
    width: 80%;
  }

  .modal-content .item-img .img-logo {
    margin-left: -90px;
    width: 90px;
    height: 70px;
  }
}

@media(max-width: 440px) {

  .wrapper .center-line,
  .row section::before,
  .row section .icon {
    display: none;
  }

  .wrapper .row {
    margin: 10px 0;
  }

  .grid-container {
    margin-top: 20px;
    padding-left: 10px;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
  }

  .modal-content .item-img .img-logo {
    margin-left: -70px;
    width: 70px;
    height: 50px;
  }

  .hero-textbox {
    top: 65%;
    width: 100%;
  }
}
  @media only screen and (max-width: 300px) {

    .prev,
    .next,
    .text {
      font-size: 11px
    }
  }

  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    font-size: 1.30rem;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-50px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #3e9b0f;
}

.toast.info {
    background-color: #2196F3;
}

.toast.error {
    background-color: #f44336;
}