:root {
  color-scheme: light;
  --es-bg: #f8f3e8;
  --es-bg-soft: #fff8ed;
  --es-bg-tech: #eef4ff;
  --es-surface: #fffdf7;
  --es-surface-2: #fff7e6;
  --es-surface-glass: rgba(255, 253, 247, .88);
  --es-ink: #0f172a;
  --es-text: #1e293b;
  --es-muted: #64748b;
  --es-soft: #94a3b8;
  --es-line: rgba(148, 163, 184, .28);
  --es-line-warm: rgba(245, 158, 11, .30);
  --es-blue: #2563eb;
  --es-blue-2: #0ea5e9;
  --es-violet: #7c3aed;
  --es-gold: #f59e0b;
  --es-orange: #f97316;
  --es-coral: #fb7185;
  --es-green: #16a34a;
  --es-red: #dc2626;
  --es-radius-lg: 18px;
  --es-radius-xl: 28px;
  --es-shadow-soft: 0 18px 45px rgba(15, 23, 42, .10);
  --es-shadow-card: 0 10px 30px rgba(15, 23, 42, .08);
  --es-shadow-glow: 0 22px 60px rgba(37, 99, 235, .16);
}

html.dark {
  color-scheme: dark;
  --es-bg: #050816;
  --es-bg-soft: #0b1220;
  --es-bg-tech: #101827;
  --es-surface: rgba(15, 23, 42, .88);
  --es-surface-2: rgba(2, 6, 23, .92);
  --es-surface-glass: rgba(15, 23, 42, .78);
  --es-ink: #f8fafc;
  --es-text: #e2e8f0;
  --es-muted: #94a3b8;
  --es-soft: #64748b;
  --es-line: rgba(255, 255, 255, .10);
  --es-line-warm: rgba(245, 158, 11, .22);
  --es-blue: #60a5fa;
  --es-blue-2: #38bdf8;
  --es-violet: #a78bfa;
  --es-gold: #fbbf24;
  --es-orange: #fb923c;
  --es-coral: #fb7185;
  --es-green: #4ade80;
  --es-red: #f87171;
  --es-shadow-soft: 0 26px 90px rgba(0, 0, 0, .45);
  --es-shadow-card: 0 18px 42px rgba(0, 0, 0, .32);
  --es-shadow-glow: 0 22px 60px rgba(96, 165, 250, .16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--es-bg);
  scroll-padding-top: 96px;
}

body.light-theme,
html:not(.dark) body {
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, .16), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, .12), transparent 24rem),
    linear-gradient(180deg, var(--es-bg) 0%, #fffaf1 48%, #f3f7ff 100%) !important;
  color: var(--es-text) !important;
}

body.dark-theme,
html.dark body {
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 165, 250, .20), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(251, 146, 60, .12), transparent 24rem),
    linear-gradient(180deg, #050816 0%, #0b1220 58%, #020617 100%) !important;
  color: var(--es-text) !important;
}

body {
  overflow-x: hidden;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.glass-header,
header {
  background: var(--es-surface-glass) !important;
  border-bottom: 1px solid var(--es-line) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  backdrop-filter: blur(20px);
}

html.dark .glass-header,
html.dark header {
  box-shadow: 0 14px 42px rgba(0, 0, 0, .34);
}

.container {
  width: min(100% - 2rem, 1180px);
}

.product-card,
.es-game-card,
.mini-game-card,
#cartDrawer,
#checkoutModalContent,
#modalContent,
section .bg-white,
section [class*="dark:bg-brand-card"] {
  border-color: var(--es-line) !important;
}

.product-card {
  border-radius: 22px !important;
  background: linear-gradient(180deg, var(--es-surface) 0%, rgba(255, 255, 255, .94) 100%) !important;
  box-shadow: var(--es-shadow-card) !important;
  overflow: hidden !important;
  cursor: pointer;
}

html.dark .product-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, .92) 0%, rgba(2, 6, 23, .88) 100%) !important;
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--es-shadow-glow) !important;
}

.product-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .42);
  outline-offset: 4px;
}

.product-card img,
#modalContent img,
#checkoutModalContent img {
  object-fit: cover;
}

#filtros {
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.filter-btn,
.btn-interactivo-filtro button {
  border-radius: 999px !important;
  min-height: 44px;
}

input,
select,
textarea {
  background: var(--es-surface) !important;
  color: var(--es-text) !important;
  border-color: var(--es-line) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--es-muted) !important;
}

#cartDrawer {
  background: var(--es-surface) !important;
  color: var(--es-text) !important;
  transform: translateX(100%);
}

#cartDrawer.translate-x-0 {
  transform: translateX(0);
}

#cartDrawer.translate-x-full {
  transform: translateX(100%);
}

#checkoutModalContent,
#modalContent {
  background: var(--es-surface) !important;
  color: var(--es-text) !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 24px !important;
}

#checkoutModalContent,
#modalContent {
  max-height: min(90vh, 860px);
}

#checkoutModalContent p,
#checkoutModalContent li,
#modalContent p,
#modalContent li {
  color: var(--es-muted);
}

.es-minijuegos-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, .16), transparent 22rem),
    radial-gradient(circle at 85% 12%, rgba(124, 58, 237, .12), transparent 22rem),
    linear-gradient(180deg, rgba(255, 248, 237, .94), rgba(238, 244, 255, .86)) !important;
  border-block: 1px solid var(--es-line);
}

html.dark .es-minijuegos-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, .14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(167, 139, 250, .15), transparent 22rem),
    linear-gradient(180deg, #0b1220, #050816) !important;
}

.es-minijuegos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.es-game-card {
  position: relative;
  min-height: 300px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(255, 248, 237, .88)) !important;
  box-shadow: var(--es-shadow-card);
}

html.dark .es-game-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .9)) !important;
}

.es-game-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: .12;
  pointer-events: none;
  background: radial-gradient(circle at 30% 10%, currentColor, transparent 18rem);
}

.es-game-card--fiesta {
  color: var(--es-orange);
  border-color: rgba(249, 115, 22, .40) !important;
}

