/* Copia literal del <style> de index.html (Integra Terra). Usado por alianza-romero-abogados.html. */

/* Template scaffolding — page layout and web-scale sizing only; every color,
   font, radius and shadow comes from ../../styles.css. The voice is the
   deck's, re-derived for a scrolling page: the grid SHOWS — 2px
   rules draw the structure — red is spent as a mark, and its one field
   moment is the poster close (the deck's divider logic: the red page sets
   nothing small).

   THE RHYTHM: a 28px leading unit (17px Archivo body at ~1.65), 14px
   half-step; line-heights and block margins in unit multiples, heads
   cap-trimmed, ?baselines/B to review. The deck's seat-pinning relaxes to
   per-block discipline on a fluid page. The system's own interface
   components (nav, buttons, inputs) keep their styles.css leading — the
   rhythm governs the page's text, not the controls.

   THE LANDING LAWS (shared by all six systems' landing templates):
   #1 display headers break per sentence (.line spans); #2 the landing
   advertises an invented product played straight — modernist's is Takt,
   timetables that run like Switzerland; #3 spacing is cluster-scoped
   (display leading ratio-governed ≈1.06 for Archivo's tight caps — the
   display-block lattice exemption — tight single-unit gaps inside a text
   cluster, the air between sections); #4 no hero eyebrow — the nav brand
   names the product.

   Optical left alignment: the deck's measured Archivo 800 value carries
   verbatim (-0.058em where caps lead a display line; em-scaled). */
:root {
  --color-accent: #23345a !important;
  --color-accent-100: #eef1f6 !important;
  --color-accent-200: #dde3ee !important;
  --color-accent-300: #c7d0e2 !important;
  --color-accent-400: #3e5386 !important;
  --color-accent-500: #23345a !important;
  --color-accent-600: #1b2947 !important;
  --color-accent-700: #151f37 !important;
  --color-accent-800: #101728 !important;
  --color-accent-900: #0a0f1b !important;
  --color-accent-2: #23345a !important;
  --color-accent-2-100: #eef1f6 !important;
  --color-accent-2-200: #dde3ee !important;
  --color-accent-2-300: #c7d0e2 !important;
  --color-accent-2-400: #3e5386 !important;
  --color-accent-2-500: #23345a !important;
  --color-accent-2-600: #1b2947 !important;
  --color-accent-2-700: #151f37 !important;
  --color-accent-2-800: #101728 !important;
  --color-accent-2-900: #0a0f1b !important;
  --leading: 28px;
  --half: 14px;
  --edge: clamp(20px, 5vw, 72px);
  --measure: 58ch;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; text-wrap: pretty; }
/* full-bleed bands measure against the scrollbar-free width, so the tinted
   sections never overshoot the viewport */
.steps, .split#enfoque, .sectors {
  margin-inline: calc(-50cqw + 50%) !important;
  padding-inline: calc(50cqw - 50%) !important; }
body { container-type: inline-size; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
/* the component demo pads the masthead with its own spacing; on the page the
   masthead's contents take the page gutter and sit on the wrap's text axis
   (padding-only — full-width paint such as a masthead rule is untouched) */
.nav { padding-inline: max(var(--edge), calc((100% - 1200px) / 2 + var(--edge))); }
.nav a { white-space: nowrap; }
a.btn-primary { color: var(--color-bg); }
a.btn { white-space: nowrap; }
.nav .nav-brand { display: block; }
.nav .nav-brand img { display: block; height: 38px; width: auto; }
/* — proceso: four numbered steps on the grid — */
.steps { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.steps .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(1.5 * var(--leading)) clamp(20px, 3vw, 48px); margin-top: var(--leading); }
.step-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(28px, 2.6vw, 40px); line-height: calc(1.5 * var(--leading));
  color: var(--color-accent); font-feature-settings: "tnum" 1; margin: 0; text-box: trim-both cap alphabetic; }
