/* Tekniplant — one page. Mobile first. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #141a15; /* deep green-black: text, dark sections */
  --ink-2: #1e2620;
  --paper: #f4f7ef; /* bright sage white: page */
  --card: #ffffff;
  --muted: #4c564e; /* secondary text on paper (7.6:1) */
  --line: #d3d8cf;
  --orange: #dd6411; /* Tekniplant orange, measured on the barrier */
  --orange-ui: #f58220; /* buttons: ink on it is 6.8:1 */
  /* brand greens: one family instead of loose tones */
  --leaf: #6cb33f; /* the leaf of the logo: decoration, underlines, icons */
  --leaf-ink: #346f1a; /* green text on light backgrounds (5:1 or more) */
  --leaf-soft: #e3efd6; /* light green fills: icon discs, tags */
  --leaf-on-dark: #8fd25f; /* green text on dark sections (9.8:1) */
  --bark: #3d2b1f; /* trunk brown: footer */
  --orange-ink: #a94a05; /* orange text on paper (4.6:1) */
  --orange-light: #f39444; /* orange text on dark (6.7:1) */

  /* one type family everywhere: Atkinson Hyperlegible Next (body, titles, labels) */
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --display: var(--body);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprite {
  position: absolute;
}
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--orange-ui);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}

/* one column for the whole page: sections, nav pill and gallery all line up on --wrap */
:root {
  --wrap: 1240px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(3rem, 7vw, 7rem);
}
.h2 {
  font: 800 clamp(2.2rem, 4.6vw, 3.9rem) / 1.04 var(--display);
  letter-spacing: -0.025em;
}
.h3 {
  font: 800 clamp(1.3rem, 2.2vw, 1.7rem) / 1.15 var(--display);
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  max-width: 58ch;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--orange {
  background: var(--orange-ui);
  color: var(--ink);
}
.btn--orange:hover {
  background: #f68a33;
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: #2a352c;
}
.icon {
  width: 1.2em;
  height: 1.2em;
}

/* ── NAV: a floating dark pill ───────────────────────────────────── */
.nav {
  position: fixed;
  top: max(0.5rem, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 50;
  width: calc(min(100%, var(--wrap)) - 2 * var(--gutter)); /* the pill edges line up with the content column */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  min-height: 64px;
  padding: 0.5rem 0.55rem 0.5rem clamp(1rem, 2.2vw, 2.1rem);
  border-radius: 999px;
  color: #fff;
  background: rgb(17 23 19 / 0.96);
  transition:
    background-color 300ms cubic-bezier(0.23, 1, 0.32, 1),
    -webkit-backdrop-filter 300ms,
    backdrop-filter 300ms;
  box-shadow: 0 10px 30px -12px rgb(10 14 11 / 0.45);
}
.nav__logo img {
  width: clamp(112px, 9vw, 140px);
}
.nav__logo {
  flex: none;
}
@media (max-width: 420px) {
  .nav {
    gap: 0.4rem;
    padding-left: 0.9rem;
  }
  .nav__logo img {
    width: 100px;
  }
  .nav__cta {
    min-height: 44px;
    padding-inline: 0.9rem;
    font-size: 0.92rem;
  }
}
/* small screens: links live in a drop-down card under the pill */
.nav__links {
  display: none;
}
.nav__links a {
  position: relative;
  text-decoration: none;
}
.nav__toggle {
  display: grid;
  place-items: center;
  order: 3; /* after the WhatsApp button, at the far right */
  width: 44px;
  height: 44px;
  margin-left: 0.25rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav__toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav__toggle .i-close,
.nav[data-open] .nav__toggle .i-open {
  display: none;
}
.nav[data-open] .nav__toggle .i-close {
  display: block;
}
.nav[data-open] .nav__links {
  display: grid;
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto;
  padding: 0.5rem 1.5rem 1rem;
  border-radius: 24px;
  background: rgb(17 23 19 / 0.97);
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.25);
}
.nav[data-open] .nav__links a {
  display: block;
  padding: 0.9rem 0;
  font: 700 1.35rem/1.1 var(--display);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.nav[data-open] .nav__links li:last-child a {
  border-bottom: 0;
}
.nav__cta {
  margin-left: auto;
  min-height: 48px;
  padding: 0.55rem 1.3rem;
}

@media (min-width: 900px) {
  .nav__toggle {
    display: none;
  }
  .nav__links,
  .nav[data-open] .nav__links {
    display: flex;
    position: static;
    padding: 0;
    gap: clamp(1.5rem, 3vw, 2.8rem);
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__links a {
    display: block;
    padding: 0.6rem 0;
    font-weight: 700;
    font-size: 1rem;
    color: rgb(255 255 255 / 0.92);
    transition: color 0.2s;
  }
  .nav__links a:hover,
  .nav__links a[aria-current] {
    color: #fff;
  }
  /* the section on screen gets a green underline */
  .nav__links a::after {
    content: '';
    position: absolute;
    inset: auto 0 0.05rem;
    height: 2px;
    border-radius: 2px;
    background: var(--leaf);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }
  .nav__links a:hover::after,
  .nav__links a[aria-current]::after {
    transform: none;
  }
  .nav__logo {
    margin-right: auto;
  }
  .nav__cta {
    margin-left: auto;
  }
}

/* ── HERO ──────────────────────────────────────────────────────── */
/* the trunk and the ants own the center of the frame: the headline sits as one
   right-aligned block in the page column, bottom right on wide screens and top right on
   phones (their vertical cut puts the ants across the whole bottom) */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #0e120f;
  color: #fff;
  display: grid;
  align-items: start;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the trunk sits slightly left of the frame center: pull it onto the page axis */
  object-position: 48% 50%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(8 11 9 / 0.8) 0%, rgb(8 11 9 / 0.4) 30%, transparent 50%),
    linear-gradient(to top, rgb(8 11 9 / 0.45) 0%, transparent 25%);
}
.hero__inner {
  position: relative;
  padding-top: calc(6.5rem + env(safe-area-inset-top));
  text-align: right;
}
.hero__title {
  font: 800 clamp(2.2rem, 10vw, 3.4rem) / 0.98 var(--display);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.45);
}
.hero__line {
  display: block;
}
/* phones: the portrait cut is centered on the trunk */
@media (max-width: 767px), (orientation: portrait) {
  .hero__video {
    object-position: 50% 50%;
  }
}
@media (min-width: 600px) and (orientation: portrait) {
  .hero__title {
    font-size: clamp(3rem, 8vw, 4.6rem);
  }
}
/* landscape phones: the frame is short, so the headline shrinks with the height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 0;
  }
  .hero__inner {
    padding-top: 5rem;
  }
  .hero__title {
    font-size: clamp(1.8rem, 9vh, 2.6rem);
  }
}
/* wide screens: bottom right, beside the trunk, over the grass */
@media (min-width: 768px) and (orientation: landscape) and (min-height: 521px) {
  .hero {
    align-items: end;
  }
  .hero__shade {
    background:
      linear-gradient(to bottom, rgb(8 11 9 / 0.6) 0%, transparent 22%),
      radial-gradient(ellipse 70% 50% at 100% 100%, rgb(8 11 9 / 0.7) 0%, rgb(8 11 9 / 0.3) 55%, transparent 100%);
  }
  .hero__inner {
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 9vh, 5.5rem);
  }
  .hero__title {
    font-size: clamp(2.6rem, 4vw, 5rem); /* "de hormigas" starts right of the trunk, even on the last zoomed frame */
  }
}
/* the floating WhatsApp button lives below 900px: keep the headline above it */
@media (min-width: 768px) and (max-width: 899px) and (orientation: landscape) and (min-height: 521px) {
  .hero__inner {
    padding-bottom: 6rem;
  }
}

