/* =====================================================================
   Jimena Accesorios — Sistema de diseño boutique premium
   Estética 2025: dorado cálido, off-white, microinteracciones fluidas
   ===================================================================== */

:root {
  /* Colores base */
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f5f3ed;
  --surface-3: #ebe7dc;
  --ink: #14110d;
  --ink-soft: #3a342b;
  --muted: #7a7268;
  --muted-2: #a8a094;
  --line: #e6e0d5;
  --line-soft: #efeae0;

  /* Acento dorado */
  --gold: #b08d57;
  --gold-deep: #8f6f3d;
  --gold-light: #d9bc8a;
  --gold-soft: #f4ede0;

  /* Estados */
  --green: #2e7d5b;
  --green-soft: #e8f1ec;
  --red: #b3402e;
  --red-soft: #fbeae7;
  --info: #3a4d63;
  --info-soft: #eef1f5;

  /* Tipografía */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(20, 17, 13, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(20, 17, 13, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(20, 17, 13, 0.12);
  --shadow-lg: 0 20px 48px -16px rgba(20, 17, 13, 0.18);
  --shadow-xl: 0 32px 72px -20px rgba(20, 17, 13, 0.28);
  --shadow-gold: 0 12px 28px -10px rgba(143, 111, 61, 0.45);

  /* Radios */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Ring de focus */
  --ring: 0 0 0 3px rgba(176, 141, 87, 0.22);

  /* Espaciado */
  --container: 1240px;
  --gap: 22px;
}

/* ---------- Reset moderno ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { color: transparent; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea, button { font: inherit; }

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
}

/* ---------- Scrollbar moderna ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Animaciones globales ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes slideOutRight {
  from { transform: none; }
  to { transform: translateX(100%); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Skip link accesibilidad ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1040;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 12px;
}
.topbar a {
  color: #f0e8d6;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.topbar a:hover { color: var(--gold-light); }

/* ---------- Cabecera / Header ---------- */
.masthead {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.3s ease;
}
.masthead.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line-soft);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand-mark:hover { transform: scale(1.05); box-shadow: var(--shadow-sm); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand .accent { color: var(--gold); }

/* Buscador */
.search-wrap { flex: 1; max-width: 520px; }
.search-wrap form {
  display: flex;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 11px 48px 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-wrap input::placeholder { color: var(--muted-2); }
.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: var(--ring);
  background: var(--surface);
}
.search-wrap button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.search-wrap button:hover { background: var(--gold); }

/* Grupo de acciones */
.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.18s;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--gold-deep);
  transform: translateY(-1px);
}
.icon-btn:active { transform: scale(0.95); }

.badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(176, 141, 87, 0.4);
  animation: fadeIn 0.2s ease;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s;
  background: transparent;
  border: 1.5px solid transparent;
}
.text-link:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--gold-deep);
}

/* ---------- Navegación de categorías ---------- */
.cat-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 72px;
  z-index: 1020;
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  overflow: hidden;
}
.cat-pills {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 0;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  background: transparent;
}
.cat-pills a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.cat-pills a.active {
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  font-weight: 600;
}

.cat-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cat-more-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
}
.cat-more-btn .cat-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  display: inline-block;
}
.cat-more-btn.open .cat-arrow { transform: rotate(180deg); }

