/* ================== TOKENS ================== */
:root {
  /* paleta — turquesa de la marca */
  --green-900: #08363D;
  --green-800: #0B4E58;
  --green-700: #0A7180;
  --green-600: #14AEC4;
  --green-500: #4ECFDE;

  /* bright brand turquoise — primary accent */
  --accent:      #5FE3EC;
  --accent-2:    #38D3E0;  /* slightly deeper, for hovers */
  --accent-ink:  #08363D;  /* dark text to sit on the accent */

  /* tierra mallorquina */
  --cream:     #F5EFE3;
  --cream-2:   #EFE8D8;
  --stone:     #E0D3B8;
  --stone-d:   #C9B894;

  /* tinta */
  --ink:       #1A1714;
  --ink-2:     #3C3631;
  --ink-3:     #6B635A;
  --ink-4:     #A39A8E;

  --bg:        #FBF7EE;
  --bg-soft:   #F5EFE3;

  --rule:      rgba(26,23,20,.12);
  --rule-soft: rgba(26,23,20,.06);

  /* display / heading font — Plus Jakarta Sans (was Spectral) */
  --serif: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --max: 1280px;
  --pad: 2.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.03 0 0 0 0 0.17 0 0 0 0 0.2 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
  opacity: .35; mix-blend-mode: multiply;
}

/* ================== TIPO BASE ================== */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-light { color: var(--cream); }

.display-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display-h em {
  font-style: italic;
  font-weight: 300;
  color: var(--green-700);
}
.display-h.light { color: var(--cream); }
.display-h.light em { color: var(--stone); }
.display-h span, .display-h em { display: block; }

/* ================== NAV ================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 247, 238, 0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--rule-soft);
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(251, 247, 238, 0.94);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-img { height: 38px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links > a {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
}
.nav-links > a:not(.nav-cta):hover { color: var(--green-700); }

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(10, 113, 128, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(239,246,244,.72));
  box-shadow: 0 8px 22px -14px rgba(6, 40, 50, .4), inset 0 1px 0 rgba(255,255,255,.9);
  font-family: var(--mono); font-size: .72rem;
  color: var(--ink-4);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.lang-switch::before {
  content: '';
  position: absolute;
  left: .65rem;
  width: .9rem;
  height: .9rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(6, 40, 50, .12);
  border-radius: 50%;
  background: url("flags/ca.svg") center / cover no-repeat;
  pointer-events: none;
}
.lang-switch[data-active-lang="es"]::before { background-image: url("flags/es.svg"); }
.lang-switch[data-active-lang="en"]::before { background-image: url("flags/gb.svg"); }
.lang-switch[data-active-lang="de"]::before { background-image: url("flags/de.svg"); }
.lang-switch::after {
  content: '';
  position: absolute;
  right: .7rem;
  width: .35rem;
  height: .35rem;
  border-right: 1.5px solid var(--green-700);
  border-bottom: 1.5px solid var(--green-700);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.lang-switch select {
  min-width: 5.25rem;
  padding: .5rem 1.65rem .5rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: .08em;
  outline: none;
}
.lang-switch:hover,
.lang-switch:focus-within {
  border-color: rgba(10, 113, 128, .5);
  box-shadow: 0 12px 28px -16px rgba(6, 40, 50, .55), 0 0 0 3px rgba(10, 113, 128, .07);
  transform: translateY(-1px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .82rem !important;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink); transition: all .3s;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }
.nav-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--bg); backdrop-filter: blur(20px);
  display: none; flex-direction: column;
  padding: 3rem var(--pad); opacity: 0; transition: opacity .3s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu-inner { max-width: 600px; width: 100%; margin: 0 auto; }
.mobile-menu ul { list-style: none; margin-bottom: 2rem; }
.mobile-menu li a {
  display: block; padding: 1rem 0;
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-menu li a:hover { color: var(--green-700); }
.mobile-lang {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}
.mobile-lang::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  bottom: 1.15rem;
  width: .42rem;
  height: .42rem;
  border-right: 1.5px solid var(--green-700);
  border-bottom: 1.5px solid var(--green-700);
  transform: rotate(45deg);
  pointer-events: none;
}
.mobile-lang > span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-lang select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(10, 113, 128, .2);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,244,.8));
  box-shadow: 0 12px 30px -22px rgba(6, 40, 50, .65), inset 0 1px 0 #fff;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  font: 500 .9rem/1 var(--sans);
  cursor: pointer;
  outline: none;
}
.mobile-lang select:focus-visible {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(10, 113, 128, .12);
}
.mobile-cta {
  display: block; text-align: center;
  background: var(--green-700); color: var(--cream);
  padding: 14px 24px; border-radius: 100px;
  text-decoration: none; font-weight: 500; font-size: .92rem;
  margin-bottom: 2rem;
}
.mobile-foot {
  display: flex; flex-direction: column; gap: .25rem;
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-4); text-align: center;
}
.mobile-foot a { color: var(--green-700); text-decoration: none; }

/* ================== HERO (premium · centered · dark) ================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    /* fade the bottom into the next section for a seamless transition */
    linear-gradient(to bottom, transparent 72%, var(--bg-soft) 100%),
    /* soft scrim to keep dark text crisp over the lighter zones */
    radial-gradient(78% 70% at 50% 48%, rgba(251,247,238,.55) 0%, rgba(251,247,238,.18) 52%, rgba(251,247,238,.02) 78%),
    url("bgh.webp") center / cover no-repeat;
}
/* static brand-green plus, top-right */
.hero-cross-static {
  position: absolute;
  top: clamp(5.5rem, 12vh, 8rem);
  right: clamp(1.5rem, 7vw, 7rem);
  width: clamp(88px, 11vw, 160px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-24rem);
  animation: crossDrop 1.3s cubic-bezier(.16, 1, .3, 1) .86s both;
}
.hero-cross-static svg {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 12px 26px rgba(10, 113, 128, .22));
}
/* drops in from the top of the screen, in time with the sub-heading */
@keyframes crossDrop {
  to { opacity: 1; transform: translateY(0); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; pointer-events: none; mix-blend-mode: overlay;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 62rem; width: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}

/* overline label */
.hero-label {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1.85rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-700);
}
.hero-label .status-dot { background: var(--accent); }
.hero-label .status-dot::after { background: var(--accent); }
.hero-label.is-closed { color: #9d4938; }
.hero-label.is-closed .status-dot,
.hero-label.is-closed .status-dot::after { background: #b95642; }
.hero-label.is-closed .status-dot::after { animation: none; opacity: .22; }

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.9rem, 8.2vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--ink);
  max-width: 16ch;
}
.hero-title .line { display: block; }
.hero-title .ital {
  font-style: italic;
  font-weight: 500;
  color: var(--green-700);
}

.hero-sub {
  margin: 1.85rem auto 0;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 2.5rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-size: .9rem; font-weight: 600;
  transition: all .25s;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10, 113, 128,.22); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: all .25s;
}
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); }

/* trust stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem 0;
  width: 100%; max-width: 68rem;
  margin-top: clamp(2.75rem, 6vh, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.hero-stat {
  text-align: center;
  padding: 0 clamp(1rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-stat + .hero-stat { border-left: 1px solid var(--rule); }
.hero-stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-stat-value em { font-style: italic; font-weight: 400; color: var(--green-700); }
/* featured stat — 365 leads, kept dead-centre on the page */
.hero-stat--lead {
  min-width: 0;
}
.hero-stat:not(.hero-stat--lead) {
  min-width: 0;
}
.hero-stat--lead .hero-stat-value {
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  color: var(--green-700);
}
.hero-stat--lead .hero-stat-label {
  color: var(--green-700);
  font-weight: 500;
}
.hero-stat-label {
  display: block;
  margin-top: .55rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-stat--hours .hero-stat-value {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  white-space: nowrap;
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroScrollIn .9s ease 1.8s forwards;
}
.hero-scroll-track {
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(26, 23, 20, .16);
  position: relative;
  overflow: hidden;
}
.hero-scroll-dot {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 11px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--green-700);
  animation: heroScrollDot 2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes heroScrollIn { to { opacity: 1; } }
@keyframes heroScrollDot {
  0%   { transform: translateY(-12px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}

/* shared: status dot (pulse) */
.status-dot {
  width: 7px; height: 7px;
  background: var(--green-600);
  border-radius: 50%;
  position: relative;
}
.status-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--green-600);
  opacity: .25;
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .35; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { opacity: 0; }
}
.status-sep { width: 1px; height: 12px; background: var(--rule); }

/* ---- shared label/value pairs (used on inner-page heroes) ---- */
.hs-k {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .45rem;
}
.hs-v {
  display: block;
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: -.01em;
}
a.hs-v { transition: color .25s ease; }
a.hs-v:hover { color: var(--green-700); }

/* ---- hero entrance — graceful staggered rise (premium easing) ---- */
.hero-rise {
  opacity: 0;
  transform: translateY(34px);
  animation: heroRise 1.1s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero-rise[data-delay="1"] { animation-delay: .12s; }
.hero-rise[data-delay="2"] { animation-delay: .24s; }
.hero-rise[data-delay="3"] { animation-delay: .36s; }
.hero-rise[data-delay="4"] { animation-delay: .48s; }
.hero-rise[data-delay="5"] { animation-delay: .6s; }
.hero-rise[data-delay="6"] { animation-delay: .72s; }
@keyframes heroRise {
  to { opacity: 1; transform: none; }
}

/* home hero: title leads, then the rest cascades in just after */
.hero .hero-rise                  { animation-duration: 1.1s; }
.hero .hero-rise[data-delay="1"]  { animation-delay: .1s; }
.hero .hero-rise[data-delay="2"]  { animation-delay: .3s; }
.hero .hero-rise[data-delay="3"]  { animation-delay: .62s; }
.hero .hero-rise[data-delay="4"]  { animation-delay: .86s; }
.hero .hero-rise[data-delay="5"]  { animation-delay: 1.1s; }
.hero .hero-rise[data-delay="6"]  { animation-delay: 1.34s; }

@media (prefers-reduced-motion: reduce) {
  .hero-rise { animation: none; opacity: 1; transform: none; }
  .hero-cross-static { animation: none; opacity: 1; transform: none; }
  .hero-scroll { animation: none; opacity: 1; }
  .hero-scroll-dot { animation: none; opacity: .6; }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 2.25rem;
    padding-top: 1.6rem;
  }
  .hero-stat { padding: 0 .45rem; }
  .hero-stat + .hero-stat { border-left: 1px solid var(--rule); }
  .hero-stat-value { font-size: clamp(1.35rem, 6vw, 1.85rem); }
  .hero-stat--lead .hero-stat-value { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .hero-stat--hours .hero-stat-value { font-size: clamp(.9rem, 3.8vw, 1.25rem); }
  .hero-scroll { display: none; }
  .hero-cross-static,
  body .np-hero-cross { display: none; }
}

/* ================== PHARMACY CARD SIGNUP ================== */
.card-signup {
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
  background:
    radial-gradient(60% 60% at 82% 8%, rgba(78, 207, 222,.14), transparent 60%),
    radial-gradient(50% 50% at 6% 96%, rgba(10, 113, 128,.1), transparent 60%),
    var(--bg);
}
.card-signup-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

/* ---- the card ---- */
.card-stage {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.pharma-card {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1.586;
  border-radius: 22px;
  overflow: hidden;
  color: var(--cream);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  transform-style: preserve-3d;
  background: #41a9a7 url("card2.webp") center / cover no-repeat;
  box-shadow:
    0 30px 60px -26px rgba(6, 40, 50, .65),
    0 10px 24px -12px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  will-change: transform;
}
/* subtle texture + edge sheen */
.pharma-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(0,0,0,.08), transparent 55%);
  pointer-events: none;
}
/* auto-sweeping holographic light band */
.pharma-card-shine {
  position: absolute; inset: -40% -10%;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255,255,255,.18) 46%,
    rgba(180,255,240,.4) 50%,
    rgba(255,255,255,.18) 54%,
    transparent 62%);
  mix-blend-mode: screen;
  transform: translateX(-120%) rotate(2deg);
  animation: cardSheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cardSheen {
  0%, 18% { transform: translateX(-130%) rotate(2deg); }
  55%, 100% { transform: translateX(130%) rotate(2deg); }
}
/* cursor-tracking glare */
.pharma-card-glare {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
    rgba(255,255,255,.45), rgba(255,255,255,0) 42%);
  mix-blend-mode: soft-light;
  opacity: var(--glare, 0);
  transition: opacity .3s ease;
  pointer-events: none;
}
.pharma-card-face {
  position: absolute; inset: 0;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 1.7rem) clamp(1.4rem, 4.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pc-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.pc-brand em { font-style: italic; font-weight: 400; color: var(--green-500); }
.pc-cross { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 8px rgba(78, 207, 222,.5)); }
.pc-cross svg { width: 100%; height: 100%; }
.pc-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pc-points-wrap { text-align: right; flex: none; }
.pc-points {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--green-500);
}
.pc-label {
  display: block;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, .55);
  margin-bottom: .3rem;
}
.pc-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(.95rem, 2.5vw, 1.12rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
}
/* card foot — member number + holographic foil patch */
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pc-number {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, .72);
}
.pc-holo {
  position: relative;
  flex: none;
  width: 54px; height: 38px;
  border-radius: 9px;
  overflow: hidden;
  background: conic-gradient(from 210deg,
    #8ec5fc, #e0c3fc, #fbc2eb, #a6c1ee, #84fab0, #8fd3f4, #8ec5fc);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 2px 7px rgba(0,0,0,.28);
  opacity: .92;
}
.pc-holo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: holoShine 4.5s ease-in-out infinite;
}
@keyframes holoShine {
  0%, 22%  { transform: translateX(-130%); }
  60%, 100% { transform: translateX(130%); }
}

