/*
    Theme Name: AyG Ingenieros
    Theme URI:
    Author: Ariel Enrique Cabrera Vivanco
    Description: Theme Diseñado para AyG Ingenieros
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: AyG, ingenieros, mantenciones, molinos, mineria
    Text Domain: aygingenieros
*/

@font-face {
  font-family: "Roboto-400";
  src: url(assets/fonts/Roboto-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Roboto-500";
  src: url(assets/fonts/Roboto-Medium.ttf);
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Roboto-700";
  src: url(assets/fonts/Roboto-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Roboto-900";
  src: url(assets/fonts/Roboto-Black.ttf);
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Kanit-300";
  src: url(assets/fonts/Kanit-Light.ttf);
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Kanit-400";
  src: url(assets/fonts/Kanit-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Kanit-500";
  src: url(assets/fonts/Kanit-Medium.ttf);
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Kanit-600";
  src: url(assets/fonts/Kanit-SemiBold.ttf);
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Kanit-700";
  src: url(assets/fonts/Kanit-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-white: #fff;
  --color-text-body: #333333;
  --color-title: #666666;
  --color-link: #136689;
  --primary-color: #ea0002;
  --secondary-color: #0085bf;
  --secondary-color-hover: #006591;
  --pink-color: #f08f8a;
  --cream-color: #f7f0ec;
  --background-section: #dfdfdf;
  --background-accordion: #006591;
  --background-balsan: #21212d;
  --font-kanit-300: "Kanit-300";
  --font-kanit-400: "Kanit-400";
  --font-kanit-500: "Kanit-500";
  --font-kanit-600: "Kanit-600";
  --font-kanit-700: "Kanit-700";
}

/* Globales */
/* ------------------------------- */
body,
html {
  min-height: 100%;
  height: 100%;
}

body {
  font-family: var(--font-kanit-300);
  color: var(--color-text-body);
  position: relative;
}

body > div:first-of-type {
  min-height: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-title);
  font-family: var(--font-kanit-400);
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-kanit-600);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

.icon-130x {
  width: 130px;
  height: auto;
}

@media (max-width: 769px) {
  body.overflow-hidden-mobile {
    overflow: hidden;
  }
}

/* Header, Barra Navegación, Logo y Menú */
/* -------------------------------- */
.barra-navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  border-bottom: 1px solid #ededed;
}

.logo img {
  width: 150px;
  height: auto;
  transition: width 0.25s ease;
}

.barra-navegacion.scroll {
  background-color: rgba(255, 255, 255, 1);
}

.barra-navegacion.scroll img {
  width: 80px;
}

.menu-header ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  margin-bottom: 0;
}

.menu-header ul li a {
  text-transform: uppercase;
  font-family: var(--font-kanit-400);
  font-size: 16px;
  line-height: 16px;
  position: relative;
}

.menu-header ul li a::after {
  content: " ";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-link);
  position: absolute;
  bottom: 0;
  transition: transform 0.25s ease;
  transform: scaleX(0);
}

.menu-header ul li:not(.current-menu-item) a:hover::after {
  transform: scaleX(1);
}

.menu-header ul li.current-menu-item a::after {
  transform: scaleX(1);
}

.burger {
  position: relative;
  width: 28px;
  height: 19px;
}

.burger span {
  position: absolute;
  display: block;
  width: 28px;
  height: 3px;
  background-color: #696158;
  transition: transform 0.4s ease 0s;
}

.burger span:first-of-type {
  top: 0;
}

.burger span:first-of-type + span {
  top: 8px;
}

.burger span:last-of-type {
  bottom: 0;
}

.activeBurger span:first-of-type {
  opacity: 0;
  transform: rotate(135deg) translate(5px, -6px);
  transition: transform 0.4s, opacity 0.4s;
}

.activeBurger span:nth-child(2) {
  transform: rotate(135deg);
  transition: transform 0.4s;
}

.activeBurger span:last-of-type {
  transform: rotate(225deg) translate(5px, 5px);
  transition: transform 0.4s;
}

@media (max-width: 769px) {
  .logo img {
    width: 80px;
  }

  .menu-mobile-wrapper {
    position: fixed;
    top: 73px;
    z-index: 99999999;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    transition: all 0.3s ease-out;
    transform: translateX(-100%);
  }

  .menu-mobile-wrapper.show {
    transform: translateX(0%);
  }

  .menu-mobile-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-mobile-wrapper ul li {
    border-bottom: 1px solid #e9e9e9;
  }

  .menu-mobile-wrapper ul li a {
    font-size: 20px;
    padding: 8px 0;
    display: inline-block;
  }
}

/* Hero Banner */
/* ------------------------------- */
.hero-banner .hbupro-hero-banner-wrp-1 .hbupro-hero-banner h2.hbupro-hero-banner-title {
  font-family: var(--font-kanit-400);
  font-size: 32px !important;
  text-transform: uppercase;
  text-shadow: rgba(0, 0, 0, 0.75) 7px 7px 10px;
  margin-bottom: 32px !important;
}

.hero-banner .hbupro-hero-banner-wrp-1 .hbupro-hero-banner .hbupro-hero-banner-sub-title {
  font-family: var(--font-kanit-600);
  font-size: 40px !important;
  line-height: 40px !important;
  text-transform: uppercase;
  text-shadow: rgba(0, 0, 0, 0.75) 7px 7px 10px;
}

