/* Contenedor principal */
#statistics {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #685bc5;
  width: 100%;
  height: auto;
  padding: 0 20px;
  box-sizing: border-box;
  border: 2px solid #6f60d9;
  box-shadow:
    0 0 5px #685bc5,
    0 0 5px #685bc5,
    0 0 5px #685bc5,
    0 0 5px #685bc5;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative; /* Necesario para posicionar pagination en algunos casos */
  overflow: hidden; /* Ocultar scrollbars */
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Hover efecto */
#statistics:hover {
  box-shadow:
    0 0 10px #3d33a0,
    0 0 10px #3d33a0,
    0 0 10px #3d33a0,
    0 0 10px #3d33a0;
  transform: translateY(-3px);
}

#statistics.detail-item {
  color: #f6f8fc;
}

/* Contenedor Swiper (carousel) */
.swiper {
  width: 100%;
  height: 100%;
  color: #f6f8fc;
}

/* Wrapper de los slides */
.swiper-wrapper {
  width: 100% !important;
  display: flex;
  align-items: center;

}

/* Cada slide individual */
.swiper-slide.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f6f8fc;
  font-family: inherit;
  background-color: #685bc5;
  width: auto;
}

/* Texto principal */
.detail-item .item-text1 {
  font-size: 4em;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1;
  justify-self: center;
}

/* Texto secundario */
.detail-item .item-text2 {
  font-size: 2em;
  line-height: 1;
  justify-self: center;
}



#statistics .detail-item .item-text1:hover,
#statistics .detail-item .item-text2:hover {
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Resplandor blanco suave */
      transition: text-shadow 0.1s ease; /* Suaviza el efecto */
  }
  #statistics .detail-item .item-text1,
  #statistics .detail-item .item-text2 {
    
      transition: text-shadow 0.2s ease; /* Suaviza la transición al desactivarse */
  }


/* Dots inactivos */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #f6f8fc !important; /* Color inactivo */
  opacity: 0.5; /* Le baja la opacidad */
  border-radius: 50%;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

/* Dot activo */
.swiper-pagination-bullet-active {
  background-color: #f5c35c !important; /* Color activo */
  opacity: 1; /* Lo hace más visible */
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #statistics {
    height: 100px; /* Aumenta el alto en mobile */
    background-color: #685bc5;
    color: #f6f8fc;
    padding: 0;
  }

  .swiper-wrapper {
    transition: transform 0.3s ease-in-out;
    width: 100% !important;
  }
  .swiper-slide {
    justify-items: center;
  }
  .swiper-slide.detail-item {
    min-width: 100%;
    height: 230px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    text-align: center;
    margin: 0 auto;
  }

  .detail-item .item-text1,
  .detail-item .item-text2 {
    color: #f6f8fc;
    text-align: center;
    width: 100%;
  }

  .detail-item .item-text1 {
    font-size: 4rem !important;
    justify-self: center;
  }

  .detail-item .item-text2 {
    font-size: 2.5rem !important;
    justify-self: center;
  }

  /* Pagination dots */
  .swiper-pagination {
    bottom: 10px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .swiper-pagination-bullet {
    height: 10px;
    width: 10px;
    background-color: #f6f8fc;
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }

  .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #f5c35c; /* Amarillo para el activo */
  }
}