.es-game-card--fiesta::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 113, 133, .35) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, .38) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 72%, rgba(124, 58, 237, .25) 0 4px, transparent 5px);
  background-size: 120px 120px;
}

.es-game-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.es-game-card__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.es-game-card__badge--fiesta {
  background: rgba(249, 115, 22, .13);
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, .25);
}

html.dark .es-game-card__badge--fiesta {
  color: #fed7aa;
  background: rgba(249, 115, 22, .16);
}

.es-game-card__actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.es-game-card__icon-wrap--fiesta {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .65), transparent 32%),
    linear-gradient(135deg, rgba(249, 115, 22, .24), rgba(251, 113, 133, .18), rgba(124, 58, 237, .16));
  color: var(--es-orange);
  box-shadow: 0 14px 34px rgba(249, 115, 22, .20);
}

.es-game-card__actions .es-game-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.es-game-card__btn--fiesta {
  justify-content: center;
  background: linear-gradient(135deg, var(--es-orange), var(--es-coral), var(--es-violet));
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(249, 115, 22, .25);
}

.es-game-card__btn--demo {
  justify-content: center;
  background: rgba(22, 163, 74, .10);
  color: var(--es-green) !important;
  border: 1px solid rgba(22, 163, 74, .25);
}

.es-floating-actions {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

.es-product-page body,
body.light-theme {
  min-height: 100vh;
}

.es-home-fab {
  background: var(--es-surface) !important;
  color: var(--es-text) !important;
  border: 1px solid var(--es-line);
  box-shadow: var(--es-shadow-card);
}

.hero-empanada-bubble,
.es-hero-readable-bubble {
  background: rgba(255, 253, 247, .96) !important;
  background-color: rgba(255, 253, 247, .96) !important;
  background-image: none !important;
  color: #0f172a !important;
  border: 1px solid rgba(245, 158, 11, .34) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14) !important;
  backdrop-filter: blur(16px);
}

html:not(.dark) #inicio .hero-empanada-bubble.es-hero-readable-bubble[class*="rotate-6"] {
  background: rgba(255, 253, 247, .96) !important;
  background-color: rgba(255, 253, 247, .96) !important;
  background-image: none !important;
  color: #0f172a !important;
  border: 1px solid rgba(245, 158, 11, .34) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14) !important;
}

#hero-empanada-text {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
}

html.dark .hero-empanada-bubble,
html.dark .es-hero-readable-bubble {
  background: rgba(15, 23, 42, .90) !important;
  background-color: rgba(15, 23, 42, .90) !important;
  background-image: none !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38) !important;
}

html.dark #hero-empanada-text {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.dark .hero-empanada-bubble #hero-empanada-emoji {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

@media (max-width: 1024px) {
  .es-minijuegos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: min(100% - 1rem, 1180px);
  }

  .es-minijuegos-grid {
    grid-template-columns: 1fr;
  }

  .es-game-card {
    min-height: 250px;
    padding: 18px;
    border-radius: 18px;
  }

  .fixed.bottom-6.right-6,
  .fixed.right-6.bottom-6 {
    right: 12px !important;
    bottom: 12px !important;
    gap: 10px !important;
  }

  .fixed.bottom-6.right-6 button,
  .fixed.bottom-6.right-6 a {
    width: 48px;
    height: 48px;
    padding: 0 !important;
  }

  #cartDrawer {
    width: 100% !important;
    max-width: 100vw;
  }

  #checkoutModalContent,
  #modalContent {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 24px);
    border-radius: 18px !important;
  }
}

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

/* =========================================================
   EMPANADA STORE · VISUAL REFRESH 2026
   Una sola dirección visual para modo claro y oscuro.
   ========================================================= */

:root {
  --es-bg: #f6f3ec;
  --es-bg-alt: #eef3fb;
  --es-surface: #fffefa;
  --es-surface-raised: #ffffff;
  --es-surface-muted: #f2f4f8;
  --es-ink: #101828;
  --es-text: #29364a;
  --es-muted: #667085;
  --es-soft: #98a2b3;
  --es-line: rgba(16, 24, 40, .11);
  --es-line-strong: rgba(16, 24, 40, .18);
  --es-blue: #315efb;
  --es-blue-2: #0f8ce9;
  --es-violet: #7357ef;
  --es-gold: #f3a936;
  --es-orange: #ed7f2d;
  --es-green: #12a86b;
  --es-red: #df394b;
  --es-radius-sm: 12px;
  --es-radius-md: 18px;
  --es-radius-lg: 24px;
  --es-radius-xl: 34px;
  --es-shadow-soft: 0 18px 55px rgba(16, 24, 40, .09);
  --es-shadow-card: 0 10px 32px rgba(16, 24, 40, .08);
  --es-shadow-card-hover: 0 24px 58px rgba(28, 50, 94, .16);
  --es-header-height: 76px;
}

html.dark {
  --es-bg: #070b14;
  --es-bg-alt: #0a1120;
  --es-surface: #101725;
  --es-surface-raised: #141d2e;
  --es-surface-muted: #0c1320;
  --es-ink: #f8fafc;
  --es-text: #d8e0ec;
  --es-muted: #a2aec0;
  --es-soft: #718096;
  --es-line: rgba(255, 255, 255, .10);
  --es-line-strong: rgba(255, 255, 255, .16);
  --es-blue: #6d91ff;
  --es-blue-2: #49b6ff;
  --es-violet: #a48cff;
  --es-gold: #ffc761;
  --es-orange: #ff9a51;
  --es-green: #4dd39a;
  --es-red: #ff7181;
  --es-shadow-soft: 0 24px 70px rgba(0, 0, 0, .36);
  --es-shadow-card: 0 15px 42px rgba(0, 0, 0, .24);
  --es-shadow-card-hover: 0 26px 65px rgba(0, 0, 0, .38);
}

html {
  background: var(--es-bg);
  scroll-padding-top: calc(var(--es-header-height) + 18px);
}

