@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
}

:root,
html[data-tema="1"] {
  --wine: #8E1B3D;
  --wine-dark: #6b1430;
  --wine-bright: #a32248;
  --wine-rgb: 142, 27, 61;
  --wine-dark-rgb: 107, 20, 48;
  --green: #2F6F4E;
  --green-light: #3d8a62;
  --green-rgb: 47, 111, 78;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --ink: #1a1416;
  --muted: #5c5256;
  --white: #ffffff;
  --bar: #141012;
  --ok-soft: #e8f3ec;
  --on-wine: #ffffff;
  --on-green: #ffffff;
  --fg-accent: var(--wine);
  --fg-accent-dark: var(--wine-dark);
  --fg-ok: var(--green);
  --shadow: 0 8px 32px rgba(26, 20, 22, 0.12);
  --radius: 12px;
  --header-h: 4.25rem;
  --rail-h: 0px;
  --search-h: 0px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-tema="2"] {
  --wine: #FFD000;
  --wine-dark: #E6BB00;
  --wine-bright: #FFD000;
  --wine-rgb: 255, 208, 0;
  --wine-dark-rgb: 230, 187, 0;
  --green: #C41E3A;
  --green-light: #D63D56;
  --green-rgb: 196, 30, 58;
  --ok-soft: #fde8eb;
  --on-wine: #1a1416;
  --fg-accent: #C41E3A;
  --fg-accent-dark: #9E1830;
  --fg-ok: #1a1416;
}
html[data-tema="3"] {
  --wine: #D01218;
  --wine-dark: #B01016;
  --wine-bright: #D01218;
  --wine-rgb: 208, 18, 24;
  --wine-dark-rgb: 176, 16, 22;
  --green: #FFD000;
  --green-light: #FFD000;
  --green-rgb: 255, 208, 0;
  --ink: #111111;
  --bar: #111111;
  --ok-soft: #fff6cc;
  --on-green: #1a1416;
  --fg-accent: var(--wine);
  --fg-accent-dark: var(--wine-dark);
  --fg-ok: #111111;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg-accent); text-decoration: none; }
a:hover { color: var(--fg-ok); }
button { font: inherit; cursor: pointer; border: none; background: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header tienda (barra de marca, sin hero) */
.store-top {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: var(--wine);
  color: var(--on-wine);
  box-shadow: 0 8px 24px rgba(var(--wine-dark-rgb), 0.28);
}
.store-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1rem 0.55rem 0.3rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.store-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-wine);
  min-width: 0;
  flex: 0 1 auto;
  width: max-content;
  max-width: calc(100% - 8.5rem);
}
.store-brand:hover { color: var(--on-wine); }
.store-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.store-brand-wordmark {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: min(22rem, 58vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.store-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.store-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-verified {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 15px;
  height: 15px;
  display: block;
  line-height: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(26, 20, 22, 0.28);
  pointer-events: none;
}
.user-verified[hidden] { display: none !important; }
.store-top .btn-icon { color: var(--on-wine); }
.store-top .btn-icon:active { background: rgba(255, 255, 255, 0.18); }
@media (hover: hover) and (pointer: fine) {
  .store-top .btn-icon:hover { background: rgba(255, 255, 255, 0.14); }
}
.store-top .cart-badge { background: var(--green); }

/* Compat: páginas de producto siguen usando .site-header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--wine-rgb), 0.08);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg-accent);
  white-space: nowrap;
}
.brand span { color: var(--fg-ok); }
.header-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; flex-shrink: 0; }
.user-menu { position: relative; }
.user-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: min(34rem, calc(100dvh - var(--header-h) - 1.25rem));
  overflow: auto;
  padding: 1.05rem 1rem 1.1rem;
  background: linear-gradient(180deg, #fff 0%, #fbf6f1 100%);
  color: var(--ink);
  border-radius: 20px;
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  box-shadow: 0 18px 48px rgba(26, 20, 22, 0.2);
  z-index: 120;
}
.user-panel[hidden] { display: none !important; }
.user-panel-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  color: var(--ink);
}
.user-panel-kicker-icon {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(var(--wine-rgb), 0.1);
  color: var(--fg-accent);
}
.user-panel-lead {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}
.user-panel-user[hidden],
.user-panel-guest[hidden] { display: none !important; }
.user-panel-guest,
.user-panel-user {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.account-ico {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--fg-accent);
  background: #f4ece6;
}
.account-ico svg { width: 1.15rem; height: 1.15rem; }
.account-ico--profile {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #f6e8ee;
}
.account-ico--profile svg { width: 1.25rem; height: 1.25rem; }
.user-panel-id .user-panel-kicker { margin: 0; font-size: 1.12rem; }
.user-panel-id .user-panel-lead {
  margin: 0.2rem 0 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.86rem;
}
.account-ico--data,
.account-ico--orders,
.account-ico--login,
.account-ico--register {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.account-ico--data svg,
.account-ico--orders svg,
.account-ico--login svg,
.account-ico--register svg { width: 1.15rem; height: 1.15rem; }
.account-ico--data {
  color: #b4531a;
  background: #f7f1ea;
  border-color: rgba(180, 83, 26, 0.16);
}
.account-ico--orders {
  color: var(--fg-ok);
  background: var(--ok-soft);
  border-color: rgba(var(--green-rgb), 0.16);
}
.account-ico--login {
  color: var(--fg-accent);
  background: #f6eef1;
  border-color: rgba(var(--wine-rgb), 0.14);
}
.account-ico--register {
  color: #3a649e;
  background: #eef3f8;
  border-color: rgba(58, 100, 158, 0.16);
}
.user-panel-id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  box-shadow: 0 8px 18px rgba(var(--wine-dark-rgb), 0.06);
}
.user-panel-id-copy { min-width: 0; }
.user-panel .menu-auth-btn {
  margin-top: 0;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .user-panel {
    position: fixed;
    top: calc(var(--header-h) + 0.55rem);
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: calc(100dvh - var(--header-h) - 1.15rem - env(safe-area-inset-bottom, 0px));
    padding: 1.25rem 1.05rem 1.35rem;
  }
}
.user-panel-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
}
.user-panel-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
}
.user-panel-orders-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.user-panel-orders {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.user-order {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--cream);
}
.user-order-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.user-order-meta {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.user-order-items {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}
.btn-icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:active { background: var(--cream-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-icon:hover { background: var(--cream-dark); }
}
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.menu-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  width: 2.05rem;
  height: 2.05rem;
  margin-right: -0.45rem;
}
.menu-toggle svg {
  display: none;
}
.menu-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.menu-bars span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease), opacity 0.2s ease;
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Menú categorías (todas las resoluciones) */
.site-menu {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--white);
  z-index: 110;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: var(--ink);
  overflow: hidden;
  transform: translate3d(-100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.48s var(--ease), visibility 0s linear 0.48s;
}
.site-menu.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.48s var(--ease), visibility 0s;
}
@media (min-width: 1024px) {
  .site-menu {
    width: 50%;
    max-width: 640px;
    right: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 18px 0 42px rgba(26, 20, 22, 0.16);
  }
  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 105;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 20, 22, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu { transition: none; }
}
.site-menu-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 0.75rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.site-menu-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(26, 20, 22, 0.06);
}
.menu-auth-guest,
.menu-auth-user {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.menu-auth-guest[hidden],
.menu-auth-user[hidden] {
  display: none !important;
}
.menu-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.menu-auth-btn--primary {
  background: var(--wine);
  color: var(--on-wine);
}
.menu-auth-btn--primary:hover { background: var(--wine-dark); color: var(--on-wine); }
.menu-auth-btn--secondary {
  background: transparent;
  color: var(--fg-accent);
  border: 2px solid rgba(var(--wine-rgb), 0.35);
}
.menu-auth-btn--secondary:hover {
  background: var(--cream);
  border-color: var(--fg-accent);
  color: var(--fg-accent);
}
.menu-auth-btn--logout {
  gap: 0.45rem;
  background: var(--cream);
  color: var(--fg-accent);
  border: 1px solid rgba(var(--wine-rgb), 0.18);
}
.menu-auth-btn--logout svg { flex-shrink: 0; }
.menu-auth-btn--logout:hover {
  background: var(--cream-dark);
  color: var(--fg-accent-dark);
}
.menu-cat-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-cat-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.menu-cat-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--cream);
}
.menu-cat-list a.is-child {
  padding-left: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
}
.menu-cat-list a.is-child .menu-cat-thumb {
  width: 40px;
  height: 40px;
}
.menu-cat-list a:hover { color: var(--fg-accent); }
.menu-all-link {
  display: block;
  padding: 0.9rem 0.15rem;
  font-weight: 700;
  color: var(--fg-accent);
}
.menu-all-link:hover { color: var(--fg-accent-dark); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--white);
  color: var(--fg-accent);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  color: var(--fg-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.btn-secondary {
  display: inline-flex;
  padding: 0.65rem 1.2rem;
  border: 2px solid var(--wine);
  background: #fff;
  color: var(--fg-accent);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--wine);
  color: var(--on-wine);
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--fg-accent);
}
.section-head p { margin: 0; color: var(--muted); }

