@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   ESTILOS GLOBALES
   ============================================================ */
:root {
  --bg:         #faf7f1;
  --bg-2:       #f0ece3;
  --bg-card:    #ffffff;
  --text:       #111111;
  --text-muted: #888888;
  --accent:     #7c3aed;
  --accent-h:   #6d28d9;
  --danger:     #e03e3e;
  --border:     #e5e5e5;
  --nav-bg:     #faf6ee;
  --radius:     8px;
  --transition: .2s ease;
  --max-w:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@keyframes gold-wave {
  0%   { transform: translateX(-50%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
body {
  background: #f2f2f2;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: .04em;
}

p, span, a, button, input, label, li {
  font-weight: 300;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
.hidden { display: none !important; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: #c0392b;
  color: #fff;
  text-align: center;
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 20px;
  letter-spacing: .06em;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
}
.ann-text { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.ann-out   { opacity: 0; transform: translateY(-6px); }
.ann-in    { animation: ann-slide-in .4s ease; }
@keyframes ann-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV PRINCIPAL (negro)
   ============================================================ */
.nav-top {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(201,148,26,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,148,26,.08);
  border: 1px solid rgba(201,148,26,.3);
  border-radius: 999px;
  padding: 7px 16px;
  width: 240px;
  transition: border-color .2s;
  flex-shrink: 0;
}
.nav-search:focus-within {
  border-color: rgba(201,148,26,.6);
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: #3a2a08;
  font-size: .85rem;
  width: 100%;
  font-family: inherit;
}
.nav-search input::placeholder { color: rgba(160,120,32,.5); }
.nav-search svg { color: rgba(160,120,32,.6); flex-shrink: 0; }
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-align: left;
  justify-self: center;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    105deg,
    #5a3f00 0%,
    #a07820 25%,
    #c9941a 50%,
    #a07820 75%,
    #5a3f00 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(160,120,32,.25));
}
/* Wrapper texto del logo (columna) */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Logo a la izquierda del título */
.logo-mid-emblem {
  height: 82px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0.75);
}

/* Emblema SVG a la izquierda */
.logo-emblem {
  display: flex;
  align-items: center;
  justify-self: start;
}
.logo-emblem img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,.4));
}
@media (max-width: 768px) {
  .logo-emblem img { height: 40px; }
}
.logo span {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: .45em;
  display: block;
  letter-spacing: .55em;
  text-transform: uppercase;
  margin-top: 5px;
  padding-left: .55em;
  background: linear-gradient(
    105deg,
    #7a5a10 0%,
    #a07820 50%,
    #7a5a10 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes gold-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.nav-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(160,120,32,.3);
  border-radius: 6px;
  color: rgba(80,55,10,.7);
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .03em;
  transition: border-color .2s ease, color .2s ease;
}
.cart-btn:hover {
  border-color: #c9941a;
  color: #c9941a;
}
#cart-badge:empty { display: none; }
#cart-badge {
  background: #c9941a;
  color: #000;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.btn-nav {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(160,120,32,.3);
  color: rgba(80,55,10,.7);
  background: transparent;
  letter-spacing: .03em;
  transition: border-color .2s, color .2s;
}
.btn-nav:hover {
  border-color: #c9941a;
  color: #c9941a;
}
#nav-login {
  border-color: transparent;
  background: transparent;
  color: rgba(80,55,10,.6);
  font-weight: 400;
}
#nav-login:hover {
  border-color: transparent;
  color: #a07820;
  background: transparent;
}

/* ============================================================
   NAV SECUNDARIO (blanco)
   ============================================================ */
