:root {
  --bg: #0B0F0D;
  --surface: #131A16;
  --surface-raised: #1A231D;
  --emerald-1: #0F5132;
  --emerald-2: #1F8F5A;
  --gold-1: #A9812F;
  --gold-2: #E9C766;
  --gold-3: #F5E3A8;
  --text: #F2F2ED;
  --text-muted: #8FA097;

  --font-display: "Cinzel", serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --gold-gradient: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold-1); color: var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-1), var(--emerald-2));
  border-radius: 10px;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 14px 0 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.05rem;
}

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 15, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(169, 129, 47, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 15, 13, 0.88);
  border-bottom-color: rgba(233, 199, 102, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo span { color: var(--emerald-2); -webkit-text-fill-color: var(--emerald-2); }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  background: none;
  border: 1px solid rgba(143, 160, 151, 0.3);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.icon-btn:hover { border-color: var(--gold-2); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: rgba(11, 15, 13, 0.97);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(169, 129, 47, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 18px 24px; border-top: 1px solid rgba(143,160,151,0.12); }
  .nav-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 25%, rgba(31, 143, 90, 0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(15, 81, 50, 0.4), transparent 50%);
  z-index: 0;
  animation: hero-glow 12s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(2%, -2%); }
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-3);
  border: 1px solid rgba(233, 199, 102, 0.4);
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(169, 129, 47, 0.08);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 35%, var(--gold-2) 75%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  padding: 18px 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #17130A;
  box-shadow: 0 8px 30px rgba(233, 199, 102, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(233, 199, 102, 0.5); }
.btn-gold:active { transform: translateY(-1px); }

/* ===== WAVE DIVIDERS ===== */
.wave { display: block; width: 100%; line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }

/* ===== HOW IT WORKS ===== */
.how {
  background: var(--surface);
  padding: 100px 0 120px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-step {
  background: var(--surface-raised);
  border: 1px solid rgba(169, 129, 47, 0.15);
  border-radius: 14px;
  padding: 36px 28px;
  position: relative;
}
.how-step-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.how-step h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.how-step p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 780px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ===== PRODUCTS ===== */
.products {
  background: var(--bg);
  padding: 110px 0 120px;
  position: relative;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.product-card {
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid rgba(169, 129, 47, 0.18);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.product-card:hover {
  border-color: rgba(233, 199, 102, 0.55);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(31, 143, 90, 0.25);
}
.product-card.featured {
  border-color: rgba(233, 199, 102, 0.5);
  box-shadow: 0 0 0 1px rgba(233, 199, 102, 0.25), 0 20px 50px rgba(0,0,0,0.45);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 40%, rgba(31, 143, 90, 0.55), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(15, 81, 50, 0.6), transparent 70%),
    #050706;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Rim-light "gema" placeholder — REEMPLAZAR con foto real del producto en assets/productos/ */
.product-gem {
  width: 46%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--emerald-2), #06110c 60%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(233, 199, 102, 0.5),
    0 0 25px 4px rgba(233, 199, 102, 0.55),
    0 0 60px 10px rgba(233, 199, 102, 0.25),
    inset 0 0 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
}
.product-gem::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  background: linear-gradient(120deg, rgba(245, 227, 168, 0.55) 0%, transparent 35%, transparent 65%, rgba(245, 227, 168, 0.25) 100%);
  mix-blend-mode: overlay;
}

/* Sello circular con el icono de categoría — reemplaza el marcador de posición dentro de la gema */
.icon-seal {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  background: rgba(11, 15, 13, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(233, 199, 102, 0.4), inset 0 0 10px rgba(233, 199, 102, 0.12);
}
.icon-seal svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.75);
  pointer-events: none;
}

.badge-offer {
  position: absolute;
  top: 16px; left: -6px;
  background: var(--gold-gradient);
  color: #17130A;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px 6px 20px;
  transform: rotate(-6deg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  z-index: 2;
  border-radius: 2px;
}
.badge-featured {
  position: absolute;
  top: 16px; right: 16px;
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 30px;
  z-index: 2;
  background: rgba(11,15,13,0.6);
}

.product-body { padding: 26px 24px 28px; }
.product-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-2);
  margin-bottom: 8px;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  min-height: 2.6em;
}
.product-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.price-offer {
  color: var(--gold-2);
  font-size: 1.6rem;
  font-weight: 700;
}
.product-buy {
  width: 100%;
  background: var(--gold-gradient);
  color: #17130A;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.product-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(233,199,102,0.35); }
.product-buy[disabled] {
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px dashed rgba(143,160,151,0.4);
  cursor: not-allowed;
  box-shadow: none;
}
.product-buy[disabled]:hover { transform: none; }

/* ===== FAQ ===== */
.faq {
  background: var(--surface);
  padding: 110px 0 120px;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(143, 160, 151, 0.18);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.faq-icon {
  font-family: var(--font-mono);
  color: var(--gold-2);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.98rem;
  padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 4px 24px; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--bg);
  padding: 100px 24px 120px;
  text-align: center;
}
.cta-strip .section-title { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(169, 129, 47, 0.18);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--gold-2);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid rgba(143,160,151,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-raised);
  border: 1px solid var(--gold-2);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
