/* Ini: CSS para el template de familia (nivel 1) - f.e.: fonestar.com/es/electronics */

#template-family-intro {
  display: flex;
  min-height: 38.75rem;
}

#template-family-intro > .background-image {
  display: flex;
  align-items: flex-end;
  flex-direction: row;
  min-height: 15rem;
  width: 60%;
  background-position: center center;
  background-size: cover;
}

#template-family-intro > .categories-list {
  width: 40%;
  background: #595c63;
  padding-left: 40px;
  padding-top: 30px;
  padding-right: 20px;
}

#template-family-intro #family-description {
  margin-left: calc((100vw - 1200px) / 2);
  padding-bottom: 40px;
  padding-right: 15vw;
  color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

#template-family-intro #family-description img {
  max-width: 180px;
  filter: contrast(100);
}

#template-family-intro .separator-line {
  background: #db052c;
  width: 40px;
  height: 7px;
}

#template-family-detail {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  margin: 0 auto;
  margin-top: 40px;
}

#template-family-detail > div:nth-child(even) {
  margin-top: 40px;
  margin-bottom: -40px;
}

#template-family-detail .family-icon {
  max-width: 180px;
  height: auto;
  filter: contrast(100);
}

#template-family-detail .detail-subfamily {
  padding: 20px;
  align-items: flex-start;
  background-color: #5a5c63;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: flex-end;
  min-height: 35rem;
}

#template-family-detail .subfamily-view-all {
  margin-bottom: 10px;
  color: white;
  font-weight: bold;
}

#template-family-detail .display-series {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-right: 20px;
}

#template-family-detail .display-series .pill {
  background: #94969d;
  padding: 8px 10px;
  border-radius: 10px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

#template-family-detail .display-series .pill:hover {
  background: #e1e1e6;
  color: #5a5c63;
}

#template-family-form-100-background {
  margin-top: 80px;
  min-height: 200px;
  background: #e2e1e7;
}

#template-family-form {
  display: flex;
  margin: 0 auto;
}

#template-family-form > div:first-child {
  width: 50%;
  padding: 20px 20px 0px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#template-family-form > div:nth-child(2) {
  width: 50%;
  padding: 20px;
  display: flex;
  align-items: center;
}

#template-family-2-banner {
  display: flex;
}

#template-family-2-banner > div:first-child {
  width: 50%;
  padding: 80px 60px 70px 0px;
  background-position: left center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#template-family-2-banner > div:first-child .entradilla {
  letter-spacing: 0.5rem;
  color: #ffffff;
  text-align: right;
  text-transform: uppercase;
}

#template-family-2-banner > div:first-child #txt-soluciones {
  font-size: 3rem;
  line-height: 1;
  color: #ffffff;
  font-weight: 900;
  text-align: right;
  margin-top: 20px;
  margin-bottom: 20px;
}

#template-family-2-banner > div:first-child a {
  padding: 13px 29px;
  background: #fff;
}

#template-family-2-banner > div:first-child a:hover {
  background: #db052c;
  color: #fff;
}

#template-family-2-banner > div:nth-child(2) {
  width: 50%;
  padding: 80px 0px 70px 60px;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#template-family-2-banner > div:nth-child(2) .entradilla {
  letter-spacing: 0.5rem;
  color: #fff;
  text-transform: uppercase;
}

#template-family-2-banner > div:nth-child(2) #txt-distribuidor {
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  font-weight: 900 !important;
  margin-top: 20px;
  margin-bottom: 20px;
}

#template-family-2-banner > div:nth-child(2) a {
  padding: 13px 29px;
  background: #595c63;
  color: #fff;
}

#template-family-2-banner > div:nth-child(2) a:hover {
  background: #db052c;
}

