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

:root {
  --bg: #0e0e10;
  --border: #2a2a2e;
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --text: #efeff1;
  --muted: #8b8b99;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.logo span { color: var(--purple); }
.btn-buy {
  background: var(--purple);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.btn-buy:hover { background: var(--purple-dark); }

/* MAIN — dos columnas que llenan la pantalla */
main {
  display: flex;
  align-items: center;
  gap: 56px;
  height: calc(100vh - 57px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* LEFT */
.left { flex: 1; min-width: 0; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h1 em { color: var(--purple); font-style: normal; }

.desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 440px;
}
code {
  background: #1f1f23;
  color: var(--purple);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
ul li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
ul li::before {
  content: '✓';
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-main {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 10px;
}
.btn-main:hover { background: var(--purple-dark); transform: translateY(-1px); }

.note { font-size: 0.75rem; color: #555; }

/* RIGHT */
.right {
  flex-shrink: 0;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery { display: flex; flex-direction: column; gap: 10px; }

.img-main {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #141416;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  cursor: zoom-in;
  transition: opacity 0.25s;
}
.img-row {
  display: flex;
  gap: 8px;
}
.thumb {
  flex: 1;
  min-width: 0;
  height: 70px;
  object-fit: contain;
  background: #141416;
  border: 2px solid transparent;
  border-radius: 8px;
  display: block;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb:hover { opacity: 0.85; }
.thumb.active { opacity: 1; border-color: var(--purple); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* MOBILE */
@media (max-width: 780px) {
  main {
    flex-direction: column;
    height: auto;
    padding: 32px 20px 48px;
    gap: 36px;
  }
  .right { width: 100%; }
  nav { padding: 14px 20px; }
}
