@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton.woff2?v=20261105") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk.woff2?v=20261105") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0e0e0e;
  --paper: #ffffff;
  --tile: #f3f3f2;
  --mute: #5f5f5f;
  --line: #dcdcda;
  --gutter: clamp(16px, 2.9vw, 42px);
  --bar-h: 60px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
}
.skip:focus { top: 8px; }

/* Barra */
.bar {
  position: fixed; inset: 8px var(--gutter) auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.brand {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--paper);
  padding: 10px 12px 9px;
  transition: opacity .3s ease, transform .3s ease;
}
.at-top .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav { display: flex; background: var(--tile); padding: 4px; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--ink); color: var(--paper); }

/* Portada */
.hero { padding: calc(var(--bar-h) + 8px) var(--gutter) clamp(40px, 6vw, 80px); }
.hero-word, .foot-word {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.04;
  font-size: calc((100vw - 2 * var(--gutter)) / 2.52);
}
.fit-inner { display: inline-block; }
.hero-word .fit-inner { overflow: hidden; vertical-align: top; }
.letter { display: inline-block; will-change: transform; }

.caps {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.caps a { text-decoration: none; }
.caps a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
  margin-top: clamp(10px, 1.2vw, 18px);
}
.caps-end { text-align: right; }

.hero-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(26px, 2.6vw, 40px);
}
.lead-big {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.lead-side { max-width: 560px; justify-self: end; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.square { width: 6px; height: 6px; background: currentColor; }

/* Encabezados de sección */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding-bottom: 12px;
  margin-bottom: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--ink);
}
.section-title { font-size: clamp(26px, 3vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.section-note { font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

/* Experiencia */
.proof { padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 110px); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tiles li {
  min-height: clamp(120px, 11vw, 158px);
  padding: 16px;
  background: var(--tile);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.tiles strong { font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; }
.tiles span { font-size: 14px; color: var(--mute); line-height: 1.3; }
.tiles li:nth-child(1) { grid-column: 1; grid-row: 1; }
.tiles li:nth-child(2) { grid-column: 3; grid-row: 1; }
.tiles li:nth-child(3) { grid-column: 5; grid-row: 1; }
.tiles li:nth-child(4) { grid-column: 2; grid-row: 2; }
.tiles li:nth-child(5) { grid-column: 4; grid-row: 2; }
.tiles li:nth-child(6) { grid-column: 3; grid-row: 3; }

/* Trabajos: tarjetas que se apilan */
.work {
  background: var(--tile);
  padding: clamp(16px, 2vw, 26px) var(--gutter) clamp(40px, 6vw, 80px);
}
.card {
  position: sticky;
  top: calc(var(--bar-h) + 8px);
  height: calc(100vh - var(--bar-h) - 24px);
  height: calc(100svh - var(--bar-h) - 24px);
  min-height: 460px;
  margin-bottom: 12px;
  overflow: hidden;
  color: #fff;
  background: #171717;
  isolation: isolate;
}
.card:last-child { margin-bottom: 0; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 20%),
              linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 46%, rgba(0,0,0,0) 72%),
              linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 40%);
}
.card-count, .card-tag {
  position: absolute; top: clamp(16px, 3vw, 40px);
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.card-count { left: clamp(16px, 3vw, 48px); }
.card-tag { right: clamp(16px, 3vw, 48px); text-transform: uppercase; font-size: 13px; }
.card-copy {
  position: absolute;
  left: clamp(16px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 44px);
  width: min(36%, 480px);
  min-width: 300px;
}
.card h3 {
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.028em;
}
.card-copy p { margin-top: 12px; font-size: 16px; line-height: 1.42; }
.card-inset {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: clamp(190px, 24vw, 360px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.card-inset-wide { width: clamp(220px, 30vw, 460px); }
.card-inset img { width: 100%; height: auto; }
.clip-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 15px; font-weight: 500; }
.clip-links a { text-underline-offset: 3px; }
.clip-links a:hover { text-decoration-thickness: 2px; }

.card-ink { background: var(--ink); }
.card-ink::after { display: none; }
.stats {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: clamp(4px, 1vw, 14px);
  text-align: right;
}
.stats b {
  display: block;
  font-family: var(--display);
  font-size: clamp(62px, 9.4vw, 150px);
  font-weight: 400;
  line-height: 1.02;
}
.stats span { display: block; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }

/* Reel */
.reel { padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.facade { position: relative; aspect-ratio: 16 / 9; background: #181818; overflow: hidden; }
.facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.facade:hover img { transform: scale(1.015); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-height: 48px;
  padding: 12px 22px;
  background: var(--paper); color: var(--ink);
  border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.play:hover { background: var(--ink); color: var(--paper); }

/* Servicios */
.services { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.service-list { border-top: 0; }
.service {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.3fr 120px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.service:first-child { padding-top: 0; }
.service-n { font-size: 14px; font-weight: 500; color: var(--mute); }
.service h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.018em; }
.service p { color: var(--mute); max-width: 52ch; }
.service img { width: 120px; height: 84px; object-fit: cover; }

/* Proceso */
.process { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 110px) var(--gutter); }
.process-title {
  font-size: clamp(36px, 5.6vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 15ch;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 72px); }
.step { border-top: 1px solid rgba(255,255,255,.34); padding-top: 12px; }
.step h3 { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: #cfcfcf; max-width: 40ch; }

/* Contacto */
.contact { position: relative; color: #fff; background: #111; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38)); }
.contact-inner { padding: clamp(64px, 10vw, 150px) var(--gutter) clamp(40px, 6vw, 80px); }
.contact-kicker { font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.contact-title {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.contact-mail {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 36px);
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 500;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-thickness: 3px; }
.contact-note { margin-top: 16px; color: #e4e4e4; font-size: 15px; }
.foot-word { padding: 0 var(--gutter); margin-bottom: -.05em; }
.foot-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter) 14px;
  font-size: 13px; font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.32);
}

/* Aparición al bajar: solo si hay JS, y nunca oculta sin red de seguridad */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .card-copy { width: auto; right: clamp(16px, 3vw, 48px); min-width: 0; max-width: 560px; }
  .card-inset { inset: 12% 0 auto 0; margin: 0 auto; }
  .stats { top: 34%; }
  .service { grid-template-columns: 40px 1fr 96px; }
  .service p { grid-column: 2; grid-row: 2; margin-top: -12px; }
  .service img { grid-column: 3; grid-row: 1 / span 2; width: 96px; height: 76px; }
  .service-n { align-self: start; padding-top: 6px; }
}

/* Teléfono */
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --bar-h: 52px; }
  .bar { inset: 6px var(--gutter) auto; }
  .brand { font-size: 20px; padding: 8px 10px 7px; }
  .nav { padding: 2px; }
  .nav a { font-size: 12px; padding: 8px 7px; letter-spacing: 0; }
  .nav a[href="#proceso"] { display: none; }
  .caps { font-size: 12px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .caps-end { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .hero-lead { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .lead-side { justify-self: start; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles li { min-height: 124px; padding: 12px; }
  .section-head { flex-wrap: wrap; gap: 4px 16px; }
  .card { height: calc(100svh - var(--bar-h) - 24px); min-height: 500px; }
  .card::after { background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 16%), linear-gradient(0deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.2) 54%, rgba(0,0,0,.08) 100%); }
  .card-copy p { font-size: 15px; }
  .card-inset { width: 46vw; inset: 11% 0 auto 0; }
  .card-inset-wide { width: 66vw; inset: 16% 0 auto 0; }
  .stats { top: 15%; transform: none; }
  .stats b { font-size: clamp(54px, 18vw, 92px); }
  .process-title { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .facade { aspect-ratio: 4 / 3; }
  .foot-line span:last-child { text-align: right; }
}
