:root {
  /* ── Palette ──────────────────────────────────────────
     Default = "Puerto" (cool/white, matches the brand image's
     deep-navy + green + royal-blue feel). Other palettes are
     applied by setting body[data-theme="…"] further down.
     ─────────────────────────────────────────────────── */
  --bg: #ffffff;
  --bg-deep: #edf2f7;
  --paper: #f5f8fb;
  --ink: #0e2233;
  --ink-soft: #4b5e72;
  --ink-mute: #8c9aac;
  --rule: #dbe3ec;
  --rule-soft: #ecf1f5;
  --green: #44b649;
  --blue: #1b5bd0;
  --grad: linear-gradient(96deg, var(--green) 0%, var(--blue) 100%);

  /* Theme-controlled surfaces — sections that flip between
     paper and deep-navy depending on the active palette /
     structural toggle. Default mirrors the original look. */
  --surface-deep: var(--ink);        /* numbers strip bg */
  --surface-deep-ink: var(--bg);      /* numbers strip fg */
  --surface-lines: var(--paper);      /* "Divisiones" section bg */
  --nav-tint: 245, 248, 251;          /* rgb tuple for blurred nav */

  /* Asymmetric blob mask shared by the hero video and the offset color
     block behind it. Hard edges, mix of straight cuts with one quadratic
     curve along the bottom for tension. */
  --blob-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'><path d='M 80 36 L 296 12 L 376 124 L 332 224 L 392 332 L 308 460 Q 188 504 88 460 L 24 332 L 56 196 Z' fill='black'/></svg>");

  /* ── Type ────────────────────────────────────────── */
  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --sans: "Manrope", "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* ── Spacing ─────────────────────────────────────── */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 14vh, 200px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* Subtle grain layer over the whole page — adds tooth without being noisy */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════════════
   NAV — thin, sticky, almost invisible
   ═══════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 10px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  transition: backdrop-filter 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(var(--nav-tint), 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-mark {
  display: inline-flex; align-items: center; gap: 9px;
  justify-self: start;
}
.nav-logo {
  height: 84px; width: auto; display: block;
  /* Their logo is 3D/glossy — a touch of contrast keeps it crisp on the
     cream paper without changing the brand colors. */
  filter: contrast(1.04);
}

.nav-links {
  display: flex; gap: 32px;
  justify-self: center;
}
.nav-links a {
  color: var(--ink);
  position: relative;
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-end {
  display: flex; align-items: center; gap: 18px;
  justify-self: end;
}
.nav-lang {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.nav-lang strong { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 9px 16px 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: 13px;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--blue); }
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  padding: 340px var(--gutter) 60px;
  position: relative;
  overflow: hidden;          /* clip the full-bleed image to the hero box */
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
}

.hero-grid {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;                /* text sits ABOVE the image panel */
}

/* ── Scroll-driven logo morph ────────────────────────────────────
   --hero-p is set by JS: 1 at top of page, 0 once scrolled past
   the hero. The nav-logo is the ONLY logo on the page — at the top
   it grows + translates down into the hero, and as the user scrolls
   it morphs smoothly back to its 84px resting position in the nav.
   The hero padding-top tracks the same variable so the headline
   always sits comfortably below the logo. */
:root { --hero-p: 1; --logo-grow: 1.0; --logo-ty: 70px; }

.nav-logo {
  transform-origin: top left;
  transform:
    translateY(calc(var(--hero-p) * var(--logo-ty)))
    scale(calc(1 + var(--hero-p) * var(--logo-grow)));
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.nav-mark { z-index: 110; }
@media (max-width: 880px) {
  :root { --logo-grow: 0.6; --logo-ty: 50px; }
}
@media (max-width: 420px) {
  :root { --logo-grow: 0.4; --logo-ty: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo { transition: none; }
}

.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: absolute;
}
.hero-meta-tl { top: -64px; left: 0; display: flex; align-items: center; gap: 10px; }
.hero-meta-tl .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 184, 56, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-meta-tr { top: -64px; right: 0; }
.hero-meta-bl { bottom: -64px; left: 0; display: flex; align-items: center; gap: 10px; }
.hero-meta-bl .arrow {
  width: 16px; height: 16px;
  animation: arrow-bob 2s ease-in-out infinite;
}
.hero-meta-br { bottom: -64px; right: 0; text-align: right; line-height: 1.6; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 184, 56, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(79, 184, 56, 0.06); }
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  max-width: 92%;  /* let lines bleed across the image area for an editorial overlap */
  position: relative;
  z-index: 2;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  font-size: 0.96em;
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ── Hero copy variants ────────────────────────────────────────────
   The hero ships with two headline blocks and an optional subhead;
   the Tweaks panel toggles which one is visible via body[data-copy].
   Default is "editorial" — same poetic line we shipped with. */
.hero-title.hero-copy-directo { display: none; }
.hero-sub { display: none; }

/* Subtle hero-title accents — same display font as the rest, but
   a single brand-blue word and a softened "para empresas." line.
   Keeps the headline clean and uniform without feeling flat. */
.hero-title .hero-accent {
  color: var(--blue);
  font-weight: 500;
}
.hero-title .hero-soft {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}
body:not([data-strong-hero="true"]) .hero-title .hero-soft {
  color: var(--ink-soft);
}

body[data-copy="directo"] .hero-title.hero-copy-editorial { display: none; }
body[data-copy="directo"] .hero-title.hero-copy-directo { display: block; }
body[data-copy="con-sub"] .hero-sub,
body[data-copy="directo-sub"] .hero-sub {
  display: block;
}
body[data-copy="directo-sub"] .hero-title.hero-copy-editorial { display: none; }
body[data-copy="directo-sub"] .hero-title.hero-copy-directo { display: block; }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 520px;
  margin-top: 22px;
  /* Sits just under the display, before the bottom-left "Desliza" meta. */
}

/* Editorial figure caption — synced with the rotating image. Sits as
   a small mono line just under the headline, like a photo plate
   caption in a magazine spread. Hidden unless Tweaks turns sync on. */
.hero-figcap {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 24px;
  padding-left: 16px;
  border-left: 1px solid var(--ink);
  max-width: 480px;
  line-height: 1.6;
  /* The text content is rewritten by JS on every slide change.
     We add a slow opacity transition so the swap reads as a gentle
     editorial recomposition rather than a hard text flip. */
  opacity: 1;
  transition: opacity 0.4s ease;
}
body[data-hero-sync="true"] .hero-figcap { display: block; }

/* Hero image panel — full-bleed, right one-third of the hero.
   Touches the top, right, and bottom edges of the hero box; only
   the left edge fades softly so the dark cinematic image dissolves
   into the text area instead of presenting as a hard rectangle. */
.hero-product {
  position: absolute;
  inset: 0 0 0 auto;          /* pin top, right, bottom; left auto */
  width: 50%;
  z-index: 0;                 /* behind .hero-grid text */
  display: block;
  min-height: 0;
  gap: 0;
}
.hero-product-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  --base-x: 0%;
  --parallax-x: 0px;
  --parallax-y: 0px;
  transform: translate(calc(var(--base-x) + var(--parallax-x)), var(--parallax-y));
}

/* Subtle brand-tinted wash that bleeds out the LEFT edge of the
   image — emanates into the text column for a soft luminous join
   instead of a hard line. */
.hero-product-stage .wash {
  display: block;
  position: absolute;
  inset: -4% 0 -4% -22%;      /* extend leftward only */
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 60% 70% at 30% 50%,
      rgba(27, 91, 208, 0.36) 0%,
      rgba(68, 182, 73, 0.22) 38%,
      rgba(27, 91, 208, 0) 78%);
  filter: blur(34px);
}
.hero-product-stage::before { display: none; }