/* Catálogo / tienda virtual */
.catalog {
  padding: 0 0 3.5rem;
}
.catalog-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.12rem 1.25rem 0;
}
.store-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.12rem 0 0.08rem;
  margin: 0;
  flex-wrap: wrap;
}
.store-social-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -2px 4px rgba(0, 0, 0, 0.18) inset,
    0 4px 10px rgba(26, 20, 22, 0.18),
    0 8px 18px rgba(26, 20, 22, 0.12);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.store-social-btn:hover,
.store-social-btn:focus,
.store-social-btn:focus-visible,
.store-social-btn:active {
  color: #fff;
  outline: none;
}
.store-social-btn.is-press {
  animation: socialPress 0.32s ease;
}
@keyframes socialPress {
  0% { transform: scale(1); }
  35% { transform: scale(0.78); }
  100% { transform: scale(1); }
}
.store-social-btn::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 65%
  );
  transform: translateX(-30%) rotate(12deg);
  animation: socialShine 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.store-social-btn svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.store-social-btn.is-hot {
  transform: translateY(-2px) scale(1.06);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -2px 4px rgba(0, 0, 0, 0.16) inset,
    0 6px 14px rgba(26, 20, 22, 0.22),
    0 12px 24px rgba(26, 20, 22, 0.14);
}
@keyframes socialShine {
  0%, 70% { transform: translateX(-45%) rotate(12deg); opacity: 0.55; }
  85% { transform: translateX(45%) rotate(12deg); opacity: 0.9; }
  100% { transform: translateX(55%) rotate(12deg); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .store-social-btn::before { animation: none; opacity: 0.25; }
  .store-social-btn.is-press { animation: none; }
}
.store-social-btn.is-whatsapp {
  background: linear-gradient(160deg, #3de07a 0%, #25d366 45%, #1da851 100%);
}
.store-social-btn.is-instagram {
  background: linear-gradient(145deg, #f9a05c 0%, #f58529 20%, #dd2a7b 55%, #515bd4 100%);
}
.store-social-btn.is-facebook {
  background: linear-gradient(160deg, #4a9af5 0%, #1877f2 50%, #0f5dc8 100%);
}
.store-social-btn.is-location {
  background: var(--wine);
}
/* Franja de categorías fija bajo el header */
.store-sticky-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--bar);
  padding-top: 0;
  margin-bottom: 0;
  box-shadow: 0 8px 18px rgba(26, 20, 22, 0.06);
}
.home-anuncios {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.18rem 0.85rem 0.08rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-anuncios-viewport {
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
}
@media (min-width: 800px) {
  .home-anuncios {
    padding: 0.2rem 1.5rem 0.1rem;
  }
  .home-anuncios-viewport {
    max-width: 40rem;
  }
}
.home-anuncios-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.home-anuncios.is-carousel .home-anuncios-track {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-anuncio-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  opacity: 0.72;
  transition: opacity 0.55s ease;
}
.home-anuncio-slide.is-active,
.home-anuncios:not(.is-carousel) .home-anuncio-slide {
  opacity: 1;
}
.home-anuncio {
  width: 100%;
  height: auto;
  aspect-ratio: 6.4 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}
.home-anuncios-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.18rem;
}
.home-anuncios-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, transform 0.25s ease;
}
.home-anuncios-dot.is-on {
  width: 16px;
  background: var(--wine);
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .home-anuncios.is-carousel .home-anuncios-track,
  .home-anuncio-slide {
    transition: none;
  }
}
.store-search-sticky {
  position: sticky;
  top: calc(var(--header-h) + var(--rail-h, 0px));
  z-index: 39;
  background: var(--cream);
  box-shadow: 0 8px 18px rgba(26, 20, 22, 0.06);
}
.store-search-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.08rem 1.25rem 0.2rem;
  background: var(--cream);
}
.entrega-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0.28rem 0 0;
  padding: 0.12rem 0.15rem 0.12rem 0.2rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.entrega-line svg {
  flex-shrink: 0;
  color: var(--fg-accent);
}
.entrega-line-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entrega-line-kicker {
  font-weight: 600;
  color: var(--muted);
}
.entrega-line-kicker::after {
  content: " · ";
  color: #c5b8bc;
}
.entrega-line #entregaLineLabel,
.entrega-line-text #entregaLineLabel {
  font-weight: 700;
  color: var(--ink);
}
.entrega-line-go {
  flex-shrink: 0;
  color: var(--fg-accent);
  font-weight: 700;
  font-size: 0.74rem;
}
.entrega-line:hover .entrega-line-go,
.entrega-line:focus-visible .entrega-line-go {
  text-decoration: underline;
}
.entrega-line:focus-visible {
  outline: 2px solid rgba(var(--wine-rgb), 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
.entrega-bar {
  max-width: 1280px;
  margin: 0 auto 0.35rem;
  padding: 0.35rem 1.25rem 0;
}
.entrega-modal-ops {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.entrega-op {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--wine-rgb), 0.14);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.entrega-op:hover,
.entrega-op.is-active {
  border-color: var(--fg-accent);
  background: rgba(var(--wine-rgb), 0.06);
}
.entrega-op small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}
.checkout-line .cart-remove,
.checkout-remove {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  color: var(--on-wine);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.checkout-bloqueado {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff4e8;
  color: #8a3b00;
  font-size: 0.88rem;
  font-weight: 700;
}
#cartStockAviso {
  margin: 0 0 0.65rem;
}
.is-stock-flash {
  animation: ep-stock-flash 1.5s ease;
}
@keyframes ep-stock-flash {
  0%, 100% { background-color: transparent; }
  20%, 60% { background-color: #fff1dc; }
}
.store-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  border: 1px solid rgba(var(--wine-rgb), 0.12);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(26, 20, 22, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-search:focus-within {
  border-color: rgba(var(--wine-rgb), 0.45);
  box-shadow: 0 8px 28px rgba(var(--wine-rgb), 0.12);
}
.store-search svg { color: var(--muted); flex-shrink: 0; }
.store-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  min-width: 0;
}
.store-search input::placeholder { color: #9a8f93; }

/* Rail de categorías (estilo editorial oscuro) */
.store-category-rail {
  background: var(--bar);
  margin: 0;
  box-shadow: none;
}
.store-category-rail[hidden] { display: none !important; }
.store-category-rail-frame {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.store-category-rail-inner {
  display: flex;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.store-category-rail-inner.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.store-category-rail-inner.is-scrollable { cursor: grab; }
.store-category-rail-inner::-webkit-scrollbar { display: none; }
.store-rail-nav {
  display: none;
}
@media (min-width: 900px) {
  .store-rail-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 1.85rem;
    height: 1.85rem;
    margin-top: -0.92rem;
    border-radius: 999px;
    background: rgba(255, 247, 240, 0.14);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  }
  .store-rail-nav:hover { background: rgba(255, 247, 240, 0.28); }
  .store-rail-nav[hidden] { display: none !important; }
  .store-rail-nav.is-prev { left: 0.35rem; }
  .store-rail-nav.is-next { right: 0.35rem; }
  .store-category-rail-inner { padding-left: 2.5rem; padding-right: 2.5rem; }
}
.chip {
  position: relative;
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 240, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.chip::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.chip:hover { color: #fff; }
.chip.is-active { color: #ffd9a8; }
.chip.is-active::after,
.chip:hover::after { transform: scaleX(1); }

.catalog-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.catalog-view { min-height: 240px; }

/* Secciones por categoría */
.store-category-section {
  margin-bottom: 2.25rem;
  scroll-margin-top: calc(var(--header-h) + var(--rail-h, 0px) + var(--search-h, 0px) + 0.75rem);
}
.store-category-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.store-category-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin: 0;
  color: var(--fg-accent);
  position: relative;
  padding-bottom: 0.35rem;
}
.store-category-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wine), var(--green));
}
.store-category-title-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg-ok);
  white-space: nowrap;
}
.store-category-title-action:hover { color: var(--fg-accent); }
.store-category-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  margin: 0.1rem 0 0.85rem;
}
.store-back {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 0;
  padding: 0.28rem 0.68rem 0.28rem 0.52rem;
  border: 1px solid rgba(var(--wine-rgb), 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-accent);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.store-back:hover {
  color: var(--fg-ok);
  border-color: rgba(var(--green-rgb), 0.45);
  background: rgba(var(--green-rgb), 0.06);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.catalog-scroll-sent {
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (min-width: 1080px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

/* Carrusel horizontal por categoría */
.store-cat-scroll-wrap { position: relative; }
.store-cat-scroll-inner {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: x proximity;
  padding: 0.15rem 0.1rem 0.85rem;
  scrollbar-width: thin;
}
@media (hover: hover) and (pointer: fine) {
  .store-cat-scroll-inner.is-scrollable { cursor: grab; }
  .store-cat-scroll-inner.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
  .store-cat-scroll-inner.is-dragging * { cursor: grabbing; }
}
.store-cat-scroll-inner > * {
  flex: 0 0 min(72vw, 220px);
  align-self: stretch;
  scroll-snap-align: start;
}
.store-cat-scroll-inner > .product-card {
  height: auto;
}
@media (min-width: 720px) {
  .store-cat-scroll-inner > * { flex-basis: min(30vw, 240px); }
}
@media (min-width: 1080px) {
  .store-cat-scroll-inner > * { flex-basis: min(22vw, 260px); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 18px rgba(26, 20, 22, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover:not(:has(.product-actions:hover)) {
    box-shadow: 0 14px 36px rgba(26, 20, 22, 0.14);
  }
  .product-card:hover:not(:has(.product-actions:hover)) .product-thumb img {
    transform: scale(1.05);
  }
}
.reveal-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.44s ease, transform 0.44s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.product-thumb {
  aspect-ratio: 1;
  background: #e8d9c8;
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.45s ease, opacity 0.35s ease, filter 0.35s ease;
}
.product-thumb img.loaded,
.product-thumb img[loading="eager"] {
  opacity: 1;
  filter: blur(0);
}
.product-actions { cursor: default; }
.product-thumb .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #efe4d6, #e0d0bc);
  color: var(--fg-ok);
  font-size: 2.5rem;
}

/* Cintas Oferta / Agotado */
.badge-offer,
.badge-out-ribbon {
  position: absolute;
  top: 18px;
  left: -52px;
  z-index: 5;
  transform: rotate(-45deg);
  padding: 8px 58px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.badge-offer {
  overflow: hidden;
  background: linear-gradient(135deg, #fff9c4 0%, #fde047 22%, #fbbf24 48%, #fb923c 78%, #c45c26 100%);
  color: #5c2410;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 18px rgba(196, 92, 38, 0.35);
}
.badge-offer::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -130%;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-22deg);
  animation: offerShine 3.2s ease-in-out infinite;
}
@keyframes offerShine {
  0%, 72%, 100% { left: -130%; }
  88% { left: 185%; }
}
.badge-out-ribbon {
  background: linear-gradient(135deg, #ff2a2a 0%, #a70000 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(167, 0, 0, 0.28);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 0.95rem 1rem;
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.3rem;
  line-height: 1.3;
  color: var(--ink);
}
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--fg-accent); }
.product-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.55rem;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.2rem;
}
.product-price {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--fg-accent);
  margin-top: auto;
}
.product-price .old {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.35rem;
}
.product-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
}
.product-card,
.product-actions,
.product-actions * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.product-card ::selection {
  background: transparent;
  color: inherit;
}
.product-actions { margin-top: 0.15rem; touch-action: manipulation; }
.product-actions button {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.product-actions button:focus,
.product-actions button:focus-visible {
  outline: none;
}
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--green);
  color: var(--on-green);
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.2s;
}
.btn-add-cart { flex-shrink: 0; }
.btn-add:hover { filter: brightness(1.06); }
.btn-add:active:not(:disabled),
.btn-add.is-press {
  animation: btnPress 0.28s ease;
}
.product-actions.is-tap {
  animation: actionTap 0.32s ease;
}
.btn-add:disabled {
  background: #d5cdc6;
  color: #6b6360;
  filter: none;
  cursor: not-allowed;
}
.qty-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.65rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(var(--green-rgb), 0.4);
}
.qty-stepper button {
  width: 2.65rem;
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: var(--fg-ok);
  background: rgba(var(--green-rgb), 0.1);
}
.qty-stepper button:hover:not(:disabled) { background: rgba(var(--green-rgb), 0.18); }
.qty-stepper button:active:not(:disabled),
.qty-stepper button.is-press {
  animation: btnPress 0.28s ease;
}
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper span {
  flex: 1;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--ink);
}
.qty-stepper span.is-bump {
  animation: qtyBump 0.28s ease;
}
@keyframes btnPress {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(0.72); filter: brightness(0.78); }
  70% { transform: scale(1.08); filter: brightness(1.06); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes actionTap {
  0% { transform: scale(1); }
  35% { transform: scale(0.9); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes qtyBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.product-detail-actions { margin: 0.15rem 0 1rem; }
.product-detail-actions .btn-add,
.product-detail-actions .qty-stepper { max-width: 16rem; }

.product-buybar { display: none; }
@media (max-width: 767px) {
  .product-detail-actions { display: none; }
  .product-detail { padding-bottom: 1.5rem; }
  body:has(.product-buybar) { padding-bottom: calc(5.15rem + env(safe-area-inset-bottom, 0px)); }
  .product-buybar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid rgba(var(--wine-rgb), 0.12);
    box-shadow: 0 -8px 24px rgba(26, 20, 22, 0.12);
  }
  .product-buybar-price {
    display: flex;
    flex-direction: column;
    min-width: 6.5rem;
    flex-shrink: 0;
  }
  .product-buybar-price strong {
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--fg-accent);
  }
  .product-buybar-price .old {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
  }
  .product-buybar-actions { flex: 1; margin: 0; min-width: 0; }
  .product-buybar-actions .btn-add,
  .product-buybar-actions .qty-stepper { max-width: none; }
  .product-buybar-actions .btn-add { padding: 0.55rem 0.7rem; }
  body:has(.product-buybar) .cart-fab {
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.product-buybar) .preview-exit {
    bottom: calc(9.6rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Ver más */
.store-see-more-card {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--wine-rgb), 0.14);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--wine-rgb), 0.12), transparent 60%),
    radial-gradient(100% 80% at 0% 100%, rgba(var(--green-rgb), 0.12), transparent 58%),
    linear-gradient(155deg, #fff 0%, #faf3eb 100%);
  box-shadow: 0 10px 28px rgba(26, 20, 22, 0.08);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  color: inherit;
}
.store-see-more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(26, 20, 22, 0.14);
  color: inherit;
}
.store-see-more-plus {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--fg-accent);
  margin-bottom: 0.2rem;
}
.store-see-more-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-ok);
}
.store-see-more-copy {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  max-width: 12rem;
  margin: 0.35rem auto 0;
  line-height: 1.3;
}
.store-cat-scroll-inner .store-see-more-card,
.store-cat-scroll-inner .product-card {
  min-height: 320px;
}

