:root {
  color-scheme: light;
  --es-bg: #f8fafc;
  --es-surface: #ffffff;
  --es-surface-soft: #f1f5f9;
  --es-border: #dbe4ef;
  --es-text: #0f172a;
  --es-muted: #52627a;
  --es-primary: #2563eb;
  --es-primary-hover: #1d4ed8;
  --es-success: #16a34a;
  --es-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  --es-radius: 14px;
}

html:not(.dark) body,
body.light-theme {
  background: var(--es-bg) !important;
  color: var(--es-text) !important;
}

html:not(.dark) .glass-header,
html:not(.dark) header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(219, 228, 239, 0.95) !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

html:not(.dark) footer {
  background: #0f172a !important;
}

html:not(.dark) .product-card,
html:not(.dark) [id$="ModalContent"],
html:not(.dark) #cartDrawer,
html:not(.dark) #checkoutModalContent {
  background-color: var(--es-surface) !important;
  border-color: var(--es-border) !important;
  box-shadow: var(--es-shadow);
}

html:not(.dark) input,
html:not(.dark) textarea,
html:not(.dark) select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: var(--es-text) !important;
}

html:not(.dark) input:focus,
html:not(.dark) textarea:focus,
html:not(.dark) select:focus {
  border-color: var(--es-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

html:not(.dark) button,
html:not(.dark) a {
  -webkit-tap-highlight-color: transparent;
}

html:not(.dark) a[href*="wa.me"],
html:not(.dark) button[onclick*="WhatsApp"],
html:not(.dark) button[onclick*="sendComprobante"] {
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.18) !important;
}

html:not(.dark) .rounded-\[2\.5rem\],
html:not(.dark) .rounded-\[2\.2rem\] {
  border-radius: 18px !important;
}

html:not(.dark) .rounded-3xl {
  border-radius: 18px !important;
}

html:not(.dark) .rounded-2xl {
  border-radius: 14px !important;
}

html:not(.dark) .rounded-xl {
  border-radius: 10px !important;
}

html:not(.dark) .text-slate-300,
html:not(.dark) .text-gray-300,
html:not(.dark) .text-gray-400 {
  color: var(--es-muted) !important;
}

html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-900 {
  background-color: #0f172a !important;
}

html:not(.dark) .bg-white\/10,
html:not(.dark) .bg-white\/5,
html:not(.dark) .bg-slate-100 {
  background-color: var(--es-surface-soft) !important;
}

#filtros {
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

#filtros::-webkit-scrollbar {
  display: none;
}

#filtros > .btn-interactivo-filtro {
  scroll-snap-align: start;
}

.mini-game-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--es-text);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mini-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.mini-game-card h3 {
  margin: 0;
  color: var(--es-text);
  font-size: 1.25rem;
  font-weight: 950;
}

.mini-game-card p {
  margin: 0;
  color: var(--es-muted);
  font-weight: 700;
  line-height: 1.55;
}

.mini-game-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--es-primary);
  font-weight: 950;
}

.mini-game-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 24px;
}

html.dark .mini-game-card {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.dark .mini-game-card h3 {
  color: #fff;
}

html.dark .mini-game-card p {
  color: #cbd5e1;
}

#minijuegos {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #fff7ed 100%);
}

html.dark #minijuegos {
  background: #020617;
}

.hero-empanada-bubble {
  max-width: 230px !important;
  padding: 12px 14px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  transform: rotate(4deg) translateY(8px) !important;
}

.hero-empanada-bubble #hero-empanada-emoji {
  font-size: 1.35rem !important;
  margin-bottom: 4px !important;
}

.hero-empanada-bubble #hero-empanada-text {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

.group:hover .hero-empanada-bubble {
  transform: rotate(7deg) translateY(4px) scale(1.03) !important;
}

.empanada-tooltip {
  transition: opacity 160ms ease, transform 160ms ease;
}

.btn-interactivo.es-touch-tip .empanada-tooltip,
.btn-interactivo:focus-within .empanada-tooltip {
  opacity: 1 !important;
  transform: translate(-50%, -100%) scale(1) !important;
}

section[id*="hot"] .fa-fire,
.fa-fire.text-red-500,
.fa-fire.text-orange-500 {
  color: #ef4444 !important;
  filter: drop-shadow(0 6px 12px rgba(239, 68, 68, 0.25));
}

.es-home-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--es-border);
  color: var(--es-text);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.es-home-fab:hover {
  color: var(--es-primary);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .es-home-fab {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .es-home-fab span {
    display: none;
  }

  .fixed.left-0.top-1\/2 {
    display: none !important;
  }

  .mini-game-card {
    min-height: 220px;
    padding: 20px;
  }

  .hero-empanada-bubble {
    right: 4px !important;
    bottom: 6px !important;
    max-width: 190px !important;
    padding: 10px 12px !important;
    opacity: 0.92;
  }

  .hero-empanada-bubble #hero-empanada-text {
    font-size: 0.74rem !important;
  }
}
