/* ============================================================
   CARTAGO — SISTEMA TIPOGRÁFICO DE MARCA
   ------------------------------------------------------------
   Tipografía PRINCIPAL: "Russo One"
     · Display: títulos, pilares (Propósito/Método/Relato),
       botones, eyebrows, kickers. Da peso institucional.
   Tipografía SECUNDARIA: "Lexend" (Light 300 por defecto)
     · Cuerpos de texto, ledes, formularios, footer.
       Aporta legibilidad y aire.
   Variables --font-display y --font-body son la única fuente
   de verdad — modificarlas aquí actualiza toda la página.
   ============================================================ */
:root {
  --ink: #10100f;
  --ink-2: #2c2b28;
  --muted: #68635b;
  --line: #dfdbd2;
  --paper: #f6f2e9;
  --paper-2: #ebe5d9;
  --white: #ffffff;
  --accent: #64705d;
  --accent-dark: #3f473c;
  --radius: 8px;
  --max: 1180px;
  --font-display: "Russo One", "Inter", Arial, sans-serif;
  --font-body: "Lexend", "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3,
.eyebrow,
.section-kicker,
.pillars-list,
.panel-title,
.button,
.hero-name,
.reach-board strong,
.contact-details strong,
label,
blockquote {
  font-family: var(--font-display);
  font-weight: 400;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  height: 66px;
  margin: 16px auto 0;
  padding: 0 18px;
  background: rgba(246, 242, 233, 0.84);
  border: 1px solid rgba(16, 16, 15, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 242, 233, 0.94);
  box-shadow: 0 18px 48px rgba(16, 16, 15, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  width: 100%;
  min-height: 100svh;
  padding: 116px 16px 36px;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(16, 16, 15, 0.045) 1px, transparent 1px), var(--paper);
  background-size: clamp(54px, 5.8vw, 76px) clamp(54px, 5.8vw, 76px);
}

.split-layout,
.contact-grid,
.reach-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 5vw, 72px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(40px, 6vw, 72px);
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100svh - 152px);
  margin: 0 auto;
}

.hero-pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
}

.hero-pillars .eyebrow {
  margin: 0;
}

.hero-wordmark {
  width: clamp(140px, 15vw, 200px);
  height: auto;
  margin-bottom: clamp(4px, 1vw, 10px);
  opacity: 0.85;
}