body.es-polished,
body.es-polished.light-theme,
html.dark body.es-polished {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(243, 169, 54, .13), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(49, 94, 251, .12), transparent 28rem),
    var(--es-bg) !important;
  color: var(--es-text) !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
}

html:not(.dark) body.es-polished.light-theme {
  background-color: var(--es-bg) !important;
  background-image:
    radial-gradient(circle at 8% 3%, rgba(243, 169, 54, .13), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(49, 94, 251, .12), transparent 28rem),
    linear-gradient(180deg, #f6f3ec 0%, #f8f7f3 56%, #eef3fb 100%) !important;
  background-size: auto !important;
}

html.dark body.es-polished.dark-theme {
  background-color: var(--es-bg) !important;
  background-image:
    radial-gradient(circle at 10% 5%, rgba(109, 145, 255, .13), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(255, 154, 81, .08), transparent 25rem),
    linear-gradient(180deg, #070b14 0%, #090f1c 54%, #050811 100%) !important;
  background-size: auto !important;
}

html.dark body.es-polished {
  background:
    radial-gradient(circle at 10% 5%, rgba(109, 145, 255, .13), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(255, 154, 81, .08), transparent 25rem),
    linear-gradient(180deg, #070b14 0%, #090f1c 54%, #050811 100%) !important;
}

.es-polished h1,
.es-polished h2,
.es-polished h3,
.es-polished h4,
.es-polished summary {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
}

.es-polished a,
.es-polished button,
.es-polished input,
.es-polished select {
  -webkit-tap-highlight-color: transparent;
}

.es-polished button,
.es-polished a {
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.container {
  width: min(100% - 2.5rem, 1240px) !important;
  max-width: 1240px !important;
}

.es-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999999;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--es-ink);
  color: var(--es-surface) !important;
  font-weight: 800;
  transform: translateY(-150%);
}

.es-skip-link:focus {
  transform: translateY(0);
}

/* Navegación */
.es-polished .glass-header,
.es-polished header {
  min-height: var(--es-header-height);
  background: color-mix(in srgb, var(--es-surface) 86%, transparent) !important;
  border-bottom: 1px solid var(--es-line) !important;
  box-shadow: 0 10px 35px rgba(16, 24, 40, .07) !important;
  backdrop-filter: blur(22px) saturate(140%);
}

html:not(.dark) body.es-polished .glass-header,
html:not(.dark) body.es-polished header {
  background: rgba(255, 254, 250, .90) !important;
  border-bottom-color: var(--es-line) !important;
}

html.dark .es-polished .glass-header,
html.dark .es-polished header {
  background: rgba(7, 11, 20, .84) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .28) !important;
}

.es-polished header .container {
  padding-inline: 0 !important;
}

.es-polished header .container > div {
  min-height: 52px;
}

.es-polished header nav {
  margin-left: 18px;
  gap: clamp(16px, 1.7vw, 28px) !important;
}

.es-polished header nav a {
  position: relative;
  color: var(--es-muted) !important;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.es-polished header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--es-blue), var(--es-violet));
  transition: right .22s ease;
}

.es-polished header nav a:hover {
  color: var(--es-ink) !important;
}

.es-polished header nav a:hover::after {
  right: 0;
}

.es-polished header img {
  filter: drop-shadow(0 8px 14px rgba(237, 127, 45, .2));
}

html.dark body.es-polished header .container > div > a:first-child > span {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.dark body.es-polished header .container > div > a:first-child > span .text-gradient {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

html.dark body.es-polished header nav a {
  color: #aeb9ca !important;
}

.es-polished header button,
.es-polished header a[href*="wa.me"] {
  box-shadow: none !important;
}

/* Elementos flotantes */
.es-social-rail {
  display: none !important;
}

.es-floating-dock {
  display: none !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  gap: 7px !important;
  padding: 7px;
  border: 1px solid var(--es-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--es-surface) 82%, transparent);
  box-shadow: var(--es-shadow-soft);
  backdrop-filter: blur(18px);
}

.es-floating-dock > button,
.es-floating-dock > a {
  display: flex;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  min-height: 46px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border-radius: 15px !important;
  box-shadow: none !important;
}

.es-floating-dock > button:hover,
.es-floating-dock > a:hover {
  transform: translateY(-2px) scale(1.03) !important;
}

.es-floating-dock i {
  font-size: 18px !important;
}

/* Hero */
.es-hero {
  position: relative;
  min-height: min(850px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--es-header-height) + 70px) 0 84px;
  overflow: hidden;
  isolation: isolate;
}

.es-hero::before {
  content: "";
  position: absolute;
  inset: var(--es-header-height) 0 0;
  z-index: -2;
  opacity: .55;
  background-image:
    linear-gradient(var(--es-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--es-line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%);
}

.es-hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.es-hero-orb--one {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -180px;
  background: radial-gradient(circle, rgba(243, 169, 54, .22), transparent 70%);
}

.es-hero-orb--two {
  width: 560px;
  height: 560px;
  top: 5%;
  right: -190px;
  background: radial-gradient(circle, rgba(49, 94, 251, .20), transparent 70%);
}

.es-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(52px, 7vw, 100px);
  align-items: center;
}

.es-hero-copy {
  max-width: 700px;
}

.es-eyebrow,
.es-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--es-blue) !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.es-eyebrow {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--es-blue) 28%, var(--es-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--es-surface) 80%, transparent);
  box-shadow: 0 8px 24px rgba(49, 94, 251, .08);
}

.es-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--es-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--es-green) 15%, transparent);
}