.step-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; line-height: var(--leading); margin: var(--half) 0 0; text-box: trim-both cap alphabetic; }
.step-copy { font-size: 14.5px; line-height: calc(0.75 * var(--leading)); margin: var(--half) 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@media (max-width: 880px) { .steps .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps .grid { grid-template-columns: 1fr; } }
/* — proof list: square marks, the system's list grammar — */
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--leading); align-content: center; }
.proof li { position: relative; padding-left: 28px; font-size: 17px; line-height: var(--leading);
  font-family: var(--font-heading); font-weight: 600; }
.proof li::before { content: ""; position: absolute; left: 0; top: calc(0.5 * var(--leading) - 5px);
  width: 10px; height: 10px; background: var(--color-accent); }
.nav a[aria-current='location'] { color: var(--color-accent); } /* in-page anchor, not
   a page link — 'location' is the truthful value; carry the component's active ink */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }
  .nav a:not(.btn) { font-size: 14px; }
  .nav .nav-brand img { height: 30px; }
}
@media (max-width: 420px) { .nav a:not(.btn) { display: none; } } /* phone width: the nav
   keeps brand + the one action (layout-only — the component's look is
   untouched); the full link row's min-content crosses narrow-phone widths */

/* — drawn structure: the 2px rule is the section seam (the deck's header
   band as page grammar; rules span the content column, solid — this system
   does not fade its rules) — */
.rule2 { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

/* — kicker (deck grammar: uppercase, tabular, accent; no hanging dash —
   modernist marks are squares, and they belong to lists, not labels) — */
.kicker {
  display: block; font-size: 13px; line-height: var(--half);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); /* accent-colored SMALL text takes the deep step —
     6.4:1, where the base accent measures 3.8:1 (a large-text value; the
     deck's kickers are 24px, this one is 13px) */
  font-feature-settings: "tnum" 1;
  margin: 0 0 calc(var(--leading) - var(--half));
}

/* — hero: full-bleed grayscale slideshow, crossfading with a slow push-in — */
.hero-media { position: relative; background: var(--color-accent-700); overflow: hidden;
  min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.hero-media .slides { position: absolute; inset: 0; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0;
  animation: heroFade 32s infinite; }
.hero-media .slides:has(.slide:only-child) .slide { opacity: 1; animation: slowPush 26s ease-in-out infinite alternate; }
@keyframes slowPush { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero-media .slide image-slot { width: 100%; height: 100%; display: block; }
.hero-media .slide:nth-child(1) { opacity: 1; animation-delay: -1s; }
.hero-media .slide:nth-child(2) { animation-delay: 8s; }
.hero-media .slide:nth-child(3) { animation-delay: 16s; }
.hero-media .slide:nth-child(4) { animation-delay: 24s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.04); }
  3% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.14); }
}
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-accent-700) 88%, transparent) 0%,
    color-mix(in srgb, var(--color-accent-700) 55%, transparent) 60%,
    color-mix(in srgb, var(--color-accent-700) 30%, transparent) 100%); }
.photo-edit { position: absolute; z-index: 3; top: var(--space-3); right: var(--space-3);
  font: 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer; background: transparent;
  color: var(--color-bg); border: 2px solid color-mix(in srgb, var(--color-bg) 60%, transparent); }
.photo-edit:hover { background: color-mix(in srgb, var(--color-bg) 16%, transparent); }
.hero-media body { container-type: inline-size; }
.wrap { position: relative; z-index: 1; width: 100%; box-sizing: border-box;
  padding-top: calc(4 * var(--leading)); padding-bottom: calc(2.5 * var(--leading)); }
.hero-media .display, .hero-media .sub { color: var(--color-bg); }
.hero-media .sub { color: color-mix(in srgb, var(--color-bg) 88%, transparent);
  font-size: 18.7px; line-height: calc(1.1 * var(--leading)); max-width: var(--measure);
  margin: calc(2 * var(--leading) - 1cap) 0 0; text-box: trim-both cap alphabetic; }