.pillars-list {
  display: grid;
  gap: clamp(2px, 0.4vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillars-list li {
  color: var(--ink);
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero-statement {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  isolation: isolate;
}

.hero-statement-mark {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: min(440px, 70%);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero-statement-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
}

.hero-statement h1 {
  max-width: none;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.18;
}

.hero-statement .hero-lede {
  color: rgba(246, 242, 233, 0.78);
}

.hero-tagline {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: rgba(246, 242, 233, 0.92);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
}

.hero-statement .button-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-statement .button-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 242, 233, 0.5);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede,
.intro-copy p,
.section-heading p,
.reach-copy p,
.contact-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-lede {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(6px, 1vw, 12px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.intro {
  padding-top: 130px;
}

.intro .split-layout {
  width: 100%;
}

.intro-copy {
  align-self: end;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.step-card,
.service-card,
.person-card {
  background: rgba(255, 255, 255, 0.48);
}

.step-card {
  min-height: 220px;
  padding: 28px;
}

.step-card span,
.service-index {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.step-card p,
.service-card p,
.person-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-card {
  min-height: 280px;
  padding: 26px;
}

.service-card.featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
}

.service-card:last-child {
  grid-column: span 4;
  min-height: 200px;
}

.service-card.featured p,
.service-card.featured .service-index {
  color: rgba(246, 242, 233, 0.72);
}

.reach {
  width: 100%;
  padding: 104px 16px;
  background: var(--ink);
  color: var(--paper);
}

.reach-copy p {
  color: rgba(246, 242, 233, 0.68);
}

.reach .section-kicker {
  color: var(--paper-2);
}

.reach-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(246, 242, 233, 0.18);
  border-radius: var(--radius);
  background: rgba(246, 242, 233, 0.18);
}

.reach-board div {
  min-height: 160px;
  padding: 22px;
  background: rgba(246, 242, 233, 0.06);
}

.reach-board span {
  display: block;
  margin-bottom: 42px;
  color: rgba(246, 242, 233, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reach-board strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.manifesto {
  padding: 88px 0;
}

.manifesto-inner {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: clamp(32px, 7vw, 68px);
  border: 1px solid rgba(246, 242, 233, 0.08);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.manifesto-inner img {
  position: absolute;
  right: -120px;
  bottom: -240px;
  width: min(640px, 70vw);
  opacity: 0.06;
}

.manifesto-inner blockquote {
  color: var(--paper);
}

blockquote {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.person-card {
  padding: 28px;
}

.avatar {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  margin-bottom: 24px;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 27%,
      rgba(16, 16, 15, 0.92) 0 15%,
      transparent 15.5%
    ),
    radial-gradient(
      ellipse at 50% 88%,
      rgba(16, 16, 15, 0.92) 0 35%,
      transparent 35.5%
    ),
    linear-gradient(135deg, rgba(100, 112, 93, 0.18), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(16, 16, 15, 0.1);
  border-radius: var(--radius);
}

.avatar span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 1px;
  background: rgba(16, 16, 15, 0.2);
}

.person-card h3 {
  margin-bottom: 4px;
}

.contact {
  width: 100%;
  padding: 104px 16px;
  background: var(--paper-2);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-details div {
  padding-top: 16px;
  border-top: 1px solid rgba(16, 16, 15, 0.14);
}

.contact-details span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details strong {
  display: block;
  margin-top: 5px;
  font-size: 1.08rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(16, 16, 15, 0.1);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(246, 242, 233, 0.7);
  border: 1px solid rgba(16, 16, 15, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(100, 112, 93, 0.12);
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note.is-visible {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px max(16px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: rgba(246, 242, 233, 0.72);
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.thanks-page {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.thanks-panel {
  width: min(100%, 620px);
}

.thanks-panel img {
  width: 48px;
  margin-bottom: 32px;
}

.thanks-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.thanks-panel p:not(.section-kicker) {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 96px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 8px;
    background: var(--paper);
    border: 1px solid rgba(16, 16, 15, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(16, 16, 15, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 16px;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .reach-inner,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    row-gap: 32px;
    align-content: start;
    min-height: auto;
  }

  .hero-pillars {
    padding-top: 20px;
  }

  .method-steps,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading .section-kicker {
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 24px);
    height: 64px;
    margin-top: 12px;
    padding: 0 12px;
  }

  .brand {
    width: 40px;
  }

  .brand img {
    width: 32px;
  }

  .section {
    width: calc(100% - 24px);
    padding: 72px 0;
  }

  .hero {
    padding: 88px 12px 32px;
  }

  .pillars-list li {
    font-size: clamp(2.2rem, 9.5vw, 3.4rem);
  }

  .hero-wordmark {
    width: clamp(120px, 26vw, 150px);
  }

  .hero-statement {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(1.9rem, 7.8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7.4vw, 2.4rem);
  }

  .hero-grid,
  .reach-inner,
  .contact-grid {
    width: 100%;
  }

  .hero-statement h1 {
    font-size: clamp(1.4rem, 5.6vw, 1.85rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-actions .button {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .services-grid,
  .reach-board,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .service-card:last-child {
    grid-column: span 1;
  }

  .service-card,
  .step-card {
    min-height: auto;
  }

  .step-card span,
  .service-index {
    margin-bottom: 34px;
  }

  .manifesto {
    padding: 64px 0;
  }

  .manifesto-inner {
    min-height: 260px;
  }

  .contact {
    padding: 80px 12px;
  }

  .site-footer {
    display: grid;
    padding: 28px 16px;
  }
}
