:root {
  color-scheme: light;
  --ink: #17231d;
  --ink-2: #36463e;
  --muted: #6e746e;
  --paper: #f4f0e4;
  --paper-2: #ebe2cf;
  --surface: #fbf9f3;
  --line: #d9cfb8;
  --green-950: #073d32;
  --green-850: #145946;
  --green-650: #1f6b52;
  --green-250: #d7e4d7;
  --moss: #6c7f43;
  --root: #7f5b37;
  --amber: #c6a15b;
  --gold-soft: #d8c18a;
  --shadow: 0 22px 54px rgba(7, 61, 50, 0.15);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 61, 50, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 61, 50, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(31, 107, 82, 0.08), transparent 32%),
    radial-gradient(circle at 12% 78%, rgba(198, 161, 91, 0.08), transparent 30%),
    var(--paper);
  background-size: 78px 78px, 78px 78px, auto, auto;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(1120px, 92vw);
  height: min(1480px, 128vh);
  pointer-events: none;
  background: url("assets/organismo-arbol-original.png") center / min(1200px, 90vw) auto no-repeat;
  content: "";
  opacity: 0.078;
  transform: translate(-50%, -47%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(35, 119, 94, 0.34);
  outline-offset: 4px;
}

.shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(244, 240, 228, 0.9);
  border-bottom: 1px solid rgba(217, 207, 184, 0.92);
  backdrop-filter: blur(18px);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 61, 50, 0.13);
  overflow: hidden;
}

.brand-logo {
  width: 142px;
  height: auto;
  max-height: 52px;
  border-radius: 999px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
}

.site-nav a:hover {
  color: var(--green-950);
  background: rgba(14, 71, 56, 0.08);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--green-850);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--green-650);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 4px 6px;
  color: var(--green-950);
  border: 1px solid rgba(198, 161, 91, 0.34);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 950;
}

.language-option {
  padding: 2px 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.language-option.is-active {
  color: var(--green-950);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-950);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  gap: 36px;
  align-items: center;
  min-height: min(760px, calc(100svh - 68px));
  padding: 32px 0 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.kicker,
.matrix-label {
  margin: 0 0 12px;
  color: var(--green-650);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-section .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(3.65rem, 6.9vw, 6.55rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

h3 {
  font-size: 1.28rem;
  line-height: 1.12;
}

.hero-lede,
.section-head p {
  color: var(--ink-2);
  font-size: 1.12rem;
}

.hero-lede {
  max-width: 650px;
  margin: 16px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--green-850);
}

.button-primary:hover {
  background: var(--green-650);
}

.button-secondary {
  color: var(--green-950);
  background: rgba(255, 253, 246, 0.72);
  border-color: rgba(14, 71, 56, 0.22);
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.button-disabled:hover {
  transform: none;
}

.hero-core {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 300px;
  padding: 22px;
  background: rgba(251, 249, 242, 0.7);
  border: 1px solid rgba(217, 207, 184, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(7, 61, 50, 0.1), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.hero-core::before,
.hero-core::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-core::before {
  top: 34px;
  right: -24px;
  width: 168px;
  height: 92px;
  opacity: 0.28;
  background:
    radial-gradient(circle at 18px 74px, var(--amber) 0 4px, transparent 5px),
    radial-gradient(circle at 86px 34px, var(--green-650) 0 4px, transparent 5px),
    linear-gradient(160deg, transparent 0 20%, rgba(31, 107, 82, 0.28) 21% 23%, transparent 24%),
    linear-gradient(18deg, transparent 0 34%, rgba(198, 161, 91, 0.24) 35% 37%, transparent 38%);
}

.hero-core::after {
  right: 18px;
  bottom: 18px;
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0), rgba(198, 161, 91, 0.56));
  box-shadow: 78px 0 0 -1px rgba(31, 107, 82, 0.48);
}

.core-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: min(430px, 100%);
  padding: 0;
  background: transparent;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(7, 61, 50, 0.2);
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  height: auto;
  border-radius: 999px;
  object-fit: contain;
}

.core-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--green-950);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.core-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.46), rgba(31, 107, 82, 0.72));
}

.hero-core p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-2);
}

.section {
  padding: 44px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head p {
  margin: 10px 0 0;
}

.work-section {
  position: relative;
  padding: 52px 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 246, 0.045) 1px, transparent 1px),
    var(--green-950);
  background-size: 88px 88px;
}

.work-section > * {
  position: relative;
  z-index: 1;
}

.work-section .section-head p {
  color: #d9e6db;
}

.work-section .section-head {
  max-width: var(--max);
  margin-bottom: 10px;
}

