:root {
  /* Palette D · Visitekaartje (colours from the business card) */
  --ink: #15241d;
  --ink-soft: #43524a;
  --paper: #f5f8f3;
  --card: #ffffff;
  --line: #cfe3c6;
  --brand-green: #087535; /* logo green #0b9444 darkened for AA text */
  --plum: #5f3767; /* logo purple */
  --mint: #cfe3c6;
  --pink: #e8c3d2;
  --logo-green: #0b9444; /* exact logo colour, non-text use only (3.7:1 on paper) */
  --brand-ink: var(--brand-green);
  --accent: var(--plum);
  --dark: #0f4a2b;
  --hero-bg: #0f2a20;
  --btn-dark: #5f3767;
  --on-btn-dark: #f7f1f5;
  --wa: #13803f;
  --on-wa: #ffffff;
  --on-dark: #f3f8f4;
  --on-dark-soft: #d5e6dc;
  --on-dark-muted: #c2d6ca;
  --on-dark-accent: #f2c9da;
  --hero-accent: #d8eed0;
  --num-bg: #f6e8ee;
  --header-bg: rgba(245, 248, 243, 0.94);
  --ghost-border: rgba(243, 248, 244, 0.6);
  --rule: rgba(232, 195, 210, 0.8);
  --num-dark-border: rgba(242, 201, 218, 0.6);
  --shade: 12, 34, 26;
  --shadow-rgb: 21, 36, 29;
  --shadow: 0 18px 40px rgba(var(--shadow-rgb), 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  color: var(--brand-ink);
}
.brand-mark { height: 44px; width: auto; flex: none; }
.brand small {
  display: block;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  color: var(--accent);
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
}
.nav a:not(.btn) { color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-ghost {
  background: transparent;
  border-color: var(--ghost-border);
  color: var(--on-dark);
}
.btn-ink { background: var(--btn-dark); color: var(--on-btn-dark); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--on-dark);
}
.hero-media {
  position: absolute;
  inset: -8% 0 auto 0;
  height: 118%;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.18) saturate(1.05); /* the photo itself is a dusk shot */
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* Dark only behind the copy (left/bottom); the photo stays bright top-right. */
  background:
    linear-gradient(90deg, rgba(var(--shade), 0.78) 0%, rgba(var(--shade), 0.62) 38%, rgba(var(--shade), 0.18) 66%, rgba(var(--shade), 0) 100%),
    linear-gradient(180deg, rgba(var(--shade), 0) 35%, rgba(var(--shade), 0.5) 100%);
  z-index: 1;
}
.hero-rule {
  position: absolute;
  left: 7%;
  top: 18%;
  width: 1px;
  height: 42%;
  background: var(--rule);
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;
  padding: 72px 22px 48px;
  max-width: 760px;
}
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--accent); /* 4.96:1 on paper */
  margin: 0 0 10px;
}
/* Light labels only on the dark hero and the dark band. */
.hero .kicker { color: var(--hero-accent); }
.hero-copy { text-shadow: 0 1px 2px rgba(var(--shade), 0.45), 0 0 18px rgba(var(--shade), 0.35); }
.hero-copy .btn { text-shadow: none; }
.band .kicker { color: var(--on-dark-accent); }
.section-head .kicker { color: var(--accent); }
h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 520; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95; margin: 0 0 14px; }
.lede { max-width: 38rem; margin: 0 0 22px; color: var(--on-dark-soft); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); margin: 8px 0 0; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; line-height: 1.05; }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