.es-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--es-ink) !important;
  font-size: clamp(3.25rem, 5.35vw, 5.3rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.es-hero h1 span {
  display: inline-block;
  padding-bottom: .08em;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(105deg, var(--es-blue) 5%, var(--es-violet) 58%, var(--es-orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.es-hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--es-text) !important;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.es-hero-support {
  max-width: 625px;
  margin: 14px 0 0;
  color: var(--es-muted) !important;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.75;
}

.es-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.es-btn {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 21px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.es-btn:hover {
  transform: translateY(-2px);
}

.es-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #1b2a4a, #315efb 70%, #7357ef);
  box-shadow: 0 15px 30px rgba(49, 94, 251, .20);
}

.es-btn--whatsapp {
  color: #08764b !important;
  border: 1px solid rgba(18, 168, 107, .28);
  background: color-mix(in srgb, var(--es-green) 10%, var(--es-surface));
}

html.dark .es-btn--whatsapp {
  color: #72e5b5 !important;
}

.es-hero .empanada-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
  margin: 32px 0 0;
}

.es-hero .empanada-trust-item {
  display: flex;
  min-height: 82px;
  padding: 15px;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid var(--es-line) !important;
  border-radius: 16px;
  background: color-mix(in srgb, var(--es-surface) 78%, transparent) !important;
  box-shadow: none !important;
}

.es-hero .empanada-trust-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--es-surface-muted);
  font-size: 18px;
}

.es-hero .empanada-trust-item p {
  margin: 0;
  color: var(--es-ink) !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.es-hero .empanada-trust-item small {
  display: block;
  margin-top: 3px;
  color: var(--es-muted) !important;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.es-hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  border: 1px solid var(--es-line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(145deg, rgba(49, 94, 251, .13), rgba(115, 87, 239, .08) 55%, rgba(243, 169, 54, .16));
  box-shadow: var(--es-shadow-soft);
  cursor: pointer;
  outline: none;
}

html.dark .es-hero-visual {
  background:
    radial-gradient(circle at 50% 38%, rgba(109, 145, 255, .18), transparent 42%),
    linear-gradient(145deg, rgba(109, 145, 255, .09), rgba(164, 140, 255, .08) 55%, rgba(255, 154, 81, .08));
}

.es-hero-visual:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--es-blue) 45%, transparent);
  outline-offset: 5px;
}

.es-hero-stage {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.8), transparent 24%),
    linear-gradient(145deg, rgba(243, 169, 54, .32), rgba(49, 94, 251, .28));
  opacity: .85;
  filter: blur(.2px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 40px 80px rgba(49,94,251,.12);
}

.es-hero-mascot {
  position: relative;
  z-index: 2;
  width: min(88%, 465px);
  height: 465px;
  display: grid;
  place-items: center;
}

.es-hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  filter: drop-shadow(0 28px 32px rgba(16, 24, 40, .22));
}

.es-stock-card {
  position: absolute;
  z-index: 5;
  top: 26px;
  left: 26px;
  display: flex;
  min-width: 205px;
  padding: 13px 15px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--es-line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--es-surface) 88%, transparent);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .12);
  backdrop-filter: blur(14px);
}

.es-stock-card__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--es-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--es-green) 15%, transparent);
}

.es-stock-card strong,
.es-stock-card small {
  display: block;
}

.es-stock-card strong {
  color: var(--es-ink);
  font-size: 12px;
  font-weight: 850;
}

.es-stock-card small {
  color: var(--es-muted);
  font-size: 10px;
  font-weight: 650;
}

.es-hero .hero-empanada-bubble,
.es-hero .es-hero-readable-bubble {
  position: absolute;
  z-index: 6;
  right: 30px;
  bottom: 28px;
  display: flex;
  width: min(300px, 80%);
  min-height: 78px;
  padding: 15px 17px;
  align-items: center;
  gap: 12px;
  transform: rotate(2deg);
  border: 1px solid var(--es-line-strong) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--es-surface) 94%, transparent) !important;
  color: var(--es-ink) !important;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .16) !important;
  text-align: left;
  backdrop-filter: blur(16px);
}

.es-hero #hero-empanada-emoji {
  flex: 0 0 auto;
  font-size: 27px;
}

.es-hero #hero-empanada-text {
  color: var(--es-ink) !important;
  -webkit-text-fill-color: var(--es-ink) !important;
  font-size: 12px;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

/* Destacados */
.es-popular {
  padding-block: 68px !important;
  background: color-mix(in srgb, var(--es-bg-alt) 78%, transparent) !important;
  border-color: var(--es-line) !important;
}

.es-popular h2 {
  color: var(--es-ink) !important;
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
}

.es-popular h2 span {
  color: var(--es-orange) !important;
}

.es-popular .grid > div {
  padding: 22px 14px !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 18px !important;
  background: var(--es-surface) !important;
  box-shadow: var(--es-shadow-card) !important;
}

.es-popular .grid > div:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--es-blue) 35%, var(--es-line)) !important;
  box-shadow: var(--es-shadow-card-hover) !important;
}

.es-popular .grid > div p:last-child {
  color: var(--es-ink) !important;
}

/* Catálogo */
.es-catalog-section {
  padding-block: 104px !important;
}

.es-section-kicker {
  margin-bottom: 12px;
}

.es-section-kicker--center {
  display: flex;
  justify-content: center;
  width: max-content;
  margin-inline: auto;
}

.es-catalog-section h2,
#como-comprar h2,
#garantias h2,
#tips h2,
#contacto h2 {
  color: var(--es-ink) !important;
}

.es-catalog-section > .container > .flex:first-child {
  gap: 30px !important;
  margin-bottom: 34px !important;
}

.es-catalog-toolbar {
  position: relative;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 14px !important;
  gap: 14px !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 22px !important;
  background: var(--es-surface) !important;
  box-shadow: var(--es-shadow-card) !important;
}

.es-catalog-toolbar > .flex:last-child {
  width: min(100%, 470px) !important;
  align-self: flex-end;
}

.btn-interactivo-filtro .empanada-tooltip,
.product-card .empanada-tooltip,
.empanada-tooltip,
[id^="empanadaTooltipV"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#filtros {
  gap: 7px !important;
  padding: 0 !important;
}

.filter-btn {
  min-height: 42px !important;
  padding: 9px 15px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--es-muted) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 780 !important;
}

.filter-btn:hover {
  background: var(--es-surface-muted) !important;
  color: var(--es-ink) !important;
}