/* ── BIENVENIDO ── (leaves block lives at the end of this file) */
.welcome__grid {
  display: grid;
  gap: 1.5rem 4rem;
}
.tagline {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}
@media (min-width: 900px) {
  .welcome__grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

/* ── PRODUCTOS ─────────────────────────────────────────────────── */
/* Bienvenido + Productos: one continuous background, falling leaves behind the content */
.grove {
  position: relative;
  z-index: 2;
  overflow: clip; /* no leaf ever shows over the hero; at the bottom they slip behind Nosotros */
  background: linear-gradient(180deg, var(--paper) 0%, #f3f5ef 40%, #eef1e8 100%);
}
.products {
  position: relative;
  z-index: 1;
  /* Productos sits on a light sage tint that fades in softly (no line), so it reads as its own section */
  background: linear-gradient(180deg, rgb(218 229 206 / 0) 0%, rgb(218 229 206 / 0.85) 6rem, rgb(225 234 215 / 0.6) 45%, rgb(225 234 215 / 0.45) 100%);
}
.fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* leaves fade out before the edge, so none is cut where Nosotros begins */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12rem), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 12rem), transparent 100%);
}
.fall__leaf {
  width: clamp(52px, var(--w), 190px);
}
.fall__leaf--1 { --w: 9vw; left: 4vw; top: 30%; rotate: -38deg; } /* glossy, bitten */
.fall__leaf--2 { --w: 10vw; right: 5vw; top: 24%; rotate: 32deg; } /* laurel, bitten */
.fall__leaf--3 { --w: 6vw; left: 44vw; top: 52%; rotate: 12deg; } /* eucalyptus */
.fall__leaf--4 { --w: 7vw; left: 20vw; top: 72%; rotate: 40deg; } /* oak */
.fall__leaf--5 { --w: 6vw; right: 22vw; top: 44%; rotate: -20deg; } /* birch */
.fall__leaf--6 { --w: 5vw; left: 70vw; top: 86%; rotate: 60deg; } /* olive */
.fall__leaf--7 { --w: 6.5vw; left: 33vw; top: 18%; rotate: -50deg; } /* ash */
.fall__leaf--8 { --w: 5.5vw; right: 12vw; top: 64%; rotate: 24deg; } /* eucalyptus */
.fall__leaf--9 { --w: 7vw; left: 8vw; top: 58%; rotate: 70deg; } /* olive */
.fall__leaf--10 { --w: 5vw; left: 56vw; top: 34%; rotate: -12deg; } /* birch */
@media (max-width: 767px) {
  .fall__leaf {
    width: clamp(48px, calc(var(--w) * 1.8), 120px);
  }
  .fall__leaf--5,
  .fall__leaf--6,
  .fall__leaf--9,
  .fall__leaf--10 {
    display: none;
  }
  .fall__leaf[data-layer='front'] {
    filter: drop-shadow(0 14px 14px rgb(20 26 21 / 0.26));
  }
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
/* ── NOSOTROS: copy on the left, the orchard on the right melting into the page ── */
.about {
  position: relative;
  overflow: clip;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(600px, 96svh, 920px);
  z-index: 3; /* the falling leaves slip behind it */
  color: #eef2ea;
  /* the light-to-dark fade at the top is part of the same background (one layer: no seam at the edge);
     eased (smoothstep) alpha so no band is visible */
  background:
    linear-gradient(180deg, rgb(232 238 224 / 1) 0, rgb(232 238 224 / 1) 4px, rgb(232 238 224 / 0.980) 1.33rem, rgb(232 238 224 / 0.926) 2.67rem, rgb(232 238 224 / 0.844) 4.00rem, rgb(232 238 224 / 0.741) 5.33rem, rgb(232 238 224 / 0.624) 6.67rem, rgb(232 238 224 / 0.500) 8.00rem, rgb(232 238 224 / 0.376) 9.33rem, rgb(232 238 224 / 0.259) 10.67rem, rgb(232 238 224 / 0.156) 12.00rem, rgb(232 238 224 / 0.074) 13.33rem, rgb(232 238 224 / 0.020) 14.67rem, rgb(232 238 224 / 0.000) 16.00rem),
    radial-gradient(60% 70% at 0% 100%, rgb(52 84 40 / 0.35), transparent 70%),
    linear-gradient(165deg, #1b271d 0%, #121a14 50%, #0c120d 100%);
}
/* the warm light of the photo spills a little into the page, so the two read as one */
.about::before {
  content: '';
  position: absolute;
  z-index: -3;
  inset: 0 0 0 30%;
  background: radial-gradient(60% 70% at 85% 45%, rgb(232 170 90 / 0.18), transparent 70%);
  pointer-events: none;
}
.about__art > * {
  position: absolute;
  pointer-events: none;
}
.about__scene {
  z-index: -2;
  bottom: -3rem; /* standing on the ground, the sky fades into the page above */
  right: 0;
  /* the whole scene at the section height (no zoom crop): the tree stays at a natural distance */
  width: auto;
  max-width: 62%;
  height: calc(86% + 3rem); /* smaller than the section: the tree reads farther away; +3rem for the parallax drift */
  aspect-ratio: 855 / 1024;
  object-fit: cover;
  object-position: 100% 50%;
  /* fades into the page on the left, the top and the bottom */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.6) 25%, #000 50%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.6) 25%, #000 50%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.about__branch {
  z-index: -1;
  filter: drop-shadow(0 18px 18px rgb(20 30 10 / 0.25));
}
.about__branch--1 {
  top: 1.5rem; /* clear of the section edge: no hard cut */
  right: -2rem;
  width: clamp(150px, 19vw, 330px);
}
.about__branch--2 {
  top: 34%;
  right: 26%;
  width: clamp(90px, 9vw, 170px);
  filter: blur(3px);
  opacity: 0.85;
}
.about__grass {
  z-index: -1;
  right: 0;
  bottom: -1.5rem;
  width: 62%;
  height: clamp(110px, 16vw, 230px);
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to top, transparent 0%, #000 60%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to top, transparent 0%, #000 60%);
  mask-composite: intersect;
}
.about__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(5rem, 9vw, 7.5rem) clamp(3.5rem, 6vw, 5rem);
}
.about__inner > * {
  max-width: 34rem;
}
.about__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leaf-on-dark);
}
.about__title {
  margin-top: 1rem;
  font: 800 clamp(4rem, 8vw, 7.2rem) / 0.9 var(--display);
  letter-spacing: -0.035em;
}
.about__num {
  color: var(--orange-ui);
}
.about__sub {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  color: #d3dbcf;
}
.about__text {
  margin-top: 1.1rem;
  color: #b4beb1;
  max-width: 30rem;
}
.about__facts {
  display: flex;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.about__facts li {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 0 clamp(1rem, 2.4vw, 2.2rem);
  text-align: center;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.3;
}
.about__facts li:first-child {
  padding-left: 0;
}
.about__facts li + li {
  border-left: 1px solid rgb(255 255 255 / 0.14);
}
.about__ico {
  display: grid;
  place-items: center;
  width: clamp(56px, 5vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(169 212 143 / 0.22), rgb(169 212 143 / 0.08) 75%);
  box-shadow: inset 0 0 0 1px rgb(169 212 143 / 0.25);
  color: #cfe8bf;
}
.about__ico .icon {
  width: 46%;
  height: 46%;
}
/* narrow screens: the orchard on top, fading into the copy below */
@media (max-width: 899px) {
  .about {
    align-items: end;
    min-height: 0;
  }
  .about__scene {
    top: 0;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: min(70vw, 480px);
    max-height: 620px;
    aspect-ratio: auto;
    object-position: 80% 40%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%);
  }
  .about__branch--2,
  .about__grass {
    display: none;
  }
  .about__branch--1 {
    width: 34vw;
  }
  .about__inner {
    padding-top: min(60vw, 400px);
  }
}
@media (max-width: 480px) {
  .about__facts li {
    padding: 0 0.7rem;
    font-size: 0.86rem;
  }
}

