/* General */
#productosDestacados1 {
  text-align: center;
  margin-bottom: 30px;
}

#productosDestacados1 h1 {
  font-size: 5rem; /* Tamaño base muy grande (~80px) */
  color: black;
  margin: 0;
  padding: 0;
  display: inline-block; /* Asegura una sola línea */
  line-height: 1; /* Reduce espacio entre líneas */
}

#productosDestacados1 h1 .semi-bold-text {
  font-weight: 600; /* Peso semi-bold */
}

#productosDestacados1 h1 .bold-text {
  font-weight: 800; /* Peso bold */
}

/* Escritorio grande (LG, ≥ 1200px) */
@media (min-width: 1200px) {
  #productosDestacados1 h1 {
      font-size: 5rem; /* ~80px */
  }
}

/* Escritorio mediano (MD, 992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  #productosDestacados1 h1 {
      font-size: 4rem; /* ~64px */
  }
}

/* Tableta (SM, 768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  #productosDestacados1 h1 span {
      font-size: 3.5rem; /* ~56px */
      font-size: 5rem; /* ~56px */
  }
}

/* Móvil (XS, < 767px) */
@media (max-width: 767px) {
  #productosDestacados1 h1 {
      font-size: 2.5rem; /* ~40px */
  }
}

/* Móvil muy pequeño (< 412px) */
@media (max-width: 412px) {
  #productosDestacados1 h1 {
      font-size: 2rem; /* ~32px */
  }
}

/* General */

.carousel-container-nuevo-disenio {
  position: relative;
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  height: 480px;
  padding-left: 40px;
  cursor: default;
}

.carousel-nuevo-disenio {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  transition: transform 0.5s ease-in-out;
}

.carousel-item-nuevo-disenio {
  flex: 0 0 32%;
  text-align: center;
  padding: 0 5px;
  box-sizing: border-box;
}

.figureNuevoDisenio {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: white;
  border: 1px solid #E2E4EB;
  border-radius: 5px;
  position: relative;
  width: 350px;
  height: 446px;
}

.figureNuevoDisenio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.texto-nuevo-disenio {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  padding-top: 20px;
  text-align: center;
  z-index: 5000;
}

.texto-nuevo-disenio p {
  text-align: center;
  font-size: 2rem; /* Aumentado desde x-large a un valor fijo más grande */
  line-height: 1;
  margin: 0;
}

.figureNuevoDisenio:hover {
  border: 1px solid #c5c5c5;
  box-shadow: 0px 0px 7px 7px rgba(0, 0, 0, 0.35);
  border-radius: 5px;
}

#productosDestacados1 h1 {
  font-size: 4rem;
  margin: 0;
  padding: 0 10px;
  width: 90%;
  max-width: 100%;
  line-height: 1;
  text-align: center;
}

/* Escritorio grande (LG, ≥ 1200px) */
@media (min-width: 1200px) {
  .carousel-item-nuevo-disenio {
      flex: 0 0 32%;
      max-width: 350px;
  }
  .figureNuevoDisenio {
      width: 350px;
      height: 446px;
  }
  #productosDestacados1 h1 {
      font-size: 4rem;
  }
  .texto-nuevo-disenio p {
      font-size: 2rem; /* Mantener grande en escritorio */
  }
}

/* Escritorio mediano (MD, 992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .carousel-item-nuevo-disenio {
      flex: 0 0 48%;
      max-width: 48%;
  }
  .figureNuevoDisenio {
      width: 100%;
      height: 400px;
  }
  .texto-nuevo-disenio p {
      font-size: 1.8rem; /* Ligeramente más pequeño */
  }
  #productosDestacados1 h1 {
      font-size: 3.5rem;
  }
  .carousel-item-nuevo-disenio:nth-child(3) {
      display: none;
  }
}

/* Tableta (SM, 768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .carousel-item-nuevo-disenio {
      flex: 0 0 48%;
      max-width: 48%;
  }
  .figureNuevoDisenio {
      width: 100%;
      height: 350px;
  }
  .texto-nuevo-disenio p {
      font-size: 1.6rem; /* Ajustado para tableta */
  }
  #productosDestacados1 h1 {
      font-size: 3rem;
  }
  .carousel-item-nuevo-disenio:nth-child(3) {
      display: none;
  }
}

/* Móvil (XS, < 767px) */
@media (max-width: 767px) {
  .carousel-container-nuevo-disenio {
      overflow-x: hidden;
      height: 300px;
      padding-left: 0;
  }
  .carousel-nuevo-disenio {
      overflow-x: auto;
      transition: none;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      -ms-overflow-style: none;
      scrollbar-width: none;
      scroll-snap-type: x mandatory;
      padding-left: 5%;
  }
  .carousel-nuevo-disenio::-webkit-scrollbar {
      display: none;
  }
  .carousel-item-nuevo-disenio {
      flex: 0 0 90%;
      max-width: 90%;
      scroll-snap-align: center;
  }
  .carousel-item-nuevo-disenio:first-child {
      margin-left: calc(50% - 45%);
  }
  .figureNuevoDisenio {
      width: 80%;
      height: 400px;
  }

  .texto-nuevo-disenio {
    padding: 0px;
    padding-top: 20px;
  }

  .texto-nuevo-disenio p {
      font-size: 2.5rem; /* Aumentado desde xx-large para móvil */
      line-height: 1.2;
  }
  #productosDestacados1 h1 {
    font-size: 3rem; /* Tamaño base muy grande (~80px) */
    color: black;
    align-content: center;
    margin: 0;
    padding: 0;
    display: inline-block; /* Asegura una sola línea */
    line-height: 1; /* Reduce espacio entre líneas */
  }
}

/* Móvil muy pequeño (< 412px) */
@media (max-width: 412px) {

  .carousel-item-nuevo-disenio {
      flex: 0 0 95%;
      max-width: 98%;
  }
  .carousel-item-nuevo-disenio:first-child {
      margin-left: calc(50% - 47.5%);
  }
  .figureNuevoDisenio {
      height: 250px;
  }
  .texto-nuevo-disenio p {
      font-size: 1.5rem; /* Aumentado desde x-small para pantallas pequeñas */
  }
  #productosDestacados1 h1 {
      font-size: 1.5rem;
  }

  #productosDestacados1 h1 {
    font-size: 3rem; /* Tamaño base muy grande (~80px) */
    color: black;
    align-content: center;
    margin: 0;
    padding: 0;
    display: inline-block; /* Asegura una sola línea */
    line-height: 1; /* Reduce espacio entre líneas */
  }
}