.filter-btn.active,
.filter-btn.bg-brand-electric {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--es-blue), var(--es-violet)) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(49, 94, 251, .20) !important;
}

.es-catalog-toolbar input,
.es-catalog-toolbar select {
  min-height: 44px;
  border: 1px solid var(--es-line) !important;
  border-radius: 12px !important;
  background: var(--es-surface-muted) !important;
  color: var(--es-ink) !important;
  font-size: 12px !important;
  font-weight: 650;
  box-shadow: none !important;
}

.es-catalog-toolbar input:focus,
.es-catalog-toolbar select:focus {
  border-color: color-mix(in srgb, var(--es-blue) 55%, var(--es-line)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--es-blue) 12%, transparent) !important;
}

.es-catalog-meta {
  display: flex;
  margin: 0 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.es-catalog-meta p {
  margin: 0;
  color: var(--es-muted);
  font-size: 13px;
  font-weight: 650;
}

.es-catalog-meta p strong {
  color: var(--es-ink);
  font-size: 15px;
  font-weight: 850;
}

.es-special-toggle {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--es-line) !important;
  border-radius: 12px;
  background: var(--es-surface) !important;
  color: var(--es-muted) !important;
  font-size: 12px;
  font-weight: 750;
}

.es-special-toggle:hover,
.es-special-toggle.is-open {
  border-color: color-mix(in srgb, var(--es-blue) 38%, var(--es-line)) !important;
  color: var(--es-ink) !important;
  box-shadow: 0 8px 24px rgba(49, 94, 251, .10);
}

.es-special-toggle small {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--es-surface-muted);
  color: var(--es-ink);
  font-size: 10px;
  font-weight: 850;
}

#product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 23px !important;
  background: var(--es-surface) !important;
  box-shadow: var(--es-shadow-card) !important;
  cursor: pointer;
  transform: translateY(0) !important;
}

html.dark .product-card {
  background: var(--es-surface) !important;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--es-blue) 42%, var(--es-line)) !important;
  box-shadow: var(--es-shadow-card-hover) !important;
  transform: translateY(-7px) !important;
}

.es-product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0e17;
}

.es-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.75,.2,1), filter .3s ease;
}

.product-card:hover .es-product-media img {
  transform: scale(1.045);
}

.es-product-media__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 10, 20, .40));
}

.es-product-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  min-height: 28px;
  display: inline-flex;
  padding: 6px 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  color: #fff !important;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}

.es-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 21px;
}

.es-product-meta {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.es-product-meta > span {
  color: var(--es-blue) !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.es-product-meta small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--es-muted) !important;
  font-size: 9px;
  font-weight: 750;
}

.product-card h3,
html.dark .product-card h3 {
  min-height: 2.7em;
  margin: 0;
  color: var(--es-ink) !important;
  -webkit-text-fill-color: var(--es-ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.es-product-description,
html.dark .es-product-description {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 13px 0 18px !important;
  overflow: hidden;
  color: var(--es-muted) !important;
  -webkit-text-fill-color: var(--es-muted) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}

.es-product-purchase {
  display: flex;
  margin-top: auto;
  padding-top: 16px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--es-line);
}

.es-product-price small,
.es-product-price strong {
  display: block;
}

.es-product-price small {
  margin-bottom: 2px;
  color: var(--es-muted) !important;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.es-product-price strong {
  max-width: 150px;
  color: var(--es-ink) !important;
  -webkit-text-fill-color: var(--es-ink) !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.es-product-add {
  min-height: 42px;
  display: inline-flex;
  padding: 10px 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--es-blue), var(--es-violet)) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(49, 94, 251, .18);
  text-decoration: none;
}

.es-product-add--review {
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  box-shadow: 0 10px 22px rgba(5, 150, 105, .2);
}

.es-global-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.es-global-terms-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--es-line);
  border-radius: 14px;
  background: var(--es-surface-muted);
  color: var(--es-text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.es-global-terms-grid b {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111827;
  background: var(--es-gold);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .es-global-terms-grid { grid-template-columns: 1fr; }
}

.es-product-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(49, 94, 251, .26);
}

.es-product-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.es-product-links a {
  min-height: 38px;
  display: inline-flex;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--es-line);
  border-radius: 11px;
  background: var(--es-surface-muted);
  color: var(--es-text) !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.es-product-links a:last-child {
  border-color: color-mix(in srgb, var(--es-green) 30%, var(--es-line));
  background: color-mix(in srgb, var(--es-green) 8%, var(--es-surface));
  color: var(--es-green) !important;
}

.es-product-links a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--es-blue) 35%, var(--es-line));
}

/* Secciones informativas */
#como-comprar,
#garantias,
#tips,
#terminos {
  border-top: 1px solid var(--es-line);
}

#como-comprar {
  background: color-mix(in srgb, var(--es-bg-alt) 72%, transparent) !important;
}

#como-comprar .grid > div,
#garantias .grid > div,
#tips .grid > div,
#terminos .container > div {
  border: 1px solid var(--es-line) !important;
  border-radius: var(--es-radius-lg) !important;
  background: var(--es-surface) !important;
  box-shadow: var(--es-shadow-card) !important;
}

#como-comprar .grid > div {
  min-height: 250px;
  padding: 28px 20px !important;
}

#como-comprar .grid > div:hover,
#garantias .grid > div:hover,
#tips .grid > div:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--es-blue) 32%, var(--es-line)) !important;
  box-shadow: var(--es-shadow-card-hover) !important;
}

#como-comprar h4,
#garantias h3,
#tips h4,
#terminos h2,
#terminos li {
  color: var(--es-ink) !important;
}

#como-comprar p,
#garantias p,
#tips p {
  color: var(--es-muted) !important;
}

#garantias {
  background: transparent !important;
}

#garantias .grid > div,
#tips .grid > div {
  padding: 27px !important;
}

#terminos .container > div {
  padding: clamp(28px, 5vw, 54px) !important;
}

#terminos li {
  border-color: var(--es-line) !important;
  background: var(--es-surface-muted) !important;
  font-size: 15px;
}

