:root {
  --ink: #0b0f14;
  --ink-soft: #1e2a39;
  --navy: #26374d;
  --steel: #5c7386;
  --glacier: #9db4c6;
  --mist: #d6dee6;
  --ice: #f5f8fa;
  --paper: #f5f8fa;
  --paper-soft: #d6dee6;
  --white: #ffffff;
  --accent: #ff0052;
  --accent-dark: #9a002b;
  --muted: #536d82;
  --line: rgba(30, 42, 57, 0.16);
  --shadow: 0 24px 70px rgba(11, 15, 20, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.lang-switch button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 0.76rem;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: var(--white);
}

.nav-links a {
  opacity: 0.78;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 35px rgba(255, 0, 82, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button.dark {
  background: var(--ink);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 0, 31, 0.94) 0%, rgba(16, 0, 31, 0.74) 42%, rgba(16, 0, 31, 0.28) 100%),
    url("../portfolio/residencial-cover.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: end;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 84px 0 70px;
}

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

.color-system {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.swatch {
  min-height: 94px;
  padding: 14px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.swatch.light {
  color: var(--navy);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.proof-item {
  padding: 24px;
  background: var(--white);
}

.proof-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.hero h1,
.page-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  gap: 36px;
  align-items: end;
  margin-top: 34px;
}

.hero p,
.page-hero p,
.lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 130px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.9;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 315px;
  padding: 34px;
  background: var(--white);
}

.service-card span {
  color: var(--accent);
  font-weight: 900;
}

.service-card h3 {
  margin: 38px 0 16px;
  font-size: 1.55rem;
  line-height: 1;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  background: var(--ink-soft);
  color: var(--white);
}

.feature-band .section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.feature-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

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

.feature-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-grid.featured {
  grid-template-columns: 1.2fr 0.8fr;
}

.portfolio-grid.featured .project-card:first-child {
  grid-row: span 2;
}

.portfolio-grid.featured .project-card:first-child img {
  height: 720px;
}

.project-card {
  overflow: hidden;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.project-card div {
  padding: 22px;
}

.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-meta span {
  padding: 6px 9px;
  background: var(--paper-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.split-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.split-showcase img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.showcase-copy {
  display: grid;
  align-content: center;
  padding: 48px;
  background: var(--navy);
  color: var(--white);
}

.showcase-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.project-card small {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-card h3 {
  margin: 10px 0 0;
  font-size: 1.35rem;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  padding: 28px;
  background: var(--paper);
}

.process-step strong {
  color: var(--accent);
}

.cta {
  padding: 96px 16px;
  background:
    linear-gradient(rgba(11, 15, 20, 0.86), rgba(30, 42, 57, 0.82)),
    url("../img/quimera-template.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.cta h2 {
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.cta p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.15rem;
}

.page-hero {
  background: var(--ink);
  color: var(--white);
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 78px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
}

.contact-panel,
.form-panel {
  padding: 34px;
  background: var(--white);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

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

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}

@media (max-width: 900px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
  }

  .nav,
  .nav-links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    align-items: flex-start;
  }

  .hero-copy,
  .section-header,
  .feature-band .section,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats,
  .color-system,
  .proof-strip,
  .services-grid,
  .portfolio-grid,
  .portfolio-grid.featured,
  .process {
    grid-template-columns: 1fr;
  }

  .portfolio-grid.featured .project-card:first-child img {
    height: 360px;
  }

  .split-showcase {
    grid-template-columns: 1fr;
  }

  .split-showcase img {
    min-height: 360px;
  }

  .showcase-copy {
    padding: 30px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5.8rem);
  }

  .section {
    padding: 70px 0;
  }

  .project-card img {
    height: 260px;
  }
}