/* modal preview card — just brand + plus, centred */
.pharma-card-face--brand {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .9rem;
}
.pharma-card-face--brand .pc-cross { width: 52px; height: 52px; }
.pharma-card-face--brand .pc-brand {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.18;
  white-space: nowrap;
}
/* a touch taller so the brand never crops */
.card-modal-aside .pharma-card { aspect-ratio: 1.5; }
.card-note {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.card-store-cta {
  display: inline-flex;
  width: fit-content;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---- copy + form ---- */
.card-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
}
.card-title em { display: block; font-style: italic; font-weight: 600; color: var(--green-700); }
.card-lead {
  margin: 1.25rem 0 2rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.6;
}
.card-form .field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.card-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-form label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card-form input[type="text"],
.card-form input[type="email"],
.card-form input[type="tel"],
.card-form input[type="date"] {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card-form input::placeholder { color: var(--ink-4); }
.card-form input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(20, 174, 196, .14);
}
.card-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .35rem 0 1.5rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.card-check input { margin-top: .15rem; accent-color: var(--green-700); }
.card-form .btn-primary { width: 100%; justify-content: center; padding: 15px 26px; }
.card-form-success[hidden] { display: none; }
.card-form-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(10, 113, 128, .3);
  border-radius: 16px;
  background: rgba(20, 174, 196, .08);
}
.card-success-icon {
  flex: none;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--cream);
}
.card-form-success strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: .15rem;
}
.card-form-success p { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }

@media (max-width: 860px) {
  .card-signup-inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .card-stage { order: -1; }
}
@media (max-width: 460px) {
  .card-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- merged card section (card + dropdown form, on the dark stats bg) ---- */
.card-merge .home-stats-inner { align-items: start; }
.home-stats-left { display: flex; flex-direction: column; align-items: flex-start; }
.merge-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--cream);
  margin: .85rem 0 0;
}
.merge-title em { display: block; font-style: italic; font-weight: 600; color: var(--green-500); }
.merge-lead {
  margin: 1.1rem 0 1.9rem;
  max-width: 46ch;
  color: rgba(245, 239, 227, .72);
  font-size: 1rem;
  line-height: 1.6;
}
.home-stats-left .card-stage { align-items: flex-start; width: 100%; }
.home-stats-left .pharma-card { width: min(100%, 400px); }

.card-cta {
  margin-top: 1.9rem;
  cursor: pointer;
  border: none;
}
.home-stats .card-note { color: rgba(245, 239, 227, .5); margin-top: .85rem; }

/* ---- membership modal (overlay) ---- */
.card-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.card-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 26, 34, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}
.card-modal.is-open .card-modal-overlay { opacity: 1; }
.card-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: 0 50px 110px -30px rgba(3, 26, 34, .65);
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.card-modal.is-open .card-modal-dialog { transform: none; opacity: 1; }
.card-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(251, 247, 238, .75);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.card-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.card-modal-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
}
.card-modal-aside {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(80% 70% at 30% 18%, rgba(78, 207, 222,.18), transparent 60%),
    var(--bg-soft);
  border-right: 1px solid var(--rule);
}
.card-modal-aside .card-stage { width: 100%; max-width: 340px; }
.card-modal-aside .pharma-card { width: 100%; }
.card-modal-main { padding: clamp(2rem, 4vw, 3rem); }
.card-modal-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: .5rem 0 1.5rem;
}
.card-modal-title em { font-style: italic; font-weight: 600; color: var(--green-700); }

@media (max-width: 760px) {
  .card-modal-grid { grid-template-columns: 1fr; }
  .card-modal-aside {
    padding: 2.25rem 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .card-modal-aside .pharma-card { width: min(100%, 320px); }
  .card-modal-dialog { border-radius: 20px; }
}
@media (max-width: 900px) {
  .home-stats-left .pharma-card { width: min(100%, 430px); }
}

/* ================== HOME STATS (365 dies · 9-22h) ================== */
.home-stats {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  background:
    linear-gradient(180deg, rgba(8, 54, 61, .28), rgba(8, 54, 61, .48)),
    url("bg.webp") center / cover no-repeat;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.home-stats-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.home-stats-headline { max-width: 100%; }
.home-stats-eyebrow {
  display: inline-flex;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-500);
}
.home-stats-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5.5rem, 14vw, 12rem);
  line-height: .74;
  letter-spacing: -.08em;
  color: var(--cream);
  margin: 0;
  display: grid;
  gap: .1rem;
}
.home-stats-display > span:first-child {
  font-weight: 500;
}
.home-stats-display > span:last-child {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--green-500);
  margin-top: .15rem;
}
.home-stats-sub {
  max-width: 42ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(245, 239, 227, .72);
}
.home-stats-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.home-stats .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.home-stats .btn-ghost {
  color: var(--cream);
  border-color: rgba(245, 239, 227, .3);
}

/* right column */
.home-stats-right {
  display: grid;
  gap: 1.25rem;
}
/* services slider (replaces the old hours card) */
.services-slider {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(245, 239, 227, .16);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(245, 239, 227, .1), rgba(245, 239, 227, .03) 55%),
    rgba(8, 38, 48, .28);
  box-shadow:
    inset 0 1px 0 rgba(245, 239, 227, .12),
    0 24px 60px -32px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
/* soft top accent line */
.services-slider::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(78, 207, 222, .7), transparent);
  opacity: .8;
}
.ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.ss-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .85rem .42rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 207, 222, .22);
  background: rgba(78, 207, 222, .1);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
}
.ss-eyebrow .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 8px rgba(78, 207, 222, .6);
  animation: statusPulse 2s ease-in-out infinite;
}
.ss-arrows {
  display: flex;
  gap: .5rem;
}
.ss-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 227, .18);
  background: rgba(245, 239, 227, .05);
  color: var(--cream);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.ss-arrow:hover {
  background: rgba(78, 207, 222, .16);
  border-color: rgba(78, 207, 222, .45);
}
.ss-arrow:active { transform: scale(.9); }

.ss-viewport {
  overflow: hidden;
  border-radius: 6px;
}
.ss-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.ss-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ss-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.ss-slide.is-active .ss-img { transform: scale(1.05); }
.ss-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: linear-gradient(180deg,
    rgba(3, 26, 34, 0) 30%,
    rgba(3, 24, 32, .55) 62%,
    rgba(2, 20, 28, .9) 100%);
}
.ss-num {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--green-500);
  margin-bottom: .6rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(3, 24, 32, .4);
  backdrop-filter: blur(4px);
}
.ss-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--cream);
  margin: 0 0 .5rem;
  text-shadow: 0 2px 16px rgba(0, 18, 15, .5);
}
.ss-body {
  margin: 0;
  color: rgba(245, 239, 227, .82);
  font-size: .88rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 18, 15, .5);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* content fades up as each slide becomes active */
.ss-slide .ss-num,
.ss-slide .ss-title,
.ss-slide .ss-body {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}
.ss-slide.is-active .ss-num    { opacity: 1; transform: none; transition-delay: .1s; }
.ss-slide.is-active .ss-title  { opacity: 1; transform: none; transition-delay: .18s; }
.ss-slide.is-active .ss-body   { opacity: 1; transform: none; transition-delay: .26s; }
.ss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 227, .12);
}
.ss-dots {
  display: flex;
  gap: .5rem;
}
.ss-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(245, 239, 227, .22);
  cursor: pointer;
  transition: width .4s cubic-bezier(.22, 1, .36, 1), background .35s ease;
}
.ss-dot:hover { background: rgba(245, 239, 227, .4); }
.ss-dot.is-active {
  width: 24px;
  background: var(--green-500);
}
.ss-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, .72);
  text-decoration: none;
  transition: color .25s ease, gap .25s ease;
}
.ss-link::after {
  content: '→';
  font-size: .85em;
  transition: transform .25s ease;
}
.ss-link:hover { color: var(--cream); }
.ss-link:hover::after { transform: translateX(3px); }

