/* ============================================
   FORJA LEVI — Landing Page Styles
   Dark mode, fantasy/epic aesthetic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Background palette */
  --bg-primary:    #0d0d0f;
  --bg-secondary:  #16161a;
  --bg-card:       #1c1c22;
  --bg-card-hover: #242430;

  /* Text */
  --text-primary:   #e8e6e3;
  --text-secondary: #9e9e9e;
  --text-muted:     #6b6b6b;

  /* Accent: molten gold / amber forge */
  --accent:        #d4a046;
  --accent-light:  #f0c05a;
  --accent-dark:   #a87a2e;
  --accent-glow:   rgba(212, 160, 70, 0.35);

  /* Secondary accent: magic emerald */
  --magic:         #2dd4a8;
  --magic-glow:    rgba(45, 212, 168, 0.25);

  /* Borders */
  --border:        #2a2a32;
  --border-hover:  #3a3a46;

  /* Misc */
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);

  /* Header height */
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-glow {
  color: var(--accent-light);
  text-shadow:
    0 0 12px var(--accent-glow),
    0 0 40px var(--accent-glow);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .75rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: .7rem 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0d0f;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #0d0d0f;
}
.btn--accent:hover {
  background: var(--accent-light);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--small {
  font-size: .82rem;
  padding: .5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: .85rem 1.8rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header--scrolled {
  background: rgba(13, 13, 15, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.header__logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dark);
}

.header__brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__list {
  display: flex;
  gap: 1.5rem;
}

.header__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.header__link:hover,
.header__link.active {
  color: var(--accent-light);
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__toggle-bar {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__toggle.is-active .header__toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.header__toggle.is-active .header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.header__toggle.is-active .header__toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,160,70,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45,212,168,0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow:
    0 0 40px rgba(212,160,70,0.12),
    0 8px 40px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================================
   CATALOG
   ============================================ */
.catalog {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.catalog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent-dark);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0,0,0,.4),
    0 0 20px var(--accent-glow);
}

.card__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a22, #222230);
  overflow: hidden;
}

.card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card__img-wrapper img {
  transform: scale(1.05);
}

.card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  background:
    linear-gradient(135deg, rgba(212,160,70,0.04) 0%, transparent 50%),
    linear-gradient(225deg, rgba(45,212,168,0.03) 0%, transparent 50%);
}

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

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text-primary);
}

.card__desc {
  color: var(--text-secondary);
  font-size: .88rem;
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.6;
}

/* ============================================
   HOW TO BUY
   ============================================ */
.how-to {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.how-to::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magic), transparent);
}

.how-to__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connecting line between steps */
.how-to__steps::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.step:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 160, 70, 0.08);
  border: 2px solid var(--accent-dark);
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.step__number {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.step__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--accent-light);
}

.step__desc {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

.footer__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dark);
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: .9rem;
}

.footer__heading {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  margin-bottom: .75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social-link--wa {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.footer__social-link--wa:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.2);
}

.footer__social-link--ig {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.2);
}
.footer__social-link--ig:hover {
  background: rgba(225, 48, 108, 0.2);
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(225, 48, 108, 0.2);
}

.footer__info p {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: .5rem;
}

.footer__note {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: rgba(212, 160, 70, 0.06);
  border-left: 3px solid var(--accent-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem !important;
  color: var(--text-secondary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: .82rem;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.35),
    0 0 30px rgba(37, 211, 102, 0.15);
  transition: all var(--transition);
  animation: pulse-wa 2s ease-in-out infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.12);
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.5),
    0 0 40px rgba(37, 211, 102, 0.25);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.3); }
  50%      { box-shadow: 0 4px 16px rgba(37,211,102,.35), 0 0 0 12px rgba(37,211,102,0); }
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero__subtitle {
    margin: 0 auto 2rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__img {
    max-width: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header__toggle {
    display: flex;
  }

  .header__brand {
    font-size: 1rem;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
  }

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

  .header__list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .header__link {
    font-size: 1.05rem;
    display: block;
    padding: .5rem 0;
  }

  .header__cta {
    width: 100%;
    justify-content: center;
    margin-top: .5rem;
  }

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

  .how-to__steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-to__steps::before {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__social-link {
    justify-content: center;
  }

  .fab-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .btn--lg {
    font-size: .92rem;
    padding: .75rem 1.4rem;
  }
}

/* Body overlay when mobile menu is open */
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