/* Image frame — left-edge fade only, with a generously wide
   transition zone. The leftmost ~half of the image panel sits in
   varying degrees of transparency so the bold headline can bleed
   across it and stay readable; only the rightmost portion of the
   image is fully opaque. */
.hero-video-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
              rgba(0,0,0,0) 0%,
              rgba(0,0,0,0.18) 18%,
              rgba(0,0,0,0.55) 36%,
              rgba(0,0,0,1) 60%,
              rgba(0,0,0,1) 100%);
          mask-image: linear-gradient(to right,
              rgba(0,0,0,0) 0%,
              rgba(0,0,0,0.18) 18%,
              rgba(0,0,0,0.55) 36%,
              rgba(0,0,0,1) 60%,
              rgba(0,0,0,1) 100%);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(0.82);
}

/* ─── Crossfading slide stack ───────────────────────────────────
   Each slide is absolutely positioned and fades via opacity. The
   active slide carries .is-active. The same radial mask on the
   parent frame handles the soft vignette so individual slides
   don't need their own. */
.hero-stack {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.04) brightness(1.02);
}
/* Per-slide framing so each subject reads in the portrait-ish crop */
.hero-slide[data-slide="showroom"] img  { object-position: 50% 60%; }
.hero-slide[data-slide="altura"] img    { object-position: 35% 50%; }
.hero-slide[data-slide="cristales"] img { object-position: 65% 50%; }

/* Caption sits below the bottle as a gallery placard with vertical accent */
.hero-product-caption {
  position: relative;
  align-self: flex-end;
  max-width: 220px;
  padding-left: 16px;
  margin-right: 8%;
  border-left: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  line-height: 1.7;
  z-index: 2;
}
.hero-product-caption strong {
  color: var(--ink);
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 6px;
  line-height: 1;
}

@keyframes wash-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.32; }
  50%      { transform: translate(2%, -1%) scale(1.06); opacity: 0.4; }
}