.hero-media .row { display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: calc(1.75 * var(--leading)); }
.hero-media .sub strong { font-weight: 600; }
.hero-media .sub.sub2 { margin-top: calc(0.75 * var(--leading)); font-weight: 400; }
.hero-media .btn-ghost { color: var(--color-bg); border-color: var(--color-bg); }
.hero-media a.btn-primary { background: var(--color-bg); color: var(--color-accent-700); border-color: var(--color-bg); }
@media (prefers-reduced-motion: reduce) { .hero-media .slide { animation: none; } .hero-media .slide:nth-child(1) { opacity: 1; } }
/* empty state: until all three photos are dropped, the slides sit as a labelled
   drop strip above the gradient instead of hiding under it */
.hero-media.edit-photos .slides,
.hero-media:has(.slides image-slot:not([data-filled])) .slides {
  position: absolute; inset: auto 0 0 0; height: 200px; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hero-media.edit-photos .slide,
.hero-media:has(.slides image-slot:not([data-filled])) .slide {
  position: relative; inset: auto; opacity: 1; animation: none; transform: none; overflow: hidden;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent); color: var(--color-text); }
.hero-media.edit-photos .slide image-slot,
.hero-media:has(.slides image-slot:not([data-filled])) .slide image-slot { height: 200px; aspect-ratio: auto; }
.hero-media.edit-photos .wrap,
.hero-media:has(.slides image-slot:not([data-filled])) body { container-type: inline-size; }
.wrap { padding-bottom: calc(8 * var(--leading)); }

/* — enfoque: full-bleed warm band (the logo's light earth tone) so the
   section reads apart from the ink-on-ground rhythm — */
.split#enfoque { background: #ece6dc;
  margin-inline: calc(-50vw + 50%); padding-inline: calc(50vw - 50%);
  padding-block: calc(3 * var(--leading)); }

/* — sector strip: three frames in original color, slow alternating drift — */
.sectors { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.sectors .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--leading); margin-top: var(--leading); }
.sector figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.sector:has(image-slot:not([data-filled])) figure { display: block; background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.sector image-slot:not([data-filled]) { animation: none; }
.sector image-slot { width: 100%; height: 100%; display: block; animation: drift 18s ease-in-out infinite alternate; }
.sector:nth-child(2) image-slot { animation-duration: 22s; animation-delay: -6s; }
.sector:nth-child(3) image-slot { animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .sector image-slot { animation: none; } }
.sector-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; line-height: var(--leading); margin: var(--half) 0 0; text-box: trim-both cap alphabetic; }
.sector-copy { font-size: 14.5px; line-height: calc(0.75 * var(--leading)); margin: 6px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@media (max-width: 720px) {
  .sectors .grid { grid-template-columns: 1fr; gap: calc(1.5 * var(--leading)); }
  .sector figure { aspect-ratio: 16 / 10; }
  .sector image-slot { animation: none; transform: none; }
}

/* — hero — */
.hero { padding: calc(4 * var(--leading)) 0 calc(3 * var(--leading)); }
.display {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 6.2vw, 84px);
  line-height: clamp(36px, 6.57vw, 89px); /* law #3: ratio-governed ≈1.06 —
     Archivo's 800 sits tight and all-cap-height; the display-block lattice
     exemption (no 14px step is both tighter than the old look and clear) */
  letter-spacing: -0.02em; margin: 0;
  margin-left: -0.058em; /* optical left alignment — the deck's measured Archivo 800 value */
  text-box: trim-both cap alphabetic;
}
.display .line { display: block; } /* law #1: one sentence per line */
.hero .sub { font-size: 17px; line-height: var(--leading); max-width: var(--measure);
  margin: calc(1.5 * var(--leading) - 1cap) 0 0;
  text-box: trim-both cap alphabetic; } /* 1.5 units: clears the display's descenders with cluster-tight air (law #3) */
.hero .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--leading); }

/* — stat row (in-grammar: red stays a MARK on the light ground — the stat
   numerals take the accent at display size, ≥3:1 as large text per the
   system's own accent rule; the red FIELD is reserved for the close) — */
