:root {
  --ink: #111;
  --text: #363636;
  --muted: #8a8a8a;
  --paper: #fff;
  --line: #e8e8e8;
  --btn: #363636;
  --side: 40px;
  --logo-h: 98px;   /* alto de la zona del logo (se esconde al bajar) */
  --bar-h: 65px;    /* alto de la barra del menú */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--bar-h) + 10px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.5 "Cabin", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: calc(var(--logo-h) * -1);   /* el logo sube y queda pegada solo la barra */
  z-index: 50;
  background: var(--paper);
}
.header-logo { height: var(--logo-h); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.logo {
  font-family: "Bowlby One", "Cabin", sans-serif;
  font-size: 62px;
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.header-bar {
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--side);
  transition: box-shadow .2s;
}
.burger { grid-column: 1; }
.nav { grid-column: 2; display: flex; gap: 23px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 16px; color: var(--text); }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.icons { grid-column: 3; justify-self: end; display: flex; gap: 14px; }
.icons a { color: var(--text); display: flex; }
.icons a:hover { color: var(--ink); }
.burger { display: none; }

/* Al bajar: menú alineado a la izquierda, como mcbess */
.header.scrolled .header-bar { grid-template-columns: 0 1fr auto; box-shadow: 0 1px 0 var(--line); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero img {
  transform: scale(1.14);
  width: 100%;
  height: min(100vh, 900px);
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) sepia(.12);
}

/* ---------- Bloques ---------- */
.block { padding: 90px var(--side) 70px; }
.section-title, .rich-text h2 {
  font-size: 24px; font-weight: 400; line-height: 1.3;
  color: var(--text); text-align: center; margin: 0 0 40px;
}
.rich-text { text-align: center; max-width: 820px; margin: 0 auto; padding: 80px var(--side); }
.rich-text h2 { margin-bottom: 18px; }
.rich-text p { margin: 0; font-size: 18px; line-height: 1.5; }
.rich-text a { font-weight: 700; text-underline-offset: 3px; }
.rich-text.tight { padding: 0 0 40px; }

/* ---------- Botones ---------- */
.bttn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--btn); color: #fff; border: 0; border-radius: 1px;
  padding: 11px 22px; font-size: 14px; font-weight: 400; line-height: 21px;
  letter-spacing: .7px; text-transform: uppercase;
  transition: background .2s;
}
.bttn:hover { background: var(--ink); }
.bttn-light { background: #fff; color: var(--text); }
.bttn-light:hover { background: #eee; }
.center { text-align: center; margin-top: 44px; }

/* ---------- Productos (Latest drop) ---------- */
.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px;
  max-width: 870px; margin: 0 auto;
}
.product { text-decoration: none; text-align: center; color: var(--text); }
.product .pic { position: relative; aspect-ratio: 1; }
.product .pic img {
  width: 100%; height: 100%; object-fit: cover;
  box-shadow: 0 6px 14px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.12);
}
.badge {
  position: absolute; top: 10px; left: -8px;
  background: #fff; color: var(--text); font-size: 14px; line-height: 17.5px;
  padding: 5px 10px; border-radius: 2.5px; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.quick {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.product:hover .quick, .product:focus-visible .quick { opacity: 1; }
.product-title { margin-top: 16px; font-size: 16px; }
.product-meta { color: var(--muted); font-size: 16px; margin-top: 4px; }
.product.is-extra { display: none; }
.products.show-all .product.is-extra { display: block; }

/* ---------- Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--side); }
.mosaic-col { display: grid; gap: 20px; }
.tile { position: relative; display: block; overflow: hidden; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:not(.tile-tall) { aspect-ratio: 1 / .98; }
.tile-tall { height: 100%; }
.tile:hover img { transform: scale(1.03); }
.tile .bttn { position: absolute; left: 50%; bottom: 35px; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Banda (Weird Wave) ---------- */
.banner { position: relative; height: min(100vh, 625px); overflow: hidden; background: var(--ink); margin-top: 90px; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner .blur { object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.3); transform: scale(1.15); }
.banner .front { object-fit: contain; padding: 30px 0 60px; }
.banner-caption {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
}
.banner-caption:hover { text-decoration: underline; }

/* ---------- Carrusel ---------- */
.carousel { position: relative; max-width: 960px; margin: 0 auto; padding: 0 44px; }
.car-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 14px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track .product { scroll-snap-align: start; }
.car-btn {
  position: absolute; top: 38%; transform: translateY(-50%);
  background: none; border: 0; font-size: 46px; line-height: 1; cursor: pointer; color: var(--text); padding: 6px;
}
.car-btn.prev { left: 0; }
.car-btn.next { right: 0; }

/* ---------- Slideshow (Tattoos) ---------- */
.slideshow { position: relative; height: min(100vh, 625px); overflow: hidden; background: var(--ink); }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  filter: brightness(.6); opacity: 0; transition: opacity 1s;
}
.slides img.active { opacity: 1; }
.slide-cta { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); }
.dots { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 14px; }
.dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: transparent; opacity: .6;
}
.dots button.active { opacity: 1; background: radial-gradient(#fff 35%, transparent 40%); }

/* ---------- Imágenes (galería) ---------- */
.gallery { padding: 0 var(--side) 80px; max-width: 1400px; margin: 0 auto; }
.filters { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 34px; }
.filters button { background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--muted); padding: 2px 0; }
.filters button.active, .filters button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: center; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-item span { display: block; margin-top: 10px; font-size: 15px; color: var(--text); }
.gallery-item[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; max-width: 100%; object-fit: contain; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.lb-caption { margin-top: 14px; }
.lb-close { position: absolute; top: 10px; right: 20px; background: none; border: 0; font-size: 40px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 60px; line-height: 1; cursor: pointer; padding: 12px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- Footer ---------- */
.footer { background: #3d3d3d; color: #fff; padding: 50px var(--side) 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer h3 { font-size: 16px; font-weight: 400; margin: 0 0 16px; }
.footer p { margin: 0 0 18px; font-size: 15px; max-width: 420px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; font-size: 15px; }
.footer li a { text-underline-offset: 3px; }
.small { font-size: 13px; color: #bbb; margin: 40px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --side: 20px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .car-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
  :root { --logo-h: 76px; --bar-h: 56px; --side: 16px; }
  .logo { font-size: 44px; -webkit-text-stroke-width: 5px; text-shadow: 3px 3px 0 var(--ink); }
  .header-bar, .header.scrolled .header-bar { grid-template-columns: auto 1fr auto; }
  .burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .burger span { width: 22px; height: 2px; background: var(--text); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: center; gap: 18px;
    padding: 22px 16px; box-shadow: 0 1px 0 var(--line);
  }
  .nav.open { display: flex; }
  .hero img { height: 70vh; }
  .mosaic { grid-template-columns: 1fr; }
  .tile-tall { aspect-ratio: 3 / 4; height: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel { padding: 0; }
  .car-btn { display: none; }
  .car-track { grid-auto-columns: 70%; }
  .rich-text { padding: 56px var(--side); }
  .block { padding: 60px var(--side) 50px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
