/* Tarjetas */
.container-cards {
  display: flex;
  align-items: center;
  padding: 1em 0;
  gap: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--color-1);
  border-radius: 10px;
  margin: 10px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-in-out, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-laDensidad-measures {
  width: 280px;
  min-height: 280px;
  max-height: 280px;
}

.card-patronDelPelo-measures {
  width: 260px;
}

.cards-patronDelPelo-containers {
  display: flex;
  justify-content: center;
}

.cards-patronDelPelo-img-opcionText {
  display: flex;
  flex-direction: column;
}

/* Efecto al pasar el mouse */
.card:hover {
  transform: scale(1.06);
}

.card-active {
  transform: scale(1.07);
  box-shadow: 0 0 8px var(--color-1), 0 0 15px var(--color-1),
    0 0 25px var(--color-1);
}

/* Numero de la tarjeta */
.circle-number {
  position: absolute;
  top: 2%;
  left: 4%;
  background-color: var(--color-5);
  color: var(--color-4);
  width: 2em;
  height: 2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: background-color 0.2s;
}

.circle-active {
  color: white;
  background-color: var(--color-1);
}

/* Imagen de la tarjeta */
.card-img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 2em;
}

.card-textos {
  height: 100%;
  min-height: 70px;
}

/* h3 */
.card h3 {
  margin: 10px 0 5px 0;
  font-size: 18px;
  max-height: 50px;
  color: var(--color-4);
}

/* texto */
.card p {
  font-size: 12px;
  color: var(--color-3);
}

/* ========== Mediaquerys ========== */
@media (max-width: 1200px) {
  .card-patronDelPelo-measures {
    width: 240px;
  }

  .card h3 {
    font-size: .85em;
  }

  .card h3 {
    font-size: .9em;
  }
}

@media (max-width: 1100px) {
  .card-patronDelPelo-measures {
    width: 230px;
    width: 45%;
    height: 9.5em;
    margin: 5px;
  }

  .container-cards {
    gap: .5em;
    flex-direction: column;
    padding-top: 2em;
  }

  .card {
    flex-direction: row;
    padding: .7em;
  }

  .card-laDensidad-measures {
    margin: .2em;
    width: 80%;
    min-height: 6em;
    max-height: 6.75em;
  }

  .circle-number {
    width: 1.6em;
    height: 1.6em;
  }

  .card-img {
    width: 60px;
    height: 75px;
  }

  .card h3 {
    font-size: .8em;
  }

  .card p {
    font-size: .58em;
  }
}

@media (max-width: 768px) {
  .container-cards {
    gap: .5em;
    flex-direction: column;
    padding: 0;
  }

  .card {
    flex-direction: row;
    padding: .7em;
  }

  .card-laDensidad-measures {
    margin: .2em;
    width: 80%;
    min-height: 6em;
    max-height: 6.75em;
  }

  .circle-number {
    width: 1.6em;
    height: 1.6em;
  }

  .card-img {
    width: 60px;
    height: 75px;
  }

  .card h3 {
    font-size: .8em;
  }

  .card p {
    font-size: .58em;
  }

  .card-patronDelPelo-measures {
    width: 38%;
    height: 9.5em;
    margin: 5px;
  }
}

@media (max-width: 425px) {
  .container-cards {
    gap: .5em;
  }

  .card-laDensidad-measures {
    margin: .2em;
    width: 80%;
    min-height: 6em;
    max-height: 6em;
  }

  .circle-number {
    width: 1.6em;
    height: 1.6em;
  }

  .card-img {
    width: 60px;
    height: 75px;
  }

  .card h3 {
    font-size: .8em;
  }

  .card p {
    font-size: .55em;
  }

  .card-patronDelPelo-measures {
    width: 40%;
    height: 9.5em;
    margin: 5px;
  }
}

@media (max-width: 375px) {
  .card-laDensidad-measures {
    min-height: 5.5em;
    max-height: 5.5em;
  }
}