.stats { padding: calc(2.5 * var(--leading)) 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: calc(1.5 * var(--leading)) var(--leading); }
.stat-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 3.4vw, 48px); line-height: calc(2 * var(--leading));
  color: var(--color-accent); /* display figures stay proportional — the deck's figure policy */
  margin: 0; margin-left: -0.045em; /* digits lead — the deck's "0"-population value */
  text-box: trim-both cap alphabetic; }
.stat-label { font-size: 13px; line-height: var(--half); letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* small-text ink on the
     light ground: 70% measures 5.8:1 (the deck's 55% furniture mix is a
     24px large-text convention — at 13px the 4.5:1 bar applies, and 55%
     measures only 3.7:1 here) */
  margin: var(--half) 0 0; }

/* — feature rows (the deck's ruled-toc grammar: 2px rules ON the seams,
   red square marks hanging at the numbers — drawn structure, no cards) — */
.features { padding: calc(3 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.feature { display: grid; grid-template-columns: minmax(64px, 160px) minmax(0, 420px) minmax(0, 1fr);
  gap: var(--leading) clamp(24px, 4vw, 72px); align-items: baseline;
  padding: calc(1.5 * var(--leading)) 0; }
.feature + .feature { border-top: 2px solid var(--color-divider); } /* the ruled seam — solid, the system's weight */
.f-num { position: relative; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: var(--leading); color: var(--color-text);
  font-feature-settings: "tnum" 1; margin: 0; text-box: trim-both cap alphabetic; }
.f-num::before { content: ""; position: absolute; left: -24px; top: calc(0.5cap - 5px);
  width: 10px; height: 10px; background: var(--color-accent); } /* the deck's 10px red square,
     hanging left of the number's axis — at narrow widths the gutter folds it away */
@media (max-width: 1280px) { .f-num::before { display: none; } }
.f-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 24px; line-height: var(--leading); letter-spacing: -0.01em;
  margin: 0; text-box: trim-both cap alphabetic; }
.f-copy { font-size: 15.5px; line-height: var(--leading); margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 52ch; text-box: trim-both cap alphabetic; }

/* — imagery split (grayscale photograph — the system prints in black and
   white; the box pins the bundled asset's 951×665 ratio so swaps
   cover-crop into the same frame) — */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--leading) clamp(24px, 5vw, 96px); align-items: center;
  padding: calc(2 * var(--leading)) 0 calc(3 * var(--leading)); }
.split-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 32px; line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em;
  margin: 0; text-box: trim-both cap alphabetic; }
.split-copy .note { font-size: 15.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: calc(var(--leading) - 1cap) 0 0; max-width: 48ch; text-box: trim-both cap alphabetic; }
.split-figure { margin: 0; }
.split-figure image-slot { width: 100%; aspect-ratio: 951 / 665; }

/* — quote (hanging punctuation, the deck's measured Archivo advances) — */
.quote { padding: calc(2.5 * var(--leading)) 0 calc(3.5 * var(--leading)); }
.quote blockquote {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(24px, 2.6vw, 34px); line-height: calc(1.5 * var(--leading));
  letter-spacing: -0.015em; max-width: 32ch; margin: 0;
  text-indent: -0.496em; /* hang the opening “ (the deck's measured advance in the 800) */
  text-box: trim-both cap alphabetic;
}
.quote figcaption { font-size: 15.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* 5.8:1 — see .stat-label */
  margin: calc(2 * var(--leading) - 1cap) 0 0; /* two grid units below the quote's
     last baseline — one reads as part of the quote block; the attribution needs air */
  text-indent: -1.209em; /* hang the leading em-dash + space (measured in the Regular) */
  text-box: trim-both cap alphabetic; }

@media (max-width: 720px) {
  /* the phone gutter (--edge bottoms out at 20px) is narrower than the hung
     marks' measured advances, so a hung “ or em-dash would press into or past
     the viewport edge — seat the quote flush below this width; the hang
     returns with the wider gutter */
  .quote blockquote, .quote figcaption { text-indent: 0; }
}

