/* ===========================================================================
   IRRIXIA — front page styles
   Type:  Newsreader (editorial serif display) · IBM Plex Sans (UI/body) ·
          IBM Plex Mono (data labels / eyebrows)
   Theme tokens are driven by [data-theme] (light|dark) and [data-palette].
   =========================================================================== */

/* ----- palette: light (default) ----- */
:root,
[data-theme="light"] {
  --bg:        #f4f1e8;
  --bg-2:      #ece7da;
  --bg-3:      #161f1a;   /* dark band inside a light page */
  --surface:   #fbf9f2;
  --surface-2: #f3efe4;
  --ink:       #15211a;
  --ink-2:     #44514a;
  --ink-3:     #6c7770;
  --line:      rgba(21, 33, 26, 0.12);
  --line-2:    rgba(21, 33, 26, 0.07);
  --on-dark:   #f3f1e8;
  --on-dark-2: rgba(243, 241, 232, 0.66);
  --shadow:    0 1px 2px rgba(21,33,26,.04), 0 18px 40px -24px rgba(21,33,26,.28);
  --shadow-lg: 0 2px 4px rgba(21,33,26,.05), 0 40px 80px -40px rgba(21,33,26,.40);
}

[data-theme="dark"] {
  --bg:        #0d1411;
  --bg-2:      #101a15;
  --bg-3:      #060b09;
  --surface:   #14201a;
  --surface-2: #182a21;
  --ink:       #eef1e9;
  --ink-2:     #aab6ac;
  --ink-3:     #7c8a80;
  --line:      rgba(238, 241, 233, 0.12);
  --line-2:    rgba(238, 241, 233, 0.06);
  --on-dark:   #f3f1e8;
  --on-dark-2: rgba(243, 241, 232, 0.66);
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 18px 40px -24px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 40px 80px -40px rgba(0,0,0,.7);
}

/* ----- accent palettes (hue families share chroma) ----- */
[data-palette="campo"] {            /* warm field — default */
  --green:      #2f6b3c;
  --green-deep: #1c4527;
  --leaf:       #7c9f49;
  --water:      #2f7d8c;
  --clay:       #c0612d;
  --gold:       #c79a3a;
}
[data-palette="verde"] {            /* deep green / climate */
  --green:      #1f7a4d;
  --green-deep: #0f4e30;
  --leaf:       #6fb15a;
  --water:      #2aa3b0;
  --clay:       #cf7b39;
  --gold:       #c9a83f;
}
[data-palette="institucional"] {    /* cooler, institutional */
  --green:      #1f6b53;
  --green-deep: #123f33;
  --leaf:       #5a9a7a;
  --water:      #2f6fb0;
  --clay:       #b8693a;
  --gold:       #b89a45;
}
[data-theme="dark"][data-palette="campo"]         { --green:#4fae66; --leaf:#9cca5e; --water:#49c0d2; --clay:#e08a4f; --gold:#e0bf5c; }
[data-theme="dark"][data-palette="verde"]         { --green:#43c07e; --leaf:#8fd06f; --water:#3fc4d2; --clay:#e89a55; --gold:#e3c45f; }
[data-theme="dark"][data-palette="institucional"] { --green:#46b394; --leaf:#7fc0a2; --water:#5a9fe0; --clay:#dd8a55; --gold:#d4b85a; }

/* ----- type families (font tweak swaps --display) ----- */
:root {
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
[data-font="tecnico"] { --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}

::selection { background: color-mix(in oklab, var(--leaf) 40%, transparent); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.04;
  letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1240px, 92vw); margin-inline: auto; }

/* eyebrow / mono kicker */
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.kicker.center::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  padding: 0.78em 1.3em; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--green) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--on-dark); color: var(--green-deep); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: var(--on-dark); transform: translateY(-2px); }

.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .lnk:hover .arrow { transform: translateX(3px); }

/* inline text link with arrow */
.lnk { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 500; color: var(--green);
  border-bottom: 1px solid color-mix(in oklab, var(--green) 35%, transparent); padding-bottom: 1px; }
.lnk svg { width: 15px; height: 15px; }
.lnk:hover { color: var(--green-deep); }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 23px;
  letter-spacing: -0.02em; color: var(--ink); }