@media (min-width: 761px) {
  .work-section .section-head {
    position: relative;
    left: -14px;
  }
}

.work-section .section-head .eyebrow {
  color: var(--amber);
}

.work-section h2 {
  max-width: 13.6ch;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(251, 249, 242, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(3, 18, 15, 0.18), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.project-card::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 58px;
  height: 36px;
  pointer-events: none;
  background:
    radial-gradient(circle at 52px 6px, rgba(198, 161, 91, 0.38) 0 3px, transparent 4px),
    radial-gradient(circle at 12px 30px, rgba(31, 107, 82, 0.24) 0 3px, transparent 4px),
    linear-gradient(140deg, transparent 0 42%, rgba(31, 107, 82, 0.22) 43% 46%, transparent 47%);
  content: "";
  opacity: 0.52;
}

.project-feature::after {
  top: auto;
  right: 24px;
  bottom: 24px;
  width: 86px;
  opacity: 0.44;
}

.project-feature {
  grid-row: span 2;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.82fr);
}

.project-image {
  min-height: 225px;
  overflow: hidden;
  background: var(--paper-2);
}

.project-feature .project-image {
  min-height: 460px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease;
}

a.project-image:hover img {
  transform: scale(1.025);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 22px;
}

.project-copy p,
.project-copy dd,
.service-matrix span,
.price-row p,
.contact-card p {
  color: var(--muted);
}

.project-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.9rem);
}

.project-copy dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.project-copy dt {
  color: var(--green-650);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-copy dd {
  margin: 3px 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.chips li {
  padding: 7px 9px;
  color: var(--green-950);
  background: #edf0e4;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.text-link,
.note {
  width: fit-content;
  margin-top: 18px;
  color: var(--green-650);
  font-weight: 950;
}

.text-link:hover {
  color: var(--root);
}

.note {
  font-size: 0.85rem;
}

.organism-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.organism-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.76fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  background: var(--green-850);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(7, 61, 50, 0.18);
}

.organism-map::after {
  position: absolute;
  top: 50%;
  right: 18%;
  left: 18%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.42), rgba(251, 249, 243, 0.18), rgba(31, 107, 82, 0.42));
  content: "";
  opacity: 0.55;
}

.map-column,
.map-core {
  display: grid;
  align-content: center;
  min-height: 198px;
  padding: 18px;
  border: 1px solid rgba(255, 253, 246, 0.14);
  border-radius: var(--radius);
}

.map-column {
  background: rgba(251, 249, 242, 0.08);
}

.map-column.roots {
  background: linear-gradient(180deg, rgba(198, 161, 91, 0.18), rgba(251, 249, 243, 0.07));
}

.map-column.branches {
  background: linear-gradient(180deg, rgba(31, 107, 82, 0.18), rgba(251, 249, 242, 0.07));
}

.map-core {
  color: var(--green-950);
  text-align: center;
  background: var(--surface);
}

.map-column span,
.map-core span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-column strong,
.map-core strong {
  margin-top: 6px;
  color: #fff;
  font-size: 1.12rem;
}

.map-core strong {
  color: var(--green-950);
}

.map-column p {
  margin: 8px 0 0;
  color: #e6efe7;
}

.capability-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -12px;
}

.capability-strip span {
  padding: 8px 10px;
  color: var(--green-950);
  background: #edf0e4;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.business-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.business-section h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.business-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.business-topline .section-head {
  margin-bottom: 0;
}

.business-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.business-selector {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  background: linear-gradient(180deg, rgba(216, 193, 138, 0.98), rgba(198, 161, 91, 0.96));
  border: 1px solid rgba(198, 161, 91, 0.48);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(7, 61, 50, 0.16), 0 1px 0 rgba(255, 253, 246, 0.14) inset;
}

.business-selector-title,
.business-selector-help {
  margin: 0;
}

.business-selector-title {
  display: none;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-selector-help {
  color: var(--green-950);
  font-size: 0.9rem;
  font-weight: 750;
}

.business-quick-options,
.business-select-trigger {
  display: none;
}

.business-quick-options {
  gap: 7px;
}

.business-quick-option {
  min-height: 42px;
  padding: 9px 11px;
  color: var(--green-950);
  background: rgba(251, 249, 243, 0.92);
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  text-align: left;
}

.business-quick-option:hover,
.business-quick-option.is-active {
  color: #fff;
  background: var(--green-950);
  border-color: rgba(198, 161, 91, 0.72);
}

.business-select-trigger,
.business-more-trigger {
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  width: 100%;
  gap: 12px;
  padding: 12px 14px;
  color: var(--green-950);
  background: rgba(255, 253, 246, 0.96);
  border: 1px solid rgba(198, 161, 91, 0.52);
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 950;
  text-align: left;
  box-shadow: 0 10px 24px rgba(7, 61, 50, 0.06);
}

.business-more-trigger {
  display: flex;
}

.business-select-trigger:hover,
.business-more-trigger:hover,
.business-selector.is-open .business-select-trigger,
.business-selector.is-open .business-more-trigger {
  border-color: rgba(216, 193, 138, 0.86);
  background: #fffdf6;
}

.business-select-trigger:focus-visible,
.business-more-trigger:focus-visible,
.business-quick-option:focus-visible,
.business-option:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.34);
  outline-offset: 3px;
}