/* — the red poster close (the deck's divider logic: the accent's one field
   moment, type reversed to the paper token). COPY on the red is
   display-grade only — paper display type measures 3.8:1, the deck
   dividers' own derivation. The one small element is the ghost button, a
   CONTROL: paper-on-red measures the same 3.8:1, which meets the system's
   documented interface-chrome bar (the readme tunes the accent pair to at
   least 3:1 — "enough for icons, large text and interface chrome, not for
   body copy") — the same bar the system's own accent-filled primary button
   label rides everywhere. */
.close { background: var(--color-accent); color: var(--color-bg); }
.close body { container-type: inline-size; }
.wrap { padding-top: calc(3 * var(--leading)); padding-bottom: calc(3 * var(--leading)); }
.close h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 4.2vw, 56px); line-height: clamp(36px, 4.45vw, 59.4px); /* ≈1.06 —
     display-grade, so it carries the display-block lattice exemption (the
     rhythm probe excludes .display and .close h3 alike) */
  letter-spacing: -0.015em; margin: 0; margin-left: -0.058em;
  text-box: trim-both cap alphabetic; }
.close h3 .line { display: block; }
.close .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: calc(1.5 * var(--leading)); }
.close .btn-ghost { color: var(--color-bg); border-color: var(--color-bg); } /* paper outline on the red field */
footer { padding: calc(2 * var(--leading)) 0; font-size: 13px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* 5.8:1 — see .stat-label */ }

/* — responsive collapse — */
/* the feature grid's fixed-max columns (160 + 420 + gaps) crush the copy
   column in the tablet band, so it collapses earlier than the page */
@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; gap: var(--half); }
  .f-copy { max-width: var(--measure); }
}
@media (max-width: 720px) {
  .hero-media { min-height: 0; }
  .hero-media body { container-type: inline-size; }
.wrap { padding-top: calc(2.5 * var(--leading)); padding-bottom: calc(2 * var(--leading)); }
  .hero-media .display .line { display: inline; }
  .hero-media .row { flex-direction: column; align-items: flex-start; }
  .hero-media .row .btn { width: 100%; box-sizing: border-box; }
  .close .row .btn { width: 100%; box-sizing: border-box; }
  .hero { padding-top: calc(2.5 * var(--leading)); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); justify-content: start; }
  .split { grid-template-columns: 1fr; }
  .split-figure { order: -1; }
}

/* Review aid: the 28px rhythm drawn as hairlines — debug chrome, toggled by
   ?baselines or the B key, never part of the look. */
body[data-baselines] { position: relative; }
body[data-baselines]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom,
      color-mix(in srgb, var(--color-accent) 35%, transparent) 0 1px,
      transparent 1px var(--leading)),
    repeating-linear-gradient(to bottom,
      transparent 0 var(--half),
      color-mix(in srgb, var(--color-accent) 16%, transparent) var(--half) calc(var(--half) + 1px),
      transparent calc(var(--half) + 1px) var(--leading));
}

/* — logo palette in play: terracotta and olive join the navy so each section
   carries its own mark, ground stays ink-on-paper — */
