/*
Theme Name: BigHearts Child
Author: WebGeniusLab
Author URI: http://webgeniuslab.net
Description: -
Version: 1.0
Template: bighearts
Text Domain: bighearts-child
*/

body.page {
  --e-border-radius: 10px;
  background: url("img/bg.jpg") repeat;
}

.wgl-site-header {
  max-width: 1200px;
  margin: auto;
}

.footer {
  font-size: 14px;
  line-height: 18px;
}

.wgl-infobox_button.button-read-more,
.home-header-cta a {
  --e-border-radius: 13px;
  border-radius: var(--e-border-radius);
  background-color: var(--e-global-color-primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  min-width: 140px;
  text-align: center;
  text-decoration: none;

  &::before,
  &::after {
    display: none;
  }

  &:hover {
    color: #fff;
  }

  span,
  span:hover {
    border: 0;
    color: #fff;
  }
}

.wgl-gallery .wgl-gallery_image {
  aspect-ratio: 1;
  object-fit: cover;
}

@media only screen and (min-width: 988px) {
  header.wgl-theme-header .wgl-mobile-header {
    display: none !important;
  }

  .wgl-site-header,
  .wgl-theme-header .primary-nav {
    display: block !important;
  }

  .elementor-9863 .elementor-element.elementor-element-623bf1b {
    --spacer-size: 265px;
  }
}

@media only screen and (min-width: 988px) and (max-width: 1200px) {
  .page-responsables,
  .page-certificacion,
  .page-formacion,
  .page-herramientas,
  .page-descargables,
  .page-contacto {
    header > :not(.wgl-mobile-header) nav.primary-nav > ul > li > a {
      padding-left: 8px;
      padding-right: 8px;
    }
  }
}

/* Home */
.home {
  @media only screen and (min-width: 988px) and (max-width: 1200px) {
    .wgl-site-header {
      width: calc(960px + 30px);
    }
  }

  .home-header-cta {
    padding-top: 20px;

    &::before,
    &::after {
      display: none;
    }

    a {
      font-family: "Fira Sans", Sans-serif;
      font-weight: 700;
    }
  }

  .elementor-widget-wgl-info-box .wgl-infobox {
    .wgl-layout-left {
      border-radius: var(--e-border-radius);
      box-shadow: 0px 10px 20px 0px #00000026;
      flex-direction: column;
      overflow: hidden;
      padding: 15px;
    }

    .img-wrapper {
      width: 100%;
    }

    .wgl-infobox_content {
      line-height: 20px;
      margin-bottom: 10px;
      flex-grow: 1;
    }

    .wgl-layout-left .content_wrapper {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-content: space-between;
    }

    .wgl-infobox-button_wrapper {
      text-align: right;
    }
  }

  .elementor-widget-wgl-info-box .wgl-infobox h3.wgl-infobox_title {
    line-height: 1.2;
    color: var(--e-global-color-text);
  }

  .wgl-image-box_img {
    img {
      aspect-ratio: var(--wp--preset--aspect-ratio--4-3);
      border-radius: var(--e-border-radius);
    }
  }

  .elementor-element-71f5824 .elementor-icon {
    font-size: 75px;
  }

  @media (min-width: 1024px) {
    .elementor-widget-wgl-info-box .wgl-infobox {
      .wgl-layout-left {
        flex-direction: row;
      }

      .img-wrapper {
        width: 55%;
      }

      .content_wrapper {
        width: calc(45% - 10px);
        padding-left: 10px;
      }
    }

    .elementor-9863 .elementor-element.elementor-element-40e22b2 {
      height: 100vh;
      max-height: 780px;
    }
  }
}

/* Responsables */
.page-responsables {
  .header-responsables {
    .elementor-widget-image {
      width: 100%;
    }
  }

  .elementor-widget-wgl-info-box .wgl-infobox {
    .wgl-infobox_title {
      color: var(--e-global-color-primary);
    }

    .wgl-infobox_content {
      line-height: 1.2;

      p {
        margin-bottom: 5px;
      }
    }

    .wgl-layout-left {
      margin: 10px 0;

      .content_wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }

      .wgl-infobox_title {
        margin: 0 8px 0 0;
        line-height: 1.2;
      }
    }
  }
}

@media (min-width: 768px) {
  .page-responsables {
    .elementor-widget-wgl-info-box .wgl-infobox {
      .wgl-layout-left {
        .content_wrapper {
          flex-direction: row;
          align-items: center;
        }
      }
    }
  }
}

@media (min-width: 1024px) {
  .page-responsables {
    .header-responsables {
      .elementor-widget-image {
        width: auto;
      }

      .elementor-element.e-con-full {
        --margin-left: 50px;
      }
    }

    .elementor-widget-wgl-info-box .wgl-infobox {
      .wgl-infobox_title,
      .wgl-infobox_content {
        font-size: 22px;
      }
    }
  }
}