/* FAB carrito */
.cart-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-wine);
  background: var(--wine);
  box-shadow: 0 8px 28px rgba(var(--wine-rgb), 0.42);
  transition: transform 0.2s var(--ease);
}
.cart-fab:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .cart-fab:hover { transform: scale(1.06); color: var(--on-wine); }
}
.cart-fab.has-items {
  animation: cartFabGlow 1.2s ease-in-out infinite;
}
.cart-fab.pulse { transform: scale(1.14); }
.cart-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@keyframes cartFabGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(var(--wine-rgb), 0.42); }
  50% { box-shadow: 0 10px 36px rgba(var(--wine-rgb), 0.65), 0 0 0 6px rgba(var(--wine-rgb), 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-fab.has-items { animation: none; }
  .badge-offer::before { animation: none; }
}

.seo-product-links {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.seo-product-links a {
  color: var(--fg-accent);
  text-decoration: none;
  font-weight: 700;
}
.site-footer__nap {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Sucursales: franja baja con chaflán */
.sucursales-section {
  max-width: none;
  padding: 1.35rem 0 1.5rem;
  background: var(--cream-dark);
}
.sucursales-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.sucursales-section .section-head {
  margin-bottom: 0.75rem;
  gap: 0.4rem;
}
.sucursales-section .section-head h2 {
  font-size: 1.35rem;
}
.sucursales-section .section-head p {
  font-size: 0.92rem;
}
.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem;
}
.sucursal-skeleton {
  height: 118px;
  aspect-ratio: auto;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.sucursal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 0.75rem 1.15rem 0.8rem 0.95rem;
  background:
    linear-gradient(var(--wine), var(--wine)) left / 4px 100% no-repeat,
    var(--white);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 1px 0 rgba(26, 20, 22, 0.06);
}
.sucursal-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--fg-ok);
}
.sucursal-dir,
.sucursal-horario {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.sucursal-contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.3;
}
.sucursal-contacto a {
  color: var(--fg-accent);
  font-weight: 700;
  text-decoration: none;
}
.sucursal-contacto a:hover { color: var(--fg-ok); }
.sucursal-wa { color: var(--muted); }
.sucursal-mapa { margin-left: 0.85rem; }

