@font-face {
  font-family: Outfit;
  src: url("fonts/Outfit.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-display: swap;
}

:root {
  --pine: #143028;
  --pine-deep: #0c1f18;
  --sand: #f6f1e7;
  --paper: #fbf8f3;
  --terracotta: #c4623a;
  --turf: #2f6b4a;
  --ink: #1c241f;
  --muted: #5c675f;
  --line: #e4dccf;
  --white: #fffdf9;
  --shadow: 0 18px 40px rgba(20, 48, 40, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  grid-column: 1;
  grid-row: 1;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pine);
  color: #d7f3c8;
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
}

.brand strong { display: block; font-size: 14px; line-height: 1.15; max-width: 11rem; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
.brand .brand-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand .demo-pill { display: inline-flex; color: #fff; }
.group-title {
  margin: 8px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cards + .group-title { margin-top: 26px; }

.nav {
  display: none;
  gap: 18px;
  grid-column: 1 / -1;
  padding-bottom: 12px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.lang, .menu-btn, .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lang, .menu-btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--pine);
  font-weight: 750;
}

.lang { padding: 0 14px; }

.menu-btn { display: grid; place-items: center; }

.header-actions .btn.pine { display: none; }

.nav.open {
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.btn.primary { background: var(--terracotta); color: white; }
.btn.pine { background: var(--pine); color: white; }
.btn.ghost {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--line);
}

.hero { padding: 28px 0 12px; }

.eyebrow {
  color: var(--turf);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(40px, 8vw, 76px); margin: 10px 0 14px; max-width: 14ch; }

.lede { font-size: 18px; color: var(--muted); max-width: 38rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 56px 0; }

.section h2 { font-size: clamp(32px, 5vw, 48px); max-width: 16ch; }
.section .intro { color: var(--muted); margin: 10px 0 22px; max-width: 40rem; }

.cards, .pairs, .steps { display: grid; gap: 14px; }

.card, .pair, .step, .form, .contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.card h3, .step h3 { font-size: 26px; margin-bottom: 8px; }
.price { color: var(--terracotta); font-weight: 800; margin-top: 12px; }

.pair img + img { margin-top: 8px; }

.pair figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.compare {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sand);
}

.compare img { width: 100%; height: 100%; object-fit: cover; }

.compare .before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pos, 54%);
  overflow: hidden;
  border-right: 3px solid white;
}

.compare .before img {
  width: 100cqi;
  height: 100%;
  max-width: none;
}

.compare input[type="range"] {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  accent-color: var(--pine);
}

.steps { counter-reset: paso; }

.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--pine);
  font-weight: 800;
}

.quote-layout { display: grid; gap: 14px; }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.fields { display: grid; gap: 12px; }

.thanks {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e7f6ee;
  color: var(--pine);
  font-weight: 700;
}

.thanks.show { display: block; }

.contact-card a.big {
  display: inline-flex;
  margin-top: 12px;
  font-size: 22px;
  font-family: Fraunces, Georgia, serif;
  text-decoration: none;
}

.fine { color: var(--muted); font-size: 13px; margin-top: 8px; }

.site-footer {
  background: var(--pine-deep);
  color: #e7f0ea;
  padding: 28px 0 36px;
}

.site-footer p + p { margin-top: 8px; }
.site-footer a { color: #d7f3c8; }

@media (min-width: 720px) {
  .menu-btn { display: none; }
  .header-actions .btn.pine { display: inline-flex; }
  .brand strong { max-width: none; font-size: 15px; }
  .header-bar { grid-template-columns: auto 1fr auto; }
  .header-actions { grid-column: 3; }
  .nav {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    padding-bottom: 0;
  }
  .nav.open { display: flex; flex-direction: row; padding: 0; }
  .stats, .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .pairs { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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