.nav-bottom {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 44px;
  z-index: 99;
}
.nav-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  overflow: visible;
  gap: 8px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav-menu a {
  display: block;
  padding: 0 12px;
  font-size: .78rem;
  white-space: nowrap;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  line-height: 44px;
  position: relative;
  transition: color .2s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #c9941a, #ffe484, #c9941a);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-menu a:hover { color: #b8860b; }
.nav-menu a:hover::after { transform: scaleX(1); }

/* ── Dropdown de categorías en nav ── */
.nav-menu .has-dropdown { position: relative; }
.nav-menu .has-dropdown > a { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-arrow { font-size: .6rem; transition: transform .2s; display: inline-block; }
.has-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  list-style: none;
  min-width: 180px;
  padding: 6px;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown.open .nav-dropdown { display: flex; }
.nav-dropdown li a {
  display: block;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 7px;
  white-space: nowrap;
  line-height: 1;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-dropdown li a:hover { background: rgba(201,148,26,.08); color: #c9941a; }
.nav-dropdown li a::after { display: none; }

.nav-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .8rem;
  color: var(--text-muted);
}
.nav-bottom-right span { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 580px; }
.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .88rem;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(105deg, #a07820, #d4a840, #ffe484, #d4a840, #a07820);
  background-size: 200% auto;
  color: #000;
  border: none;
  box-shadow: 0 3px 14px rgba(201,148,26,.3);
  transition: background-position .4s ease, box-shadow .3s ease;
}
.btn-primary:hover { background-position: right center; box-shadow: 0 5px 22px rgba(201,148,26,.5); transform: none; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); }

/* ============================================================
   BANNER SLIDER
   ============================================================ */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  max-height: 62vh;
}
.slider-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: cover;
  display: block;
}
.slide a { display: block; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
  line-height: 1;
}
.slider-arrow:hover { background: rgba(0,0,0,.75); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ============================================================
   BANNERS LATERALES
   ============================================================ */
.sidebar-gutter {
  position: fixed;
  top: 130px; bottom: 0;
  width: calc((100vw - var(--max-w)) / 2);
  z-index: 49;
  background: linear-gradient(to bottom, transparent 0%, #d9d9d9 60px, #d9d9d9 100%);
  pointer-events: none;
}
.sidebar-gutter-left  { left: 0; }
.sidebar-gutter-right { right: 0; }

.sidebar-banner {
  position: fixed;
  top: 160px;
  width: calc((100vw - var(--max-w)) / 2 + 30px);
  max-width: 260px;
  z-index: 50;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-banner img { width: 100%; height: auto; display: block; }
.sidebar-banner a   { display: block; width: 100%; }
.sidebar-banner-left  { left: 0; }
.sidebar-banner-right { right: 0; }

/* Solo mostrar cuando hay espacio real a los lados */
@media (max-width: 1260px) {
  .sidebar-banner, .sidebar-gutter { display: none !important; }
}

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.features-bar-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feat-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.feat-item span { font-size: 1rem; }

/* ============================================================
   SECCIONES
   ============================================================ */
section { padding: 56px 0; }
.section-header {
  margin-bottom: 36px;
  text-align: center;
}
.section-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5a3f00;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c9941a, transparent);
  margin: 8px auto 0;
}
.section-header p  { color: var(--text-muted); font-size: .88rem; }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(201,148,26,.25);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.product-card:hover {
  border-color: #c9941a;
  box-shadow:
    0 0 0 1px #c9941a,
    0 0 18px rgba(201,148,26,.45),
    0 0 40px rgba(201,148,26,.2),
    0 4px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.product-img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: calc(var(--radius) - 1px);
  display: block;
  position: relative;
  transition: transform var(--transition);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.03); }
.product-info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  font-size: .92rem;
  color: #2a1d08;
  display: block;
  line-height: 1.35;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 400;
}
.product-price {
  color: #1a1208;
  font-weight: 800;
  font-size: 1.08rem;
  font-family: "Inter", sans-serif;
}
.transfer-price {
  font-size: .77rem;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 3px;
}
.installments-text {
  font-size: .74rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}