/* Medios de pago + pie */
.payments-bar {
  border-block: 1px solid rgba(255, 247, 240, 0.12);
  background: #1c1618;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
}
.payments-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}
.payments-bar__info {
  margin: 0;
  max-width: 70ch;
  line-height: 1.5;
  color: rgba(255, 247, 240, 0.92);
}
.payments-bar__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.payments-bar__title::after {
  content: "·";
  margin: 0 0.4rem;
  color: #ffd9a8;
  font-weight: 700;
}
.payments-bar__sub {
  font-size: 0.9rem;
  color: rgba(255, 247, 240, 0.62);
}
.payments-bar__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pay-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.pay-logo img {
  display: block;
  width: auto;
  height: 22px;
  max-width: 130px;
  object-fit: contain;
}
.site-footer {
  padding: 2.5rem 1.25rem 1.75rem;
  background: var(--bar);
  color: #fff7f0;
}
.site-footer__shell {
  max-width: 1280px;
  margin: 0 auto;
}
.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 247, 240, 0.12);
}
.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.site-footer__muted {
  margin: 0.4rem 0 0;
  color: rgba(255, 247, 240, 0.62);
  font-size: 0.95rem;
}
.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 247, 240, 0.62);
}
.site-footer__contact-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff7f0;
}
.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-footer__contact-item {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 247, 240, 0.62);
}
.site-footer__contact-item > span,
.site-footer__contact-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.site-footer__contact-item a {
  text-decoration: none;
  color: rgba(255, 247, 240, 0.62);
}
.site-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(var(--wine-rgb), 0.28);
  color: #ffd9a8;
}
.site-footer__contact-icon svg { display: block; }
.site-footer__contact-item a:hover { color: #ffd9a8; }
.site-footer__contact-item a:hover .site-footer__contact-icon {
  background: rgba(var(--wine-rgb), 0.45);
}
.site-footer__legal {
  padding-block: 1.25rem 1rem;
  text-align: center;
}
.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: #fff7f0;
  font-weight: 500;
}
.site-footer__legal-note {
  margin: 0.45rem auto 0;
  font-size: 0.8rem;
  color: rgba(255, 247, 240, 0.62);
  max-width: 62ch;
}
.site-footer__legal-note a,
.site-footer__cookie-btn {
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}
.site-footer__credits {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}
.site-footer__necty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: rgba(255, 247, 240, 0.62);
  padding: 0.35rem 0.5rem;
}
.site-footer__necty strong {
  color: #fff7f0;
  font-weight: 600;
}
.site-footer__necty-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.site-footer__necty:hover,
.site-footer__necty:hover strong { color: #ffd9a8; }
@media (max-width: 560px) {
  .site-footer__main {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* Salir de vista previa: solo aparece con cookie developer + mantención */
.preview-exit {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--wine, #8e1b3d);
  color: var(--on-wine);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.preview-exit:hover {
  filter: brightness(1.08);
  color: var(--on-wine);
}

/* Product detail */
.product-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem 2rem; }
}
.product-crumb {
  grid-column: 1 / -1;
  margin: 0;
}
.product-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--white, #fff);
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  border-radius: var(--radius);
}
.product-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.product-crumb li + li::before {
  content: "›";
  color: rgba(92, 82, 86, 0.7);
  font-weight: 700;
}
.product-crumb a { color: var(--fg-accent); }
.product-crumb a:hover { text-decoration: underline; }
.product-crumb [aria-current="page"] {
  color: var(--ink, #1a1416);
  font-weight: 700;
}
.product-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.product-mode {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.4rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--wine-rgb), 0.12);
  background: var(--white, #fff);
}
.product-mode-ico {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(var(--wine-rgb), 0.08);
  color: var(--fg-accent);
}
.product-mode-ico svg { width: 1.25rem; height: 1.25rem; }
.product-mode.is-on .product-mode-ico {
  background: rgba(var(--green-rgb), 0.12);
  color: var(--fg-ok);
}
.product-mode-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.product-mode-copy > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}
.product-mode strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #1a1416);
  line-height: 1.2;
}
.product-mode.is-on {
  border-color: rgba(var(--green-rgb), 0.28);
  background: var(--ok-soft);
}
.product-mode.is-on strong { color: var(--fg-ok); }
.product-mode.is-off {
  background: var(--cream-dark);
}
.product-mode.is-off strong { color: #8a3a3a; }
.product-copy,
.product-sheet {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem 0.35rem;
  background: var(--white, #fff);
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  border-radius: var(--radius);
}
.product-copy h2,
.product-sheet h2 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.product-detail-lead { font-weight: 600; color: var(--ink, #1a1416); }
.product-copy-empty {
  margin: 0 0 0.95rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.95rem;
}
.product-sheet dl { margin: 0; }
.product-sheet dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(var(--wine-rgb), 0.08);
}
.product-sheet dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
.product-sheet-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--fg-accent);
}
.product-sheet-ico svg { width: 1.15rem; height: 1.15rem; }
.product-sheet dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #1a1416);
}
.product-detail-gallery {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: 0 8px 28px rgba(26, 20, 22, 0.08);
}
.product-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: var(--cream-dark);
}
.product-back {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.product-back:hover { color: var(--fg-accent); }
.product-detail-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: var(--fg-accent);
  margin: 0 0 0.4rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.product-detail-price {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.product-detail-info .product-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.product-detail-desc { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 767px) {
  .product-detail { padding: 0.4rem 0.9rem 2rem; gap: 1rem; }
  .product-crumb ol { padding: 0.45rem 0.65rem; }
  .product-crumb li { font-size: 0.78rem; font-weight: 500; }
  .product-crumb [aria-current="page"] { font-weight: 600; }
  .product-detail-info h1 { font-size: 1.28rem; }
  .product-detail-price { font-size: 1.15rem; }
  .product-modes { gap: 0.45rem; margin-bottom: 0.75rem; }
  .product-mode {
    gap: 0.45rem;
    min-height: 0;
    padding: 0.55rem 0.55rem;
  }
  .product-mode-ico { width: 1.85rem; height: 1.85rem; border-radius: 8px; }
  .product-mode-ico svg { width: 1rem; height: 1rem; }
  .product-mode-copy > span {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }
  .product-mode strong { font-size: 0.82rem; font-weight: 600; }
  .product-copy,
  .product-sheet { margin-top: 0.85rem; padding: 0.75rem 0.8rem 0.2rem; }
  .product-copy h2,
  .product-sheet h2 { font-size: 0.68rem; margin-bottom: 0.45rem; }
  .product-detail-desc,
  .product-copy-empty { font-size: 0.9rem; }
  .product-sheet dl > div {
    grid-template-columns: minmax(6.4rem, 46%) 1fr;
    gap: 0.45rem;
    padding: 0.55rem 0;
  }
  .product-sheet dt { font-size: 0.78rem; font-weight: 600; }
  .product-sheet dd { font-size: 0.84rem; font-weight: 600; }
  .product-sheet-ico { width: 1.1rem; height: 1.1rem; }
  .product-sheet-ico svg { width: 0.95rem; height: 0.95rem; }
  .product-buybar-price strong { font-size: 1.08rem; font-weight: 700; }
  .product-buybar-price .old { font-size: 0.75rem; font-weight: 500; }
}
.qty-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.qty-row label { font-weight: 600; color: var(--ink); }
.qty-row input {
  width: 4rem;
  padding: 0.5rem;
  border: 1px solid rgba(var(--wine-rgb), 0.18);
  border-radius: 8px;
  text-align: center;
  font: inherit;
  background: var(--white);
}
.btn-cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--wine);
  color: var(--on-wine);
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 6px 18px rgba(var(--wine-rgb), 0.22);
}
.btn-cart-add:hover:not(:disabled) {
  background: var(--wine-dark);
  color: var(--on-wine);
  transform: translateY(-1px);
}
.btn-cart-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Drawers & modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 22, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.drawer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--cream);
  flex-shrink: 0;
}
.drawer-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-foot {
  padding: 1.25rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.cart-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: 12px;
  border-bottom: 1px solid rgba(var(--wine-rgb), 0.08);
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.cart-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.cart-item-qty button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  font-weight: 700;
  color: var(--ink);
}
.cart-item-qty span {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.cart-remove {
  margin-left: 0.2rem;
  color: var(--fg-accent) !important;
  background: rgba(var(--wine-rgb), 0.08) !important;
  border-color: transparent !important;
  display: grid;
  place-items: center;
}
.cart-remove svg { display: block; }
.cart-confirm {
  z-index: 260;
  background: rgba(26, 20, 22, 0.46);
}
.cart-confirm-panel { width: min(100%, 380px); text-align: left; }
.cart-confirm-copy {
  margin: 0 0 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}
.cart-confirm-copy strong { color: var(--ink); }
.cart-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}
.cart-confirm-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--on-wine);
  font-weight: 700;
}
.cart-confirm-ok:hover { background: var(--wine-dark); color: var(--on-wine); }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cart-empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 202;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
#authModal.is-open {
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#authModal.is-open .auth-panel {
  margin: 0.5rem auto 1.25rem;
}
.modal-panel {
  background: var(--white);
  border-radius: var(--radius);
  width: min(100%, 480px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal-panel { transform: scale(1); }
.modal-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  color: var(--fg-accent);
}
.form-group { margin-bottom: 0.85rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font: inherit;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; gap: 0.85rem; }
@media (min-width: 480px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 0.35rem; }

.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  pointer-events: none;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (min-width: 720px) {
  .loading-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (min-width: 1080px) {
  .loading-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}
.skeleton {
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--cream-dark) 25%, #e8e0d6 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}
.text-center { text-align: center; }

.auth-panel {
  width: min(100%, 520px);
  max-height: none;
  border-radius: 22px;
  padding: 0 1.15rem 1.25rem;
  margin-block: 0.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbf6f1 100%);
  border: 1px solid rgba(var(--wine-rgb), 0.08);
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  margin: 0 -1.15rem 1.05rem;
  padding: 0.85rem 1.15rem;
  background: var(--wine);
}
.auth-brand img {
  display: block;
  height: 2.7rem;
  width: auto;
  max-width: min(16rem, 72%);
  object-fit: contain;
}
.auth-brand-name {
  color: var(--on-wine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  background: #f4ece6;
  padding: 0.28rem;
  border-radius: 16px;
}
.auth-tabs[hidden] {
  display: none !important;
}
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 13px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}
.auth-tab svg { flex-shrink: 0; }
.auth-tab.is-active {
  background: var(--wine);
  color: var(--on-wine);
  box-shadow: 0 6px 14px rgba(var(--wine-dark-rgb), 0.22);
}
.auth-form {
  position: relative;
}
.auth-form h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: 1.45rem;
}
.auth-close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.14);
}
.auth-close:hover,
.auth-close:focus-visible {
  background: var(--wine);
  color: var(--on-wine);
  border-color: var(--wine);
}
.auth-form:has(.auth-close) h2 {
  padding-right: 2.7rem;
}
.auth-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.auth-panel .form-group label {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.auth-panel .form-group input,
.auth-panel .phone-wrap {
  border: 1px solid rgba(var(--wine-rgb), 0.14);
  border-radius: 12px;
  background: #fff;
}
.auth-panel .form-group input {
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
}
.auth-panel .form-group input:focus {
  outline: none;
  border-color: var(--fg-accent);
  box-shadow: 0 0 0 3px rgba(var(--wine-rgb), 0.12);
}
.auth-panel .phone-wrap:focus-within {
  border-color: var(--fg-accent);
  box-shadow: 0 0 0 3px rgba(var(--wine-rgb), 0.12);
}
.auth-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}
.auth-actions .btn-secondary {
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  color: var(--fg-accent);
}
.auth-actions .btn-secondary:hover,
.auth-actions .btn-secondary:focus-visible {
  background: var(--wine);
  color: var(--on-wine);
}
.auth-actions .btn-primary {
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  background: var(--wine);
  color: var(--on-wine);
  box-shadow: 0 8px 16px rgba(var(--wine-dark-rgb), 0.22);
}
.auth-actions .btn-primary:hover {
  background: var(--wine-dark);
  color: var(--on-wine);
  transform: none;
  box-shadow: 0 10px 18px rgba(var(--wine-dark-rgb), 0.28);
}
.auth-error {
  color: #a70000;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.35rem 0 0;
}
.auth-ok {
  color: #1b6b3a;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.35rem 0 0;
}
.auth-wait {
  position: relative;
  padding: 0.2rem 0.35rem 0.15rem;
  text-align: center;
}
.auth-wait-mark {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0.1rem auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ok-soft);
  color: var(--fg-ok);
}
.auth-wait h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: 1.5rem;
}
.auth-wait .auth-lead {
  margin: 0 auto 0.45rem;
  max-width: 22rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}
