html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Carrusel: altura adaptable en móviles y centrado de captions */
@media (max-width: 768px) {
  #mainCarousel .carousel-inner img {
    height: 40vh; /* más proporcional en phone */
    max-height: 380px;
  }
  #mainCarousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 8%;
    padding: 0 1rem;
  }
  /* Cartas/promo: reducir padding y tamaño de texto en móviles */
  article[class*="min-w-"] {
    padding: 0.75rem;
  }
  article h3 {
    font-size: 1rem;
  }
  article p {
    font-size: 0.85rem;
  }

  /* Botones de control del carrusel menos intrusivos */
  .carousel-control-prev,
  .carousel-control-next {
    width: auto;
    padding: 0.25rem;
  }
}

/* Mejor experiencia táctil: aumentar hit area */
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ajustes para el menú móvil: full width y mejor separación */
#mobileMenu {
  padding: 0.75rem 1rem;
}
#mobileMenu a {
  padding: 0.6rem 0.5rem;
  display: block;
}

/* Mantener snap y scroll suave en móviles */
#productosCarousel {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 20px));
  transition: opacity var(--reveal-duration, 600ms) ease,
    transform var(--reveal-duration, 600ms) cubic-bezier(0.22, 0.9, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

#muestra-productos,
#muestra-productos * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