/* Ini: Responsive */
@media screen and (max-width: 1200px) {
  #template-family-intro #family-description {
    margin-left: 20px;
    padding-bottom: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .fonestar-custom-template #main {
    padding-top: 0px !important;
  }

  #template-family-intro {
    flex-direction: column;
    min-height: auto;
  }

  #template-family-intro > div {
    width: 100% !important;
    flex-direction: row;
  }

  #template-family-intro > .categories-list {
    padding-left: 20px;
  }

  #template-family-detail > div:nth-child(even) {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  #template-family-detail {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  #template-family-detail .detail-subfamily {
    min-height: auto;
  }

  #template-family-form-100-background {
    margin-top: 20px;
  }

  #template-family-form {
    flex-direction: column;
  }

  #template-family-form > div {
    width: 100% !important;
  }

  #template-family-form .imagen {
    text-align: center;
  }

  #template-family-form > div:nth-child(2) {
    justify-content: center;
  }

  #template-family-2-banner {
    flex-direction: column;
  }

  #template-family-2-banner > div {
    width: 100% !important;
  }
}

@media screen and (max-width: 550px) {
  #template-family-2-banner .frase {
    font-size: 2.6rem !important;
  }
}

@media screen and (max-width: 480px) {
  #template-family-2-banner .entradilla {
    font-size: 0.75rem !important;
    letter-spacing: 4px !important;
  }

  #template-family-2-banner .frase {
    font-size: 2rem !important;
  }

  #template-family-2-banner > div:first-child {
    padding: 80px 30px 70px 20px;
  }

  #template-family-2-banner > div:nth-child(2) {
    padding: 80px 20px 70px 30px;
  }
}
/* Fin: Responsive */
/* Fin: CSS para el template de familia (nivel 1) - f.e.: fonestar.com/es/electronics */

/* Ini: Submenú de familias */
#grid-submenu-families {
  display: grid;
  grid-template-columns: 350px 1fr;
}

#grid-submenu-families #left-column-families {
  background-color: #f0f0f2;
  padding: 20px;
}

#grid-submenu-families #left-column-families #name {
  font-size: 2rem;
  font-weight: bold;
  color: #db052c;
  font-family: "Poppins";
}

#grid-submenu-families #left-column-families #separador-submenu {
  background: #db052c;
  width: 50px;
  height: 7px;
  margin-bottom: 25px;
}

#grid-submenu-families #right-column-families {
  padding: 20px;
}

#right-column-families .header-families {
  display: flex;
  justify-content: space-between;
}

#right-column-families .info-familia #familia {
  font-size: 2rem;
  font-weight: bold;
  color: #93959d;
}

#right-column-families .info-familia #familia-descripcion {
  margin-bottom: 10px;
}

#right-column-families #subfamilias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #93959d;
}

#right-column-families #subfamilias .family p {
  color: #93959d;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 10px 0px;
}

#right-column-families #subfamilias .family .menu-img-family {
  margin-right: 10px;
  object-fit: contain;
  width: 50px;
  height: 50px;
}

/* Fin: Submenú de familias */

/* Ini: Familias destacadas (3?) de la portada */
#container-featured-families-home > div {
  display: flex;
  flex-direction: column;
  padding: 40px;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 450px !important;
}

#container-featured-families-home .family-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

#container-featured-families-home .family-description {
  color: white !important;
}

#container-featured-families-home .family-link {
  margin-top: 20px;
}

#container-featured-families-home .family-link a {
  color: white !important;
  font-weight: bold;
}

#container-featured-families-home .family-link i {
  color: #db052c;
}
/* Fin: Familias destacadas (3?) de la portada */

/* Ini: Sticky Sidebar Familias destacadas (3?) de la portada */
#home-featured-families-sticky-sidebar #all-products .linea-categoria-producto {
  background-color: white !important;
}

#home-featured-families-sticky-sidebar .link-lightgray2red {
  color: white !important;
}

#home-featured-families-sticky-sidebar .link-lightgray2red:hover {
  color: #cc0000 !important;
}
/* Fin: Sticky Sidebar Familias destacadas (3?) de la portada */

/* Background image en las cajas de las categorias de la página de productos */
#container-families-level-1 .family-box {
  position: relative;
  background: #5a5b63;
}
/*
#container-families-level-1 .family-box:before { 
	content: "";
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
	position: absolute;
	background-size: cover;
	filter: grayscale(100%);
	background-position: center center; 
	opacity: 0.1;
}
*/
#container-families-level-1 .family-box-information {
  position: relative;
}