@media (max-width: 880px) {
  /* On smaller screens, the right-third band becomes a moody full-width
     background under the text. Image keeps its left-fade mask repurposed
     as a top-fade so text reads cleanly over it. */
  .hero-product { width: 100%; opacity: 0.32; }
  .hero-product-stage { --base-x: 0%; }
  .hero-video-frame {
    -webkit-mask-image: linear-gradient(to bottom,
                rgba(0,0,0,0) 0%,
                rgba(0,0,0,0.45) 18%,
                rgba(0,0,0,0.85) 45%,
                rgba(0,0,0,1) 70%);
            mask-image: linear-gradient(to bottom,
                rgba(0,0,0,0) 0%,
                rgba(0,0,0,0.45) 18%,
                rgba(0,0,0,0.85) 45%,
                rgba(0,0,0,1) 70%);
  }

  /* Hero meta — on mobile the four-corner meta layout collapses;
     keep one short tag at top and one at the bottom and hide the
     rest so they don't stack on top of each other. */
  .hero-meta-tr,
  .hero-meta-br { display: none; }
  .hero-meta-tl { top: -44px; right: auto; }
  .hero-meta-bl { bottom: -40px; }

  /* Make the subtitle readable over the photo: tuck it onto a soft
     dark plate that hugs the line height, so it never battles a
     bright spot in the image. */
  .hero-sub {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MANIFESTO
   ═══════════════════════════════════════════════════════════════════ */

.manifesto {
  padding: var(--section) var(--gutter);
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: flex-start;
}
.manifesto .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
}
.manifesto .eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink); flex: 0 0 24px;
}
.manifesto p {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
}
.manifesto em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .manifesto-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   LINES (sticky-stage list)
   ═══════════════════════════════════════════════════════════════════ */

.lines {
  padding: var(--section) var(--gutter) 80px;
  background: var(--surface-lines);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.lines-header {
  max-width: 1200px;
  margin: 0 auto clamp(56px, 8vh, 110px);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}
.lines-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lines-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.lines-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}

.lines-body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: flex-start;
}

.lines-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.lines-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
}
.lines-list li::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--grad);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lines-list li:hover, .lines-list li.active { padding-left: 28px; }
.lines-list li:hover::before, .lines-list li.active::before { width: 3px; }

.ln-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  transition: color 0.3s;
}
.lines-list li.active .ln-num { color: var(--ink); }

.ln-text h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.ln-text p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 460px;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.4s;
}
.lines-list li:hover .ln-text p,
.lines-list li.active .ln-text p {
  opacity: 1; max-height: 80px;
  margin-top: 8px;
}
.ln-meta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.ln-go {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  transition: color 0.3s, transform 0.3s;
}
.lines-list li:hover .ln-go { color: var(--ink); transform: translateX(4px); }