.brand .glyph { width: 30px; height: 30px; flex: none; object-fit: contain; display: block; }
.brand b { font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 450; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--green); font-weight: 500; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  padding: 2px; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
}
.lang button { appearance: none; border: 0; background: transparent; color: var(--ink-3);
  padding: 4px 9px; border-radius: 999px; cursor: pointer; letter-spacing: .05em; transition: all .15s ease; }
.lang button.on { background: var(--ink); color: var(--bg); }

.nav-cta { font-size: 14px; padding: 0.62em 1.15em; }
.menu-toggle {
  display: none; appearance: none; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; padding: 6px; border-radius: 8px;
  line-height: 0; transition: background .15s ease;
}
.menu-toggle:hover { background: var(--bg-2); }
.icon-x { display: none; }
.nav.open .icon-bars { display: none; }
.nav.open .icon-x { display: block; }

/* mobile nav panel — sits inside sticky header, drops below nav bar */
.mobile-menu {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding: 16px calc((100% - min(1240px, 92vw)) / 2 + 4vw);
  gap: 2px;
}
.nav.open .mobile-menu { display: flex; }
.mobile-menu a {
  display: block; font-size: 16px; font-weight: 450; color: var(--ink-2);
  padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: color .15s ease;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a.on { color: var(--green); font-weight: 500; }
.mobile-menu a.btn {
  display: inline-flex; align-self: center; width: fit-content;
  margin-top: 14px; padding: 0.78em 1.3em; border-bottom: 0; color: #fff;
}
.mobile-menu a.btn:hover { color: #fff; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ============================ HERO ============================ */
.hero { position: relative; padding: clamp(36px, 7vw, 92px) 0 clamp(40px, 6vw, 78px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-tag {
  margin-top: 40px; display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink);
}
.hero-tag::before { content: "“"; font-size: 1.4em; line-height: 0; color: var(--leaf); position: relative; top: .18em; }
.hero-tag::after { content: "”"; font-size: 1.4em; line-height: 0; color: var(--leaf); position: relative; top: .18em; }

/* hero visual: NDVI field card with floating metric chips */
.hero-visual { position: relative; }
.field-card {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--bg-3);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
}
.field-card .campo { width: 100%; height: 100%; object-fit: cover; display: block; }
.campo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 52px 24px 22px;
  background: linear-gradient(to top, rgba(8,14,11,.82) 0%, transparent 100%);
  color: var(--on-dark);
  font-family: var(--display); font-style: italic;
  font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.01em; line-height: 1.15;
  text-align: center;
}
.campo-caption::before { content: "\201C"; color: var(--leaf); font-size: 1.4em; line-height: 0; position: relative; top: .18em; margin-right: .1em; }
.campo-caption::after  { content: "\201D"; color: var(--leaf); font-size: 1.4em; line-height: 0; position: relative; top: .18em; margin-left: .1em; }

/* hero variant: editorial (centered) */
[data-hero="editorial"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-hero="editorial"] .hero-eyebrow { justify-content: center; }
[data-hero="editorial"] .hero h1 { font-size: clamp(44px, 8vw, 96px); max-width: 16ch; }
[data-hero="editorial"] .hero-sub { max-width: 52ch; }
[data-hero="editorial"] .hero-cta { justify-content: center; }
[data-hero="editorial"] .hero-tag { justify-content: center; }
[data-hero="editorial"] .hero-visual { display: none; }
[data-hero="editorial"] .hero-strip { display: grid; }

/* hero variant: map (full-bleed) */
[data-hero="map"] .hero { color: var(--on-dark); }
[data-hero="map"] .hero-bg { display: block; }
[data-hero="map"] .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
[data-hero="map"] .hero h1 { color: var(--on-dark); }
[data-hero="map"] .hero h1 em { color: var(--leaf); }
[data-hero="map"] .hero-sub { color: var(--on-dark-2); }
[data-hero="map"] .hero-tag { color: var(--on-dark); }
[data-hero="map"] .hero-visual { display: none; }
[data-hero="map"] .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.3); }
[data-hero="map"] .btn-ghost:hover { border-color: #fff; }

.hero-bg { display: none; position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { width: 100%; height: 100%; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,14,11,.86) 30%, rgba(8,14,11,.45) 70%, rgba(8,14,11,.2)); }