.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 1020;
  max-height: 65vh;
  overflow-y: auto;
}
.cat-dropdown.open { display: block; animation: fadeIn 0.15s ease; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
  padding: 16px 0;
}
.cat-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding: 10px 16px 6px;
  grid-column: 1 / -1;
}
.cat-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.12s;
}
.cat-grid a:hover { color: var(--ink); background: var(--surface-2); }
.cat-grid a.active { color: var(--gold-deep); background: var(--gold-soft); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.crumb {
  padding: 20px 0 8px;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.crumb b { color: var(--ink); font-weight: 600; }
.crumb a { color: var(--muted); transition: color 0.15s; }
.crumb a:hover { color: var(--gold-deep); }

/* ---------- Hero (carrusel) ---------- */
.hero-visual {
  position: relative;
  height: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
  background: #1a1712;
  border: 1px solid var(--line);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s linear;
  transform: scale(1.04);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.08);
}
.hero-slide.slide-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1a1712;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 52px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 17, 13, 0.4) 40%, rgba(20, 17, 13, 0.85) 100%);
  color: #fff;
}
.hero-overlay .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ecd9b6;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-overlay h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-overlay h1 .accent {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}
.hero-overlay p {
  font-size: 1rem;
  margin-bottom: 22px;
  opacity: 0.9;
  max-width: 520px;
  font-weight: 300;
  line-height: 1.5;
}
.hero-overlay .btn-gold {
  background: #fff;
  color: var(--ink);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.hero-overlay .btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dots .dot {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.hero-dots .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.hero-dots .dot.active {
  background: rgba(255, 255, 255, 0.5);
  width: 56px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}
.hero-arrows .arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.hero-arrows .arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Stats del hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-stats .hs-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-top: 2px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-stats .hs-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hero-stats .hs-item b {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.hero-stats .hs-item span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Botones ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  transition: all 0.2s;
  box-shadow: var(--shadow-gold);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(143, 111, 61, 0.6);
  filter: brightness(1.05);
}
.btn-gold:hover::after { transform: translateX(100%); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-line:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Secciones ---------- */
.section { padding: 56px 0 8px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head .kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .kicker::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-head h2 .accent {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
}
.section-head .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 600px;
}
.section-head a.more {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  transition: all 0.15s;
  background: var(--surface);
}
.section-head a.more:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Grid de productos + Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeInUp 0.4s ease backwards;
}
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.3s; }
.card:nth-child(8) { animation-delay: 0.35s; }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--surface-3);
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  overflow: hidden;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 17, 13, 0.05));
  pointer-events: none;
}
.thumb svg { width: 46%; height: 46%; color: var(--muted-2); }
.prod-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, opacity 0.3s;
}
.prod-foto.error { display: none; }
.card:hover .prod-foto { transform: scale(1.06); }

.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.badge-row > * { pointer-events: auto; }
.badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 17, 13, 0.85);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.badge.sale { background: var(--gold); color: #1a1410; }
.badge.new { background: var(--green); color: #fff; }

.wish-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border: 1px solid var(--line-soft);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wish-btn:hover { color: var(--red); border-color: var(--red); transform: scale(1.08); }
.wish-btn.active { color: var(--red); background: #fff; }

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.seller {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-family: var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.rating {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating .count {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 0.72rem;
  margin-left: 2px;
}
.price-row {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.price-muted {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: line-through;
}
.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.iva-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}
.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green);
  margin-top: 4px;
}
.stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: pulse-soft 2s ease-in-out infinite;
}
.stock.out { color: var(--red); }
.stock.out .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.add-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.2s;
  width: 100%;
}
.add-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.add-btn.added {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  pointer-events: none;
}
.add-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}

/* Color options en cards */
.color-options {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.color-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: var(--dot-color, #ccc);
  transition: transform 0.15s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.color-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot:hover::after { border-color: rgba(0,0,0,0.12); }
.color-dot.active { border-color: var(--ink); }
.color-dot.active::after { border-color: var(--ink); }
.color-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.color-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}
.cart-variant {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  margin: 3px 0 4px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ---------- Features (beneficios) ---------- */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 60px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
  padding: 4px;
}
.feature:hover { transform: translateY(-2px); }
.feature .ficon {
  font-size: 1.3rem;
  color: var(--gold-deep);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Feature grid (vendedores) */
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--surface-3);
}
.feature-box:hover::before { transform: scaleX(1); }
.feature-box .ic {
  font-size: 2rem;
  color: var(--gold-deep);
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}
.feature-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Carrito: drawer lateral ---------- */
#overlayCarrito {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
#overlayCarrito::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#overlayCarrito.open { pointer-events: auto; }
#overlayCarrito.open::before { opacity: 1; }
#overlayCarrito .modal-box {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  max-width: 420px;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
#overlayCarrito.open .modal-box { transform: translateX(0); }

.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}
.m-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }

