:root {
  --color-primario: #292929;
  --color-primario-transparente: rgba(51, 51, 51, 0.6);
  --color-primario-claro: #3b3b3b;
  --color-secundario: #ff6f00;
  --color-secundario-transparente: rgba(255, 111, 0, 0.1);
  --color-terciario: #ffffff;
  --color-notas: #252530;
  --color-notas-transparente: rgb(221, 221, 224);
  --color-aviso: #b23c17;
  --color-aviso-claro: #fdf5f0;
  --color-fondo: #f0f0f0;
  --fuente-principal: "Montserrat", sans-serif;
  --fuente-secundaria: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background-color: #ecf0f3;
  box-sizing: border-box;
}
/*---TITLE---*/
.title-container h1 {
  font-family: var(--fuente-principal);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 3.5rem;
  max-width: 850px;
}
.title-container p {
  font-family: var(--fuente-secundaria);
  font-weight: 380;
  font-size: 1.1rem;
  max-width: 680px;
}
.title-container {
  height: 100vh;
  background-color: var(--color-primario);
  color: var(--color-fondo);
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  padding: 20px;
}
/*  CARTAS DE PRODUCTOS   */
#cards-section {
  width: 100%;
  min-height: 100vh;
  background-color: #ecf0f3;
  padding: 50px;
}
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-product {
  background-color: var(--color-terciario);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-items: center;
  align-items: flex-start;
  border-radius: 23px;
  font-family: var(--fuente-principal);
  border: 1px solid var(--color-notas-transparente);
  text-decoration: none;
  color: #212121;
  padding: 15px;
  min-width: 300px;
  max-width: 350px;
  min-height: 400px;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.1);
}
.card-product img {
  max-width: 250px;
  max-height: 200px;
  align-self: center;
}
#saas img:nth-child(2),
#saas-slim img:nth-child(2),
#xr-led img:nth-child(2) {
  margin-right: 55px;
}
.card-product h2 {
  font-family: var(--fuente-principal);
  font-weight: 400;
  font-size: 0.9rem;
}
.card-product h2 span {
  line-height: 45px;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.card-product p {
  font-family: var(--fuente-secundaria);
  font-weight: 400;
  font-size: 1rem;
}
.card-product .ficha-tecnica {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
}
.card-product .ficha-tecnica li {
  margin-bottom: 8px;
  font-family: var(--fuente-secundaria);
  font-weight: 400;
  line-height: 20px;
}
.card-product .ficha-tecnica li strong {
  font-family: var(--fuente-principal);
  font-weight: 700;
}
.cards-container .titulo-curvas {
  font-family: var(--fuente-principal);
  font-weight: 700;
}
.cards-container .curvas-fotometricas {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.curvas-fotometricas figure img {
  max-width: 75px;
  align-self: center;
}
.curvas-fotometricas figure figcaption {
  font-family: var(--fuente-secundaria);
  font-size: 0.9rem;
}
#marbella,
#xt,
#xt-slim,
#wallpack,
#xr img:nth-child(2) {
  margin-right: 0px;
}
/*   Categorias Relacionadas   */
/*  Subtitulo   */
.subtitle-catrel {
  font-family: "Montserrat", sans-serif;
  height: 150px;
  display: flex;
  align-items: center;
  background-color: #ffa040;
  color: #212121;
}
.subtitle-catrel h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 3px;
  padding-left: 50px;
}

/*   CARDS   */
.container-catrel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 15px 30px 70px 30px;
  background-color: #ffa040;
  text-align: center;
}

.card-catrel {
  display: grid;
  gap: 10px;
  justify-items: center;
  border-radius: 23px;
  font-family: "Montserrat", sans-serif;
  border: 3px solid #212121;
  text-decoration: none;
  color: #212121;
  padding: 15px;
  margin: 10px;
}
.card-catrel:hover {
  background-color: #212121;
  transition: all 0.3s ease-in-out;
  color: #fff;
  max-width: 43%;
}
.card-catrel img {
  max-width: 200px;
  max-height: 150px;
  padding-bottom: 20px;
}
.card-catrel .title-catrel {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 230px;
}
.card-catrel p {
  font-size: 14px;
  max-width: 250px;
  font-weight: 500;
}
.card-catrel .destacado {
  padding-top: 15px;
  font-weight: 700;
  text-decoration: underline;
}

/*----Tablet para abajo----*/
@media (max-width: 768px) {
  /*  CARDS DE PRODUCTOS */
  #cards-section {
    padding: 15px;
  }
  .card-product {
    padding: 10px;
  }
  #xr-led img:nth-child(2) {
    margin-right: 0px;
  }
  .title-container h1 {
    font-size: 2rem;
  }
  .title-container p {
    font-size: 1rem;
  }
  .products-container {
    padding: 0 5px 50px 5px;
    justify-content: space-evenly;
  }
  .subtitle {
    text-align: center;
    height: 320px;
  }
  /*   subtitulo de categoria relacionadas   */
  .subtitle-catrel {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffa040;
    color: #212121;
  }
  .subtitle-catrel h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    padding-left: 0px;
    text-align: center;
  }

  /*   Cartas de categoria relacionadas   */
  .card-catrel .descripcion-catrel {
    display: none;
  }
  .card-catrel {
    width: 275px;
    height: 275px;
  }
}

/*---LAPTOP---*/
@media only screen and (min-width: 769px) {
  .title-container p {
    font-size: 1.1rem;
    max-width: 680px;
  }
  .products-container {
    justify-content: space-evenly;
  }
}

/*---LAPTOP Full HD y QHD---*/
@media only screen and (min-width: 1920px) {
  .products-container {
    justify-content: flex-start;
  }
}