/* ── GALERÍA ───────────────────────────────────────────────────── */
.gallery {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #f5f6f2;
  padding-bottom: 0.5rem;
}
.gallery__head {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}
.gallery__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leaf-ink);
}
.gallery__title {
  margin-top: 0.5rem;
  font: 800 clamp(2.3rem, 4.4vw, 3.9rem) / 1.04 var(--body);
  letter-spacing: -0.025em;
}
.gallery__lead {
  max-width: 24rem;
  color: var(--muted);
}
.gallery__chips .chip {
  border-color: transparent;
  box-shadow: 0 2px 8px -4px rgb(20 40 15 / 0.18);
}
.gallery__chips .chip[aria-pressed='true'] {
  background: #17261b;
}
@media (min-width: 900px) {
  .gallery__head {
    grid-template-columns: auto minmax(14rem, 22rem);
    column-gap: clamp(2rem, 5vw, 4rem);
  }
  .gallery__chips {
    grid-column: 1 / -1;
  }
}
/* the filters always sit in one row under the title and the lead, right above the photos */
.gallery__chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

/* justified rows: every tile shares the row height and grows by its own shape,
   so rows always end flush whatever the filter leaves */
.gallery__grid {
  --rh: clamp(150px, 19vw, 260px);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: calc(min(100%, var(--wrap)) - 2 * var(--gutter));
  margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0;
  padding: 0;
  list-style: none;
}
.gtile {
  --r: 1.25;
  flex: var(--r) 1 calc(var(--r) * var(--rh));
  height: var(--rh);
}
.gtile--wide {
  --r: 1.7;
}
.gtile--tall {
  --r: 0.9;
}
.gtile[hidden] {
  display: none;
}
.gtile a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #dfe5d8;
  isolation: isolate;
}
.gtile__photo,
.gtile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
/* product tiles: a soft field behind the real product */
.gtile__bg {
  z-index: -1;
  filter: blur(3px) saturate(1.05);
  scale: 1.08;
}
.gtile__prod {
  position: absolute;
  left: 50%;
  bottom: 9%;
  height: 78%;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  translate: -50% 0;
  filter: drop-shadow(0 14px 14px rgb(15 25 10 / 0.35)) drop-shadow(0 3px 3px rgb(15 25 10 / 0.25));
  transition: transform 0.5s var(--ease);
}
.gtile__label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.3);
}
.gtile__label .icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--leaf-ink);
}
.gtile a:hover .gtile__photo,
.gtile a:hover .gtile__bg {
  transform: scale(1.05);
}
.gtile a:hover .gtile__prod {
  transform: translateY(-4px) scale(1.03);
}
.gtile a:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 3px;
}
@media (max-width: 599px) {
  .gallery__grid {
    --rh: 132px;
  }
  .gtile__label {
    left: 0.5rem;
    bottom: 0.5rem;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }
  .gtile__label .icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}
@media (hover: none) {
  .gtile a:hover .gtile__photo,
  .gtile a:hover .gtile__bg,
  .gtile a:hover .gtile__prod {
    transform: none;
  }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 11 9 / 0.94);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: rgb(8 11 9 / 0.8);
}
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 84svh;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f6f3;
}
.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font: 400 2rem/1 var(--body);
  cursor: pointer;
}
.lightbox__btn:hover {
  background: rgb(255 255 255 / 0.24);
}
.lightbox__prev {
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
}
.lightbox__next {
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
}
.lightbox__close {
  right: 1rem;
  top: 1rem;
}