/* customer badge */
.home-stats-badge {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 239, 227, .1);
  background: rgba(245, 239, 227, .04);
}
.home-stats-badge strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
}
.home-stats-badge span {
  color: rgba(245, 239, 227, .6);
  font-size: .85rem;
  line-height: 1.35;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* stats section — staggered reveals */
.stats-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}
.stats-reveal[data-delay="1"] { transition-delay: .18s; }
.stats-reveal[data-delay="2"] { transition-delay: .36s; }
.stats-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* day badges — stagger in */
.hours-card-days span {
  opacity: 0;
  transform: translateY(8px) scale(.88);
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
}
.stats-reveal.is-visible .hours-card-days span {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stats-reveal.is-visible .hours-card-days span:nth-child(1) { transition-delay: .4s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(2) { transition-delay: .46s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(3) { transition-delay: .52s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(4) { transition-delay: .58s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(5) { transition-delay: .64s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(6) { transition-delay: .7s; }
.stats-reveal.is-visible .hours-card-days span:nth-child(7) { transition-delay: .76s; }

/* ticker — odometer digit roll */
.ticker {
  display: inline-flex;
  letter-spacing: -.04em;
  line-height: 1;
  overflow: hidden;
  padding-bottom: .08em;
}
.ticker-digit {
  display: inline-block;
  overflow: hidden;
  height: 1em;
}
.ticker-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s cubic-bezier(.25, 1, .5, 1);
  will-change: transform;
}
.ticker-strip span {
  display: block;
  height: 1em;
  line-height: 1;
}

@media (max-width: 900px) {
  .home-stats-inner {
    grid-template-columns: 1fr;
  }
  .home-stats-display {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }
  .home-stats-right {
    max-width: 480px;
  }
}
@media (max-width: 480px) {
  .home-stats {
    padding: 3.5rem 1.25rem;
  }
  .home-stats-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-stats-actions a {
    justify-content: center;
  }
  .hours-card-days span {
    padding: .45rem 0;
    font-size: .6rem;
  }
}

/* ================== MARQUEE (logos clickables) ================== */
.marquee-wrap {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.marquee {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }   /* pausa al pasar el ratón sobre cualquier logo */

.marquee-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.marquee-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: .55;
  filter: grayscale(.5);
  transition: opacity .45s cubic-bezier(.22,1,.36,1),
              filter .45s cubic-bezier(.22,1,.36,1);
}
.marquee-logo:hover {
  transform: translateY(-3px);
}
.marquee-logo:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.marquee-logo:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 4px;
  border-radius: 3px;
}
.marquee-logo:focus-visible img {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee { padding: 1.25rem 0; }
  .marquee-track {
    gap: 2.5rem;
    animation-duration: 38s;
  }
  .marquee-logo img { height: 30px; opacity: .7; }
}

/* ================== HOME FEATURE (editorial split) ================== */
.home-feature {
  padding: 8rem var(--pad);
  background: var(--bg);
}
.home-feature-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  grid-template-areas:
    "image text"
    "image featured"
    "image cards";
  gap: 2rem 2.5rem;
  align-items: start;
}
.home-feature-image {
  grid-area: image;
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(10, 113, 128,.25);
}
.home-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.95);
  min-height: 600px;
  transform: scale(1.09);
  will-change: transform;
  object-position: center 42%;
}
.home-feature-tag {
  position: absolute;
  top: 18px; left: -16px;
  background: var(--green-700);
  color: var(--cream);
  padding: 8px 22px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  transform: rotate(-2deg);
  box-shadow: 0 6px 20px rgba(10, 113, 128,.3);
}
.home-feature-text {
  grid-area: text;
  max-width: 100%;
}
.home-feature-text .display-h span,
.home-feature-text .display-h em {
  display: inline;
}
.home-feature-text .display-h span::after {
  content: ' ';
}
.home-feature-lead {
  margin: 1.5rem 0 2.5rem;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 1.05rem;
}
.home-feature-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Featured review (col der, row 2) ===== */
.home-feature-featured {
  grid-area: featured;
  color: var(--cream);
  padding: 2rem 2.25rem 1.75rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(8, 54, 61, .28), rgba(8, 54, 61, .48)),
    url("bg.webp") center / cover no-repeat;
  isolation: isolate;
}
.home-feature-featured::before {
  display: none;
}
.home-feature-featured > * { position: relative; z-index: 1; }

.review-stars {
  display: flex;
  gap: 2px;
  color: #FFA000;
}
.review-stars svg { width: 14px; height: 14px; }

.hf-rating-line {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
}
.hf-rating-line .review-stars { color: #FFC940; gap: 2px; }
.hf-rating-line .review-stars svg { width: 13px; height: 13px; }

.hf-feat-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--cream);
  letter-spacing: -.005em;
  margin: 0;
}
.hf-feat-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: .25rem;
}
.hf-feat-author .review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: .92rem;
  flex-shrink: 0;
}
.hf-feat-author .review-name {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}
.hf-feat-author .review-source {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}

/* ===== 2 mini cards (col der, row 3) ===== */
.home-feature-cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hf-mini-card {
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hf-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(10, 113, 128,.15);
}
.hf-mini-card .review-stars { color: #FFA000; gap: 1.5px; }
.hf-mini-card .review-stars svg { width: 11px; height: 11px; }
.hf-mini-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.hf-mini-author {
  display: flex; flex-direction: column; gap: 1px;
}
.hf-mini-name {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink);
}
.hf-mini-source {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================== ABOUT ================== */
.about {
  padding: 8rem var(--pad);
  background: var(--bg);
}
.about-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 5rem;
  align-items: center;
}
.about-text { max-width: 540px; }
.about-text > p {
  margin-top: 1.5rem;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.02rem;
}

.about-stats {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green-700);
  display: flex; align-items: baseline;
}
.stat-plus {
  font-size: 1.4rem; color: var(--ink-4); margin-right: 2px;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .5rem;
}

.about-img-block { position: relative; }
.about-img-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10, 113, 128,.25);
}
.about-img-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transition: transform .8s ease;
}
.about-img-frame:hover img { transform: scale(1.03); }

.img-caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(251,247,238,.92);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--ink-2);
  border-radius: 2px;
}
.caption-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--green-700);
}

.about-tape {
  position: absolute;
  top: -12px; right: -20px;
  background: var(--green-700);
  color: var(--cream);
  padding: 8px 22px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  transform: rotate(2deg);
  box-shadow: 0 4px 14px rgba(10, 113, 128,.25);
}

/* ================== CARD-MERGE: light theme (contrast vs dark card) ================== */
.card-merge {
  background:
    radial-gradient(60% 52% at 88% 12%, rgba(78, 207, 222,.16), transparent 55%),
    radial-gradient(52% 46% at 2% 58%, rgba(10, 113, 128,.1), transparent 62%),
    var(--bg);
  color: var(--ink);
}
.card-merge .home-stats-eyebrow { color: var(--green-700); }
.card-merge .merge-title { color: var(--ink); }
.card-merge .merge-title em { color: var(--green-700); }
.card-merge .merge-lead { color: var(--ink-2); }
.card-merge .card-note { color: var(--ink-4); }
.card-merge .card-cta { white-space: nowrap; }
.card-merge .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.card-merge .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* services slider → open section feel, not a boxed card */
.card-merge .services-slider {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: visible;
}
.card-merge .services-slider::before { display: none; }
.card-merge .ss-head { margin-bottom: 1.4rem; }
/* clean text label, no pill */
.card-merge .ss-eyebrow {
  padding: 0;
  border: none;
  background: none;
  color: var(--green-700);
  font-size: .72rem;
  letter-spacing: .18em;
}
/* bigger image + copy */
.card-merge .ss-slide { aspect-ratio: 5 / 4; }
.card-merge .ss-title { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.card-merge .ss-body { font-size: .95rem; -webkit-line-clamp: 3; line-clamp: 3; }
.card-merge .ss-arrow {
  border-color: var(--rule);
  background: var(--bg);
  color: var(--ink-2);
}
.card-merge .ss-arrow:hover {
  background: var(--bg-soft);
  border-color: var(--green-600);
  color: var(--green-700);
}
.card-merge .ss-footer { border-top-color: var(--rule); }
.card-merge .ss-dot { background: rgba(26, 23, 20, .2); }
.card-merge .ss-dot:hover { background: rgba(26, 23, 20, .4); }
.card-merge .ss-dot.is-active { background: var(--green-700); }
.card-merge .ss-link { color: var(--ink-3); }
.card-merge .ss-link:hover { color: var(--ink); }
/* give the slider more room and balance it against the card */
@media (min-width: 901px) {
  .card-merge .home-stats-inner {
    grid-template-columns: 1fr 1.12fr;
    align-items: center;
  }
}

/* ================== SERVICES ================== */
.services {
  background: var(--green-900);
  color: var(--cream);
  padding: 8rem var(--pad);
  position: relative;
}
.services::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}
.services-head {
  max-width: var(--max); margin: 0 auto 4rem;
  display: grid; grid-template-columns: 1fr .8fr;
  gap: 3rem; align-items: end;
  position: relative; z-index: 1;
}
.services-lead {
  color: var(--stone);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 36ch;
}
.accordion {
  max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 1;
}
.acc-item {
  border-top: 1px solid rgba(245,239,227,.18);
}
.acc-item:last-child { border-bottom: 1px solid rgba(245,239,227,.18); }
.acc-item summary {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  transition: padding .3s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover .acc-title { color: var(--stone); }
.acc-item[open] summary { padding-bottom: 1rem; }
.acc-num {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--green-500);
  letter-spacing: .1em;
}
.acc-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--cream);
  transition: color .25s;
}
.acc-toggle {
  width: 28px; height: 28px;
  position: relative;
  border: 1px solid rgba(245,239,227,.3);
  border-radius: 50%;
  transition: all .25s;
}
.acc-toggle::before, .acc-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--cream);
  transition: transform .25s;
}
.acc-toggle::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.acc-toggle::after  { width: 1px; height: 10px; transform: translate(-50%, -50%); }
.acc-item[open] .acc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-item[open] .acc-toggle { background: var(--green-700); border-color: var(--green-700); }

.acc-body {
  padding: 0 0 2rem calc(80px + 1.5rem);
  max-width: 60ch;
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.7;
  animation: fadeIn .4s ease;
}
.acc-body ul {
  margin-top: 1rem;
  list-style: none;
  display: flex; flex-direction: column; gap: .5rem;
}
.acc-body li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .94rem;
  color: var(--cream);
}
.acc-body li::before {
  content: '+';
  position: absolute; left: 0; top: 0;
  color: var(--green-500);
  font-family: var(--mono);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================== PRODUCTS ================== */
.products {
  padding: 8rem var(--pad);
  background: var(--bg);
}
.products-head {
  max-width: var(--max); margin: 0 auto 4rem;
}
.products-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 1.5rem;
}
.prod {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.prod:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -16px rgba(10, 113, 128,.18);
}
.prod-hero {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--green-900);
  color: var(--cream);
}
.prod-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.prod-wide .prod-media { aspect-ratio: auto; height: 100%; }
.prod-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.prod-media img, .prod-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.prod:hover .prod-media img { transform: scale(1.05); }
.prod-hero .prod-media { aspect-ratio: 4/3; }

.prod-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
}
.tag-light { background: var(--cream); color: var(--ink); }

.prod-info {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex; flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.prod-hero .prod-info { padding: 2rem 2rem 2.25rem; gap: .75rem; }
.prod-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: .25rem;
}
.prod-hero .prod-meta { color: var(--stone); }
.prod-num { color: var(--ink-4); }
.prod-hero .prod-num { color: var(--green-500); }

.prod-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -.018em;
  color: var(--ink);
}
.prod-hero .prod-info h3 {
  color: var(--cream);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
}
.prod-info p {
  color: var(--ink-3);
  font-size: .92rem;
  line-height: 1.55;
  margin-top: .25rem;
}
.prod-hero .prod-info p { color: var(--stone); font-size: 1rem; }