/* hero strip (only shown in editorial variant) */
.hero-strip { display: none; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hero-strip > div { background: var(--surface); padding: 22px 24px; text-align: left; }
.hero-strip .hk { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.hero-strip .hv { font-family: var(--display); font-size: 38px; margin-top: 6px; color: var(--green); }
.hero-strip .hd { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

@media (max-width: 860px) {
  .hero-grid, [data-hero] .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 14px; }
  .chip-a { right: 2%; } .chip-b { left: 2%; }
  .hero-strip { grid-template-columns: 1fr; }
}

/* ============================ TRUST BAR ============================ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.trust-in { display: flex; align-items: center; gap: 32px; padding: 20px 0; flex-wrap: wrap; }
.trust-lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.trust-logos { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-left: auto; opacity: .75; }
.trust-logos span { font-family: var(--display); font-size: 18px; color: var(--ink-2); letter-spacing: -0.01em; }

/* ============================ SECTION SHELL ============================ */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 72ch; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 18px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.section.alt { background: var(--bg-2); }
#irrisu { background: var(--surface-2); }
.section.dark { background: var(--bg-3); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: var(--on-dark); }
.section.dark .section-head p { color: var(--on-dark-2); }
.section.dark .kicker { color: var(--leaf); }

/* ============================ EXPERIENCE / GAUGES ============================ */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.exp-lead { font-family: var(--display); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.18; color: var(--ink); }
.exp-lead em { font-style: italic; color: var(--green); }
.exp-note { margin-top: 22px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px 18px; text-align: center; box-shadow: var(--shadow); }
.gauge svg { margin: 0 auto; }
.gauge .gv { font-family: var(--display); font-size: 30px; color: var(--ink); margin-top: -42px; position: relative; }
.gauge .gl { font-size: 13px; color: var(--ink-2); margin-top: 18px; line-height: 1.3; min-height: 2.6em; }
@media (max-width: 700px) { .exp-grid { grid-template-columns: 1fr; } }

/* ============================ WHAT WE DO ============================ */
.do-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.do-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 30px 28px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; min-height: 250px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.do-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--green) 30%, var(--line)); }
.do-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--green) 12%, transparent); color: var(--green); margin-bottom: 20px; }
.do-ic svg { width: 24px; height: 24px; }
.do-card h3 { font-size: 24px; letter-spacing: -0.01em; }
.do-card p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; flex: 1; }
.do-card .lnk { margin-top: 20px; align-self: flex-start; }
.do-card .tagnum { position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .05em; }
@media (max-width: 760px) { .do-grid { grid-template-columns: 1fr; } }

/* ============================ PLATFORM / DATA SHOWCASE ============================ */
.plat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.tab { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 0.6em 1.05em; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .18s ease;
  display: inline-flex; align-items: center; gap: .5em; }