/* ── INFORMES ──────────────────────────────────────────────────── */
.reports {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #f5f6f2;
}
/* header photo: fades into the page on its left and bottom edges */
.reports__art {
  /* real wet leaves (same cutout as Contacto) */
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: clamp(280px, 46vw, 760px);
  height: clamp(220px, 26vw, 400px);
  object-fit: cover;
  object-position: 70% 60%;
  -webkit-mask-image: radial-gradient(120% 110% at 100% 0%, #000 45%, transparent 75%);
  mask-image: radial-gradient(120% 110% at 100% 0%, #000 45%, transparent 75%);
}
.reports__head {
  max-width: 52rem;
}
.reports__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4c564e;
}
.reports__title {
  margin-top: 0.6rem;
  font: 800 clamp(2.3rem, 4.4vw, 3.9rem) / 1.04 var(--body);
  letter-spacing: -0.025em;
}
.reports__lead {
  max-width: 32rem;
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--muted);
}
.reports__bar {
  display: grid;
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}
.reports__search {
  min-height: 52px;
  box-shadow: 0 6px 20px -12px rgb(20 40 15 / 0.2);
}
.reports__chips .chip {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 2px 8px -4px rgb(20 40 15 / 0.18);
}
.reports__chips .chip[aria-pressed='true'] {
  background: #17261b;
}
.rgrid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rcard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 300px;
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(20 26 21 / 0.04),
    0 18px 40px -24px rgb(20 40 15 / 0.25);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.rcard[hidden] {
  display: none;
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgb(20 26 21 / 0.04),
    0 26px 50px -24px rgb(20 40 15 / 0.32);
}
.rcard:focus-within {
  outline: 3px solid var(--orange-ui);
  outline-offset: 3px;
}
/* the photo fills the top right and melts into the white card toward the text */
.rcard__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 58%;
  height: 82%;
  object-fit: cover;
  object-position: 80% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.5) 30%, #000 60%), linear-gradient(to top, transparent 0%, #000 35%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.5) 30%, #000 60%), linear-gradient(to top, transparent 0%, #000 35%);
  mask-composite: intersect;
  transition: transform 0.6s var(--ease);
}
.rcard:hover .rcard__bg {
  transform: scale(1.04);
}
.rcard {
  container-type: inline-size;
}
.rcard > :not(.rcard__bg, .rcard__foot) {
  max-width: 74%;
}
@container (min-width: 560px) {
  .rcard > :not(.rcard__bg, .rcard__foot) {
    max-width: 58%;
  }
}
.rcard__tag {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rcard__tag--green {
  background: var(--leaf-soft);
  color: var(--leaf-ink);
}
.rcard__tag--orange {
  background: #fde8d4;
  color: #8f3e04;
}
.rcard__tag--blue {
  background: #dfeaf6;
  color: #24507d;
}
.rcard__tag--violet {
  background: #e8e3f4;
  color: #4d3d7a;
}
.rcard__title {
  font: 800 clamp(1.25rem, 1.6vw, 1.45rem) / 1.15 var(--body);
  letter-spacing: -0.015em;
}
.rcard__by {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #17261b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.avatar--leaf {
  background: var(--leaf-soft);
}
.avatar--leaf img {
  width: 14px;
  rotate: 25deg;
}
.rcard__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  text-shadow: 0 0 12px #fff;
}
.rcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}
.rcard__dl {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: #f1f3ee;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
/* the whole card opens the PDF */
.rcard__dl::after {
  content: '';
  position: absolute;
  inset: 0;
}
.rcard__dl:focus-visible {
  outline: none;
}
.rcard__dl svg,
.rcard__go svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rcard__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f1f3ee;
  transition:
    background-color 0.2s,
    color 0.2s,
    translate 0.3s var(--ease);
}
.rcard:hover .rcard__dl {
  background: #e6eae1;
}
.rcard:hover .rcard__go {
  background: var(--ink);
  color: #fff;
  translate: 3px 0;
}
.reports__empty {
  padding: 2rem 0;
  color: var(--muted);
}
/* cards balance the last row instead of leaving a hole: 2 columns -> an odd last card
   spans the row; 3 columns -> a last row of 2 splits it in halves, a lone last card
   pairs up with the one before (2 + 2) */
@media (min-width: 700px) and (max-width: 1099px) {
  .rgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rcard:nth-child(odd of :not([hidden])):nth-last-child(1 of :not([hidden])) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1000px) {
  .reports__bar {
    grid-template-columns: minmax(16rem, 26rem) 1fr;
    align-items: center;
  }
}
@media (min-width: 1100px) {
  .rgrid {
    grid-template-columns: repeat(6, 1fr);
  }
  .rcard {
    grid-column: span 2;
  }
  /* last row of 2 */
  .rcard:nth-child(3n + 1 of :not([hidden])):nth-last-child(2 of :not([hidden])),
  .rcard:nth-child(3n + 2 of :not([hidden])):nth-last-child(1 of :not([hidden])),
  /* a lone last card: it and the three before it make two rows of 2 */
  .rcard:nth-last-child(-n + 4 of :not([hidden])):has(~ .rcard:nth-child(3n + 1 of :not([hidden])):nth-last-child(1 of :not([hidden]))),
  .rcard:nth-child(3n + 1 of :not([hidden])):nth-last-child(1 of :not([hidden])) {
    grid-column: span 3;
  }
}
@media (max-width: 699px) {
  .reports__art {
    opacity: 0.45;
  }
}
@media (hover: none) {
  .rcard:hover,
  .rcard:hover .rcard__bg {
    transform: none;
  }
}
.todo {
  padding: 0.6rem 0.8rem;
  border: 1px dashed var(--orange-ink);
  border-radius: 8px;
  color: var(--orange-ink);
  font-size: 0.9rem;
}