.business-select-arrow {
  color: var(--green-850);
  font-size: 1.2rem;
  line-height: 1;
}

.business-options-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(660px, calc(100vw - 48px));
  max-height: var(--business-menu-max-height, min(380px, calc(100vh - 190px)));
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fffdf6;
  border: 1px solid rgba(198, 161, 91, 0.34);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(7, 61, 50, 0.16);
}

.business-options-menu[hidden] {
  display: none;
}

.business-selector.opens-up .business-options-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.business-option-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(198, 161, 91, 0.18);
}

.business-option-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.business-option-group p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-option {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--green-950);
  background: rgba(237, 240, 228, 0.82);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
}

.business-option:hover,
.business-option.is-active {
  color: #fff;
  background: var(--green-850);
  border-color: rgba(198, 161, 91, 0.42);
}

.business-card,
.story-dialog-card {
  position: relative;
  overflow: hidden;
  background: rgba(251, 249, 243, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(7, 61, 50, 0.08), 0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.business-card {
  z-index: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 292px;
  padding: 20px;
  transition: opacity 180ms ease, transform 220ms ease;
}

.business-card::before,
.story-dialog-card::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 72px;
  height: 46px;
  pointer-events: none;
  background:
    radial-gradient(circle at 64px 8px, rgba(198, 161, 91, 0.34) 0 3px, transparent 4px),
    radial-gradient(circle at 18px 36px, rgba(31, 107, 82, 0.2) 0 3px, transparent 4px),
    linear-gradient(145deg, transparent 0 42%, rgba(31, 107, 82, 0.17) 43% 45%, transparent 46%);
  content: "";
}

.business-card h3 {
  max-width: 760px;
  color: var(--green-950);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}

.business-card p {
  max-width: 780px;
  margin: 0;
}

.business-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
}