#contacto {
  padding-block: 115px !important;
}

#contacto > .container {
  padding: clamp(42px, 7vw, 86px) !important;
  border: 1px solid var(--es-line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 10%, rgba(243, 169, 54, .14), transparent 20rem),
    radial-gradient(circle at 85% 80%, rgba(49, 94, 251, .16), transparent 25rem),
    var(--es-surface);
  box-shadow: var(--es-shadow-soft);
}

#contacto > .absolute:first-child {
  display: none;
}

#contacto h2 {
  font-size: clamp(2.7rem, 5vw, 4.6rem) !important;
}

#contacto p {
  color: var(--es-muted) !important;
}

/* Footer, modales y carrito */
.es-polished footer {
  padding-top: 86px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(49, 94, 251, .12), transparent 28rem),
    #050811 !important;
}

.es-polished footer h2,
.es-polished footer h3,
.es-polished footer h4,
.es-polished footer summary {
  color: #f8fafc !important;
}

.es-polished footer details {
  border-color: rgba(255,255,255,.10) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.045) !important;
}

.es-polished footer details > div {
  color: #bdc7d6 !important;
}

#cartDrawer,
#checkoutModalContent,
#modalContent {
  background: var(--es-surface) !important;
  color: var(--es-text) !important;
  border-color: var(--es-line) !important;
}

#cartOverlay {
  z-index: 1850 !important;
}

#cartDrawer {
  top: 0 !important;
  z-index: 1900 !important;
}

#checkoutModal,
#serviceModal {
  z-index: 2100 !important;
}

#cartDrawer h3,
#cartDrawer h4,
#checkoutModalContent h3,
#checkoutModalContent h4,
#modalContent h3,
#modalContent h4 {
  color: var(--es-ink) !important;
}

#cartDrawer > div:first-child,
#cartDrawer > div:last-child {
  border-color: var(--es-line) !important;
  background: var(--es-surface-raised) !important;
}

#cartDrawer > div:first-child h3,
#cartDrawer > div:first-child h3 span,
#cartItemsContainer h4 {
  color: var(--es-ink) !important;
  -webkit-text-fill-color: var(--es-ink) !important;
}

#cartItemsContainer p,
#cartItemsContainer .text-slate-500,
#cartItemsContainer .text-gray-500,
#cartItemsContainer .text-gray-600 {
  color: var(--es-muted) !important;
  -webkit-text-fill-color: var(--es-muted) !important;
}

#cartDrawer > div:last-child .text-slate-800,
#cartDrawer > div:last-child .dark\:text-white,
#cartDrawer > div:last-child > div:first-child > span:first-child {
  color: var(--es-ink) !important;
  -webkit-text-fill-color: var(--es-ink) !important;
}

/* Contraste defensivo: evita texto oscuro sobre fondo oscuro. */
html.dark .es-polished section h1,
html.dark .es-polished section h2,
html.dark .es-polished section h3,
html.dark .es-polished section h4,
html.dark .es-polished section .text-slate-900,
html.dark .es-polished section .text-slate-950,
html.dark .es-polished section .text-slate-800 {
  color: var(--es-ink) !important;
}

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

/* Responsive */
@media (max-width: 1180px) {
  .es-polished header nav a:nth-of-type(3),
  .es-polished header nav a:nth-of-type(7) {
    display: none;
  }

  .es-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, .8fr);
    gap: 42px;
  }

  .es-hero-visual {
    min-height: 500px;
  }

  #product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1350px) {
  .es-polished header nav a:nth-of-type(3),
  .es-polished header nav a:nth-of-type(7) {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --es-header-height: 70px;
  }

  .es-polished header nav {
    margin-left: 0;
  }

  .es-floating-dock {
    display: flex !important;
    right: auto !important;
    left: 50% !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    flex-direction: row !important;
    transform: translateX(-50%);
    border-radius: 18px;
  }

  body .fixed.bottom-6.right-6.es-floating-dock,
  body .fixed.right-6.bottom-6.es-floating-dock {
    right: auto !important;
    left: 50% !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%);
  }

  #mobileNav {
    position: fixed !important;
    top: calc(var(--es-header-height) + 8px) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - var(--es-header-height) - 22px);
    overflow-y: auto;
    z-index: 45 !important;
    border: 1px solid var(--es-line) !important;
    border-radius: 20px;
    background: color-mix(in srgb, var(--es-surface) 96%, transparent) !important;
    box-shadow: var(--es-shadow-soft);
    backdrop-filter: blur(22px);
  }

  #mobileNav > div {
    padding: 22px !important;
    gap: 18px;
  }

  #mobileNav a {
    color: var(--es-text) !important;
  }

  #mobileNav a[href*="wa.me"] {
    color: var(--es-green) !important;
  }

  .es-hero {
    min-height: auto;
    padding-top: calc(var(--es-header-height) + 54px);
  }

  .es-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .es-hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .es-hero-lead,
  .es-hero-support {
    margin-inline: auto;
  }

  .es-hero-actions {
    justify-content: center;
  }

  .es-hero .empanada-trust-strip {
    margin-inline: auto;
  }

  .es-hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .es-catalog-toolbar {
    align-items: stretch !important;
  }

  #filtros {
    width: 100% !important;
  }

  .es-catalog-toolbar > .flex:last-child {
    width: 100% !important;
  }

  .es-catalog-toolbar > .flex:last-child > div:first-child {
    flex: 1;
    width: auto !important;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, 1240px) !important;
  }

  .es-hero {
    padding-bottom: 62px;
  }

  .es-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .es-hero-lead {
    font-size: 1.05rem;
  }

  .es-hero-actions {
    flex-direction: column;
  }

  .es-btn {
    width: 100%;
  }

  .es-hero .empanada-trust-strip {
    grid-template-columns: 1fr;
  }

  .es-hero .empanada-trust-item {
    min-height: 68px;
  }

  .es-hero-visual {
    min-height: 430px;
    border-radius: 28px;
  }

  .es-hero-mascot {
    width: 88%;
    height: 370px;
  }

  .es-stock-card {
    top: 15px;
    left: 15px;
  }

  .es-hero .hero-empanada-bubble,
  .es-hero .es-hero-readable-bubble {
    right: 10px;
    bottom: 14px;
    width: min(275px, 86%);
  }

  .es-popular .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .es-catalog-section {
    padding-block: 78px !important;
  }

  .es-catalog-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .es-special-toggle {
    width: 100%;
    justify-content: center;
  }

  #product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .product-card {
    min-height: 490px;
  }

  .es-product-body {
    padding: 17px;
  }

  .es-product-meta small {
    display: none;
  }

  .product-card h3,
  html.dark .product-card h3 {
    font-size: 17px !important;
  }

  .es-product-price strong {
    font-size: 14px;
  }

  .es-product-add span {
    display: none;
  }

  #contacto {
    padding-block: 78px !important;
  }

  #contacto > .container {
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  #product-grid {
    grid-template-columns: 1fr !important;
  }

  .product-card {
    min-height: 0;
  }

  .es-product-description {
    min-height: auto;
  }

  .es-product-add span,
  .es-product-meta small {
    display: inline;
  }

  .es-floating-dock {
    right: auto !important;
    left: 50% !important;
    bottom: 10px !important;
    padding: 6px;
    transform: translateX(-50%);
  }

  .es-floating-dock > button,
  .es-floating-dock > a {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px;
    min-height: 43px;
  }
}

