@font-face {
  font-family: "Guner Ubuntu";
  src: url("assets/fonts/Ubuntu-R.ttf?v=2b332b4698a5") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Guner Ubuntu";
  src: url("assets/fonts/Ubuntu-B.ttf?v=2b332b4698a5") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f8f8;
  --navy: #09264b;
  --blue: #1479db;
  --red: #d92332;
  --yellow: #f6c31d;
  --ink: #0d1420;
  --rule: #c9d1da;
  --mobile-ink: #425770;
  --mobile-yellow: #fff5cc;
  --contact-wash: #edf2f6;
  --contact-red: #cf1f2d;
  --project-surface: #eaf0f5;
  --project-card: #ffffff;
  --r-brand-x: 3.590%; --r-brand-y: .640%; --r-brand-w: 9.330%; --r-brand-h: 7.010%;
  --r-direction-label-x: 80.380%; --r-direction-label-y: 2.550%; --r-direction-label-w: 16.150%;
  --r-hero-title-x: 3.590%; --r-hero-title-y: 11.260%; --r-hero-title-w: 26.440%; --r-hero-title-h: 16.580%;
  --r-hero-intro-x: 37.200%; --r-hero-intro-y: 15.090%; --r-hero-intro-w: 20.450%;
  --r-hero-motto-x: 85.410%; --r-hero-motto-y: 16.370%; --r-hero-motto-w: 11.120%;
  --r-residential-photo-x: 0%; --r-residential-photo-y: 30%; --r-residential-photo-w: 30%; --r-residential-photo-h: 30%;
  --r-commercial-photo-x: 30%; --r-commercial-photo-y: 30%; --r-commercial-photo-w: 30%; --r-commercial-photo-h: 30%;
  --r-industrial-photo-x: 50%; --r-industrial-photo-y: 30%; --r-industrial-photo-w: 40%; --r-industrial-photo-h: 30%;
  --r-conductor-x: 0%; --r-conductor-w: 90%;
  --r-proof-line-x: 86.120%; --r-proof-line-y: 65.780%; --r-proof-line-w: 10.410%;
  --r-next-title-x: 3.590%; --r-next-title-y: 85.120%; --r-next-title-w: 36.420%;
  --r-next-switchboard-x: 40%; --r-next-switchboard-y: 70%; --r-next-switchboard-w: 40%; --r-next-switchboard-h: 30%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--navy);
  font-family: "Guner Ubuntu", Bahnschrift, sans-serif;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

html.gallery-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.gallery-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

#servicios,
#proyectos,
#portafolio,
#historia,
#mision,
#vision,
#contacto {
  scroll-margin-top: 1.5rem;
}

