/* ============================================================
   Escultura · Bogotá — parchment / oxblood / navy
   ============================================================ */

:root {
  --bg: #f4ecdc;
  --bg-alt: #efe4d0;
  --surface: #faf5ea;
  --ink: #1a1b2e;
  --ink-soft: #3a3b4d;
  --muted: #5d5a63;
  --accent: #6b1f1a;
  --accent-soft: #8a2f27;
  --secondary: #1e2a4a;
  --line: #d8c9ae;
  --line-strong: #c2ae8c;
  --signal: #6b1f1a;
  --on-signal: #f7efe0;
  --shadow: 0 1px 0 rgba(26, 27, 46, .04), 0 18px 40px -28px rgba(26, 27, 46, .45);
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --bg: #14141c;
  --bg-alt: #1a1a24;
  --surface: #1f1f2b;
  --ink: #f0e8d8;
  --ink-soft: #d8cfbe;
  --muted: #a9a294;
  --accent: #d98a72;
  --accent-soft: #e6a48e;
  --secondary: #9fb0d8;
  --line: #33323f;
  --line-strong: #4a4857;
  --signal: #7a2a22;
  --on-signal: #17140f;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -28px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 380;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-block: 12px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.wordmark-role {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.9rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 10px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.theme-toggle .icon-moon { display: none; fill: currentColor; stroke: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* scroll progress strip — part of the header, not floating chrome */
.progress {
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-variation-settings: "SOFT" 0, "WONK" 1; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.lede { font-size: 1.075rem; color: var(--ink-soft); max-width: 60ch; }
.section-intro { color: var(--ink-soft); max-width: 66ch; margin: 18px 0 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-solid { background: var(--accent); color: var(--on-signal); }
.btn-solid:hover { background: var(--accent-soft); color: var(--on-signal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 26px; }
.hero-copy .lede + .lede { margin-top: 16px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption,
.taller-figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* signature: the one accent block that reveals on first view */
.hero-copy h1 em {
  background: linear-gradient(transparent 62%, color-mix(in oklab, var(--signal) 22%, transparent) 62%);
  padding-inline: 2px;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 74ch; }
.section-head h2 { margin-bottom: 4px; }

/* ---------- Obra index (expandable) ---------- */

.index {
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line-strong);
}

.entry { border-bottom: 1px solid var(--line-strong); }

.entry summary {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  transition: background .2s, padding-left .2s;
}
.entry summary::-webkit-details-marker { display: none; }
.entry summary:hover { background: color-mix(in oklab, var(--surface) 70%, transparent); padding-left: 12px; }
.entry summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.entry-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.entry-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  position: relative;
  padding-right: 34px;
}
.entry-title::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.1em;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform .25s;
}
.entry[open] .entry-title::after { content: "−"; }

.entry-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.entry-body {
  padding: 0 4px 30px;
  max-width: 70ch;
  animation: fadeRise 320ms cubic-bezier(.2,.7,.1,1) both;
}
.entry-body p { margin: 0 0 16px; color: var(--ink-soft); }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 24px;
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.specs dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.specs dd { margin: 0; font-size: 0.95rem; color: var(--ink); }

.note-tech {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.note-tech strong { color: var(--ink); font-weight: 500; }

/* ---------- Taller ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 56px);
}
.prose p { margin: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--ink); }

.taller-figure { margin: 0; }
.taller-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Método ---------- */

.steps {
  list-style: none;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
}
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 8px; font-size: 1.1rem; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.quote-block {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.quote-block blockquote { margin: 0; }
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 46ch;
}
.quote-block cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-list {
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.contact-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list dd { margin: 0; font-size: 0.97rem; color: var(--ink); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in oklab, var(--accent) 35%, transparent);
  outline-offset: 1px;
}
.contact-form .btn { justify-self: start; }

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.form-status.is-error { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 28px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: start;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.footer-role { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; padding-block: 6px; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* attribution — free tier, must stay readable */
.attribution {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  opacity: 1;
  color: var(--muted);
}
.attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.attribution a:hover { color: var(--accent); }

/* ---------- Placeholders ---------- */

.ph {
  color: var(--muted);
  border-bottom: 1px dotted var(--line-strong);
  font-style: italic;
}

/* ---------- Motion ---------- */

@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  .section-head,
  .cards,
  .steps,
  .quote-block,
  .two-col,
  .contact-grid {
    animation: fadeRise 420ms cubic-bezier(.2,.7,.1,1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .taller-figure img { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 8px 14px; min-height: 64px; }
  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 0.85rem; }
  .entry summary {
    grid-template-columns: 2rem 1fr;
    gap: 10px 12px;
    padding: 18px 2px;
  }
  .entry-meta { grid-column: 2; font-size: 0.72rem; }
  .entry-title { padding-right: 28px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dt { padding-top: 0; }
  .contact-form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .progress span { transform: scaleX(1); }
}
