/* Ajustes sobre el estilo original: íconos, galerías y pie. */

._mnu h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  display: inline;
}

/* El sitio anterior pide Lato 300, pero esa variante se lee demasiado fina. */
._hdr ._mnu ._btn,
._hdr ._mnu ._btn h1,
._hdr ._mnu ._btn span {
  font-weight: 500;
  color: #111;
}

.laempresa,
.laempresa .txt,
.laempresa .txt p {
  font-weight: 500;
  color: #2a2e2e;
}

._ftr,
._ftr a,
._ftr address {
  font-weight: 500;
  color: #6d7579;
}

@media (min-width: 768px) {
  /* En un monitor ancho el encabezado no se estira de borde a borde. */
  ._hdr {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }

  ._hdr > .brand,
  ._hdr > ._mnu {
    width: auto;
    max-width: none;
    float: none;
  }

  ._hdr > .brand {
    flex: 0 0 auto;
  }

  ._hdr > ._mnu {
    flex: 1 1 auto;
    display: flex;
  }

  ._hdr ._mnu > div {
    flex: 1 1 0;
    width: auto;
    float: none;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .brand ._logo {
    flex: 0 0 auto;
  }

  .brand ._logo img {
    width: auto;
    max-width: 230px;
    max-height: 118px;
  }

  .socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .socials img {
    width: 42px;
    height: auto;
  }
}

@media (max-width: 767px) {
  .brand {
    position: relative;
  }

  .brand ._logo img {
    max-width: 168px;
    max-height: 104px;
  }

  .socials {
    position: absolute;
    right: 8px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .socials img {
    width: 26px;
    height: auto;
  }
}

.homegal img,
.productos .cat .gal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
  opacity: 0;
  transition: opacity 1s linear;
}

.homegal img.is-active,
.productos .cat .gal img.is-active {
  opacity: 1;
}

address {
  font-style: normal;
  display: inline;
}

._ftr .sep {
  margin: 0 0.35em;
}

._ftr img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.laempresa .txt {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  /* Foto y texto comparten el ancho del encabezado: a la derecha queda el margen vacío. */
  .laempresa .row-same-height {
    display: flex;
    align-items: flex-end;
    width: min(100%, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }

  .laempresa .row-same-height > .pic,
  .laempresa .row-same-height > .txt {
    position: relative;
    left: auto;
    right: auto;
    float: none;
  }

  .laempresa .row-same-height > .pic {
    order: 1;
    flex: 0 0 560px;
    width: 560px;
    max-width: 46%;
  }

  .laempresa .row-same-height > .txt {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding-right: 15px;
    padding-left: 28px;
  }

  .laempresa .pic img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.laempresa .txt p {
  margin: 0 0 0.8em;
}

.formcol {
  padding: 0 !important;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consultas .col_hdr .text {
  color: #2a2e2e;
  font-weight: 500;
  font-size: 16px;
}

.llegar .donde {
  margin: 12px 15px;
  color: #2a2e2e;
  font-weight: 500;
}

@media (min-width: 768px) {
  /* La dirección queda dentro del mismo ancho que el encabezado. */
  .llegar .donde {
    box-sizing: border-box;
    width: min(100%, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* El formulario no se pega al borde en un monitor ancho. */
  .consultas-form {
    width: min(100%, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}

/* En el celular el bloque de fotos no tiene contenido en el flujo y se aplasta. */
@media (max-width: 767px) {
  .productos .cat.fullh {
    height: 70vh;
    min-height: 320px;
  }
}

.productos .cat .dec {
  position: relative;
  z-index: 1;
}

._ftr_dummy {
  width: 100%;
  clear: both;
}