.mbody {
  padding: 16px 24px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: var(--surface);
}
.mbody::-webkit-scrollbar { width: 6px; }
.mbody::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cart-thumb svg { width: 55%; height: 55%; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeInUp 0.3s ease;
  background: var(--surface);
  border-radius: var(--radius);
  margin: 4px 0;
  transition: background 0.2s ease;
}
.cart-item:hover {
  background: var(--surface-2);
}
.cart-item:last-child { border-bottom: none; }
.cart-item h5 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 10px;
  background: var(--surface-2);
}
.qty button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 0 3px;
  line-height: 1;
  transition: color 0.15s;
}
.qty button:hover { color: var(--gold-deep); }
.qty span { font-size: 0.9rem; font-weight: 600; color: var(--ink); min-width: 20px; text-align: center; }
.remove-btn {
  color: var(--muted);
  font-size: 0.8rem;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.remove-btn:hover { color: var(--red); background: var(--red-soft); }

.cart-summary {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 24px 24px;
  flex-shrink: 0;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 0;
  align-items: center;
}
.sum-row strong { color: var(--ink); font-weight: 700; }
.sum-row.total-row {
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 14px;
}
.sum-row.total-row strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sum-row small.note {
  color: var(--red);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-pill);
  border: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
  margin-top: 14px;
  transition: all 0.2s;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  letter-spacing: 0.005em;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(143, 111, 61, 0.6);
  filter: brightness(1.04);
}
.cart-trust {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  text-align: center;
}
.cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn-ghost-line {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-ghost-line:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.btn-empty {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-empty:hover { background: var(--gold-soft); color: var(--gold-deep); }

/* ---------- Checkout / Pago modal ---------- */
#overlayPago {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20, 17, 13, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#overlayPago.open { display: flex; animation: fadeIn 0.2s ease; }
#overlayPago .modal-box {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.25s ease;
  border: 1px solid var(--line);
}

/* ---------- Confirmación checkout ---------- */
#overlayCheckout {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(20, 17, 13, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#overlayCheckout.open { display: flex; animation: fadeIn 0.2s ease; }
#overlayCheckout .modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: scaleIn 0.25s ease;
  border: 1px solid var(--line);
}
.modal-small { max-width: 420px; }
.big-check {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  font-size: 2.5rem;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border-radius: 50%;
}

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  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='%237a7268' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-pill);
  border: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(143, 111, 61, 0.6);
}
.btn-submit:disabled {
  background: var(--surface-3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  color: var(--muted);
}
.alert-success {
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}
.alert-success::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
}
.error-msg {
  color: var(--red);
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--red-soft);
  margin-top: 10px;
  display: none;
}
.error-msg.show { display: block; animation: fadeIn 0.2s; }

/* ---------- CTA Band ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #14110d 0%, #1e1a10 50%, #2a2218 100%);
  color: #fff;
  padding: 64px 56px;
  margin-top: 60px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 90% 50%, rgba(176, 141, 87, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(176, 141, 87, 0.15);
  border: 1px solid rgba(176, 141, 87, 0.3);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}
.cta-band h2 .accent { color: var(--gold-light); font-style: italic; font-weight: 400; }
.cta-band p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}
.cta-band .btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  padding: 14px 30px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 56px 0 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer .cols {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.footer .brand-block h5 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.footer .brand-block h5 span { color: var(--gold); }
.footer .brand-block p {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.footer h5 {
  color: var(--ink);
  font-size: 0.76rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer a {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 0.86rem;
  transition: color 0.15s, gap 0.15s;
}
.footer a:hover { color: var(--gold-deep); gap: 10px; }
.footer .bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer .bottom a { display: inline; padding: 0; }
.footer .bottom a:hover { color: var(--gold-deep); }
.footer .socials { display: flex; gap: 8px; margin-top: 6px; }
.footer .socials a {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s;
  padding: 0;
}
.footer .socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Icono inline ---------- */
.ic { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.ic svg { width: 1em; height: 1em; }

/* ---------- Toast notifications ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 3000;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--gold);
  max-width: calc(100vw - 40px);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast-icon { font-size: 1.1rem; }

/* ---------- Artículo / páginas de contenido ---------- */
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  margin-top: 28px;
  box-shadow: var(--shadow-xs);
  max-width: 820px;
}
.article h2 {
  font-size: 1.6rem;
  margin: 40px 0 14px;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 1.15rem;
  margin: 30px 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article h3::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.article p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 24px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.8; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--gold-deep); }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--gold-deep); font-weight: 600; }
.article a:hover { text-decoration: underline; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.article blockquote {
  border-left: 3px solid var(--gold);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  max-width: 480px;
  margin: 48px auto 70px;
  animation: fadeInUp 0.4s ease;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.auth-card .logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-card .logo-wrap img {
  width: 120px;
  height: auto;
}
.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  text-align: center;
}
.auth-card .subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.5;
}
.auth-card .links {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-card .links a {
  color: var(--gold-deep);
  font-weight: 600;
}
.auth-card .links a:hover { text-decoration: underline; }
.auth-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-foot a { color: var(--gold-deep); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* Login pantalla completa */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #14110d 0%, #1e1a10 50%, #2a2218 100%);
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 400px at 80% 0%, rgba(176, 141, 87, 0.2), transparent 65%);
  pointer-events: none;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 600px at 20% 80%, rgba(143, 111, 61, 0.08), transparent 70%);
  pointer-events: none;
}
.auth-page .auth-wrap { max-width: 460px; width: 100%; }
.auth-page .auth-card {
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.55);
  animation: scaleIn 0.35s ease;
}
.auth-page .auth-foot { color: rgba(255,255,255,0.5); }
.auth-page .auth-foot a { color: var(--gold-light); }

