:root {
  --ink: #19344e;
  --ink-2: #526f89;
  --accent: #5a7893;
  --line: #dce4ea;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --soft-blue: #edf3f6;
  --surface-blue: #eef3f6;
  --surface-blue-strong: #e4edf2;
  --max: 1480px;
  --gutter: clamp(24px, 4.4vw, 72px);
  --radius: 3px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:where(a, button, input, textarea):focus-visible {
  outline: 2px solid rgba(90,120,147,.75);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }
.site-header {
  height: 118px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eef2f4;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.brand img { width: 206px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(28px, 3.3vw, 58px); font-size: 16px; }
.primary-nav a { padding: 16px 0; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--accent); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.menu-toggle { display: none; }
.hero { min-height: 560px; display: grid; grid-template-columns: minmax(520px, 40%) 1fr; background: var(--surface-blue); border-bottom: 1px solid rgba(90,120,147,.12); }
.hero-copy { display: flex; align-items: center; position: relative; z-index: 2; background: var(--surface-blue); }
.hero-copy::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 112px; background: linear-gradient(90deg, rgba(238,243,246,1) 0%, rgba(238,243,246,.76) 38%, rgba(238,243,246,.28) 74%, rgba(238,243,246,0) 100%); pointer-events: none; }
.hero-copy-inner { width: min(100%, 660px); margin-left: max(var(--gutter), calc((100vw - var(--max))/2)); padding: 58px 28px 58px 0; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; color: var(--accent); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(56px, 4.35vw, 74px); line-height: 1.01; letter-spacing: -.035em; font-weight: 500; }
@media (min-width: 1101px) {
  h1 > span, h1 > em { display: inline; white-space: nowrap; }
}
h1 em { font-style: normal; font-weight: 400; color: #7a94aa; }
.hero-lead { max-width: 520px; font-size: 22px; line-height: 1.45; margin-bottom: 38px; color: #29455f; }
.hero-visual { background: url('assets/hero-concept.jpg') left center/cover no-repeat; min-height: 560px; }
.button { display: inline-flex; align-items: center; gap: 24px; padding: 16px 24px; border: 1px solid transparent; border-radius: var(--radius); font-size: 16px; font-weight: 500; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.button-solid { background: var(--accent); color: #fff; }
.button-solid:hover { background: #4f6f8b; }
.button-outline { border-color: var(--accent); color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); color: var(--accent); background: rgba(90,120,147,.045); }
.button span { display: inline-block; font-size: 22px; line-height: 1; transition: transform .18s ease; }
.button:hover span, .button:focus-visible span { transform: translateX(4px); }
.section { padding: 84px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading.compact { margin-bottom: 32px; }
.section-heading h2, .about h2, .contact-band h2 { margin-bottom: 0; font-size: clamp(36px, 3vw, 54px); line-height: 1.05; letter-spacing: -.025em; font-weight: 500; }
.section-heading p:not(.eyebrow) { max-width: 650px; color: #607387; font-size: 18px; line-height: 1.55; }
.services { padding-top: 84px; padding-bottom: 84px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { padding: 34px 34px 34px 0; min-height: 285px; position: relative; }
.service-card + .service-card { border-left: 1px solid var(--line); padding-left: 34px; }
.service-card svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 1.7; margin-bottom: 24px; }
.service-card h3 { font-size: 22px; line-height: 1.14; margin-bottom: 12px; font-weight: 500; }
.service-card p { color: #657789; line-height: 1.5; font-size: 16px; margin-bottom: 24px; max-width: 300px; }
.service-card a, .text-link { font-weight: 500; color: var(--ink); transition: color .18s ease; }
.service-card a:hover, .service-card a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--accent); }
.service-card a span, .text-link span { display: inline-block; margin-left: 12px; transition: transform .18s ease; }
.service-card a:hover span, .service-card a:focus-visible span, .text-link:hover span, .text-link:focus-visible span { transform: translateX(4px); }
.works { background: var(--surface-blue); }
.copy-narrow { max-width: 700px; }
.works-heading { margin-bottom: 38px; }
.works-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 265px); gap: 12px; }
.work-card { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; }
.work-main { grid-row: 1 / span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.015); }
.work-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(9,25,39,.72) 100%); }
.work-copy { position: absolute; left: 30px; bottom: 28px; right: 30px; display: flex; flex-direction: column; gap: 7px; }
.work-copy strong { font-size: 30px; font-weight: 500; }
.work-card:not(.work-main) .work-copy strong { font-size: 24px; }
.work-copy small { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; line-height: 1.35; }
.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); min-height: 560px; align-items: stretch; }
.about-copy { padding: 48px 90px 48px 0; align-self: center; }
.about-copy h2 { margin-bottom: 28px; }
.about-subtitle { margin: 30px 0 12px; font-size: 20px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.about-copy strong { font-weight: 500; color: var(--ink); }
.about-copy p { max-width: 720px; color: #5f7182; font-size: 18px; line-height: 1.55; margin-bottom: 18px; }
.text-link { display: inline-block; margin-top: 12px; }
.about-art { position: relative; background: transparent; min-height: 520px; overflow: hidden; }
.about-art::before, .about-art::after { content:""; position:absolute; border:1px solid rgba(90,120,147,.16); width: 70%; height: 70%; transform: rotate(45deg); right: -12%; bottom: -22%; }
.about-art::after { width: 54%; height: 54%; right: 10%; bottom: 8%; }
.wireframe { position:absolute; border:1px solid rgba(90,120,147,.24); }
.wireframe::before,.wireframe::after { content:""; position:absolute; border:1px solid rgba(90,120,147,.16); }
.wireframe.one { width: 250px; height: 180px; right: 85px; top: 135px; }
.wireframe.one::before { width: 250px; height: 180px; left: 36px; top: -36px; }
.wireframe.one::after { width: 1px; height: 52px; border-left: 1px solid rgba(90,120,147,.20); border-right:0;border-top:0;border-bottom:0; left: 0; top:-36px; box-shadow: 250px 0 0 rgba(90,120,147,.20); }
.contact-band { background: linear-gradient(120deg, var(--surface-blue), var(--surface-blue-strong)); padding: 64px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 80px; align-items: center; }
.contact-band h2 { margin-bottom: 14px; }
.contact-band p { color: #5e7284; font-size: 18px; }
.contact-data { border-left: 1px solid rgba(90,120,147,.28); padding-left: 54px; }
.contact-data p { margin-bottom: 16px; color: var(--ink); }
.contact-data span { display: inline-block; width: 30px; color: var(--accent); text-align: center; }
.contact-data small { color: #8293a1; }
.site-footer { padding: 30px 0; border-top: 1px solid #e8eef1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner img { width: 145px; }
.footer-links { display: flex; gap: 28px; font-size: 13px; color: #5e7183; }
.footer-links a { transition: color .18s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy-inner { margin-left: var(--gutter); width: auto; }
  .hero-visual { min-height: 430px; background-position: left center; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .service-card:nth-child(3) { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .service-card:nth-child(4) { border-top: 1px solid var(--line); }
  .works-grid { grid-template-columns: 1fr; grid-template-rows: 520px 300px 300px; }
  .work-main { grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding-right: 0; }
  .about-art { min-height: 360px; }
}
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .site-header { height: 92px; }
  .brand img { width: 165px; }
  .menu-toggle { display: block; border: 0; background: transparent; color: var(--ink); font: inherit; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 92px; background: #fff; flex-direction: column; align-items: stretch; padding: 18px var(--gutter) 28px; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 0; }
  .hero { min-height: 0; }
  .hero-copy-inner { padding: 60px 0; margin-right: var(--gutter); }
  h1 { font-size: 52px; }
  .hero-lead { font-size: 19px; }
  .hero-visual { min-height: 330px; background-position: 62% center; }
  .section { padding: 64px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { border-left: none; border-top: 1px solid var(--line); padding: 28px 0; min-height: auto; }
  .services-grid .service-card:first-child { border-top: none; }
  .works-grid { grid-template-rows: 420px 260px 260px; }
  .work-copy { left: 20px; bottom: 18px; right: 20px; }
  .work-copy strong { font-size: 25px; }
  .work-copy small { font-size: 9px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-data { border-left: 0; border-top: 1px solid rgba(90,120,147,.28); padding: 28px 0 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 14px 22px; }
}

.contact-data a { color: inherit; transition: color .18s ease; }
.contact-data a:hover, .contact-data a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Interior page: Services */
.page-hero {
  background: var(--surface-blue);
  border-bottom: 1px solid rgba(90,120,147,.12);
  overflow: hidden;
}
.page-hero-grid {
  height: 460px;
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 70px;
}
.page-hero-copy { padding: 72px 0; position: relative; z-index: 2; }
.page-hero-copy h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(48px, 4.6vw, 76px);
  line-height: 1.01;
}
.page-hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #536b80;
  font-size: 21px;
  line-height: 1.5;
}
.page-hero-art { height: 460px; min-height: 460px; position: relative; }
.page-hero-art::before,
.page-hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(90,120,147,.24);
  transform: rotate(45deg);
}
.page-hero-art::before { width: 310px; height: 310px; right: 10px; top: 24px; }
.page-hero-art::after { width: 210px; height: 210px; right: 128px; top: 92px; }
.technical-line {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(90,120,147,.24);
  transform-origin: left center;
}
.technical-line.line-one { width: 360px; right: -70px; top: 92px; transform: rotate(26deg); }
.technical-line.line-two { width: 300px; right: 12px; top: 202px; transform: rotate(-19deg); }
.technical-line.line-three { width: 250px; right: 118px; top: 298px; transform: rotate(16deg); }

.services-overview { padding-top: 84px; padding-bottom: 84px; }
.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-overview-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 26px;
  padding: 52px 52px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 140px;
}
.service-overview-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}
.service-overview-card h2 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(29px, 2.3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 500;
}
.service-overview-card > div:last-child > p:not(.eyebrow) {
  max-width: 560px;
  min-height: 82px;
  margin-bottom: 28px;
  color: #607386;
  font-size: 17px;
  line-height: 1.55;
}
.pending-link { display: inline-block; opacity: .9; cursor: default; }

.help-band {
  padding: 84px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.help-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 88px;
  align-items: start;
}
.help-band h2 {
  margin: 0;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.contact-band h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.help-band h2 { max-width: 560px; }
.help-copy p {
  max-width: 700px;
  margin-bottom: 26px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .page-hero-grid { height: auto; min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .page-hero-copy { padding-bottom: 34px; }
  .page-hero-art { height: auto; min-height: 230px; }
  .service-overview-card { grid-template-columns: 64px 1fr; padding: 42px 34px; }
}

@media (max-width: 760px) {
  .page-hero-grid { height: auto; min-height: 0; }
  .page-hero-copy { padding: 56px 0 34px; }
  .page-hero-copy h1 { font-size: 48px; }
  .page-hero-copy > p:not(.eyebrow) { font-size: 18px; }
  .page-hero-art { height: auto; min-height: 170px; opacity: .8; }
  .service-overview-grid { grid-template-columns: 1fr; }
  .service-overview-card { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding: 36px 26px; }
  .service-overview-card > div:last-child > p:not(.eyebrow) { min-height: 0; }
  .help-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* Interior page: Proyectos y dirección de obra */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: clamp(60px, 7vw, 120px);
  align-items: start;
}
.editorial-intro { position: sticky; top: 150px; }
.editorial-intro h2,
.support-heading h2,
.direction-copy h2,
.process-heading h2,
.related-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.editorial-intro > p:not(.eyebrow) {
  max-width: 560px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.6;
}
.editorial-intro .editorial-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #526f89;
}
.editorial-list { border-top: 1px solid var(--line); }
.editorial-list article {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.editorial-list h3,
.support-grid h3,
.direction-points h3,
.process-grid h3,
.related-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
}
.editorial-list p,
.support-grid p,
.direction-points p,
.process-grid p,
.related-card p {
  margin: 0;
  color: #607386;
  font-size: 16px;
  line-height: 1.55;
}
.support-docs { padding-top: 84px; }
.support-heading { max-width: 920px; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.support-grid article { padding: 34px 54px 34px 0; }
.support-grid article + article { border-left: 1px solid var(--line); padding-left: 54px; }
.support-grid h3 { margin-bottom: 14px; font-size: 26px; }
.direction-band {
  padding: 72px 0;
  background: var(--surface-blue);
  border-top: 1px solid rgba(90,120,147,.12);
  border-bottom: 1px solid rgba(90,120,147,.12);
}
.direction-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(60px, 7vw, 120px);
}
.direction-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.6;
}
.direction-points { border-top: 1px solid rgba(90,120,147,.24); }
.direction-points article { padding: 24px 0; border-bottom: 1px solid rgba(90,120,147,.24); }
.direction-points h3 { margin-bottom: 10px; }
.work-process { padding-top: 84px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-grid article { min-height: 190px; padding: 30px 32px 30px 0; }
.process-grid article + article { border-left: 1px solid var(--line); padding-left: 32px; }
.process-grid h3 { margin-bottom: 12px; }
.related-works { padding-top: 84px; }
.related-heading { align-items: end; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.related-card { overflow: hidden; border-radius: var(--radius); }
.related-card img { width: 100%; height: 330px; object-fit: cover; }
.related-card > div { padding: 20px 4px 0; }
.related-card h3 { margin-bottom: 8px; font-size: 26px; }
.related-card p { text-transform: none; }

@media (max-width: 1100px) {
  .editorial-grid, .direction-grid { grid-template-columns: 1fr; gap: 46px; }
  .editorial-intro { position: static; }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .process-grid article:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .editorial-list article { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .support-grid, .process-grid, .related-grid { grid-template-columns: 1fr; }
  .support-grid article, .support-grid article + article { padding: 28px 0; border-left: 0; }
  .support-grid article + article { border-top: 1px solid var(--line); }
  .process-grid article, .process-grid article + article { min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .process-grid article:first-child { border-top: 0; }
  .related-card img { height: 260px; }
}

/* Interior page: Trabajos */
.portfolio { padding-top: 84px; padding-bottom: 84px; }
.portfolio-lead-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 310px);
  gap: 14px;
}
.portfolio-main { grid-row: 1 / span 2; }
.portfolio-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.portfolio-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--soft-blue);
  color: #fff;
}
.portfolio-secondary { min-height: 410px; }
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.portfolio-card:hover img, .portfolio-card:focus-visible img { transform: scale(1.015); }
.portfolio-copy {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 28px;
}
.portfolio-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 500;
}
.portfolio-copy p {
  margin: 0;
  color: rgba(255,255,255,.95);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  line-height: 1.45;
}
.portfolio-lead-grid .portfolio-card:not(.portfolio-main) .portfolio-copy h2 { font-size: 26px; }

@media (max-width: 1100px) {
  .portfolio-lead-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 500px 300px 300px;
  }
  .portfolio-main { grid-row: auto; }
  .portfolio-secondary { min-height: 330px; }
}

@media (max-width: 760px) {
  .portfolio { padding-top: 64px; padding-bottom: 70px; }
  .portfolio-lead-grid { grid-template-rows: 410px 260px 260px; }
  .portfolio-secondary-grid { grid-template-columns: 1fr; }
  .portfolio-secondary { min-height: 280px; }
  .portfolio-copy { left: 20px; right: 20px; bottom: 18px; }
  .portfolio-copy h2,
  .portfolio-lead-grid .portfolio-card:not(.portfolio-main) .portfolio-copy h2 { font-size: 24px; }
  .portfolio-copy p { font-size: 9px; }
}

/* Individual work: Vivienda unifamiliar */
.project-hero {
  background: var(--surface-blue);
  border-bottom: 1px solid rgba(90,120,147,.12);
}
.project-hero-grid {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: end;
  padding-top: 64px;
  padding-bottom: 58px;
}
.project-heading h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(54px, 5vw, 82px);
  line-height: .98;
}
.project-heading .eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-meta {
  border-top: 1px solid rgba(90,120,147,.25);
  padding-top: 18px;
}
.project-meta p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  margin: 0;
  padding: 10px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
.project-meta p + p { border-top: 1px solid rgba(90,120,147,.16); }
.project-meta span { color: #6b7f91; }
.project-cover { padding: 0; background: #fff; }
.project-cover .shell { width: min(1660px, calc(100% - (2 * var(--gutter)))); }
.project-cover img {
  width: 100%;
  height: clamp(470px, 58vw, 820px);
  object-fit: cover;
  object-position: center;
}
.project-intro { padding-top: 84px; padding-bottom: 84px; }
.project-intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 8vw, 130px);
}
.project-intro h2,
.project-scope h2,
.project-gallery-heading h2 {
  margin: 0;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.project-intro-copy p {
  max-width: 760px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.project-intro-copy p:last-child { margin-bottom: 0; }
.project-scope {
  padding: 72px 0;
  background: var(--surface-blue);
  border-top: 1px solid rgba(90,120,147,.12);
  border-bottom: 1px solid rgba(90,120,147,.12);
}
.project-scope-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}
.scope-list { border-top: 1px solid rgba(90,120,147,.25); }
.scope-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(90,120,147,.25);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}
.project-gallery { padding-top: 84px; padding-bottom: 84px; }
.project-gallery-heading { margin-bottom: 34px; }
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project-gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft-blue); }
.project-gallery-grid .gallery-wide { grid-column: 1 / -1; }
.project-gallery-grid.gallery-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
}
.project-gallery-grid.gallery-two figure img {
  height: clamp(420px, 38vw, 620px);
}
.project-gallery-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.project-gallery-grid .gallery-wide img { height: clamp(480px, 48vw, 720px); }
.project-gallery-grid figure:not(.gallery-wide) img { height: clamp(360px, 34vw, 520px); }
.project-back { padding: 0 0 64px; }
.project-back-inner { border-top: 1px solid var(--line); padding-top: 28px; }
.project-back .text-link { margin-top: 0; }
.project-back .text-link span { margin-right: 12px; margin-left: 0; }
.project-back .text-link:hover span, .project-back .text-link:focus-visible span { transform: translateX(-4px); }

