
:root {
  --navy: #123858;
  --navy-deep: #0b263c;
  --blue-soft: #e9f0f5;
  --sand: #f4f1eb;
  --white: #ffffff;
  --ink: #17232d;
  --muted: #61717d;
  --line: rgba(18, 56, 88, .16);
  --shadow: 0 22px 60px rgba(10, 37, 59, .13);
  --radius: 20px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.section--compact { padding: 76px 0; }
.section--soft { background: var(--sand); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--navy .eyebrow { color: #c7d8e6; }
.display { margin: 0; font-size: clamp(2.65rem, 6vw, 6rem); line-height: .96; letter-spacing: -.055em; font-weight: 780; text-wrap: balance; }
.h2 { margin: 0; color: var(--navy-deep); font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.section--navy .h2 { color: white; }
.lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.section--navy .lead { color: #c7d8e6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: white; font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); background: var(--navy-deep); border-color: var(--navy-deep); }
.button--light { background: white; border-color: white; color: var(--navy-deep); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.button--outline { background: transparent; color: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: white; color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-header--solid { position: relative; background: var(--white); border-bottom-color: var(--line); }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { width: 166px; flex: 0 0 auto; }
.logo img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 38px); }
.main-nav a { color: rgba(255,255,255,.82); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: white; }
.site-header--solid .main-nav a { color: var(--muted); }
.site-header--solid .main-nav a:hover, .site-header--solid .main-nav a[aria-current="page"] { color: var(--navy); }
.header-cta { flex: 0 0 auto; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: white; }
.site-header--solid .menu-toggle { border-color: var(--line); color: var(--navy); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }
.hero { min-height: 760px; height: 92vh; display: grid; align-items: end; position: relative; overflow: hidden; color: white; background: var(--navy-deep); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(6,25,40,.84), rgba(6,25,40,.18) 70%), linear-gradient(0deg, rgba(6,25,40,.6), transparent 46%), var(--hero-image); background-size: cover; background-position: center; transform: scale(1.01); }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(76px, 11vh, 120px); }
.hero__copy { max-width: 880px; }
.hero__copy p { max-width: 650px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.hero__meta { position: absolute; right: 4vw; bottom: 5vw; z-index: 2; display: grid; gap: 8px; color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
.page-hero { min-height: 590px; height: 70vh; }
.page-hero .hero__inner { padding-bottom: 70px; }
.page-hero .display { max-width: 950px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 27px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 9px; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.service-card { min-height: 520px; position: relative; overflow: hidden; border-radius: var(--radius); color: white; box-shadow: var(--shadow); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,27,43,.88), rgba(6,27,43,.05) 70%); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.service-card:hover img { transform: scale(1.045); }
.service-card__copy { position: absolute; z-index: 2; inset: auto 30px 28px; }
.service-card__copy h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.service-card__copy p { margin: 10px 0 0; color: rgba(255,255,255,.76); }
.image-panel { min-height: 600px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.image-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Acabados photo: fill the full panel while keeping the worker and work area visible. */
.image-panel--acabados img { object-fit: cover; object-position: center 58%; }
.feature-list { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; }
.feature-list strong { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-size: .8rem; }
.feature-list h3 { margin: 0 0 4px; color: var(--navy-deep); font-size: 1.02rem; }
.feature-list p { margin: 0; color: var(--muted); }
.logo-cloud { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
.logo-chip { min-height: 112px; display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: white; font-weight: 850; letter-spacing: .04em; text-align: center; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 18px; background: var(--navy); color: white; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.project-card:hover img { transform: scale(1.035); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,24,38,.92), transparent 68%); }
.project-card__copy { position: absolute; z-index: 2; inset: auto 24px 22px; }
.project-card h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.project-card p { margin: 5px 0 0; color: rgba(255,255,255,.68); font-size: .9rem; }
.project-card__tag { display: inline-flex; margin-bottom: 10px; padding: 5px 9px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 38px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); cursor: pointer; }
.filter-button.is-active { background: var(--navy); border-color: var(--navy); color: white; }
.project-card[hidden] { display: none; }
.band { padding: 65px 0; background: var(--navy); color: white; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.band h2 { margin: 0; max-width: 760px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.value-card { padding: 32px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.05); }
.value-card span { display: block; color: #93b2ca; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.value-card h3 { margin: 16px 0 9px; font-size: 1.45rem; }
.value-card p { margin: 0; color: #c7d8e6; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.mission-card { padding: clamp(28px, 4vw, 54px); border-radius: var(--radius); }
.mission-card:first-child { background: var(--navy); color: white; }
.mission-card:last-child { background: var(--sand); }
.mission-card h3 { margin: 0 0 16px; font-size: 1.7rem; }
.mission-card p { margin: 0; color: inherit; opacity: .76; }
.gallery { columns: 3 320px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; overflow: hidden; border-radius: 16px; background: var(--blue-soft); }
.gallery img { width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { padding: 14px 16px 16px; color: var(--navy); font-weight: 750; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.contact-stack { display: grid; gap: 18px; margin-top: 38px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item a, .contact-item p { display: block; margin: 7px 0 0; color: var(--navy); font-size: 1.25rem; font-weight: 720; }
.form-card { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius); background: var(--sand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(18,56,88,.2); border-radius: 12px; background: white; padding: 14px 15px; color: var(--ink); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,56,88,.08); }
.field textarea { min-height: 160px; resize: vertical; }
.form-status { min-height: 24px; margin-top: 12px; color: var(--navy); font-weight: 650; }
.site-footer { padding: 80px 0 26px; background: var(--navy-deep); color: white; }
.footer-top { display: grid; grid-template-columns: 1.2fr .65fr .65fr; gap: 50px; padding-bottom: 54px; }
.footer-brand img { width: 180px; }
.footer-brand p { max-width: 450px; margin: 22px 0 0; color: #afc4d3; }
.footer-col h3 { margin: 0 0 18px; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin: 9px 0; color: #afc4d3; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #829eaf; font-size: .82rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; z-index: -1; display: grid; align-content: center; justify-items: center; gap: 22px; background: var(--navy-deep); opacity: 0; visibility: hidden; transition: .25s; }
  .main-nav.is-open { z-index: 60; opacity: 1; visibility: visible; }
  .main-nav a, .site-header--solid .main-nav a { color: white; font-size: 1.2rem; }
  .menu-toggle { position: relative; z-index: 70; }
  .grid-3, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-layout { grid-template-columns: 1fr; }
  .image-panel { min-height: 520px; }
  .logo-cloud { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 76px; }
  .logo { width: 138px; }
  .hero { min-height: 670px; height: 88vh; }
  .page-hero { min-height: 560px; height: 72vh; }
  .hero__meta { display: none; }
  .grid-3, .grid-4, .project-grid, .stats, .mission-grid, .form-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .service-card { min-height: 440px; }
  .project-card { min-height: 420px; }
  .logo-cloud { grid-template-columns: repeat(2, 1fr); }
  .band__inner { align-items: flex-start; flex-direction: column; }
  .field--full { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Video heroes */
.hero--video { background-image: var(--hero-poster); background-size: cover; background-position: center; }
.hero--video::before { z-index: 1; background-image: linear-gradient(90deg, rgba(6,25,40,.84), rgba(6,25,40,.18) 70%), linear-gradient(0deg, rgba(6,25,40,.6), transparent 46%); }
.hero__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Client logo artwork */
.logo-chip { background: var(--navy); border-color: rgba(255,255,255,.16); }
.section--navy .logo-chip { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.16); }
.logo-chip img { width: auto; max-width: 88%; max-height: 70px; object-fit: contain; }

/* Housing gallery selector */
.housing-selector { appearance: none; width: 100%; color: var(--ink); text-align: left; cursor: pointer; background: var(--sand); border-color: var(--line); transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.housing-selector h3 { color: var(--navy); }
.housing-selector p { color: var(--muted); }
.housing-selector:hover { transform: translateY(-3px); border-color: rgba(18,56,88,.38); box-shadow: 0 15px 38px rgba(10,37,59,.10); }
.housing-selector:focus-visible { outline: 3px solid rgba(18,56,88,.28); outline-offset: 3px; }
.housing-selector.is-active { background: var(--navy); border-color: var(--navy); color: white; box-shadow: var(--shadow); }
.housing-selector.is-active span { color: #c7d8e6; }
.housing-selector.is-active h3 { color: white; }
.housing-selector.is-active p { color: #c7d8e6; }
.housing-gallery-status { margin: 0 0 24px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.gallery figure[hidden] { display: none; }

@media (max-width: 680px) {
  .hero__video { object-position: center center; }
  .logo-chip img { max-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero--video::before { background-image: linear-gradient(90deg, rgba(6,25,40,.84), rgba(6,25,40,.18) 70%), linear-gradient(0deg, rgba(6,25,40,.6), transparent 46%), var(--hero-poster); background-size: cover; background-position: center; }
}

@media (max-width: 680px) {
  .image-panel--acabados img { object-position: center 55%; }
}


/* Netlify contact form */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-card[aria-busy="true"] {
  cursor: progress;
}
.form-card .button:disabled {
  cursor: not-allowed;
  opacity: .65;
  transform: none;
}
.form-status.is-success {
  color: #1f6b43;
}
.form-status.is-error {
  color: #a23232;
}


/* V6 navigation and footer links */
.mobile-nav-contact {
  display: none;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo-link img {
  display: block;
}

#consulta {
  scroll-margin-top: 110px;
}

@media (max-width: 860px) {
  .main-nav .mobile-nav-contact {
    display: inline-flex;
    width: auto;
    min-width: min(260px, calc(100vw - 48px));
    margin-top: 12px;
    justify-content: center;
    color: var(--navy-deep);
    background: white;
    border-color: white;
    font-size: .82rem;
  }

  .main-nav .mobile-nav-contact:hover,
  .main-nav .mobile-nav-contact:focus-visible,
  .site-header--solid .main-nav .mobile-nav-contact:hover,
  .site-header--solid .main-nav .mobile-nav-contact:focus-visible {
    color: var(--navy-deep);
    background: var(--sand);
    border-color: var(--sand);
  }
}