.business-build-label {
  color: var(--green-650);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.business-list li {
  padding: 7px 9px;
  color: var(--green-950);
  background: #edf0e4;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.business-objective,
.business-rule {
  color: var(--ink-2);
  font-weight: 850;
}

.business-rule {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.business-note {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.business-cta {
  display: none;
  margin-top: 0;
}

.business-cta.is-visible {
  display: inline-flex;
}

.organism-story-link {
  grid-column: 1 / -1;
  margin-top: -8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.story-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.story-dialog::backdrop {
  background: rgba(7, 61, 50, 0.38);
  backdrop-filter: blur(3px);
}

.story-dialog-card {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 22px;
}

.story-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  color: var(--green-950);
  background: #edf0e4;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.story-copy {
  display: grid;
  gap: 8px;
}

.story-copy p {
  margin: 0;
  color: var(--ink-2);
}

.story-path {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--green-950);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.story-path i {
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.5), rgba(31, 107, 82, 0.34));
}

.story-close {
  grid-column: 1 / -1;
  width: fit-content;
  margin: 0;
  padding: 10px 12px;
  color: var(--green-950);
  background: #edf0e4;
  border-radius: var(--radius);
  font-weight: 900;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-matrix > div,
.price-table,
.contact-card {
  position: relative;
  background: rgba(251, 249, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(7, 61, 50, 0.08), 0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.service-matrix > div::before,
.price-table::before,
.contact-card::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px;
  height: 42px;
  pointer-events: none;
  background:
    radial-gradient(circle at 58px 8px, rgba(198, 161, 91, 0.32) 0 3px, transparent 4px),
    radial-gradient(circle at 18px 34px, rgba(31, 107, 82, 0.2) 0 3px, transparent 4px),
    linear-gradient(145deg, transparent 0 39%, rgba(31, 107, 82, 0.18) 40% 43%, transparent 44%);
  content: "";
}

.service-matrix > div {
  padding: 18px;
}

.service-matrix ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-matrix li {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid #e6decf;
}

.price-table {
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 0.7fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.price-row:first-child {
  border-top: 0;
}

.price-row.emphasis {
  background: rgba(31, 107, 82, 0.09);
}

.price-row span {
  font-weight: 950;
}

.price-row strong {
  color: var(--green-850);
  font-size: 1.12rem;
}

.price-row p,
.payment-note {
  margin: 0;
}

.payment-note {
  margin-top: 8px;
  color: var(--ink-2);
  font-weight: 850;
}

.process-section {
  padding-top: 24px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-line li {
  position: relative;
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--green-950);
  background: rgba(255, 253, 246, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.process-line li::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 1px;
  background: rgba(198, 161, 91, 0.42);
  content: "";
}

.process-line li::before {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 7px;
  height: 7px;
  background: var(--surface);
  border: 2px solid rgba(198, 161, 91, 0.54);
  border-radius: 50%;
  content: "";
}

.process-line span {
  color: var(--root);
  font-size: 0.8rem;
}

.quote-line {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 10px 12px;
  color: var(--green-950);
  background: #edf0e4;
  border-radius: var(--radius);
  font-weight: 900;
}

.contact-section {
  padding-top: 24px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.contact-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.contact-card p {
  margin: 0;
  font-size: 1.04rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  color: #e9f0e9;
  background: var(--green-950);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(3, 18, 15, 0.18);
  overflow: hidden;
}

.footer-logo {
  width: 206px;
  height: auto;
  border-radius: 999px;
  object-fit: contain;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease-out, transform 560ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 {
  --reveal-delay: 100ms;
}

.reveal-delay-200 {
  --reveal-delay: 200ms;
}

.reveal-delay-300 {
  --reveal-delay: 300ms;
}

.business-card.is-changing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 130ms ease, transform 130ms ease;
  transition-delay: 0ms;
}

.business-card.is-settling {
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  transition-delay: 0ms;
}

@media (max-width: 1120px) {
  .organism-section,
  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature .project-image {
    min-height: 360px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-feature {
    grid-column: 1 / -1;
  }

  .contact-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 900px) {
  body::before {
    width: 900px;
    height: 1180px;
    background-size: min(920px, 96vw) auto;
    opacity: 0.064;
    transform: translate(-46%, -44%);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: 20px;
    min-height: min(700px, calc(100svh - 68px));
  }

  h1 {
    font-size: clamp(3rem, 7.2vw, 4.2rem);
  }

  .hero-core {
    min-height: 280px;
    padding: 18px;
  }

  .service-matrix,
  .work-grid,
  .organism-map,
  .business-panel {
    grid-template-columns: 1fr;
  }

  .map-column,
  .map-core {
    min-height: auto;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body::before {
    width: 760px;
    height: 960px;
    background-size: 170% auto;
    opacity: 0.048;
    transform: translate(-50%, -34%);
  }

  .site-header {
    min-height: 58px;
    padding: 0 12px;
  }

  .brand-logo {
    width: 108px;
    max-height: 42px;
  }

  .menu-toggle {
    display: block;
    width: 38px;
    height: 38px;
  }

  .site-nav {
    position: fixed;
    top: 58px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .language-switch {
    width: fit-content;
    margin: 4px 0 0;
  }

  .shell {
    width: min(362px, calc(100vw - 28px));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
    min-height: auto;
    padding: 20px 0 24px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.08rem, 10.4vw, 2.86rem);
    line-height: 0.98;
  }

  h2 {
    max-width: 12ch;
    font-size: clamp(1.54rem, 7.1vw, 2.02rem);
    line-height: 1;
  }

  .organism-section h2,
  .business-section h2 {
    font-size: clamp(1.54rem, 7.1vw, 2.02rem);
  }

  .hero-lede,
  .section-head p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .eyebrow,
  .kicker,
  .matrix-label {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero-lede {
    margin-top: 10px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .hero-core {
    min-height: auto;
    gap: 9px;
    padding: 13px;
  }

  .hero-core::before,
  .project-card::after,
  .service-matrix > div::before,
  .price-table::before,
  .contact-card::before {
    opacity: 0.18;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .core-badge {
    width: min(268px, 100%);
    min-height: auto;
  }

  .footer-logo {
    width: 162px;
  }

  .core-flow {
    grid-template-columns: 1fr;
    gap: 5px;
    justify-items: start;
    font-size: 0.68rem;
  }

  .core-flow i {
    width: 64px;
  }

  .hero-core p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .section,
  .work-section {
    padding: 28px 0;
  }

  .work-section .section-head {
    margin-bottom: 8px;
  }

  .section-head,
  .section-head.compact {
    margin-bottom: 10px;
  }

  .section-head p {
    margin-top: 7px;
  }

  .business-section {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .business-topline {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .business-section h2 {
    font-size: clamp(1.38rem, 6.25vw, 1.78rem);
    line-height: 0.98;
  }

  .business-panel {
    gap: 8px;
  }

  .business-selector {
    z-index: 50;
    gap: 6px;
    padding: 9px;
    background: linear-gradient(180deg, rgba(216, 193, 138, 0.98), rgba(198, 161, 91, 0.96));
    border-color: rgba(198, 161, 91, 0.48);
    box-shadow: 0 16px 34px rgba(7, 61, 50, 0.15), 0 1px 0 rgba(255, 253, 246, 0.14) inset;
  }

  .business-selector-help {
    display: none;
  }

  .business-quick-options {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-select-trigger {
    display: none;
  }

  .business-more-trigger {
    display: flex;
  }

  .business-quick-option {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.78rem;
    line-height: 1.16;
  }

  .business-more-trigger {
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .business-options-menu {
    z-index: 60;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(50vh, 300px);
    gap: 6px;
    padding: 9px;
  }

  .business-option {
    min-height: 39px;
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .business-option-group {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 7px;
  }

  .business-option-group p {
    font-size: 0.62rem;
  }

  .business-option[data-business="restaurante"],
  .business-option[data-business="transporte"] {
    display: none;
  }

  .business-card {
    z-index: 0;
    min-height: auto;
    gap: 5px;
    padding: 12px 14px;
    background: rgba(251, 249, 243, 0.94);
    border-color: rgba(20, 89, 70, 0.16);
  }

  .business-card h3 {
    font-size: clamp(1.12rem, 5.7vw, 1.42rem);
    line-height: 1.08;
  }

  .business-card p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .business-build-label {
    font-size: 0.64rem;
  }

  .business-list {
    gap: 5px;
  }

  .business-list li,
  .chips li {
    padding: 4px 7px;
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .business-rule {
    display: none;
  }

  .business-note {
    margin-top: -2px;
    font-size: 0.8rem;
    line-height: 1.38;
  }

  .story-dialog-card {
    gap: 14px;
    padding: 20px;
  }

  .story-path {
    grid-template-columns: 1fr;
    gap: 7px;
    justify-items: start;
  }

  .story-path i {
    width: 80px;
  }

  .project-image,
  .project-feature .project-image {
    min-height: 168px;
  }

  .project-copy,
  .service-matrix > div,
  .contact-card {
    padding: 14px;
  }

  .project-copy {
    min-height: auto;
    gap: 0;
  }

  .project-copy h3 {
    font-size: clamp(1.22rem, 6.8vw, 1.62rem);
    line-height: 1.06;
  }

  .project-copy p,
  .project-copy dd,
  .service-matrix p,
  .price-row p,
  .contact-card p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .project-copy dl {
    display: none;
  }

  .chips {
    gap: 5px;
    margin-top: 10px;
  }

  .text-link,
  .note {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .organism-map {
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .organism-map::after {
    display: none;
  }

  .map-column,
  .map-core {
    padding: 14px;
  }

  .map-column {
    min-height: auto;
    background: rgba(251, 249, 243, 0.88);
    border-color: rgba(198, 161, 91, 0.28);
    box-shadow: 0 10px 24px rgba(7, 61, 50, 0.06);
  }

  .map-column.roots,
  .map-column.branches {
    background: rgba(251, 249, 243, 0.88);
  }

  .map-core {
    min-height: 128px;
    color: #fff;
    background: var(--green-850);
    border-color: rgba(198, 161, 91, 0.42);
    box-shadow: 0 16px 34px rgba(7, 61, 50, 0.2);
  }

  .map-column span,
  .map-column strong,
  .map-column p {
    color: var(--green-950);
  }

  .map-column p {
    color: var(--ink-2);
  }

  .map-core span {
    color: var(--gold-soft);
  }

  .map-core strong {
    color: #fff;
    font-size: 1.02rem;
  }

  .service-matrix {
    gap: 10px;
  }

  .service-matrix ul {
    gap: 7px;
  }

  .service-matrix li {
    gap: 3px;
    padding-top: 8px;
  }

  .price-row {
    padding: 11px 14px;
  }

  .capability-strip {
    margin-top: 0;
    gap: 6px;
  }

  .capability-strip span {
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-line li {
    min-height: 62px;
    padding: 10px;
    font-size: 0.86rem;
  }

  .contact-card {
    gap: 11px;
  }

  .contact-card h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .contact-card p {
    font-size: 0.92rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 108px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.72rem);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .business-card,
  .business-card.is-changing {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
