/* Estilos propios de Kprichito (complementan a tailwind.css) */

/* Utilidades para scrollbar del carrito */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1; 
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db; 
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Botones del banner montados sobre la imagen (proporcional al tamaño de pantalla) */
.hero-actions-overlap {
  margin-top: -20px;
}
@media (min-width: 480px) {
  .hero-actions-overlap {
    margin-top: -35px;
  }
}
@media (min-width: 640px) {
  .hero-actions-overlap {
    margin-top: -60px;
  }
}
@media (min-width: 1024px) {
  .hero-actions-overlap {
    margin-top: -90px;
  }
}
@media (min-width: 1536px) {
  .hero-actions-overlap {
    margin-top: -130px;
  }
}

/* Botones del banner: compactos en pantallas chicas, grandes en pantallas grandes */
.hero-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
}
@media (min-width: 480px) {
  .hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}
@media (min-width: 768px) {
  .hero-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}
.hero-btn-whatsapp:hover {
  border-color: #EF5B76;
  color: #EF5B76;
}

/* Logo flotante: tamaño progresivo para que nunca tape el texto del banner */
.floating-logo {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: 56px;
  height: 56px;
}
@media (min-width: 480px) {
  .floating-logo {
    top: 10px;
    left: 12px;
    width: 72px;
    height: 72px;
  }
}
@media (min-width: 768px) {
  .floating-logo {
    top: 12px;
    left: 20px;
    width: 96px;
    height: 96px;
  }
}
@media (min-width: 1024px) {
  .floating-logo {
    top: 14px;
    left: 28px;
    width: 120px;
    height: 120px;
  }
}
@media (min-width: 1440px) {
  .floating-logo {
    top: 16px;
    left: 32px;
    width: 150px;
    height: 150px;
  }
}

/* Círculos de categorías: más grandes para que las fotos se vean bien */
.category-circle {
  width: 120px;
  height: 120px;
}
@media (min-width: 480px) {
  .category-circle {
    width: 145px;
    height: 145px;
  }
}
@media (min-width: 768px) {
  .category-circle {
    width: 170px;
    height: 170px;
  }
}
@media (min-width: 1024px) {
  .category-circle {
    width: 190px;
    height: 190px;
  }
}

/* Animación de entrada de las páginas */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Evitar scroll del body cuando el carrito está abierto */
body.carrito-abierto {
  overflow: hidden;
}

/* Pantalla de carga: tapa el contenido simple (el que lee Google) mientras React arma la página */
.pantalla-carga {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  transition: opacity 0.35s ease;
}
.pantalla-carga.oculta {
  opacity: 0;
  pointer-events: none;
}
.pantalla-carga img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 9999px;
  background: #FFFFFF;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(239, 91, 118, 0.25);
  animation: latido 1.2s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