.prod-link {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--green-500);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.prod-link:hover { color: var(--cream); transform: translateX(4px); }

/* ================== FIND / MAP ================== */
.find {
  padding: 8rem var(--pad);
  background: var(--bg-soft);
  position: relative;
}
.find-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.find-info { max-width: 480px; }
.find-lead {
  margin-top: 1.25rem;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.02rem;
}
.find-rows {
  margin-top: 2.5rem;
  display: flex; flex-direction: column;
}
.find-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.find-row:last-child { border-bottom: 1px solid var(--rule); }
.find-row-lbl {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--ink-3);
  padding-top: 4px;
}
.find-row-val {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.45;
}
.find-row-val a { color: var(--green-700); text-decoration: none; }
.find-row-val a:hover { text-decoration: underline; text-underline-offset: 3px; }

.find-actions {
  margin-top: 2rem;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.find-map-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 64px -20px rgba(10, 113, 128,.2);
}
.find-map {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--stone);
  display: block;
  border: 0;
}

/* ================== HOME SOCIAL (Xarxes socials placeholder) ================== */
.home-social {
  padding: 7rem var(--pad);
  background: var(--bg);
}
.home-social-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.home-social-head .display-h {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}
.home-social-head .display-h em {
  display: block;
  font-style: italic;
  color: var(--green-700);
}
.home-social-lead {
  margin: 1.25rem auto 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}
.home-social-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.social-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s cubic-bezier(.22,1,.36,1),
              border-color .35s ease;
}
.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green-700);
  box-shadow: 0 18px 40px -20px rgba(10, 113, 128,.25);
  outline: none;
}
.social-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.home-social-grid[hidden] { display: none; }
.ss-img--dermo { object-position: center center; }
.ss-img--vet { object-position: 68% center; }
.ss-img--lobe { object-position: 68% center; }
.social-card:hover .social-card-img,
.social-card:focus-visible .social-card-img {
  transform: scale(1.06);
}
.social-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(8, 54, 61,0) 40%, rgba(6, 40, 50,.55) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.social-card:hover .social-card-overlay,
.social-card:focus-visible .social-card-overlay {
  opacity: 1;
}
.social-card-overlay svg {
  width: 28px; height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transform: translateY(6px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.social-card:hover .social-card-overlay svg,
.social-card:focus-visible .social-card-overlay svg {
  transform: translateY(0);
}
/* wrapper for an embedded Instagram widget (Behold / SnapWidget / etc.) */
.home-social-embed {
  max-width: var(--max);
  margin: 0 auto;
}
.home-social-embed behold-widget {
  display: block;
  width: 100%;
}
.home-social-embed iframe {
  width: 100%;
  border: 0;
  display: block;
}
.home-social-actions {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-cta-ig,
.social-cta-tt {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

/* tablet landscape */
@media (max-width: 1100px) and (min-width: 769px) {
  .home-social { padding: 5.5rem 2rem; }
  .home-social-grid { gap: 1rem; }
}
/* tablet portrait — 2×3 */
@media (min-width: 600px) and (max-width: 768px) {
  .home-social { padding: 4.5rem var(--pad); }
  .home-social-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
}
/* mobile — 2×3 más compacto, CTAs full-width apilados */
@media (max-width: 599px) {
  .home-social { padding: 4rem 1.25rem; }
  .home-social-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .social-card { padding: 1rem; gap: .65rem; }
  .social-card-icon { width: 36px; height: 36px; }
  .social-card-num { top: 10px; left: 10px; font-size: .58rem; }
  .home-social-actions { gap: .65rem; margin-top: 2rem; flex-direction: column; }
  .home-social-actions a { width: 100%; justify-content: center; }
}

/* ================== WHATSAPP BAND (full-width antes del footer) ================== */
.wa-band {
  background: var(--green-700);
  position: relative;
  overflow: hidden;
}
.wa-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .45;
  pointer-events: none;
}
.wa-band-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad);
  text-decoration: none;
  color: var(--cream);
  transition: background .25s ease;
}
.wa-band-link:hover { background: rgba(0, 0, 0, .08); }
.wa-band-eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(245, 239, 227, .7);
  text-transform: uppercase;
  white-space: nowrap;
}
.wa-band-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--cream);
}
.wa-band-cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.4rem;
  background: var(--cream);
  color: var(--green-900);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.wa-band-cta svg { color: #25D366; }
@media (max-width: 768px) {
  .wa-band-link {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: .85rem;
    padding: 1.75rem var(--pad);
  }
  .wa-band-eyebrow { order: 1; }
  .wa-band-title { order: 2; }
  .wa-band-cta { order: 3; }
}

/* ================== WHATSAPP FAB (mobile-only floating) ================== */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .4), 0 0 0 1px rgba(0,0,0,.04);
  z-index: 60;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.wa-fab:hover,
.wa-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .5);
  outline: none;
}
@media (max-width: 768px) {
  .wa-fab { display: inline-flex; }
}

/* ================== FOOTER ================== */
.footer {
  background: var(--green-900);
  color: var(--cream);
  padding: 5rem var(--pad) 2rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,239,227,.15);
}
.footer-logo {
  height: 56px; width: auto;
  filter: brightness(0) invert(1) opacity(.85);
  margin-bottom: 1.25rem;
}
.footer-mark p {
  color: var(--stone);
  font-size: .92rem;
  line-height: 1.6;
  font-family: var(--serif); font-style: italic;
}
.footer-collab {
  margin-top: .85rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono) !important;
  font-style: normal !important;
  font-size: .68rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent) !important;
}
.footer-collab::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: .25rem;
}
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.footer-col a:hover { border-bottom-color: var(--green-500); }

.footer-bar {
  max-width: var(--max); margin: 2rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--stone-d);
}
.footer-bar > span:nth-child(2) { text-align: center; }
.footer-bar > span:last-child { text-align: right; font-style: italic; }
.footer-legal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-legal a:hover { color: var(--cream); border-bottom-color: var(--green-500); }

/* ================== RESPONSIVE ================== */

/* ---- TABLET (769–1100) ---- keep 2-col layouts where it makes sense, tighten scale */
@media (max-width: 1100px) and (min-width: 769px) {
  :root { --pad: 2rem; }

  /* nav */
  .nav-links { gap: 1.5rem; }
  .nav-links > a:not(.nav-cta) { font-size: .82rem; }
  .nav-cta { padding: 9px 16px; font-size: .78rem; }

  /* hero — keep desktop layout but tighter scale */
  .hero { min-height: 92vh; padding: 7rem 2rem 3.5rem; }
  .hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); }
  .hero-sub { font-size: 1rem; max-width: 36ch; }

  /* marquee */
  .marquee-track span { font-size: 1.4rem; }

  /* home-feature — mismo layout 2-col (image | stack) ajustado */
  .home-feature { padding: 6rem 2rem; }
  .home-feature-inner { grid-template-columns: 1fr 1.3fr; gap: 1.5rem 2rem; }
  .home-feature-image img { min-height: 540px; }
  .home-feature-text { max-width: 100%; }
  .home-feature-featured { padding: 1.5rem 1.75rem; }
  .hf-feat-quote { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

  /* about — keep 2 col but rebalance */
  .about-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .about-text { max-width: 100%; }
  .display-h { font-size: clamp(2rem, 5vw, 3.2rem); }
  .stat-num { font-size: 2rem; }

  /* services — keep 2-col head but tighter */
  .services-head { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .services-lead { font-size: .96rem; }
  .acc-item summary { grid-template-columns: 64px 1fr 36px; gap: 1.25rem; padding: 1.6rem 0; }
  .acc-body { padding-left: calc(64px + 1.25rem); padding-right: 0; }
  .acc-title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }

  /* products — 2-col grid, hero spans both, prod-wide stacks */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .prod-hero { grid-column: span 2; grid-row: auto; }
  .prod-hero .prod-media { aspect-ratio: 16/9; }
  .prod-wide { grid-column: span 2; grid-template-columns: 1fr 1.2fr; }
  .prod-info h3 { font-size: 1.25rem; }
  .prod-hero .prod-info h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }

  /* find — keep 2 col, balance widths */
  .find-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .find-info { max-width: 100%; }
  .find-map { aspect-ratio: 4/5; }
  .find-row { grid-template-columns: 110px 1fr; }

  /* footer — 2 col instead of 1+3 */
  .footer-inner { grid-template-columns: 1fr 1.6fr; gap: 3rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  :root { --pad: 1.25rem; }

  /* — NAV — */
  .nav-inner { height: 64px; }
  .brand-img { height: 32px; }
  .nav-links > a:not(.nav-cta), .nav-links .lang-switch, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { inset: 64px 0 0 0; padding: 2rem 1.25rem 2rem; }
  .mobile-menu li a { font-size: 1.7rem; padding: .85rem 0; }

  /* — HERO: centered full-bleed dark, scaled for mobile — */
  .hero { padding: 6rem 1.5rem 3.5rem; }
  .hero-cross-scene {
    --cross-top: 4.75rem;
    --cross-right: 1.25rem;
    --cross-size: 84px;
  }
  .hero-label { font-size: .64rem; letter-spacing: .2em; margin-bottom: 1.35rem; }
  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
    line-height: 1;
    max-width: 16ch;
  }
  .hero-sub { margin-top: 1.35rem; font-size: 1rem; max-width: 100%; }
  .hero-actions { margin-top: 2rem; gap: 10px; width: 100%; }
  .btn-primary, .btn-ghost { padding: 13px 22px; font-size: .85rem; flex: 1; justify-content: center; min-width: 0; }

  /* — MARQUEE — */
  .marquee { padding: 1.1rem 0; }
  .marquee-track { padding-left: 0; gap: 1.75rem; animation-duration: 35s; }
  .marquee-track span { font-size: 1.25rem; }
  .marquee-track em { font-size: .75rem; }

  /* — SECTIONS shared — */
  .about, .services, .products, .find { padding: 4.5rem 1.25rem; }
  .eyebrow { font-size: .68rem; margin-bottom: 1rem; }
  .display-h { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.04; }

  /* — HOME FEATURE: stack 1-col (image, text, featured, cards) — */
  .home-feature { padding: 4rem 1.25rem; }
  .home-feature-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text"
      "featured"
      "cards";
    gap: 1.5rem;
  }
  .home-feature-image img {
    aspect-ratio: 4/5;
    height: auto;
    min-height: 0;
  }
  .home-feature-tag { left: 12px; padding: 7px 18px; font-size: .65rem; }
  .home-feature-text { max-width: 100%; }
  .home-feature-lead { font-size: 1rem; margin: 1rem 0 1.75rem; }
  .home-feature-featured { padding: 1.25rem 1.25rem 1rem; }
  .hf-feat-quote { font-size: 1.05rem; }
  .home-feature-cards { grid-template-columns: 1fr; }
  .hf-mini-card { padding: 1rem 1rem .85rem; }
  .hf-mini-quote { font-size: .88rem; }

  /* — ABOUT — */
  .about-img-block { order: -1; }
  .about-img-frame img { aspect-ratio: 4/3; }
  .about-tape { right: 12px; top: -10px; padding: 6px 16px; font-size: .62rem; }
  .img-caption { padding: 8px 12px; font-size: .62rem; gap: 8px; }
  .caption-mark { font-size: .9rem; }
  .about-text > p { font-size: 1rem; margin-top: 1.25rem; }
  .about-stats {
    margin-top: 2.25rem;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .stat-num { font-size: 1.5rem; }
  .stat-plus { font-size: 1rem; }
  .stat-lbl { font-size: .58rem; margin-top: .3rem; line-height: 1.3; }

  /* — SERVICES — */
  .services-lead { font-size: .95rem; max-width: 100%; }
  .acc-num { display: inline-block; font-size: .68rem; }
  .acc-item summary {
    grid-template-columns: 36px 1fr 28px;
    gap: .75rem;
    padding: 1.4rem 0;
  }
  .acc-title { font-size: 1.15rem; line-height: 1.2; }
  .acc-toggle { width: 24px; height: 24px; }
  .acc-toggle::before { width: 9px; }
  .acc-toggle::after { height: 9px; }
  .acc-body {
    padding: 0 0 1.5rem 0;
    font-size: .94rem;
  }
  .acc-body ul { gap: .4rem; }
  .acc-body li { font-size: .88rem; }

  /* — PRODUCTS: keep hero card, then 2-col mini grid — */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .prod-hero {
    grid-column: span 2;
  }
  .prod-hero .prod-media { aspect-ratio: 4/3; }
  .prod-hero .prod-info { padding: 1.5rem 1.5rem 1.75rem; }
  .prod-hero .prod-info h3 { font-size: 1.7rem; }
  .prod-hero .prod-info p { font-size: .92rem; }
  .prod-wide {
    grid-column: span 2;
    grid-template-columns: 1fr 1.4fr;
  }
  .prod-wide .prod-media { aspect-ratio: auto; }
  .prod-info { padding: 1rem 1rem 1.25rem; gap: .35rem; }
  .prod-info h3 { font-size: 1.05rem; }
  .prod-info p { font-size: .82rem; line-height: 1.5; margin-top: .15rem; }
  .prod-meta { font-size: .6rem; margin-bottom: .15rem; }

  /* — FIND — */
  .find-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .find-info { max-width: 100%; }
  .find-lead { font-size: .98rem; }
  .find-rows { margin-top: 1.75rem; }
  .find-row {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: .85rem 0;
  }
  .find-row-lbl { font-size: .62rem; padding-top: 5px; }
  .find-row-val { font-size: .98rem; }
  .find-actions { margin-top: 1.5rem; }
  .find-map { aspect-ratio: 1/1; }
  .pin-cross { width: 30px; height: 30px; }
  .pin-cross span:nth-child(1) { left: 10px; width: 10px; height: 30px; }
  .pin-cross span:nth-child(2) { top: 10px; width: 30px; height: 10px; }

  /* — FOOTER — */
  .footer { padding: 4rem 1.25rem 1.5rem; }
  .footer-inner { gap: 2rem; padding-bottom: 2rem; }
  .footer-logo { height: 44px; margin-bottom: 1rem; }
  .footer-mark p { font-size: .9rem; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }
  .footer-col h4 { font-size: .65rem; margin-bottom: .65rem; }
  .footer-col p { font-size: .85rem; }
  .footer-bar {
    grid-template-columns: 1fr;
    gap: .35rem;
    margin-top: 1.5rem;
    text-align: center !important;
    font-size: .65rem;
  }
  .footer-bar > span { text-align: center !important; }
}

