/* =================================================================
   MultiFoodstore - main.css
   Estilos custom que complementan Tailwind CSS v4.
   Tailwind genera las utilities; aqui solo van componentes propios.
   ================================================================= */

/* 1. Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: max(884px, 100dvh); overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
img.logo { height: 42px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 2. Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  overflow: hidden;
}

/* 3. Glass Nav */
.glass-nav {
  background: rgba(246, 251, 243, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 82, 40, 0.06);
  will-change: backdrop-filter;
}
.shadow-nav { box-shadow: 0 12px 32px -4px rgba(0, 82, 40, 0.08); }

/* 4. Editorial Shadow */
.editorial-shadow { box-shadow: 0 12px 32px -4px rgba(0, 82, 40, 0.08); }

/* 5. Hero Gradient */
.hero-gradient { background: linear-gradient(135deg, #005228 0%, #006d37 100%); }

/* 6. Scroll-triggered animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* 7. Marquee infinito */
.marquee-viewport { width: 100%; overflow: hidden; padding: 1rem 0; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  gap: 4rem;
}
.marquee-track:hover { animation-play-state: paused; }

/* 8. Mobile Menu */
#mobile-menu { will-change: transform; }
#mobile-menu.is-open { transform: translateX(0); }

/* 9. Scrollbar hide */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* 10. Print */
@media print {
  .glass-nav, #mobile-menu { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
