/* ============================================================
   GSV — Green Strategic Value · site v2
   Direction: serious-institutional, contemporary, editorial.
   Brand-faithful: green #009640, gray #90908f, Work Sans.
   Single accent (green) locked across the page. Light theme,
   with two deliberate deep-green color-block sections.
   Shape system: buttons = pill, surfaces/media = 14px, inputs = 10px.
   Motion intensity 5: scroll reveals, hover lifts, the cycle ring.
   No em-dashes anywhere. No slop.
   ============================================================ */

:root {
  /* Brand (firm) */
  --green:      #009640;   /* primary accent, locked */
  --green-700:  #007a34;   /* hover / pressed */
  --green-800:  #0a5e30;
  --green-900:  #07401f;   /* deep, for color-block sections */
  --green-tint: #e7f3ec;   /* faint surface tint */
  --green-tint2:#f3f9f5;
  --gray:       #90908f;   /* corporate gray + wordmark */

  /* Neutrals — cool-warm paper, green-tinted ink */
  --ink:    #122019;   /* headings */
  --ink-2:  #34433c;   /* strong body */
  --body:   #4d5a53;   /* body copy, >= 4.5:1 on white */
  --muted:  #6c776f;   /* captions, meta */
  --line:   #e3e8e4;
  --line-2: #d0d8d2;
  --bg:     #ffffff;
  --paper:  #ffffff;
  --surface:#f4f7f4;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale — Work Sans, tight display */
  --display: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);
  --h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --h2:      clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --lead:    clamp(1.12rem, 1.02rem + 0.5vw, 1.35rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
  --gut: clamp(1.2rem, 4vw, 2.4rem);

  --r-surface: 14px;
  --r-input: 10px;

  --header-h: 92px;
  --z-header: 100;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* clip (not hidden) prevents stray horizontal scroll WITHOUT breaking position: sticky */
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* visually hidden but available to screen readers (table captions, etc.) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { width: min(var(--maxw), 100% - calc(var(--gut) * 2)); margin-inline: auto; }

/* Section rhythm */
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 8rem); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }

/* Eyebrow — used sparingly (max 1 per 3 sections) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--green-700); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.02em;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--green);
  display: inline-block;
}

.lead { font-size: var(--lead); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.measure { max-width: 65ch; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 140ms var(--ease), background 200ms var(--ease),
              border-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn .ico { width: 1.05em; height: 1.05em; transition: transform 200ms var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(7,64,31,0.15); }
.btn--primary:hover { background: var(--green-700); box-shadow: 0 10px 24px -12px rgba(0,150,64,0.6); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--ondark { background: #fff; color: var(--green-900); }
.btn--ondark:hover { background: var(--green-tint); transform: translateY(-1px); }
.btn--ghostdark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghostdark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--green-700); font-weight: 600;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 260ms var(--ease);
}
.tlink:hover { background-size: 100% 1.5px; }
.tlink .ico { width: 1em; height: 1em; transition: transform 200ms var(--ease); }
.tlink:hover .ico { transform: translateX(3px); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease);
}
/* fondo blanco sólido (pseudo detrás del contenido para mantener el logo SVG nítido) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #ffffff;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 74px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: var(--ink-2); font-size: 0.95rem; font-weight: 500;
  position: relative; transition: color 160ms var(--ease);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--green-700); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 0.3rem; padding-block: 0.65rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; color: var(--ink); }

@media (max-width: 600px) { :root { --header-h: 72px; } .logo-link img { height: 52px; } }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 240ms var(--ease), opacity 240ms var(--ease), visibility 240ms var(--ease);
    box-shadow: 0 24px 40px -28px rgba(18,32,25,0.5);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.32fr 0.68fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; min-height: min(78vh, 720px);
}
.hero__copy, .hero__media { min-width: 0; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1.0; }
.hero__title .accent { color: var(--green); }
.hero__lead { margin-top: 1.6rem; font-size: var(--lead); color: var(--ink-2); max-width: 42ch; }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__meta {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.92rem;
  max-width: 52ch;
}
.hero__meta strong { color: var(--ink-2); font-weight: 600; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

.hero__media { position: relative; }
.hero__media .frame {
  position: relative; border-radius: var(--r-surface); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -50px rgba(18,32,25,0.55);
}
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,64,31,0.42));
}
/* accent block peeking behind the image */
.hero__media::before {
  content: ""; position: absolute; z-index: -1; right: -3%; bottom: -6%;
  width: 62%; height: 62%; border-radius: var(--r-surface);
  background: linear-gradient(135deg, var(--green), var(--green-800));
  opacity: 0.14;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-bottom: 1rem; }
  .hero__media { order: -1; }
  .hero__media .frame { aspect-ratio: 16 / 11; }
}

/* ---------------- value grid (asymmetric 2x2 with a lead cell) ---------------- */
.value { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.value__intro { grid-column: span 12; max-width: 60ch; margin-bottom: clamp(1rem, 2vw, 2rem); }
.vcard {
  grid-column: span 6; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-surface); padding: clamp(1.4rem, 2.5vw, 2.1rem);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.vcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 24px 44px -34px rgba(18,32,25,0.5); }
.vcard__n { font-weight: 600; font-size: 0.85rem; color: var(--green); letter-spacing: 0.02em; }
.vcard h3 { margin-top: 0.5rem; font-size: var(--h3); }
.vcard p { margin-top: 0.7rem; color: var(--body); }
/* first card spans wider for rhythm */
.vcard--wide { grid-column: span 12; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: center; background: var(--green-tint2); border-color: var(--green-tint); }
.vcard--wide .vcard__body { padding-right: 1rem; }
.vcard--wide h3 { font-size: var(--h2); }
@media (max-width: 760px) {
  /* !important overrides inline grid-column:span N on individual cards */
  .value > .vcard, .value > article { grid-column: 1 / -1 !important; }
  .vcard, .vcard--wide { grid-column: span 12; }
  .vcard--wide { grid-template-columns: 1fr; }
}