.btn-add-cart {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px;
  background: transparent;
  color: #8a6210;
  border: 1.5px solid rgba(201,148,26,.5);
  border-radius: 6px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s;
}
.btn-add-cart:hover {
  background: rgba(201,148,26,.08);
  border-color: #c9941a;
  color: #6a4a08;
}

.badge-discount, .badge-new {
  position: absolute;
  bottom: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 800;
  z-index: 1;
}
.badge-discount  { background: var(--danger); color: #fff; }
.badge-new       { background: var(--accent); color: #fff; }
.badge-no-stock  { background: #555; color: #fff; }
.badge-shipping  {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  z-index: 1;
  background: rgba(0,0,0,.52);
  color: #fff;
  backdrop-filter: blur(4px);
  letter-spacing: .02em;
}
.stock-low {
  font-size: .7rem;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.variant-count {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  padding: 2px 8px;
  background: var(--bg-2);
  border-radius: 20px;
  display: inline-block;
  letter-spacing: .02em;
}
.sold-count {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.out-of-stock .product-img-wrap { opacity: .5; filter: grayscale(.4); }
.btn-no-stock   { opacity: .45; cursor: not-allowed !important; background: #eee !important; color: #999 !important; border-color: #ddd !important; }

/* ── Variantes ── */
.variants-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.variant-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
}
.variant-btn:hover:not(:disabled) { border-color: #c9941a; color: #c9941a; }
.variant-btn.selected {
  border-color: #c9941a;
  background: #fffbf0;
  color: #a07820;
}
.variant-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  text-decoration: line-through;
  color: var(--text-muted);
}
.variant-stock-info {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 20px;
}
.variant-stock-info.low  { color: var(--danger); font-weight: 700; }
.variant-stock-info.none { color: #bbb; }

/* ── Admin: variant builder ── */
.variants-builder { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.variant-row-v2 {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg-2);
}
.vr-top {
  display: grid;
  grid-template-columns: 1fr 90px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.vr-top input {
  padding: 9px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
}
.vr-top input:focus { outline: none; border-color: #c9941a; }
.vr-images { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vr-thumb { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.vr-thumb img { width:100%; height:100%; object-fit:cover; border-radius:6px; border:1.5px solid var(--border); }
.vr-thumb button {
  position: absolute; top:-5px; right:-5px;
  width:18px; height:18px;
  background:#dc2626; color:#fff;
  border:none; border-radius:50%;
  font-size:.6rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.vr-img-add {
  display: flex; flex-direction:column; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .7rem; font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  gap: 2px;
}
.vr-img-add:hover { border-color: #c9941a; color: #c9941a; }
.vr-img-add span { font-size: 1.2rem; line-height:1; }
.btn-remove-variant {
  width: 36px; height: 36px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--text-muted);
  font-size: 1rem; cursor: pointer;
  transition: border-color .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
}
.btn-remove-variant:hover { border-color: var(--danger); color: var(--danger); }
.btn-add-variant {
  align-self: flex-start; padding: 8px 16px;
  background: none; border: 1.5px dashed var(--border);
  border-radius: 8px; color: var(--text-muted);
  font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s; font-family: inherit;
}
.btn-add-variant:hover { border-color: #c9941a; color: #c9941a; }

/* ============================================================
   SPINNER / ESTADOS
   ============================================================ */
.spinner {
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 36px; height: 36px;
  animation: spin .7s linear infinite;
  margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-products, .error, .cart-empty {
  text-align: center; color: var(--text-muted); padding: 40px; width: 100%;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
#cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  border-left: 1.5px solid rgba(201,148,26,.25);
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
  z-index: 201;
  display: flex; flex-direction: column;
  transition: right .3s ease;
}
#cart-drawer.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1.5px solid rgba(201,148,26,.2);
  background: #fff;
  font-size: 1rem; font-weight: 700;
}
.cart-close {
  background: none; border: none; color: #888;
  font-size: 1.3rem; line-height: 1; padding: 4px; cursor: pointer;
}
.cart-close:hover { color: #111; }
#cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; background: #fff; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item img {
  width: 72px; height: 72px;
  object-fit: cover; border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 600; font-size: .88rem; color: #111; }
.cart-item-price { color: #c9941a; font-weight: 700; display: block; margin: 4px 0; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: #f5f5f5; border: 1px solid #e5e5e5;
  color: #111; width: 28px; height: 28px; border-radius: 6px;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.qty-btn:hover { background: #111; color: #fff; border-color: #111; }
.remove-btn { background: none; border: none; color: #ccc; font-size: 1rem; margin-left: 4px; cursor: pointer; }
.remove-btn:hover { color: var(--danger); }
.cart-footer {
  padding: 16px 24px 20px;
  border-top: 1.5px solid rgba(201,148,26,.2);
  background: #fffbf0;
}
.cart-shipping-row {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,148,26,.15);
}
.cart-breakdown { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cart-break-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #555;
}
.cart-shipping-val { display: flex; align-items: center; gap: 6px; }
.cart-shipping-crossed { text-decoration: line-through; color: #bbb; font-size: .85rem; }
.cart-free-badge {
  font-size: .72rem; font-weight: 700; color: #2a7a2a;
  background: rgba(42,122,42,.08);
  border: 1px solid rgba(42,122,42,.2);
  border-radius: 20px; padding: 2px 10px;
}
.cart-transfer-note {
  font-size: .78rem; color: #c9941a; font-weight: 600;
  text-align: center; margin-top: 6px;
}
.cart-break-divider { height: 1px; background: rgba(201,148,26,.2); }
.cart-break-total {
  font-size: 1.05rem; font-weight: 800; color: #111;
}
.cart-checkout-btn {
  width: 100%; padding: 14px;
  background: #8a6210;
  color: #fff;
  font-weight: 700; font-size: .95rem;
  font-family: "Cinzel", serif;
  letter-spacing: .05em;
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(100,70,8,.2);
}
.cart-checkout-btn:hover { background: #6a4a08; }

/* ============================================================
   MARCAS
   ============================================================ */
.brands-section { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  overflow-x: auto;
}
.brands-strip span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #ccc;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s;
}
.brands-strip span:hover { color: #c9941a; }

/* ============================================================
   CÓMO COMPRAMOS
   ============================================================ */
.how-section { padding: 64px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  position: relative;
}
.how-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(16.6% + 12px);
  right: calc(16.6% + 12px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9941a, transparent);
}
.how-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.how-number {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #c9941a;
  margin-bottom: 12px;
}
.how-icon { font-size: 2.2rem; margin-bottom: 14px; }
.how-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #111; }
.how-step p  { font-size: .83rem; color: #888; line-height: 1.65; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why-section { padding: 64px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.why-card {
  background: #fff;
  border: 1.5px solid rgba(201,148,26,.2);
  border-radius: 14px;
  padding: 28px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.why-card:hover {
  border-color: #c9941a;
  box-shadow: 0 6px 24px rgba(201,148,26,.15);
  transform: translateY(-3px);
}
.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: #111; }
.why-card p  { font-size: .82rem; color: #888; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.footer-brand p { color: var(--text-muted); font-size: .88rem; }
footer h4 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: var(--text-muted); font-size: .88rem; }
footer ul a:hover { color: var(--text); }
.footer-bottom {
  text-align: center; color: var(--text-muted); font-size: .8rem;
  border-top: 1px solid var(--border); padding-top: 20px;
}

/* ============================================================
   FILTROS
   ============================================================ */
.filter-btn {
  padding: 7px 20px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.filter-btn:hover { color: #a07820; border-color: rgba(201,148,26,.3); }
.filter-btn.active {
  border-color: #c9941a;
  color: #a07820;
  background: rgba(201,148,26,.07);
  font-weight: 600;
}

/* Animación de salida/entrada de productos al cambiar categoría */
@keyframes prod-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes prod-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.products-grid.is-leaving .product-card {
  animation: prod-fade-out .18s ease forwards;
}
.products-grid .product-card {
  animation: prod-card-in .32s ease both;
}
.products-grid .product-card:nth-child(1)  { animation-delay: .00s; }
.products-grid .product-card:nth-child(2)  { animation-delay: .04s; }
.products-grid .product-card:nth-child(3)  { animation-delay: .08s; }
.products-grid .product-card:nth-child(4)  { animation-delay: .12s; }
.products-grid .product-card:nth-child(5)  { animation-delay: .16s; }
.products-grid .product-card:nth-child(6)  { animation-delay: .20s; }
.products-grid .product-card:nth-child(7)  { animation-delay: .24s; }
.products-grid .product-card:nth-child(8)  { animation-delay: .28s; }
.products-grid .product-card:nth-child(n+9) { animation-delay: .30s; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111;
  border-top: 1.5px solid #c9941a;
  padding: 14px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner span {
  color: #ccc;
  font-size: .83rem;
  flex: 1;
  min-width: 200px;
}
.cookie-accept-btn {
  padding: 9px 28px;
  background: linear-gradient(105deg, #a07820, #d4a840, #a07820);
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.cookie-accept-btn:hover { opacity: .85; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-bottom-right, .nav-search { display: none; }
  .nav-top-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; grid-template-columns: none; }
  .nav-left { gap: 8px; }
  .nav-search { display: none; }
  .nav-top-right { gap: 6px; }
  .btn-nav { padding: 7px 10px; font-size: .75rem; }
  .cart-btn { padding: 7px 10px; font-size: .8rem; }
  .cart-label { display: none; }
  .logo { font-size: 1rem; }
  .logo img { height: 52px; }

  /* Menú plegable */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .nav-bottom {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: none;
  }
  .nav-bottom.nav-open {
    max-height: 400px;
    border-bottom: 1px solid var(--border);
  }
  .nav-bottom-inner {
    height: auto;
    padding: 8px 0;
    overflow: visible;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    padding: 13px 20px;
    font-size: .88rem;
    line-height: 1;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .nav-menu a::after { display: none; }

  /* Hero */
  .hero { padding: 48px 0 40px; min-height: auto; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  /* Secciones */
  section { padding: 36px 0; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .features-bar { display: none; }
  .feat-item { font-size: .78rem; }

  /* Por qué elegirnos */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  /* Cómo compramos */
  .how-grid { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
  /* Marcas */
  .brands-strip { gap: 24px; justify-content: flex-start; flex-wrap: nowrap; padding: 0 4px; }

  /* Section header */
  .section-header h2 { font-size: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Category filters */
  #category-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .auth-box { padding: 32px 20px; }
  .product-info { padding: 8px 8px 10px; }
  .product-name { font-size: .8rem; }
  .product-price { font-size: .95rem; }
}

/* ── Sección testimonios ────────────────────────────────────── */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-alt, #f9f7f4);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.testi-text  { font-size: .92rem; line-height: 1.65; color: var(--text); margin: 0; flex: 1; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.testi-author img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.testi-author strong { display: block; font-size: .88rem; color: var(--text); }
.testi-author span   { font-size: .78rem; color: var(--text-muted); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── Rating inline en producto ──────────────────────────────── */
.detail-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  margin-bottom: 10px;
  margin-top: 2px;
}
.detail-rating-stars { color: #f5a623; font-size: 1rem; letter-spacing: 1px; }
.detail-rating-num   { font-weight: 700; font-size: .9rem; color: var(--text); }
.detail-rating-count { font-size: .82rem; color: var(--text-muted); text-decoration: underline; }
.detail-rating-link:hover .detail-rating-count { color: var(--accent); }

/* ── Reseñas en página de producto ──────────────────────────── */
.reviews-section { margin-top: 0; padding-top: 32px; border-top: 1px solid var(--border); }
#product-reviews  { margin-top: 16px; }
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.reviews-avg { font-size: 3rem; font-weight: 800; line-height: 1; }
.reviews-stars-big { color: #f5a623; font-size: 1.3rem; letter-spacing: 3px; }
.reviews-count { font-size: .85rem; color: var(--text-muted); }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.review-body { flex: 1; }
.review-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review-name  { font-weight: 700; font-size: .9rem; }
.review-stars { color: #f5a623; font-size: .85rem; }
.review-text  { font-size: .88rem; line-height: 1.6; color: var(--text); margin: 0; }

/* ── Botón WhatsApp del partner ─────────────────────────────── */
#partner-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  transition: bottom .25s ease, transform .18s, box-shadow .18s;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .18s, box-shadow .18s;
}
#partner-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
body.cookie-shown #partner-wa-btn {
  bottom: 90px;
}
@media (max-width: 600px) {
  #partner-wa-btn span { display: none; }
  #partner-wa-btn { padding: 14px; border-radius: 50%; }
}

/* ============================================================
   GUÍA DE ORIGINALIDAD
   ============================================================ */
#nav-originalidad-btn.active { color: #c9941a; font-weight: 600; }

/* Hero banner */
.orig-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  background: #111;
  overflow: hidden;
}
.orig-hero-left {
  overflow: hidden;
}
.orig-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .75;
  display: block;
}
.orig-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  background: #0e0e0e;
  border-left: 1px solid rgba(201,148,26,.2);
}
.orig-hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.orig-hero-logo span {
  font-family: "Cinzel", serif;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(105deg,#a07820,#d4a840,#a07820);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; flex-direction: column; line-height: 1.3;
}
.orig-hero-logo span em {
  font-style: normal;
  font-size: .65rem;
  letter-spacing: .22em;
  opacity: .7;
}
.orig-hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.orig-hero-sub {
  color: #888;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 340px;
}

/* Puntos editoriales */
.orig-points { background: #faf7f1; }

.orig-point {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  border-bottom: 1px solid rgba(201,148,26,.12);
}
.orig-point-reverse { direction: rtl; }
.orig-point-reverse > * { direction: ltr; }

.orig-point-img {
  overflow: hidden;
  background: #f0ece3;
}
.orig-point-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.orig-point:hover .orig-point-img img { transform: scale(1.03); }

.orig-point-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  background: #fff;
  border-left: 1px solid rgba(201,148,26,.1);
}
.orig-point-reverse .orig-point-text { border-left: none; border-right: 1px solid rgba(201,148,26,.1); }

.orig-point-num {
  font-family: "Cinzel", serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(201,148,26,.45);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.orig-point-text h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: #111;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.orig-point-text p {
  color: #666;
  font-size: .92rem;
  line-height: 1.75;
}
.orig-point-text p strong { color: #111; font-weight: 600; }

/* Cierre */
.orig-trust-block {
  background: #111;
  padding: 52px 0;
}
.orig-trust-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.orig-trust-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.orig-trust-block h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  color: #f0ece3;
  font-weight: 400;
  margin-bottom: 10px;
}
.orig-trust-block p {
  color: #888;
  font-size: .9rem;
  line-height: 1.75;
}
.orig-trust-block p strong { color: #d4a840; }

@media (max-width: 768px) {
  .orig-hero { grid-template-columns: 1fr; }
  .orig-hero-left { max-height: 220px; }
  .orig-hero-right { padding: 32px 24px; }
  .orig-point { grid-template-columns: 1fr; direction: ltr; }
  .orig-point-img { max-height: 260px; }
  .orig-point-text { padding: 32px 24px; border-left: none !important; border-right: none !important; border-top: 1px solid rgba(201,148,26,.1); }
  .orig-trust-inner { flex-direction: column; gap: 12px; }
}
