:root{
  --bg:#ffffff;
  --ink:#161a1d;
  --muted:#66717a;
  --soft:#f4f6f8;
  --line:#dce3e8;
  --accent:#0C5397;
  --accent-dark:#083f73;
  --accent-soft:#E3EFF8;
  --paper:#ffffff;
  --max:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.42;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.header{
  position:sticky;
  top:0;
  z-index:20;
  height:116px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(22px,4vw,56px);
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(150%) blur(10px);
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:330px;
}
.brand img{
  display:none;
  height:72px;
  width:auto;
  max-width:390px;
  object-fit:contain;
}
.brand span{
  font-size:20px;
  letter-spacing:.16em;
  font-weight:600;
}
.nav{
  display:flex;
  align-items:center;
  gap:22px;
  color:var(--muted);
  font-size:13px;
}
.nav a:hover{color:var(--accent)}
.menuButton{display:none}
main{
  max-width:var(--max);
  margin:0 auto;
}
.hero{
  min-height:calc(100svh - 116px);
  display:grid;
  grid-template-columns:.84fr 1.16fr;
  gap:clamp(26px,4vw,64px);
  align-items:center;
  padding:clamp(32px,6vw,84px) clamp(22px,4vw,56px);
}
.label{
  margin:0 0 16px;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:11px;
  font-weight:650;
}
h1,h2,h3,p{margin-top:0}
h1{
  font-weight:500;
  letter-spacing:-.065em;
  line-height:.95;
  font-size:clamp(40px,5.15vw,74px);
  max-width:820px;
  margin-bottom:24px;
}
h2{
  font-size:clamp(30px,4.5vw,62px);
  line-height:1;
  letter-spacing:-.06em;
  font-weight:500;
  margin-bottom:0;
}
h3{
  font-size:clamp(19px,1.9vw,27px);
  line-height:1.08;
  letter-spacing:-.04em;
  font-weight:500;
}
p{color:var(--muted);font-size:16px}
.lead{
  font-size:clamp(16px,1.5vw,20px);
  max-width:660px;
}
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px;
}
.btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border:1px solid var(--ink);
  border-radius:999px;
  font-size:14px;
}
.btn:not(.muted){
  background:var(--ink);
  color:white;
}
.btn:hover{
  border-color:var(--accent);
}
.btn:not(.muted):hover{
  background:var(--accent);
  border-color:var(--accent);
}
.btn.muted:hover{
  color:var(--accent);
  border-color:var(--accent);
}
.btn.muted{
  color:var(--ink);
}
.heroFigure{
  margin:0;
  border-radius:2px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--soft);
  min-height:600px;
}
.heroFigure img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:4/5;
}
.statement{
  background:linear-gradient(180deg,#ffffff 0%, var(--soft) 100%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:clamp(48px,6vw,98px) clamp(22px,4vw,56px);
}
.statement p{
  font-size:clamp(24px,3.6vw,50px);
  line-height:1.08;
  letter-spacing:-.06em;
  color:var(--ink);
  max-width:1120px;
  margin:0;
}
.section{
  padding:clamp(60px,7vw,108px) clamp(22px,4vw,56px);
  border-bottom:1px solid var(--line);
}
.sectionHeader{
  display:grid;
  grid-template-columns:.34fr 1fr;
  gap:30px;
  align-items:start;
  margin-bottom:40px;
}
.sectionHeader .note{
  max-width:760px;
  margin:20px 0 0;
  font-size:15px;
}
.services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.service{
  min-height:215px;
  padding:26px;
  border:1px solid #d5e5f1;
  background:var(--accent-soft);
  transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.service:hover{
  transform:translateY(-3px);
  border-color:#b7d3e8;
  box-shadow:0 16px 40px rgba(12,83,151,.08);
}
.service .projectMeta{
  color:var(--accent);
}
.service h3{
  max-width:300px;
}
.service p{
  font-size:15px;
  margin-bottom:0;
}
.projectsSection{
  background:#ffffff;
}
.filters{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-bottom:30px;
}
.filter{
  background:transparent;
  border:1px solid var(--line);
  padding:8px 13px;
  border-radius:999px;
  color:var(--muted);
  cursor:pointer;
  font-size:13px;
}
.filter.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.featuredGrid{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:18px;
  margin-bottom:18px;
}
.featuredGrid .projectCard:first-child{
  grid-row:span 2;
}
.projectGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.projectCard{
  cursor:pointer;
  background:transparent;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.projectImage{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--soft);
  margin-bottom:14px;
}
.featuredGrid .projectCard:first-child .projectImage{
  aspect-ratio:16/10;
}
.projectImage img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.96) contrast(.98);
  transition:transform .45s ease;
}
.projectCard:hover .projectImage img{
  transform:scale(1.022);
}
.projectCard:hover h3{
  color:var(--accent);
}
.projectMeta{
  color:var(--muted);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:10px;
  margin-bottom:8px;
}
.projectInfo h3{
  margin-bottom:8px;
}
.projectInfo p{
  font-size:14px;
  margin-bottom:0;
}
.approach{
  display:grid;
  background:var(--soft);
  grid-template-columns:.65fr 1fr;
  gap:64px;
}
.approach .sectionHeader{
  display:block;
  margin:0;
}
.approachText p{
  font-size:clamp(22px,2.6vw,34px);
  line-height:1.16;
  letter-spacing:-.04em;
  color:var(--ink);
  margin-bottom:28px;
}
.office{
  display:grid;
  grid-template-columns:.7fr 1fr;
  gap:64px;
}
.office p{
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.22;
  letter-spacing:-.035em;
  color:var(--ink);
}
.office .label{
  color:var(--accent);
  font-size:11px;
  letter-spacing:.18em;
}
.contact{
  display:grid;
  background:var(--accent-soft);
  grid-template-columns:.72fr 1fr;
  gap:64px;
}
.contactBox{
  border-top:1px solid var(--line);
  padding-top:22px;
}
.contactBox p{
  max-width:650px;
}
.contactBox a{
  display:block;
  font-size:clamp(22px,3vw,40px);
  letter-spacing:-.05em;
  line-height:1.15;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.contactActions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}