/* ---------------- methodology — horizontal stepped rail ---------------- */
.method__head { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 60ch; }
@property --rail { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; --rail: 0%; transition: --rail 1.3s var(--ease); }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green) var(--rail), var(--line) var(--rail));
}
.step { position: relative; padding: 0 1rem 0 0; }
.step__dot {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line-2); color: var(--green-700);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  position: relative; z-index: 1; transition: border-color 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}
.step.is-on .step__dot { border-color: var(--green); background: var(--green); color: #fff; }
.step h4 { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.01em; }
.step p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--body); padding-right: 0.8rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--green) var(--rail,0%), var(--line) var(--rail,0%)); }
  .step { padding: 0 0 1.8rem 3.8rem; }
  .step:last-child { padding-bottom: 0; }
  .step h4 { margin-top: 0; }
  .step__dot { position: absolute; left: 0; top: 0; }
}

/* ---------------- services — the iterative cycle ---------------- */
.cycle { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cycle__copy h2 { font-size: var(--h2); }
.cycle__copy p { margin-top: 1.1rem; }
.cycle__list { margin-top: 1.8rem; display: grid; gap: 0; }
.cycle__item {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0;
  border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500;
  transition: color 200ms var(--ease), padding-left 240ms var(--ease);
}
.cycle__item:last-child { border-bottom: 1px solid var(--line); }
.cycle__item:hover, .cycle__item.is-hl { color: var(--green-700); padding-left: 0.4rem; }
.cycle__item .num { font-size: 0.82rem; color: var(--green); font-weight: 700; width: 1.6rem; }
.cycle__item .label { flex: 1; }
.cycle__item .ico { width: 1.05em; height: 1.05em; opacity: 0; transform: translateX(-6px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); color: var(--green); }
.cycle__item:hover .ico, .cycle__item.is-hl .ico { opacity: 1; transform: translateX(0); }

/* interactive ring diagram (monochrome green on home) */
.ring { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.ring__svg { width: 100%; height: 100%; overflow: visible; shape-rendering: geometricPrecision; }
/* rotation is done with SMIL <animateTransform> (re-renders the vector each
   frame, so it stays crisp) instead of a CSS transform (which rasterizes the
   group into a bitmap layer and pixelates while spinning). No will-change. */
.ring__seg { cursor: pointer; }
.ring__seg .seg-hit { fill: transparent; }                 /* generous hit target */
.ring__seg .seg-dot {
  fill: var(--green); stroke: var(--green-tint); stroke-width: 0;
  pointer-events: none; transition: r 200ms var(--ease), fill 200ms var(--ease), stroke-width 200ms var(--ease);
}
.ring__seg:hover .seg-dot, .ring__seg:focus-visible .seg-dot, .ring__seg.is-hl .seg-dot {
  fill: var(--green-700); r: 6; stroke-width: 5;          /* enlarge + soft halo */
}
.ring__seg:focus-visible { outline: none; }

/* tooltip that sits on the hovered arc (positioned by JS) */
.ring__tip {
  position: absolute; left: 0; top: 0; z-index: 6;
  transform: translate(-50%, -50%) scale(0.94);
  background: var(--ink); color: #fff; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.01em; padding: 0.3rem 0.62rem; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.ring__tip.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }


/* center readout */
.ring__core {
  position: absolute; inset: 22%; border-radius: 50%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; padding: 1rem;
  background: radial-gradient(circle at 30% 25%, var(--green-tint2), var(--paper));
  border: 1px solid var(--green-tint); box-shadow: inset 0 1px 0 #fff;
}
.ring__core-label { font-size: 0.8rem; color: var(--muted); transition: color 200ms var(--ease); }
.ring__core-title { font-size: 1.45rem; color: var(--ink); font-weight: 680; letter-spacing: -0.02em; line-height: 1.08; max-width: 11ch; }
.ring.is-active .ring__core-label { color: var(--green-700); font-weight: 600; }

@media (max-width: 860px) { .cycle { grid-template-columns: 1fr; } .ring { order: -1; } }

/* ---------------- split feature (digital / referencias) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 36px 70px -50px rgba(18,32,25,0.5); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy h2 { font-size: var(--h2); }
.split__copy p { margin-top: 1rem; }
.split__copy .tlink { margin-top: 1.4rem; }
.chips { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: -1; } }

/* ---------------- deep green color-block sections ---------------- */
.block-deep {
  background: var(--green-900);
  background-image: radial-gradient(120% 120% at 85% 10%, rgba(0,150,64,0.35), transparent 55%);
  color: rgba(255,255,255,0.86);
  border-radius: clamp(18px, 3vw, 28px);
}
.block-deep h2, .block-deep h3 { color: #fff; }
.block-deep .eyebrow { color: #8ce0ac; }
.block-deep .eyebrow::before { background: #8ce0ac; }

/* alliance */
.alliance { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem); }
.alliance h2 { font-size: var(--h2); }
.alliance p { margin-top: 1.2rem; color: rgba(255,255,255,0.82); max-width: 50ch; }
.alliance__partners { display: grid; gap: 1rem; }
.partner {
  position: relative; overflow: hidden;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem 1.2rem 1.6rem; border-radius: var(--r-surface);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  transition: background 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.partner:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.partner__name { color: #fff; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.partner__role { color: rgba(255,255,255,0.66); font-size: 0.88rem; }

/* brand accents (colors derived from the GSV swirl: INERCO green, NFQ/NWorld blue+magenta) */
.partner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.partner--nworld::before { background: linear-gradient(180deg, #2f86f0, #d6477e); }
.partner--inerco::before { background: #4fd089; }
.partner--nworld .ico { color: #8fc0ff !important; }
.partner--inerco .ico { color: #8ce0ac !important; }
.partner--nworld:hover { border-color: rgba(90,150,240,0.55); box-shadow: 0 14px 34px -18px rgba(47,134,240,0.55); }
.partner--inerco:hover { border-color: rgba(79,208,137,0.55); box-shadow: 0 14px 34px -18px rgba(79,208,137,0.5); }
@media (max-width: 800px) { .alliance { grid-template-columns: 1fr; } }

/* final CTA */
.cta-final { text-align: center; padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); }
.cta-final h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 18ch; margin-inline: auto; }
/* final CTA with background image (deep-green scrim keeps text legible) */
.cta-final--img { position: relative; overflow: hidden; isolation: isolate; }
.cta-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-final--img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* verde más claro que la alianza (green-900) para diferenciarlo, sin perder legibilidad */
  background: linear-gradient(180deg, rgba(13,107,57,0.80), rgba(11,94,48,0.86)),
              radial-gradient(120% 120% at 85% 10%, rgba(0,180,82,0.34), transparent 55%);
}
.cta-final--img > :not(.cta-final__bg) { position: relative; z-index: 2; }
.cta-final p { margin: 1.3rem auto 0; color: rgba(255,255,255,0.82); max-width: 52ch; }
.cta-final .hero__cta { justify-content: center; margin-top: 2.2rem; }

/* ---------------- footer ---------------- */
.site-footer { background: #0c1712; color: rgba(255,255,255,0.7); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.footer__brand img { height: 62px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { margin-top: 1.2rem; max-width: 38ch; font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.footer__brand .partners { margin-top: 1.2rem; display: flex; gap: 1rem; font-size: 0.9rem; }
.footer__brand .partners a { color: rgba(255,255,255,0.82); }
.footer__brand .partners a:hover { color: #fff; }
.footer__col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.footer__col ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.6rem; }
.footer__col a { color: rgba(255,255,255,0.66); font-size: 0.95rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.66);
}
.footer__bottom a:hover { color: #fff; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------------- scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring__rotor { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* skip link */
.skip {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -130%);
  background: var(--green); color: #fff; font-weight: 600;
  padding: 0.7rem 1.3rem; border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 36px -14px rgba(7,64,31,0.55);
  z-index: 300; transition: transform 260ms var(--ease);
}
.skip:focus { transform: translate(-50%, 0); outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip { transition: none; } }

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---- page hero (compact) ---- */
.page-hero { padding-top: clamp(2.4rem, 1.8rem + 3vw, 4rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { font-size: var(--h1); max-width: 20ch; }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.page-hero__grid .lead { max-width: 46ch; }
.page-hero__media { border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 16/11; box-shadow: 0 36px 70px -50px rgba(18,32,25,0.5); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { order: -1; } }

/* generic section head */
.shead { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.shead h2 { font-size: var(--h2); }
.shead p { margin-top: 1rem; }
.section-line { border-top: 1px solid var(--line); }

/* ---- mission / vision ---- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.6rem); }
.mv__card { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--paper); }
.mv__card h3 { font-size: var(--h3); }
.mv__card p { margin-top: 0.8rem; color: var(--body); }
.mv__card .tag { font-size: 0.82rem; font-weight: 600; color: var(--green); letter-spacing: 0.02em; }
.mv__card--accent { background: var(--green-tint2); border-color: var(--green-tint); }
@media (max-width: 700px) { .mv { grid-template-columns: 1fr; } }

/* ---- servicios: sticky sub-nav of dimensions ---- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(251,252,251,0.9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.subnav .wrap { overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .cyclenav { margin: 0; flex-wrap: nowrap; padding-block: 0.7rem; }
.subnav .cyclenav a { flex: 0 0 auto; }
/* single green accent (no per-dimension color), numbers stay neutral */
.subnav .cyclenav a .num { color: var(--muted); }
.subnav .cyclenav a:hover,
.subnav .cyclenav a.is-current {
  border-color: var(--green); color: var(--green-700); background: var(--green-tint2);
}
.subnav .cyclenav a:hover .num,
.subnav .cyclenav a.is-current .num { color: var(--green); }
.cyclenav a.is-current { border-color: var(--t, var(--green)); color: var(--t, var(--green-700)); background: var(--t-tint, var(--green-tint2)); }
.cyclenav a.is-current .num { color: var(--t, var(--green)); }

/* ---- servicios: cycle nav strip ---- */
.cyclenav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.cyclenav a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem;
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: 0.92rem;
  color: var(--ink-2); transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.cyclenav a .num { font-size: 0.78rem; font-weight: 700; color: var(--t, var(--green)); }
.cyclenav a:hover { border-color: var(--t, var(--green)); color: var(--t, var(--green-700)); background: var(--t-tint, var(--green-tint2)); }

/* dimension coded palette (servicios only) — kept for reference */
/* .t-1 { --t: #009640; --t-tint: #e7f3ec; }
   .t-2 { --t: #1f7ae0; --t-tint: #e7f0fb; }
   .t-3 { --t: #0c8f7a; --t-tint: #e2f4f0; }
   .t-4 { --t: #cf3f63; --t-tint: #fbe8ee; }
   .t-5 { --t: #b07d2a; --t-tint: #f6efe0; }
   .t-6 { --t: #5b53c4; --t-tint: #ecebf8; } */
/* single-green mode (temporary). Remove this and restore the block above to
   bring back per-dimension colors. */
.t-1, .t-2, .t-3, .t-4, .t-5, .t-6 { --t: var(--green); --t-tint: var(--green-tint2); }

/* dimension block */
.dim { padding-block: clamp(2.8rem, 4vw, 4.5rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.dim__head { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; max-width: 70ch; }
.dim__badge {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--t-tint); color: var(--t); display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
}
.dim__head .eyebrow { color: var(--t); }
.dim__head .eyebrow::before { background: var(--t); }
.dim__head h2 { font-size: var(--h2); margin-top: 0.5rem; }
.dim__head p { margin-top: 0.8rem; color: var(--body); }

.subhead { font-size: 0.92rem; font-weight: 600; color: var(--t, var(--green-700)); margin: clamp(1.8rem,3vw,2.6rem) 0 1.1rem; display: flex; align-items: center; gap: 0.55rem; }
.subhead::before { content: ""; width: 1.2rem; height: 2px; background: currentColor; flex: none; }

/* deliverables */
.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.2rem); }
.dlv {
  padding: 1.3rem; border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--paper);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.dlv:hover { transform: translateY(-3px); border-color: var(--t); }
.dlv__mark { width: 30px; height: 4px; border-radius: 999px; background: var(--t); margin-bottom: 1rem; }
.dlv h4 { font-size: 1.05rem; color: var(--ink); }
.dlv p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--body); }
@media (max-width: 760px) { .deliverables { grid-template-columns: 1fr; } }

/* accordion (native details) */
.acc { border-top: 1px solid var(--line-2); margin-top: 0.4rem; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--ink); font-size: 1.05rem;
  transition: color 180ms var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--t, var(--green-700)); }
.acc summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform 260ms var(--ease); }
.acc summary .plus::before, .acc summary .plus::after { content: ""; position: absolute; background: var(--t, var(--green)); border-radius: 2px; }
.acc summary .plus::before { left: 0; top: 10px; width: 22px; height: 2px; }
.acc summary .plus::after { left: 10px; top: 0; width: 2px; height: 22px; transition: transform 260ms var(--ease); }
.acc details[open] summary .plus::after { transform: rotate(90deg); }
.acc__body { padding: 0 0 1.3rem; color: var(--body); max-width: 76ch; }

/* ---- digital ---- */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.dcard {
  display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--paper);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 24px 44px -34px rgba(18,32,25,0.5); }
.dcard__meta { font-size: 0.88rem; font-weight: 600; color: var(--green-700); }
.dcard h3 { font-size: 1.25rem; margin-top: 0.9rem; }
.dcard p { margin-top: 0.7rem; color: var(--body); font-size: 0.96rem; flex: 1; }
.dcard .tlink { margin-top: 1.2rem; font-size: 0.92rem; }
.dcard--soft { background: var(--green-tint2); border-color: var(--green-tint); }
@media (max-width: 860px) { .dgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dgrid { grid-template-columns: 1fr; } }

/* ---- contacto form ---- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__aside h2 { font-size: var(--h2); }
.contact__aside p { margin-top: 1rem; color: var(--body); max-width: 42ch; }
.contact__points { margin-top: 1.8rem; display: grid; gap: 1rem; }
.cpoint { display: flex; gap: 0.8rem; align-items: baseline; color: var(--ink-2); }
.cpoint .ico { color: var(--green); flex: none; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--paper); }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  width: 100%; min-width: 0; max-width: 100%;   /* let inputs shrink inside grid cells */
  border: 1px solid var(--line-2); border-radius: var(--r-input); padding: 0.8rem 0.95rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1.1rem; display: grid; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form__note { font-size: 0.85rem; color: var(--muted); max-width: 34ch; }
.form__status { font-size: 0.95rem; font-weight: 500; }
.form__status[data-state="ok"] { color: var(--green-700); }
.form__status[data-state="err"] { color: #c0392b; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

/* ---- legal prose ---- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--h3); margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); margin-top: 0.9rem; }
.prose ul { margin-top: 0.9rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.prose .meta { color: var(--muted); font-size: 0.92rem; }

/* small CTA band (reused on inner pages) */
.cta-band { padding: clamp(2.4rem,4vw,3.6rem) clamp(1.5rem,4vw,3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.5rem,1.1rem+1.6vw,2.1rem); max-width: 24ch; font-weight: 600; }
.cta-band .hero__cta { margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---- referencias: sectors ---- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.sector {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0.4rem;
  border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500;
  transition: padding-left 220ms var(--ease), color 200ms var(--ease);
}
.sector:hover { padding-left: 0.6rem; color: var(--green-700); }
.sector__n { font-size: 0.8rem; font-weight: 700; color: var(--green); flex: none; }
@media (min-width: 701px) { .sector:nth-child(odd) { padding-right: 1.5rem; } .sector:nth-child(even) { padding-left: 1.5rem; } }
@media (max-width: 700px) { .sectors { grid-template-columns: 1fr; } }

/* ============================================================
   HOME · value
   DEFAULT (mobile + tablet): panels stack vertically (normal scroll).
   JS adds .is-pinned only on desktop (>=861px) to turn it into a
   pinned horizontal scroll that pans on vertical scroll.
   ============================================================ */
.hscroll { position: relative; }
.hscroll__sticky { padding-block: clamp(3rem, 2rem + 5vw, 5rem); }
.hscroll__track { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); padding-inline: var(--gut); }

.hpanel {
  position: relative; display: flex; border-radius: var(--r-surface); overflow: hidden;
  background: var(--ink); min-height: clamp(320px, 52vh, 440px);
}
.hpanel__media { position: absolute; inset: 0; }
.hpanel__media img { width: 100%; height: 100%; object-fit: cover; }
.hpanel__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,64,31,0.04) 28%, rgba(7,64,31,0.55) 62%, rgba(5,42,22,0.92));
}
.hpanel__body { position: relative; z-index: 1; margin-top: auto; padding: clamp(1.4rem, 2.4vw, 2rem); color: #fff; }
.hpanel__n { font-size: 0.85rem; font-weight: 700; color: #8ce0ac; letter-spacing: 0.02em; }
.hpanel h3 { color: #fff; font-size: var(--h3); margin-top: 0.5rem; }
.hpanel p { color: rgba(255,255,255,0.86); margin-top: 0.6rem; font-size: 0.98rem; max-width: 38ch; }

.hpanel--intro {
  background: var(--surface); border: 1px solid var(--line);
  flex-direction: column; justify-content: center; min-height: 0;
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.hpanel--intro h2 { font-size: var(--h2); }
.hpanel--intro p { margin-top: 1rem; color: var(--body); max-width: 40ch; }

/* progress bar (only meaningful when pinned) */
.hscroll__progress { display: none; }

/* ---- pinned mode: desktop only (>=861px), JS-driven ---- */
.hscroll.is-pinned .hscroll__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; padding-block: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hscroll.is-pinned .hscroll__track {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  padding-inline: var(--gut) 0; align-items: stretch; will-change: transform;
}
.hscroll.is-pinned .hscroll__track::after { content: ""; flex: 0 0 var(--gut); }  /* right gutter */
.hscroll.is-pinned .hpanel { flex: 0 0 auto; width: min(82vw, 440px); min-height: min(66vh, 560px); will-change: transform; }
.hscroll.is-pinned .hpanel--intro { width: min(86vw, 480px); }
.hscroll.is-pinned .hscroll__progress {
  display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(20px, 4vh, 36px);
  height: 3px; background: var(--line-2); border-radius: 999px; overflow: hidden;
}
.hscroll.is-pinned .hscroll__progress span {
  display: block; height: 100%; width: 100%; background: var(--green);
  border-radius: 999px; transform: scaleX(0); transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  .hscroll__sticky { scroll-snap-type: none; }
}

/* smooth-pan depth: panels are transformed each frame by JS while pinned */
.hscroll.is-pinned .hpanel { will-change: transform; transform-origin: center; }

/* ============================================================
   v3 ELEVATION — variant A "Elevada"
   Surgical refinements over v2 (impeccable craft): finer easing,
   hero entrance choreography, image cohesion grade, tinted shadows,
   microinteraction polish, contrast + focus.
   ============================================================ */
:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo for entrances */
  --shadow-brand: 0 30px 60px -32px rgba(7,64,31,0.45);
  --muted: #65726b;                                /* darker: >=4.5:1 on bg */
}

/* refined focus ring everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, .ring__seg:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px;
}

/* hero: a touch more presence + choreographed entrance */
.hero__title { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.4rem); letter-spacing: -0.035em; }
.hero__lead { color: var(--ink-2); }
.hero .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 800ms var(--ease-expo), transform 800ms var(--ease-expo), filter 800ms var(--ease-expo); }
.hero .reveal.is-in { opacity: 1; transform: none; filter: none; }
.hero__media .frame { box-shadow: var(--shadow-brand); }
/* subtle, slow scale settle on the hero image for a premium first load */
.hero__media .frame img { animation: heroSettle 1400ms var(--ease-expo) both; }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* image cohesion: gentle, consistent grade ties the set together
   (placeholders now, generated set later) */
.hero__media .frame, .split__media, .page-hero__media, .hpanel { position: relative; }
.split__media img, .page-hero__media img { transition: transform 600ms var(--ease-expo); }
.split:hover .split__media img, .page-hero__media:hover img { transform: scale(1.03); }

/* tinted, layered shadows on key surfaces */
.vcard:hover, .dcard:hover, .mv__card:hover { box-shadow: var(--shadow-brand); }

/* buttons: finer physics */
.btn { transition: transform 220ms var(--ease-expo), background 220ms var(--ease), box-shadow 260ms var(--ease-expo), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,150,64,0.6); }
.btn--ondark:hover { transform: translateY(-2px); }

/* reveal: refined easing + slight blur-in (with reduced-motion handled below) */
.reveal { transition: opacity 760ms var(--ease-expo), transform 760ms var(--ease-expo), filter 760ms var(--ease-expo); }
.reveal:not(.is-in) { filter: blur(4px); }
.reveal.is-in { filter: none; }

/* methodology rail dots: a hair more tactile */
.step__dot { box-shadow: 0 0 0 0 var(--green-tint); transition: border-color 320ms var(--ease), background 320ms var(--ease), color 320ms var(--ease), box-shadow 320ms var(--ease); }
.step.is-on .step__dot { box-shadow: 0 0 0 6px var(--green-tint); }

/* section headings: balance + a touch more air */
h1, h2 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .hero .reveal, .reveal { filter: none !important; transform: none !important; }
  .hero__media .frame img { animation: none; }
}

/* ============================================================
   v3 ELEVATION · pase de pulido (labels + motion)
   ============================================================ */

/* --- labels más grandes y confiados (evitar texto micro tipo "IA") --- */
.eyebrow { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; gap: 0.75rem; }
.eyebrow::before { width: 2.2rem; }
.vcard__n, .mv__card .tag, .dcard__meta, .hpanel__n { font-size: 1.2rem; letter-spacing: 0; }
.subhead { font-size: 1.2rem; }
.cyclenav a { font-size: 0.98rem; }
.cyclenav a .num, .cycle__item .num, .sector__n { font-size: 0.92rem; }
.chip { font-size: 0.92rem; }
.hero__meta { font-size: 0.96rem; }
.ring__core-label { font-size: 0.92rem; }
.ring__tip { font-size: 0.84rem; }
.partner__role { font-size: 0.92rem; }
.footer__col h4 { font-size: 0.9rem; letter-spacing: 0.02em; }
.form__note, .prose .meta, .footer__bottom { font-size: 0.9rem; }

/* --- motion pulido: reveals limpios (sin blur uniforme), hero orquestado --- */
.reveal { transition: opacity 720ms var(--ease-expo), transform 720ms var(--ease-expo); transform: translateY(20px); }
.reveal:not(.is-in) { filter: none; }            /* quita el blur uniforme de cada sección */
.reveal.is-in { transform: none; }
/* el hero conserva su entrada coreografiada (un solo momento), más sutil */
.hero .reveal { transition: opacity 820ms var(--ease-expo), transform 820ms var(--ease-expo), filter 820ms var(--ease-expo); }
.hero .reveal:not(.is-in) { filter: blur(5px); }
.hero .reveal.is-in { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .reveal { filter: none !important; transform: none !important; }
}

/* ============================================================
   v3 · quiénes-somos — composiciones editoriales
   ============================================================ */
/* Misión / Visión con jerarquía (no dos tarjetas iguales) */
.mv-edit { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.mv-edit__lead { background: var(--green-tint2); border: 1px solid var(--green-tint); border-radius: var(--r-surface); padding: clamp(1.8rem, 3.5vw, 3rem); }
.mv-edit__statement { margin-top: 1rem; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.mv-edit__aside { padding: 0 0.4rem; }
.mv-edit__aside p { margin-top: 1rem; font-size: var(--lead); line-height: 1.5; color: var(--ink-2); max-width: 42ch; }
@media (max-width: 760px) { .mv-edit { grid-template-columns: 1fr; } .mv-edit__aside { padding: 0; } }

/* Valores como lista editorial numerada (números display + filetes, sin cajas) */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); }
.value-row { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: baseline; padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-top: 1px solid var(--line-2); }
.value-row__n { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); font-weight: 680; color: var(--green); letter-spacing: -0.03em; line-height: 0.9; }
.value-row__body h3 { font-size: var(--h3); }
.value-row__body p { margin-top: 0.55rem; color: var(--body); max-width: 42ch; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* CTA en tratamiento claro (para no encadenar dos bloques verdes seguidos) */
.cta-light { position: relative; overflow: hidden; background: var(--green-tint2); border: 1px solid var(--green-tint); border-radius: clamp(18px, 3vw, 28px); }
.cta-light h2 { color: var(--ink); }
/* brillo verde sutil de marca (decorativo) */
.cta-light::after { content: ""; position: absolute; z-index: 0; right: -8%; top: -55%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,150,64,0.14), transparent 62%); pointer-events: none; }
.cta-light > * { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .cta-light { text-align: center; padding: clamp(2.6rem, 9vw, 3.4rem) clamp(1.4rem, 6vw, 2rem); }
  .cta-light h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.18rem, 0.95rem + 1.3vw, 1.45rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
  .cta-light .hero__cta { justify-content: center; margin-top: 1.6rem; }
  .cta-light .btn { padding-inline: 1.8rem; }
}