/* ── CONTACTO ──────────────────────────────────────────────────── */
.contact {
  --green: var(--leaf-ink);
  --mint: var(--leaf-soft);
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #f5f6f2;
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(3.5rem, 6vw, 5rem);
}
.contact__art > * {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.contact__blob {
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #eef3e9, #e3eadc 70%);
}
.contact__blob--l {
  left: -16vw;
  bottom: 4%;
  width: 34vw;
  aspect-ratio: 1;
}
.contact__blob--r {
  right: -22vw;
  top: 14%;
  width: 46vw;
  aspect-ratio: 1;
  background: #ebf0e6;
}
.contact__bunch {
  right: -4vw;
  top: 2rem;
  width: clamp(240px, 26vw, 460px);
  filter: blur(0.6px) saturate(1.05);
}
.contact__sprig {
  left: -11vw;
  bottom: -3rem;
  width: clamp(200px, 21vw, 380px);
  rotate: 18deg;
}
.contact__leaf {
  filter: drop-shadow(0 10px 12px rgb(20 40 15 / 0.18));
}
.contact__leaf--a {
  left: 40%;
  top: 4.2rem;
  width: clamp(80px, 7vw, 120px);
  rotate: -18deg;
}
.contact__leaf--d {
  left: 46%;
  top: 9rem;
  width: clamp(34px, 2.8vw, 48px);
  rotate: 8deg;
}
.contact__leaf--b {
  left: -2rem;
  top: 8%;
  width: clamp(120px, 12vw, 200px);
  rotate: -30deg;
  filter: blur(5px);
  opacity: 0.55;
}
.contact__leaf--c {
  left: 1.5vw;
  bottom: -1.5rem;
  width: clamp(40px, 4vw, 70px);
  rotate: -55deg;
}
.contact__leaf--wet {
  right: -3rem;
  bottom: -2.5rem;
  width: clamp(140px, 14vw, 240px);
  rotate: -20deg;
  filter: blur(3px);
  opacity: 0.8;
}
/* lives in the margin left of the content, so only on screens wide enough to have one */
.contact__hand {
  left: clamp(1rem, 2.6vw, 3rem);
  bottom: clamp(4rem, 13%, 9rem);
  font: 400 clamp(1.3rem, 1.6vw, 1.7rem) / 1.15 'Segoe Print', 'Bradley Hand', 'Comic Neue', cursive;
  color: #4c564e;
  rotate: -9deg;
}
.contact__hand svg {
  display: block;
  width: 44px;
  margin: 0.2rem 0 0 -1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__grid {
  display: grid;
  gap: 3rem;
}
.contact__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.contact__title {
  margin-top: 0.5rem;
  font: 800 clamp(2.5rem, 4.6vw, 4.1rem) / 1.04 var(--body);
  letter-spacing: -0.025em;
}
.contact__lead {
  max-width: 30rem;
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}
.contact__list {
  display: grid;
  gap: 1.9rem;
  margin: 2.5rem 0 0;
  padding: 0 0 0 clamp(0rem, 1.5vw, 1.5rem);
  list-style: none;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.contact__list p {
  display: grid;
  gap: 0.2rem;
}
.contact__ico {
  flex: none;
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 6px 10px rgb(40 70 30 / 0.12));
}
/* no 3D icon for social networks in the sheet: the same mint disc in CSS */
.contact__ico--social {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  gap: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3f8ef, var(--mint) 70%);
  box-shadow: inset 0 -3px 6px rgb(60 90 40 / 0.1);
}
.contact__ico--social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.contact__ico--social svg.fill {
  fill: var(--ink);
  stroke: none;
}
.contact__k {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact__v {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.contact__v a {
  text-decoration: none;
}
a.contact__v:hover,
.contact__v a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__s {
  font-size: 0.92rem;
  color: var(--muted);
}
.contact__s.todo {
  justify-self: start;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
}

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.9);
  box-shadow:
    0 1px 2px rgb(20 26 21 / 0.04),
    0 30px 60px -30px rgb(20 40 15 / 0.22);
}
.form__title {
  margin-top: -0.6rem;
  font: 800 clamp(1.6rem, 2.3vw, 2.15rem) / 1.15 var(--body);
  letter-spacing: -0.02em;
}
.form__sub {
  margin-top: -0.6rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-weight: 700;
  font-size: 0.95rem;
}
.field__box {
  position: relative;
}
.field__box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  translate: 0 -50%;
  fill: none;
  stroke: #4c564e;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.field__box--area svg {
  top: 1.05rem;
  translate: none;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid #d5dad1;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field ::placeholder {
  color: #6b736c;
}
.field input:hover,
.field textarea:hover {
  border-color: #aab3a8;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(77 122 60 / 0.2);
}
.field [aria-invalid='true'] {
  border-color: #b3261e;
}
.field__error {
  color: #b3261e;
  font-size: 0.9rem;
}
.form__submit {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 72px;
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem 0.5rem 2.2rem;
  border: 0;
  border-radius: 999px;
  font: 700 clamp(1.05rem, 1.4vw, 1.25rem) / 1 var(--body);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.form__submit svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form__arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-left: auto;
  border-radius: 50%;
  background: #2a352c;
  transition: translate 0.3s var(--ease);
}
.form__arrow svg {
  width: 22px;
  height: 22px;
}
.form__submit:hover {
  background: #222c24;
}
.form__submit:hover .form__arrow {
  translate: 4px 0;
}
.form__submit:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 3px;
}
.form__note {
  display: flex;
  gap: 0.75rem;
  padding-left: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form__note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  fill: var(--muted);
  stroke: var(--muted);
  stroke-width: 1.8;
}
.form__note svg rect {
  stroke: none;
}
@media (min-width: 760px) {
  .contact__grid {
    grid-template-columns: 1fr 1.08fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
  .contact__intro {
    padding-top: 1rem;
  }
}
/* narrow screens: lighter decoration, nothing behind the text */
@media (max-width: 1599px) {
  .contact__hand {
    display: none;
  }
}
@media (max-width: 999px) {
  .contact__leaf--d,
  .contact__blob--l {
    display: none;
  }
  .contact__bunch {
    top: 1rem;
    right: -18vw;
    width: 44vw;
    opacity: 0.35;
  }
  .contact__leaf--a {
    left: auto;
    right: 10vw;
    top: 4.5rem;
  }
  .contact__sprig {
    opacity: 0.5;
  }
}
@media (max-width: 480px) {
  .contact__list li {
    gap: 1.1rem;
  }
  .contact__ico {
    width: 54px;
    height: 54px;
  }
  .form__submit {
    min-height: 62px;
    padding-left: 1.5rem;
  }
  .form__arrow {
    width: 46px;
    height: 46px;
  }
}

/* ── FOOTER ────────────────────────────────────────────────────── */
/* dark bark brown with light text: a clear close to the light page */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bark) 0%, #2c1f16 100%);
  color: #f1ebe2;
  --tape: 40px;
  padding-block: calc(var(--tape) + 3rem) calc(3.5rem + env(safe-area-inset-bottom));
}
/* the real Tekniplant barrier tape across the top */
.footer::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: var(--tape);
  background: #e9671a url('../img/tape/tape.webp') 0 50% / auto 100% repeat-x;
  box-shadow: 0 3px 6px -2px rgb(60 30 5 / 0.35);
}
@media (max-width: 767px) {
  .footer {
    --tape: 30px;
  }
}
.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}
.footer__logo {
  width: 150px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer__links a {
  display: inline-block;
  padding-block: 0.5rem;
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--orange-light);
}
.footer__copy {
  font-size: 0.88rem;
  color: #cdbfad;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer__copy {
    grid-column: 1 / -1;
  }
}

/* floating WhatsApp, phones only */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-ui);
  color: var(--ink);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}
.wa-float svg {
  width: 28px;
  height: 28px;
}
@media (min-width: 900px) {
  .wa-float {
    display: none;
  }
}

/* Hero entrance start state. Hidden only when scripts run and motion is allowed;
   the failsafe animation shows it anyway if the JS never arrives. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-anim] {
    opacity: 0;
    animation: failsafe-show 0.01s 2.6s forwards;
  }
}
@keyframes failsafe-show {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* anchors land below the fixed nav */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* ── BIENVENIDO: leaves over the hero edge ─────────────────────────
   Three depth layers. Positions keep a clear area around the copy:
   the section padding grows with the leaves that reach into it. */
.welcome {
  position: relative;
  z-index: 2; /* above the hero, so the leaves can overlap its bottom edge */
  overflow-x: clip; /* leaves bleed past the side edges; vertical overflow stays visible */
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}
.welcome__grid {
  position: relative;
  z-index: 1;
}
.welcome .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.welcome .line__in {
  display: block;
}
.hl {
  font-weight: 700;
  color: var(--orange-ink);
}

.leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.leaf {
  position: absolute;
}
/* shadow and blur sit on the wrapper, so they follow the (bitten) shape of the image inside */
.leaf {
  filter: drop-shadow(0 14px 14px rgb(20 26 21 / 0.26)) drop-shadow(0 3px 3px rgb(20 26 21 / 0.2));
}
.leaf img {
  width: 100%;
  height: auto;
  transform-origin: 30% 90%; /* sway from the stem side */
}
.leaf[data-layer='front'] {
  filter: drop-shadow(0 26px 24px rgb(20 26 21 / 0.3)) drop-shadow(0 6px 6px rgb(20 26 21 / 0.18)) blur(1.6px);
}
.leaf[data-layer='back'] {
  opacity: 0.6;
  filter: drop-shadow(0 8px 8px rgb(20 26 21 / 0.18)) saturate(0.85);
}