/* =========================================================
   AJUSTE DE LEGIBILIDAD Y PROFUNDIDAD · AGOSTO 2026
   Capa puntual para catálogo, controles, header y dark mode.
   ========================================================= */

/* Aprovecha pantallas amplias sin convertir las tarjetas en columnas angostas. */
.container {
  width: min(92vw, 1680px) !important;
  max-width: 1680px !important;
}

.es-polished header .container > div {
  min-height: 54px;
}

.es-polished header nav a {
  font-size: clamp(.84rem, .75rem + .12vw, .94rem);
  line-height: 1.25;
}

.es-polished header .container > div > a:first-child > span {
  font-size: clamp(1.3rem, 1.08rem + .32vw, 1.62rem) !important;
  line-height: 1;
}

.es-catalog-section > .container > .flex:first-child h2 {
  font-size: clamp(2.25rem, 1.5rem + 1.45vw, 3.35rem) !important;
  line-height: 1.08 !important;
}

.es-catalog-section > .container > .flex:first-child p {
  font-size: clamp(1rem, .92rem + .15vw, 1.12rem) !important;
  line-height: 1.6;
}

.es-catalog-toolbar {
  padding: clamp(15px, 1.15vw, 20px) !important;
  gap: 16px !important;
}

#filtros {
  gap: 9px !important;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

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

.filter-btn {
  min-height: 46px !important;
  padding: 10px 17px !important;
  font-size: clamp(.82rem, .76rem + .1vw, .9rem) !important;
  line-height: 1.2;
}

.es-catalog-toolbar input,
.es-catalog-toolbar select {
  min-height: 48px;
  font-size: clamp(.86rem, .8rem + .1vw, .94rem) !important;
  line-height: 1.25;
}

.es-catalog-meta p {
  font-size: clamp(.88rem, .82rem + .09vw, .96rem);
}

.es-catalog-meta p strong {
  font-size: clamp(1rem, .93rem + .12vw, 1.1rem);
}

.es-special-toggle {
  min-height: 46px;
  padding: 10px 14px;
  font-size: clamp(.82rem, .77rem + .08vw, .9rem);
}

#product-grid {
  grid-template-columns: repeat(4, minmax(320px, 1fr)) !important;
  gap: clamp(20px, 1.35vw, 26px) !important;
}

.product-card {
  min-height: 548px;
}

.es-product-body {
  padding: clamp(20px, 1.35vw, 25px);
}

.es-product-meta {
  margin-bottom: 12px;
}

.es-product-meta > span {
  font-size: clamp(.78rem, .72rem + .08vw, .84rem);
  letter-spacing: .12em;
}

.es-product-meta small {
  font-size: clamp(.72rem, .68rem + .07vw, .79rem);
}

