:root {
  --orange: #e17a00;
  --orange-hot: #ff9d5a;
  --navy: #02426b;
  --navy-deep: #01283f;
  --paper: #e9e5e6;
  --ink: #161616;
  --charcoal: #383838;
  --white: #fff;
  --header: 76px;
  --wrap: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  font-weight: 700;
}
.skip:focus { top: 0.5rem; }

section[id] { scroll-margin-top: calc(var(--header) + 8px); }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--orange-hot);
  margin-bottom: 0.7rem;
}
.kicker-navy { color: var(--orange); }

h1, h2, .phone {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-transform: uppercase;
}
h1 { font-size: clamp(4.4rem, 11vw, 8.4rem); color: var(--white); }
h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-orange {
  background: var(--orange);
  color: var(--navy-deep);
}
.btn-orange:hover { background: var(--orange-hot); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--navy-deep); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange-hot);
  outline-offset: 3px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
  padding: 0.45rem 1.25rem;
  background: var(--navy);
  color: var(--white);
}
.brand { display: flex; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 1.25rem; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--orange-hot); }
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  position: relative;
}
.nav-toggle span:not(.sr) {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: var(--white);
}
.nav-toggle span:nth-child(2) { top: 0.95rem; }
.nav-toggle span:nth-child(3) { top: 1.5rem; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 40, 63, 0.92) 0%, rgba(1, 40, 63, 0.72) 42%, rgba(1, 40, 63, 0.15) 100%);
}
.hero-copy {
  position: relative;
  padding: 4.5rem 0 4rem;
  max-width: 920px;
  margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  width: min(920px, calc(100% - 2.5rem));
}
.lede {
  max-width: 38rem;
  margin-top: 1.3rem;
  color: var(--paper);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--orange);
  color: var(--navy-deep);
}
.rail li {
  padding: 0.85rem 0.4rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  border-right: 1px solid rgba(1, 40, 63, 0.25);
}
.rail li:last-child { border-right: 0; }

.statement { padding: 5rem 0; }
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.statement h2 { color: var(--navy); margin-bottom: 1rem; }
.statement p:last-child { max-width: 38rem; font-size: 1.12rem; }
.statement-figure img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  object-position: center;
}

.services { padding: 4rem 0 5rem; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { color: var(--navy); }

.bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.7rem;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: 240px;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-venta { grid-row: span 2; min-height: 640px; }
.tile-mto, .tile-auto { min-height: 315px; }
.tile-venta img { object-position: center 40%; }
.tile-plan {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  min-height: 280px;
  background: #f4f1ee;
  color: var(--ink);
}
.tile-plan img {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  background: #f4f1ee;
  padding: 1.2rem;
}
.tile-plan .tile-copy {
  position: relative;
  background: none;
  align-self: center;
  padding: 1.5rem 1.6rem;
}
.tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem 1.2rem 1.15rem;
  background: linear-gradient(transparent, rgba(1, 40, 63, 0.92) 42%);
}
.tile-copy-ink {
  background: linear-gradient(transparent, rgba(233, 229, 230, 0.96) 40%);
}
.tile-copy span {
  font-family: var(--display);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.tile-copy h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.9;
  margin: 0.15rem 0 0.4rem;
}
.tile-copy p { max-width: 36rem; }

.peritaje {
  background: var(--navy);
  color: var(--white);
  padding: 0;
}
.peritaje-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 0;
  width: min(1280px, 100%);
}
.peritaje figure { margin: 0; }
.peritaje img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}
.peritaje-grid > div { padding: 3.5rem 1.5rem 3.5rem 0; }
.peritaje h2 { font-size: clamp(3.2rem, 6vw, 5.4rem); margin-bottom: 1rem; }
.peritaje p { max-width: 36rem; margin-bottom: 1.5rem; font-size: 1.12rem; }