::selection {
  color: #fff;
  background: var(--red);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.skip-link {
  position: fixed;
  z-index: 99;
  left: 1rem;
  top: 1rem;
  padding: .8rem 1rem;
  background: var(--navy);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.plate {
  position: absolute;
  display: block;
  object-fit: cover;
}

.plate-residential {
  left: 0;
  top: var(--r-residential-photo-y);
  width: 28%;
  height: 32.5%;
  filter: brightness(.72);
}

.plate-commercial {
  left: 28%;
  top: var(--r-commercial-photo-y);
  width: 26%;
  height: 32.5%;
  filter: brightness(.68);
}

.plate-industrial {
  left: 54%;
  top: var(--r-industrial-photo-y);
  width: 29.5%;
  height: 32.5%;
  filter: brightness(.86);
}

.plate-switchboard {
  left: var(--r-next-switchboard-x);
  top: 78%;
  width: var(--r-next-switchboard-w);
  height: var(--r-next-switchboard-h);
}

.brand,
.hero-nav,
.direction-label,
.hero-title,
.hero-intro,
.hero-motto,
.station-label,
.whatsapp-hero,
.service-proof,
.proof-line,
.next-kicker,
.next-title,
.next-note,
.conductor {
  position: absolute;
  z-index: 6;
}

.brand {
  left: var(--r-brand-x);
  top: var(--r-brand-y);
  width: 13.2%;
  height: 8.5%;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-nav {
  left: 24%;
  top: 2.4%;
  width: 52%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(.7rem, .8vw, .86rem);
}

.hero-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .65rem .2rem;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.mobile-menu { display: none; }

.direction-label {
  left: var(--r-direction-label-x);
  top: var(--r-direction-label-y);
  width: var(--r-direction-label-w);
  margin: 0;
  font-size: clamp(.7rem, .82vw, .86rem);
  font-weight: 700;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.direction-label::after,
.hero-motto::after,
.proof-line::before {
  content: "";
  display: inline-block;
  width: 2.7rem;
  height: 2px;
  margin-left: 1rem;
  vertical-align: middle;
  background: var(--yellow);
}

.hero-title {
  left: 4%;
  top: 10.5%;
  width: 33%;
  height: var(--r-hero-title-h);
  margin: 0;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(4.5rem, 5.8vw, 6rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.04em;
  transform: scaleX(.92);
  transform-origin: left top;
}

.hero-title span,
.next-title span {
  color: var(--yellow);
}

.hero-intro {
  left: 37.5%;
  top: 15.2%;
  width: 24%;
  margin: 0;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.hero-motto {
  left: var(--r-hero-motto-x);
  top: var(--r-hero-motto-y);
  width: 13.5%;
  margin: 0;
  font-size: clamp(.52rem, .67vw, .7rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero-motto::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: -.2rem;
  width: 1px;
  height: 5.5rem;
  background: #8b9cb0;
}

.hero-motto::after {
  display: block;
  margin: .65rem 0 0;
}

.plate-residential,
.plate-commercial,
.plate-industrial {
  z-index: 1;
}

.plate-switchboard {
  z-index: 1;
}

.conductor {
  left: var(--r-conductor-x);
  top: 45.1%;
  width: 84.5%;
  height: 4%;
  z-index: 8;
}

.wire {
  position: absolute;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  box-shadow: 0 4px 18px color-mix(in srgb, currentColor 48%, transparent);
  background: currentColor;
}

.wire-yellow { left: 0; width: 33.15%; color: var(--yellow); }
.wire-blue { left: 33.15%; width: 30.75%; color: var(--blue); }
.wire-red { left: 63.9%; width: 36.1%; color: var(--red); }

.terminal {
  position: absolute;
  top: 50%;
  width: clamp(2rem, 2.55vw, 2.7rem);
  aspect-ratio: 1;
  border: 5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: white;
  box-shadow: 0 4px 18px color-mix(in srgb, currentColor 55%, transparent);
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: inherit;
  background: currentColor;
}

.terminal-yellow { left: 9.1%; color: var(--yellow); }
.terminal-blue { left: 42.3%; color: var(--blue); }
.terminal-red { left: 76.4%; color: var(--red); }

.station-label {
  top: 51.5%;
  color: white;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.station-label strong,
.station-label span {
  display: block;
}

.station-label strong {
  margin-bottom: .45rem;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(.92rem, 1.16vw, 1.22rem);
  font-weight: 800;
  letter-spacing: .05em;
}

.station-label span {
  font-size: clamp(.64rem, .78vw, .82rem);
  line-height: 1.4;
  letter-spacing: .18em;
}

.station-residential { left: 7.2%; }
.station-commercial { left: 35.4%; }
.station-industrial { left: 64.2%; }

.whatsapp-hero {
  left: 84.2%;
  top: 42.3%;
  width: 14.8%;
  min-height: 8.4%;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border: 5px solid var(--red);
  border-radius: 1.65rem;
  background: #fff;
  box-shadow: 6px 8px 22px rgba(239,50,56,.22);
  font-size: clamp(.68rem, .88vw, .94rem);
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.16,1,.3,1), box-shadow 220ms ease, background-color 180ms ease;
}

.whatsapp-hero::before {
  content: "";
  position: absolute;
  right: 100%;
  top: calc(50% - 2px);
  width: 3.2rem;
  height: 1.6rem;
  border-top: 5px solid var(--red);
  border-top-right-radius: 1.6rem;
}

.whatsapp-hero::after {
  content: "›";
  margin-left: auto;
  font-size: 1.65rem;
  line-height: 1;
}

.whatsapp-hero svg {
  width: 1.55rem;
  fill: var(--navy);
}

.whatsapp-hero > span {
  white-space: nowrap;
}

.whatsapp-hero::after {
  content: "›";
  margin-left: auto;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease;
}

.service-proof {
  top: 62.5%;
  height: 9.2%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 4%;
  border-right: 1px solid var(--rule);
  font-size: clamp(.75rem, 1vw, 1.05rem);
  font-weight: 700;
}

.proof-residential { left: 0; width: 28%; }
.proof-commercial { left: 28%; width: 26%; }
.proof-industrial { left: 54%; width: 29.5%; }

.mini-symbol {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-line {
  left: var(--r-proof-line-x);
  top: var(--r-proof-line-y);
  width: var(--r-proof-line-w);
  margin: 0;
  font-size: clamp(.5rem, .68vw, .7rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.proof-line::before {
  width: 2.2rem;
  margin: 0 1rem 0 -3.2rem;
  background: #8b9cb0;
}

.next-kicker {
  left: 3.6%;
  top: 79.5%;
  margin: 0;
  font-size: clamp(.55rem, .72vw, .75rem);
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.next-title {
  left: var(--r-next-title-x);
  top: var(--r-next-title-y);
  width: var(--r-next-title-w);
  margin: 0;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 3.5rem);
  line-height: .94;
  letter-spacing: -.04em;
}

.next-note {
  left: 84.8%;
  top: 82.5%;
  width: 8.5%;
  margin: 0;
  font-size: clamp(.5rem, .7vw, .72rem);
  line-height: 1.55;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.services,
.projects,
.portfolio-book,
.about,
.contact {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
}

.section-heading > p,
.projects-copy > p:first-child {
  margin: 0 0 2.5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section-heading h2,
.projects h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(2.9rem, 6.5vw, 6rem);
  line-height: .9;
  letter-spacing: -.04em;
}

.services {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--navy);
  color: white;
}

.service-index {
  border-top: 1px solid rgba(255,255,255,.35);
}

.service-index article {
  display: grid;
  grid-template-columns: 8rem 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.service-index span {
  color: #9ec3e8;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.service-index h3,
.service-index p {
  margin: 0;
}

.service-index h3 {
  font-size: 1.35rem;
}

.service-index p {
  max-width: 44ch;
  color: #d9e4ef;
  line-height: 1.6;
}

.projects {
  display: block;
  background: var(--project-surface);
}

.projects-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .52fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 2px solid var(--navy);
}

.projects-copy > p {
  max-width: 42ch;
  margin: 2rem 0 0;
  color: var(--mobile-ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.projects-copy h2 {
  max-width: 16ch;
  font-size: clamp(3.5rem, 5.8vw, 5.5rem);
  text-wrap: balance;
}

.projects-proof {
  padding-top: 1.5rem;
  border-top: 3px solid var(--yellow);
}

.projects-proof strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
}

.projects-proof p {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: var(--mobile-ink);
  line-height: 1.6;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.project-card {
  grid-column: span 4;
  min-width: 0;
}

.project-card:nth-child(1),
.project-card:nth-child(7),
.project-card:nth-child(11),
.project-card:nth-child(14) { grid-column: span 7; }

.project-card:nth-child(2),
.project-card:nth-child(6),
.project-card:nth-child(12),
.project-card:nth-child(13) { grid-column: span 5; }

.project-card-open {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  min-height: 30rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--project-card);
  color: var(--navy);
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 38px rgba(9,38,75,.12);
  cursor: zoom-in;
  transition: transform 420ms cubic-bezier(.16,1,.3,1), box-shadow 420ms cubic-bezier(.16,1,.3,1);
}

.project-card-media {
  position: relative;
  display: block;
  height: clamp(13rem, 19vw, 19rem);
  overflow: hidden;
  background: var(--navy);
  background-size: cover;
  background-position: center;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(5,20,38,.58));
}

.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 300ms ease, transform 700ms cubic-bezier(.16,1,.3,1), filter 420ms ease;
}

.project-card-media img.is-loaded { opacity: 1; }

.project-card-count {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  padding: .48rem .72rem;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.project-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.8rem);
}

.project-card-location {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-card-body > strong {
  margin-top: .65rem;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.project-card-scope {
  display: -webkit-box;
  max-width: 44ch;
  margin-top: .85rem;
  overflow: hidden;
  color: var(--mobile-ink);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-link {
  display: flex;
  min-height: 2.75rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card-link svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 300ms cubic-bezier(.16,1,.3,1);
}

.project-lightbox {
  width: min(calc(100vw - 2rem), 90rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  box-shadow: 0 24px 70px rgba(5,20,38,.32);
}

.project-lightbox::backdrop {
  background: rgba(5,20,38,.88);
}

.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, .34fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  min-height: min(48rem, calc(100dvh - 2.25rem));
  padding: clamp(5rem, 7vw, 6.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 280ms cubic-bezier(.2,.8,.2,1);
}

.lightbox-close svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.lightbox-copy {
  position: sticky;
  top: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--yellow);
}

.lightbox-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  color: white;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lightbox-status i {
  width: .65rem;
  height: .65rem;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.lightbox-copy h3 {
  max-width: 11ch;
  margin: 0;
  font-family: "Guner Ubuntu", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.04em;
}

.lightbox-copy p {
  max-width: 33ch;
  margin: 1.5rem 0 0;
  color: #d9e4ef;
  line-height: 1.6;
}

.lightbox-copy strong {
  color: var(--yellow);
}

.lightbox-total {
  display: block;
  margin-top: 1.5rem;
  color: #9ec3e8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lightbox-copy .lightbox-provenance {
  max-width: 38ch;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.22);
  color: #d9e4ef;
  font-size: .84rem;
  line-height: 1.45;
}

.lightbox-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  min-height: 0;
}

.lightbox-photos figure {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  margin: 0;
  background: #051426;
}

.lightbox-photos img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

.lightbox-photos figcaption {
  padding: .75rem .9rem;
  border-top: 1px solid rgba(255,255,255,.34);
  color: #d9e4ef;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-book {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .9fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: 42rem;
  background: var(--navy);
  color: #fff;
}

.portfolio-book-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.3vw, 6rem);
  line-height: .92;
  letter-spacing: -.04em;
}

.portfolio-book-copy h2 span { color: var(--yellow); }

.portfolio-book-copy > p:first-of-type {
  max-width: 49ch;
  margin: 2.25rem 0 0;
  color: #d9e4ef;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.portfolio-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.portfolio-book-actions a {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-book-actions svg,
.portfolio-book-cover-caption svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-book-read {
  min-width: 13.5rem;
  padding: .9rem 1.2rem;
  background: var(--yellow);
  color: var(--navy);
}

.portfolio-book-download {
  padding: .9rem .3rem;
  border-bottom: 1px solid rgba(255,255,255,.45);
}

.portfolio-book-note {
  margin: 2rem 0 0;
  color: #9ec3e8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portfolio-book-cover {
  position: relative;
  display: block;
  width: min(100%, 25rem);
  justify-self: center;
  color: #fff;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(.16,1,.3,1);
}

.portfolio-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 16px 25px 45px rgba(0,0,0,.32);
}

.portfolio-book-spine {
  position: absolute;
  top: 0;
  bottom: 2.5rem;
  left: -.8rem;
  width: .8rem;
  background: #dce5ed;
  transform: skewY(-5deg);
}

.portfolio-book-cover-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding-top: .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
  gap: 8vw;
  align-items: start;
  background: var(--paper);
}

.about-history p {
  max-width: 58ch;
  margin: 2.5rem 0 0;
  color: var(--mobile-ink);
  font-size: 1.1rem;
  line-height: 1.65;
}

.purpose-grid {
  border-top: 2px solid var(--navy);
}

.purpose-grid article {
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.purpose-grid article + article {
  padding-top: 2.25rem;
}

.purpose-grid h3 {
  margin: 1.5rem 0 .9rem;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.purpose-grid p {
  max-width: 56ch;
  margin: 0;
  color: var(--mobile-ink);
  line-height: 1.65;
}

.about ul {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin: 5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 0;
  list-style: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.about ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 9vw, 10rem);
  align-items: start;
  min-height: 70vh;
  background: var(--contact-red);
  color: white;
}

.contact-intro::before {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin-bottom: 2.25rem;
  background: var(--yellow);
}

.contact-intro h2 {
  max-width: 10ch;
}

.contact-intro p {
  max-width: 34ch;
  margin: 2rem 0 0;
  color: white;
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-panel {
  padding: clamp(1.5rem, 3.4vw, 3.25rem);
  background: var(--paper);
  color: var(--navy);
}

.contact-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.contact-action-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.contact-action-label img {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
}

.contact-action-label strong {
  font-size: inherit;
}

.contact-action-arrow {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color 180ms ease;
}

.contact-action svg,
.contact-location svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  border-top: 1px solid rgba(9,38,75,.28);
  font-style: normal;
}

.contact-channel {
  position: relative;
  display: flex;
  min-height: 6.25rem;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  padding: 1.3rem 1.25rem;
  border-bottom: 1px solid rgba(9,38,75,.28);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.contact-channel:nth-child(odd):not(.contact-location) {
  border-right: 1px solid rgba(9,38,75,.28);
}

.contact-channel span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-channel strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-style: normal;
  line-height: 1.35;
}

.contact-channel-primary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--red);
}

.contact-location {
  grid-column: 1 / -1;
  padding-right: 5rem;
}

.contact-location svg {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: color 180ms ease, transform .3s cubic-bezier(.2,.8,.2,1);
}

@keyframes conductor-charge {
  from { transform: translateY(-50%) scaleX(0); filter: brightness(1.55); }
  to { transform: translateY(-50%) scaleX(1); filter: brightness(1); }
}

@keyframes terminal-connect {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); box-shadow: 0 0 0 transparent; }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes whatsapp-connect {
  from { opacity: .2; clip-path: inset(0 100% 0 0 round 1.65rem); transform: translateX(-1rem); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 1.65rem); transform: translateX(0); }
}

@keyframes circuit-node-in {
  from { opacity: .35; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes collage-current-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes lightbox-connect {
  from { opacity: .4; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes menu-drop {
  from { opacity: .86; clip-path: inset(0 0 100% 0); transform: translateY(-.75rem); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes menu-shade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .wire { animation: conductor-charge 620ms cubic-bezier(.16,1,.3,1) both; transform-origin: left center; }
  .wire-blue { animation-delay: 180ms; }
  .wire-red { animation-delay: 360ms; }
  .terminal { animation: terminal-connect 420ms cubic-bezier(.16,1,.3,1) both; }
  .terminal-yellow { animation-delay: 210ms; }
  .terminal-blue { animation-delay: 430ms; }
  .terminal-red { animation-delay: 650ms; }
  .whatsapp-hero { animation: whatsapp-connect 620ms 720ms cubic-bezier(.16,1,.3,1) both; }
  .project-lightbox[open] { animation: lightbox-connect 420ms cubic-bezier(.16,1,.3,1) both; }

  @supports (animation-timeline: view()) {
    .collage-current {
      animation: collage-current-draw linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 24%;
    }

    .collage-current i {
      animation: terminal-connect linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 28%;
    }

    .about ul::before {
      animation: rule-draw linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 24%;
    }
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-nav:hover a:not(:hover) { opacity: .48; }
  .whatsapp-hero:hover { transform: translateY(-3px); box-shadow: 8px 12px 28px rgba(217,35,50,.3); }
  .whatsapp-hero:hover::after { transform: translateX(4px); }
  .contact-action:hover { color: var(--red); }
  .contact-action:hover .contact-action-arrow { background: var(--navy); transform: translate(4px,-4px); }
  .portfolio-book-read:hover { background: #fff; transform: translateY(-3px); }
  .portfolio-book-download:hover { color: var(--yellow); }
  .portfolio-book-cover:hover { transform: translateY(-5px) rotate(-.6deg); }
  .contact-channel:hover { color: var(--navy); background: var(--contact-wash); }
  .contact-location:hover svg { color: var(--red); transform: translate(4px, calc(-50% - 4px)); }
  .project-card-open:hover { transform: translateY(-5px); box-shadow: 0 26px 48px rgba(9,38,75,.17); }
  .project-card-open:hover .project-card-media img { transform: scale(1.015); filter: saturate(1.025) contrast(1.015); }
  .project-card-open:hover .project-card-link svg { transform: translate(3px,-3px); }
  .lightbox-close:hover { background: var(--yellow); color: var(--navy); transform: rotate(90deg); }
}

@media (max-width: 760px) {
  #servicios,
  #proyectos,
  #portafolio,
  #historia,
  #mision,
  #vision,
  #contacto { scroll-margin-top: 5.5rem; }

  .hero-stage {
    aspect-ratio: auto;
    min-height: 52rem;
  }

  .brand { left: max(1.25rem, env(safe-area-inset-left)); top: .75rem; width: 10rem; height: 4rem; }
  .hero-nav { display: none; }
  .mobile-menu {
    position: fixed;
    z-index: 50;
    top: max(.85rem, env(safe-area-inset-top));
    right: max(1.25rem, env(safe-area-inset-right));
    display: block;
    color: var(--navy);
  }

  .mobile-menu[open]::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 4.65rem 0 0;
    background: rgba(5,20,38,.52);
    animation: menu-shade-in 260ms cubic-bezier(.16,1,.3,1) both;
  }

  .mobile-menu summary {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 6.5rem;
    min-height: 2.9rem;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .65rem .85rem;
    border: 1px solid var(--navy);
    border-radius: 1.65rem;
    background: rgba(247,248,248,.96);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    list-style: none;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }

  .menu-glyph {
    position: relative;
    width: 1rem;
    height: .75rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .menu-glyph::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 1px);
    height: 2px;
    background: currentColor;
  }

  .mobile-menu[open] .menu-glyph {
    border-color: transparent;
  }

  .mobile-menu[open] .menu-glyph::before,
  .mobile-menu[open] .menu-glyph::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 1px);
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .mobile-menu[open] .menu-glyph::after { transform: rotate(-45deg); }

  .mobile-menu nav {
    position: fixed;
    z-index: 1;
    top: 4.65rem;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .75rem max(1.25rem, env(safe-area-inset-right)) 1.35rem max(1.25rem, env(safe-area-inset-left));
    border-top: 1px solid var(--navy);
    border-bottom: 3px solid var(--yellow);
    background: var(--paper);
    box-shadow: 0 18px 36px rgba(5,20,38,.18);
    transform-origin: top center;
    animation: menu-drop 420ms cubic-bezier(.16,1,.3,1) both;
  }

  .mobile-menu nav a {
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--rule);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu nav a:nth-child(odd) { border-right: 1px solid var(--rule); }

  .mobile-menu nav a::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobile-menu nav a:nth-last-child(-n + 2) { border-bottom: 0; }
  .direction-label { display: none; }
  .hero-title { left: 1.25rem; top: 5.7rem; width: calc(100% - 2.5rem); height: auto; font-size: clamp(3.1rem, 16vw, 4.4rem); line-height: .86; }
  .hero-intro { left: 1.25rem; top: 14.35rem; width: calc(100% - 2.5rem); font-size: 1.05rem; line-height: 1.42; }
  .hero-motto { display: none; }

  .plate-residential,
  .plate-commercial,
  .plate-industrial {
    top: 20rem;
    width: 33.334%;
    height: 15rem;
    display: block;
  }

  .plate-residential { left: 0; object-position: 54% center; }
  .plate-commercial { left: 33.333%; object-position: 52% center; }
  .plate-industrial { left: 66.666%; object-position: 56% center; }

  .conductor { top: 31.6rem; width: 100%; }
  .wire-yellow { width: 33.333%; }
  .wire-blue { left: 33.333%; width: 33.333%; }
  .wire-red { left: 66.666%; width: 33.334%; }
  .terminal-yellow { left: 16.66%; }
  .terminal-blue { left: 50%; }
  .terminal-red { left: 83.33%; }

  .station-label { top: 28.65rem; opacity: 1; width: 31%; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
  .station-label strong { margin: 0; font-size: clamp(.65rem, 2.8vw, .78rem); letter-spacing: .03em; }
  .station-label span { display: none; }
  .station-residential { left: 1rem; }
  .station-commercial { left: 35%; }
  .station-industrial { left: 68.2%; }

  .whatsapp-hero { left: 1.25rem; top: 36.6rem; width: calc(100% - 2.5rem); min-height: 3.9rem; background: white; }
  .whatsapp-hero::before { display: none; }
  .service-proof { top: 42rem; left: 1.25rem; width: calc(100% - 2.5rem); height: 2.85rem; padding: 0; border-right: 0; border-bottom: 1px solid var(--rule); font-size: .78rem; }
  .proof-commercial { top: 44.85rem; }
  .proof-industrial { top: 47.7rem; }
  .proof-line,
  .next-kicker,
  .next-title,
  .next-note,
  .plate-switchboard { display: none; }

  .services,
  .projects,
  .about {
    grid-template-columns: 1fr;
  }

  .services,
  .projects,
  .portfolio-book,
  .about,
  .contact { padding: 4.75rem 1.25rem; }

  .portfolio-book { grid-template-columns: 1fr; gap: 3.25rem; min-height: 0; }
  .portfolio-book-copy h2 { font-size: clamp(2.55rem, 12vw, 3.4rem); line-height: .95; }
  .portfolio-book-copy > p:first-of-type { margin-top: 1.5rem; font-size: 1rem; }
  .portfolio-book-actions { display: grid; gap: .35rem; margin-top: 2rem; }
  .portfolio-book-actions a { width: 100%; }
  .portfolio-book-download { min-height: 3.2rem; }
  .portfolio-book-note { margin-top: 1.35rem; font-size: .67rem; }
  .portfolio-book-cover { width: min(80vw, 20rem); }

  .section-heading > p,
  .projects-copy > p:first-child { display: none; }

  .section-heading h2,
  .projects h2,
  .about h2,
  .contact h2 { font-size: clamp(2.55rem, 12vw, 3.4rem); line-height: .94; letter-spacing: -.035em; }

  .services { background: var(--paper); color: var(--navy); }
  .service-index { margin-top: 2.75rem; border-top-color: rgba(9,38,75,.28); }
  .service-index article { grid-template-columns: 1fr; gap: .55rem; padding: 1.35rem 0; border-bottom-color: rgba(9,38,75,.2); }
  .service-index span { color: var(--blue); }
  .service-index p { color: var(--mobile-ink); font-size: .95rem; line-height: 1.55; }

  .projects { background: var(--project-surface); }
  .projects-intro { grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.75rem; }
  .projects-copy > p { margin-top: 1.5rem; font-size: 1rem; line-height: 1.6; }
  .projects-proof { padding-top: 1.25rem; }
  .projects-proof strong { font-size: 1.35rem; }
  .projects-proof p { margin-top: .75rem; font-size: .95rem; line-height: 1.55; }
  .project-card-grid { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 2rem; }
  .project-card,
  .project-card:nth-child(n) { grid-column: 1; }
  .project-card-open { min-height: 0; border-radius: 12px; }
  .project-card-media { height: clamp(12rem, 60vw, 15rem); }
  .project-card-count { right: .8rem; bottom: .8rem; }
  .project-card-body { min-height: 13.25rem; padding: 1.2rem; }
  .project-card-location { font-size: .68rem; letter-spacing: .1em; }
  .project-card-body > strong { font-size: 1.65rem; }
  .project-card-scope { margin-top: .7rem; font-size: .94rem; }
  .project-card-link { padding-top: 1.15rem; }

  .project-lightbox { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .lightbox-shell { grid-template-columns: 1fr; gap: 1.75rem; min-height: 100%; padding: 5rem 1rem max(1.25rem, env(safe-area-inset-bottom)); }
  .lightbox-close { position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem; background: var(--navy); }
  .lightbox-copy { position: static; padding-bottom: 1.5rem; }
  .lightbox-status { max-width: calc(100% - 4rem); margin-bottom: 1rem; font-size: .66rem; }
  .lightbox-copy h3 { max-width: 12ch; font-size: clamp(2.3rem, 11vw, 3.25rem); }
  .lightbox-copy p { margin-top: 1rem; font-size: .95rem; }
  .lightbox-total { margin-top: 1rem; font-size: .68rem; }
  .lightbox-copy .lightbox-provenance { margin-top: 1rem; padding-top: .75rem; font-size: .8rem; }
  .lightbox-photos { grid-template-columns: 1fr; gap: .75rem; }
  .lightbox-photos figure { grid-template-rows: auto auto; }
  .lightbox-photos img { max-height: none; }

  .about { gap: 3.25rem; }
  .about-history p { margin-top: 1.5rem; font-size: 1rem; line-height: 1.6; }
  .purpose-grid h3 { font-size: 1.7rem; }
  .purpose-grid p { font-size: .95rem; line-height: 1.6; }
  .about ul { margin-top: 0; flex-wrap: wrap; gap: 1.1rem 2rem; }

  .contact { grid-template-columns: 1fr; gap: 3rem; min-height: 0; padding-bottom: max(4.75rem, env(safe-area-inset-bottom)); }
  .contact-intro::before { width: 3rem; margin-bottom: 1.5rem; }
  .contact-intro p { margin-top: 1.25rem; font-size: 1rem; }
  .contact-panel { padding: 1.25rem; }
  .contact-action { padding: .9rem 0; font-size: 1.2rem; min-height: 4.75rem; }
  .contact-action-label { gap: .75rem; }
  .contact-action-label img { width: 2.35rem; height: 2.35rem; }
  .contact-action-arrow { width: 2.65rem; height: 2.65rem; }
  .contact-details { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .contact-channel { min-height: 5.35rem; padding: 1.1rem 0; }
  .contact-channel:nth-child(odd):not(.contact-location) { border-right: 0; }
  .contact-channel-primary::after { right: .25rem; top: 1.2rem; }
  .contact-location { grid-column: auto; padding-right: 3.5rem; }
  .contact-location svg { right: .25rem; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .services,
  .projects,
  .about,
  .contact { grid-template-columns: 1fr; }

  .services,
  .projects,
  .portfolio-book,
  .about,
  .contact { padding: 6rem 2.5rem; }

  .portfolio-book { grid-template-columns: minmax(0, 1fr) minmax(15rem, .7fr); gap: 3rem; min-height: 0; }
  .portfolio-book-copy h2 { font-size: clamp(3.5rem, 7vw, 4.8rem); }
  .portfolio-book-cover { width: min(100%, 19rem); }

  .section-heading h2,
  .projects h2,
  .about h2,
  .contact h2 { font-size: clamp(3.6rem, 8vw, 4.8rem); }

  .service-index { margin-top: 4rem; }
  .service-index article { grid-template-columns: 7rem minmax(10rem, .85fr) 1.25fr; }
  .projects-intro { grid-template-columns: 1fr; gap: 2.75rem; }
  .project-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card,
  .project-card:nth-child(n) { grid-column: auto; }
  .project-card-media { height: 16rem; }
  .lightbox-shell { grid-template-columns: 1fr; }
  .lightbox-copy { position: static; }
  .about { gap: 3rem; }
  .about ul { margin-top: 2rem; }
  .contact { gap: 4rem; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
