/* ============================================================
   STRAT · Consultoría · Migración Ejecutiva
   Built strictly on "Manual de marca STRAT" v1.0 · 2026
   ============================================================ */

/* ── Brand tokens ─────────────────────────────────────────── */
:root {
  /* Manual · 05 Color */
  --ink:       #201E1D;
  --cian:      #0088B0;
  --magenta:   #D6006C;   /* second ink — data emphasis only */
  --paper:     #F3F2F2;

  /* Neutral tints derived from paper/ink (not brand colors) */
  --paper-alt: #EAE8E7;
  --line:      #D6D3D1;
  --muted:     #6B6664;
  --ink-soft:  #34302E;
  --on-ink-muted: #A8A2A0;

  /* Manual · 02 Construcción — M = 1/6 of cap height (~0.67em) */
  --M:         0.1117em;   /* 1M · column width      */
  --M3:        0.3350em;   /* 3M · column to text    */
  --M12:       0.1340em;   /* 1.2M · name to tagline */

  --shell:     1180px;
  --gutter:    clamp(20px, 5vw, 56px);

  --ease:      cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(16px, 0.55vw + 14.4px, 18px);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 100; text-decoration: none;
}
.skip:focus { left: 0; }

/* ── Language switching (CSS-driven, no-JS safe) ──────────── */
html[data-lang="es"] [lang="en"],
html[data-lang="en"] [lang="es"] { display: none; }

/* ── Layout ───────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(72px, 11vw, 140px); }

.band--rule      { border-top: 1px solid var(--line); }
.band--paper-alt { background: var(--paper-alt); }

.band--ink {
  background: var(--ink);
  color: var(--paper);
}
.band--ink .section-title { color: var(--paper); }

/* ============================================================
   THE MARK · Manual 01–03
   Ink column at 1M, always left of the name, gap 3M.
   ============================================================ */
.mark {
  display: inline-flex;
  align-items: stretch;
  gap: var(--M3);
  text-decoration: none;
  line-height: 1;
}

.mark__column {
  flex: none;
  width: var(--M);
  min-width: 3px;
  background: var(--cian);
  align-self: stretch;
}

.mark__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mark__name {
  font-weight: 600;
  font-size: 1em;
  line-height: 1.12;
  letter-spacing: 0;          /* Manual 07 · no alterar el interletraje */
  color: var(--ink);
  transition: color .4s var(--ease);
}

/* Manual 03 · version D — negative over ink, here over the darkened photo */
.site-header .mark__name,
.site-header .mark__tagline { color: var(--hdr-fg); }

.mark__tagline {
  margin-top: var(--M12);
  font-size: 0.255em;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.185em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Version E — reduced, no tagline. Header, height ≈ 40px */
.mark--e { font-size: 30px; }

/* Version A — principal with tagline. Footer */
.mark--a { font-size: clamp(30px, 4vw, 40px); }

/* ── Header ───────────────────────────────────────────────── */
/* Overlays the hero photograph at rest, becomes paper once scrolled. */
.site-header {
  --hdr-fg:    var(--paper);
  --hdr-muted: rgba(243, 242, 242, .76);
  --hdr-line:  rgba(243, 242, 242, .28);

  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
}

.site-header.is-stuck {
  --hdr-fg:    var(--ink);
  --hdr-muted: var(--muted);
  --hdr-line:  var(--line);

  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}

/* The header floats, so anchored sections need their own clearance. */
[id] { scroll-margin-top: 92px; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 78px;
  padding-block: 14px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hdr-muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.site-nav a:hover { color: var(--hdr-fg); border-bottom-color: var(--cian); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  margin-left: auto;
}
.site-nav + .site-header__actions { margin-left: 0; }

/* ── Language toggle ──────────────────────────────────────── */
.lang { display: flex; align-items: center; gap: 6px; }

.lang__btn {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--hdr-muted);
  padding: 4px 2px;
  transition: color .2s var(--ease);
}
.lang__btn:hover { color: var(--hdr-fg); }
.lang__btn[aria-pressed="true"] {
  color: var(--hdr-fg);
  box-shadow: inset 0 -2px 0 var(--cian);
}
.lang__sep { color: var(--hdr-line); font-size: 0.78rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-soft); }

.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--outline-light { color: var(--paper); border-color: rgba(243, 242, 242, .42); }
.btn--outline-light:hover { border-color: var(--paper); background: rgba(243, 242, 242, .08); }

/* Header button inverts with the header itself */
.btn--hdr { background: var(--paper); color: var(--ink); }
.is-stuck .btn--hdr { background: var(--ink); color: var(--paper); }

