/* ============================================ */
/* SING KONG — Custom Styles                    */
/* ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection {
  background-color: #B91C1C;
  color: white;
}

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

/* --- Hero gradient --- */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(127, 29, 29, 0.92) 0%,
    rgba(23, 23, 23, 0.95) 40%,
    rgba(23, 23, 23, 0.98) 100%
  );
}

/* --- Chinese pattern overlay --- */
.chinese-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, #D97706 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #D97706 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- Navbar transitions --- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
#navbar .nav-logo {
  color: white;
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo {
  color: #B91C1C;
}
#navbar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
#navbar.scrolled .nav-link {
  color: #374151;
}
#navbar .nav-link:hover {
  color: white;
}
#navbar.scrolled .nav-link:hover {
  color: #B91C1C;
}
#navbar #mobile-menu-btn {
  color: white;
  transition: color 0.3s;
}
#navbar.scrolled #mobile-menu-btn {
  color: #171717;
}

/* --- Float animations --- */
.float-slow {
  animation: float 6s ease-in-out infinite;
}
.float-slower {
  animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* --- Scroll indicator dot --- */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* --- Reveal on scroll animation --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Initial hero reveals (no observer needed) */
#inicio .reveal-up {
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- WhatsApp floating pulse --- */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #22C55E;
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --- Menu tab styles --- */
.menu-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #E5E7EB;
  background: white;
  color: #6B7280;
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.menu-tab:hover {
  border-color: #B91C1C;
  color: #B91C1C;
}
.menu-tab.active {
  background: #B91C1C;
  border-color: #B91C1C;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

/* --- Menu card animations --- */
.menu-card {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Paquete cards --- */
.paquete-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.paquete-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.paquete-card.destacado {
  border: 2px solid #D97706;
  position: relative;
}
.paquete-card.destacado::before {
  content: "MÁS POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* --- Testimonial cards --- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* --- Star rating --- */
.star { color: #D97706; }

/* --- Counter animation handled by JS --- */

/* --- Back to top on menu --- */
.back-to-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #B91C1C;
  background: rgba(185, 28, 28, 0.08);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.back-to-menu-btn:hover {
  background: rgba(185, 28, 28, 0.15);
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
  #inicio h1 {
    font-size: 2.5rem;
  }
  .paquete-card.destacado::before {
    font-size: 0.6rem;
    padding: 3px 12px;
  }
}

/* --- Smooth page load --- */
body {
  opacity: 0;
  animation: pageLoad 0.5s ease forwards;
}
@keyframes pageLoad {
  to { opacity: 1; }
}