/* ============================================================
   v3 · quiénes-somos — imágenes añadidas
   ============================================================ */
/* Misión/Visión con imagen vertical de apoyo */
.about-mv { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.about-mv__text { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); align-content: center; }
.about-mv__vision p { margin-top: 0.9rem; font-size: var(--lead); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.about-mv__media { border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow-brand); min-height: 340px; margin: 0; }
.about-mv__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .about-mv { grid-template-columns: 1fr; } .about-mv__media { aspect-ratio: 4 / 3; min-height: 0; } }

/* banda de imagen full-bleed con enunciado */
.imgband { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: clamp(360px, 46vh, 540px); overflow: hidden; display: flex; align-items: center; }
.imgband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,64,31,0.88), rgba(7,64,31,0.5) 58%, rgba(7,64,31,0.22)); }
.imgband__inner { position: relative; z-index: 1; width: 100%; }
.imgband__statement { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; max-width: 16ch; text-wrap: balance; }

/* v3 · referencias — tarjetas de segmento con imagen */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.segcard { border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; background: var(--paper);
  transition: transform 260ms var(--ease-expo), box-shadow 260ms var(--ease-expo), border-color 220ms var(--ease); }
.segcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); border-color: var(--line-2); }
.segcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.segcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expo); }
.segcard:hover .segcard__media img { transform: scale(1.04); }
.segcard__body { padding: clamp(1.2rem, 2vw, 1.5rem); }
.segcard__body h3 { font-size: var(--h3); }
.segcard__body p { margin-top: 0.6rem; color: var(--body); }