.lines-stage {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* The gradient overlay no longer applies — each line now has its own
   photographic image with the cream paper bg built in. */
.lines-stage .stage-bg {
  display: none;
}
.lines-stage .stage-figure {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 8s ease-out;
  z-index: 1;
}
.lines-stage .stage-figure.show {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.lines-stage .stage-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* ── Color-block stage figures ─────────────────────────────────────
   For divisions without photographic source, render a solid identity
   panel using the brand's per-division color. Sits flush in the stage
   exactly like an image-based figure. */
.lines-stage .stage-figure.color-block {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 36px 32px 72px;
  background: var(--cb-bg, #b8243a);
}
.lines-stage .stage-figure.color-auto { --cb-bg: #b8243a; }
.lines-stage .stage-figure.color-construction { --cb-bg: #e89834; }
.lines-stage .stage-figure.color-block .cb-poster {
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: #fff;
}
.lines-stage .stage-figure.color-block .cb-poster em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}
.lines-stage .stage-meta {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  transition: color 0.4s, text-shadow 0.4s;
}
.lines-stage .stage-meta .stage-meta-r { text-align: right; color: var(--ink-soft); transition: color 0.4s; }
/* When a color-block figure is active, flip meta to white over the
   saturated background. */
.lines-stage.on-color .stage-meta { color: #fff; text-shadow: none; }
.lines-stage.on-color .stage-meta .stage-meta-r { color: rgba(255,255,255,0.7); }

/* Counter — small mono "01 / 08" plate in the top-right of the
   stage, sitting above the active slide. */
.lines-stage .stage-counter {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(14, 34, 51, 0.6);
  padding: 6px 10px 5px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.lines-stage .stage-counter-sep,
.lines-stage .stage-counter-total {
  color: rgba(255, 255, 255, 0.55);
}

/* Progress ticks — one short bar per slide along the bottom of the
   stage, just above the meta strip. The active tick swells to full
   white. Decorative, click-passthrough. */
.lines-stage .stage-ticks {
  position: absolute;
  left: 22px; right: 22px; bottom: 56px;
  z-index: 3;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.lines-stage .stage-ticks span {
  flex: 1 1 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background 0.4s ease, transform 0.4s ease;
}
.lines-stage .stage-ticks span.on {
  background: rgba(255, 255, 255, 0.95);
}

/* Make the meta strip readable against any photo — small dark
   plate behind it instead of relying on text-shadow over a varied
   image. */
.lines-stage .stage-meta {
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.lines-stage .stage-meta .stage-meta-r {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 880px) {
  .lines-body { grid-template-columns: 1fr; }
  .lines-stage { position: static; aspect-ratio: 1.4 / 1; }
  .lines-list li .ln-text p { opacity: 1; max-height: 80px; margin-top: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURE — gallery-style product spotlight
   ═══════════════════════════════════════════════════════════════════ */

.feature {
  padding: var(--section) var(--gutter);
  position: relative;
}
.feature-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.feature-text { display: flex; flex-direction: column; gap: 24px; }
.feature .eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.feature .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
}
.feature-title {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.feature-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.feature-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 460px;
}
.feature-specs {
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  max-width: 460px;
}
.feature-specs > div {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.6;
}
.feature-specs strong {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: block;
  margin-top: 4px;
  text-transform: none;
}
.feature-cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  margin-top: 8px;
  font-weight: 500; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.feature-cta:hover { background: var(--ink); color: var(--bg); }
.feature-cta svg { width: 15px; height: 15px; }

.feature-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature-image > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.feature-image .ph-badge {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.75);
  padding: 5px 9px; border-radius: 4px;
  z-index: 2;
}
.feature-image .ph-tag {
  position: absolute; bottom: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  text-align: right; line-height: 1.6;
  z-index: 2;
}

@media (max-width: 880px) {
  .feature-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   SPECS — Especialidades · four cleaning service pillars
   Editorial 4-up grid with image-top cards, mono eyebrow + display
   heading + body + arrow CTA. Closes with a small strip mentioning
   the other four divisions (linking back to "Divisiones").
   ═══════════════════════════════════════════════════════════════════ */

.specs {
  padding: var(--section) var(--gutter);
  position: relative;
}

.specs-header {
  max-width: 1440px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.specs-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
  grid-column: 1 / -1;
}
.specs-header .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
}
.specs-title {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink);
}
.specs-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.specs-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 460px;
  padding-bottom: 8px;
}
.specs-lede em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 1px 6px 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  vertical-align: 2px;
  margin: 0 2px;
}

.specs-grid {
  list-style: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.spec-card {
  display: flex; flex-direction: column;
  gap: 22px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2,0.7,0.3,1);
}
.spec-card:hover { border-color: var(--rule); transform: translateY(-2px); }

.spec-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-deep);
}
.spec-image > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.spec-card:hover .spec-image > img { transform: scale(1.04); }

.spec-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 34, 51, 0.78);
  padding: 5px 9px 4px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.spec-text {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 6px 10px 18px;
}
.spec-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.spec-text h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.spec-text p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.spec-cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.spec-cta:hover { background: var(--ink); color: var(--bg); }
.spec-cta svg { width: 14px; height: 14px; }

.specs-foot {
  max-width: 1440px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.specs-foot-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.specs-foot ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
}
.specs-foot ul li a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px 5px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.specs-foot ul li a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 980px) {
  .specs-header { grid-template-columns: 1fr; align-items: start; }
  .specs-lede { max-width: 100%; padding-bottom: 0; }
}
@media (max-width: 720px) {
  .specs-grid { grid-template-columns: 1fr; }
  .specs-title { font-size: clamp(40px, 11vw, 64px); }
}

/* ═══════════════════════════════════════════════════════════════════
   QUOTE FORM (MODAL) — opens from any CTA, ends on a WhatsApp deep
   link with the form values rendered into the prefilled message.
   ═══════════════════════════════════════════════════════════════════ */

.qform {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(16px, 4vh, 48px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.qform.open { display: flex; opacity: 1; }
.qform-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 34, 51, 0.62);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  cursor: pointer;
}
.qform-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px) clamp(22px, 4vw, 32px);
  box-shadow: 0 30px 80px rgba(14, 34, 51, 0.32);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.qform.open .qform-card { transform: translateY(0) scale(1); }

.qform-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.qform-x:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qform-x svg { width: 13px; height: 13px; }

.qform-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.qform-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink);
}
.qform-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  margin-top: 14px;
}
.qform-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.qform-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 44ch;
}

.qform-form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.qform-field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.qform-full { grid-column: 1 / -1; }

.qform-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.qform-label em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
}

.qform-form input,
.qform-form select,
.qform-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 11px 13px;
  transition: border-color 0.2s, background 0.2s;
}
.qform-form input::placeholder,
.qform-form textarea::placeholder { color: var(--ink-mute); }
.qform-form input:focus,
.qform-form select:focus,
.qform-form textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--ink);
}
.qform-form textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.qform-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234b5e72' stroke-width='1.5' stroke-linecap='round'><path d='M2 4.5 L6 8.5 L10 4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 12px;
  padding-right: 36px;
}

