/* María Conga — estilo vintage boutique */

:root {
  --color-champagne: #f3ebe0;
  --color-parchment: #efe4d6;
  --color-cream: #faf6f0;
  --color-card: #fdfbf6;
  --color-ink: #3d2a1f;
  --color-ink-soft: #5c4336;
  --color-accent: #6b4634;
  --color-accent-light: #8a5f46;
  --color-gold: #9a7848;
  --color-gold-mid: #b89254;
  --color-border: #d8c9b6;
  --color-border-ornate: rgba(122, 92, 56, 0.32);
  --color-shadow: rgba(61, 42, 31, 0.07);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --radius-sm: 3px;
  --radius-md: 10px;
  --max-width: 72rem;
  --page-content-max: 1200px;
  --color-page-canvas: #f4f0ec;
  --transition: 0.25s ease;
  --parchment-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  background-color: var(--color-page-canvas);
  background-image:
    var(--parchment-texture),
    linear-gradient(180deg, #f7f3ee 0%, var(--color-page-canvas) 38%, #ebe6df 100%);
  background-size: 120px 120px, auto;
  min-height: 100vh;
}

/* Hoja central: contraste con el lienzo y sensación de profundidad */
main {
  background-color: #ffffff;
  max-width: var(--page-content-max);
  margin: 0 auto;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
}

body.payment-error-page main {
  background-color: transparent;
  box-shadow: none;
  max-width: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

/* —— Evento Día de la Novia (toggle EVENTO_DIA_NOVIA_ACTIVO → body.event-mode) —— */

body.event-mode {
  --color-accent: #d14d72;
  --color-accent-light: #e06b8a;
  --color-gold: #d14d72;
  --color-gold-mid: #e8a0b4;
  --event-rose: #d14d72;
  --event-rose-deep: #b83a5c;
  --event-blush: #f6e4ea;
}

body.event-mode h1,
body.event-mode .hero__title,
body.event-mode .dia-novia-banner__title {
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body.event-mode h2,
body.event-mode .section__title,
body.event-mode .product-card__name {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}

/* Parte superior exclusiva del evento: oculta hero/slider y banner general del nav */
body.event-mode .nav__banner,
body.event-mode .hero {
  display: none !important;
}

body.event-mode .product-card__add:not(:disabled):not(.product-card__add--disabled),
body.event-mode .checkout-modal__confirm,
body.event-mode .cart-drawer__checkout,
body.event-mode .hero__cta,
body.event-mode .dia-novia-banner__cta {
  color: #fff8f9;
  background: linear-gradient(180deg, #e86d8f 0%, #d14d72 48%, #b83a5c 100%);
  border-color: rgba(120, 40, 62, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 0 rgba(90, 30, 48, 0.12),
    0 8px 18px rgba(209, 77, 114, 0.22);
  text-transform: none;
  letter-spacing: 0.04em;
}

body.event-mode .product-card__add:not(:disabled):not(.product-card__add--disabled):hover,
body.event-mode .checkout-modal__confirm:hover,
body.event-mode .cart-drawer__checkout:hover,
body.event-mode .dia-novia-banner__cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

body.event-mode .product-card__add .fa-heart,
body.event-mode .checkout-modal__confirm .fa-heart,
body.event-mode .cart-drawer__checkout .fa-heart {
  margin-right: 0.4rem;
  color: #ffe6ee;
}

body.event-mode .product-card--dia-novia {
  border-color: rgba(209, 77, 114, 0.45);
  box-shadow:
    0 0 0 1px rgba(209, 77, 114, 0.18),
    0 10px 28px rgba(209, 77, 114, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  background:
    linear-gradient(180deg, #fffafb 0%, var(--color-card) 40%);
}

body.event-mode .product-card__recomendado-ribbon {
  display: block;
}

.product-card__recomendado-ribbon {
  display: none;
  position: absolute;
  top: 0.85rem;
  left: -0.15rem;
  z-index: 5;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8f9;
  background: linear-gradient(180deg, #e86d8f 0%, #d14d72 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(120, 40, 62, 0.2);
  pointer-events: none;
}

.product-card__recomendado-ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  border: 0.2rem solid transparent;
  border-top-color: #8f2d4a;
  border-right-color: #8f2d4a;
}

/* Lluvia de pétalos (solo con body.event-mode) */
.event-petals {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

body.event-mode .event-petals {
  display: block;
}

.event-petal {
  position: absolute;
  top: -8%;
  left: calc(var(--petal-x, 50) * 1%);
  font-size: var(--petal-size, 1rem);
  opacity: 0.55;
  animation: event-petal-fall var(--petal-dur, 12s) linear infinite;
  animation-delay: var(--petal-delay, 0s);
  will-change: transform;
  filter: drop-shadow(0 1px 1px rgba(90, 40, 55, 0.15));
}

@keyframes event-petal-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(var(--petal-drift, 40px), 110vh, 0) rotate(360deg);
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.event-mode .event-petals {
    display: none !important;
  }
}

.dia-novia-topbar {
  display: block;
  width: 100%;
  padding: 0.45rem var(--space-md);
  text-align: center;
  background:
    linear-gradient(90deg, #f6e4ea 0%, #f9eef2 45%, #f3e6dc 100%);
  border-bottom: 1px solid rgba(168, 112, 128, 0.22);
}

.dia-novia-topbar[hidden] {
  display: none !important;
}

.dia-novia-topbar__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 2.4vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #6a3f4c;
}

.dia-novia-banner {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.25rem) var(--space-md);
  background:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(255, 236, 242, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(236, 244, 232, 0.7) 0%, transparent 50%),
    linear-gradient(165deg, #f8eef2 0%, #f4ebe3 48%, #efe6dc 100%);
  border-block: 1px solid rgba(168, 112, 128, 0.18);
}

.dia-novia-banner[hidden] {
  display: none !important;
}

.dia-novia-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  animation: dia-novia-banner-in 0.7s ease both;
}

@keyframes dia-novia-banner-in {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dia-novia-banner__inner {
    animation: none;
  }
}

.dia-novia-banner__badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a3f4c;
  background: rgba(255, 252, 250, 0.72);
  border: 1px solid rgba(168, 112, 128, 0.28);
  border-radius: 999px;
}

.dia-novia-banner__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.dia-novia-banner__subtitle {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.dia-novia-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a181c;
  background: linear-gradient(180deg, #f7e4ea 0%, #e8c4cf 48%, #d4a0b0 100%);
  border: 1px solid rgba(122, 70, 86, 0.35);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 16px rgba(90, 50, 62, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dia-novia-banner__cta:hover {
  color: #2a181c;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* —— Header & nav —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(253, 251, 246, 0.94) 0%, rgba(243, 235, 224, 0.9) 100%);
  border-bottom: 1px solid var(--color-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 24px rgba(61, 42, 31, 0.04);
  backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
}

/* Tres columnas: marca | banner centrado | menú */
.nav__brand {
  flex: 0 0 auto;
}

.nav__banner {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__banner-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  text-transform: none;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__brand-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: sepia(0.12) contrast(0.98);
}

.nav__brand-text {
  line-height: 1.15;
}

.nav__brand:hover {
  color: var(--color-accent);
}

.nav__brand:hover .nav__brand-logo {
  filter: sepia(0.18) contrast(1.02);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(237, 228, 216, 0.75) 100%);
  border: 1px solid var(--color-border-ornate);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 0 rgba(61, 42, 31, 0.08);
  flex-shrink: 0;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav__collapse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: clamp(1rem, 3vw, 2rem);
  min-width: 0;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__links a:hover {
  color: var(--color-ink);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__club-icon {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.2em;
  color: #d4b882;
  filter: drop-shadow(0 0 3px rgba(212, 184, 130, 0.35));
}

.nav__club-label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .nav {
    padding: 0.65rem var(--space-sm);
    align-items: center;
    gap: 0.5rem;
  }

  .nav__brand {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    min-width: 0;
    max-width: none;
    gap: 8px;
    flex: 0 1 auto;
  }

  .nav__brand-logo {
    height: 40px;
    max-width: 100px;
  }

  .nav__banner-img {
    height: 44px;
    max-width: min(160px, 32vw);
  }

  .nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .nav__collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    gap: 0;
    margin: 0 calc(-1 * var(--space-sm));
    padding: 0 var(--space-sm);
    background: linear-gradient(180deg, #fdfbf7 0%, var(--color-cream) 100%);
    border-bottom: 1px solid var(--color-border);
    box-shadow:
      0 12px 32px rgba(61, 42, 31, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.4s ease,
      opacity 0.28s ease,
      visibility 0.28s,
      padding 0.35s ease;
  }

  .nav__collapse.is-open {
    max-height: 28rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-sm);
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links li {
    border-bottom: 1px solid rgba(216, 201, 182, 0.85);
  }

  .nav__links li:last-child {
    border-bottom: none;
  }

  .nav__links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(154, 120, 72, 0.22);
  }

  .nav__toolbar .nav__profile,
  .nav__toolbar .nav__historial-compras,
  .nav__toolbar .nav__cart {
    width: 100%;
    justify-content: center;
  }

  .nav__toolbar .nav__cart {
    min-height: 2.65rem;
  }
}

.nav__profile {
  padding: 0.45rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__profile:hover {
  color: var(--color-ink);
  border-color: var(--color-gold);
  background: rgba(250, 247, 241, 0.65);
}

.nav__profile:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav__historial-compras {
  padding: 0.45rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  background: transparent;
  border: 1px solid rgba(154, 120, 72, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  white-space: nowrap;
}

.nav__historial-compras:hover {
  color: var(--color-ink);
  border-color: rgba(184, 146, 84, 0.65);
  background: rgba(253, 248, 240, 0.85);
  box-shadow: 0 1px 6px rgba(122, 92, 56, 0.12);
}

.nav__historial-compras:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav__cart:hover {
  border-color: var(--color-gold);
  color: var(--color-accent);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.nav__cart:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav__cart-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  color: var(--color-parchment);
  background: var(--color-gold);
  border-radius: 999px;
  border: 1px solid rgba(90, 70, 45, 0.35);
  box-shadow: 0 1px 3px rgba(42, 31, 24, 0.2);
}

.nav__cart-badge.is-empty {
  display: none;
}

body.cart-open {
  overflow: hidden;
}

body.profile-open {
  overflow: hidden;
}

body.historial-compras-open {
  overflow: hidden;
}

/* —— Historial de compras (modal local) —— */

.historial-compras-backdrop {
  position: fixed;
  inset: 0;
  z-index: 286;
  background: rgba(42, 31, 24, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.historial-compras-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.historial-compras-modal {
  position: fixed;
  inset: 0;
  z-index: 291;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.historial-compras-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.historial-compras-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(88vh, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  background: linear-gradient(168deg, #fdfbf8 0%, var(--color-cream) 48%, #f5ebe0 100%);
  border: 1px solid rgba(154, 120, 72, 0.28);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 20px 48px rgba(61, 42, 31, 0.14);
}

.historial-compras-modal__panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(184, 146, 84, 0.15);
  pointer-events: none;
  border-radius: 3px;
}

.historial-compras-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(154, 120, 72, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.historial-compras-modal__close:hover {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-gold);
}

.historial-compras-modal__title {
  position: relative;
  z-index: 1;
  margin: 0 2.25rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}

.historial-compras-modal__lead {
  position: relative;
  z-index: 1;
  margin: 0 2rem 1rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}

.historial-compras-modal__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-right: -0.25rem;
  padding-right: 0.25rem;
}

.historial-compras__empty {
  margin: 0.5rem 0 0;
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  font-style: italic;
}

.historial-compras__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.historial-compras__item {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 146, 84, 0.22);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.historial-compras__item-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(74, 52, 36, 0.72);
  margin-bottom: 0.45rem;
}

.historial-compras__item-id {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
}

.historial-compras__item-id strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4a3424;
}

.historial-compras__item-products {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink);
}

.historial-compras__item-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.historial-compras__item-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5c422c;
}

.historial-compras__item-method {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(74, 52, 36, 0.65);
}

/* —— Perfil local (modal) —— */

.profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 285;
  background: rgba(42, 31, 24, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 290;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-modal__panel {
  position: relative;
  width: min(100%, 22rem);
  max-height: min(90vh, 100dvh);
  overflow-y: auto;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  background: linear-gradient(175deg, var(--color-cream) 0%, var(--color-parchment) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 24px 56px rgba(42, 31, 24, 0.18);
}

.profile-modal__panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(143, 115, 85, 0.18);
  pointer-events: none;
  border-radius: 2px;
}

.profile-modal__panel--vip {
  border-color: rgba(184, 146, 84, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 2px rgba(212, 184, 130, 0.35),
    0 24px 56px rgba(42, 31, 24, 0.18);
}

.profile-modal__panel--vip::before {
  border-color: rgba(184, 146, 84, 0.28);
}

.profile-modal__vip {
  position: relative;
  z-index: 1;
  margin: 0 2rem 0.65rem 0;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #4a3424;
  background: linear-gradient(180deg, #faf3e6 0%, #e8d4b0 45%, #d4b882 100%);
  border: 1px solid rgba(122, 92, 56, 0.45);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.profile-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink-soft);
  background: rgba(250, 247, 241, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.profile-modal__close:hover {
  color: var(--color-accent);
  border-color: var(--color-gold);
}

.profile-modal__title {
  margin: 0 2rem var(--space-xs) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

.profile-modal__lead {
  margin: 0 0 var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.profile-form .checkout-field:last-of-type {
  margin-bottom: var(--space-md);
}

.profile-modal__save {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1410;
  background: linear-gradient(175deg, #f0e0c4 0%, #d4b882 38%, #b89254 100%);
  border: 1px solid rgba(90, 70, 45, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 4px 14px rgba(42, 31, 24, 0.1);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.profile-modal__save:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.profile-modal__save:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Toast */
.app-toast {
  position: fixed;
  z-index: 400;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  max-width: min(92vw, 22rem);
  padding: 0.75rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-ink);
  background: linear-gradient(180deg, #faf6ef 0%, #ebe3d6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 2px 12px rgba(42, 31, 24, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
  pointer-events: none;
}

.app-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.app-toast.app-toast--error {
  color: #4a3028;
  background: linear-gradient(180deg, #faf0ea 0%, #ebd8cf 100%);
  border-color: rgba(139, 90, 72, 0.45);
  box-shadow:
    0 3px 16px rgba(61, 42, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(42, 31, 24, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 230;
  width: min(100%, 26rem);
  height: 100%;
  max-height: 100dvh;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-parchment) 55%);
  border-left: 1px solid var(--color-border);
  box-shadow: -12px 0 40px rgba(42, 31, 24, 0.18);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.cart-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: rgba(250, 247, 241, 0.65);
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.cart-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-ink-soft);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.cart-drawer__close:hover {
  color: var(--color-accent);
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.5);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__empty {
  margin: 0;
  padding: var(--space-lg) var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-style: italic;
  text-align: center;
  color: var(--color-ink-soft);
}

.cart-line {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-line__img-wrap {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #ebe4d8;
}

.cart-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cart-line__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
}

.cart-line__subtotal {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.cart-line__qty button {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-ink);
  background: linear-gradient(180deg, #faf6ef 0%, #ebe3d6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.cart-line__qty button:hover {
  border-color: var(--color-gold);
  color: var(--color-accent);
}

.cart-line__qty-val {
  min-width: 1.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.cart-drawer__footer {
  flex-shrink: 0;
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  background: rgba(250, 247, 241, 0.85);
  box-shadow: 0 -4px 20px rgba(42, 31, 24, 0.06);
}

.cart-drawer__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-ink-soft);
}

.cart-drawer__total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink);
}

.cart-drawer__checkout {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1410;
  background: linear-gradient(175deg, #f0e0c4 0%, #d4b882 38%, #b89254 100%);
  border: 1px solid rgba(90, 70, 45, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 4px 16px rgba(42, 31, 24, 0.12);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cart-drawer__checkout:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.cart-drawer__checkout:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* —— Checkout modal —— */

.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(42, 31, 24, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.checkout-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  padding-top: max(var(--space-md), env(safe-area-inset-top));
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.checkout-modal__panel {
  position: relative;
  width: min(100%, 56rem);
  max-height: min(92vh, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, var(--color-cream) 0%, var(--color-parchment) 42%, #ede4d6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 32px 72px rgba(42, 31, 24, 0.22);
}

.checkout-modal__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(143, 115, 85, 0.2);
  pointer-events: none;
  border-radius: 2px;
}

.checkout-modal__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.1rem);
  right: clamp(0.75rem, 2vw, 1.1rem);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--color-ink-soft);
  background: rgba(250, 247, 241, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.checkout-modal__close:hover {
  color: var(--color-accent);
  border-color: var(--color-gold);
}

.checkout-modal__stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#checkout-view-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.checkout-modal__title {
  flex-shrink: 0;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(2.5rem, 5vw, 3rem) var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  text-align: center;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.checkout-view-result {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.checkout-result__inner {
  max-width: 28rem;
  margin: 0 auto;
}

.checkout-result__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.95rem);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.2;
}

.checkout-result__order-id {
  margin: 0 0 var(--space-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(184, 146, 84, 0.45);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.checkout-result__order-id strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4a3424;
}

.checkout-result__text {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  text-align: left;
}

.checkout-result__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1410;
  background: linear-gradient(175deg, #f0e0c4 0%, #d4b882 38%, #b89254 100%);
  border: 1px solid rgba(90, 70, 45, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 20px rgba(42, 31, 24, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.checkout-result__whatsapp:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: #1a1410;
}

.checkout-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.checkout-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: checkout-spin 0.75s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-result__mp {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-ink-soft);
  margin: 0;
}

.checkout-modal__grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: 0 clamp(1.5rem, 4vw, 2.75rem) var(--space-md);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .checkout-modal__grid {
    grid-template-columns: 1fr;
  }
}

.checkout-section {
  min-width: 0;
}

.checkout-section__heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.checkout-field {
  margin-bottom: var(--space-sm);
}

.checkout-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.checkout-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
  font-style: italic;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(42, 31, 24, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow:
    inset 0 1px 2px rgba(42, 31, 24, 0.04),
    0 0 0 2px rgba(143, 115, 85, 0.2);
}

.checkout-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.checkout-field select {
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background-color: rgba(255, 255, 255, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238f7355' stroke-width='1.5' d='M1 1.5l5 4 5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(42, 31, 24, 0.04);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow:
    inset 0 1px 2px rgba(42, 31, 24, 0.04),
    0 0 0 2px rgba(143, 115, 85, 0.2);
}

.checkout-field--inline-label {
  margin-bottom: var(--space-sm);
}

.checkout-field__group-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.checkout-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  align-items: end;
}

.checkout-field__row .checkout-field {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .checkout-field__row {
    grid-template-columns: 1fr;
  }
}

.checkout-payment {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkout-payment__option {
  display: block;
  cursor: pointer;
  margin: 0;
}

.checkout-payment__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkout-payment__card {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(246, 241, 232, 0.8) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.checkout-payment__option:hover .checkout-payment__card {
  border-color: rgba(143, 115, 85, 0.45);
}

.checkout-payment__option input:focus-visible + .checkout-payment__card {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.checkout-payment__option input:checked + .checkout-payment__card {
  border-color: var(--color-gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(143, 115, 85, 0.25);
}

.checkout-payment__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.checkout-payment__desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}

.checkout-modal__footer {
  flex-shrink: 0;
  padding: var(--space-md) clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--color-border);
  background: rgba(250, 247, 241, 0.75);
  box-shadow: 0 -6px 24px rgba(42, 31, 24, 0.06);
}

.checkout-modal__total-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
}

.checkout-modal__total-label {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-ink-soft);
}

.checkout-modal__total-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: var(--color-ink);
}

.checkout-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-modal__confirm {
  flex: 1;
  min-width: 12rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1410;
  background: linear-gradient(175deg, #f0e0c4 0%, #d4b882 38%, #b89254 100%);
  border: 1px solid rgba(90, 70, 45, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 20px rgba(42, 31, 24, 0.12);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.checkout-modal__confirm:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.checkout-modal__cancel {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

.checkout-modal__cancel:hover {
  color: var(--color-accent);
  border-bottom-color: rgba(143, 115, 85, 0.4);
}

body.checkout-open {
  overflow: hidden;
}

/* —— Hero —— */

.hero {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.hero__frame {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 10vw, 5.5rem) clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 24px 48px var(--color-shadow);
  background: var(--color-parchment);
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero__slide--active {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(250, 247, 241, 0.88) 0%, rgba(237, 228, 216, 0.82) 45%, rgba(246, 241, 232, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237a4f3a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(143, 115, 85, 0.25);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
}

.hero__subtitle {
  margin: 0 0 var(--space-lg);
  font-size: 1.125rem;
  color: var(--color-ink-soft);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f1610;
  background: linear-gradient(175deg, #f4e8d4 0%, #d4b882 38%, #a67c48 100%);
  padding: 0.9rem 2rem;
  border: 1px solid rgba(90, 65, 42, 0.5);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(61, 42, 31, 0.18),
    0 8px 22px rgba(61, 42, 31, 0.12);
  transition: background var(--transition), transform 0.2s ease, box-shadow var(--transition), filter 0.2s ease;
}

.hero__cta:hover {
  color: #120e0b;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 3px 0 rgba(61, 42, 31, 0.12),
    0 12px 28px rgba(61, 42, 31, 0.14);
}

.hero__ornament {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  opacity: 0.45;
  pointer-events: none;
}

.hero__ornament--tl {
  top: 24px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.hero__ornament--br {
  bottom: 24px;
  right: 24px;
  border-left: none;
  border-top: none;
}

/* —— Divisores de sección —— */

.section-divider {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.35rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  color: var(--color-gold);
}

.section-divider__line {
  flex: 1;
  height: 1px;
  min-width: 1.5rem;
}

.section-divider__line:first-of-type {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(143, 115, 85, 0.2) 28%,
    rgba(143, 115, 85, 0.75) 100%
  );
}

.section-divider__line:last-of-type {
  background: linear-gradient(
    90deg,
    rgba(143, 115, 85, 0.75) 0%,
    rgba(143, 115, 85, 0.2) 72%,
    transparent 100%
  );
}

.section-divider__ornament {
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}

.section-divider--before-footer {
  padding-bottom: var(--space-lg);
}

/* —— Catalog —— */

.section {
  padding: var(--space-xl) var(--space-md);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 var(--space-sm);
}

.section__lead {
  margin: 0;
  color: var(--color-ink-soft);
}

.catalog__toolbar {
  max-width: 22rem;
  margin: 0 auto var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-parchment) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 6px 20px var(--color-shadow);
}

.catalog__filter-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.catalog__select {
  display: block;
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background-color: var(--color-parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238f7355' stroke-width='1.5' d='M1 1.5l5 4 5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(42, 31, 24, 0.06);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.catalog__select:hover {
  border-color: var(--color-gold);
}

.catalog__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow:
    inset 0 1px 2px rgba(42, 31, 24, 0.06),
    0 0 0 2px rgba(143, 115, 85, 0.25);
}

.catalog__filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-md);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-ink-soft);
  background: var(--color-cream);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.catalog__load-more {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: var(--space-lg) auto 0;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.04em;
  color: #1f1610;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 42%, #9a7848 100%);
  border: 1px solid rgba(90, 65, 42, 0.48);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(61, 42, 31, 0.14),
    0 8px 22px rgba(61, 42, 31, 0.1);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}

.catalog__load-more:hover {
  color: #120e0b;
  filter: brightness(1.04);
  border-color: rgba(122, 92, 56, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 3px 0 rgba(61, 42, 31, 0.1),
    0 12px 30px rgba(61, 42, 31, 0.12);
  transform: translateY(-2px);
}

.catalog__load-more:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.catalog__load-more[hidden] {
  display: none;
}

@keyframes catalog-card-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card--reveal {
  animation: catalog-card-reveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .product-card--reveal {
    animation: none;
  }
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 767px) {
  #catalogo.section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .catalog__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }
}

.catalog__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink-soft);
  background: var(--color-cream);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.catalog__status--loading {
  font-style: italic;
}

.catalog__status--error {
  color: #6b3a32;
  border-style: solid;
  background: #faf0ee;
}

.product-card__image--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem 0;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0%, rgba(245, 238, 228, 0.85) 100%);
}

.product-card__image--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  box-shadow:
    0 2px 12px rgba(61, 42, 31, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  filter: contrast(1.05) saturate(1.06);
}

/* —— Club de Suscripción (premium) —— */

.club-subscribe {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-md);
  margin: var(--space-lg) var(--space-md) var(--space-xl);
  max-width: calc(var(--max-width) + 2 * var(--space-md));
  margin-left: auto;
  margin-right: auto;
}

.club-subscribe__shell {
  position: relative;
  border-radius: 6px;
  background: linear-gradient(145deg, #1c1612 0%, #2a2119 42%, #1a1511 100%);
  border: 1px solid rgba(201, 176, 130, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 64px rgba(20, 14, 10, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.club-subscribe__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 176, 130, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(122, 79, 58, 0.2), transparent 50%);
  pointer-events: none;
}

.club-subscribe__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(212, 184, 130, 0.14), transparent 70%);
  pointer-events: none;
}

.club-subscribe__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.75rem, 5vw, 3.5rem);
  max-width: 40rem;
  margin: 0 auto;
}

.club-subscribe__content--plans {
  max-width: min(56rem, 100%);
}

.club-subscribe__content::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(201, 176, 130, 0.22);
  border-radius: 2px;
  pointer-events: none;
}

.club-subscribe__ornament {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 176, 130, 0.45);
  pointer-events: none;
  z-index: 2;
}

.club-subscribe__ornament--tl {
  top: clamp(1.25rem, 4vw, 2rem);
  left: clamp(1.25rem, 4vw, 2rem);
  border-right: none;
  border-bottom: none;
}

.club-subscribe__ornament--br {
  bottom: clamp(1.25rem, 4vw, 2rem);
  right: clamp(1.25rem, 4vw, 2rem);
  border-left: none;
  border-top: none;
}

.club-subscribe__eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4b882;
  margin: 0 0 var(--space-md);
}

.club-subscribe__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  color: #f7f2ea;
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.club-subscribe__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  font-size: 1.125rem;
  line-height: 1.75;
  color: #c9bfb0;
}

.club-subscribe__lead strong {
  color: #ebe4d8;
  font-weight: 600;
}

.club-plans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  text-align: left;
}

@media (min-width: 768px) {
  .club-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .club-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.club-plan-card--plata {
  border-color: rgba(200, 210, 220, 0.55);
}

.club-plan-card--oro {
  border-color: rgba(230, 200, 140, 0.78);
  background: linear-gradient(165deg, rgba(48, 36, 24, 0.96) 0%, rgba(22, 16, 12, 0.98) 100%);
}

.club-plan-card__badge--plata {
  color: #c5d0dc;
}

.club-plan-card__badge--oro {
  color: #f0d7a0;
}

.club-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 4vw, 1.85rem);
  border-radius: 8px;
  background: linear-gradient(165deg, rgba(36, 28, 22, 0.92) 0%, rgba(24, 18, 14, 0.96) 100%);
  border: 1px solid rgba(212, 184, 130, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 2px rgba(122, 92, 56, 0.35),
    0 20px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.club-plan-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 184, 130, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.club-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 200, 140, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px rgba(184, 146, 84, 0.45),
    0 26px 56px rgba(0, 0, 0, 0.4);
}

.club-plan-card--premium {
  border-color: rgba(230, 200, 140, 0.72);
  background: linear-gradient(165deg, rgba(42, 32, 24, 0.95) 0%, rgba(20, 15, 12, 0.98) 100%);
}

.club-plan-card--premium::before {
  border-color: rgba(240, 210, 150, 0.28);
}

.club-plan-card__badge {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a86a;
}

.club-plan-card__badge--premium {
  color: #e8d4a8;
}

.club-plan-card__name {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f7f2ea;
}

.club-plan-card__desc {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(232, 224, 212, 0.88);
}

.club-plan-card__price {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 600;
  color: #f0e4cc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.club-plan-card__regular {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(210, 198, 180, 0.72);
  text-decoration: line-through;
}

.club-plan-card__club-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #f7ecd4;
}

.club-plan-card__savings {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f1610;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 100%);
  border: 1px solid rgba(184, 146, 84, 0.55);
  border-radius: 4px;
}

.club-plan-card__period {
  font-size: 0.65em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #c9bfb0;
}

.club-plan-card__benefits {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #c9bfb0;
}

.club-plan-card__benefits li {
  margin: 0 0 0.55rem;
}

.club-plan-card__benefits li:last-child {
  margin-bottom: 0;
}

.club-plan-card__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1410;
  cursor: pointer;
  background: linear-gradient(175deg, #f4e8d4 0%, #d4b882 38%, #b89254 100%);
  border: 1px solid rgba(90, 70, 45, 0.55);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(26, 20, 16, 0.2);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.club-plan-card__cta:hover {
  color: #120e0b;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 3px 0 rgba(26, 20, 16, 0.15);
}

.club-plan-card__cta:focus-visible {
  outline: 2px solid #f7f2ea;
  outline-offset: 3px;
}

.club-subscribe__note {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: clamp(1.5rem, 4vw, 2rem) auto 0;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #8a7d6e;
}

.club-subscribe__tier-visita {
  position: relative;
  z-index: 1;
}

.club-socio-panel {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: clamp(1rem, 3vw, 1.5rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  background: linear-gradient(165deg, rgba(52, 42, 34, 0.65) 0%, rgba(24, 18, 14, 0.85) 100%);
  border: 1px solid rgba(212, 184, 130, 0.42);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.25);
}

.club-socio-panel__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d4b882;
}

.club-socio-panel__heading {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  color: #f7f2ea;
}

.club-socio-panel__saludo {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: #ebe4d8;
}

.club-socio-panel__hint {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #b8a99a;
}

.club-socio-panel__hint strong {
  color: #e8d4a8;
}

.club-socio-panel__cuenta {
  margin: 0 0 var(--space-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #c9bfb0;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 184, 130, 0.22);
  border-radius: 6px;
}

.club-socio-panel__leave {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin: var(--space-md) auto 0;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f0e6dc;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(212, 184, 130, 0.45);
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.club-socio-panel__leave:hover {
  color: #fff;
  border-color: rgba(230, 200, 160, 0.65);
  background: rgba(180, 80, 70, 0.25);
}

/* —— Modal alta Club (membresía) —— */

.club-membership-backdrop {
  position: fixed;
  inset: 0;
  z-index: 315;
  background: rgba(42, 31, 24, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.club-membership-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.club-membership-modal {
  position: fixed;
  inset: 0;
  z-index: 325;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  padding-top: max(var(--space-md), env(safe-area-inset-top));
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.club-membership-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.club-membership-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(90vh, 100dvh);
  overflow-y: auto;
  padding: clamp(1.35rem, 3.5vw, 1.85rem);
  background: linear-gradient(175deg, var(--color-cream) 0%, var(--color-parchment) 45%, #e8dfd2 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 2px rgba(184, 146, 84, 0.22),
    0 28px 64px rgba(61, 42, 31, 0.2);
}

.club-membership-modal__panel--detail {
  width: min(100%, 32rem);
}

.club-membership-modal__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(154, 120, 72, 0.18);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.club-membership-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink-soft);
  background: rgba(255, 252, 247, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.club-membership-modal__close:hover {
  color: var(--color-ink);
  border-color: var(--color-gold);
}

.club-membership-modal__title {
  position: relative;
  z-index: 1;
  margin: 0 2rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-ink);
}

.club-membership-modal__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-md);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.club-tier-gallery {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1f1712;
  border: 1px solid rgba(154, 120, 72, 0.35);
  aspect-ratio: 16 / 10;
}

.club-tier-gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.club-tier-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.club-tier-gallery__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.club-tier-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-tier-gallery__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #d8cfc2;
  font-size: 0.9rem;
}

.club-tier-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(30, 22, 16, 0.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.club-tier-gallery__nav:hover {
  background: rgba(30, 22, 16, 0.75);
}

#club-gallery-prev {
  left: 0.55rem;
}

#club-gallery-next {
  right: 0.55rem;
}

.club-tier-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.club-tier-gallery__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.club-tier-gallery__dot--active {
  background: #f0d7a0;
}

.club-duration {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}

.club-duration__legend {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.club-duration__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.club-duration__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.7rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.club-duration__option:has(input:checked),
.club-duration__option--active {
  border-color: var(--color-gold);
  background: rgba(244, 232, 212, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.club-duration__option input {
  margin: 0;
  accent-color: var(--color-accent);
}

.club-membership-price {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  background: rgba(255, 252, 247, 0.65);
  border: 1px solid rgba(184, 146, 84, 0.28);
  border-radius: var(--radius-sm);
}

.club-membership-price strong {
  display: inline-block;
  margin-left: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
}

.club-duration__option-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.club-duration__option-text strong {
  font-weight: 600;
}

.club-duration__option-text small {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}

.club-membership-price-compare {
  position: relative;
  z-index: 1;
  margin: -0.35rem 0 1rem;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.club-membership-price-compare del {
  margin-left: 0.2rem;
  opacity: 0.85;
}

.club-membership-form {
  position: relative;
  z-index: 1;
}

.club-membership-modal__footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(216, 201, 182, 0.85);
}

.club-membership-modal__submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f1610;
  cursor: pointer;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 42%, #9a7848 100%);
  border: 1px solid rgba(90, 65, 42, 0.48);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(61, 42, 31, 0.14),
    0 8px 20px rgba(61, 42, 31, 0.1);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.club-membership-modal__submit:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.club-membership-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.club-membership-modal__cancel {
  width: 100%;
  padding: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.club-membership-modal__cancel:hover {
  color: var(--color-accent);
  border-bottom-color: rgba(143, 115, 85, 0.4);
}

body.club-membership-open {
  overflow: hidden;
}

/* —— Retorno Mercado Pago — membresía —— */

.club-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(26, 20, 16, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.club-welcome-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.club-welcome-overlay__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
  background: linear-gradient(175deg, #fdfbf7 0%, var(--color-parchment) 45%, #e8dfd2 100%);
  border: 1px solid rgba(154, 120, 72, 0.45);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 28px 64px rgba(61, 42, 31, 0.2);
}

.club-welcome-overlay__panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 146, 84, 0.22);
  border-radius: calc(var(--radius-md) - 6px);
  pointer-events: none;
}

.club-welcome-overlay__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.club-welcome-overlay__title {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
}

.club-welcome-overlay__text {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.club-welcome-overlay__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f1610;
  cursor: pointer;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 42%, #9a7848 100%);
  border: 1px solid rgba(90, 65, 42, 0.48);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(61, 42, 31, 0.12),
    0 8px 20px rgba(61, 42, 31, 0.1);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.club-welcome-overlay__cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.club-welcome-open {
  overflow: hidden;
}

.product-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border-ornate);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(61, 42, 31, 0.06),
    0 4px 12px rgba(61, 42, 31, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition:
    box-shadow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.55s ease;
}

.product-card:hover {
  border-color: rgba(154, 120, 72, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px rgba(61, 42, 31, 0.08),
    0 6px 16px rgba(61, 42, 31, 0.05),
    0 0 0 1px rgba(184, 146, 84, 0.2);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(165deg, rgba(154, 120, 72, 0.08) 0%, rgba(253, 251, 246, 0.92) 50%, rgba(107, 70, 52, 0.06) 100%),
    linear-gradient(90deg, #f5efe6 0%, #faf6f0 100%);
  border-bottom: 1px solid rgba(216, 201, 182, 0.65);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__image {
    transition-duration: 0.01ms;
  }

  .product-card:hover {
    transform: none;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 10px 28px rgba(61, 42, 31, 0.06),
      0 4px 12px rgba(61, 42, 31, 0.04);
    border-color: var(--color-border-ornate);
  }

  .product-card:hover .product-card__image {
    transform: none;
  }

  .product-card__image--photo img {
    filter: none;
  }
}

.product-card__image--2 {
  background:
    linear-gradient(200deg, rgba(154, 120, 72, 0.1) 0%, rgba(253, 251, 246, 0.95) 45%, rgba(107, 70, 52, 0.07) 100%),
    linear-gradient(90deg, #f0e8de 0%, #faf6f0 100%);
}

.product-card__image--3 {
  background:
    linear-gradient(180deg, rgba(107, 70, 52, 0.1) 0%, rgba(255, 252, 247, 0.94) 55%, rgba(154, 120, 72, 0.08) 100%),
    linear-gradient(90deg, #ede5da 0%, #fdfbf7 100%);
}

.product-card__image--4 {
  background:
    linear-gradient(130deg, rgba(184, 146, 84, 0.12) 0%, rgba(245, 238, 228, 0.92) 50%, rgba(90, 60, 45, 0.05) 100%),
    linear-gradient(90deg, #ebe3d8 0%, #fdfbf7 100%);
}

.product-card__body {
  padding: var(--space-md);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 var(--space-xs);
}

.product-card__meta {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.product-card__price {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.product-card__price--oferta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.product-card__price-lista {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: line-through;
  opacity: 0.85;
}

.product-card__price-oferta {
  font-size: 1.25rem;
  font-weight: 700;
  color: #7a2e2e;
  letter-spacing: 0.01em;
}

.product-card__oferta-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 4;
  padding: 0.28rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff8f4;
  background: linear-gradient(180deg, #c45c4a 0%, #9a3d32 55%, #7a2e2e 100%);
  border: 1px solid rgba(61, 28, 24, 0.4);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(61, 42, 31, 0.14);
  pointer-events: none;
}

.product-card__price--with-socio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.product-card__price--oferta.product-card__price--with-socio {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.product-card__price--oferta.product-card__price--with-socio .product-card__price-lista,
.product-card__price--oferta.product-card__price--with-socio .product-card__price-oferta {
  display: inline;
}

.product-card__price--socio-valor {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}

.product-card__price--socio-lista {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: line-through;
  opacity: 0.88;
}

.product-card__socio-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  padding: 0.28rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f1610;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 55%, #b89254 100%);
  border: 1px solid rgba(90, 65, 42, 0.45);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 8px rgba(61, 42, 31, 0.12);
  pointer-events: none;
}

.product-card__add {
  display: block;
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.65rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f1610;
  background: linear-gradient(180deg, #f2e4cc 0%, #d4b882 45%, #9a7848 100%);
  border: 1px solid rgba(90, 65, 42, 0.45);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(61, 42, 31, 0.12),
    0 6px 14px rgba(61, 42, 31, 0.08);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform 0.2s ease, filter 0.2s ease;
}

button.product-card__add {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button.product-card__add:not(:disabled):hover {
  color: #120e0b;
  filter: brightness(1.05);
  border-color: rgba(122, 92, 56, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 3px 0 rgba(61, 42, 31, 0.1),
    0 8px 20px rgba(61, 42, 31, 0.1);
  transform: translateY(-1px);
}

.product-card__add--disabled,
.product-card__add:disabled {
  color: var(--color-ink-soft);
  background: linear-gradient(180deg, #e8e2d8 0%, #ddd5c8 100%);
  border-color: var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.product-card__add--disabled:hover,
.product-card__add:disabled:hover {
  color: var(--color-ink-soft);
  background: linear-gradient(180deg, #e8e2d8 0%, #ddd5c8 100%);
  border-color: var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: none;
}

/* —— Footer —— */

.site-footer {
  margin-top: var(--space-lg);
  background: linear-gradient(180deg, #2a2119 0%, #1f1712 100%);
  color: #c9bfb2;
  border-top: 3px solid var(--color-gold);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer__brand {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(201, 191, 178, 0.2);
  margin-bottom: var(--space-lg);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #f0ebe3;
  margin: 0 0 var(--space-xs);
  letter-spacing: 0.04em;
}

.footer__tagline {
  margin: 0;
  font-style: italic;
  color: #a89b8c;
  font-size: 1rem;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8dfd4;
  margin: 0 0 var(--space-sm);
}

.footer__address {
  font-style: normal;
  line-height: 1.7;
}

.footer__text {
  margin: 0;
  line-height: 1.7;
}

.site-footer a {
  color: #dccfbF;
}

.site-footer a:hover {
  color: #fff;
}

.footer__legal {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 191, 178, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: #8a7d6e;
}

/* —— Éxito compra (post Mercado Pago) —— */

.order-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 402;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #faf6f0 0%, var(--color-champagne) 45%, #ebe0d2 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.order-success-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.order-success-overlay__inner {
  position: relative;
  width: min(100%, 26rem);
  padding: clamp(2.25rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background: linear-gradient(175deg, #fffefb 0%, var(--color-cream) 50%, #f2e9dc 100%);
  border: 1px solid rgba(154, 120, 72, 0.4);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 24px 56px rgba(61, 42, 31, 0.12);
}

.order-success-overlay__inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 146, 84, 0.2);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.order-success-overlay__icon {
  position: relative;
  z-index: 1;
  margin: 0 auto var(--space-sm);
  color: var(--color-gold);
}

.order-success-overlay__title {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
}

.order-success-overlay__pedido-id {
  position: relative;
  z-index: 1;
  margin: 0 auto var(--space-sm);
  max-width: 22rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: #3d2a1f;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95) 0%, rgba(244, 232, 212, 0.9) 100%);
  border: 1px solid rgba(184, 146, 84, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(61, 42, 31, 0.08);
}

.order-success-overlay__text {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-md);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.order-success-overlay__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f1610;
  cursor: pointer;
  background: linear-gradient(180deg, #f4e8d4 0%, #d4b882 42%, #9a7848 100%);
  border: 1px solid rgba(90, 65, 42, 0.48);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(61, 42, 31, 0.12),
    0 10px 28px rgba(61, 42, 31, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.order-success-overlay__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

body.order-success-open {
  overflow: hidden;
}

/* —— Página de error de pago (Mercado Pago) —— */

body.payment-error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.payment-error-page__divider {
  margin: var(--space-sm) auto 0;
  max-width: var(--max-width);
  padding: 0 var(--space-md);
  width: 100%;
}

.payment-error-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
}

.payment-error-card {
  width: min(100%, 28rem);
}

.payment-error-card__eyebrow {
  margin-bottom: var(--space-xs);
}

.payment-error-card__icon {
  color: var(--color-gold);
  opacity: 0.92;
}

.payment-error-card__actions {
  position: relative;
  z-index: 1;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.payment-error-card__wa {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(154, 120, 72, 0.45);
  text-underline-offset: 0.2em;
}

.payment-error-card__wa:hover {
  color: var(--color-accent-light);
}

.payment-error-page__footer {
  margin-top: auto;
}

.payment-error-page__footer .footer__inner {
  padding: var(--space-md);
}

.payment-error-page__footer .footer__legal {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* —— Cambiar región / moneda (flotante) —— */

.region-float {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #f5efe6;
  background: linear-gradient(160deg, #7d6349 0%, #5c4636 48%, #4a382c 100%);
  border: 1px solid rgba(212, 188, 154, 0.45);
  border-radius: 50%;
  box-shadow:
    0 2px 10px rgba(61, 42, 31, 0.28),
    0 4px 18px rgba(61, 42, 31, 0.15),
    inset 0 1px 0 rgba(255, 252, 247, 0.18);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.region-float:hover {
  filter: brightness(1.06);
  transform: scale(1.06);
  box-shadow:
    0 4px 16px rgba(61, 42, 31, 0.32),
    0 8px 26px rgba(61, 42, 31, 0.14),
    inset 0 1px 0 rgba(255, 252, 247, 0.22);
}

.region-float:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.region-float__icon {
  flex-shrink: 0;
}

.region-float__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--color-ink);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(253, 251, 246, 0.96);
  border: 1px solid rgba(154, 120, 72, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(61, 42, 31, 0.12);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.region-float:hover .region-float__tooltip,
.region-float:focus-visible .region-float__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none) {
  .region-float:active .region-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

body.region-selector-open .region-float {
  pointer-events: none;
  opacity: 0.35;
}

/* Club / membresía solo para compra local (ARS) */
body.commerce-exterior #nav-club-item {
  display: none !important;
}

/** Membresía Club: invisible para compradores internacionales (user-region ext). */
body.commerce-exterior #club-suscripcion {
  display: none !important;
}

body.commerce-exterior .club-plan-card__cta {
  display: none !important;
}

/* —— WhatsApp flotante —— */

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow:
    0 2px 12px rgba(37, 211, 102, 0.45),
    0 4px 20px rgba(61, 42, 31, 0.18);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
  box-shadow:
    0 4px 18px rgba(37, 211, 102, 0.55),
    0 8px 28px rgba(61, 42, 31, 0.15);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* —— Selector de región / moneda (landing inicial) —— */

body.region-selector-open {
  overflow: hidden;
}

.region-selector {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  isolation: isolate;
}

.region-selector[hidden] {
  display: none !important;
}

.region-selector__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, rgba(61, 42, 31, 0.42) 0%, rgba(61, 42, 31, 0.68) 45%, rgba(40, 28, 22, 0.82) 100%),
    url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=2000&q=85") center / cover no-repeat;
  filter: saturate(1.08);
}

.region-selector__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(253, 251, 246, 0.12);
}

.region-selector__panel {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: min(28rem, 100%);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: linear-gradient(
    165deg,
    rgba(253, 251, 246, 0.94) 0%,
    rgba(243, 235, 224, 0.92) 50%,
    rgba(235, 224, 210, 0.9) 100%
  );
  border: 1px solid rgba(154, 120, 72, 0.35);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 6px rgba(61, 42, 31, 0.06),
    0 24px 48px rgba(61, 42, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.region-selector__logo {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}

.region-selector__tagline {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.region-selector__hint {
  margin: 0 0 var(--space-md);
  font-size: 1rem;
  color: var(--color-ink-soft);
}

.region-selector__actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.region-selector__btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.region-selector__btn--ar {
  color: var(--color-ink);
  background: linear-gradient(180deg, #fdfbf6 0%, #f3ebe0 100%);
  box-shadow: 0 2px 12px rgba(61, 42, 31, 0.08);
}

.region-selector__btn--ex {
  color: #fdfbf6;
  background: linear-gradient(165deg, var(--color-accent) 0%, #4d3428 100%);
  border-color: rgba(154, 120, 72, 0.55);
  box-shadow:
    0 2px 12px rgba(61, 42, 31, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.region-selector__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 8px 24px rgba(61, 42, 31, 0.14);
}

.region-selector__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Checkout internacional: métodos locales ocultos; solo área PayPal */
body.commerce-exterior .checkout-payment--local {
  display: none !important;
}

body.commerce-exterior .checkout-modal__panel {
  width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
}

body.commerce-exterior .checkout-modal__grid {
  grid-template-columns: 1fr;
  justify-items: stretch;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

body.commerce-exterior .checkout-payment--paypal-only {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.commerce-exterior .checkout-modal__footer {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

body.commerce-exterior .checkout-modal__actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.checkout-payment__hint-exterior {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.paypal-button-container {
  display: none;
  min-height: 2.75rem;
  width: 100%;
}

/* display final lo fija JS según Exterior / Argentina para evitar botones huérfanos */

.checkout-modal__confirm--paypal-only {
  width: 100%;
  max-width: 100%;
}

/* —— Pulido final: transiciones en botones para hovers más fluidos —— */

button:not(:disabled) {
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  button:not(:disabled) {
    transition-duration: 0.01ms;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}