.btn--sm { padding: 11px 18px; font-size: 0.76rem; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ── Shared type ──────────────────────────────────────────── */
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.eyebrow--light { color: rgba(243, 242, 242, .82); }

.folio {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--cian);
  letter-spacing: -0.02em;
  margin-bottom: clamp(14px, 2vw, 20px);
}

.section-head {
  max-width: 34ch;
  margin-bottom: clamp(48px, 7vw, 86px);
  padding-left: clamp(16px, 2.4vw, 28px);
  border-left: 3px solid var(--cian);   /* the brand column, as structure */
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.07;
}

.muted { color: var(--muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(150px, 20vh, 210px) clamp(56px, 8vh, 92px);
  color: var(--paper);
  background: var(--ink);   /* holds the frame while the photo loads */
}

/* Parallax layer — oversized so the translation never reveals an edge */
.hero__media {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
}

/* <picture> is only a format switch — it must not become a layout box,
   or the img loses its percentage height and the CTA gains a stray line box. */
.hero__media picture,
.cta > picture { display: contents; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(.8) contrast(1.04);
  will-change: transform;
}

/* Ink veil · Manual 05 — the tint is the brand ink, not a neutral black.
   Two stops: a vertical wash that protects the header, plus a horizontal
   one that keeps the sunset readable on the right. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(32, 30, 29, .80) 0%,
      rgba(32, 30, 29, .34) 26%,
      rgba(32, 30, 29, .52) 62%,
      rgba(32, 30, 29, .90) 100%),
    linear-gradient(95deg,
      rgba(32, 30, 29, .78) 0%,
      rgba(32, 30, 29, .46) 52%,
      rgba(32, 30, 29, .12) 100%);
}

.hero__content { position: relative; width: 100%; }

.hero__title {
  font-size: clamp(2.8rem, 7.6vw, 5.6rem);
  line-height: 1.015;
  letter-spacing: -0.03em;
  margin-bottom: clamp(34px, 4.6vw, 54px);
  max-width: 17ch;
}
.hero__title em {
  font-style: normal;
  color: var(--cian);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  padding-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid rgba(243, 242, 242, .26);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(243, 242, 242, .88);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: clamp(34px, 4.4vw, 52px);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 242, 242, .8);
}
.hero__tags li { position: relative; padding-left: 15px; }
.hero__tags li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.34em;
  width: 3px; height: 0.78em;
  background: var(--cian);
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(32px, 4.2vw, 58px);
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pillar p { color: var(--ink-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; gap: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(96px, 168px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 58px);
  border-top: 1px solid rgba(243, 242, 242, .18);
}
.service:last-child { border-bottom: 1px solid rgba(243, 242, 242, .18); }

.service__num {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--cian);
  letter-spacing: -0.02em;
}

.service__body h3 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  margin-bottom: 10px;
  color: var(--paper);
}

.service__claim {
  font-size: 1.08rem;
  color: rgba(243, 242, 242, .74);
  margin-bottom: clamp(20px, 2.6vw, 28px);
  max-width: 44ch;
}

.list {
  display: grid;
  gap: 10px;
  max-width: 54ch;
}
.list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.97rem;
  color: rgba(243, 242, 242, .9);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 1px;
  background: var(--cian);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(30px, 3.6vw, 48px);
}

.step { padding-top: 22px; border-top: 1px solid var(--line); }

.step__num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 16px;
}

.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p  { color: var(--ink-soft); font-size: 0.97rem; }


/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(92px, 13vw, 168px);
  color: var(--paper);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: -12% 0;            /* headroom for the parallax translation */
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
  will-change: transform;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(32, 30, 29, .92) 0%,
    rgba(32, 30, 29, .78) 46%,
    rgba(32, 30, 29, .38) 100%);
}

/* .shell keeps the page grid; children stay left-aligned inside it */
.cta__inner > * { max-width: 44ch; }

.cta__title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: clamp(20px, 2.6vw, 26px);
}

.cta__lede {
  color: rgba(243, 242, 242, .84);
  margin-bottom: clamp(30px, 4vw, 40px);
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper);
  padding-block: clamp(54px, 7vw, 86px);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-footer__meta {
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
  text-align: right;
}
.site-footer__meta a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.site-footer__meta a:hover { border-bottom-color: var(--cian); }

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   MOTION · confident = slow, minimal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease) var(--d, 0ms),
              transform .7s var(--ease) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .site-nav { display: none; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__title { max-width: 14ch; }
  .hero__img { object-position: center 58%; }

  .service { grid-template-columns: 1fr; gap: 12px; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 560px) {
  .site-header__inner { min-height: 68px; }
  .mark--e { font-size: 25px; }
  .btn { width: 100%; justify-content: center; }
  .btn--sm { width: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta .btn--light { width: auto; }
}

@media print {
  .site-header, .hero__actions, .cta { display: none; }
  body { background: #fff; }
}