.auth-wait .auth-lead strong {
  display: inline-block;
  margin-top: 0.15rem;
  word-break: break-all;
}
.auth-wait-hint {
  margin: 0 auto 1.15rem;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}
.auth-wait-actions {
  display: flex;
  justify-content: center;
}
.auth-wait-actions .btn-primary {
  min-width: 13.5rem;
  justify-content: center;
  text-align: center;
}
.auth-actions .btn-primary:disabled,
.auth-wait-actions .btn-primary:disabled {
  background: #d9cfc8;
  color: #7a706c;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
.auth-actions .btn-primary:disabled:hover,
.auth-wait-actions .btn-primary:disabled:hover {
  background: #d9cfc8;
  color: #7a706c;
  transform: none;
  box-shadow: none;
}
.auth-wait .auth-close {
  top: -0.2rem;
}
.auth-forgot {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}
.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover,
.link-btn:focus-visible {
  color: var(--wine-dark);
}
.checkout-guest-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 0.95rem 1rem 1.05rem;
  margin-bottom: 1rem;
}
.checkout-guest-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.auth-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.auth-check input { margin-top: 0.2rem; }
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 0.7rem;
  background: var(--cream);
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--cream-dark);
}
.phone-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
}
.btn-geo {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}
.ep-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.checkout-account {
  background: var(--cream);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}
