:root {
  --bg: #0b0d10;
  --bg-2: #11151b;
  --surface: #161b22;
  --line: #2a313c;
  --text: #f4f1ea;
  --muted: #8b96a5;
  --lime: #e8ff4d;
  --lime-ink: #12150a;
  --warm: #ff7a45;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
.muted { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11, 13, 16, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(var(--max), calc(100% - 32px));
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.logo-mark {
  width: 38px; height: 34px; border-radius: 9px;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: 0;
  font-size: 0.82rem;
}
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--lime); }
.badge-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--lime); color: var(--lime-ink);
  font-size: 0.7rem; font-weight: 800; display: grid; place-items: center;
}
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  font-weight: 700; cursor: pointer; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--lime); }
.btn-lg { padding: 15px 26px; font-size: 1rem; width: 100%; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: end start;
  overflow: hidden;
}
.hero-compact {
  min-height: 0;
  place-items: center start;
  padding: 56px 0 48px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.15) 0%, rgba(11,13,16,0.55) 45%, #0b0d10 100%),
    url("../img/home/hero.jpg") center/cover;
}
.hero-compact .hero-bg {
  background:
    linear-gradient(180deg, rgba(11,13,16,0.35) 0%, rgba(11,13,16,0.72) 70%, #0b0d10 100%),
    url("../img/home/hero.jpg") center/cover;
}
.hero-content {
  position: relative; z-index: 1;
  padding: 0 0 72px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.hero-compact .hero-content { padding: 0; }
.kicker {
  color: var(--lime); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero-compact h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  max-width: 16ch;
  line-height: 0.95;
}
.hero-lead {
  margin: 22px 0 32px;
  color: #c9c4b8;
  max-width: 38ch;
  font-size: 1.08rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 88px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; margin-bottom: 32px;
}
.section h2, .page-head h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1;
}
.page-head { padding: 48px 0 28px; }

/* Gates / categories */
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gate {
  position: relative; min-height: 320px; border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: end;
  border: 1px solid transparent;
}
.gate img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s;
}
.gate:hover img { transform: scale(1.06); }
.gate:hover { border-color: var(--lime); }
.gate-soon { opacity: 0.72; cursor: default; }
.gate-soon:hover { border-color: transparent; }
.gate-soon:hover img { transform: none; }
.gate-copy {
  position: relative; z-index: 1; width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.gate h3 {
  font-family: "Oswald", sans-serif;
  font-size: 2rem; text-transform: uppercase;
}

/* Cards */
.grid-4, .grid-3, #tienda-grid, #look-grid, #home-productos {
  display: grid; gap: 16px;
}
.grid-4, #home-productos { grid-template-columns: repeat(4, 1fr); }
.grid-3, #look-grid { grid-template-columns: repeat(3, 1fr); }
#tienda-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--lime); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0a0a0a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 16px 16px 20px; }
.card-body h3 { font-size: 1.05rem; margin: 4px 0 8px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.chip.is-on, .chip:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* Look + story */
.look-box { display: grid; gap: 28px; }
.look-intro { max-width: 46ch; }
.story {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.story p { color: #c8c3b8; margin: 14px 0 22px; }

/* How to order */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.how-step h3 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 0 10px;
}
.how-step p:last-child { color: var(--muted); }
.talla-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--lime); }
.pdp-sticky { display: none; }

/* PDP */
.pdp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding-bottom: 80px; }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-media {
  position: relative; border-radius: 24px; overflow: hidden;
  background: #0a0c10; min-height: 520px;
}
.pdp-media img { width: 100%; height: 100%; object-fit: contain; min-height: 520px; background: #0a0c10; }
.gal-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(11,13,16,0.75); color: var(--text);
  font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(11,13,16,0.7);
  color: var(--lime); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-nav:hover { border-color: var(--lime); }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb {
  padding: 0; border: 2px solid var(--line); border-radius: 12px;
  overflow: hidden; background: #0a0c10; cursor: pointer; aspect-ratio: 1;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on, .thumb:hover { border-color: var(--lime); }
.pdp-info h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase; line-height: 0.95; margin: 6px 0 12px;
}
.pdp-price { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.lead { color: #c8c3b8; max-width: 46ch; }
.field { display: grid; gap: 8px; margin: 22px 0; font-size: 0.85rem; color: var(--muted); }
.field select, .field input, .field textarea {
  background: #f4f1ea; color: #12150a; border: 1px solid #c9c4b8;
  border-radius: 12px; padding: 12px 14px;
}
.pdp-actions { display: grid; gap: 10px; }
.pdp-meta { margin-top: 28px; color: var(--muted); padding-left: 18px; display: grid; gap: 8px; }

/* Drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #10141a; z-index: 60; transform: translateX(100%);
  transition: transform .3s ease; display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 20px 22px; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.cart-list { flex: 1; overflow: auto; padding: 16px 22px; display: grid; gap: 14px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; }
.cart-item img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; }
.cart-item h4 { font-size: 0.95rem; }
.cart-item-side { text-align: right; display: grid; align-content: space-between; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.qty button { background: none; border: 0; cursor: pointer; width: 22px; color: var(--lime); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.8rem; }
.cart-empty { text-align: center; padding: 40px 10px; display: grid; gap: 16px; justify-items: center; }
.drawer-foot {
  border-top: 1px solid var(--line);
  display: grid; gap: 12px;
  max-height: 58vh; overflow: auto;
}
.total-row { display: flex; justify-content: space-between; font-size: 1.1rem; }
.checkout { display: grid; gap: 10px; }
.checkout[hidden] { display: none; }
.checkout-title {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.95rem; color: var(--lime);
}
.checkout label {
  display: grid; gap: 6px;
  font-size: 0.82rem; font-weight: 800;
  color: #f4f1ea; letter-spacing: 0.04em;
}
.checkout input,
.checkout textarea {
  width: 100%;
  background: #f4f1ea;
  color: #12150a;
  border: 2px solid #e8ff4d;
  border-radius: 12px;
  padding: 12px 14px;
  caret-color: #12150a;
}
.checkout input::placeholder,
.checkout textarea::placeholder {
  color: #5c5648;
  opacity: 1;
}
.checkout input:focus,
.checkout textarea:focus {
  outline: 3px solid rgba(232, 255, 77, 0.45);
  border-color: #e8ff4d;
  background: #fffdf4;
}
.checkout input:-webkit-autofill,
.checkout textarea:-webkit-autofill {
  -webkit-text-fill-color: #12150a;
  box-shadow: 0 0 0 1000px #f4f1ea inset;
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--lime); color: var(--lime-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 80;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: #090b0e;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 32px;
}
.footer h4 { font-family: "Oswald", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.footer a, .footer p { color: var(--muted); display: block; margin-bottom: 8px; }
.legal { color: #66707d; font-size: 0.8rem; }

@media (max-width: 980px) {
  .gates, .grid-4, #home-productos, #tienda-grid, .how-steps, .pdp, .footer-grid, #look-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdp, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #0f1318; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 20px 22px; gap: 14px;
  }
  .nav.is-open { display: flex; }
  .menu-btn { display: grid; }
  .pdp-media, .pdp-media img { min-height: 360px; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .gates, .grid-4, #tienda-grid, .how-steps, #look-grid {
    grid-template-columns: 1fr;
  }
  #home-productos { grid-template-columns: 1fr 1fr; }
  .hero, .hero-compact { min-height: 0; }
  .section { padding: 56px 0; }
  .pdp { padding-bottom: 108px; }
  .pdp-sticky {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 35;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #10141a;
    border-top: 1px solid var(--line);
  }
}