.qform-submit {
  grid-column: 1 / -1;
  margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: #25d366;
  color: #052e16;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: filter 0.2s, transform 0.2s;
}
.qform-submit svg { width: 18px; height: 18px; }
.qform-submit:hover { filter: brightness(0.95); transform: translateY(-1px); }
.qform-submit:active { transform: translateY(0); }

.qform-foot {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
  text-align: center;
}
.qform-foot strong { color: var(--ink); font-weight: 500; }

@media (max-width: 540px) {
  .qform-form { grid-template-columns: 1fr; }
}

/* Lock page scroll when modal is open */
body.qform-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   GALLERY — editorial mosaic of on-site work
   12-col masonry with varied tile spans. A unifying desaturation
   keeps the raw varied photos cohesive; full color returns on
   hover along with a brand-tinted overlay and a mono caption.
   ═══════════════════════════════════════════════════════════════════ */

.gallery {
  padding: var(--section) var(--gutter) clamp(60px, 10vh, 100px);
  background: var(--bg);
}
.gallery-header {
  max-width: 1240px;
  margin: 0 auto clamp(48px, 7vh, 84px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-end;
}
.gallery-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
  grid-column: 1 / -1;
  margin-bottom: -10px;
}
.gallery-header .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
}
.gallery-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.gallery-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}
.gallery-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 460px;
  padding-bottom: 8px;
}

/* ─── Mosaic grid ────────────────────────────────────────────────
   12 columns, 96px row tracks. Each cell defaults to span 4 cols
   and 4 rows (roughly 4:3). Modifier classes change footprint to
   create rhythm: .g-wide doubles width, .g-tall doubles height. */
.gallery-grid {
  list-style: none;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 18px);
  padding: 0;
}
.g-cell {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: pointer;
  /* Soft rise + fade reveal, staggered via nth-child below so the
     mosaic doesn't all pop in at once. */
  opacity: 0;
  transform: translateY(24px);
  animation: gallery-rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: calc(var(--gi, 0) * 60ms);
}
.g-cell.g-wide { grid-column: span 6; }
.g-cell.g-tall { grid-row: span 6; }
.g-cell.g-wide.g-tall { grid-column: span 6; grid-row: span 6; }

.g-cell:nth-child(1)  { --gi: 0; }
.g-cell:nth-child(2)  { --gi: 1; }
.g-cell:nth-child(3)  { --gi: 2; }
.g-cell:nth-child(4)  { --gi: 3; }
.g-cell:nth-child(5)  { --gi: 4; }
.g-cell:nth-child(6)  { --gi: 5; }
.g-cell:nth-child(7)  { --gi: 6; }
.g-cell:nth-child(8)  { --gi: 7; }
.g-cell:nth-child(9)  { --gi: 8; }
.g-cell:nth-child(10) { --gi: 9; }
.g-cell:nth-child(11) { --gi: 10; }
.g-cell:nth-child(12) { --gi: 11; }
.g-cell:nth-child(13) { --gi: 12; }
.g-cell:nth-child(14) { --gi: 13; }
.g-cell:nth-child(15) { --gi: 14; }
.g-cell:nth-child(16) { --gi: 15; }
.g-cell:nth-child(17) { --gi: 16; }
.g-cell:nth-child(18) { --gi: 17; }
.g-cell:nth-child(19) { --gi: 18; }
.g-cell:nth-child(20) { --gi: 19; }
.g-cell:nth-child(21) { --gi: 20; }
.g-cell:nth-child(22) { --gi: 21; }
.g-cell:nth-child(23) { --gi: 22; }
.g-cell:nth-child(24) { --gi: 23; }
.g-cell:nth-child(25) { --gi: 24; }
.g-cell:nth-child(26) { --gi: 25; }
.g-cell:nth-child(27) { --gi: 26; }
.g-cell:nth-child(28) { --gi: 27; }
.g-cell:nth-child(29) { --gi: 28; }
.g-cell:nth-child(30) { --gi: 29; }
.g-cell:nth-child(31) { --gi: 30; }
.g-cell:nth-child(32) { --gi: 31; }

@keyframes gallery-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* "Ver más" — hide cells past the first 16 until the user requests
   the rest. Keeps the section scannable and below-the-fold light. */
.g-cell.is-hidden { display: none; }

.gallery-more-wrap {
  max-width: 1440px;
  margin: clamp(28px, 4vh, 44px) auto 0;
  display: flex;
  justify-content: center;
}
.gallery-more {
  display: inline-flex; align-items: center;
  gap: 14px;
  padding: 14px 22px 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background 0.2s, color 0.2s;
}
.gallery-more:hover { background: var(--ink); color: var(--bg); }
.gallery-more:hover .gallery-more-count {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}
.gallery-more-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding: 3px 9px 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.gallery-more svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.gallery-more:hover svg { transform: translateY(2px); }
.gallery-more-wrap.is-hidden { display: none; }