:root { --it-terracotta: #7a4a26; --it-olive: #48603c; --it-sand: #ece6dc; }
.steps .kicker { color: var(--it-terracotta); }
.steps .grid > div:nth-child(1) .step-num { color: var(--color-accent); }
.steps .grid > div:nth-child(2) .step-num { color: var(--it-terracotta); }
.steps .grid > div:nth-child(3) .step-num { color: var(--it-olive); }
.steps .grid > div:nth-child(4) .step-num { color: var(--color-accent-400); }
.split#enfoque .kicker { color: var(--it-terracotta); }
.proof li:nth-child(1)::before { background: var(--color-accent); }
.proof li:nth-child(2)::before { background: var(--it-terracotta); }
.proof li:nth-child(3)::before { background: var(--it-olive); }
.proof li:nth-child(4)::before { background: var(--color-accent-400); }
.features .kicker { color: var(--it-olive); }
.feature .f-num::before { background: var(--color-accent); }
.feature:nth-of-type(3) .f-num::before { background: var(--it-terracotta); }
.feature:nth-of-type(4) .f-num::before { background: var(--it-olive); }
.feature:nth-of-type(5) .f-num::before { background: var(--color-accent-400); }
.sectors .kicker { color: var(--it-terracotta); }

/* — wider spread of the logo palette: tinted section bands, colored rules and
   marks so terracotta and olive carry as much weight as the navy — */
.steps { background: linear-gradient(to bottom, #fbf7f1, #fbf7f1); 
  margin-inline: calc(-50vw + 50%); padding-inline: calc(50vw - 50%); }
.steps .grid > div { border-top: 3px solid var(--color-accent); padding-top: var(--half);
  display: grid; grid-template-rows: auto calc(2 * var(--leading)) auto; }
.steps .grid > div:nth-child(2) { border-top-color: var(--it-terracotta); }
.steps .grid > div:nth-child(3) { border-top-color: var(--it-olive); }
.steps .grid > div:nth-child(4) { border-top-color: var(--color-accent-400); }
.split#enfoque { background: var(--it-sand); }
.split#enfoque .split-title { color: #3b2a1c; }
.proof li { padding-left: 32px; }
.proof li::before { width: 14px; height: 14px; }
.feature { border-left: 3px solid transparent; padding-left: 0; }
.features .feature { box-shadow: inset 4px 0 0 var(--color-accent); }
.features .feature:nth-of-type(3) { box-shadow: inset 4px 0 0 var(--it-terracotta); }
.features .feature:nth-of-type(4) { box-shadow: inset 4px 0 0 var(--it-olive); }
.features .feature:nth-of-type(5) { box-shadow: inset 4px 0 0 var(--color-accent-400); }
.features .feature:nth-of-type(5) .f-num { color: var(--color-accent-400); }
.features .feature { padding-left: calc(var(--space-4)); }
.features .f-num { color: var(--color-accent); font-size: 72px; line-height: calc(2 * var(--leading)); }
.features .feature:nth-of-type(3) .f-num { color: var(--it-terracotta); }
.features .feature:nth-of-type(4) .f-num { color: var(--it-olive); }
.sectors { background: #f7f4ee; margin-inline: calc(-50vw + 50%); padding-inline: calc(50vw - 50%); }
.sector figure { border-bottom: 5px solid var(--color-accent); }
.sector:nth-child(2) figure { border-bottom-color: var(--it-terracotta); }
.sector:nth-child(3) figure { border-bottom-color: var(--it-olive); }
.hero-media a.btn-primary { background: var(--it-sand); color: #3b2a1c; border-color: var(--it-sand); }
.close { background: var(--color-accent); }
.close .row .btn-ghost { border-color: var(--it-sand); color: var(--it-sand); }

/* — logo geometry as page detail: the mark's angular bands, flat and large,
   used as watermarks and section markers (no gradients, no rounding) — */
.it-mark { position: absolute; pointer-events: none; }
.split#enfoque { position: relative; overflow: hidden; }
.split#enfoque::before, .split#enfoque::after { content: ""; position: absolute; pointer-events: none; }
.split#enfoque::before { right: -6%; top: -10%; width: 340px; height: 340px;
  background: var(--it-terracotta); opacity: .10;
  clip-path: polygon(0 62%, 100% 0, 100% 38%, 0 100%); }
.split#enfoque::after { right: 4%; bottom: -12%; width: 300px; height: 300px;
  background: var(--it-olive); opacity: .12;
  clip-path: polygon(0 40%, 100% 0, 100% 34%, 0 74%); }
.steps { position: relative; overflow: hidden; }
.steps::before { content: ""; position: absolute; left: -4%; bottom: -14%;
  width: 280px; height: 280px; background: var(--color-accent); opacity: .07;
  clip-path: polygon(0 0, 100% 46%, 100% 100%, 0 54%); pointer-events: none; }
.close { position: relative; overflow: hidden; }
.close::before { content: ""; position: absolute; right: -3%; top: -18%;
  width: 420px; height: 420px; background: var(--it-sand); opacity: .10;
  clip-path: polygon(0 58%, 100% 0, 100% 40%, 0 100%); pointer-events: none; }
.close .wrap { position: relative; z-index: 1; }
/* section kickers get the mark's stacked-band glyph */
.kicker { position: relative; padding-left: 22px; }
.kicker::before { content: ""; position: absolute; left: 0; top: 50%;
  width: 13px; height: 13px; transform: translateY(-50%);
  background: currentColor; clip-path: polygon(0 58%, 100% 0, 100% 42%, 0 100%); }

/* decorative polygons sit behind content */
.split#enfoque::before, .split#enfoque::after, .steps::before, .close::before { z-index: 0; }
.steps .kicker, .steps .grid, .sectors .kicker, .sectors .grid,
.split#enfoque .split-copy, .split#enfoque .proof { position: relative; z-index: 1; }

.steps, .split#enfoque, .close { overflow: clip !important; }
/* — the mark itself, oversized and translucent, replaces the abstract polygons — */
.split#enfoque::before, .split#enfoque::after, .steps::before, .close::before {
  background-image: url(mark-bands.svg); background-repeat: no-repeat;
  background-size: contain; background-color: transparent;
  clip-path: none; }
/* oversized: the square frame falls well outside the band, so only the interior
   bands read as texture and nothing looks like a cropped box */
.split#enfoque::before { right: -34%; top: -55%; width: 1100px; height: 1100px; opacity: .09; }
.split#enfoque::after { display: none; }
.steps::before { left: -30%; bottom: -52%; width: 950px; height: 950px; opacity: .06; }
.close::before { right: -28%; top: -48%; width: 1000px; height: 1000px; opacity: .12;
  filter: brightness(0) invert(1); }

/* — brand presence: larger mark in the header, a white mark over the closing
   band, and the full logo in the footer — */
.nav .nav-brand img { height: 42px !important; }
@media (max-width: 640px) { .nav .nav-brand img { height: 32px !important; } }
.nav { padding-top: calc(0.8 * var(--leading)); padding-bottom: calc(0.8 * var(--leading)); }
/* 3 — service card copy justified */
.features-intro { margin-top: var(--leading); }
.features-sub { margin: 0; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(20px, 1.8vw, 26px); line-height: calc(1.5 * var(--leading)); }
.features-lead { margin: var(--half) 0 0; max-width: var(--measure);
  font-size: 16px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.f-cta { margin: var(--leading) 0 0; }
.features .f-copy { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* ————— footer, per spec: navy field, logo lockup, contact column, watermark ————— */
:root { --ft-navy: #0f1f3d; --ft-olive: #7f9a63; }
.site-footer { background: var(--ft-navy); color: #fff; position: relative; overflow: clip;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: calc(2 * var(--leading));
  --ft-pad: clamp(18px, 4vw, 62px); }
/* watermark: the geological layers only, monochrome, bleeding off the right edge */
.site-footer::before { content: ""; position: absolute; right: -42%; top: -34%;
  width: max(1500px, 150%); aspect-ratio: 1; opacity: .55; background-color: #1b2e52;
  -webkit-mask: url(mark-bands.svg) no-repeat center/contain;
  mask: url(mark-bands.svg) no-repeat center/contain; pointer-events: none; }
.footer-main { position: relative; z-index: 1;
  padding: 62px var(--ft-pad) 56px; }
.footer-lockup { display: flex; align-items: center; }
.footer-logo-white { display: block; width: clamp(220px, 24vw, 320px); height: auto; }
.footer-iso { display: block; width: 92px; height: 92px; }
.footer-word { margin: 0; display: grid; gap: 2px;
  font-family: var(--font-heading); font-weight: 700; color: #fff;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.02; letter-spacing: .035em; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 104px); margin-top: 46px; align-items: start; }
.footer-tick { display: block; width: 58px; height: 2px; background: var(--ft-olive); }
.footer-claim p { margin: 22px 0 0; font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(19px, 2vw, 27px); line-height: 1.34; color: #fff; }
.footer-contact { border-left: 1px solid rgba(255,255,255,.16); padding-left: clamp(24px, 4vw, 62px);
  padding-top: 6px; padding-bottom: 6px; }
.footer-kicker { margin: 0 0 24px; font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ft-olive); }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.footer-contact li { display: flex; align-items: center; gap: 17px; font-size: 17px; }
.footer-contact .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ft-olive); display: grid; place-items: center; color: var(--ft-olive); }
.footer-contact .ic svg { width: 18px; height: 18px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: #cfe0bb; }
.footer-place { color: #fff; }
.footer-contact a[href^="tel"], .footer-cta-row a { white-space: nowrap; }
.footer-tels { display: flex; flex-wrap: wrap; column-gap: 10px; align-items: center; }
.footer-tels .sep { color: rgba(255,255,255,.45); }
.footer-tels a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-cta-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 2px; }
.footer-bar { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px var(--ft-pad); }
.footer-bar p { margin: 0; font-size: 12px; color: rgba(255,255,255,.62); }
@media (max-width: 860px) {
  .site-footer::before { opacity: .35; }
  .footer-main { padding-top: 36px; padding-bottom: 30px; text-align: center; }
  .footer-lockup { justify-content: center; }
  .footer-logo-white { width: 200px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; justify-items: center; }
  .footer-tick { margin: 0 auto; }
  .footer-contact { border-left: 0; padding-left: 0; text-align: left; }
  .footer-bar { flex-direction: column; justify-content: center; text-align: center; }
}

/* — por qué integra terra — */
.why { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.why .kicker { color: var(--it-olive); }
.why-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(26px, 2.6vw, 40px); line-height: calc(1.5 * var(--leading));
  margin: var(--leading) 0 0; max-width: var(--measure); }
.why-lead { margin: var(--leading) 0 0; max-width: var(--measure);
  font-size: 17px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.why-list { margin-top: calc(1.5 * var(--leading)); }
.why-list li:nth-child(1)::before { background: var(--color-accent); }
.why-list li:nth-child(2)::before { background: var(--it-terracotta); }
.why-list li:nth-child(3)::before { background: var(--it-olive); }

/* sector color rhythm continues across the eight cards */
.sector:nth-child(4) figure { border-bottom-color: var(--color-accent-400); }
.sector:nth-child(5) figure { border-bottom-color: var(--it-olive); }
.sector:nth-child(6) figure { border-bottom-color: var(--it-terracotta); }
.sector:nth-child(7) figure { border-bottom-color: var(--color-accent); }
.sector:nth-child(8) figure { border-bottom-color: var(--it-olive); }
.sector:nth-child(4) image-slot { animation-duration: 20s; animation-delay: -3s; }
.sector:nth-child(5) image-slot { animation-duration: 24s; animation-delay: -9s; }
.sector:nth-child(6) image-slot { animation-duration: 19s; animation-delay: -14s; }
.sector:nth-child(7) image-slot { animation-duration: 23s; animation-delay: -5s; }
.sector:nth-child(8) image-slot { animation-duration: 21s; animation-delay: -11s; }

/* — hablemos: sand band before the footer — */
.talk { background: var(--it-sand); overflow: clip; position: relative;
  padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.talk::before { content: ""; position: absolute; right: -30%; top: -50%;
  width: 1000px; height: 1000px; background: url(mark-bands.svg) no-repeat center/contain;
  opacity: .08; pointer-events: none; }
.talk .wrap { position: relative; z-index: 1; }
.talk .kicker { color: var(--it-terracotta); }
.talk-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(26px, 2.6vw, 40px); line-height: calc(1.5 * var(--leading));
  margin: var(--leading) 0 0; max-width: var(--measure); color: #3b2a1c; }
.talk-lead { margin: var(--half) 0 0; max-width: var(--measure);
  font-size: 17px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.talk-row { margin-top: calc(1.5 * var(--leading)); }