/* ---------- Planes ---------- */
.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  overflow: hidden;
}
.plan.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.plan.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.plan-tag {
  position: absolute;
  top: -1px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}
.plan .psub { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.plan .pnum {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
  font-family: var(--font-display);
  color: var(--ink);
}
.plan .pnum small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  flex: 1;
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.plan li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-plan:hover { background: var(--ink); color: #fff; }
.btn-plan.filled {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-gold);
}

/* ---------- Galería de producto ---------- */
.galeria-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.75);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}
.galeria-overlay.open { opacity: 1; pointer-events: auto; }
.galeria-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}
.galeria-overlay.open .galeria-modal { transform: none; }
.galeria-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 0;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.galeria-close:hover { background: #fff; transform: scale(1.1); }
.galeria-body { display: flex; overflow: hidden; flex: 1; }
.galeria-fotos { flex: 1; min-width: 0; position: relative; background: var(--surface-2); }
.galeria-foto-principal {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.galeria-flechas {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.galeria-flechas button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.galeria-flechas button:hover { background: #fff; transform: scale(1.1); }
.galeria-thumbs { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface-2); overflow-x: auto; }
.galeria-thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  opacity: 0.6;
  flex-shrink: 0;
}
.galeria-thumbs img:hover { opacity: 0.85; }
.galeria-thumbs img.active { border-color: var(--ink); opacity: 1; }
.galeria-info {
  width: 340px;
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.gi-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gi-rating { font-size: 0.85rem; color: var(--gold); }
.gi-precio {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.gi-precio .gi-old {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 10px;
}
.gi-desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.gi-stock { font-size: 0.78rem; font-weight: 500; color: var(--green); }
.gi-colores { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gi-colores span { font-size: 0.75rem; color: var(--muted); }
.gi-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  background: var(--dot-color, #ccc);
  transition: all 0.15s;
}
.gi-dot:hover { transform: scale(1.12); }
.gi-dot.active { border-color: var(--ink); }
.gi-add {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.gi-add:hover { background: var(--ink-soft); transform: translateY(-1px); }
.gi-add.added { background: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-visual { height: 460px; }
  .hero-overlay { padding: 44px 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 48px 36px; }
  .galeria-info { width: 300px; }
}

@media (max-width: 768px) {
  .action-group .text-cta,
  .action-group .text-link { display: none; }

  .hero-visual { height: 380px; border-radius: var(--radius-lg); }
  .hero-overlay { padding: 32px 24px; }
  .hero-overlay h1 { font-size: clamp(22px, 6vw, 34px); }
  .hero-overlay p { font-size: 0.9rem; margin-bottom: 16px; }
  .hero-overlay .btn-gold { padding: 11px 22px; font-size: 0.85rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats .hs-item { padding: 16px 12px; border-radius: var(--radius); }
  .hero-stats .hs-item b { font-size: 1.2rem; }
  .hero-stats .hs-item span { font-size: 0.72rem; }

  .cat-nav { top: 0; }
  .cat-nav-inner { min-height: 44px; }

  .search-wrap { max-width: none; }
  .search-wrap form { width: 100%; }

  .section { padding: 32px 0 4px; }
  .section-head h2 { font-size: 1.5rem; }
  .section-head { margin-bottom: 20px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-body h3 { font-size: 0.85rem; }
  .price { font-size: 0.95rem; }
  .add-btn { font-size: 0.78rem; padding: 9px 10px; }

  .features { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; padding: 20px; border-radius: var(--radius-lg); }
  .feature { padding: 8px 4px; }
  .feature .ficon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .feature h4 { font-size: 0.88rem; }
  .feature p { font-size: 0.8rem; }

  .cta-band { padding: 32px 24px; margin-top: 32px; border-radius: var(--radius-lg); }
  .cta-band h2 { font-size: 1.5rem; }
  .cta-band p { font-size: 0.88rem; margin-bottom: 20px; }

  .article { padding: 24px 20px; margin-top: 16px; border-radius: var(--radius-lg); }
  .article h2 { font-size: 1.2rem; margin-top: 28px; }

  .auth-card { padding: 28px 22px; border-radius: var(--radius-lg); }
  .auth-wrap { margin: 24px auto 48px; }

  .plans { grid-template-columns: 1fr; }

  #overlayPago .modal-box,
  #overlayCarrito .modal-box {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  #overlayPago .mbody,
  #overlayCarrito .mbody { padding: 10px 16px; flex: 1; overflow-y: auto; }
  #overlayPago .field-row { grid-template-columns: 1fr; gap: 8px; }
  #overlayPago .field { margin-bottom: 8px; }
  #overlayPago .field label { font-size: 0.78rem; margin-bottom: 4px; }
  #overlayPago .field input,
  #overlayPago .field select { padding: 12px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  #overlayPago .sum-row { font-size: 0.85rem; padding: 2px 0; }
  #overlayPago .sum-row.total-row strong { font-size: 1.1rem; }
  #overlayPago .btn-checkout { padding: 14px; font-size: 0.95rem; margin-top: 8px; }
  #overlayPago .cart-trust { font-size: 0.72rem; margin: 6px 0; }
  #overlayPago .modal-close { width: 36px; height: 36px; font-size: 1.3rem; }
  #overlayPago .mhead { padding: 12px 16px; }
  #overlayPago .m-title { font-size: 0.95rem; }
  #overlayCarrito .cart-item { gap: 10px; padding: 12px 0; }
  #overlayCarrito .cart-thumb { width: 52px; height: 52px; }
  #overlayCarrito .cart-item h5 { font-size: 0.85rem; }
  #overlayCarrito .cart-summary { padding: 12px 16px; }
  #overlayCarrito .sum-row { font-size: 0.85rem; }
  #overlayCarrito .btn-checkout { padding: 14px; font-size: 0.95rem; margin-top: 10px; }
  #overlayCarrito .cart-actions { flex-direction: column; }
  #overlayCarrito .btn-ghost-line,
  #overlayCarrito .btn-empty { width: 100%; }
  #overlayCarrito .qty button { font-size: 1.1rem; padding: 0 6px; }
  #overlayCarrito .cart-item .price { font-size: 0.88rem; }
  #overlayCarrito .qty { gap: 6px; padding: 2px 8px; }
  #overlayCarrito .remove-btn { font-size: 0.75rem; }

  .galeria-body { flex-direction: column; }
  .galeria-info { width: 100%; padding: 20px; max-height: 45vh; }
  .galeria-foto-principal { aspect-ratio: 4/5; }

  .masthead .wrap { min-height: 64px; gap: 12px; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .icon-btn { width: 38px; height: 38px; }

  .footer .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer .brand-block { grid-column: 1 / -1; }
  .footer .bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .masthead .wrap { padding: 0 12px; }

  .hero-visual { height: 280px; }
  .hero-overlay { padding: 20px 16px; }
  .hero-overlay h1 { font-size: 1.3rem; margin-bottom: 8px; }
  .hero-overlay p { font-size: 0.8rem; margin-bottom: 12px; }
  .hero-overlay .btn-gold { padding: 9px 18px; font-size: 0.8rem; }
  .hero-dots { bottom: 16px; right: 16px; gap: 6px; }
  .hero-dots .dot { width: 28px; height: 3px; }
  .hero-dots .dot.active { width: 44px; }
  .hero-arrows .arrow { width: 34px; height: 34px; font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: -16px; position: relative; z-index: 10; }
  .hero-stats .hs-item { padding: 12px 8px; }
  .hero-stats .hs-item b { font-size: 1rem; }
  .hero-stats .hs-item span { font-size: 0.65rem; }

  .section { padding: 20px 0 4px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 1.2rem; }
  .section-head .sub { font-size: 0.82rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body h3 { font-size: 0.78rem; }
  .price { font-size: 0.88rem; }
  .add-btn { font-size: 0.72rem; padding: 8px 6px; gap: 4px; }

  .features { margin-top: 20px; padding: 16px; gap: 6px; }
  .feature .ficon { width: 36px; height: 36px; font-size: 1rem; }
  .feature h4 { font-size: 0.82rem; }
  .feature p { font-size: 0.74rem; }

  .cta-band { padding: 24px 16px; margin-top: 24px; }
  .cta-band h2 { font-size: 1.2rem; }
  .cta-band p { font-size: 0.82rem; margin-bottom: 16px; }

  .article { padding: 20px 16px; margin-top: 12px; }
  .article h2 { font-size: 1.1rem; }
  .article p, .article li, .article ul { font-size: 0.86rem; }

  .auth-card { padding: 22px 16px; }
  .auth-wrap { margin: 16px auto 40px; }

  .plans { grid-template-columns: 1fr; }

  .galeria-thumbs { padding: 8px 12px; }
  .galeria-thumbs img { width: 40px; height: 40px; }
  .galeria-info { padding: 16px; max-height: 40vh; gap: 8px; }

  .footer .cols { grid-template-columns: 1fr; gap: 20px; }
  .footer .brand-block { grid-column: auto; }

  #overlayCarrito .modal-box { max-width: 100%; }
  #overlayPago .modal-box { max-width: 100%; }
}

/* ---------- Loader spinner ---------- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