.g-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.5) contrast(1.05) brightness(0.95);
  transform: scale(1.02);
  transition: filter 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.g-cell:hover img, .g-cell:focus-within img {
  filter: grayscale(0) contrast(1.05) brightness(1);
  transform: scale(1.05);
}

/* Footer strip below the mosaic — mono micro-meta. */
.gallery-foot {
  max-width: 1440px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(8, 1fr); }
  .g-cell { grid-column: span 4; grid-row: span 4; }
  .g-cell.g-wide { grid-column: span 4; }
  .g-cell.g-tall { grid-row: span 5; }
}
@media (max-width: 720px) {
  .gallery-header { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 72px; }
  .g-cell { grid-column: span 4; grid-row: span 4; }
  .g-cell.g-tall { grid-row: span 5; }
  /* Always show captions on touch / small viewports — no hover layer */
  .g-cell img { filter: grayscale(0.1) contrast(1.05); }
}

/* ═══════════════════════════════════════════════════════════════════
   NUMBERS — quiet stats
   ═══════════════════════════════════════════════════════════════════ */

.numbers {
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  background: var(--surface-deep);
  color: var(--surface-deep-ink);
  position: relative;
}
.numbers-inner {
  max-width: 1240px; margin: 0 auto;
}
.numbers-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 50px;
  display: flex; align-items: center; gap: 12px;
}
.numbers-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: rgba(255,255,255,0.4);
}
.numbers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.numbers-row > div {
  background: var(--surface-deep);
  padding: 36px 28px 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.numbers-row strong {
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--surface-deep-ink);
}
.numbers-row .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.numbers-row span {
  font-size: 13px;
  color: rgba(245,241,232,0.6);
  line-height: 1.5;
  max-width: 220px;
}
.numbers-row em {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(245,241,232,0.85);
}

@media (max-width: 760px) {
  .numbers-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   VISIT — location + contact
   ═══════════════════════════════════════════════════════════════════ */

.visit {
  padding: var(--section) var(--gutter);
}
.visit-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}
.visit-card {
  display: flex; flex-direction: column; gap: 28px;
}
.visit .eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.visit .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
}
.visit-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.visit-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.visit-rows {
  display: grid; gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.visit-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  font-size: 16px;
  align-items: flex-start;
}
.visit-rows .lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  padding-top: 4px;
}
.visit-rows strong { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.visit-rows a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.visit-rows a:hover { text-decoration-color: var(--ink); }

.visit-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.visit-actions .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.visit-actions .btn-primary { background: var(--ink); color: var(--bg); }
.visit-actions .btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.visit-actions .btn-ghost { border: 1px solid var(--ink); }
.visit-actions .btn-ghost:hover { background: var(--ink); color: var(--bg); }
.visit-actions svg { width: 15px; height: 15px; }

/* Map sketch */
.visit-map {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.visit-map svg { width: 100%; height: 100%; display: block; }
.visit-map .pin {
  position: absolute; left: 58%; top: 48%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
}
.visit-map .pin::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  border-radius: 999px;
  animation: pulse-pin 2.4s ease-in-out infinite;
}
.visit-map .pin::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--bg); border-radius: 999px;
}
.visit-map .map-tag {
  position: absolute; left: 18px; bottom: 18px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px; border-radius: 4px;
}

@keyframes pulse-pin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.3; }
}