.product-card h3,
html.dark .product-card h3 {
  min-height: 2.55em;
  font-size: clamp(1.1rem, .91rem + .28vw, 1.28rem) !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

.es-product-description,
html.dark .es-product-description {
  min-height: 4.65em;
  margin: 13px 0 19px !important;
  font-size: clamp(.94rem, .87rem + .1vw, 1rem) !important;
  line-height: 1.55 !important;
}

.es-product-price small {
  font-size: clamp(.7rem, .66rem + .07vw, .77rem);
}

.es-product-price strong {
  max-width: 180px;
  font-size: clamp(1.08rem, .94rem + .22vw, 1.26rem);
}

.es-product-add {
  min-height: 46px;
  padding: 11px 15px;
  font-size: clamp(.84rem, .78rem + .1vw, .93rem);
}

.es-product-links a {
  min-height: 42px;
  padding: 9px 11px;
  font-size: clamp(.82rem, .77rem + .08vw, .9rem);
}

/* Dark navy con superficies separadas y luz ambiental suave. */
html.dark {
  --es-bg: #07111f;
  --es-bg-alt: #0b1628;
  --es-surface: #111f33;
  --es-surface-raised: #16263d;
  --es-surface-muted: #0d1a2d;
  --es-ink: #f8fafc;
  --es-text: #e2e8f0;
  --es-muted: #bdc9d8;
  --es-soft: #8fa0b6;
  --es-line: rgba(148, 163, 184, .17);
  --es-line-strong: rgba(125, 211, 252, .24);
  --es-blue: #7dd3fc;
  --es-blue-2: #60a5fa;
  --es-violet: #a78bfa;
  --es-green: #6ee7b7;
  --es-shadow-soft: 0 24px 78px rgba(2, 8, 23, .42);
  --es-shadow-card: 0 18px 46px rgba(2, 8, 23, .28), 0 1px 0 rgba(255, 255, 255, .035) inset;
  --es-shadow-card-hover: 0 28px 72px rgba(2, 8, 23, .48), 0 0 34px rgba(56, 189, 248, .09);
}

html.dark body.es-polished,
html.dark body.es-polished.dark-theme {
  background-color: #07111f !important;
  background-image:
    radial-gradient(circle at 9% 7%, rgba(56, 189, 248, .15), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, .13), transparent 30rem),
    radial-gradient(circle at 52% 76%, rgba(14, 165, 233, .07), transparent 38rem),
    linear-gradient(145deg, #07111f 0%, #0b1628 48%, #081321 100%) !important;
  background-attachment: fixed !important;
}

html.dark .es-polished .glass-header,
html.dark .es-polished header {
  background: linear-gradient(90deg, rgba(7, 17, 31, .93), rgba(13, 28, 48, .87), rgba(9, 20, 36, .93)) !important;
  border-bottom-color: rgba(125, 211, 252, .16) !important;
  box-shadow: 0 14px 42px rgba(2, 8, 23, .34), 0 1px 0 rgba(255, 255, 255, .035) inset !important;
  backdrop-filter: blur(20px) saturate(145%);
}

html.dark body.es-polished header nav a {
  color: #c4cfdd !important;
}

html.dark body.es-polished header nav a:hover {
  color: #f8fafc !important;
  text-shadow: 0 0 18px rgba(125, 211, 252, .28);
}

html.dark .es-catalog-section {
  background:
    radial-gradient(circle at 0 16%, rgba(56, 189, 248, .08), transparent 28rem),
    radial-gradient(circle at 100% 76%, rgba(167, 139, 250, .08), transparent 32rem),
    linear-gradient(180deg, rgba(11, 22, 40, .58), rgba(7, 17, 31, .32)) !important;
}

html.dark .es-catalog-toolbar {
  border-color: rgba(125, 211, 252, .16) !important;
  background: linear-gradient(145deg, rgba(17, 31, 51, .96), rgba(12, 27, 46, .94)) !important;
  box-shadow: 0 20px 50px rgba(2, 8, 23, .32), 0 1px 0 rgba(255, 255, 255, .04) inset !important;
}

html.dark .es-catalog-toolbar input,
html.dark .es-catalog-toolbar select,
html.dark .es-special-toggle {
  border-color: rgba(148, 163, 184, .2) !important;
  background: #13243a !important;
  color: #edf5ff !important;
}

html.dark .es-catalog-toolbar input::placeholder {
  color: #91a4bb !important;
}

html.dark .filter-btn {
  color: #c2cedd !important;
}

html.dark .filter-btn:hover {
  background: rgba(125, 211, 252, .08) !important;
  color: #f8fafc !important;
}

html.dark .product-card {
  border-color: rgba(148, 163, 184, .16) !important;
  background: linear-gradient(155deg, #14253b 0%, #101e31 55%, #0d192a 100%) !important;
  box-shadow: var(--es-shadow-card) !important;
}

html.dark .product-card:hover {
  border-color: rgba(125, 211, 252, .32) !important;
  box-shadow: var(--es-shadow-card-hover) !important;
}

html.dark .es-product-media {
  background: #091525;
}

html.dark .product-card h3 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.dark .es-product-description {
  color: #c8d4e3 !important;
  -webkit-text-fill-color: #c8d4e3 !important;
}

html.dark .es-product-meta > span {
  color: #7dd3fc !important;
}

html.dark .es-product-price strong {
  color: #6ee7b7 !important;
  -webkit-text-fill-color: #6ee7b7 !important;
}

html.dark .es-product-links a {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(8, 21, 38, .72);
  color: #e2e8f0 !important;
}

html.dark .es-product-links a:last-child {
  border-color: rgba(110, 231, 183, .24);
  background: rgba(16, 185, 129, .09);
  color: #6ee7b7 !important;
}

@media (min-width: 1280px) {
  .es-catalog-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
  }

  .es-catalog-toolbar > .flex:last-child {
    width: min(100%, 500px) !important;
    align-self: center;
  }
}

@media (min-width: 1480px) {
  #product-grid {
    grid-template-columns: repeat(4, minmax(320px, 1fr)) !important;
  }
}

@media (min-width: 1100px) and (max-width: 1479px) {
  #product-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr)) !important;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  #product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  .container {
    width: min(calc(100% - 1.25rem), 1680px) !important;
  }

  .es-polished header .container {
    padding-inline: 0 !important;
  }

  .es-polished header .container > div > a:first-child {
    min-width: 0;
    gap: 8px !important;
  }

  .es-polished header .container > div > a:first-child > div {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
  }

  .es-polished header .container > div > a:first-child > span {
    max-width: min(48vw, 205px);
    overflow: hidden;
    font-size: clamp(1.05rem, 4.9vw, 1.3rem) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .es-catalog-section {
    padding-block: 68px !important;
  }

  .es-catalog-toolbar {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  #filtros {
    width: 100% !important;
    padding-bottom: 3px !important;
    overflow-x: auto !important;
  }

  .es-catalog-toolbar > .flex:last-child {
    width: 100% !important;
    flex-direction: column !important;
  }

  .es-catalog-toolbar > .flex:last-child > div {
    width: 100% !important;
  }

  .es-catalog-toolbar input,
  .es-catalog-toolbar select {
    width: 100% !important;
    min-height: 50px;
    font-size: 16px !important;
  }

  #product-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .product-card {
    min-height: 0;
  }

  .es-product-body {
    padding: 20px;
  }

  .product-card h3,
  html.dark .product-card h3 {
    min-height: 0;
    font-size: clamp(1.16rem, 4.7vw, 1.28rem) !important;
  }

  .es-product-description,
  html.dark .es-product-description {
    min-height: 0;
    font-size: clamp(.96rem, 3.9vw, 1rem) !important;
  }

  .es-product-add,
  .es-product-links a {
    min-height: 46px;
  }
}
