:root {
  --mallas-graphite: #242428;
  --mallas-graphite-soft: #3c3c42;
  --mallas-wine: #86152a;
  --mallas-wine-dark: #68101f;
  --mallas-paper: #f5f5f3;
  --mallas-line: #dededd;
}

.mallas-index-preview {
  background: #fff;
  color: var(--mallas-graphite);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

.mallas-index-preview h1,
.mallas-index-preview h2,
.mallas-index-preview h3,
.mallas-index-preview h4,
.mallas-index-preview h5,
.mallas-index-preview h6,
.mallas-index-preview p,
.mallas-index-preview a,
.mallas-index-preview button,
.mallas-index-preview .btn {
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-shadow: none;
}

.mallas-index-preview .nav-normal {
  border-bottom: 1px solid rgba(36, 36, 40, 0.08);
}

.mallas-hero {
  position: relative;
  display: flex;
  min-height: 440px;
  height: clamp(440px, calc(100vh - 210px), 500px);
  align-items: center;
  overflow: hidden;
  background-image: url("../img/preview/mallas-hero-index.jpg");
  background-position: center;
  background-size: cover;
}

.product-electrificados .mallas-hero {
  background-image: url("../img/bg/cerca-electrica-real.webp");
  background-position: center 56%;
}

.product-rejas .mallas-hero {
  background-image: url("../img/bg/proceso-instalacion.webp");
  background-position: center;
}

.product-vial .mallas-hero {
  background-image: url("../img/avatar/30.webp");
  background-position: center;
}

.mallas-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 23, 0.76);
}

.mallas-hero__content {
  position: relative;
  z-index: 1;
  border-left: 4px solid var(--mallas-wine);
  padding-left: 26px;
  color: #fff;
}

.mallas-kicker {
  margin: 0 0 12px;
  color: var(--mallas-wine);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mallas-hero .mallas-kicker,
.mallas-cta .mallas-kicker {
  color: #fff;
}

.mallas-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-graphite-wine.mallas-index-preview .mallas-hero__lead {
  max-width: 610px;
  margin: 18px 0 0;
  color: #fff !important;
  font-size: 18px;
  line-height: 28px;
}

.mallas-hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.mallas-index-preview .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  transform: none;
  text-rendering: auto;
}

.mallas-index-preview .btn-light {
  border: 1px solid #fff;
  background: #fff;
  color: var(--mallas-graphite);
}

.mallas-index-preview .btn-wine {
  border: 1px solid var(--mallas-wine);
  background: var(--mallas-wine);
  color: #fff;
}

.mallas-index-preview .btn-wine:hover,
.mallas-index-preview .btn-wine:focus {
  border-color: var(--mallas-wine-dark);
  background: var(--mallas-wine-dark);
  color: #fff;
  opacity: 1;
}

.mallas-trust {
  background: var(--mallas-graphite);
  color: #fff;
}

.mallas-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mallas-trust__grid::before,
.mallas-trust__grid::after,
.mallas-index-preview .product-grid::before,
.mallas-index-preview .product-grid::after {
  display: none;
  content: none;
}

.mallas-trust__grid > div {
  min-height: 92px;
  padding: 20px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.mallas-trust__grid > div:first-child {
  padding-left: 0;
}

.mallas-trust__grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.mallas-trust strong,
.mallas-trust span {
  display: block;
}

.mallas-trust strong {
  margin-bottom: 5px;
  font-size: 16px;
  text-transform: uppercase;
}

.mallas-trust span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 20px;
}

.mallas-index-preview #wrapper {
  padding: 60px 0 32px;
}

.mallas-index-preview #wrapper > .container > .row:first-child,
.mallas-index-preview #wrapper > .container > .row:nth-child(2) {
  display: none;
}

.mallas-index-preview #wrapper > .container > p[align="right"] {
  display: none;
}

.mallas-index-preview .product-grid {
  padding-bottom: 30px;
}

.mallas-section-heading {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  margin: 0 15px 24px;
  padding-left: 22px;
}

.mallas-section-heading::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  background: var(--mallas-wine);
  content: "";
}

.mallas-section-heading h2 {
  max-width: 780px;
  margin: 0;
  color: var(--mallas-graphite);
  font-size: 32px;
  font-weight: 700;
  line-height: 37px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mallas-section-heading > p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: #64646b;
  font-size: 15px;
  line-height: 24px;
}

.product-rejas .rejas-guide {
  display: block;
  float: none;
  clear: both;
  width: calc(100% - 30px);
  margin: 0 15px 34px;
  padding: 28px;
  border: 1px solid var(--mallas-line);
  border-left: 4px solid var(--mallas-wine);
  border-radius: 6px;
  background: #fbfbfa;
  box-shadow: 0 12px 28px rgba(22, 22, 25, 0.07);
}

.product-rejas .rejas-guide__intro {
  max-width: 820px;
  margin-bottom: 24px;
}

