body {
  padding-top: 70px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

html {
  scroll-padding-top: 70px;
}

.navbar-glass {
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-glass .navbar-brand,
.navbar-glass .nav-link {
  color: rgba(255, 255, 255, 0.95);
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link:focus {
  color: rgba(255, 255, 255, 1);
}

@media (max-width: 991.98px) {
  .navbar-glass .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }
}



.card-producto {
  /* cursor: pointer; */
  transition: transform .2s, box-shadow .2s;
}

.card-producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.hero {
  min-height: 100vh;
  margin-top: -70px;
  padding-top: 70px;
  background: none;
  overflow: hidden;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 7rem;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll__link {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.9;
}

.hero-scroll__link:hover,
.hero-scroll__link:focus {
  opacity: 1;
}

.hero-scroll__link .bi {
  font-size: 1.75rem;
  line-height: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Offcanvas de producto: más alto para aprovechar pantalla */
.offcanvas.offcanvas-bottom.product-offcanvas {
  --bs-offcanvas-height: 90vh;
}

.product-offcanvas .offcanvas-body {
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)), url('../img/a.jpeg') center center/cover no-repeat;
  }
}

.text-shadow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.btn-palpitar {
  animation: palpitar 1.2s infinite;
}

@keyframes palpitar {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 10px 6px rgba(25, 135, 84, 0.15);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
  }
}

/* Visor de imagen a pantalla completa (zoom) */
.zoom-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

.zoom-close {
  z-index: 10;
  padding: 0.9rem;
  border-radius: 20%;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.zoom-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.zoom-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.zoom-img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}

.zoom-img.is-zoomed {
  cursor: grab;
}

/* Carrusel: mejorar contraste de controles sobre fondos claros */
#carouselProducto .carousel-control-prev-icon,
#carouselProducto .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 20%;
  background-color: rgba(0, 0, 0, 0.301);
  background-size: 1.25rem 1.25rem;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); */
}

#carouselProducto .carousel-control-prev:hover .carousel-control-prev-icon,
#carouselProducto .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
}

#carouselProducto .carousel-indicators [data-bs-target] {
  background-color: rgba(0, 0, 0, 0.35);
}

#carouselProducto .carousel-indicators .active {
  background-color: rgb(0, 0, 0);
}