/* ---- SMALL PHONES ---- */
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; flex: none; }
  .hero-stat { padding: 0 .3rem; }
  .hero-stat-label { font-size: .54rem; letter-spacing: .07em; }
  .about-stats { grid-template-columns: 1fr; gap: 1rem; }
  .stat-num { font-size: 2.2rem; }
  .stat-lbl { font-size: .65rem; }
  .find-row { grid-template-columns: 1fr; gap: .25rem; padding: .75rem 0; }
  .find-row-lbl { padding-top: 0; }
  .find-actions { flex-direction: column; }
  .find-actions .btn-primary, .find-actions .btn-ghost { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  .pin-text { padding: 5px 10px; }
  .pin-text strong { font-size: .82rem; }
  .pin-text span { font-size: .58rem; }
}

/* ================== LEGAL PAGES ================== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem var(--pad) 5rem;
}
.legal .eyebrow { margin-bottom: 1.5rem; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -.015em;
  color: var(--green-700);
  margin: 3rem 0 .75rem;
}
.legal h3 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin: 1.75rem 0 .5rem;
}
.legal p { color: var(--ink-2); line-height: 1.75; margin-bottom: 1rem; font-size: 1rem; }
.legal ul { list-style: none; margin: .75rem 0 1.25rem; }
.legal li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.legal li::before {
  content: '+';
  position: absolute; left: 0;
  color: var(--green-600);
  font-family: var(--mono);
}
.legal a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--green-800); }
.legal-meta {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem; padding-top: 1.25rem;
  font-family: var(--mono); font-size: .72rem;
  color: var(--ink-3); letter-spacing: .04em;
}
.legal .todo {
  display: inline-block;
  background: rgba(212, 145, 0, .12);
  border: 1px dashed rgba(212, 145, 0, .55);
  color: #8a5a00;
  padding: 1px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: .02em;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--green-700); text-decoration: none;
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 3rem;
}
.legal-back:hover { color: var(--green-800); }
@media (max-width: 768px) {
  .legal { padding: 6rem 1.25rem 3rem; }
  .legal h1 { margin-bottom: 1.5rem; }
}

/* ================== ACTIVE NAV LINK (per page) ================== */
body[data-page="serveis"] .nav-links a[href="serveis.html"],
body[data-page="nosaltres"] .nav-links a[href="nosaltres.html"] {
  color: var(--green-700);
  position: relative;
}
body[data-page="serveis"] .nav-links a[href="serveis.html"]::after,
body[data-page="nosaltres"] .nav-links a[href="nosaltres.html"]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--green-700);
}
body[data-page="serveis"] .mobile-menu li a[href="serveis.html"],
body[data-page="nosaltres"] .mobile-menu li a[href="nosaltres.html"] {
  color: var(--green-700);
  font-style: italic;
}

/* ================== PAGE HERO (inner pages — centred, matches home) ================== */
.page-hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--pad) 4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 72%, var(--bg) 100%),
    radial-gradient(72% 62% at 50% 44%, rgba(251,247,238,.5) 0%, rgba(251,247,238,.14) 56%, transparent 80%),
    url("bgh.webp") center / cover no-repeat;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 62rem; width: 100%; margin: 0 auto;
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero-content { max-width: 100%; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -.045em;
  color: var(--ink);
  max-width: 15ch;
  margin: 0 auto;
}
.page-hero h1 .ital {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--green-700);
}
.page-hero h1 .line { display: block; }
.page-hero-lead {
  margin: 1.85rem auto 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  line-height: 1.65;
}
.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.6rem;
}
.page-hero-rule {
  width: 60px; height: 2px;
  background: var(--green-700);
  margin-top: 2.5rem;
}
/* green cross above the title — pops up from behind the title's top edge */
.page-hero h1 { position: relative; z-index: 1; }
.np-hero-cross {
  position: relative;
  z-index: 0;                /* sits behind the title, so it emerges from under it */
  display: block;
  width: clamp(54px, 7vw, 76px);
  margin: 0 auto .45rem;
  opacity: 0;
  transform: translateY(34px) scale(.7);
  animation: crossPop .8s cubic-bezier(.34, 1.4, .5, 1) .45s forwards;
}
.np-hero-cross svg {
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 8px 20px rgba(10, 113, 128, .25));
}
@keyframes crossPop {
  0%   { opacity: 0; transform: translateY(34px) scale(.7); }
  55%  { opacity: 1; }
  72%  { transform: translateY(-4px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .np-hero-cross { animation: none; opacity: 1; transform: none; }
}
.page-hero-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  width: 100%;
  max-width: 52rem;
  margin: clamp(2.75rem, 6vh, 4.5rem) auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.page-hero-facts > div {
  flex: 1 1 160px;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
}
.page-hero-facts > div + div { border-left: 1px solid var(--rule); }

/* ============= PAGE TOC (índice de página) ============= */
.page-toc {
  position: relative;
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}
@media (min-width: 769px) {
  .page-toc {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* ============= PROGRESS RAIL (sticky right-edge) ============= */
.progress-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.rail-line {
  position: absolute;
  top: 12px; bottom: 12px;
  left: 50%; transform: translateX(-50%);
  width: 1px;
  background: var(--rule);
  z-index: 0;
}
.rail-stop {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  text-decoration: none;
}
.rail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink-4);
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.rail-stop:hover .rail-dot {
  border-color: var(--green-700);
  transform: scale(1.15);
}
.rail-stop.active .rail-dot {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(10, 113, 128,.12);
}
.rail-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: var(--cream);
  padding: 5px 11px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.rail-label::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%; transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--ink);
}
.rail-stop:hover .rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 1023px) {
  .progress-rail { display: none; }
}
.toc-label {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--green-700);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.toc-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 0;
}
.toc-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s, transform .25s, border-color .25s;
}
.toc-list a:hover {
  color: var(--green-700);
  transform: translateX(4px);
  border-bottom-color: var(--rule);
}
.toc-num {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-4);
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .25s;
}
.toc-list a:hover .toc-num { color: var(--green-700); }
.toc-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.25;
}
/* Active state (scroll-spy) */
.toc-list a.active {
  color: var(--green-700);
  transform: translateX(4px);
}
.toc-list a.active .toc-num { color: var(--green-700); font-weight: 600; }

/* Animated indicator — bullet dot que se desliza por la izquierda */
.toc-indicator {
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 4px var(--bg);
  opacity: 0;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  pointer-events: none;
}
.toc-indicator.is-on { opacity: 1; }

/* Anclas evitan que el header fijo (76px) tape el contenido */
section[id] { scroll-margin-top: 90px; }

/* ---- responsive page-hero + toc ---- */
@media (max-width: 1100px) and (min-width: 769px) {
  .page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
}
@media (min-width: 600px) and (max-width: 768px) {
  .page-hero { min-height: 100svh; min-height: 100dvh; }
  .page-hero h1 { font-size: clamp(3rem, 8.5vw, 4.6rem); max-width: 14ch; }
  .page-hero-kicker { font-size: .68rem; }
}
@media (max-width: 599px) {
  .page-hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 8.5rem;
    padding-bottom: 5rem;
  }
  .page-hero h1 { font-size: clamp(3.2rem, 13vw, 4.4rem); }
  .page-hero-kicker { font-size: .66rem; margin-bottom: 1.25rem; }
  .page-hero-lead { font-size: 1rem; margin-top: 1.5rem; }
  .page-hero-facts {
    flex-direction: column;
    margin-top: 1.75rem;
    padding-top: 1.3rem;
    gap: 0.9rem;
  }
  .page-hero-facts > div { padding: 0; flex: none; }
  .page-hero-facts > div + div { border-left: 0; }
}