.product-rejas .rejas-guide__intro h3 {
  margin: 0;
  color: var(--mallas-graphite);
  font-size: 25px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-rejas .rejas-guide__intro p:last-child {
  margin: 12px 0 0;
  color: #5f5f66;
  font-size: 15px;
  line-height: 24px;
}

.product-rejas .rejas-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-rejas .rejas-guide article {
  min-height: 168px;
  padding: 20px;
  border: 1px solid #e1e1df;
  border-radius: 6px;
  background: #fff;
}

.product-rejas .rejas-guide h4 {
  margin: 0 0 10px;
  color: var(--mallas-wine);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.product-rejas .rejas-guide article p {
  margin: 0;
  color: #626268;
  font-size: 14px;
  line-height: 22px;
}

.mallas-filters {
  display: flex;
  flex: 0 0 calc(100% - 30px);
  width: calc(100% - 30px);
  margin: 0 15px 18px;
  border: 1px solid #cfcfd2;
  border-radius: 4px;
  overflow: hidden;
}

.mallas-filters button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #cfcfd2;
  background: #fff;
  color: #4c4c52;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  text-rendering: auto;
}

.mallas-filters button:last-child {
  border-right: 0;
}

.mallas-filters button:hover,
.mallas-filters button:focus,
.mallas-filters button.is-active {
  background: var(--mallas-graphite);
  color: #fff;
  opacity: 1;
}

.mallas-filter-status {
  flex: 0 0 calc(100% - 30px);
  width: calc(100% - 30px);
  margin: 0 15px 26px;
  color: #77777d;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
  text-transform: uppercase;
}

.mallas-index-preview .product-grid > article.mem-item {
  width: 25%;
  margin-bottom: 34px;
}

.mallas-index-preview article.mem-item .mem-avatar,
.mallas-index-preview article.mem-item .mem-info {
  border-color: var(--mallas-line);
}

.mallas-index-preview article.mem-item .mem-avatar {
  border-radius: 6px 6px 0 0;
}

.mallas-index-preview article.mem-item .mem-info {
  min-height: 158px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 26px rgba(22, 22, 25, 0.08);
}

.theme-graphite-wine.multipage.mallas-index-preview article.mem-item .mem-name {
  color: var(--mallas-graphite);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.theme-graphite-wine.multipage.mallas-index-preview article.mem-item .mem-pos {
  color: #73737a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.mallas-index-preview article.mem-item .btn-dark {
  border-color: var(--mallas-wine);
  background: var(--mallas-wine);
  color: #fff;
}

.mallas-index-preview article.mem-item .btn-dark:hover,
.mallas-index-preview article.mem-item .btn-dark:focus {
  border-color: var(--mallas-wine-dark);
  background: var(--mallas-wine-dark);
  opacity: 1;
}

.mallas-index-preview article.mem-item[hidden] {
  display: none !important;
}

.mallas-index-preview .product-gallery {
  margin-top: 18px;
  padding-top: 34px;
  border-top: 1px solid var(--mallas-line);
}

.mallas-index-preview .product-gallery h3 {
  margin: 0 0 20px;
  color: var(--mallas-graphite);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.mallas-index-preview .product-gallery .bx-wrapper,
.mallas-index-preview .product-gallery .media-container {
  margin-bottom: 28px;
  border-radius: 6px;
}

.mallas-index-preview .product-gallery iframe {
  display: block;
  width: 100%;
  min-height: 350px;
  border: 0;
}

.mallas-cta {
  background: var(--mallas-graphite);
  color: #fff;
}

.mallas-cta__inner {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.mallas-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.mallas-cta p:last-child {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.mallas-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 991px) {
  .mallas-index-preview .product-grid > article.mem-item {
    width: 50%;
  }

  .product-rejas .rejas-guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mallas-filter-status {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .mallas-hero {
    min-height: 420px;
    height: 420px;
    background-position: 62% center;
  }

  .mallas-hero h1 {
    max-width: 350px;
    font-size: 34px;
    line-height: 38px;
  }

  .theme-graphite-wine.mallas-index-preview .mallas-hero__lead {
    max-width: 340px;
    font-size: 16px;
    line-height: 25px;
  }

  .mallas-trust__grid {
    grid-template-columns: 1fr;
  }

  .mallas-trust__grid > div,
  .mallas-trust__grid > div:first-child,
  .mallas-trust__grid > div:last-child {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mallas-trust__grid > div:last-child {
    border-bottom: 0;
  }

  .mallas-index-preview #wrapper {
    padding-top: 48px;
  }

  .mallas-section-heading h2 {
    font-size: 28px;
    line-height: 32px;
  }

  .mallas-filters {
    flex: 0 0 calc(100% - 30px);
    flex-wrap: wrap;
    border: 0;
    gap: 8px;
    overflow: visible;
  }

  .mallas-filters button {
    flex: 1 1 auto;
    border: 1px solid #cfcfd2;
    border-radius: 4px;
  }

  .mallas-cta__inner {
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 54px;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .product-rejas .rejas-guide {
    padding: 22px;
  }

  .product-rejas .rejas-guide__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mallas-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mallas-hero__actions .btn {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .mallas-section-heading {
    margin-bottom: 18px;
  }

  .mallas-section-heading h2 {
    font-size: 27px;
    line-height: 31px;
  }

  .mallas-index-preview .product-grid > article.mem-item {
    width: 100%;
  }

  .mallas-cta h2 {
    font-size: 27px;
    line-height: 31px;
  }
}
