/* ==========================================================================
   Jonathan Rodriguez Brun — sistema visual
   Papel + tinta + un acento (brasa). Archivo / Instrument Serif / Inter.
   ========================================================================== */

/* Fuentes autoalojadas (SIL Open Font License) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --paper-3: #ddd5c6;
  --ink: #0e1820;
  --ink-2: #17252f;
  --ink-3: #25343f;
  --muted: #5b666e;
  --muted-d: #9aa6ad;
  --accent: #e0531f;
  --accent-ink: #b23f12; /* acento para texto chico sobre papel (AA) */
  --line: rgba(14, 24, 32, 0.14);
  --line-d: rgba(243, 239, 231, 0.14);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 9.5vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

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

/* ---------- Tipografía ---------- */
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

.h1 {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.5rem, 4.9vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h1-line { display: block; }
@media (min-width: 1101px) { .h1-line { white-space: nowrap; } }
.h1 em { font-size: 1.08em; letter-spacing: -0.01em; }
.h1-line:last-child em { color: var(--accent); }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.h2 em { font-size: 1.08em; }

.eyebrow, .mini-label, .sec-label {
  font: 600 0.74rem/1.3 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(224, 83, 31, 0.18); }
.mini-label { color: var(--muted); margin-bottom: 16px; }

.sec-label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: 28px; }
.sec-label .num { font-family: var(--f-display); font-variation-settings: "wdth" 100; color: var(--accent-ink); letter-spacing: 0.04em; }
.sec-label .bar { width: 40px; height: 1px; background: currentColor; opacity: 0.5; }

.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--ink-3); max-width: 36em; margin-top: 32px; }