.legal-article {
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  border-radius: 20px;
  padding: 1.4rem 1.25rem 1.6rem;
  box-shadow: 0 10px 28px rgba(26, 20, 22, 0.06);
}
.legal-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--on-wine);
  font-weight: 700;
  font-size: 0.92rem;
}
.legal-home:hover { color: var(--on-wine); background: rgba(255, 255, 255, 0.14); }
.legal-article h1 {
  font-family: var(--font-display);
  color: var(--fg-accent);
  margin: 0 0 0.5rem;
}
.legal-article h2 {
  font-family: var(--font-display);
  color: var(--fg-ok);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.legal-article p { color: var(--ink); line-height: 1.6; }

.cart-tax {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.cart-tax div { display: flex; justify-content: space-between; }
.cart-tax-note {
  margin: -0.35rem 0 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.checkout-alert {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #fff1e6;
  color: #8a3b00;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.checkout-alert[hidden] { display: none !important; }
.checkout-seguir {
  justify-content: center;
  margin: -0.2rem 0 0.85rem;
}
.checkout-seguir[hidden] { display: none !important; }
.user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  border-radius: 16px;
  padding: 0.7rem 0.75rem;
  margin: 0;
  box-shadow: 0 6px 14px rgba(var(--wine-dark-rgb), 0.05);
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s;
}
.user-menu-link:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(var(--wine-dark-rgb), 0.1);
}
.user-menu-link-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.user-menu-link-title { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.user-menu-link-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.user-menu-link-go {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--fg-accent);
  opacity: 0.7;
}

.account-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  display: grid;
  gap: 1rem;
}
.account-page--wide { max-width: 1080px; }
.checkout-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .checkout-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: start; }
}
.checkout-summary {
  display: grid;
  gap: 0.75rem;
  align-self: start;
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  border-radius: 20px;
  padding: 1.15rem 1.05rem 1.25rem;
}
.checkout-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
}
.checkout-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream);
}
.checkout-line h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.checkout-line p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.checkout-line strong { color: var(--fg-accent); }
.cart-gone,
.checkout-line .cart-gone {
  margin: 0.15rem 0 0.35rem;
  color: #8a3b00;
  font-size: 0.86rem;
  font-weight: 700;
}
.cart-item.is-gone { opacity: 0.72; }
.checkout-line.is-gone strong { display: none; }
.checkout-same-day {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(var(--wine-rgb), 0.06);
  border: 1px solid rgba(var(--wine-rgb), 0.16);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}
.checkout-same-day svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin-top: 0.12rem;
  color: var(--fg-accent);
}
.checkout-same-day strong { font-weight: 700; }
.checkout-pay-note {
  margin: 0.85rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.checkout-pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}
.checkout-pay-logos img {
  height: 22px;
  width: auto;
  display: block;
}
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
#checkoutForm .form-group,
#checkoutForm .auth-check {
  scroll-margin-top: calc(var(--header-h, 4.25rem) + 0.85rem);
}
#checkoutForm .form-group.is-invalid input,
#checkoutForm .form-group.is-invalid select,
#checkoutForm .form-group.is-invalid textarea,
#checkoutForm .form-group.is-invalid .phone-wrap {
  border-color: #a70000;
  box-shadow: 0 0 0 3px rgba(167, 0, 0, 0.12);
}
#checkoutForm .auth-check.is-invalid {
  outline: 2px solid rgba(167, 0, 0, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}
.checkout-field-error {
  margin: 0.4rem 0 0;
  color: #a70000;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.checkout-buybar { display: none; }
@media (max-width: 767px) {
  #btnSimularPago { display: none; }
  body:has(#checkoutScreen:not([hidden])) {
    padding-bottom: calc(5.15rem + env(safe-area-inset-bottom, 0px));
  }
  .checkout-buybar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid rgba(var(--wine-rgb), 0.12);
    box-shadow: 0 -8px 24px rgba(26, 20, 22, 0.12);
  }
  .checkout-buybar-price {
    display: flex;
    flex-direction: column;
    min-width: 6.2rem;
    flex-shrink: 0;
  }
  .checkout-buybar-price span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .checkout-buybar-price strong {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--fg-accent);
  }
  .checkout-buybar .btn-primary {
    flex: 1;
    margin: 0;
    padding: 0.62rem 0.85rem;
  }
  #checkoutForm .form-group,
  #checkoutForm .auth-check {
    scroll-margin-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  }
}
.checkout-done { text-align: center; }
.checkout-done-total {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg-accent);
}
.checkout-receipt {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-receipt-badge {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 125, 70, 0.12);
  color: #2e7d46;
}
.checkout-receipt-badge svg {
  width: 1.7rem;
  height: 1.7rem;
}
.checkout-receipt-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.checkout-receipt-code {
  margin: 0.35rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.checkout-receipt-code strong {
  color: var(--fg);
  letter-spacing: 0.02em;
}
.checkout-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.15rem 0 1rem;
  text-align: left;
}
.checkout-receipt-grid > div {
  background: rgba(var(--wine-rgb), 0.035);
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.checkout-receipt-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.checkout-receipt-grid strong {
  display: block;
  color: var(--fg);
  font-size: 0.98rem;
}
.checkout-receipt-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.checkout-receipt-box {
  text-align: left;
  margin: 0.4rem 0 1rem;
  padding: 1rem 1.05rem 0.85rem;
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  border-radius: 16px;
  background: #fff;
}
.checkout-receipt-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fg-accent);
}
.checkout-receipt-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-receipt-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(26, 20, 22, 0.06);
  font-size: 0.94rem;
}
.checkout-receipt-items li:last-child { border-bottom: 0; }
.checkout-receipt-items .qty {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.12rem;
}
.checkout-receipt-items .price {
  white-space: nowrap;
  font-weight: 650;
  color: var(--fg);
}
.checkout-receipt-totals {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(var(--wine-rgb), 0.18);
}
.checkout-receipt-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkout-receipt-totals .is-total {
  margin-top: 0.25rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
}
.checkout-receipt-boleta {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(var(--wine-rgb), 0.05);
  border: 1px solid rgba(var(--wine-rgb), 0.12);
}
.checkout-receipt-boleta p {
  margin: 0 0 0.65rem;
  color: var(--fg);
  font-size: 0.92rem;
}
.checkout-receipt-actions {
  justify-content: center;
  margin-top: 0.35rem;
}
.checkout-receipt-loading {
  margin: 0.5rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkout-receipt-redirect {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkout-receipt-redirect strong {
  color: var(--fg);
}
@media (max-width: 640px) {
  .checkout-receipt-grid { grid-template-columns: 1fr; }
}
.checkout-summary h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg-accent);
}
.account-page-card {
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: 0 10px 28px rgba(26, 20, 22, 0.06);
}
.account-page-card--wide { max-width: none; }
.account-page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.account-page-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.account-page-head .account-kicker { margin: 0; }
.account-page-head h1 { margin: 0.08rem 0 0; }
.account-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.account-title-row h1 { margin: 0; }
.account-info-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.12rem;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  line-height: 0;
}
.account-info-btn svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}
.account-info-btn:hover,
.account-info-btn:focus-visible,
.account-info-btn[aria-expanded="true"] {
  color: var(--fg-accent);
}
.account-info-tip {
  margin: -0.35rem 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #f4ece6;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}
.account-page-head .account-ico--orders {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
}
.account-page-head .account-ico--orders svg {
  width: 1.3rem;
  height: 1.3rem;
}
.account-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.account-page .btn-primary {
  justify-content: center;
  background: var(--wine);
  color: var(--on-wine);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(var(--wine-dark-rgb), 0.18);
}
.account-page .btn-primary:hover {
  background: var(--wine-dark);
  color: var(--on-wine);
  transform: none;
}
.account-page .btn-secondary {
  border-radius: 14px;
  background: #fff;
  color: var(--fg-accent);
}
.account-page .btn-secondary:hover,
.account-page .btn-secondary:focus-visible {
  background: var(--wine);
  color: var(--on-wine);
}
.account-page .account-pass h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: 1.25rem;
}