/* v3 · servicios — encabezado de dimensión con imagen (split, lado alterno) */
.dim__top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.dim__top--rev .dim__media { order: 2; }
.dim__media { margin: 0; border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-brand); }
.dim__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-expo); }
.dim__top:hover .dim__media img { transform: scale(1.04); }
@media (max-width: 820px) { .dim__top { grid-template-columns: 1fr; } .dim__top--rev .dim__media { order: -1; } .dim__media { aspect-ratio: 16 / 10; } }

/* v3 · servicios — encabezado-banner por dimensión (consistente, imagen uniforme) */
.dimhead { position: relative; display: flex; min-height: clamp(280px, 32vw, 400px); border-radius: var(--r-surface); overflow: hidden; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.dimhead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-expo); }
.dimhead:hover .dimhead__img { transform: scale(1.03); }
.dimhead__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 3.5vw, 2.8rem); color: #fff;
  /* velo verde completo sobre toda la imagen, más denso abajo para el texto */
  background: linear-gradient(0deg, rgba(5,42,22,0.95) 0%, rgba(7,64,31,0.7) 55%, rgba(7,64,31,0.6) 100%);
}
.dimhead__n { font-size: 1.2rem; font-weight: 700; color: #8ce0ac; letter-spacing: 0.02em; }
.dimhead h2 { color: #fff; margin-top: 0.3rem; font-size: var(--h2); }
.dimhead p { color: rgba(255,255,255,0.9); margin-top: 0.7rem; max-width: 62ch; line-height: 1.5; }

/* v3 · digital — activo insignia destacado con imagen */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; overflow: hidden;
  border: 1px solid var(--green-tint); border-radius: var(--r-surface); background: var(--green-tint2);
  margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.feature__media { margin: 0; min-height: 320px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__body { padding: clamp(1.6rem, 3vw, 2.4rem); align-self: center; }
.feature__body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 0.4rem; }
.feature__body p { margin-top: 0.8rem; color: var(--body); max-width: 48ch; }
.feature__body .tlink { margin-top: 1.2rem; }
.dgrid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature__media { order: -1; aspect-ratio: 16 / 10; min-height: 0; } .dgrid--2 { grid-template-columns: 1fr; } }

/* v3 · referencias — sectores como rejilla de tiles (sin numeración) */
.sectorgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.1rem); }
.sectortile { display: flex; gap: 0.85rem; align-items: flex-start; padding: clamp(1.2rem, 2.2vw, 1.55rem);
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 1.05rem; line-height: 1.32;
  transition: transform 260ms var(--ease-expo), border-color 220ms var(--ease), box-shadow 260ms var(--ease-expo); }