/* desktop layout: five leaves cross the hero edge (none rises more than 6vh, so the hero features stay clear), three sit low */
.leaf--b { left: 21vw; top: 3vh; width: 8.5vw; rotate: 62deg; } /* olive, back */
.leaf--c { left: 63vw; top: 4vh; width: 9.5vw; rotate: 28deg; } /* oak, mid */
.leaf--d { left: 80vw; top: 6vh; width: 6.5vw; rotate: -24deg; } /* birch, back */
.leaf--e { right: -3vw; top: 7vh; width: 15vw; rotate: 18deg; } /* ash, mid */

/* leaf-cutter bites: semicircles centered on the edge (ellipse % = circle on the image box) */
.bite-1 {
  mask-image:
    radial-gradient(8.8% 6.9% at 88% 38%, transparent 96%, #000 100%),
    radial-gradient(6.7% 5.3% at 63% 62%, transparent 96%, #000 100%),
    radial-gradient(5.9% 4.6% at 10% 34%, transparent 96%, #000 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.bite-6 {
  mask-image:
    radial-gradient(8.3% 6.5% at 88% 25%, transparent 96%, #000 100%),
    radial-gradient(7% 5.5% at 72% 58%, transparent 96%, #000 100%),
    radial-gradient(6.4% 5% at 31% 45%, transparent 96%, #000 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* stacked layouts: four leaves, smaller, no blur. Leaf sizes use min(vw, vh) so they never
   outgrow short or narrow screens, and the section padding grows with them. */
@media (max-width: 767px), (orientation: portrait), (max-height: 520px) {
  .welcome {
    padding-top: clamp(5rem, 16vw, 8rem);
    padding-bottom: clamp(3.5rem, 10vw, 6rem);
  }
  .leaf--b,
  .leaf--c,
  .leaf--d {
    display: none;
  }
  .leaf--e { right: -7vw; top: 6vh; width: min(28vw, 31vh); }
  .leaf[data-layer='front'] {
    filter: drop-shadow(0 14px 14px rgb(20 26 21 / 0.26));
  }
}

/* ── SERVICIOS Y PRODUCTOS: catalog grid ───────────────────────── */
.products__hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
}
.products__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.products__title {
  margin-top: 0.9rem;
  font: 800 clamp(2.2rem, 4.4vw, 3.6rem) / 1.02 var(--body);
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.products__lead {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
}
.products__perks {
  display: grid;
  gap: 1.1rem;
}
.products__perks li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 24ch;
  font-size: 0.98rem;
  line-height: 1.35;
}
.perk__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-ink);
}
.perk__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 1000px) {
  .products__hero {
    grid-template-columns: 1.6fr 1fr;
    column-gap: clamp(2rem, 6vw, 6rem);
  }
}

/* toolbar: search · category chips · sort */
.toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.search svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.search:focus-within {
  outline: 3px solid var(--orange-ui);
  outline-offset: 2px;
}
.chips {
  display: flex;
  flex-wrap: wrap; /* every filter always visible, no hidden horizontal scroll */
  gap: 0.4rem;
}
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 0.85rem/1 var(--body);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.chip:hover {
  border-color: #9aa398;
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sort {
  position: relative;
  display: grid;
  min-height: 48px;
  padding: 0.35rem 2.6rem 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.sort::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  translate: 0 -70%;
  rotate: 45deg;
  pointer-events: none;
}
.sort__label {
  font-size: 0.72rem;
  color: var(--muted);
}
.sort select {
  appearance: none;
  border: 0;
  background: transparent;
  font: 700 0.9rem/1.2 var(--body);
  color: var(--ink);
  cursor: pointer;
}
.sort:focus-within {
  outline: 3px solid var(--orange-ui);
  outline-offset: 2px;
}
.sort select:focus-visible {
  outline: none;
}
@media (min-width: 700px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto; /* the search box gives way, the sort stays whole */
    align-items: center;
  }
  .chips {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (min-width: 1200px) {
  .toolbar {
    grid-template-columns: minmax(200px, 250px) 1fr auto;
  }
  .chips {
    grid-column: auto;
    grid-row: auto;
  }
}

/* product cards: same size, same image frame */
/* every card the same width; a short last row (9 products, or a filter) is centred instead
   of leaving a gap on one side. 1 column on phones, 2 on small tablets, 3 from 860px. */
.pgrid {
  --cols: 1;
  --gap: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 1.75rem 0 0;
  padding: 0;
}
.pgrid > .pcard {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}
@media (min-width: 560px) {
  .pgrid {
    --cols: 2;
  }
}
@media (min-width: 860px) {
  .pgrid {
    --cols: 3;
  }
}
.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e8e1;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(20 26 21 / 0.04),
    0 10px 28px -16px rgb(20 26 21 / 0.18);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.pcard[hidden] {
  display: none;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgb(20 26 21 / 0.05),
    0 18px 36px -18px rgb(20 26 21 / 0.28);
}
.pcard__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #eef0e9;
}
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard {
  position: relative;
}
.pcard__go::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.pcard:focus-within {
  outline: 3px solid var(--orange-ui);
  outline-offset: 3px;
}
.pcard__go:focus-visible {
  outline: none;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 4.25rem 1.2rem 1.15rem;
}
.pcard__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-ink);
}
.pcard__title {
  margin-top: 0.4rem;
  font: 700 1.08rem/1.25 var(--body);
}
.pcard__desc {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.pcard__go {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1.1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f2ec;
  color: var(--ink);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.pcard__go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pcard:hover .pcard__go,
.pcard__go:focus-visible {
  background: var(--ink);
  color: #fff;
}
.pempty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.pempty[hidden] {
  display: none;
}
.products__more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* touch screens: no sticky hover lifts; a short press feedback instead */
@media (hover: none) {
  .btn:hover,
  .pcard:hover,
  .gallery__grid a:hover img {
    transform: none;
  }
  .pcard:hover {
    box-shadow:
      0 1px 2px rgb(20 26 21 / 0.04),
      0 10px 28px -16px rgb(20 26 21 / 0.18);
  }
  .pcard:hover .pcard__go {
    background: #f0f2ec;
    color: var(--ink);
  }
  .btn:active,
  .chip:active,
  .pcard:active {
    transform: scale(0.98);
  }
}

/* big monitors: a wider column and a slightly larger base size */
@media (min-width: 1800px) {
  html {
    font-size: 18px;
  }
  :root {
    --wrap: 1440px;
  }
}
@media (min-width: 2400px) {
  html {
    font-size: 20px;
  }
  :root {
    --wrap: 1680px;
  }
}

/* safe areas (notches, home indicator) for full-bleed sections */
.footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.wa-float {
  right: max(1rem, env(safe-area-inset-right));
}

/* ── COMPACT SCREENS ───────────────────────────────────────────────
   Phones and small tablets: shorter page, no long single-column lists,
   type and spacing that scale with the screen. */
.pcard__cat {
  font-size: max(0.72rem, 11.5px);
}
@media (max-width: 699px) {
  /* products: two per row, compact cards */
  .pgrid {
    --cols: 2;
    --gap: 0.7rem;
  }
  .pcard__media {
    aspect-ratio: 4 / 3; /* the product reads bigger in a narrow card */
  }
  .pcard__body {
    padding: 0.65rem 0.75rem 0.85rem;
  }
  .pcard__cat {
    letter-spacing: 0.06em;
  }
  .pcard__title {
    font-size: 0.95rem;
  }
  .pcard__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
  }
  /* the arrow sits on the photo corner, so the text keeps the full card width */
  .pcard__go {
    top: 0.5rem;
    right: 0.5rem;
    bottom: auto;
    width: 36px;
    height: 36px;
    background: rgb(255 255 255 / 0.9);
  }
  .pcard__go::after {
    inset: -0.5rem -0.5rem auto auto;
  }
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto; /* the search box gives way, the sort stays whole */
    gap: 0.6rem;
    margin-top: 1.75rem;
  }
  .toolbar .chips {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .toolbar .chips::-webkit-scrollbar {
    display: none;
  }
  .products__perks {
    gap: 0.7rem;
  }
  .products__perks li {
    max-width: none;
    font-size: 0.9rem;
  }
  .perk__icon {
    width: 38px;
    height: 38px;
  }
  .products__more {
    margin-top: 1.75rem;
  }

  /* reports: a swipeable row instead of five stacked cards */
  .rgrid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 340px);
    gap: 0.8rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1rem;
    scrollbar-width: none;
  }
  .rgrid::-webkit-scrollbar {
    display: none;
  }
  .rcard {
    scroll-snap-align: start;
    min-height: 0;
  }
  .reports__bar {
    margin-block: 1.5rem 1rem;
  }
  .reports__chips,
  .gallery__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reports__chips::-webkit-scrollbar,
  .gallery__chips::-webkit-scrollbar {
    display: none;
  }

  /* gallery: lower rows */
  .gallery__grid {
    --rh: 112px;
    gap: 0.4rem;
  }
  .gtile a {
    border-radius: 10px;
  }

  /* contact: tighter list and form */
  .contact__list {
    gap: 1.1rem;
    margin-top: 1.75rem;
  }
  .contact__ico {
    width: 48px;
    height: 48px;
  }
  .form {
    gap: 0.9rem;
    padding: 1.25rem;
    border-radius: 20px;
  }
  .field textarea {
    min-height: 96px;
  }
  .contact__grid {
    gap: 2rem;
  }

  /* Nosotros: a shorter photo on top */
  .about__scene {
    height: 68vw;
  }
  .about__inner {
    padding-top: 58vw;
    padding-bottom: 3rem;
  }
  .about__title {
    font-size: clamp(3.4rem, 17vw, 4.8rem);
  }

  /* footer */
  .footer {
    padding-block: calc(var(--tape) + 2rem) calc(2.5rem + env(safe-area-inset-bottom));
  }
  .footer__grid {
    gap: 1.25rem;
  }
}

/* very narrow phones (≤ 379px): WhatsApp as an icon button, "Ordenar por" kept for screen readers only */
@media (max-width: 379px) {
  .nav__cta {
    width: 44px;
    padding: 0;
    gap: 0;
  }
  .nav__cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sort {
    padding-inline: 0.8rem 2.2rem;
  }
  .sort__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* tablets and small laptops (600–1023px): three compact product cards per row */
@media (min-width: 600px) and (max-width: 1023px) {
  .pgrid {
    --cols: 3;
    --gap: 0.9rem;
  }
  .pcard__media {
    aspect-ratio: 4 / 3;
  }
  .pcard__body {
    padding: 0.8rem 0.9rem 1rem;
  }
  .pcard__title {
    font-size: 1rem;
  }
  .pcard__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
  }
  .pcard__go {
    top: 0.6rem;
    right: 0.6rem;
    bottom: auto;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 0.9);
  }
}