.tab .tdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.panel-wrap { margin-top: 26px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.panel { display: none; grid-template-columns: 1.15fr 1fr; min-height: 440px; }
.panel.on { display: grid; }
.panel-viz { position: relative; background: var(--bg-3); padding: 0; overflow: hidden; }
.panel-info { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.panel-info .kicker { margin-bottom: 16px; }
.panel-info h3 { font-size: clamp(26px, 3vw, 36px); }
.panel-info p { margin-top: 16px; color: var(--ink-2); font-size: 16px; max-width: 40ch; }
.metric-row { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.metric-row .m { }
.metric-row .mk { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.metric-row .mv { font-family: var(--display); font-size: 32px; color: var(--green); margin-top: 4px; }
.metric-row .mv small { font-family: var(--sans); font-size: 14px; color: var(--ink-2); font-weight: 500; }
.panel-info .lnk { margin-top: 28px; align-self: flex-start; }
@media (max-width: 820px) { .panel.on { grid-template-columns: 1fr; } .panel-viz { min-height: 300px; } }

/* keep the light info card readable even inside a dark section */
.section.dark .panel-info h3 { color: var(--ink); }
.section.dark .panel-info .kicker { color: var(--green); }
.section.dark .panel-wrap { box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }

/* legend for viz */
.legend { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.3); padding: 6px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.legend .bar { width: 90px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #b5472f, #d8a93a, #6fae3e, #1f6b34); }
.viz-cap { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(255,255,255,.9); background: rgba(0,0,0,.32); padding: 5px 10px; border-radius: 999px; }

/* ============================ HOW IT WORKS ============================ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.step { position: relative; padding: 28px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.step h4 { font-size: 21px; margin-top: 0; }
.step p { margin-top: 9px; font-size: 14.5px; color: var(--ink-2); }
.step .arc { position: absolute; top: 38px; right: -11px; color: var(--ink-3); z-index: 2; }
.step:last-child .arc { display: none; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .step .arc { display: none; } }

/* bitácora: promoted "result" card below the steps, not a peer step */
.flow-result { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flow-result .connector { color: var(--ink-3); }
.flow-card {
  width: 100%; display: flex; align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 30px; box-shadow: var(--shadow);
}
.flow-card .fc-ic {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--green) 12%, transparent); color: var(--green);
}
.flow-card .fc-ic svg { width: 26px; height: 26px; }
.flow-card .fc-body .kicker { margin-bottom: 6px; }
.flow-card h4 { font-size: 22px; }
.flow-card p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 58ch; }
@media (max-width: 600px) { .flow-card { flex-direction: column; text-align: center; } }

/* roles */
.roles { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; align-items: stretch; }
.role { flex: 1; min-width: 150px; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.role .rn { font-family: var(--display); font-size: 19px; color: var(--ink); }
.role .rd { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.role .rt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 8px; }

/* ============================ CTA BAND ============================ */
.cta { background: var(--bg-3); color: var(--on-dark); border-radius: 28px; padding: clamp(40px, 6vw, 76px); position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta h2 { color: var(--on-dark); font-size: clamp(30px, 4.4vw, 54px); }
.cta h2 em { font-style: italic; color: var(--leaf); }
#contacto .cta h2::before { content: "“"; color: var(--leaf); }
#contacto .cta h2::after { content: "”"; color: var(--leaf); }
.cta p { margin-top: 18px; color: var(--on-dark-2); font-size: 18px; max-width: 44ch; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-actions .btn { justify-content: center; }
.cta-mail { font-family: var(--mono); font-size: 13px; color: var(--on-dark-2); margin-top: 4px; text-align: center; }
.cta-mail a { color: var(--leaf); border-bottom: 1px solid color-mix(in oklab, var(--leaf) 40%, transparent); }
.cta-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.cta-bg canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .cta-grid { grid-template-columns: 1fr; } }

/* ============================ FOOTER ============================ */
.foot { padding: 64px 0 30px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot .brand { margin-bottom: 10px; }
.foot-tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.foot-blurb { color: var(--ink-2); font-size: 14.5px; max-width: 30ch; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.foot-bot p { font-size: 13px; color: var(--ink-3); }
.foot-bot .mono { font-family: var(--mono); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* lang visibility helper handled by JS swapping textContent; nothing needed here */

/* ============================ AVISO DE PRIVACIDAD DIALOG ============================ */
.foot-bot-right { display: flex; align-items: center; gap: 22px; }
.foot-bot a { font-size: 13px; color: var(--ink-3); transition: color .15s ease; }
.foot-bot a:hover { color: var(--ink); text-decoration: underline; }

#aviso-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  max-width: min(720px, 94vw);
  width: 100%;
  max-height: 88vh;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
#aviso-dialog[open] { display: flex; flex-direction: column; }
#aviso-dialog::backdrop {
  background: rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.aviso-body { overflow-y: auto; flex: 1; padding: 36px 40px; scroll-behavior: smooth; }
.aviso-body h1 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); color: var(--ink); margin-bottom: 6px; }
.aviso-body .aviso-date { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 20px; }
.aviso-body h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
  margin-top: 28px; margin-bottom: 8px;
}
.aviso-body p { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.65; }
.aviso-body p:first-of-type { margin-top: 0; }
.aviso-body ul { margin: 8px 0 0; padding: 0; list-style: none; }
.aviso-body ul li {
  font-size: 15px; color: var(--ink-2); padding: 3px 0 3px 18px;
  position: relative; line-height: 1.55;
}
.aviso-body ul li::before { content: "–"; position: absolute; left: 0; color: var(--green); }
.aviso-body strong { color: var(--ink); font-weight: 500; }
.aviso-body a { color: var(--green); border-bottom: 1px solid color-mix(in oklab, var(--green) 35%, transparent); }
.aviso-body a:hover { color: var(--green-deep); }

.aviso-foot {
  flex-shrink: 0; border-top: 1px solid var(--line);
  padding: 16px 40px; display: flex; justify-content: flex-end;
  background: var(--surface-2);
}
@media (max-width: 600px) {
  .aviso-body { padding: 24px 22px; }
  .aviso-foot { padding: 14px 22px; }
}

/* ============================ SOLICITAR DEMO DIALOG ============================ */
#demo-dialog {
  border: 1px solid var(--line); border-radius: 24px; padding: 0;
  max-width: min(640px, 96vw); width: 100%; max-height: 92vh;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); overflow: hidden; margin: auto;
}
#demo-dialog[open] { display: flex; flex-direction: column; }
#demo-dialog::backdrop { background: rgba(0,0,0,.48); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.demo-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 32px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.demo-head .kicker { margin-bottom: 10px; }
.demo-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.demo-head p { font-size: 14.5px; color: var(--ink-2); margin: 0; max-width: 40ch; }
.demo-x { appearance: none; border: 0; background: transparent; padding: 4px; color: var(--ink-3); cursor: pointer; border-radius: 8px; flex-shrink: 0; margin-left: 16px; margin-top: -2px; line-height: 0; }
.demo-x:hover { background: var(--bg-2); color: var(--ink); }
.demo-x svg { width: 18px; height: 18px; }

.demo-body { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; padding: 24px 32px 8px; }

/* form grid */
.df-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; margin-bottom: 18px; }
.df-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.df-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.df-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.df-req { color: var(--green); }
.df-inp {
  appearance: none; box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px;
  transition: border-color .15s, background .15s; outline: none;
}
.df-inp:focus { border-color: color-mix(in oklab, var(--green) 70%, transparent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 12%, transparent); }
.df-inp::placeholder { color: var(--ink-3); }
.df-inp:user-invalid { border-color: var(--clay); }
.df-sel {
  padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='rgba(0,0,0,.4)' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
[data-theme="dark"] .df-sel { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='rgba(255,255,255,.45)' d='M0 0h10L5 6z'/></svg>"); }
.df-ta { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; }
.df-privacy { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 10px; }
.df-priv-link { appearance: none; border: 0; border-bottom: 1px solid color-mix(in oklab, var(--green) 40%, transparent); background: none; padding: 0; color: var(--green); font: inherit; cursor: pointer; }
.df-priv-link:hover { color: var(--green-deep); }

.demo-foot { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 32px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* success state */
#demo-success { flex-direction: column; align-items: center; text-align: center; padding: 48px 32px; gap: 14px; }
.demo-suc-icon { width: 60px; height: 60px; border-radius: 50%; background: color-mix(in oklab, var(--green) 14%, transparent); display: grid; place-items: center; color: var(--green); }
.demo-suc-icon svg { width: 30px; height: 30px; }
#demo-success h3 { font-family: var(--display); font-size: 26px; color: var(--ink); margin: 0; }
#demo-success p { font-size: 15px; color: var(--ink-2); max-width: 36ch; line-height: 1.65; margin: 0; }

@media (max-width: 580px) {
  .df-2 { grid-template-columns: 1fr; }
  .demo-head, .demo-body, .demo-foot { padding-left: 20px; padding-right: 20px; }
}

/* short viewports (phones in landscape, where width alone doesn't catch it) */
@media (max-width: 580px), (max-height: 560px) {
  #demo-dialog {
    max-width: 100vw; width: 100%; border-radius: 0; margin: 0;
    max-height: 100vh; max-height: 100dvh;
  }
  .demo-head { padding-top: 14px; padding-bottom: 10px; }
  .demo-head p { display: none; }
  .demo-foot { padding-top: 10px; padding-bottom: 10px; }
  .demo-body { padding-top: 14px; }
  .df-row { margin-bottom: 12px; }
}

/* ============================ SHARED CONTENT UTILITIES ============================ */
.prose { max-width: 72ch; }
.cta-glow {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(60% 120% at 88% 10%, color-mix(in oklab, var(--leaf) 28%, transparent) 0%, transparent 55%),
    radial-gradient(50% 100% at 100% 100%, color-mix(in oklab, var(--water) 26%, transparent) 0%, transparent 60%);
}

/* ============================ ABOUT PAGE ============================ */
.feature-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: center; }
.feature-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; aspect-ratio: 300/223; object-fit: cover; display: block; }
.feature-tag {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(13,20,17,.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--on-dark); font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px;
}
.feature-tag .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--leaf); }
.feature-grid > p { font-size: 18.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }
.feature-grid strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { padding: 22px 28px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item .sv { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--green); }
.stat-item .sv small { font-family: var(--sans); font-size: 16px; color: var(--ink-2); margin-left: 6px; font-weight: 400; }
.stat-item .sl { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
@media (max-width: 700px) {
  .stat-band { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
}

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.mv-card { background: var(--surface); border-radius: 18px; padding: 32px 30px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); transition: transform .2s ease; }
.mv-card:hover { transform: translateY(-3px); }
.mv-head { display: flex; align-items: center; gap: 10px; }
.mv-head svg { width: 24px; height: 24px; }
.mv-label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.mv-card p { font-size: 17px; line-height: 1.56; color: var(--ink-2); margin: 16px 0 0; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.value-card { background: var(--surface); border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); transition: transform .2s ease; }
.value-card:hover { transform: translateY(-3px); }
.value-card .vc-title { font-family: var(--display); font-size: 23px; letter-spacing: -.01em; }
.value-card .vc-bar { width: 34px; height: 2px; margin: 12px 0 14px; border-radius: 2px; }
.value-card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================ GUIDES PAGE ============================ */
.soil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; max-width: 860px; }
.soil-card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line-2); }
.soil-card img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 600px) { .soil-grid { grid-template-columns: 1fr; } }