@media (max-width: 1100px) {
  .project-hero-grid,
  .project-intro-grid,
  .project-scope-grid { grid-template-columns: 1fr; gap: 38px; }
  .project-meta { max-width: 560px; }
}
@media (max-width: 760px) {
  .project-hero-grid { min-height: 0; padding-top: 50px; padding-bottom: 44px; }
  .project-heading h1 { font-size: 50px; }
  .project-cover .shell { width: 100%; }
  .project-cover img { height: 330px; }
  .project-intro, .project-gallery { padding-top: 62px; padding-bottom: 62px; }
  .project-gallery-grid,
  .project-gallery-grid.gallery-two { grid-template-columns: 1fr; }
  .project-gallery-grid .gallery-wide { grid-column: auto; }
  .project-gallery-grid .gallery-wide img,
  .project-gallery-grid figure:not(.gallery-wide) img { height: 300px; }
}
.work-card, .portfolio-card { display: block; }

/* Interior page: Codis */
.codis-office { padding-top: 84px; padding-bottom: 84px; }
.codis-split {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}
.codis-section-lead h2,
.codis-values-heading h2,
.codis-tech-copy h2,
.codis-process-heading h2,
.codis-services-grid h2 {
  margin: 0;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.codis-copy p,
.codis-tech-copy p,
.codis-process-heading > p,
.codis-services-grid > div:last-child > p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.65;
}
.codis-copy p:last-child,
.codis-tech-copy p:last-child { margin-bottom: 0; }
.codis-values { padding-top: 34px; padding-bottom: 84px; }
.codis-values-heading { margin-bottom: 34px; }
.codis-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.codis-values-grid article { min-height: 240px; padding: 34px 36px 34px 0; }
.codis-values-grid article + article { border-left: 1px solid var(--line); padding-left: 36px; }
.codis-values-grid h3,
.codis-process-grid h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}
.codis-values-grid p,
.codis-process-grid p {
  margin: 0;
  color: #607386;
  font-size: 17px;
  line-height: 1.6;
}
.codis-tech-band {
  padding: 72px 0;
  background: var(--surface-blue);
  border-top: 1px solid rgba(90,120,147,.12);
  border-bottom: 1px solid rgba(90,120,147,.12);
  overflow: hidden;
}
.codis-tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(70px, 8vw, 140px);
  align-items: center;
}
.codis-tech-copy h2 { margin-bottom: 26px; }
.codis-tech-art { min-height: 340px; position: relative; }
.tech-frame {
  position: absolute;
  display: block;
  border: 1px solid rgba(90,120,147,.25);
}
.tech-frame.frame-one { width: 270px; height: 190px; right: 42px; top: 54px; }
.tech-frame.frame-two { width: 210px; height: 150px; right: 142px; top: 118px; }
.tech-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(90,120,147,.45);
  border-radius: 50%;
  background: var(--surface-blue);
}
.tech-node.node-one { right: 336px; top: 86px; }
.tech-node.node-two { right: 96px; top: 78px; }
.tech-node.node-three { right: 204px; top: 276px; }
.tech-link {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(90,120,147,.24);
  transform-origin: left center;
}
.tech-link.link-one { width: 248px; right: 96px; top: 90px; transform: rotate(22deg); }
.tech-link.link-two { width: 228px; right: 192px; top: 278px; transform: rotate(-34deg); }
.codis-process { padding-top: 84px; padding-bottom: 84px; }
.codis-process-heading { align-items: end; margin-bottom: 34px; }
.codis-process-heading > p { margin: 0; max-width: 620px; }
.codis-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.codis-process-grid article { min-height: 210px; padding: 30px 26px 30px 0; }
.codis-process-grid article + article { border-left: 1px solid var(--line); padding-left: 26px; }
.codis-services-link { padding-top: 84px; padding-bottom: 84px; border-top: 1px solid var(--line); }
.codis-services-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}
.codis-services-grid .button { margin-top: 12px; }