/* ================== SERVICES PAGE — INDEX SIDEBAR ================== */
.services-detail-wrap {
  background: var(--bg);
  position: relative;
}
.services-detail-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 4rem var(--pad) 6rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}
.service-index {
  position: sticky;
  top: 110px;
  display: flex; flex-direction: column; gap: .25rem;
}
.service-index .idx-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1rem;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.service-index a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  border-left: 1px solid var(--rule);
  transition: all .25s;
  position: relative;
}
.service-index a .idx-num {
  color: var(--ink-4);
  font-weight: 500;
  transition: color .25s;
}
.service-index a .idx-name {
  font-family: var(--serif);
  font-size: .92rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  text-transform: none;
}
.service-index a:hover {
  color: var(--green-700);
  border-left-color: var(--green-500);
}
.service-index a:hover .idx-num { color: var(--green-700); }
.service-index a.active {
  color: var(--green-700);
  border-left-color: var(--green-700);
  background: rgba(10, 113, 128,.04);
}
.service-index a.active .idx-num { color: var(--green-700); font-weight: 600; }

.services-list {
  display: flex; flex-direction: column;
  gap: 0;
}

/* ================== SERVICE DETAIL BLOCKS ================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 4rem 0;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.service-detail:first-child { border-top: none; padding-top: 0; }
.service-detail-head {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 1.75rem;
}
.service-num-large {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--green-700);
  letter-spacing: -.02em;
}
.service-detail-head .meta {
  display: flex; flex-direction: column; gap: .35rem;
}
.service-kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.service-title em { font-style: italic; color: var(--green-700); font-weight: 300; }

.service-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  padding-left: calc(110px + 1.5rem);
}
.service-body-text p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.service-body-text p:last-child { margin-bottom: 0; }
.service-process {
  background: rgba(10, 113, 128,.04);
  border-left: 2px solid var(--green-500);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}
.service-process h4 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 500;
  margin-bottom: 1rem;
}
.service-process ul {
  list-style: none;
  display: flex; flex-direction: column; gap: .65rem;
}
.service-process li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.service-process li::before {
  content: '+';
  position: absolute; left: 0;
  color: var(--green-600);
  font-family: var(--mono);
  font-weight: 500;
}
.service-cta-row {
  margin-top: 1.75rem;
  padding-left: calc(110px + 1.5rem);
}
.service-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid var(--green-500);
  padding-bottom: 4px;
  transition: all .25s;
}
.service-cta:hover { color: var(--green-800); border-bottom-color: var(--green-800); transform: translateX(4px); }
.service-cta svg { width: 14px; height: 14px; }

/* ================== PRODUCTS RECOMMEND (reused on serveis page) ================== */
.products-recommend {
  background: var(--bg-soft);
  padding: 8rem var(--pad);
  position: relative;
}
.products-recommend .products-head {
  max-width: var(--max); margin: 0 auto 4rem;
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}
.brand-list span {
  padding: .6rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.products-recommend .products-grid {
  max-width: var(--max); margin: 0 auto;
}

/* ================== CTA FINAL (shared services + nosaltres) ================== */
.cta-final {
  background:
    linear-gradient(160deg, rgba(8, 54, 61,.35), rgba(4, 28, 36,.62)),
    url("bg.webp") center / cover no-repeat;
  color: var(--cream);
  padding: 7rem var(--pad);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .6; pointer-events: none;
}
.cta-final-inner {
  max-width: 760px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-final h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.cta-final h2 em { font-style: italic; color: var(--green-500); font-weight: 300; }
.cta-final p {
  color: var(--stone);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-left: auto; margin-right: auto;
}
.cta-final-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-final .btn-primary {
  background: var(--green-500); color: var(--green-900);
  border-color: var(--green-500); font-weight: 600;
}
.cta-final .btn-primary:hover { background: var(--cream); border-color: var(--cream); box-shadow: 0 6px 22px rgba(245,239,227,.18); }
.cta-final .btn-ghost {
  border-color: rgba(245,239,227,.3); color: var(--cream);
}
.cta-final .btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(245,239,227,.08); }

/* ================== NOSALTRES — FACADE FEATURE ================== */
.facade-feature {
  padding: 4rem var(--pad) 6rem;
  background: var(--bg);
}
.facade-feature-inner {
  max-width: var(--max); margin: 0 auto;
  position: relative;
}
.facade-feature .frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 40px 100px -30px rgba(10, 113, 128,.35);
}
.facade-feature .frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.facade-feature .frame:hover img { transform: scale(1.03); }
.facade-feature .frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,23,20,.45) 100%);
  pointer-events: none;
}
.facade-caption {
  position: absolute;
  left: 28px; bottom: 24px;
  background: rgba(251,247,238,.94);
  backdrop-filter: blur(8px);
  padding: 14px 22px;
  display: flex; align-items: center; gap: 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.facade-caption .mark {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem;
  color: var(--green-700);
}
.facade-tape {
  position: absolute;
  top: -16px; right: 30px;
  background: var(--green-700);
  color: var(--cream);
  padding: 10px 26px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  transform: rotate(-2deg);
  box-shadow: 0 6px 20px rgba(10, 113, 128,.3);
  z-index: 2;
}

/* ================== NOSALTRES — STORY (parallax) ================== */
.story-scroll {
  padding: clamp(4rem, 8vw, 7rem) var(--pad) clamp(2rem, 5vw, 4rem);
  background: var(--bg);
  overflow: hidden;
}
.story-intro {
  max-width: var(--max);
  margin: 0 auto clamp(2.5rem, 8vh, 6rem);
  text-align: center;
}
/* title drops in from the top */
.story-intro.reveal-on-scroll { transform: translateY(-46px); }
.story-intro.reveal-on-scroll.in-view { transform: translateY(0); }
.story-intro .display-h { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.story-intro .display-h span,
.story-intro .display-h em { display: block; }
.story-intro .display-h em { font-style: italic; color: var(--green-700); }

.story-panels { max-width: var(--max); margin: 0 auto; }
.story-panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 145vh;
  width: min(100%, 62rem);
}
.story-panel + .story-panel { margin-top: clamp(2rem, 8vh, 7rem); }
/* scatter: nudge panels to alternating sides and vary their size */
.story-panel[data-side="left"]  { margin-right: auto; }
.story-panel[data-side="right"] { margin-left: auto; }
.story-panel:nth-child(2) { width: min(100%, 68rem); }
.story-panel:nth-child(3) { width: min(100%, 53rem); }
.story-panel:nth-child(4) { width: min(100%, 63rem); }
/* image & text drift independently — hidden until the script reveals them (desktop only) */
@media (min-width: 821px) {
  .story-anim .story-panel-media,
  .story-anim .story-panel-copy { opacity: 0; }
}

.story-panel[data-side="right"] .story-panel-media { order: 2; }
.story-panel-media,
.story-panel-copy {
  flex: 1 1 0;
  min-width: 0;
  will-change: transform, opacity;
}

/* media frame with an oversized image for parallax drift */
.story-panel-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule);
  box-shadow: 0 50px 100px -50px rgba(8, 54, 61, .45);
  background: var(--bg-soft);
}
.story-panel-media img {
  position: absolute;
  top: -9%; left: 0;
  width: 100%; height: 118%;
  object-fit: cover;
  will-change: transform;
}
.story-panel-cap {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 1;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: rgba(4, 28, 36, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-panel-copy {
  position: relative;
  max-width: 42ch;
  will-change: transform, opacity;
}
/* faint chapter motif — a hand-drawn outlined SVG that echoes the chapter, parallax accent */
.story-panel-num {
  position: absolute;
  top: -7rem; left: -2.6rem;
  z-index: 0;
  width: clamp(11rem, 22vw, 15.5rem);
  pointer-events: none;
  will-change: transform;
}
.story-panel-num svg {
  display: block;
  width: 100%; height: auto;
  fill: none;
  stroke: rgba(10, 113, 128, .2);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-panel-copy h3 {
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.story-panel-copy p {
  position: relative;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.75;
}
@media (prefers-reduced-motion: reduce) {
  .story-panel-media img { top: 0; height: 100%; transform: none !important; }
  .story-panel,
  .story-panel-media,
  .story-panel-copy,
  .story-panel-num { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 820px) {
  .story-panel,
  .story-panel:nth-child(2),
  .story-panel:nth-child(3),
  .story-panel:nth-child(4) {
    flex-direction: column;
    gap: 1.75rem;
    min-height: auto;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(3rem, 9vw, 5rem) 0;
  }
  .story-panel + .story-panel { margin-top: 0; }
  .story-panel[data-side="right"] .story-panel-media { order: 0; }
  /* flex:none so the aspect-ratio sets the height (flex-basis:0 would collapse it to 0) */
  .story-panel-media { width: 100%; aspect-ratio: 3 / 2; flex: none; }
  .story-panel-copy { max-width: 100%; flex: none; }
  .story-panel-num { width: clamp(7.5rem, 30vw, 11rem); top: -4.6rem; left: -1rem; }
}

/* ================== NOSALTRES — STORY (legacy, unused) ================== */
.story {
  padding: 6rem var(--pad);
  background: var(--bg);
}
.story-inner {
  max-width: 720px; margin: 0 auto;
}
.story-inner .eyebrow { margin-bottom: 1.5rem; }
.story-inner p {
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.story-inner p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 4rem;
  color: var(--green-700);
  float: left;
  line-height: 1;
  padding: 6px 12px 0 0;
}

/* ================== NOSALTRES — TIMELINE ================== */
.timeline-section {
  padding: 6rem var(--pad);
  background: var(--bg-soft);
  position: relative;
}
.timeline-section .eyebrow,
.timeline-section h2 { text-align: center; }
.timeline-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 auto 4rem;
  max-width: 24ch;
  line-height: 1.15;
}
.timeline {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  padding-top: 50px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 19px; left: 10%; right: 10%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}
.timeline-progress {
  position: absolute;
  top: 19px; left: 10%;
  height: 1px;
  background: var(--green-600);
  width: 0;
  max-width: 80%;
  z-index: 1;
  transform-origin: left;
  transition: width .25s linear, height .25s linear;
}
.tl-item {
  position: relative;
  text-align: center;
  padding-top: 0;
}
.tl-item::before {
  content: '';
  position: absolute;
  top: -38px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--rule);
  z-index: 2;
  transition: border-color .35s, background .35s, transform .35s;
}
.tl-item.is-active::before {
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 6px rgba(20, 174, 196,.15);
}
.tl-year {
  display: block;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.tl-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.tl-body {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 22ch;
  margin: 0 auto;
}

/* ================== NOSALTRES — TEAM ================== */
.team-section {
  padding: clamp(4.5rem, 8vw, 7rem) var(--pad);
  background: var(--bg);
}
.team-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.team-head .eyebrow { margin-bottom: 1rem; }
.team-head .display-h { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.team-head .display-h span,
.team-head .display-h em { display: block; }
.team-head .display-h em { font-style: italic; color: var(--green-700); }
.team-lead {
  max-width: 56ch;
  margin: 1.4rem auto 0;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}
.team-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.5rem);
  max-width: var(--max);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.team-photo {
  position: relative;
  max-width: none;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -34px rgba(8, 54, 61, .3);
}
.team-photo--primary { grid-column: 1 / -1; }
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
}
.team-photo figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.1rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: rgba(4, 28, 36, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.team-training {
  max-width: 1100px;
  margin: clamp(4rem, 9vw, 8rem) auto 0;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  text-align: center;
}
.team-training h3 {
  max-width: 13ch;
  margin: 0 auto;
  color: var(--green-700);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .team-gallery { grid-template-columns: 1fr; }
  .team-photo--primary { grid-column: auto; }
  .team-photo img { aspect-ratio: auto; }
}

/* ================== NOSALTRES — VALUES ================== */
.values-section {
  padding: 6rem var(--pad);
  background: var(--bg);
}
.values-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
  text-align: center;
}
.values-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
  line-height: 1.15;
}
.values-head h2 em { font-style: italic; color: var(--green-700); font-weight: 300; }
.values-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}
.value {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
}
.value-num {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-4);
  letter-spacing: .08em;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.value h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -.015em;
  color: var(--green-700);
  margin-bottom: .5rem;
}
.value p {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: .98rem;
}