.root-diagram { width: 100%; max-width: 860px; height: auto; border-radius: 16px; margin: 36px 0; box-shadow: inset 0 0 0 1px var(--line-2); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.step-card { background: var(--surface); border-radius: 18px; padding: 28px 26px 26px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); transition: transform .2s ease; }
.step-card:hover { transform: translateY(-3px); }
.step-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: inset 0 0 0 1px var(--line-2); }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-num {
  position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--on-dark); background: rgba(13,20,17,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 4px 9px; border-radius: 999px;
}
.step-card h4 { font-size: 23px; line-height: 1.12; letter-spacing: -.01em; margin: 18px 0 0; }
.step-card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 12px 0 0; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/* dark-band form (newsletter / CTA), built on top of .cta */
.cta-success { display: none; align-items: center; gap: 12px; background: rgba(243,241,232,.08); border: 1px solid color-mix(in oklab, var(--leaf) 40%, transparent); border-radius: 14px; padding: 20px 22px; }
.cs-icon { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--green); color: var(--on-dark); display: grid; place-items: center; }
.cs-icon svg { width: 18px; height: 18px; }
.cs-title { font-family: var(--display); font-size: 20px; }
.cs-note { font-size: 14px; color: var(--on-dark-2); }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form .df-inp { background: rgba(243,241,232,.07); border-color: rgba(243,241,232,.2); color: var(--on-dark); }
.cta-form .df-inp::placeholder { color: var(--on-dark-2); }
.cta-form-note { font-size: 12px; color: var(--on-dark-2); margin: 2px 0 0; }

/* ============================ ARTICLE PAGE ============================ */
.article-hero { margin: 0; border-radius: 14px; overflow: hidden; }
.article-hero img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.article-hero figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; background: var(--surface); }

.article-steps { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.article-step { display: flex; gap: 24px; }
.as-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in oklab, var(--leaf) 18%, var(--surface)); color: var(--leaf); font-family: var(--sans); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-top: 2px; border: 1.5px solid color-mix(in oklab, var(--leaf) 30%, transparent); }
.as-body { flex: 1; min-width: 0; }
.as-body > p { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; }
.as-figure { border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); margin-top: 4px; }
.as-figure img { width: 100%; height: auto; display: block; }
.as-figure figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--line-2); font-style: italic; }
.as-figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; text-decoration: none; }
.article-back:hover { color: var(--green); }
.article-back svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .as-figure-row { grid-template-columns: 1fr; } .article-step { gap: 14px; } .as-num { width: 30px; height: 30px; font-size: 13px; } }
