:root {
  --ink: #152321;
  --muted: #5c6865;
  --paper: #f7f6f0;
  --white: #ffffff;
  --green: #0f3d3e;
  --green-2: #18645e;
  --gold: #c78d34;
  --clay: #b75f32;
  --line: #d8d4c8;
  --shadow: 0 18px 46px rgba(21, 35, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  animation: page-in 420ms ease-out both;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(21, 35, 33, 0.08);
  box-shadow: 0 10px 30px rgba(21, 35, 33, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--green);
  font-weight: 800;
}

.brand span:last-child {
  overflow-wrap: normal;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--green);
  background: var(--gold);
  border-radius: 6px;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: #1d4b50;
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 0;
}

.nav a,
.header-cta {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--green);
  background: #f1eee5;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #e8e2d5;
  border-color: rgba(199, 141, 52, 0.62);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--green);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 10px 15px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--green-2);
}

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  min-height: min(820px, 92svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-settle 1200ms ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 28, 27, 0.9), rgba(12, 28, 27, 0.62) 45%, rgba(12, 28, 27, 0.24)),
    linear-gradient(0deg, rgba(12, 28, 27, 0.72), rgba(12, 28, 27, 0.02) 50%);
}

.hero-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 90px 0 46px;
  animation: reveal-up 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(199, 141, 52, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e0a84f;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(940px, 100%);
  margin: 58px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(13, 45, 45, 0.66);
}

.hero-stats dt {
  font-size: 1rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--green);
  color: var(--white);
}

.trust-band div {
  padding: 24px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.05);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
}

.intro-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-copy,
.rich-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p,
.rich-copy p {
  margin-top: 0;
}

.inline-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.section-action {
  margin-top: 26px;
}

.page-hero {
  padding: clamp(78px, 12vw, 138px) max(18px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 61, 62, 0.96), rgba(15, 61, 62, 0.78)),
    url("./assets/hero-construccion.jpg") center/cover;
}

.page-hero.compact {
  padding-block: clamp(64px, 10vw, 108px);
}

.page-hero div {
  max-width: 820px;
}

.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.quote-strip h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 256px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(21, 35, 33, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(199, 141, 52, 0.56);
  box-shadow: 0 16px 38px rgba(21, 35, 33, 0.12);
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 1.3rem;
  line-height: 1.2;
}

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

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.values-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reference-note {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.values-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.values-grid article,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(21, 35, 33, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.values-grid article:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 141, 52, 0.52);
  box-shadow: 0 16px 38px rgba(21, 35, 33, 0.12);
}

.values-grid article {
  padding: 26px;
}

.values-grid h2,
.project-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.values-grid p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card {
  overflow: hidden;
}

.project-carousel {
  position: relative;
  overflow: hidden;
  background: #d9d3c5;
}

.project-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.project-track figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.project-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--white);
  background: rgba(15, 61, 62, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(21, 35, 33, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--green);
  transform: translateY(-50%) scale(1.04);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-control span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.project-card h2,
.project-card p {
  padding-inline: 24px;
}

.project-card h2 {
  padding-top: 22px;
}

.project-card p {
  padding-bottom: 24px;
}

.project-visual {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 34px),
    var(--gold);
  transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover .project-visual {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.015);
}

.project-visual.clay {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.2) 0 3px, transparent 3px 30px),
    var(--clay);
}

.project-visual.green {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 28px),
    var(--green);
}

.service-card-accent {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.service-card-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card-accent a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 900;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1120px) / 2));
  background: #ebe7dc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  padding: 28px;
  background: var(--paper);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.steps span {
  color: var(--clay);
  font-weight: 900;
}

.steps h3 {
  margin: 10px 0 8px;
}

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

.quote-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(40px, 7vw, 72px) max(18px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background: var(--green);
}

.quote-strip h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-weight: 850;
}

.contact-methods a {
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid #c9c3b6;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(199, 141, 52, 0.32);
  border-color: var(--gold);
}

.form-actions .button-secondary {
  color: var(--green);
  border-color: var(--line);
  background: #efece3;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.8);
  background: #102826;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold);
  font-weight: 850;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #1f9e55;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(13, 44, 35, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: #188b49;
  box-shadow: 0 16px 34px rgba(13, 44, 35, 0.38);
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 14px;
    padding-inline: clamp(16px, 3vw, 34px);
  }

  .nav {
    gap: clamp(12px, 2.1vw, 22px);
  }

  .service-grid,
  .values-grid-four,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: flex-start;
    min-height: 0;
    row-gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(21, 35, 33, 0.1);
  }

  .nav a {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a.active {
    background: #f3f0e8;
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .hero-stats,
  .trust-band,
  .steps,
  .contact-section,
  .intro-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .values-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-strip,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .brand span:last-child {
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 32px, 1120px);
    padding: 72px 0 34px;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding-block: 54px;
  }

  .section-muted {
    padding-inline: 16px;
  }

  .page-hero,
  .page-hero.compact {
    padding: 54px 16px;
  }

  .page-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1.04;
  }

  .section-heading h2,
  .quote-strip h2,
  .contact-copy h2 {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  .service-grid,
  .values-grid,
  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .quote-strip {
    padding-inline: 16px;
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: calc(100% - 118px);
  }

  .brand span:last-child {
    white-space: normal;
    line-height: 1.15;
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .hero-stats div,
  .service-card,
  .steps li,
  .values-grid article {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .project-card h2,
  .project-card p {
    padding-inline: 20px;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 390px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    max-width: 100%;
  }

  .header-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav {
    order: 4;
  }

  .hero-actions,
  .form-actions {
    gap: 10px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.02);
  }
}