.compras-loading {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  min-height: 16rem;
  text-align: center;
}
.compras-loading[hidden] { display: none !important; }
.compras-loading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.compras-loading-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  animation: comprasLogo 1.15s ease-in-out infinite;
}
@keyframes comprasLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-12px) rotate(-8deg); }
  70% { transform: translateY(0) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .compras-loading-logo { animation: none; }
}

.account-screen {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(42, 24, 24, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.account-screen[hidden] { display: none; }
.account-screen-card {
  width: min(100%, 520px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  animation: accountIn 0.28s var(--ease);
}
.account-screen-card--wide { width: min(100%, 760px); }
@keyframes accountIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.account-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-screen-head h2 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--fg-accent);
}
.account-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-ok);
  font-weight: 700;
}
.account-page .account-pass {
  margin-top: 0;
  padding: 1.35rem 1.2rem 1.5rem;
  border-top: 0;
}
.account-pass-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .account-pass-grid { grid-template-columns: 1fr 1fr; }
  .account-pass-grid label:first-child { grid-column: 1 / -1; }
}
.account-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbf6f1 100%);
  border: 1px solid rgba(var(--wine-rgb), 0.08);
}
.account-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.account-hero-mail {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}
.account-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 640px) {
  .account-facts { grid-template-columns: 1fr 1fr; }
}
.account-facts--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.account-facts--stats .account-fact {
  padding: 0.55rem 0.35rem;
  text-align: center;
  justify-items: center;
  gap: 0.1rem;
}
.account-facts--stats .account-fact span {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.account-facts--stats .account-fact strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--fg-accent);
}
.account-fact {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  gap: 0.25rem;
}
.account-fact span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.account-fact strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
  word-break: break-word;
}
.account-facts--stats { margin-bottom: 1rem; }
.order-card-total { font-weight: 700; color: var(--fg-accent); }
.order-card-go {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg-accent);
}
.account-pass label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.account-pass {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.account-pass h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.account-pass input {
  width: 100%;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.account-pass-hint { font-size: 0.78rem; color: var(--muted); }
.account-page #cuentaDirs h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: 1.25rem;
}
.account-dir {
  margin: 0 0 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  gap: 0.55rem;
}
.account-dir--tel { margin-top: 0.7rem; }
.account-dir-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
  word-break: break-word;
}
.account-dir-alias {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.account-dir-badge {
  display: inline-flex;
  margin-left: 0.4rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--wine-dark-rgb), 0.1);
  color: var(--fg-accent);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
}
.account-dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.account-dir-actions button {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 999px;
}
.account-dir-empty {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
#cuentaDirs #btnDirNueva { margin-top: 0.15rem; }
.account-dir-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.account-dir-dialog:not([open]) { display: none; }
.account-dir-dialog {
  border: 0;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.4rem;
  width: min(calc(100% - 2rem), 440px);
  box-shadow: var(--shadow);
}
.account-dir-dialog::backdrop {
  background: rgba(42, 24, 24, 0.45);
}
.account-dir-dialog h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--fg-accent);
  font-size: 1.25rem;
}
.account-dir-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}
#cliente_direccion_sel:not([hidden]) + #cliente_direccion:not([hidden]) { margin-top: 0.5rem; }
.form-error.is-ok { color: var(--fg-ok); }
.account-empty { color: var(--muted); margin: 0.4rem 0 0.8rem; }
.account-more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 12px;
  background: #fff;
}
.account-back {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--wine-rgb), 0.4);
  background: #fff;
  color: var(--fg-accent);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(var(--wine-dark-rgb), 0.08);
}
.account-back:hover { background: var(--cream); color: var(--fg-accent-dark); }
.order-block { margin-bottom: 1.15rem; }
.order-block h3 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.order-grid { display: grid; gap: 0.45rem; }
.order-card {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(var(--wine-rgb), 0.08);
  box-shadow: 0 4px 10px rgba(26, 20, 22, 0.04);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.order-card:hover { transform: translateY(-1px); }
.order-card.is-live { box-shadow: inset 3px 0 0 var(--green); }
.order-card.is-cancel { box-shadow: inset 3px 0 0 #a33; }
.order-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.65rem; }
.order-card-top strong { font-size: 0.92rem; }
.order-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.order-card-status {
  font-weight: 700;
  color: var(--fg-accent);
  font-size: 0.75rem;
  background: #f8eef1;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}
.order-card.is-live .order-card-status { color: var(--fg-ok); background: var(--ok-soft); }
.order-card.is-cancel .order-card-status { color: #8a2a2a; background: #fdecec; }
.order-card-meta { color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.order-detail-head h3 { margin: 0; font-family: var(--font-display); }
.order-track {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.order-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.order-step-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.55rem;
  flex-shrink: 0;
  background: #e7dfd6;
  border-radius: 58% 42% 50% 50% / 46% 58% 42% 54%;
}
.order-step-mark img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
}
.order-step--pagado .order-step-mark { background: #efb15a; border-radius: 60% 40% 52% 48% / 44% 60% 40% 56%; }
.order-step--confirmado .order-step-mark { background: #e09aab; border-radius: 44% 56% 48% 52% / 58% 42% 58% 42%; }
.order-step--preparando .order-step-mark { background: #8eb6e6; border-radius: 52% 48% 42% 58% / 46% 54% 46% 54%; }
.order-step--listo .order-step-mark { background: #7dbe9c; border-radius: 48% 52% 60% 40% / 54% 46% 54% 46%; }
.order-step--en-camino .order-step-mark { background: #7eb8b0; border-radius: 56% 44% 46% 54% / 42% 58% 42% 58%; }
.order-step--entregado .order-step-mark { background: #6aaa88; border-radius: 42% 58% 54% 46% / 56% 44% 56% 44%; }
.order-step:not(.is-done):not(.is-current) { opacity: 0.55; }
.order-step.is-done { color: var(--ink); }
.order-step.is-current { color: var(--ink); font-weight: 700; }
.order-step.is-current .order-step-mark {
  box-shadow: 0 0 0 0 rgba(128, 32, 48, 0.4);
  animation: stepPulse 2.1s ease-out infinite;
}
@keyframes stepPulse {
  70% { box-shadow: 0 0 0 10px rgba(128, 32, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(128, 32, 48, 0); }
}
.order-cancel {
  background: #fdecec;
  color: #8a2a2a;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
}
.order-lines {
  list-style: none;
  margin: 0.5rem 0 0.9rem;
  padding: 0;
}
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

body.is-webpay-gate { overflow: hidden; }
.webpay-gate {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 1.15rem;
  background: rgba(14, 10, 16, 0.58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.webpay-gate.is-on {
  opacity: 1;
  pointer-events: auto;
}
.webpay-gate-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 26.5rem);
  padding: 1.85rem 1.45rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(10, 8, 14, 0.28);
  text-align: center;
  transform: translateY(18px) scale(0.94);
  opacity: 0;
}
.webpay-gate.is-on .webpay-gate-card {
  animation: webpayCardIn 0.48s var(--ease) both;
}
.webpay-gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.webpay-gate-orb--a {
  width: 9rem;
  height: 9rem;
  top: -3.4rem;
  right: -2.6rem;
  background: radial-gradient(circle, rgba(0, 156, 221, 0.28), transparent 68%);
}
.webpay-gate-orb--b {
  width: 8rem;
  height: 8rem;
  bottom: -3.2rem;
  left: -2.4rem;
  background: radial-gradient(circle, rgba(208, 0, 112, 0.2), transparent 68%);
}
.webpay-gate.is-on .webpay-gate-orb--a { animation: webpayOrb 2.4s ease-in-out infinite; }
.webpay-gate.is-on .webpay-gate-orb--b { animation: webpayOrb 2.6s ease-in-out 0.2s infinite reverse; }
.webpay-gate-mark {
  position: relative;
  width: 8.4rem;
  height: 8.4rem;
  margin: 0 auto 1.05rem;
  display: grid;
  place-items: center;
}
.webpay-gate-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 156, 221, 0.45);
  border-top-color: #d00070;
  border-right-color: #6d2077;
}
.webpay-gate.is-on .webpay-gate-ring { animation: webpaySpin 1.15s linear infinite; }
.webpay-gate-lock {
  position: absolute;
  top: -0.15rem;
  right: 0.15rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.25);
}
.webpay-gate-lock svg { width: 0.95rem; height: 0.95rem; }
.webpay-gate.is-on .webpay-gate-lock { animation: webpayLock 0.7s 0.18s var(--ease) both; }
.webpay-gate-mark img {
  position: relative;
  z-index: 1;
  width: 7.2rem;
  height: auto;
  background: #fff;
  padding: 1.05rem 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 10px 24px rgba(26, 20, 22, 0.1);
}
.webpay-gate.is-on .webpay-gate-mark img { animation: webpayLogo 0.55s 0.08s var(--ease) both; }
.webpay-gate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #009cdd;
}
.webpay-gate-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.webpay-gate-text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.webpay-gate.is-on .webpay-gate-kicker { animation: webpayFadeUp 0.4s 0.16s var(--ease) both; }
.webpay-gate.is-on .webpay-gate-title { animation: webpayFadeUp 0.42s 0.22s var(--ease) both; }
.webpay-gate.is-on .webpay-gate-text { animation: webpayFadeUp 0.42s 0.3s var(--ease) both; }
.webpay-gate-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}
.webpay-gate-brands img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.webpay-gate.is-on .webpay-gate-brands img { animation: webpayBrand 0.4s var(--ease) both; }
.webpay-gate.is-on .webpay-gate-brands img:nth-child(1) { animation-delay: 0.38s; }
.webpay-gate.is-on .webpay-gate-brands img:nth-child(2) { animation-delay: 0.46s; }
.webpay-gate.is-on .webpay-gate-brands img:nth-child(3) { animation-delay: 0.54s; }
.webpay-gate-bar {
  height: 5px;
  border-radius: 999px;
  background: #efe8e1;
  overflow: hidden;
}
.webpay-gate-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #009cdd, #6d2077 55%, #d00070);
}
.webpay-gate.is-on .webpay-gate-bar span { animation: webpayBar 2.35s linear forwards; }
@keyframes webpayCardIn {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes webpayLogo {
  0% { opacity: 0; transform: scale(0.62) rotate(-8deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes webpayLock {
  0% { opacity: 0; transform: scale(0.4) translateY(8px); }
  100% { opacity: 1; transform: none; }
}
@keyframes webpaySpin { to { transform: rotate(360deg); } }
@keyframes webpayOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 8px) scale(1.12); }
}
@keyframes webpayFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes webpayBrand {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 0.9; transform: none; }
}
@keyframes webpayBar {
  from { width: 0; }
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .webpay-gate,
  .webpay-gate.is-on .webpay-gate-card,
  .webpay-gate.is-on .webpay-gate-mark img,
  .webpay-gate.is-on .webpay-gate-lock,
  .webpay-gate.is-on .webpay-gate-kicker,
  .webpay-gate.is-on .webpay-gate-title,
  .webpay-gate.is-on .webpay-gate-text,
  .webpay-gate.is-on .webpay-gate-brands img {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .webpay-gate.is-on .webpay-gate-ring,
  .webpay-gate.is-on .webpay-gate-orb--a,
  .webpay-gate.is-on .webpay-gate-orb--b { animation: none; }
  .webpay-gate.is-on .webpay-gate-bar span { animation-duration: 0.7s; }
}

.auth-privacy-note {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.5rem 0 0.75rem;
  font-size: 0.92rem;
}
.legal-list {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.15rem;
  line-height: 1.55;
}
.legal-list li { margin: 0.35rem 0; }
.legal-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.legal-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
.legal-form input,
.legal-form select,
.legal-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
}
.legal-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.legal-ok { color: var(--green); font-weight: 600; }
.legal-error { color: #a32020; font-weight: 600; }
.cookie-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: rgba(26, 20, 22, 0.55);
  backdrop-filter: blur(4px);
}
.cookie-gate[hidden] { display: none !important; }
html.has-cookie-bar body { overflow: hidden; }
.cookie-gate-card {
  width: min(27.5rem, 100%);
  padding: 1.45rem 1.35rem 1.1rem;
  background: #fffdf9;
  color: var(--ink);
  border-radius: 22px;
  border: 1px solid rgba(var(--wine-rgb), 0.1);
  box-shadow: 0 22px 56px rgba(26, 20, 22, 0.22);
}
.cookie-gate-brand {
  display: flex;
  margin-bottom: 0.85rem;
}
.cookie-gate-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(var(--wine-rgb), 0.1);
  color: var(--wine);
}
.cookie-gate-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}
.cookie-gate-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ink);
}
.cookie-gate-lead {
  margin: 0 0 1.15rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-gate-card a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.cookie-gate-actions {
  display: grid;
  gap: 0.35rem;
}
.cookie-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  color: var(--on-wine);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.01em;
}
.cookie-gate-btn:hover {
  color: var(--on-wine);
  transform: none;
  box-shadow: none;
  filter: brightness(1.06);
}
.cookie-gate-btn--text {
  background: transparent;
  color: var(--ink);
  min-height: 2.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-gate-btn--text:hover { color: var(--wine); filter: none; }
.cookie-gate-btn--page {
  width: auto;
  min-width: 12.5rem;
  margin: 0.15rem 0 0.85rem;
}
.cookie-prefs {
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(26, 20, 22, 0.08);
  border-radius: 14px;
}
.cookie-pref-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.cookie-pref-copy strong {
  font-size: 0.92rem;
}
.cookie-pref-copy span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 2.55rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #ddd6d0;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-switch span,
.cookie-switch.is-lock span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}
.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 20, 22, 0.2);
  transition: transform 0.18s var(--ease);
}
.cookie-switch.is-on,
.cookie-switch:has(input:checked) {
  background: var(--green);
}
.cookie-switch.is-on span::after,
.cookie-switch:has(input:checked) span::after {
  transform: translateX(1.1rem);
}
.cookie-switch.is-lock {
  background: var(--green);
  opacity: 0.85;
}
.cookie-gate-foot {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.cookie-gate-foot a { color: inherit; }
.cookie-legal-hint {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid rgba(var(--wine-rgb), 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 20, 22, 0.14);
}
.cookie-legal-hint[hidden] { display: none !important; }
.cookie-legal-hint p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}
.cookie-legal-hint a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--on-wine);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.cookie-legal-hint a:hover {
  color: var(--on-wine);
  filter: brightness(1.06);
}
html.has-cookie-legal-hint .legal-page {
  padding-bottom: 6.5rem;
}
.account-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