/* Certificacion */
.page-certificacion {
  #main {
    padding-top: 0;
  }

  .header-certificacion {
    margin-bottom: 50px;

    .elementor-widget-image img {
      /* height: 190px; */
      height: 110px;
      margin-top: 90px;
      width: auto;
    }
  }

  .elementor-element-bda28da {
    background-position-x: center;
  }

  .elementor-element-af121fd {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .page-certificacion {
    .header-certificacion {
      .elementor-widget-image img {
        height: 190px;
        margin-top: 0;
      }
    }

    .elementor-9707 .elementor-element.elementor-element-ccb6f20 {
      line-height: 1.4;
    }

    .e-con-full.e-flex {
      padding-bottom: 20%;
    }
  }
}

/* Formación */
.page-formacion {
  .wgl-infobox {
    border-radius: var(--e-border-radius);
    box-shadow: 0px 10px 20px 0px #00000026;
    flex-direction: column;
    height: 100%;
    padding: 15px;

    .wgl-layout-top {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .wgl-infobox_content {
      line-height: 20px;
      margin-bottom: 10px;
      flex-grow: 1;
    }

    .content_wrapper {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-content: space-around;
    }

    .wgl-infobox-button_wrapper {
      text-align: right;
    }
  }

  .elementor-widget-wgl-info-box .wgl-infobox .wgl-infobox_title {
    line-height: 1.2;
    color: var(--e-global-color-primary);
  }

  .wgl-image-box_img {
    span {
      display: block;
    }

    img {
      aspect-ratio: var(--wp--preset--aspect-ratio--4-3);
      border-radius: var(--e-border-radius);
    }
  }
}

@media (min-width: 768px) {
  .page-formacion {
    .header-formacion {
      font-size: 18px;

      .e-con-inner {
        align-items: center;
      }
    }
  }
}

@media (min-width: 1024px) {
  .page-formacion {
    .title-formacion .elementor-heading-title {
      font-size: 24px;
      line-height: 1.5;
    }

    .header-formacion {
      font-size: 20px;
      line-height: 1.4;
      margin: 40px 0;

      .elementor-widget-image {
        max-width: 926px;
        width: 130%;
      }

      .elementor-element-72f9050 {
        padding: 0 45px;
        width: 85%;
      }
    }
  }
}

/* Herramientas */
.page-herramientas {
  h2.elementor-heading-title {
    font-size: xx-large;
  }

  /* .elementor-element-8f2db57 h2 > br:nth-child(1) {
    display: none;
  } */

  .elementor-element-e51c3e2 > .elementor-widget-container {
    display: flex;
    align-items: center;
  }

  .grid-documentos {
    .wgl-infobox_content {
      line-height: 20px;
    }

    .elementor-element.elementor-view-stacked .icon-wrapper .elementor-icon {
      font-size: 17px;
      padding: 14px;
    }

    .wgl-infobox-button_wrapper {
      text-align: right;
    }
  }

  .terms-grid {
    .wgl-infobox {
      text-align: center;

      .wgl-infobox_content {
        text-align: left;
      }
    }

    .elementor-icon {
      font-size: 115px;
    }
  }
}

@media (min-width: 768px) {
  .page-herramientas {
    .elementor-element-8f2db57 > .elementor-widget-container {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .terms-grid {
      & > .e-con-inner {
        align-items: start;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;

        & > .elementor-widget {
          max-width: 313px;
        }
      }
    }
  }
}

/* Descargables */
.page-descargables {
  .wgl-layout-left .content_wrapper {
    line-height: 1.25;

    .wgl-infobox_content {
      margin-bottom: 10px;
    }
  }

  .elementor-icon {
    font-size: 20px;
    margin-right: 15px !important;
  }

  .wgl-infobox_button.button-read-more {
    padding: 5px 0;
  }
}

@media (min-width: 768px) {
  .page-descargables {
    .wgl-layout-left .content_wrapper {
      display: flex;
      align-items: center;

      .wgl-infobox_content {
        margin-bottom: 0;
        flex-grow: 1;
      }
    }
  }
}

/* Contacto */
.page-contacto {
  .wpcf7-form .hide {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .elementor-element-f70d5ae {
    padding: 20px 20px 20px 20px;
    background-color: #ffffff;
    border-radius: 26px 26px 26px 26px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  }

  .wpcf7-form input,
  .wpcf7-form textarea {
    text-transform: uppercase;
  }
}

@media (min-width: 768px) {
  .page-contacto {
    .e-con.e-con
      > .e-con-inner
      > .elementor-widget
      .elementor-widget-container {
      display: flex;
      align-items: center;
    }

    .e-con.e-con > .e-con-inner > .elementor-widget-image {
      width: 50%;
      margin-right: 25px;
    }
  }
}