.contactBox .whatsappBtn{
  display:inline-flex;
  width:auto;
  font-size:14px;
  letter-spacing:0;
  line-height:1;
  padding:0 18px;
  border-bottom:0;
}
.contactBox .whatsappBtn:hover{
  color:#fff;
}
.footer{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  padding:24px clamp(22px,4vw,56px);
}
.footer p{
  margin:0;
  font-size:13px;
}
dialog{
  width:min(1100px,calc(100vw - 32px));
  border:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  box-shadow:0 30px 90px rgba(0,0,0,.20);
}
dialog::backdrop{
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(5px);
}
#closeDialog{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.35);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:26px;
  cursor:pointer;
}
.dialogHero{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.dialogContent{
  padding:30px;
}
.dialogIntro{
  display:grid;
  grid-template-columns:.72fr 1fr;
  gap:36px;
  margin-bottom:24px;
}
.dialogIntro p{
  font-size:16px;
}
.facts{
  border-top:1px solid var(--line);
}
.fact{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:18px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.fact strong{
  font-size:13px;
}
.fact span{
  color:var(--muted);
  font-size:15px;
}
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.advisory{
  background:var(--soft);
}
.advisoryLayout{
  display:grid;
  grid-template-columns:.72fr 1fr;
  gap:64px;
  align-items:start;
}
.advisoryLead{
  border-top:1px solid var(--line);
  padding-top:22px;
}
.advisoryLead p{
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.22;
  letter-spacing:-.035em;
  color:var(--ink);
  margin-bottom:26px;
}
.advisoryGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.advisoryGrid article{
  min-height:210px;
  padding:24px;
  border:1px solid var(--line);
  background:#ffffff;
}
.advisoryGrid span{
  display:block;
  color:var(--accent);
  font-size:10px;
  letter-spacing:.12em;
  margin-bottom:28px;
}
.advisoryGrid p{
  font-size:15px;
  margin-bottom:0;
}

@media(max-width:980px){
  .hero,
  .sectionHeader,
  .featuredGrid,
  .approach,
  .office,
  .contact,
  .advisoryLayout,
  .dialogIntro{
    grid-template-columns:1fr;
  }
  .services,
  .projectGrid,
  .advisoryGrid{
    grid-template-columns:1fr 1fr;
  }
  .heroFigure{
    min-height:420px;
  }
}
@media(max-width:720px){
  .header{
    height:86px;
  }
  .menuButton{
    display:inline-flex;
    background:transparent;
    border:1px solid var(--line);
    border-radius:999px;
    padding:8px 14px;
  }
  .nav{
    display:none;
    position:absolute;
    top:86px;
    left:0;
    right:0;
    padding:18px 22px;
    background:#fff;
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:flex-start;
  }
  .nav.open{
    display:flex;
  }
  .hero{
    min-height:auto;
  }
  .services,
  .projectGrid,
  .advisoryGrid,
  .gallery{
    grid-template-columns:1fr;
  }
  .footer{
    flex-direction:column;
    gap:8px;
  }
  .brand img{
    height:54px;
    max-width:230px;
  }
}
/* Final blue identity refinements */
.nav a{position:relative}
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-7px;
  height:1px;
  background:var(--accent);
  transition:right .25s ease;
}
.nav a:hover::after{right:0}
.filter:hover{border-color:var(--accent);color:var(--accent)}
.contactBox a:hover{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:720px){
  h1{font-size:clamp(38px,11vw,56px);line-height:.98}
  .service{min-height:auto}
  .contact{background:var(--accent-soft)}
}

/* V8: estados de proyecto */
.statusTags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.statusTags span{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border:1px solid #c9dbe9;background:#f7fbfe;color:var(--accent-dark);border-radius:999px;font-size:10px;line-height:1.15;letter-spacing:.03em}
.dialogStatus{margin:18px 0 8px}
.dialogStatus span{font-size:11px;padding:5px 10px}
.projectInfo .statusTags{margin-top:11px}
@media (max-width:760px){.statusTags span{font-size:9px}.dialogStatus span{font-size:10px}}