/* ================== NOSALTRES — QUOTE FEATURE ================== */
.quote-feature {
  padding: 8rem var(--pad);
  background: var(--green-900);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.quote-feature::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .6; pointer-events: none;
}
.quote-inner {
  max-width: 880px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
}
.quote-mark {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 6rem;
  line-height: .8;
  color: var(--green-500);
  margin-bottom: -1rem;
  opacity: .5;
}
.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--cream);
  margin-bottom: 2rem;
}
.quote-attr {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--green-500);
}

/* ================== NOSALTRES — STATS EXPANDED ================== */
.stats-expanded-section {
  padding: 6rem var(--pad);
  background: var(--bg-soft);
}
.stats-expanded-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
  text-align: center;
}
.stats-expanded-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto;
  letter-spacing: -.02em;
}
.stats-expanded {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}
.stats-expanded .stat {
  text-align: left;
}
.stats-expanded .stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--green-700);
  display: flex; align-items: baseline; gap: 2px;
}
.stats-expanded .stat-plus {
  font-size: .55em; color: var(--ink-4); font-weight: 400;
}
.stats-expanded .stat-lbl {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .75rem;
}

/* ================== REVEAL HOOK GENERIC ================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
}
.reveal-on-scroll.in-view {
  opacity: 1; transform: translateY(0);
}
.reveal-on-scroll[data-stagger="1"] { transition-delay: .08s; }
.reveal-on-scroll[data-stagger="2"] { transition-delay: .16s; }
.reveal-on-scroll[data-stagger="3"] { transition-delay: .24s; }
.reveal-on-scroll[data-stagger="4"] { transition-delay: .32s; }
.reveal-on-scroll[data-stagger="5"] { transition-delay: .40s; }

/* GSAP owns homepage entrances when the library is available. */
html.gsap-pending .nav-inner,
html.gsap-pending .hero-label,
html.gsap-pending .hero-title .line,
html.gsap-pending .hero-actions > *,
html.gsap-pending .hero-stat,
html.gsap-pending .hero-cross-static,
html.gsap-pending .hero-scroll {
  opacity: 0;
  visibility: hidden;
}

html.gsap-pending body[data-page="serveis"] .hero-rise,
html.gsap-pending body[data-page="nosaltres"] .hero-rise,
html.gsap-pending body[data-page="serveis"] .np-hero-cross,
html.gsap-pending body[data-page="nosaltres"] .np-hero-cross {
  opacity: 0;
  visibility: hidden;
}