@media (max-width: 1100px) {
  .codis-split,
  .codis-tech-grid,
  .codis-services-grid { grid-template-columns: 1fr; gap: 46px; }
  .codis-tech-art { min-height: 280px; }
  .codis-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codis-process-grid article:nth-child(3),
  .codis-process-grid article:nth-child(5) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .codis-process-grid article:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .codis-office { padding-top: 64px; padding-bottom: 64px; }
  .codis-values { padding-bottom: 64px; }
  .codis-values-grid,
  .codis-process-grid { grid-template-columns: 1fr; }
  .codis-values-grid article,
  .codis-values-grid article + article,
  .codis-process-grid article,
  .codis-process-grid article + article {
    min-height: 0;
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .codis-values-grid article:first-child,
  .codis-process-grid article:first-child { border-top: 0; }
  .codis-tech-band { padding: 62px 0; }
  .codis-tech-art { min-height: 220px; }
  .tech-frame.frame-one { width: 220px; height: 150px; right: 16px; top: 34px; }
  .tech-frame.frame-two { width: 170px; height: 120px; right: 86px; top: 80px; }
  .tech-node.node-one { right: 244px; top: 58px; }
  .tech-node.node-two { right: 54px; top: 62px; }
  .tech-node.node-three { right: 126px; top: 198px; }
  .tech-link.link-one { width: 190px; right: 54px; top: 66px; }
  .tech-link.link-two { width: 170px; right: 116px; top: 200px; }
  .codis-process { padding-top: 64px; padding-bottom: 64px; }
  .codis-process-heading { align-items: flex-start; }
  .codis-services-link { padding-top: 60px; padding-bottom: 64px; }
}

/* Interior page: Contacto */
.contact-page { padding-top: 84px; padding-bottom: 84px; }
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 8vw, 140px);
  align-items: start;
}
.contact-page-intro h2,
.location-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.contact-page-lead {
  max-width: 600px;
  margin-bottom: 38px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.65;
}
.contact-page-data { border-top: 1px solid var(--line); }
.contact-detail {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail-icon { width: 34px; display: grid; place-items: center; align-self: start; color: var(--accent); font-size: 17px; line-height: 1.4; }
.contact-detail small {
  display: block;
  margin-bottom: 5px;
  color: #7890a3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-detail a {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}
.contact-detail a { transition: color .18s ease; }
.contact-detail a:hover, .contact-detail a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form {
  padding: 42px;
  border: 1px solid var(--line);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.form-field label span { color: #7b8d9d; font-weight: 400; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfdbe3;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { resize: vertical; min-height: 170px; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,120,147,.08);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 26px;
  color: #607386;
  font-size: 14px;
  line-height: 1.5;
}
.form-consent input { margin-top: 3px; accent-color: var(--accent); }
.form-note {
  margin: 14px 0 0;
  color: #7b8d9d;
  font-size: 13px;
  line-height: 1.5;
}
.location-band {
  padding: 72px 0;
  background: var(--surface-blue);
  border-top: 1px solid rgba(90,120,147,.12);
  overflow: hidden;
}
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: clamp(70px, 8vw, 140px);
  align-items: center;
}
.location-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 26px;
  color: #5f7183;
  font-size: 18px;
  line-height: 1.65;
}
.location-map {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(90,120,147,.18);
  border-radius: var(--radius);
  background: #eaf0f4;
}
.location-map img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .35s ease, filter .2s ease;
}
.location-map::after {
  content: "Abrir en Google Maps  ↗";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(25,52,78,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.location-map:hover img, .location-map:focus-visible img { transform: scale(1.012); }
.location-address {
  margin-top: -8px;
  color: var(--ink) !important;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .contact-page-grid,
  .location-grid { grid-template-columns: 1fr; gap: 46px; }
}
@media (max-width: 760px) {
  .contact-page { padding-top: 64px; padding-bottom: 64px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .location-band { padding: 62px 0; }
  .location-map, .location-map img { min-height: 240px; }
}

/* v1.20 · Ajustes finales de revisión */
.brand img {
  width: auto;
  height: 80px;
}
.footer-inner img {
  width: auto;
  height: 56px;
}

/* Mantener alineados los enlaces "Ver servicio" aunque cambie la longitud del texto. */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card > a {
  margin-top: auto;
  align-self: flex-start;
}

/* v1.21 · Plano de situación definitivo aportado ya con el tratamiento visual de Codis. */
.location-map img {
  object-position: 50% 48%;
}
.location-map::after {
  z-index: 2;
}
.location-map:hover img,
.location-map:focus-visible img {
  transform: scale(1.012);
}

@media (max-width: 760px) {
  .brand img { height: 68px; }
  .footer-inner img { height: 52px; }
  .service-card > a { margin-top: 0; }
}

/* Legal pages and compact privacy information */
.legal-page { padding-top: 84px; padding-bottom: 84px; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: clamp(54px, 7vw, 120px);
  align-items: start;
}
.legal-index {
  position: sticky;
  top: 132px;
  padding-top: 4px;
}
.legal-index nav { display: grid; gap: 12px; }
.legal-index nav a {
  width: fit-content;
  color: #607386;
  font-size: 14px;
  line-height: 1.45;
  transition: color .18s ease, transform .18s ease;
}
.legal-index nav a:hover,
.legal-index nav a:focus-visible { color: var(--ink); transform: translateX(3px); }
.legal-content { max-width: 860px; }
.legal-content section {
  scroll-margin-top: 132px;
  padding: 0 0 48px;
  margin: 0 0 48px;
  border-bottom: 1px solid var(--line);
}
.legal-content section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-content h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 500;
}
.legal-content p {
  margin: 0 0 18px;
  color: #5f7183;
  font-size: 17px;
  line-height: 1.75;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-data { margin: 26px 0 0; border-top: 1px solid var(--line); }
.legal-data div {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.legal-data dt { color: #7890a3; font-size: 13px; line-height: 1.5; }
.legal-data dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.legal-updated { padding-top: 10px; color: #7b8d9d !important; font-size: 14px !important; }
.footer-links .is-current { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.form-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.privacy-summary {
  margin: -12px 0 26px 31px;
  max-width: 560px;
  color: #607386;
  font-size: 13px;
  line-height: 1.55;
}
.privacy-summary summary {
  width: fit-content;
  cursor: pointer;
  color: #73889a;
  transition: color .18s ease;
}
.privacy-summary summary:hover,
.privacy-summary summary:focus-visible { color: var(--ink); }
.privacy-summary-body {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #f8fafb;
}
.privacy-summary-body p { margin: 0 0 8px; }
.privacy-summary-body p:last-child { margin-bottom: 0; }
.privacy-summary-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.contact-form button[disabled] {
  cursor: wait;
  opacity: .72;
}
.form-status {
  min-height: 22px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
}
.form-status:empty { display: none; }
.form-status.is-success { color: #385f52; }
.form-status.is-error { color: #8a4e4e; }

@media (max-width: 850px) {
  .legal-page { padding-top: 64px; padding-bottom: 64px; }
  .legal-layout { grid-template-columns: 1fr; gap: 46px; }
  .legal-index { position: static; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .legal-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .legal-content section { padding-bottom: 38px; margin-bottom: 38px; }
}

@media (max-width: 560px) {
  .legal-index nav { grid-template-columns: 1fr; }
  .legal-data div { grid-template-columns: 1fr; gap: 4px; }
  .privacy-summary { margin-left: 0; }
}
