:root {
  --navy-950: #07131f;
  --navy-900: #0c1e30;
  --navy-800: #132b43;
  --steel-700: #4b5561;
  --steel-500: #7f8993;
  --steel-300: #c7cdd2;
  --steel-100: #edf0f2;
  --white: #ffffff;
  --ink: #111923;
  --gold: #f2b705;
  --gold-strong: #ffca05;
  --danger: #b42318;
  --success: #137a43;
  --shadow: 0 22px 60px rgba(3, 12, 20, .20);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.page-top-anchor {
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--gold);
  color: #111;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(7, 19, 31, .84);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.brand { display: block; width: min(330px, 45vw); }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 1.35rem; color: rgba(255,255,255,.86); font-size: .94rem; font-weight: 650; }
.nav a { text-decoration: none; transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--gold-strong); }
.nav-cta { border: 1px solid rgba(242,183,5,.65); padding: .65rem .95rem; border-radius: 999px; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .55rem .9rem; color: #fff; }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-overlay { background: linear-gradient(90deg, rgba(4,13,22,.96) 0%, rgba(8,25,40,.82) 42%, rgba(8,25,40,.35) 72%, rgba(8,25,40,.12) 100%), linear-gradient(0deg, rgba(4,13,22,.58), transparent 50%); }
.hero-content { position: relative; z-index: 2; padding-top: 110px; color: #fff; }
.hero-content > * { max-width: 760px; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-strong); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 850; }
.eyebrow.dark { color: #805f00; }
.hero h1, .section h2, .cta-band h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 { text-wrap: balance; }
.hero-copy { margin: 1.6rem 0 0; max-width: 680px; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.4vw, 1.26rem); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .78rem 1.25rem; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #131313; border-color: var(--gold); }
.button-primary:hover { background: var(--gold-strong); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); }
.hero-slogan { margin-top: 2rem; font-family: Georgia, serif; font-size: 1.12rem; color: rgba(255,255,255,.72); }

.metrics { position: relative; z-index: 3; margin-top: -38px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.metrics-grid > div { padding: 1.35rem 1.45rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .85rem; border-right: 1px solid var(--steel-100); }
.metrics-grid > div:last-child { border-right: 0; }
.metrics strong { font-size: 2.3rem; line-height: 1; color: var(--navy-900); }
.metrics span { font-size: .88rem; line-height: 1.35; color: var(--steel-700); }

.section { padding: 7.2rem 0; }
.section-light { background: #f7f8f9; }
.section-dark, .section-portfolio { background: var(--navy-900); color: #fff; }
.section h2, .cta-band h2, .contact-section h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.section p { color: #56616c; }
.section-dark p, .section-portfolio p { color: rgba(255,255,255,.68); }
.split { display: grid; grid-template-columns: 1.02fr .88fr; gap: clamp(2rem, 7vw, 6.5rem); align-items: center; }
.section-copy > p { font-size: 1.05rem; max-width: 670px; }
.feature-image { margin: 0; background: var(--navy-900); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-image img { width: 100%; height: min(620px, 72vw); object-fit: cover; object-position: center; }
.feature-image figcaption { color: rgba(255,255,255,.75); padding: 1rem 1.1rem; font-size: .88rem; }
.principles { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.principles > div { background: #fff; border: 1px solid #e5e8ea; border-radius: 14px; padding: 1rem; display: grid; gap: .25rem; }
.principles strong { color: var(--navy-900); }
.principles span { color: #626c76; font-size: .9rem; }

.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: end; margin-bottom: 3.2rem; }
.section-heading p { margin: 0; max-width: 520px; }
.dark-heading p { color: #5f6973; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.service-card { min-height: 248px; padding: 1.55rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); border-radius: 16px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(242,183,5,.55); background: rgba(255,255,255,.06); }
.service-number { color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.service-card h3 { margin: 2.6rem 0 .65rem; font-size: 1.35rem; line-height: 1.15; }
.service-card p { margin: 0; font-size: .94rem; }

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #d7dce0; border-left: 1px solid #d7dce0; }
.process li { padding: 1.5rem; min-height: 175px; display: grid; grid-template-columns: auto 1fr; gap: 1rem; border-right: 1px solid #d7dce0; border-bottom: 1px solid #d7dce0; background: #fff; }
.process li > span { color: #927000; font-weight: 900; font-size: .82rem; }
.process h3 { margin: 0 0 .45rem; color: var(--navy-900); }
.process p { margin: 0; font-size: .92rem; }
.result-box { margin-top: 1.4rem; background: var(--navy-900); color: #fff; border-left: 5px solid var(--gold); padding: 1.2rem 1.35rem; display: grid; grid-template-columns: 190px 1fr; gap: 1rem; align-items: center; }
.result-box p { margin: 0; color: rgba(255,255,255,.75); }
.result-box-content { display: grid; gap: .75rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 280px 280px 300px;
  grid-template-areas:
    "bahia bahia bahia bahia bahia data data data data data data data"
    "bahia bahia bahia bahia bahia interior interior interior structure structure structure structure"
    "plafon plafon plafon plafon plafon plafon acabado acabado acabado acabado acabado acabado";
  gap: 1rem;
}
.project-card { position: relative; min-width: 0; min-height: 0; border: 0; padding: 0; overflow: hidden; border-radius: 16px; background: #14273b; text-align: left; cursor: pointer; isolation: isolate; box-shadow: 0 16px 36px rgba(1, 9, 16, .18); }
.project-card:nth-child(1) { grid-area: bahia; }
.project-card:nth-child(2) { grid-area: data; }
.project-card:nth-child(3) { grid-area: interior; }
.project-card:nth-child(4) { grid-area: structure; }
.project-card:nth-child(5) { grid-area: plafon; }
.project-card:nth-child(6) { grid-area: acabado; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .25s ease; }
.project-card:nth-child(1) img { object-position: center 48%; }
.project-card:nth-child(2) img { object-position: center 42%; }
.project-card:nth-child(3) img { object-position: center 50%; }
.project-card:nth-child(4) img { object-position: center 46%; }
.project-card:nth-child(5) img { object-position: center 42%; }
.project-card:nth-child(6) img { object-position: center 52%; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.045); filter: saturate(1.04) contrast(1.02); }
.project-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.project-tall, .project-wide { grid-row: auto; grid-column: auto; }
.project-overlay { position: absolute; inset: auto 0 0; padding: 1.2rem; display: grid; gap: .2rem; background: linear-gradient(0deg, rgba(3,11,18,.94) 0%, rgba(3,11,18,.62) 68%, transparent 100%); }
.project-overlay small { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 850; }
.project-overlay strong { color: #fff; font-size: 1.14rem; }
.project-overlay em { color: rgba(255,255,255,.68); font-style: normal; font-size: .78rem; margin-top: .25rem; }

.trust-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
.lead-dark { font-size: 1.08rem; }
.trust-list { display: grid; }
.trust-list article { display: grid; grid-template-columns: 54px 1fr; gap: 1.1rem; padding: 1.2rem 0; border-top: 1px solid #dfe3e6; }
.trust-list article:last-child { border-bottom: 1px solid #dfe3e6; }
.trust-list article > span { color: #9d7600; font-weight: 900; }
.trust-list h3 { margin: 0 0 .25rem; color: var(--navy-900); }
.trust-list p { margin: 0; font-size: .92rem; }

.cta-band { padding: 3.2rem 0; background: #10283f; color: #fff; border-block: 1px solid rgba(255,255,255,.08); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: clamp(1.85rem, 3.4vw, 3.1rem); }

.contact-section { position: relative; color: #fff; padding: 7rem 0; overflow: hidden; }
.contact-media, .contact-shade { position: absolute; inset: 0; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.contact-shade { background: linear-gradient(90deg, rgba(4,14,23,.96) 0%, rgba(4,14,23,.86) 46%, rgba(4,14,23,.56) 100%); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 5.4rem); align-items: start; }
.contact-copy p { max-width: 550px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.contact-links { margin-top: 2rem; display: grid; gap: .35rem; }
.contact-links a { color: #fff; text-decoration-color: rgba(242,183,5,.55); text-underline-offset: 4px; }
.lead-form { background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.1rem); }
.form-heading { margin-bottom: 1.3rem; display: grid; gap: .2rem; }
.form-heading span { color: #806000; font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.form-heading strong { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .95rem; }
.form-grid label { display: grid; gap: .35rem; }
.form-grid label > span { font-size: .82rem; font-weight: 750; color: #39434d; }
.full-field { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cfd5d9; border-radius: 10px; background: #fff; color: #121820; padding: .78rem .85rem; outline: none; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { border-color: #8c6a00; box-shadow: 0 0 0 3px rgba(242,183,5,.18); }
.consent { margin: 1rem 0; display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; font-size: .83rem; color: #505a64; }
.consent input { width: 18px; height: 18px; margin-top: .15rem; }
.form-submit { width: 100%; border-radius: 10px; }
.form-note { margin: .7rem 0 0; color: #6b747d !important; font-size: .76rem !important; }
.form-status { min-height: 1.5em; margin-top: .5rem; font-size: .84rem; font-weight: 700; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-footer { background: #07131f; color: rgba(255,255,255,.7); padding: 3.8rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .7fr 1fr; gap: 3rem; }
.footer-brand img { width: min(300px, 100%); height: auto; max-height: 92px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 520px; font-size: .9rem; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: .45rem; }
.footer-grid strong { color: #fff; margin-bottom: .4rem; }
.footer-grid a { text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; font-size: .76rem; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--gold-strong);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.project-dialog { width: min(900px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); border: 0; padding: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 35px 120px rgba(0,0,0,.5); overflow: auto; }
.project-dialog::backdrop { background: rgba(3,10,17,.82); backdrop-filter: blur(5px); }
.project-dialog img { width: 100%; max-height: 62vh; object-fit: cover; background: #e8ecef; }
.dialog-copy { padding: 1.5rem; }
.dialog-copy span { color: #846400; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 850; }
.dialog-copy h2 { margin: .35rem 0 .5rem; color: var(--navy-900); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.dialog-copy p { margin: 0; color: #58636d; }
.dialog-close { position: sticky; z-index: 2; top: .8rem; float: right; margin: .8rem .8rem -3.2rem 0; border: 0; border-radius: 999px; padding: .55rem .9rem; background: rgba(7,19,31,.9); color: #fff; cursor: pointer; }

/* SEO local: breadcrumbs e interlinking contextual. No altera la retícula general. */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.4;
}
.breadcrumbs a { text-decoration: none; color: rgba(255,255,255,.78); }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: rgba(255,255,255,.92); }
.breadcrumb-separator { color: rgba(255,255,255,.38); }
.seo-card-link { color: inherit; text-decoration: none; }
.seo-card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.seo-silo { display: grid; gap: .55rem; color: rgba(255,255,255,.75); font-size: .88rem; }
.seo-silo-group { display: block; }
.seo-silo-label { color: #fff; font-weight: 800; }
.seo-silo a { color: rgba(255,255,255,.82); text-underline-offset: 3px; }
.seo-silo a:hover, .seo-silo a:focus-visible { color: var(--gold-strong); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 82px; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; background: #0a1a2a; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-grid > div:nth-child(2) { border-right: 0; }
  .split, .trust-layout, .contact-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 280px 280px 280px 280px;
    grid-template-areas:
      "bahia data"
      "bahia interior"
      "structure structure"
      "plafon acabado";
  }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .site-header .container { width: min(calc(100% - 1rem), var(--container)); }
  .nav-wrap { min-height: 70px; }
  .brand { width: 235px; }
  .nav { top: 70px; left: .5rem; right: .5rem; }
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 95px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,13,22,.93), rgba(4,13,22,.63)), linear-gradient(0deg, rgba(4,13,22,.72), transparent 50%); }
  .metrics { margin-top: 0; }
  .metrics-grid { border-radius: 0; grid-template-columns: 1fr; }
  .metrics-grid > div { border-right: 0; border-bottom: 1px solid var(--steel-100); }
  .section { padding: 5.3rem 0; }
  .principles, .service-grid, .process, .form-grid { grid-template-columns: 1fr; }
  .process { border-left: 0; border-top: 0; }
  .process li { border-left: 1px solid #d7dce0; border-top: 1px solid #d7dce0; }
  .result-box { grid-template-columns: 1fr; }
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 380px 280px 280px 280px 280px 280px;
    grid-template-areas: "bahia" "data" "interior" "structure" "plafon" "acabado";
    gap: .8rem;
  }
  .contact-section { padding: 5rem 0; }
  .contact-shade { background: rgba(4,14,23,.88); }
  .full-field { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