html.gsap-home .hero-rise,
html.gsap-home .stats-reveal,
html.gsap-home .reveal-on-scroll,
html.gsap-home .reveal,
html.gsap-home .hours-card-days span {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

html.gsap-home .hero-cross-static {
  animation: none;
  opacity: 1;
  transform: none;
}

html.gsap-inner .hero-rise,
html.gsap-inner .reveal-on-scroll {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

html.gsap-inner .np-hero-cross {
  animation: none;
  opacity: 1;
  transform: none;
}

.products-recommend .products-head .page-hero-lead {
  max-width: 60ch;
  margin: 1.5rem 0 0;
  text-align: left;
}

/* ================== RESPONSIVE — INNER PAGES ================== */
@media (max-width: 1100px) and (min-width: 769px) {
  .services-detail-inner {
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem 5rem;
  }
  .service-body { gap: 2rem; }
  .service-detail-head { grid-template-columns: 90px 1fr; }
  .service-num-large { font-size: 2.6rem; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .timeline::before, .timeline-progress { left: 8%; right: 8%; max-width: 84%; }
  .values-grid { gap: 2.5rem 3rem; }
  .stats-expanded { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .quote-text { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
}

@media (max-width: 768px) {
  .page-hero { padding: 6.5rem 1.25rem 3rem; }
  .page-hero h1 { max-width: 100%; }
  .page-hero-lead { font-size: 1rem; }

  .services-detail-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.5rem 1.25rem 4rem;
  }
  .service-index {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 2.5rem;
    padding-bottom: .5rem;
    gap: 0;
    scrollbar-width: none;
  }
  .service-index::-webkit-scrollbar { display: none; }
  .service-index .idx-label { display: none; }
  .service-index a {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 1px solid var(--rule);
    padding: 8px 14px;
  }
  .service-index a.active {
    border-bottom-color: var(--green-700);
    background: transparent;
  }
  .service-index a .idx-name { font-size: .85rem; }

  .service-detail { padding: 3rem 0; }
  .service-detail-head {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .service-num-large { font-size: 2.2rem; }
  .service-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .service-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 0;
  }
  .service-cta-row { padding-left: 0; }
  .service-process { padding: 1.25rem; }

  .products-recommend { padding: 4rem 1.25rem; }

  .cta-final { padding: 5rem 1.25rem; }
  .cta-final h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .cta-final-actions { flex-direction: column; }
  .cta-final .btn-primary, .cta-final .btn-ghost { width: 100%; justify-content: center; }

  .facade-feature { padding: 2rem 1.25rem 4rem; }
  .facade-feature .frame { aspect-ratio: 4/3; }
  .facade-caption { left: 14px; bottom: 14px; padding: 10px 14px; font-size: .68rem; gap: 8px; }
  .facade-caption .mark { font-size: 1.1rem; }
  .facade-tape { right: 14px; padding: 7px 18px; font-size: .62rem; }

  .story { padding: 4rem 1.25rem; }
  .story-inner p { font-size: 1rem; line-height: 1.75; }
  .story-inner p:first-of-type::first-letter { font-size: 3.2rem; padding: 4px 10px 0 0; }

  .timeline-section { padding: 4rem 1.25rem; }
  .timeline-section h2 { margin-bottom: 2.5rem; }
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
    padding-left: 28px;
  }
  .timeline::before {
    top: 0; bottom: 0; left: 7px; right: auto;
    width: 1px; height: auto;
  }
  .timeline-progress {
    top: 0; left: 7px; right: auto;
    width: 1px; height: 0;
    max-width: none; max-height: 100%;
  }
  .tl-item { text-align: left; }
  .tl-item::before {
    top: 6px; left: -28px;
    transform: none;
  }
  .tl-item.is-active::before { transform: scale(1.2); }
  .tl-body { max-width: 100%; }

  .values-section { padding: 4rem 1.25rem; }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .value { grid-template-columns: 50px 1fr; gap: .75rem; }
  .value h3 { font-size: 1.3rem; }

  .quote-feature { padding: 5rem 1.25rem; }
  .quote-mark { font-size: 4.5rem; }

  .stats-expanded-section { padding: 4rem 1.25rem; }
  .stats-expanded {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    padding-top: 2rem;
  }
  .stats-expanded .stat-num { font-size: 2.2rem; }
}

@media (max-width: 420px) {
  .page-hero { padding: 5.5rem 1rem 2.5rem; }
  .service-num-large { font-size: 1.9rem; }
  .service-detail-head { grid-template-columns: 50px 1fr; }
  .stats-expanded { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote-text { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .quote-mark { font-size: 3.5rem; }
}

/* ================== TABLET PORTRAIT (600–768) ================== */
/* Aprovecha el ancho extra de móviles grandes / tablets pequeñas
   trayendo de vuelta layouts 2-col donde caben con holgura. */
@media (min-width: 600px) and (max-width: 768px) {
  :root { --pad: 1.75rem; }

  /* — HOME FEATURE: tablet portrait — stack 1-col (image, text, featured, cards) — */
  .home-feature { padding: 5rem 1.75rem; }
  .home-feature-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text"
      "featured"
      "cards";
    gap: 1.75rem;
  }
  .home-feature-image img {
    aspect-ratio: 4/5;
    height: auto;
    min-height: 0;
  }
  .home-feature-text { max-width: 100%; }
  .home-feature-tag { left: -10px; padding: 7px 16px; font-size: .62rem; }
  .home-feature-lead { font-size: .96rem; margin: 1rem 0 1.5rem; }
  .home-feature-featured { padding: 1.5rem; }
  .hf-feat-quote { font-size: 1.2rem; }
  .home-feature-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* — FIND: info | map portrait — */
  .find-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .find-info { max-width: 100%; }
  .find-map { aspect-ratio: 4/5; }
  .find-row { grid-template-columns: 80px 1fr; gap: .75rem; padding: .65rem 0; }
  .find-row-lbl { font-size: .58rem; }
  .find-row-val { font-size: .92rem; }

  /* — ABOUT (nosaltres facade-feature ya es full-width, pero si reaparece): 2-col — */
  /* (No hay .about en home; este selector aplica solo si se reusa) */

  /* — VALUES grid: 2-col — */
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
  .value { grid-template-columns: 40px 1fr; gap: .65rem; }
  .value h3 { font-size: 1.15rem; }
  .value p { font-size: .9rem; }

  /* — STATS EXPANDED: 4-col compact — */
  .stats-expanded {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .stats-expanded .stat-num { font-size: 1.7rem; }
  .stats-expanded .stat-lbl { font-size: .58rem; line-height: 1.3; margin-top: .4rem; }

  /* — PRODUCTS grid (serveis): 2-col, hero/wide span 2 — */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .prod-hero { grid-column: span 2; grid-row: auto; }
  .prod-hero .prod-media { aspect-ratio: 16/9; }
  .prod-hero .prod-info h3 { font-size: 1.6rem; }
  .prod-wide { grid-column: span 2; grid-template-columns: 1fr 1.2fr; }
  .prod-wide .prod-media { aspect-ratio: auto; }
  .prod-info { padding: 1rem 1rem 1.25rem; gap: .35rem; }
  .prod-info h3 { font-size: 1.05rem; }
  .prod-info p { font-size: .82rem; line-height: 1.5; }
  .prod-meta { font-size: .6rem; }

  /* — SERVICE BODY (serveis): texto | process — */
  .services-detail-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 3rem 1.75rem 5rem;
  }
  /* sticky sidebar pasa a horizontal scroll (igual que mobile) */
  .service-index {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: .5rem;
    gap: 0;
    scrollbar-width: none;
  }
  .service-index::-webkit-scrollbar { display: none; }
  .service-index .idx-label { display: none; }
  .service-index a {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 1px solid var(--rule);
    padding: 8px 14px;
  }
  .service-index a.active {
    border-bottom-color: var(--green-700);
    background: transparent;
  }
  /* service-body: 2-col (text + process) — el offset por el num se reduce */
  .service-detail { padding: 3rem 0; }
  .service-detail-head {
    grid-template-columns: 60px 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }
  .service-num-large { font-size: 2.2rem; }
  .service-title { font-size: clamp(1.4rem, 3vw, 1.8rem); }
  .service-body {
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    padding-left: 0;
  }
  .service-body-text p { font-size: .96rem; line-height: 1.7; margin-bottom: .9rem; }
  .service-cta-row { padding-left: 0; }
  .service-process { padding: 1rem; }
  .service-process h4 { font-size: .65rem; margin-bottom: .65rem; }
  .service-process li { font-size: .84rem; }

  /* — TIMELINE: 2-col grid, sin línea conectora; "Avui" span 2 — */
  .timeline-section { padding: 5rem 1.75rem; }
  .timeline-section h2 { margin-bottom: 2.5rem; }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.75rem;
    padding-top: 0;
    padding-left: 0;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
  }
  .timeline::before { display: none; }       /* sin línea horizontal/vertical */
  .timeline-progress { display: none; }       /* sin progress bar */
  .tl-item {
    text-align: left;
    padding-left: 22px;
    position: relative;
  }
  .tl-item::before {
    top: 6px; left: 0;
    transform: none;
    width: 12px; height: 12px;
    background: var(--bg-soft);
    border: 2px solid var(--rule);
  }
  .tl-item.is-active::before {
    background: var(--green-600);
    border-color: var(--green-600);
    transform: scale(1.15);
  }
  .tl-year { font-size: 1.05rem; margin-bottom: .35rem; }
  .tl-title { font-size: 1.02rem; margin-bottom: .3rem; }
  .tl-body { font-size: .85rem; line-height: 1.55; max-width: 100%; }
  /* "Avui" (5º .tl-item, 6º hijo total: 1=progress + 5=items) span 2 columnas, centrado */
  .tl-item:nth-child(6) {
    grid-column: 1 / -1;
    text-align: center;
    padding-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    margin-top: .5rem;
  }
  .tl-item:nth-child(6)::before {
    top: -7px; left: 50%;
    transform: translateX(-50%);
  }
  .tl-item:nth-child(6).is-active::before {
    transform: translateX(-50%) scale(1.15);
  }
  .tl-item:nth-child(6) .tl-body { max-width: 38ch; margin: 0 auto; }

  /* — STORY: ancho cómodo — */
  .story { padding: 5rem 1.75rem; }
  .story-inner { max-width: 540px; }

  /* — QUOTE FEATURE: padding ajustado — */
  .quote-feature { padding: 6rem 1.75rem; }
  .quote-text { font-size: clamp(1.5rem, 4vw, 2rem); }
  .quote-mark { font-size: 4.5rem; }

  /* — PAGE HERO (serveis, nosaltres): h1 más generoso — */
  .page-hero { padding: 7rem 1.75rem 3.5rem; }
  .page-hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); max-width: 14ch; }

  /* — FOOTER: cols ajustadas — */
  .footer { padding: 4.5rem 1.75rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .footer-bar { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; text-align: left !important; font-size: .7rem; }
  .footer-bar > span:nth-child(2) { text-align: center !important; }
  .footer-bar > span:last-child { text-align: right !important; }

  /* — CTA FINAL: padding tablet — */
  .cta-final { padding: 6rem 1.75rem; }
  .cta-final-actions { flex-direction: row; justify-content: center; }
  .cta-final .btn-primary, .cta-final .btn-ghost { width: auto; }

  /* — PRODUCTS RECOMMEND padding — */
  .products-recommend { padding: 5rem 1.75rem; }
}

/* ================== NOSALTRES: SCROLL STORY ================== */
.story-scroll{position:relative;padding:clamp(5rem,9vw,8rem) var(--pad);background:radial-gradient(circle at 7% 18%,rgba(10, 113, 128,.07),transparent 28rem),var(--bg);overflow:clip}
.story-intro{max-width:var(--max);margin:0 auto clamp(3.5rem,9vh,7rem);display:grid;grid-template-columns:1.4fr .55fr;gap:clamp(1.5rem,4vw,4rem);align-items:end;text-align:left}
.story-intro.reveal-on-scroll{transform:translateY(32px)}.story-intro.reveal-on-scroll.in-view{transform:translateY(0)}
.story-kicker{align-self:start;font:500 .66rem/1.4 var(--mono);color:var(--green-700);letter-spacing:.1em;text-transform:uppercase}
.story-intro .display-h{margin:0;font-size:clamp(3.5rem,7.7vw,7.3rem);line-height:.82;letter-spacing:-.06em}.story-intro .display-h em{margin-left:13%}
.story-intro-lead{max-width:15rem;margin:0 0 .5rem;color:var(--ink-3);font-size:.82rem;line-height:1.6}
.story-narrative{width:min(100%,var(--max));margin:0 auto;display:grid;grid-template-columns:minmax(22rem,1.02fr) minmax(20rem,.82fr);gap:clamp(3.5rem,8vw,9rem);align-items:start}
.story-stage{position:sticky;top:clamp(6.5rem,12vh,9rem);height:calc(100vh - clamp(8rem,18vh,12rem));min-height:32rem;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:1rem}
.story-stage-frame{position:relative;min-height:0;overflow:hidden;border-radius:3px;background:var(--green-900);box-shadow:0 42px 90px -48px rgba(8, 54, 61,.62);isolation:isolate}
.story-stage-frame::before{content:'';position:absolute;inset:0;z-index:4;border:1px solid rgba(255,255,255,.18);pointer-events:none}
.story-stage-image{position:absolute;inset:0;margin:0;opacity:0;clip-path:inset(100% 0 0);transform:scale(1.08);transition:opacity .15s linear,clip-path .9s cubic-bezier(.22,1,.36,1),transform 1.25s cubic-bezier(.22,1,.36,1);will-change:clip-path,transform,opacity}
.story-stage-image.is-active{z-index:2;opacity:1;clip-path:inset(0);transform:scale(1)}.story-stage-image.was-active{z-index:1;opacity:1;clip-path:inset(0);transform:scale(1.035)}
.story-stage-image img{width:100%;height:112%;object-fit:cover;transform:translate3d(0,var(--story-image-y,-5%),0);filter:saturate(.83) contrast(1.02);will-change:transform}
.story-stage-wash{position:absolute;inset:0;z-index:3;background:linear-gradient(180deg,transparent 55%,rgba(4, 32, 42,.72));pointer-events:none}
.story-stage-cap,.story-stage-index{position:absolute;z-index:5;bottom:1.25rem;color:var(--cream);font:400 .6rem/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.story-stage-cap{left:1.3rem}.story-stage-index{right:1.3rem;display:flex;align-items:baseline;gap:.35rem}.story-stage-index i{font-style:normal;font-size:1.35rem;letter-spacing:-.05em}.story-stage-index b{font-weight:400;opacity:.58}
.story-stage-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;color:var(--ink-3);font:400 .57rem/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.story-stage-progress>i{position:relative;height:1px;overflow:hidden;background:var(--rule)}.story-stage-progress>i b{position:absolute;inset:0;background:var(--green-700);transform:scaleX(var(--story-progress,0));transform-origin:left}
.story-chapters{position:relative}.story-chapters::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--rule)}
.story-chapter{position:relative;min-height:92vh;padding:16vh 0 18vh clamp(2rem,4vw,4.5rem);opacity:.24;transform:translateY(2rem);transition:opacity .55s ease,transform .75s cubic-bezier(.22,1,.36,1)}
.story-chapter:last-child{min-height:78vh}.story-chapter.is-active{opacity:1;transform:none}
.story-chapter::before{content:'';position:absolute;left:-4px;top:calc(16vh + .2rem);width:9px;height:9px;border-radius:50%;background:var(--bg);border:1px solid var(--green-700);transition:background .3s,box-shadow .3s}
.story-chapter.is-active::before{background:var(--green-700);box-shadow:0 0 0 7px rgba(10, 113, 128,.1)}
.story-chapter-mobile{display:none}
.story-chapter-motif{display:block;width:clamp(7rem,12vw,10rem);margin:0 0 2.2rem -.5rem}.story-chapter-motif svg{display:block;width:100%;fill:none;stroke:var(--green-700);stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;opacity:.22}
.story-chapter-motif path,.story-chapter-motif line,.story-chapter-motif circle,.story-chapter-motif ellipse{stroke-dasharray:420;stroke-dashoffset:420;transition:stroke-dashoffset 1.25s .12s cubic-bezier(.22,1,.36,1)}
.story-chapter.is-active .story-chapter-motif path,.story-chapter.is-active .story-chapter-motif line,.story-chapter.is-active .story-chapter-motif circle,.story-chapter.is-active .story-chapter-motif ellipse{stroke-dashoffset:0}
.story-chapter h3{max-width:13ch;margin:0 0 1.35rem;color:var(--ink);font-family:var(--serif);font-weight:600;font-size:clamp(2.15rem,4.2vw,4rem);line-height:.97;letter-spacing:-.055em}
.story-chapter p{max-width:38rem;margin:0;color:var(--ink-2);font-size:clamp(.98rem,1.2vw,1.08rem);line-height:1.78}
.story-chapter-rule{display:block;width:0;height:1px;margin-top:2.5rem;background:var(--green-700);transition:width .9s .18s cubic-bezier(.22,1,.36,1)}.story-chapter.is-active .story-chapter-rule{width:min(100%,12rem)}
@media(max-width:900px){.story-intro{grid-template-columns:1.5fr 1fr}.story-intro-lead{display:none}.story-narrative{grid-template-columns:minmax(18rem,.9fr) minmax(18rem,1fr);gap:3rem}}
@media(max-width:760px){
  .story-scroll{padding-left:1.25rem;padding-right:1.25rem}.story-intro{display:block;margin-bottom:3.5rem}.story-kicker{display:block;margin-bottom:1.5rem}.story-intro .display-h{font-size:clamp(3.2rem,15vw,5.4rem)}.story-intro .display-h em{margin-left:8%}
  .story-narrative{display:block}.story-stage{display:none}.story-chapters::before{display:none}.story-chapter,.story-chapter:last-child{min-height:0;padding:0 0 clamp(5rem,18vw,7.5rem);opacity:1;transform:none}.story-chapter::before{display:none}
  .story-chapter-mobile{display:block;position:relative;aspect-ratio:4/3;margin:0 0 1.5rem;overflow:hidden;background:var(--bg-soft)}.story-chapter-mobile img{width:100%;height:100%;object-fit:cover}.story-chapter-mobile figcaption{position:absolute;left:.8rem;bottom:.8rem;padding:.38rem .68rem;border-radius:999px;background:rgba(6, 40, 50,.62);color:var(--cream);font:400 .52rem/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
  .story-chapter-motif{width:6.5rem;margin-bottom:1.5rem}.story-chapter h3{font-size:clamp(2.15rem,10vw,3.1rem)}.story-chapter-rule{width:5rem}
}
@media(prefers-reduced-motion:reduce){.story-stage-image,.story-chapter,.story-chapter-motif *,.story-chapter-rule{transition:none!important}.story-stage-image img{transform:none!important}}
