body ,html{
      background-color: #f8f9fa;
    }

    .sidebar {
      background-color: #fff;
      padding: 20px;
      border-right: 1px solid #dee2e6;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
    }

    .product-card {
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid #f1f1f1;
      box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(6px);
      border-radius: 17px;
      text-align: center;
      cursor: pointer;
      transition: all 0.4s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 15px;
      font-weight: bold;
      color: black;
    }

    
    .product-card:hover {
      transform: scale(1.03);
      border-color: #000;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    }

    .product-card img {
      height: 220px;
      object-fit: contain;
      transition: transform 0.3s ease;
      margin-bottom: 10px;
    }

    .product-card:hover img {
      transform: scale(0.9);
    }

    .stock-text {
      font-size: 0.9rem;
      color: #6c757d;
    }

    .precio-redondo {
      background-color: #dc3545;
      color: white;
      font-weight: bold;
      padding: 5px 12px;
      border-radius: 30px;
      display: inline-block;
      margin-top: 5px;
      font-size: 0.95rem;
    }

    .badge {
      font-size: 0.8rem;
      margin-top: 6px;
    }

    /* RESPONSIVE */
    @media (max-width: 991.98px) {
      .sidebar {
        position: static;
        height: auto;
        border-right: none;
        margin-bottom: 20px;
      }
    }


 /* Carrusel ocupando todo el ancho */
.banner-carousel {
  width: 100%;

  overflow: hidden;
  margin: 0 auto;
  margin-top: 17px;
}

/* Imagen del banner */
.banner-img {
  width: 100%;
  height: 100%;
  max-height: 700px;
  object-fit: cover;
  background-color: #000; /* Fondo de respaldo si hay espacio */
}

/* Estilo de flechas */
.custom-control {
  width: 45px;
  height: 45px;
  background: transparent ;
  backdrop-filter: blur(5px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.custom-control:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Posición de flechas */
.carousel-control-prev {
  left: 15px;
}
.carousel-control-next {
  right: 15px;
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
  background-color: white;
  opacity: 0.5;
}
.carousel-indicators .active {
  opacity: 1;
}

/* RESPONSIVE: Ajustar altura en móviles */
@media (max-width: 768px) {
  .banner-img {
    max-height: 400px;
  }

  .custom-control {
    width: 25px;
    height: 25px;
  }
}


/* Pantalla de carga */
.pantalla-carga {
  position: fixed;
  inset: 0;
  background: rgb(255, 255, 255);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.pantalla-carga.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Contenedor de imagen + spinner */
/* Pantalla de carga */
.pantalla-carga {
  position: fixed;
  inset: 0;
  background: rgb(255, 255, 255);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.pantalla-carga.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Contenedor centrado en pantalla */
.loader-contenido {
  position: relative;
  width: 100px;
  height: 100px;
}

/* Imagen centrada sobre el spinner */
.loader-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px; /* Ajusta según tu imagen */
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

/* Spinner giratorio */
.spinner {
  background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(0, 225, 255));
  width: 100px;
  height: 100px;
  animation: spinning82341 1.7s linear infinite;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0px -5px 20px rgb(186, 66, 255), 0px 5px 20px rgb(0, 225, 255);
  position: relative;
}

/* Círculo interno */
.spinner1 {
  background-color: rgb(36, 36, 36);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(10px);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@keyframes spinning82341 {
  to {
    transform: rotate(360deg);
  }
}

/* HEADER */
    .navbar {
      background-color: #212529;
    }
    .navbar-brand img {
      height: 40px;
    }
    .navbar-nav .nav-link {
      color: white;
      font-weight: 500;
    }
    .navbar-nav .nav-link:hover {
      color: #00e1ff;
    }

    /* Secciones */
    .section-title {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1rem;
      border-bottom: 2px solid #dc3545;
      padding-bottom: .5rem;
    }

    .detalle-img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }

    .precio {
      font-size: 1.8rem;
      color: #dc3545;
      font-weight: bold;
    }

    .estado {
      font-size: 1rem;
      margin-top: 10px;
    }

    .transition-nav {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px);
}

.btnprecio {
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0.9rem 2rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
   border: 2px solid red; /* contorno rojo */
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 17px;
  border-radius: 500px;
  overflow: hidden;
  background:rgb(255, 255, 255);
  color: ghostwhite;
}

.btnprecio span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
}

.btnprecio:hover span {
  color: black;
}

.btnprecio::before,
.btnprecio::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.btnprecio::before {
  content: "";
  background: red;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btnprecio:hover::before {
  transform: translate3d(100%, 0, 0);
}
    /* Footer */
    footer {
      background-color: #111;
      color: white;
      padding: 2rem 0;
    }
    footer .logo-footer {
      width: 100px;
    }

 #buscador {
  border-radius: 50px;
  padding: 15px 60px;
  font-size: 1.1rem;
  border: 1px solid #ced4da;
  transition: box-shadow 0.3s ease;
}

#buscador:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}
.producto-agotado {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  transition: opacity 0.3s ease;
}

.overlay-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.product-card.agotado {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

.marca-agua-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 2rem;
  font-weight: bold;
  color: rgba(255, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  user-select: none;
}
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  z-index:5000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp:hover {
  transform: scale(1.1);
}
/* Contenedor general para márgenes laterales */
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.beneficios {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 50px 20px;
  background-color: transparent;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  gap: 30px;
}

.beneficio {
  flex: 1 1 calc(25% - 30px);
  min-width: 220px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.beneficio:last-child {
  border-right: none;
}

.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.icono {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.beneficio h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #111827;
}

.beneficio p {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
}

/* Responsivo */
@media (max-width: 900px) {
  .beneficios {
    flex-direction: column;
    gap: 20px;
    padding: 30px 10px;
  }

  .beneficio {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .beneficio:last-child {
    border-bottom: none;
  }
}


  .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
  }

  .transition {
    transition: all 0.3s ease-in-out;
  }
  


.loader-local {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px; /* asegura espacio vertical para el loader */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.loader-local .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 576px) {
  .loader-local .spinner-border {
    width: 2rem;
    height: 2rem;
  }
}