.sectortile:hover { transform: translateY(-3px); border-color: var(--green-tint); box-shadow: var(--shadow-brand); }
.sectortile__mark { width: 10px; height: 10px; margin-top: 0.4rem; border-radius: 3px; background: var(--green); flex: none; }

/* v3 · panel de imagen con velo verde (referencias segmentos) — coherente con
   el banner de dimensión de servicios y los paneles de la Home */
.panelgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.mpanel { position: relative; display: flex; min-height: clamp(300px, 26vw, 360px); border-radius: var(--r-surface); overflow: hidden; }
.mpanel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expo); }
.mpanel:hover .mpanel__img { transform: scale(1.04); }
.mpanel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,42,22,0.95), rgba(7,64,31,0.62) 52%, rgba(7,64,31,0.16)); }
.mpanel__body { position: relative; z-index: 1; align-self: flex-end; width: 100%; padding: clamp(1.3rem, 2.2vw, 1.8rem); color: #fff; }
.mpanel__body h3 { color: #fff; font-size: var(--h3); }
.mpanel__body p { color: rgba(255,255,255,0.9); margin-top: 0.5rem; font-size: 0.98rem; line-height: 1.45; }

/* panel con velo verde — variante destacada (insignia digital) */
.mpanel--feature { min-height: clamp(340px, 38vw, 460px); margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.mpanel--feature .mpanel__body { max-width: 56ch; }
.mpanel__meta { font-size: 1.2rem; font-weight: 600; color: #8ce0ac; }
.mpanel h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 0.4rem; }
.mpanel p { color: rgba(255,255,255,0.9); }
/* enlace claro sobre el velo */
.mpanel .tlink { color: #fff; margin-top: 1.1rem; background-image: linear-gradient(#8ce0ac, #8ce0ac); }
.mpanel .tlink:hover { color: #fff; }

/* v3 · referencias (replanteada) — escala (columnas con filete) + sectores con descriptor */
.scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.scale { padding-top: 1.3rem; border-top: 2px solid var(--green); }
.scale h3 { font-size: var(--h3); }
.scale p { margin-top: 0.7rem; color: var(--body); max-width: 36ch; }
@media (max-width: 760px) { .scales { grid-template-columns: 1fr; gap: 0; } .scale + .scale { margin-top: 1.5rem; } }

.sectortile { font-weight: 400; font-size: 1rem; align-items: flex-start; }
.sectortile > span:nth-child(2) { flex: 1; min-width: 0; }
.sectortile__name { display: block; font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.sectortile__desc { display: block; margin-top: 0.35rem; font-size: 0.95rem; color: var(--body); line-height: 1.4; }

/* v3 · referencias — sectores con más color (verde) */
.sectortile { background: var(--green-tint2); border-color: var(--green-tint);
  transition: transform 260ms var(--ease-expo), background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 260ms var(--ease-expo); }
.sectortile__name { color: var(--green-900); }
.sectortile__mark { width: 12px; height: 12px; background: var(--green); }
.sectortile:hover { transform: translateY(-3px); background: var(--green-900); border-color: var(--green-900); box-shadow: var(--shadow-brand); }
.sectortile:hover .sectortile__name { color: #fff; }
.sectortile:hover .sectortile__desc { color: rgba(255,255,255,0.85); }
.sectortile:hover .sectortile__mark { background: #8ce0ac; }

/* ============================================================
   v3 · MEDIA SPLIT — imagen limpia + texto (reemplaza los banners con velo)
   Usado en: servicios (dimensiones) y digital (ALQUID destacado). Consistente.
   ============================================================ */
.msplit { display: grid; grid-template-columns: minmax(0, 0.85fr) 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.msplit__media { margin: 0; border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-brand); }
.msplit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expo); }
.msplit:hover .msplit__media img { transform: scale(1.03); }
.msplit__n { font-size: 1.2rem; font-weight: 700; color: var(--green); letter-spacing: 0.02em; }
.msplit__body h2 { font-size: var(--h2); margin-top: 0.3rem; }
.msplit__body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 0.3rem; }
.msplit__body p { margin-top: 0.85rem; color: var(--body); max-width: 52ch; }
.msplit__body .tlink { margin-top: 1.1rem; }
@media (min-width: 821px) {
  /* imagen 4:5 compacta: ancho acotado para que su alto ≈ el contenido (robusto, sin absolutos) */
  .msplit { grid-template-columns: clamp(280px, 30vw, 384px) 1fr; align-items: start; }
}
.msplit__body .subhead:first-of-type { margin-top: clamp(1.1rem, 1.8vw, 1.5rem); }
/* entregables compactos, apilados (no estirar ni agrandar la imagen) */
.msplit__body .deliverables { grid-template-columns: 1fr; gap: 0.55rem; }
.msplit__body .dlv { padding: 0.75rem 1rem; }
.msplit__body .dlv__mark { width: 24px; height: 3px; margin-bottom: 0.45rem; }
.msplit__body .dlv h4 { font-size: 1rem; }
.msplit__body .dlv p { margin-top: 0.25rem; font-size: 0.9rem; }
@media (max-width: 820px) { .msplit { grid-template-columns: 1fr; gap: 1.2rem; } .msplit__media { aspect-ratio: 16 / 10; order: -1; } }

/* v3 · digital — partners con logo (lockup logo + nombre) */
.dcard__brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; min-height: 30px; }
.dcard__logo { height: 28px; width: auto; flex: none; }
.dcard__name { font-size: 1.25rem; font-weight: 680; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.dcard__sub { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* v3 · hero estilo Home en páginas interiores (altura algo menor) */
.hero--page .hero__grid { min-height: min(56vh, 480px); }

/* v3 · tablas en páginas legales (.prose) */
/* la tabla rompe el ancho del prose (74ch) y usa el ancho completo de la sección */
.prose .table-wrap { width: min(var(--maxw), calc(100vw - 2 * var(--gut))); overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--r-surface); -webkit-overflow-scrolling: touch; }
.prose-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.prose-table th, .prose-table td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.prose-table thead th { background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table td:nth-child(1), .prose-table td:nth-child(3), .prose-table td:nth-child(4), .prose-table td:nth-child(5),
.prose-table th:nth-child(1), .prose-table th:nth-child(3), .prose-table th:nth-child(4), .prose-table th:nth-child(5) { white-space: nowrap; }

/* ============================================================
   v3 · banner de consentimiento de cookies (tarjeta sobria, no barra)
   ============================================================ */
.cookie-banner {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem); z-index: 200;
  width: min(400px, calc(100vw - 2rem));
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-surface);
  box-shadow: var(--shadow-brand); padding: clamp(1.2rem, 2.5vw, 1.6rem);
  opacity: 0; transform: translateY(16px); transition: opacity 420ms var(--ease-expo), transform 420ms var(--ease-expo);
}
.cookie-banner.is-in { opacity: 1; transform: none; }
.cookie-banner__title { font-size: 1.05rem; font-weight: 680; color: var(--ink); }
.cookie-banner p { margin-top: 0.45rem; font-size: 0.92rem; color: var(--body); line-height: 1.5; }
.cookie-banner a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.cookie-banner .btn { flex: 1; justify-content: center; padding: 0.6rem 1rem; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: opacity 200ms linear; transform: none; } }

/* ============================================================
   v3 · MÓVIL — hero como imagen de fondo a sangre + texto encima
   (en vez de imagen arriba / texto abajo). Aplica a todos los heroes.
   ============================================================ */
@media (max-width: 700px) {
  .hero { min-height: 65svh; padding-top: 0; overflow: hidden; }
  .hero--page .hero__grid { min-height: 65svh; }
  .hero__grid {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
    min-height: 65svh; width: 100%;
    padding: clamp(2rem, 8vw, 3rem) 0 clamp(2.4rem, 9vw, 3.6rem);
  }
  .hero__media { position: absolute; inset: 0; z-index: 0; order: 0; margin: 0; }
  .hero__media .frame {
    position: absolute; inset: clamp(0.85rem, 3.5vw, 1.15rem); height: auto; width: auto;
    aspect-ratio: auto; border-radius: clamp(16px, 4.5vw, 22px);
    box-shadow: 0 26px 54px -30px rgba(7,64,31,0.5);
  }
  .hero__media .frame img { height: 100%; }
  .hero__media::before { display: none; }
  /* velo verde para legibilidad (más denso abajo, donde va el texto) */
  .hero__media .frame::after {
    background: linear-gradient(180deg, rgba(7,64,31,0.32) 0%, rgba(6,48,25,0.56) 48%, rgba(4,33,17,0.86) 100%);
  }
  .hero__copy { position: relative; z-index: 1; color: #fff; }
  .hero__eyebrow { color: #8ce0ac; margin-bottom: 1.1rem; }
  .hero__title { color: #fff; }
  .hero__title .accent { color: #8ce0ac; }
  .hero__lead { color: rgba(255,255,255,0.92); margin-top: 1.1rem; }
  .hero__cta { margin-top: 1.7rem; }
  .hero__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
  .hero__cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
  .hero__meta { color: rgba(255,255,255,0.82); border-top-color: rgba(255,255,255,0.28); margin-top: 1.7rem; padding-top: 1.2rem; }
  .hero__meta strong { color: #fff; }
}

@media (max-width: 700px) {
  /* hero móvil: separar el texto del marco + tipografía más contenida */
  .hero__grid { padding-left: clamp(1.4rem, 6vw, 2rem); padding-right: clamp(1.4rem, 6vw, 2rem);
    padding-bottom: clamp(1.8rem, 7vw, 2.6rem); }
  .hero__eyebrow { font-size: 0.98rem; margin-bottom: 0.8rem; }
  .hero__title { font-size: clamp(1.75rem, 1.2rem + 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; }
  .hero__lead { font-size: 1rem; margin-top: 0.9rem; line-height: 1.5; }
  .hero__cta { margin-top: 1.3rem; gap: 0.7rem; }
  .hero__meta { margin-top: 1.3rem; padding-top: 1rem; font-size: 0.85rem; }
}

@media (max-width: 700px) {
  /* eyebrow del hero en una sola línea: sin la línea verde y algo más pequeño */
  .hero__eyebrow { font-size: 0.9rem; }
  .hero__eyebrow::before { display: none; }
}

/* honeypot del formulario (oculto, no para humanos) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* chips enlazables (teaser digital): icono + hover */
.chip { display: inline-flex; align-items: center; gap: 0.4rem; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
a.chip:hover { border-color: var(--green); color: var(--green-700); }
.chip__ico { width: 0.85em; height: 0.85em; flex: none; opacity: 0.6; }
a.chip:hover .chip__ico { opacity: 1; }

@media (max-width: 700px) {
  /* hero más largo en móvil: la imagen ocupa la parte superior y el texto va abajo (sin meta) */
  .hero__meta { display: none; }
  .hero { min-height: 85svh; }
  .hero--page .hero__grid, .hero__grid { min-height: 85svh; }
  .hero__title { font-size: clamp(1.45rem, 1rem + 2.2vw, 1.85rem); line-height: 1.1; }
  .hero__lead { font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.45; }
  .hero__cta { margin-top: 1.1rem; }
  .hero__eyebrow { margin-bottom: 0.6rem; }
  .hero__grid { padding-top: clamp(1rem, 4vw, 1.5rem); padding-bottom: clamp(1.1rem, 4vw, 1.6rem); }
  /* sticky del scroll por DEBAJO del header (no lo tapa al fijarse) y paneles que rellenan -> asoman sin banda blanca */
  .hscroll.is-pinned .hscroll__sticky { top: var(--header-h); height: calc(100svh - var(--header-h)); }
  .hscroll.is-pinned .hpanel, .hscroll.is-pinned .hpanel--intro { min-height: min(62svh, 500px); }
}

/* icono cuadrado (Climate X): app-icon redondeado */
.dcard__logo--icon { height: 28px; width: 28px; border-radius: 6px; object-fit: cover; }

/* logo de marca en tarjetas de activos digitales */
.dcard__brandlogo { height: 30px; width: auto; display: block; align-self: flex-start; margin-bottom: 1.1rem; }