.card, .line-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3, .line-card h3 { margin: 10px 0 6px; font-size: 1.45rem; }
.card p, .line-card li { color: var(--ink-soft); }
.card img, .shot img { width: 100%; height: auto; border-radius: 12px; }
.index {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.line-card ul { margin: 0; padding-left: 18px; }
.line-card li { margin: 6px 0; }
.nw { white-space: nowrap; }

.band {
  background: var(--dark);
  color: var(--on-dark);
}
.band .section-head p, .band li { color: var(--on-dark-soft); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.shot { border-radius: 18px; overflow: hidden; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: var(--num-bg);
  font-size: 0.95rem;
  font-weight: 650;
}
.band .num {
  border-color: var(--num-dark-border);
  color: var(--on-dark-accent);
}

.visit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}
.map-card, .info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.info-card { padding: 22px; }
.info-card a:not(.btn) { color: var(--accent); }
.meta { margin: 0 0 14px; }
.meta dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.meta dd { margin: 2px 0 0; }
iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.hours { border-collapse: collapse; margin: 2px 0 4px; }
.hours th, .hours td { text-align: left; padding: 2px 0; font-weight: 400; vertical-align: top; }
.hours th { padding-right: 18px; color: var(--ink); }
.hours td { color: var(--ink); white-space: nowrap; }
.hours-note { display: block; font-size: 0.9rem; color: var(--ink-soft); }

/* Trabajos realizados: small square tiles, the source photos are only 250–500 px wide. */
.section-head a { color: var(--accent); }
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery li {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(var(--shade), 0.88); }
.lightbox img { display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.lightbox p { color: var(--on-dark); margin: 8px 0 0; font-size: 0.92rem; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 1.4rem; cursor: pointer; }

/* Bueno saber */
section.facts { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--card); }
.facts-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.facts-row li { display: flex; gap: 12px; align-items: flex-start; }
.facts-row svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--num-bg); color: var(--accent); }
.facts-row b { display: block; color: var(--ink); font-weight: 650; }
.facts-row span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.35; }
.more { margin: 22px 0 0; }
.lead-in { margin: 10px 0 0; color: var(--ink-soft); font-weight: 560; }

/* Catálogo /productos */
.page-head { padding: 56px 0 8px; }
.page-head h1 { color: var(--ink); font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-head p { color: var(--ink-soft); max-width: 640px; margin: 0; }
.cat { padding: 40px 0; }
.cat h2 { margin-bottom: 6px; }
.cat .section-head { margin-bottom: 20px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.product .ph { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; border-radius: 10px; margin-bottom: 10px; }
.product .ph img { width: 100%; height: 100%; max-width: 250px; max-height: 250px; object-fit: contain; }
.product h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.product p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 12px; flex: 1; }
.product.text-only { background: var(--paper); }
.wa-link { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 650; font-size: 0.92rem; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }
.wa-link svg { width: 16px; height: 16px; flex: none; }
.product .links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.product .links a:not(.wa-link) { color: var(--accent); font-size: 0.92rem; }

/* Slider por categoría: scroll-snap nativo; las flechas las añade script.js */
.slider { position: relative; }
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 12px; }
.slider-bar[hidden] { display: none; }
.slider-count { margin: 0; color: var(--ink-soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.slider-btns { display: flex; gap: 8px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent); display: grid; place-items: center; cursor: pointer; padding: 0; }
.slider-btn:hover:not(:disabled) { background: var(--num-bg); }
.slider-btn:focus-visible, .slider-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.products.slider-track {
  --peek: 3.6; --g: 14px;
  display: grid; gap: var(--g); grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: calc((100% - (var(--peek) - 1) * var(--g)) / var(--peek));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; padding: 2px 2px 12px; border-radius: 16px;
}
.slider-track > li { scroll-snap-align: start; }
@media (max-width: 1000px) { .products.slider-track { --peek: 2.4; } }

.footer {
  padding: 28px 0 88px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--ink); }

.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  overflow: hidden;
  z-index: 9;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(var(--shade), 0.25);
}
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .grid-3, .grid-2, .lines, .split, .visit { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(var(--shade), 0.05) 0%, rgba(var(--shade), 0.2) 9%, rgba(var(--shade), 0.72) 21%, rgba(var(--shade), 0.72) 60%, rgba(var(--shade), 0.84) 100%);
  }
  .wa-float { display: flex; }
  iframe { height: 260px; min-height: 260px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product { padding: 10px; }
  .products.slider-track { --peek: 1.2; --g: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .hero-rule { transform: none !important; }
}