@media (max-width: 880px) {
  .visit-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA — closing line
   ═══════════════════════════════════════════════════════════════════ */

.cta-strip {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.cta-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-end;
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.cta-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-side {
  display: flex; flex-direction: column; gap: 18px;
  padding-bottom: 18px;
}
.cta-side p {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  max-width: 360px;
}
.cta-side .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500;
  align-self: flex-start;
  transition: transform 0.2s, background 0.2s;
}
.cta-side .btn:hover { background: var(--blue); transform: translateY(-2px); }
.cta-side .btn svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

footer {
  padding: 60px var(--gutter) 36px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-brand .mark-row {
  display: flex; align-items: center; gap: 12px;
}
.footer-logo {
  height: 110px; width: auto; display: block;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.45;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  max-width: 1240px; margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS — tighten spacing, fonts, and grids on phones
   so the editorial whitespace still feels intentional, not broken.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 80px; }

  /* Nav: keep mark + CTA, drop language toggle */
  .nav { padding: 8px var(--gutter); }
  .nav-lang { display: none; }
  .nav-cta { padding: 8px 14px 8px 12px; font-size: 12px; }

  /* Hero — tighten everything */
  .hero { padding: 240px var(--gutter) 60px; min-height: auto; }
  .hero-grid { gap: 28px; }
  .hero-title { font-size: clamp(40px, 11vw, 80px); line-height: 0.95; max-width: 100%; }
  .hero-title em { font-size: 0.92em; }
  .hero-meta-tl { top: -44px; font-size: 10px; }
  .hero-meta-bl { bottom: -36px; font-size: 10px; }
  .hero-product { min-height: 360px; gap: 22px; }
  .hero-product-stage { max-width: 100%; }
  /* iOS Safari can't composite video with mix-blend-mode + mask-image
     simultaneously — the video silently fails to paint. Drop the blend
     on mobile and lean on filter + a softer mask instead. */
  .hero-video {
    mix-blend-mode: normal;
    filter: contrast(1.02) saturate(0.88);
  }

  /* Manifesto — already collapses, just resize */
  .manifesto p { font-size: 22px; line-height: 1.35; }

  /* Lines — list grid stays usable on narrow */
  .lines-list li { grid-template-columns: 40px 1fr auto; gap: 14px; padding: 22px 4px; }
  .lines-list li:hover, .lines-list li.active { padding-left: 14px; }
  .ln-text h3 { font-size: 22px; }
  .ln-text p { font-size: 13px; }
  .ln-go { display: none; } /* implied by the row itself; saves the cramped right column */
  .lines-stage { aspect-ratio: 1.2 / 1; }

  /* Feature — image first, text below; specs to 1 col */
  .feature-inner { gap: 32px; }
  .feature-title { font-size: clamp(40px, 11vw, 72px); }
  .feature-body { font-size: 18px; }
  .feature-specs { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .feature-image { aspect-ratio: 4 / 4.5; }

  /* Numbers — drop to 1 col so each stat gets full attention */
  .numbers-row { grid-template-columns: 1fr; }
  .numbers-row > div { padding: 26px 22px; }
  .numbers-row strong { font-size: clamp(40px, 12vw, 64px); }

  /* Visit — stack rows */
  .visit-title { font-size: clamp(36px, 9vw, 56px); }
  .visit-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .visit-rows .lbl { padding-top: 0; margin-bottom: 2px; }
  .visit-map { aspect-ratio: 4 / 4; }
  .visit-actions .btn { padding: 12px 18px; font-size: 13px; flex: 1 1 auto; justify-content: center; }

  /* CTA close */
  .cta-strip { padding: 80px var(--gutter); }
  .cta-title { font-size: clamp(44px, 13vw, 88px); }
  .cta-side .btn { padding: 16px 22px; font-size: 14px; }

  /* Footer — single column, group cols left-aligned */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { gap: 8px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(38px, 14vw, 64px); }
  .nav-logo { height: 60px; }
  .visit-actions { flex-direction: column; align-items: stretch; }
  .visit-actions .btn { width: 100%; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].in { transition-delay: 0.08s; }
[data-reveal-delay="2"].in { transition-delay: 0.16s; }
[data-reveal-delay="3"].in { transition-delay: 0.24s; }
[data-reveal-delay="4"].in { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   THEME VARIANTS — selectable from the Tweaks panel.
   Default :root above is "puerto" (cool white, deep-navy ink). The
   selectors below override the relevant tokens for each preset.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Puerto — clean white, cool gray rules, deep-navy ink ────────── */
body[data-theme="puerto"] {
  --bg: #ffffff;
  --bg-deep: #edf2f7;
  --paper: #f5f8fb;
  --ink: #0e2233;
  --ink-soft: #4b5e72;
  --ink-mute: #8c9aac;
  --rule: #dbe3ec;
  --rule-soft: #ecf1f5;
  --green: #44b649;
  --blue: #1b5bd0;
  --surface-deep: var(--ink);
  --surface-deep-ink: #ffffff;
  --surface-lines: var(--paper);
  --nav-tint: 245, 248, 251;
}

/* ── Atlántico — pale cool-blue body, same accents ───────────────── */
body[data-theme="atlantico"] {
  --bg: #eef3f8;
  --bg-deep: #dfe7f0;
  --paper: #f6f9fc;
  --ink: #0e2334;
  --ink-soft: #475a6e;
  --ink-mute: #8694a6;
  --rule: #cfd9e4;
  --rule-soft: #e0e7ef;
  --green: #44b649;
  --blue: #1b5bd0;
  --surface-deep: var(--ink);
  --surface-deep-ink: #ffffff;
  --surface-lines: var(--paper);
  --nav-tint: 238, 243, 248;
}

/* ── Profundo — white body, deep-navy nav/numbers/footer/lines ───── */
body[data-theme="profundo"] {
  --bg: #ffffff;
  --bg-deep: #eef2f6;
  --paper: #0e2233;             /* "Divisiones" section flips dark */
  --ink: #0e2233;
  --ink-soft: #4b5e72;
  --ink-mute: #8c9aac;
  --rule: #dbe3ec;
  --rule-soft: #ecf1f5;
  --green: #44b649;
  --blue: #1f63d8;
  --surface-deep: #0e2233;
  --surface-deep-ink: #ffffff;
  --surface-lines: #0e2233;     /* lines becomes a dark band */
  --nav-tint: 14, 34, 51;
}
/* In Profundo, the lines section sits on deep navy — flip text colors */
body[data-theme="profundo"] .lines,
body[data-theme="profundo"] .lines .lines-title,
body[data-theme="profundo"] .lines .lines-list li,
body[data-theme="profundo"] .lines .ln-text h3 {
  color: #ffffff;
}
body[data-theme="profundo"] .lines .eyebrow,
body[data-theme="profundo"] .lines .ln-text p,
body[data-theme="profundo"] .lines .ln-meta,
body[data-theme="profundo"] .lines .ln-go,
body[data-theme="profundo"] .lines .ln-num {
  color: rgba(255, 255, 255, 0.62);
}
body[data-theme="profundo"] .lines .lines-title em {
  color: rgba(255, 255, 255, 0.72);
}
body[data-theme="profundo"] .lines-list { border-top-color: rgba(255,255,255,0.14); }
body[data-theme="profundo"] .lines-list li { border-bottom-color: rgba(255,255,255,0.14); }
body[data-theme="profundo"] .lines-stage { background: rgba(255, 255, 255, 0.05); }
body[data-theme="profundo"] .lines-stage .stage-meta,
body[data-theme="profundo"] .lines-stage .stage-meta .stage-meta-r {
  color: rgba(255, 255, 255, 0.78); text-shadow: none;
}
/* Nav in Profundo: always tinted-dark, light foreground */
body[data-theme="profundo"] .nav,
body[data-theme="profundo"] .nav.scrolled {
  background: rgba(14, 34, 51, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body[data-theme="profundo"] .nav,
body[data-theme="profundo"] .nav .nav-links a,
body[data-theme="profundo"] .nav .nav-lang strong { color: #ffffff; }
body[data-theme="profundo"] .nav .nav-lang { color: rgba(255,255,255,0.55); }
body[data-theme="profundo"] .nav-cta { background: var(--green); color: #ffffff; }
body[data-theme="profundo"] .nav-cta:hover { background: var(--blue); }
body[data-theme="profundo"] .nav-logo { filter: brightness(0) invert(1); }
/* Footer on dark */
body[data-theme="profundo"] footer {
  background: #0e2233;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.08);
}
body[data-theme="profundo"] footer .footer-brand p,
body[data-theme="profundo"] footer .footer-col a,
body[data-theme="profundo"] footer .footer-col li {
  color: rgba(255, 255, 255, 0.72);
}
body[data-theme="profundo"] footer .footer-col h4 { color: rgba(255,255,255,0.5); }
body[data-theme="profundo"] footer .footer-bottom {
  border-top-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}
body[data-theme="profundo"] .footer-logo { filter: brightness(0) invert(1); }

/* ── Crema — original warm paper aesthetic (the previous look) ──── */
body[data-theme="crema"] {
  --bg: #f5f1e8;
  --bg-deep: #ece6d6;
  --paper: #fbf8ef;
  --ink: #0c1626;
  --ink-soft: #4b5563;
  --ink-mute: #8a8579;
  --rule: #d8d0bc;
  --rule-soft: #e6dfcb;
  --green: #4fb838;
  --blue: #0e5bd8;
  --surface-deep: var(--ink);
  --surface-deep-ink: var(--bg);
  --surface-lines: var(--paper);
  --nav-tint: 245, 241, 232;
}

/* ── Strong Hero toggle — paints the hero section deep navy ─────── */
body[data-strong-hero="true"] .hero {
  background: #0e2233;
  color: #ffffff;
}
body[data-strong-hero="true"] .hero .hero-title { color: #ffffff; }
body[data-strong-hero="true"] .hero .hero-title em { color: rgba(255,255,255,0.78); }
body[data-strong-hero="true"] .hero .hero-meta { color: rgba(255,255,255,0.7); }
body[data-strong-hero="true"] .hero .hero-meta-tl .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(68, 182, 73, 0.28);
}
body[data-strong-hero="true"] .hero .hero-slide img {
  filter: contrast(1.05) saturate(0.92) brightness(0.78);
}
body[data-strong-hero="true"] .nav,
body[data-strong-hero="true"] .nav.scrolled {
  background: rgba(14, 34, 51, 0);
  border-bottom-color: transparent;
}
body[data-strong-hero="true"] .nav.scrolled {
  background: rgba(14, 34, 51, 0.82);
  border-bottom-color: rgba(255,255,255,0.08);
}
body[data-strong-hero="true"] .nav,
body[data-strong-hero="true"] .nav .nav-links a,
body[data-strong-hero="true"] .nav .nav-lang strong { color: #ffffff; }
body[data-strong-hero="true"] .nav .nav-lang { color: rgba(255,255,255,0.55); }
body[data-strong-hero="true"] .nav-cta { background: var(--green); color: #ffffff; }
body[data-strong-hero="true"] .nav-cta:hover { background: var(--blue); }
/* Logo stays full-color — the green/blue brand identity reads
   cleanly against the dark hero and against the white nav once it
   gets the scrolled state. */
