@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600.woff2") format("woff2");
}

:root {
  --ink: #1A1814;
  --paper: #F6F3EC;
  --sheet: #FBF9F4;
  --indigo: #2F3A8C;
  --muted: #6B655C;
  --line: #E3DDD2;
  --space: 80px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--indigo); }
.wrap { width: min(980px, calc(100% - 56px)); margin: 0 auto; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 26px 0 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .name { font-weight: 600; font-size: 18px; letter-spacing: -0.035em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--indigo); }

.band { padding: var(--space) 0; }
.photo-side {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(246,243,236,0.94) 0%, rgba(246,243,236,0.82) 42%, rgba(246,243,236,0.45) 100%),
    url("fondo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, 72% center;
}
.pos-projects { background-position: center, 18% 80%; }
.hero, .photo-side .wrap { position: relative; }
.hero > *,
.photo-side .section-title,
.photo-side .section-lead,
.photo-side .cases,
.photo-side .form { max-width: 36em; }

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lead {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.5;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead { margin: 14px 0 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.card {
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.card-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  color: var(--ink);
}
.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.cases { display: grid; gap: 32px; margin-top: 32px; }
.cases article { display: grid; gap: 12px; }
.case-logo { height: 48px; width: auto; max-width: min(220px, 100%); object-fit: contain; object-position: left center; }
.cases p { margin: 0; }

.letter.photo-side {
  background-color: var(--sheet);
  background-image:
    linear-gradient(90deg, rgba(251,249,244,0.94) 0%, rgba(251,249,244,0.8) 46%, rgba(251,249,244,0.42) 100%),
    url("fondo.jpg");
  background-position: center, 78% 30%;
}
.form { margin-top: 28px; }
.field { margin: 0 0 16px; }
.field label, .fine { display: block; }
.field label { margin-bottom: 6px; font-size: 15px; }
input, textarea {
  width: 100%;
  max-width: 32em;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
button {
  appearance: none;
  margin-top: 6px;
  background: var(--ink);
  color: #F7F4EE;
  border: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 12px 18px;
  cursor: pointer;
}
button:hover { background: #2A261F; }
.fine { margin: 16px 0 0; max-width: 36em; color: var(--muted); font-size: 15px; }
.sent { margin: 28px 0 0; font-size: 20px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.page { padding: 36px 0 80px; }
.page h1 { font-size: clamp(36px, 5vw, 48px); }
.prose p { max-width: 38em; }

.site-foot { background: var(--ink); color: #F7F4EE; margin-top: auto; }
.site-foot .inner {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.site-foot .brand .name { color: #F7F4EE; }
.site-foot .brand img { height: 36px; }
.legal { display: flex; gap: 18px; flex-wrap: wrap; }
.legal a { color: #C8C2B6; font-size: 14px; text-decoration: none; }
.legal a:hover, .legal a[aria-current="page"] { color: #F7F4EE; }

@media (max-width: 640px) {
  :root { --space: 48px; }
  body { font-size: 17px; }
  .wrap, .site-foot .inner { width: min(980px, calc(100% - 32px)); }
  .lead { font-size: 18px; }
  .site-head { align-items: flex-start; }
  .nav { gap: 10px 16px; font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .photo-side,
  .letter.photo-side {
    background-image:
      linear-gradient(180deg, rgba(246,243,236,0.9), rgba(246,243,236,0.78)),
      url("fondo.jpg");
    background-position: center, center;
  }
  .hero > *,
  .photo-side .section-title,
  .photo-side .section-lead,
  .photo-side .cases,
  .photo-side .form { max-width: none; }
}