.sectores {
  padding: 4.5rem 0 4rem;
  background: var(--paper);
}
.sectores h2 {
  color: var(--navy);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.sectores ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.sectores li {
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.2rem;
  padding: 0.45rem 0.75rem;
}

.contact {
  background: var(--charcoal);
  color: var(--paper);
  padding: 4.5rem 0 5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact h2 { color: var(--white); margin-bottom: 1rem; }
.phone, .mail { display: block; text-decoration: none; }
.phone {
  color: var(--orange);
  font-size: clamp(3rem, 6vw, 4.6rem);
}
.phone:hover { color: var(--orange-hot); }
.mail {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}
.contact-note { margin-top: 1.2rem; max-width: 28rem; }

.lead { display: grid; gap: 0.85rem; }
.lead label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead input, .lead textarea {
  width: 100%;
  border: 0;
  background: #2a2a2a;
  color: var(--white);
  font: inherit;
  padding: 0.8rem 0.85rem;
  border-bottom: 3px solid var(--orange);
}
.lead textarea { resize: vertical; }
.lead button { justify-self: start; margin-top: 0.3rem; }

.foot {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 1.6rem 0 5.5rem;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot img { height: 46px; width: auto; }
.social { display: flex; gap: 1rem; }
.social a, .foot p a { color: var(--orange-hot); }
.foot p { margin: 0; font-size: 0.92rem; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  grid-template-columns: 1fr 1fr;
}
.dock a {
  text-align: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem;
  font-size: 1.2rem;
}
.dock a:first-child { background: var(--navy); color: var(--white); }
.dock a:last-child { background: var(--orange); color: var(--navy-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .bar-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.4rem 0 0.8rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 1.25rem; }
  .bar { position: sticky; }
  .hero-copy { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.55rem, 11.6vw, 3.35rem); }
  .rail { grid-template-columns: repeat(3, 1fr); }
  .rail li:nth-child(3) { border-right: 0; }
  .statement-grid,
  .contact-grid,
  .peritaje-grid,
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .tile-venta { grid-row: auto; min-height: 420px; }
  .tile-mto, .tile-auto { min-height: 300px; }
  .tile-plan { grid-template-columns: 1fr; }
  .tile { min-height: 300px; }
  .peritaje-grid > div { padding: 2rem 1.25rem 2.5rem; }
  .peritaje img { max-height: 320px; }
  .statement-figure img { height: 420px; }
  .dock { display: grid; }
  .foot { padding-bottom: 6.2rem; }
}

.hero--page { min-height: 68vh; }
.hero--page h1 { font-size: clamp(3.4rem, 8vw, 6.6rem); }

.about { padding: 4.5rem 0 3rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.about-grid p { font-size: 1.15rem; max-width: 40rem; }
.about-grid img {
  width: 100%;
  height: min(64vh, 520px);
  object-fit: cover;
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
}
.mv article { padding: 2.2rem 1.7rem 2.4rem; }
.mv article:first-child { background: var(--navy); color: var(--white); }
.mv article:last-child { background: var(--charcoal); color: var(--paper); }
.mv h2 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin-bottom: 0.9rem;
}
.mv p { max-width: 36rem; }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--orange);
  color: var(--navy-deep);
}
.values li {
  padding: 1.5rem 1rem 1.4rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 0.92;
  border-right: 1px solid rgba(1, 40, 63, 0.25);
}
.values li:last-child { border-right: 0; }
.values span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair article {
  padding: 3.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pair h2 {
  color: var(--navy);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  margin: 0.35rem 0 0.85rem;
}
.pair img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.pair-ink,
.pair img.contain { background: #f4f1ee; }
.pair img.contain {
  object-fit: contain;
  padding: 1.5rem;
  height: auto;
  min-height: 0;
  max-height: 480px;
}

.community {
  background: var(--navy);
  color: var(--white);
  padding: 4.2rem 0;
}
.community h2 { max-width: 16ch; margin-bottom: 1rem; }
.community p { max-width: 42rem; font-size: 1.12rem; }

.advise {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: end;
  justify-content: space-between;
  padding: 3.5rem 0 4rem;
}
.advise h2 { color: var(--navy); max-width: 16ch; }

.company { padding: 4.2rem 0 1rem; }
.company-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.company h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}
.company p { font-size: 1.12rem; max-width: 40rem; }
.company-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}
.pillars h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.pillars img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.values-plain { padding: 2.2rem 0 2.6rem; }
.values-plain h2 { color: var(--navy); margin-bottom: 1.1rem; }
.values-plain ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2.5rem;
  max-width: 760px;
}
.values-plain li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.values-plain li::before { content: "✓  "; color: var(--orange); }

.firm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-bottom: 3.2rem;
}
.firm article {
  background: #f4f1ee;
  padding: 1.6rem 1.3rem 1.8rem;
}
.firm article:nth-child(2) {
  background: var(--navy);
  color: var(--white);
}
.firm h2 {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 0.95;
  margin-bottom: 0.85rem;
  color: var(--navy);
}
.firm article:nth-child(2) h2 { color: var(--white); }

.help {
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.4rem 0;
}
.help h2 { color: var(--white); }
.help p { color: var(--paper); }
.advise p { max-width: 28rem; margin: 0.8rem 0 0; }

@media (max-width: 860px) {
  .about-grid,
  .company-grid,
  .pillars,
  .firm,
  .mv,
  .pair { grid-template-columns: 1fr; }
  .values-plain ul { grid-template-columns: 1fr; }
  .pillars img,
  .company-grid img { height: 280px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li:nth-child(2) { border-right: 0; }
  .about-grid img { height: 320px; }
  .pair img { min-height: 240px; }
  .hero--page h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
}

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