.hero-banner .hbupro-hero-banner-wrp-1 .hbupro-hero-banner-inner-wrap {
  max-width: 1320px;
  width: 100%;
}

@media (max-width: 769px) {
  .hero-banner .hbupro-hero-banner-wrp-1 .hbupro-hero-banner h2.hbupro-hero-banner-title {
    font-family: var(--font-kanit-400);
    font-size: 24px !important;
    margin-bottom: 18px !important;
  }

  .hero-banner .hbupro-hero-banner-wrp-1 .hbupro-hero-banner .hbupro-hero-banner-sub-title {
    font-family: var(--font-kanit-600);
    font-size: 24px !important;
    line-height: 28px !important;
  }

  .hbupro-hero-banner-wrp-1 .hbupro-hero-banner-inner {
    padding: 150px 0px !important;
  }
}

/* Home Page */
/* --------------------------- */
.content h1,
.content h2 {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.content h1::after,
.content h2::after {
  content: " ";
  width: 50px;
  display: block;
  margin: 0 auto;
  padding-top: 16px;
  border-bottom: 2px solid var(--primary-color);
}

.box-servicio {
  display: block;
  flex: 1;
  position: relative;
}

.box-servicio img {
  display: block;
  object-fit: cover;
  min-width: 100%;
  margin-bottom: 0;
  filter: brightness(75%);
}

.box-servicio h3 {
  font-family: var(--font-kanit-500);
  font-size: 24px;
  color: var(--color-title);
  margin-bottom: 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  padding: 0 16px;
  color: var(--color-white);
  text-shadow: rgba(0, 0, 0, 0.75) 7px 7px 10px;
}

.home-alianza {
  background-color: var(--background-balsan);
}

.home-alianza h2 {
  color: var(--color-white);
  text-align: center;
}

.home-alianza > div > div > div,
.home-alianza > div > div > p {
  width: 40%;
}

.home-alianza > div > div > div > img {
  width: 100%;
  height: auto;
}

.home-alianza > div > div > p {
  color: var(--color-white);
  margin-bottom: 0;
}

@media (max-width: 769px) {
  .box-servicio p {
    font-size: 18px;
  }

  .home-alianza > div > div > div,
  .home-alianza > div > div > p {
    width: auto;
  }

  .home-alianza > div > div > p {
    text-align: center;
  }
}

/* Páginas internas  */
/* ------------------------ */
.banner-pages {
  height: 350px;
  overflow: hidden;
  position: relative;
  margin-bottom: 48px;
  background-size: cover;
}

.banner-pages h1 {
  margin-top: 123px;
  z-index: 2;
  color: var(--color-white);
  text-shadow: rgba(0, 0, 0, 0.75) 7px 7px 10px;
}

@media (max-width: 769px) {
  .banner-pages {
    height: 180px;
  }

  .banner-pages h1 {
    margin-top: 73px;
    font-size: 20px;
    text-align: center;
  }

  .content p {
    text-align: center;
  }
}

/* Nuestros Servicios */
/* ------------------------ */
.tab-servicio {
  border-top: 1px solid #ea0002;
  flex: 1;
}

.tab-servicio:last-of-type {
  border-bottom: 1px solid #ea0002;
}

.tab-servicio h3 {
  color: #006591;
  font-size: 20px;
  text-align: center;
}

.accordion h5 {
  border-left: 2px solid var(--primary-color);
  padding-left: 8px;
}

.accordion h2::after {
  content: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--background-accordion);
  color: var(--color-white);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' style='fill:white' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


/* Formulario de contacto */
/* ------------------------ */
.wpcf7-form label {
  display: block;
  font-family: var(--font-kanit-400);
  font-size: 18px;
  color: var(--color-title);
}

.wpcf7-form label br {
  display: none;
}

.wpcf7-form label span {
  display: block;
}

.wpcf7-form .form-control {
  font-family: var(--font-kanit-300);
  font-size: 14px;
}

.wpcf7-form .form-control:focus {
  box-shadow: 0 0 0 0.1rem #efefef;
  border-color: #c9c9c9;
  outline: none;
}

.wpcf7-form .wpcf7-not-valid-tip {
  font-family: var(--font-kanit-300);
  font-size: 14px;
}

.wpcf7-form .wpcf7-submit {
  background-color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  font-family: var(--font-kanit-400);
  text-transform: uppercase;
  padding: 8px 16px;
}

.wpcf7-form .wpcf7-submit:focus,
.wpcf7-form .wpcf7-submit:hover {
  box-shadow: 0 0 0.15rem 0.15rem #dfdfdf;
  outline: none;
  background-color: var(--secondary-color-hover);
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: #46b450;
  padding: 8px 8px;
  line-height: 1;
  margin: 0;
  background-color: #ebffed;
  border-width: 1px;
  border-radius: 5px;
  font-size: 14px;
}

/* Footer */
/* ------------------------ */
footer {
  background-color: var(--secondary-color);
  color: var(--color-white);
}

footer svg path {
  fill: var(--color-white);
}

footer .copyright p {
  font-size: 14px;
}

footer .copyright::before {
  content: " ";
  display: block;
  width: 50px;
  border-bottom: 2px solid var(--color-white);
  margin-bottom: 8px;
}