/* ---------- Botones y links ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 0.95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { --bg: #c4471a; --fg: #fff; --bd: #c4471a; }
.btn-primary:hover { --bg: var(--ink); --bd: var(--ink); }
.dark .btn-primary:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-ghost:hover svg { transform: translateY(2px); }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size 0.4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.site-header.scrolled { background: rgba(243, 239, 231, 0.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.on-dark { color: var(--paper); }
.site-header.on-dark.scrolled { background: rgba(14, 24, 32, 0.86); box-shadow: 0 1px 0 var(--line-d); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font: 700 0.72rem/1 var(--f-display); font-variation-settings: "wdth" 120; letter-spacing: 0.04em;
}
.on-dark .brand-mark { background: var(--paper); color: var(--ink); }
.brand-name { font: 500 0.95rem/1.1 var(--f-body); letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; }

.nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a { position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 6px 0; opacity: 0.82; transition: opacity 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 18px; }
.lang { font: 600 0.78rem/1 var(--f-body); letter-spacing: 0.1em; text-decoration: none; opacity: 0.6; }
.lang .lang-on { opacity: 1; }
.lang:hover { opacity: 1; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.hero::before { /* trama editorial sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--wrap)) - 2 * var(--gut)) / 12) 100%;
  background-position: center; opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.hero-social { display: inline-flex; gap: 6px; margin-left: 6px; }
.hero-social a, .direct a svg { flex: none; }
.hero-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.hero-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.portrait { margin: 0; width: clamp(240px, 26vw, 340px); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.portrait:hover .portrait-frame img { transform: scale(1.0); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(14, 24, 32, 0.08); }
.portrait-tag {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; background: var(--paper); color: var(--ink);
  font: 700 0.68rem/1 var(--f-display); font-variation-settings: "wdth" 120; letter-spacing: 0.08em;
}
.portrait figcaption { margin-top: 12px; font-size: 0.78rem; line-height: 1.45; color: var(--muted); max-width: 30ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--ink); }
.stat { padding: 26px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat dt { font: 700 clamp(2.4rem, 4.2vw, 3.6rem)/1 var(--f-display); font-variation-settings: "wdth" 115; letter-spacing: -0.04em; }
.stat dd { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); max-width: 22ch; }

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec); position: relative; }
.sec.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .sec-label, .dark .mini-label { color: var(--muted-d); }
.dark .sec-label .num { color: var(--accent); }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-intro { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin-top: -32px; margin-bottom: 56px; }
.dark .sec-intro { color: var(--muted-d); }

/* ---------- 01 Recorrido ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 120px); }
.about-story p { font-size: clamp(1.06rem, 1.25vw, 1.18rem); line-height: 1.7; color: var(--ink-3); max-width: 36em; }
.about-story p + p { margin-top: 1.25em; }
.about-story p:last-child { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.3; color: var(--ink); margin-top: 1.6em; padding-left: 22px; border-left: 2px solid var(--accent); }
.dropcap::first-letter { float: left; font: 700 4.1em/0.82 var(--f-display); font-variation-settings: "wdth" 115; margin: 0.06em 0.1em 0 0; color: var(--accent); }

.lens { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
.lens:last-of-type { border-bottom: 1px solid var(--line); }
.lens-n { font: 600 0.75rem/1.8 var(--f-body); color: var(--accent-ink); grid-row: span 2; }
.lens h3 { font: 700 1.15rem/1.3 var(--f-display); font-variation-settings: "wdth" 105; letter-spacing: -0.01em; }
.lens p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.creds { margin-top: 28px; font-size: 0.86rem; line-height: 1.6; color: var(--muted); }

/* ---------- 02 Qué hago ---------- */
.services { background: var(--paper); }
.svc-list { border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 70px minmax(0, 1.05fr) minmax(0, 1.25fr) 48px; gap: 24px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  transition: color 0.25s;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-n { font: 600 0.8rem/1 var(--f-body); color: var(--accent-ink); letter-spacing: 0.06em; }
.svc-title small { display: block; margin-top: 10px; font: 500 0.82rem/1.4 var(--f-body); letter-spacing: 0; color: var(--muted); }
.svc-title { font: 700 clamp(1.4rem, 2.5vw, 2.2rem)/1.08 var(--f-display); font-variation-settings: "wdth" 108; letter-spacing: -0.025em; transition: transform 0.45s var(--ease); }
.svc-desc { font-size: 1.02rem; line-height: 1.6; color: var(--muted); }
.svc-toggle { justify-self: end; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.45s var(--ease), background 0.25s, color 0.25s; }
.svc summary:hover .svc-title { transform: translateX(6px); }
.svc summary:hover .svc-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc details[open] .svc-toggle { transform: rotate(45deg); background: #c4471a; color: #fff; border-color: var(--accent); }
.svc-body { display: grid; grid-template-columns: 70px minmax(0, 1.05fr) minmax(0, 1.25fr) 48px; gap: 24px; padding-bottom: 44px; }
.svc-body .mini-label { grid-column: 2; margin: 4px 0 0; }
.svc-detail { grid-column: 3; display: grid; gap: 22px; }
.svc-detail ul { display: grid; gap: 12px; }
.svc-body li { position: relative; padding-left: 26px; font-size: 1.02rem; line-height: 1.5; }
.svc-body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 1px; background: var(--accent); }
.svc details[open] .svc-body { animation: drop 0.5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.svc-cta { margin-top: 48px; font-size: 1.05rem; }

/* ---------- 03 Trayectoria ---------- */
.exp .h2 { max-width: 14ch; }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.phase-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--paper); margin-bottom: 8px; }
.phase-head h3 { font: 700 1.05rem/1.2 var(--f-display); font-variation-settings: "wdth" 112; letter-spacing: 0.02em; text-transform: uppercase; }
.phase-head span { font-size: 0.85rem; color: var(--muted-d); }
.phase-note { margin-top: 40px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.32; color: var(--paper); padding-left: 22px; border-left: 2px solid var(--accent); }
.tl-item { display: grid; grid-template-columns: 104px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-d); }
.tl-years { font-size: 0.82rem; color: var(--muted-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-main h4 { font: 700 1.45rem/1.15 var(--f-display); font-variation-settings: "wdth" 108; letter-spacing: -0.02em; }
.tl-role { margin-top: 6px; font-size: 0.9rem; color: var(--muted-d); }
.tl-metric { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; padding: 16px 18px; background: var(--ink-2); border-left: 2px solid var(--accent); }
.tl-metric strong { font: 700 2.2rem/1 var(--f-display); font-variation-settings: "wdth" 115; color: var(--accent); letter-spacing: -0.03em; flex: none; }
.tl-metric span { font-size: 0.92rem; line-height: 1.45; color: var(--paper); }
.tl-text { margin-top: 16px; font-size: 0.98rem; line-height: 1.65; color: rgba(243, 239, 231, 0.78); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-d); border-radius: 99px; color: var(--muted-d); }

/* ---------- 04 Proyectos ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--ink); }
.proj:last-child { border-bottom: 1px solid var(--ink); }
.proj-id { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 18px; }
.proj-n { font: 600 0.8rem/1 var(--f-body); color: var(--accent-ink); }
.proj-logo { display: grid; place-items: center; aspect-ratio: 16 / 8; padding: 28px; background: #fff; border: 1px solid var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.proj:hover .proj-logo { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14, 24, 32, 0.35); }
.proj-logo img { max-height: 64px; width: auto; max-width: 70%; object-fit: contain; }
.proj-years { font-size: 0.85rem; color: var(--muted); }
.proj-body h3 { font: 700 clamp(1.8rem, 3.2vw, 2.7rem)/1.05 var(--f-display); font-variation-settings: "wdth" 110; letter-spacing: -0.03em; }
.proj-desc { margin-top: 18px; font-size: 1.1rem; line-height: 1.6; color: var(--ink-3); max-width: 38em; }
.proj-facts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin: 28px 0; padding-top: 22px; border-top: 1px dashed var(--line); }
.proj-facts dt { font: 600 0.72rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 8px; }
.proj-facts dd { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.roots { margin-top: 36px; font-size: 0.95rem; color: var(--muted); max-width: 60em; }

/* ---------- 05 Ideas ---------- */
.posts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.posts-head .mini-label { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post a { display: block; text-decoration: none; height: 100%; }
.post-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.post a:hover .post-img img { transform: scale(1.04); }
.post h4 { margin-top: 18px; font: 700 1.2rem/1.2 var(--f-display); font-variation-settings: "wdth" 104; letter-spacing: -0.015em; }
.post p { margin-top: 8px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.post-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); }

.ideas-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(72px, 8vw, 112px); }
.stage-list { border-top: 1px solid var(--ink); }
.stage-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.5; }
.st-y { font: 600 0.82rem/1.9 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-list a { text-decoration: none; }
.stage-list a svg { display: inline; vertical-align: -1px; color: var(--accent-ink); }
.stage-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-photos { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin: 28px 0 0; }
.event-photos img { width: 100%; height: 220px; object-fit: cover; }
.event-photos img:last-child { object-position: top; }

.ideas-side > * + * { margin-top: 40px; }
.book { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; }
.book-cover {
  aspect-ratio: 2 / 3; background: var(--ink); color: var(--paper); padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 10px 12px 0 -2px var(--paper-3), 0 20px 30px -18px rgba(0,0,0,.5); transform: rotate(-2deg); transition: transform .6s var(--ease);
}
.book:hover .book-cover { transform: rotate(0); }
.book-cover span { font: 700 0.7rem/1.15 var(--f-display); font-variation-settings: "wdth" 110; }
.book-cover small { font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.book h4 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.book p:last-child { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.book .mini-label { margin-bottom: 6px; }
.awards li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.93rem; line-height: 1.5; }
.awards strong { font: 700 0.95rem/1.4 var(--f-display); font-variation-settings: "wdth" 108; }
.awards span { color: var(--muted); }
.mentor p:last-child { font-size: 0.95rem; color: var(--ink-3); line-height: 1.6; }

/* ---------- 06 Hablemos ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact .h2 { max-width: 15ch; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.contact .sec-intro { margin-top: -24px; }
.direct { display: grid; gap: 12px; justify-items: start; }
.direct .btn-wa { margin-bottom: 18px; font-size: 1rem; padding: 16px 26px; }
.direct .btn-wa:hover { color: var(--ink); }
.nav-cta svg, .btn-wa svg { width: 16px; height: 16px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1rem; }
.direct a:hover { color: var(--accent); }
.direct-mail { font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--f-display) !important; font-variation-settings: "wdth" 104; }
.base { margin-top: 40px; font-size: 0.9rem; color: var(--muted-d); max-width: 34ch; }

.form { background: var(--ink-2); padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line-d); }
.hp { position: absolute; left: -9999px; }
.reasons { border: 0; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.reasons legend { padding: 0; margin-bottom: 14px; }
.reason { position: relative; display: block; cursor: pointer; }
.reason input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.reason span {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--line-d); font-size: 0.98rem; line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}
.reason span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted-d); transition: 0.2s; }
.reason:hover span { border-color: rgba(243, 239, 231, 0.4); }
.reason input:checked + span { border-color: var(--accent); background: rgba(224, 83, 31, 0.1); }
.reason input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--ink-2); }
.reason input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.reason-other span { font-size: 0.88rem; color: var(--muted-d); padding-block: 11px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-d); }
.field small { font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--paper);
  background: transparent; border: 0; border-bottom: 1px solid rgba(243, 239, 231, 0.3); padding: 10px 0; border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #ff8a65; }
.field textarea::placeholder { color: rgba(243, 239, 231, 0.35); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 0.92rem; color: var(--muted-d); }
.form-status.ok { color: #9be3b8; }
.form-status.err { color: #ffb199; }
.form-status a { color: inherit; }
.form.sent .reasons, .form.sent .row2, .form.sent .field { opacity: 0.4; pointer-events: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 40px; border-top: 1px solid var(--line-d); }
.site-footer .brand-mark { background: var(--paper); color: var(--ink); }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.foot-tag { margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--muted-d); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-size: 0.92rem; opacity: 0.8; }
.foot-links a:hover { opacity: 1; color: var(--accent); }
.foot-copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line-d); font-size: 0.82rem; color: var(--muted-d); }
.foot-copy a { text-decoration: none; }

/* ---------- Thanks ---------- */
.thanks-page { min-height: 100vh; display: grid; place-items: center; }
.thanks { display: grid; gap: 32px; padding-block: 80px; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .brand-name { display: none; }
  .svc summary, .svc-body { grid-template-columns: 52px 1fr 44px; }
  .svc-desc { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .svc-toggle { grid-column: 3; grid-row: 1; }
  .svc-body .mini-label, .svc-detail { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink); color: var(--paper);
    display: flex; align-items: center; padding: var(--gut);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease); visibility: hidden;
  }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { font: 700 2.4rem/1.2 var(--f-display); font-variation-settings: "wdth" 110; letter-spacing: -0.03em; opacity: 1; }
  .nav a::after { display: none; }
  body.menu-open .nav { clip-path: inset(0); visibility: visible; }
  body.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .brand-mark { background: var(--paper); color: var(--ink); }
  body.menu-open { overflow: hidden; }
  .nav-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer;
    font: 600 0.8rem/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 0;
  }
  .menu-icon { width: 22px; height: 10px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
  .menu-icon::before { top: 0; }
  .menu-icon::after { top: 8px; }
  body.menu-open .menu-icon::before { top: 4px; transform: rotate(45deg); }
  body.menu-open .menu-icon::after { top: 4px; transform: rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; }
  .portrait { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr; order: -1; }
  .portrait-frame { aspect-ratio: 4 / 3.4; }
  .portrait-frame img { object-position: 50% 35%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px 22px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
  .about-grid, .phases, .ideas-grid, .contact-grid { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; gap: 24px; }
  .proj-id { grid-template-columns: auto 1fr; grid-template-rows: auto; align-items: center; }
  .proj-n { grid-column: 1 / -1; }
  .proj-logo { aspect-ratio: auto; height: 96px; padding: 20px; width: 220px; }
  .posts { grid-template-columns: 1fr; gap: 36px; }
  .post a { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-social { margin-left: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-metric { flex-direction: column; gap: 8px; }
  .proj-facts { grid-template-columns: 1fr; gap: 18px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .event-photos { grid-template-columns: 1fr; }
  .awards li { grid-template-columns: 1fr; gap: 4px; }
  .foot-row { grid-template-columns: 1fr; }
  .sec-intro { margin-top: -24px; }
  .svc summary, .svc-body { grid-template-columns: 1fr 44px; gap: 14px; }
  .svc-n { grid-column: 1 / -1; }
  .svc-title { grid-column: 1; grid-row: 2; }
  .svc-toggle { grid-column: 2; grid-row: 2; }
  .svc-desc { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
  .svc-body .mini-label, .svc-detail { grid-column: 1 / -1; }
}


/* ==========================================================================
   v2 — componentes nuevos
   ========================================================================== */

/* Hoy (roles actuales) */
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 0.86rem; }
.today-label { font: 600 0.7rem/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-right: 4px; }
.today span:not(.today-label) { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.45); }

/* 01 Recorrido en etapas */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); counter-reset: st; }
.stage { padding: 28px 24px 8px 0; position: relative; }
.stage + .stage { padding-left: 24px; border-left: 1px solid var(--line); }
.stage-n { font: 600 0.78rem/1 var(--f-body); color: var(--accent-ink); }
.stage-y { float: right; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage h3 { margin-top: 22px; font: 700 1.22rem/1.2 var(--f-display); font-variation-settings: "wdth" 104; letter-spacing: -0.015em; min-height: 3.6em; }
.stage p { margin-top: 14px; font-size: 0.97rem; line-height: 1.62; color: var(--ink-3); }
.about-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.pull { margin: 0; padding-left: 22px; border-left: 2px solid var(--accent); }
.pull p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.28; }
.about-foot .creds { margin: 0; }

/* 02 Método */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 56px; background: var(--ink); color: var(--paper); }
.method li { padding: 22px 22px 24px; display: grid; gap: 6px; border-right: 1px solid var(--line-d); position: relative; }
.method li:last-child { border-right: 0; }
.method li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 22px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 0.8rem; background: var(--accent); color: #fff; border-radius: 50%; z-index: 1; }
.m-n { font: 600 0.72rem/1 var(--f-body); color: var(--accent); letter-spacing: .08em; }
.method strong { font: 700 1.3rem/1.1 var(--f-display); font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.method span:last-child { font-size: 0.9rem; color: var(--muted-d); line-height: 1.45; }
.svc-proof { font-size: 0.9rem; line-height: 1.5; color: var(--muted); padding: 14px 16px; background: var(--paper-2); border-left: 2px solid var(--accent); }
.svc-proof span { display: block; font: 600 0.68rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }

/* 03 Desarrollo / territorio */
.terr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.terr-copy p { font-size: clamp(1.05rem, 1.25vw, 1.15rem); line-height: 1.7; color: rgba(243,239,231,.82); max-width: 36em; }
.terr-copy p + p { margin-top: 1.1em; }
.terr-copy .terr-note { margin-top: 1.6em; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.3; color: var(--paper); padding-left: 22px; border-left: 2px solid var(--accent); }
.net { position: relative; margin: 0; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net svg circle { fill: none; stroke: var(--line-d); stroke-width: .3; stroke-dasharray: 1 1.4; }
.net svg line { stroke: rgba(224,83,31,.45); stroke-width: .25; }
.net ul { position: absolute; inset: 0; }
.net li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 8px 12px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 99px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.net li:hover { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.net-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 10px; background: #c4471a; color: #fff; font: 700 clamp(0.85rem, 1.4vw, 1.05rem)/1.15 var(--f-display); font-variation-settings: "wdth" 108; box-shadow: 0 0 0 10px rgba(224,83,31,.15), 0 0 0 22px rgba(224,83,31,.07); }
.terr-evidence { margin-top: clamp(56px, 7vw, 96px); }
.ev-list { border-top: 1px solid var(--paper); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.ev-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-d); font-size: 0.95rem; line-height: 1.5; }
.ev-y { font-size: 0.8rem; color: var(--muted-d); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ev-list a { text-decoration: none; color: var(--paper); }
.ev-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ev-list a svg, .lib a svg, .press a svg { display: inline; vertical-align: -1px; color: var(--accent); }
.ev-list span:not(.ev-y) { color: rgba(243,239,231,.82); }

/* 04 Trayectoria */
.block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.block-head h3 { font: 700 0.9rem/1 var(--f-display); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: .06em; }
.block-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(64px, 8vw, 104px); }
.now { background: #fff; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.now:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(14,24,32,.4); }
.now-logo { height: 54px; display: flex; align-items: center; }
.now-logo img { max-height: 40px; width: auto; max-width: 70%; }
.wordmark { font: 700 1.5rem/1 var(--f-display); font-variation-settings: "wdth" 104; letter-spacing: -0.03em; }
.now-role { font: 700 1.05rem/1.25 var(--f-display); font-variation-settings: "wdth" 106; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.now-role span { font: 400 0.85rem var(--f-body); color: var(--muted); }
.now dl { display: grid; gap: 14px; margin: 0; flex: 1; }
.now dt { font: 600 0.68rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.now dd { margin: 0; font-size: 0.93rem; line-height: 1.5; }
.track-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(40px, 6vw, 96px); }
.track .tl-item { border-bottom-color: var(--line); }
.track .tl-years, .track .tl-role { color: var(--muted); }
.track .tl-text { color: var(--ink-3); }
.track .tl-metric { background: var(--ink); }
.track .tags li { border-color: var(--line); color: var(--muted); }
.tl-link { margin-top: 14px; font-size: 0.9rem; }
.collab li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.collab strong { font: 700 1.1rem/1.2 var(--f-display); font-variation-settings: "wdth" 106; }
.collab-y { font-size: 0.8rem; color: var(--muted); text-align: right; }
.collab p { grid-column: 1 / -1; font-size: 0.93rem; color: var(--ink-3); line-height: 1.5; }

/* 05 Ideas: destacados + biblioteca */
.post-date { margin-top: 16px; font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-date + h4 { margin-top: 6px; }
.library { margin-top: clamp(64px, 8vw, 104px); }
.tabs { display: none; }
.library.tabbed .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.library.tabbed .axis-title { display: none; }
.tabs button { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 16px 22px 14px 0; margin-right: 22px; cursor: pointer; font: 700 clamp(1rem, 1.5vw, 1.25rem)/1.2 var(--f-display); font-variation-settings: "wdth" 104; color: var(--muted); text-align: left; display: flex; gap: 10px; align-items: baseline; transition: color .2s, border-color .2s; }
.tabs button span { font: 600 0.72rem var(--f-body); color: var(--accent-ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--ink); }
.axis + .axis { margin-top: 48px; }
.library.tabbed .axis + .axis { margin-top: 0; }
.axis-title { font: 700 1.3rem/1.2 var(--f-display); margin-bottom: 12px; }
.lib li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lib-type { font: 600 0.7rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.lib-main { display: grid; gap: 4px; font-size: 1.05rem; line-height: 1.4; }
.lib-main a { text-decoration: none; font-weight: 500; }
.lib-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lib-main small { font-size: 0.82rem; color: var(--muted); }

/* 06 Medios */
.media-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); }
.press { border-top: 1px solid var(--ink); }
.press li { display: grid; grid-template-columns: 56px 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; line-height: 1.45; }
.pr-y { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-m { font: 700 0.92rem/1.4 var(--f-display); font-variation-settings: "wdth" 104; }
.press a { text-decoration: none; }
.press a:hover { text-decoration: underline; text-underline-offset: 3px; }
.media-side > * + * { margin-top: 40px; }
.photos-label { margin-top: clamp(56px, 7vw, 88px); }
.photos { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
.photos img { height: 320px !important; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: 300px; object-fit: cover; }
.photos figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }

/* Testimonios */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.quote { margin: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; }
.quote figcaption { margin-top: 18px; display: grid; font-size: 0.9rem; }
.quote figcaption span { color: var(--muted); }

/* v2 responsive */
@media (max-width: 1080px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .stage:nth-child(3) { border-left: 0; padding-left: 0; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line); }
  .now-grid { grid-template-columns: 1fr; }
  .now { display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; }
  .now > *:not(dl) { grid-column: 1; }
  .now dl { grid-column: 2; grid-row: 1 / span 4; }
}
@media (max-width: 900px) {
  .about-foot, .terr-grid, .track-grid, .media-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .method li:nth-child(2) { border-right: 0; }
  .method li:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .method li:nth-child(2)::after { display: none; }
  .ev-list { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:first-child { grid-column: 1 / -1; }
  .net { max-width: 440px; }
}
@media (max-width: 600px) {
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .stage:first-child { border-top: 0; }
  .stage h3 { min-height: 0; }
  .method { grid-template-columns: 1fr; }
  .method li { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .method li:not(:last-child)::after { display: none; }
  .now { display: flex; }
  .net { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .net svg { display: none; }
  .net ul { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; order: 2; }
  .net li { position: static; transform: none; }
  .net li:hover { transform: none; }
  .net-center { position: static; transform: none; width: 140px; order: 1; }
  .ev-list li, .lib li { grid-template-columns: 1fr; gap: 4px; }
  .press li { grid-template-columns: 56px 1fr; }
  .press li a, .press li > span:last-child { grid-column: 1 / -1; }
  .photos { grid-template-columns: 1fr; }
  .photos img { height: 240px; }
  .tabs button { padding-right: 0; margin-right: 16px; font-size: 0.95rem; }
}

@media print {
  .site-header, .form, .hero::before { display: none; }
  .dark { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
