/* SLIDER IMAGEN */
.slider-item-box {
  max-width: 100%;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.slider-item-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta sin deformar */
  object-position: center;
}

/* BANNER */
.banner {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translate(-50%, 50%);
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  color: #f1f1f1;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.banner-content {
  width: 80%;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  /* fondo para resaltar texto */
  border-radius: 10px;
}

.banner-content p {
  text-align: justify;
}

/* Estilos Secciones */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;         
  height: 2px;
  background: #ddd;
}

.title {
  white-space: nowrap;
}

/* Seccion Hero */
.hero {
  position: relative;
  padding: 1rem;
  margin: 2rem auto;
}

/* Seccion de Productos */
.category-item {
  text-align: center;
  padding: 10px;
}

.category-img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: contain;
}

/* Carousel */
.carousel-track {
  width: 90%;
  margin: auto;
  overflow-x: hidden;
  /* border: 4px solid red; */
  display: flex;
}

.group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  animation: scroll 10s linear infinite;
  /* border: 2px solid blue; */
  padding-right: 2rem;
}

.carrousel-card {
  flex: 0 0 auto;
  width: 120px;
}

.carrousel-img {
  width: 100%;
  height: auto;
}

/* Feature Cards */
.feature-title {
  font-weight: 700;
}

.feature-icon {
  color: #228ffc;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  text-align: center;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  /* transición suave de 1 segundo */
  transition:
    background-color 1s ease,
    box-shadow 1s ease;
}
.feature-card:hover {
  background: #228ffc;
  color: white;
}

.feature-card:hover .feature-icon {
  color: white;
}

/* EFECTO ANIMADO */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

/*Animaciones*/
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/*Media Queries*/
/* Ocultar lineas de section */
@media (max-width: 768px) {
  .section-title::before,
  .section-title::after {
    display: none;
  }
}