/* more light in the photos: a touch brighter and more saturated */
.gtile__photo,
.about__scene,
.rcard__bg {
  filter: brightness(1.07) saturate(1.12);
}
.gtile__bg {
  filter: blur(3px) brightness(1.08) saturate(1.12);
}

/* ── PRODUCTS CAROUSEL ─────────────────────────────────────────────
   One row: swipe, drag with the mouse, arrows or keys; every card snaps
   into place. The next card peeks in at the edge, so it reads as scrollable. */
.pcar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pcar__count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.pcar__nav {
  display: flex;
  gap: 0.5rem;
}
.pcar__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(20 26 21 / 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgb(20 26 21 / 0.35);
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms,
    color 200ms,
    opacity 200ms;
}
.pcar__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pcar__btn:active:not(:disabled) {
  transform: scale(0.94);
}
.pcar__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (hover: hover) {
  .pcar__btn:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
  }
}
.pcar__btn:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 2px;
}
/* everything fits on screen: no arrows, no bar */
[data-car].is-static .pcar__nav,
.pcar__progress.is-static {
  visibility: hidden;
}
.pgrid {
  --card-w: clamp(250px, 24vw, 300px);
  --fade-l: 0px;
  --fade-r: 3rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1rem;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.25rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.pgrid::-webkit-scrollbar {
  display: none;
}
.pgrid > .pcard {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
}
.pgrid:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 4px;
  border-radius: 18px;
}
@media (hover: hover) and (pointer: fine) {
  .pgrid {
    cursor: grab;
  }
}
.pgrid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.pgrid.is-dragging .pcard {
  pointer-events: none;
}
.pcar__progress {
  height: 4px;
  margin-top: 0.25rem;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(20 26 21 / 0.1);
}
.pcar__progress span {
  display: block;
  width: var(--thumb-w, 30%);
  height: 100%;
  border-radius: inherit;
  background: var(--leaf-ink);
  transform: translateX(var(--thumb-x, 0%));
}
.btn__meta {
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.75;
}
@media (min-width: 600px) and (max-width: 1023px) {
  .pgrid {
    --card-w: clamp(220px, 38vw, 300px);
  }
}
@media (max-width: 599px) {
  .pgrid {
    --card-w: 74vw;
    gap: 0.75rem;
  }
  .pcar__btn {
    width: 44px;
    height: 44px;
  }
}

/* once the page scrolls, the nav pill turns slightly see-through: the content behind shows, softly blurred,
   and the links stay easy to read (the blur is only added after scrolling, so it never slows the first paint) */
