
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
  font-family: 'Roboto', sans-serif;
}

.background {
  width: 1920px;
  height: 1080px;
  background: url('./assets/pantalla.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.slider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 450px; /* Ajustado para centrado vertical */
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.slide {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.product {
  position: relative;
  width: 400px;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  box-sizing: border-box;
  margin: 40px;
  float: left;
  border: 6px solid #f39c0a;
  border-radius: 6px;
}

.product-title, .product-price, .product-price-offer, .product-price-normal {
  position: relative;
  z-index: 2;
}

.product-title {
  font-size: 18px; /* Ajustado para títulos largos */
  color: white;
  margin: 5px 0;
  text-align: center;
  word-wrap: break-word;
}

.product-price {
  font-size: 18px;
  color: white;
  font-weight: bolder;
  text-decoration: line-through;
  margin: 0;
}

.product-price-offer {
  font-size: 26px;
  color: #f39c0a;
  font-weight: bold;
  margin: 0;
}

.product-price-normal {
  font-size: 26px;
  color: white;
  font-weight: bold;
  margin: 0;
}

/* Overlay para contraste */
.product::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.4);
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(65,65,65,0.8) 60%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

/* Animación del slider */
@keyframes slide {
  0%, 25% {
    transform: translateX(0);
  }
  50%, 75% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