.nav.is-scrolled {
  background: rgb(17 23 19 / 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}
.nav.is-scrolled[data-open] {
  background: rgb(17 23 19 / 0.96);
}

/* ── PRODUCT CARDS FROM THE ADMIN ──────────────────────────────────
   Photos cross-fade (dots to pick one), the variants table, "Ver producto" opens the
   product page; the round arrow stays the WhatsApp shortcut. */
.pcard__go::after {
  content: none;
}
.pcard__open {
  color: inherit;
  text-decoration: none;
}
.pcard__open::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.pcard__open:focus-visible {
  outline: none;
}
.pcard__media {
  position: relative;
  display: grid;
  grid-template: 100% / 100%; /* every photo stacked in the same 2:1 cell, tall cut-outs included */
  min-height: 0;
  background: #fbf6e9;
}
.pcard__media img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pcard__media img.is-on {
  opacity: 1;
}
.pcard__media .pcard__img--contain,
.pgal__slide .pgal__img--contain {
  object-fit: contain;
  padding: 7%;
}
.pcard__noimg {
  grid-area: 1 / 1;
  place-self: center;
  font-weight: 800;
  color: rgb(20 26 21 / 0.25);
}
.pcard__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.4rem;
  translate: -50% 0;
  display: flex;
  padding: 0 0.3rem;
  border-radius: 99px;
  background: rgb(20 26 21 / 0.32);
}
.pcard__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pcard__dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.6);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.pcard__dot[aria-current='true']::before {
  width: 14px;
  background: #fff;
}
.pcard__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 50%;
}
.pcard__body,
.pgrid .pcard__body {
  padding: 1rem 1.1rem 1.1rem;
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
}
.pcard__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--leaf-ink);
  text-decoration: none;
}
.pcard__go,
.pgrid .pcard__go {
  position: relative;
  inset: auto;
  flex: none;
  width: 44px;
  height: 44px;
  background: #f0f2ec;
}
.pvars {
  width: 100%;
  margin-top: 0.8rem;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.pvars th {
  padding: 0 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.pvars td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-bottom: 1px solid #eef0ea;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.pvars td:first-child {
  font-weight: 700;
  color: var(--leaf-ink);
  white-space: nowrap;
}
.pvars th:last-child,
.pvars td:last-child {
  padding-right: 0;
  text-align: right;
}
.pvars--lg {
  margin-top: 0.6rem;
  font-size: 0.92rem;
}
.pvars--lg th {
  font-size: 0.72rem;
}
.pvars--lg td {
  padding-block: 0.55rem;
}

/* product page: photos on the left (swipe, arrows, thumbnails), details on the right */
html:has(.pdialog[open]) {
  overflow: hidden;
}
.pdialog {
  width: min(1080px, 100% - 1.5rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.45);
}
.pdialog[open] {
  animation: pdialog-in 0.32s var(--ease);
}
@keyframes pdialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
.pdialog::backdrop {
  background: rgb(14 18 15 / 0.62);
}
.pdialog__close {
  position: sticky;
  z-index: 3;
  top: 0.75rem;
  float: right;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0.75rem 0.75rem -3.5rem 0;
  border: 1px solid rgb(20 26 21 / 0.1);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgb(20 26 21 / 0.4);
}
.pdialog__close svg,
.pgal__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pdialog__close:focus-visible,
.pgal__btn:focus-visible,
.pgal__thumb:focus-visible,
.pgal__track:focus-visible {
  outline: 3px solid var(--orange-ui);
  outline-offset: 2px;
}
.pdialog__body {
  display: grid;
  gap: 1.5rem;
  padding: 0.75rem 0.75rem 1.75rem;
}
.pgal__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #fbf6e9;
}
.pgal__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pgal__track::-webkit-scrollbar {
  display: none;
}
.pgal__slide {
  display: grid;
  grid-template: 100% / 100%;
  min-width: 0;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.pgal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgal__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgb(20 26 21 / 0.45);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pgal__btn:active {
  transform: scale(0.94);
}
.pgal__btn--prev {
  left: 0.75rem;
}
.pgal__btn--next {
  right: 0.75rem;
}
.pgal__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pgal__thumb {
  flex: 0 0 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fbf6e9;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}
.pgal__thumb[aria-current='true'] {
  border-color: var(--leaf-ink);
  opacity: 1;
}
.pgal__timg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgal__timg--contain {
  object-fit: contain;
  padding: 5px;
}
.pinfo {
  padding-inline: 0.5rem;
}
.pinfo__title {
  margin-top: 0.4rem;
  font: 800 clamp(1.6rem, 3vw, 2.3rem) / 1.08 var(--display);
  letter-spacing: -0.02em;
}
.pinfo__title:focus {
  outline: none;
}
.pinfo__lead {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.pinfo__text {
  margin-top: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.pinfo__h {
  margin-top: 1.6rem;
  font: 800 0.76rem/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-ink);
}
.pinfo__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
}
.pinfo__list li {
  position: relative;
  padding-left: 1.3rem;
  line-height: 1.5;
  color: var(--muted);
}
.pinfo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--leaf);
}
.pinfo__cta {
  margin-top: 1.75rem;
}
@media (min-width: 860px) {
  .pdialog__body {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 2.5rem;
    padding: 1.75rem 2rem 2.25rem;
  }
  .pgal {
    position: sticky;
    top: 1.75rem;
  }
  .pgal__stage {
    aspect-ratio: 1;
  }
  .pinfo {
    padding: 0.5rem 2.5rem 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdialog[open] {
    animation: none;
  }
  .pcard__media img {
    transition: none;
  }
}

/* cards: a bigger photo (4:3) and a compact body, so they read less tall */
.pgrid {
  --card-w: clamp(260px, 26vw, 340px);
}
.pgrid .pcard__media {
  aspect-ratio: 4 / 3;
}
.pgrid .pcard__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pgrid .pcard__body {
  padding: 0.85rem 1rem 0.95rem;
}
.pgrid .pcard__title {
  margin-top: 0.25rem;
}
.pgrid .pvars {
  margin-top: 0.6rem;
}
.pgrid .pvars td {
  padding-block: 0.25rem;
}
.pgrid .pcard__foot {
  padding-top: 0.6rem;
}
.pcard__morevars {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--leaf-ink);
}
@media (min-width: 600px) and (max-width: 1023px) {
  .pgrid {
    --card-w: clamp(260px, 42vw, 340px);
  }
}
@media (max-width: 599px) {
  .pgrid {
    --card-w: 78vw;
  }
}

/* ── CONTACT FORM: paired fields and dropdowns ───────────────────── */
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.15rem 1rem;
}
.field__opt {
  font-weight: 400;
  color: var(--muted);
}
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 2.6rem 0.8rem 3rem;
  border: 1px solid #d5dad1;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c564e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 18px;
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field select:invalid {
  color: #6b736c; /* the "Elegí…" prompt reads like a placeholder */
}
.field select option {
  color: var(--ink);
}
.field select:hover:not(:disabled) {
  border-color: #aab3a8;
}
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(77 122 60 / 0.2);
}
.field select:disabled {
  background-color: #f4f6f1;
  cursor: not-allowed;
}
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form {
  position: relative;
}
.form__status {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fdecea;
  font-weight: 700;
  color: #b3261e;
}
.form__done-title {
  font: 800 clamp(1.5rem, 2.3vw, 2rem) / 1.2 var(--body);
  letter-spacing: -0.02em;
  color: var(--leaf-ink);
}
.form:focus {
  outline: none;
}
