/* ==========================================================================
   STRUCTING — hoja única del tema
   Réplica de style2.css del prototipo + fuentes locales + overrides que en el
   prototipo vivían en un <style> del HTML.
   ========================================================================== */

/* ---------- Fuentes locales (variables: un archivo cubre 400–700) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   STRUCTING INGENIERÍA — Home «Eje»
   Navy + cobre · Space Grotesk / Inter · máx 1330px
   ========================================================================== */

:root {
  --navy-900: #0C1526;
  --navy-800: #111D33;
  --navy-700: #16233F;
  --navy-600: #22314C;
  --paper: #FFFFFF;
  --paper-dim: #F2F3F5;
  --copper: #E0964A;
  --copper-deco: #C77B2E;
  --copper-text: #A6601C;
  --copper-deep: #8F5416;
  --ink: #0D1729;
  --ink-soft: #5F6A7D;
  --light: #BCC8DE;
  --light-soft: #9AA9C4;
  --line-dark: rgba(188, 200, 222, 0.16);
  --line-paper: rgba(13, 23, 41, 0.14);
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1330px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--copper-text); text-decoration: none; }
a:hover { color: var(--copper-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

::selection { background: var(--copper); color: var(--navy-900); }

/* Accesibilidad: foco visible y salto de contenido */
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--copper);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 16px; color: var(--navy-900); }

/* Anotación de cota por sección (blueprint) */
.section[data-el] { position: relative; }
.section[data-el]::after {
  content: attr(data-el);
  position: absolute;
  top: 22px; right: var(--gutter);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  opacity: 0.4;
  pointer-events: none;
}
.section--navy[data-el]::after { color: var(--light-soft); }

/* Grano sutil sobre secciones navy */
.section--navy::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}
.section--navy > .container { position: relative; z-index: 2; }

/* ==========================================================================
   Raíl de cotas de elevación
   ========================================================================== */
.elev-rail {
  position: fixed;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  pointer-events: none;
}
@media (min-width: 1240px) { .elev-rail { display: block; } }
.elev-rail__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding-left: 16px;
  border-left: 1px solid var(--line-dark);
}
.elev-rail__mark {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--light-soft);
  opacity: 0.45;
  transition: opacity 0.4s, color 0.4s;
  white-space: nowrap;
}
.elev-rail__mark.is-active { opacity: 1; color: var(--copper); }
.elev-rail__cursor {
  position: absolute;
  left: -4.5px; top: 0;
  width: 8px; height: 8px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: var(--navy-900);
  transition: top 0.15s linear;
}
/* raíl sobre secciones claras */
.elev-rail.on-paper .elev-rail__track { border-color: var(--line-paper); }
.elev-rail.on-paper .elev-rail__mark { color: var(--ink-soft); }
.elev-rail.on-paper .elev-rail__mark.is-active { color: var(--copper-text); }
.elev-rail.on-paper .elev-rail__cursor { background: var(--paper); border-color: var(--copper-deco); }

/* ==========================================================================
   Nodo de eje (línea + burbuja), motivo recurrente
   ========================================================================== */
.axis-node {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  vertical-align: middle;
}
.axis-node--copper { border-color: var(--copper); }

.axis-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.axis-head__bubble {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid var(--copper-deco);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--copper-text);
}
.axis-head__line {
  flex: 1;
  height: 1px;
  background: var(--line-paper);
  transform-origin: left center;
}
.axis-head__kicker {
  flex: none;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.axis-head--dark .axis-head__bubble { border-color: var(--copper); color: var(--copper); }
.axis-head--dark .axis-head__line { background: var(--line-dark); }
.axis-head--dark .axis-head__kicker { color: var(--light-soft); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(12, 21, 38, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid {
  background: var(--navy-900);
  border-bottom-color: var(--line-dark);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #E9EDF5;
}
.brand:hover { color: #FFFFFF; }
.brand__img { height: 34px; width: auto; display: block; }
.brand__mark { width: 30px; height: 30px; }
.brand__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__sub {
  font-style: normal;
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.42em;
  color: var(--light-soft);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--light);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: #FFFFFF; }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav__link.is-active { color: #FFFFFF; }
.nav__link--cta {
  border: 1px solid var(--copper-deco);
  padding: 8px 16px;
  color: var(--copper);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--copper); color: var(--navy-900); }
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12.5px;
}
.lang__btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--light-soft);
  cursor: pointer;
  padding: 4px 2px;
  letter-spacing: 0.06em;
}
.lang__btn:hover { color: #FFFFFF; }
.lang__btn.is-active { color: var(--copper); }
.lang__sep { color: var(--line-dark); }
.burger {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: #E9EDF5;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line-dark);
    padding: 20px var(--gutter) 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; padding: 11px 0; font-size: 16px; }
  .nav__link--cta { display: inline-block; margin-top: 8px; padding: 10px 20px; }
  .lang { margin-top: 14px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 80% at 68% 38%, rgba(34, 49, 76, 0.5), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 85%, rgba(199, 123, 46, 0.06), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-soft);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #F4F7FC;
  margin-bottom: 26px;
}
.hero__title-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .char { display: inline-block; will-change: transform; }
.split-line { display: block; overflow: hidden; }
.split-line__inner { display: block; will-change: transform; }
.hero__title-em { font-style: normal; color: var(--copper); }
.hero__title-dot { color: var(--copper-deco); }
.hero__intro {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--light);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(22px, 3.4vw, 48px); }
.hero__ctas .btn {
  background: none;
  border: none;
  padding: 10px 2px;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero__ctas .btn::after {
  content: "↗";
  font-size: 15px;
  transition: transform 0.35s var(--ease-out);
}
.hero__ctas .btn:hover::after { transform: translate(3px, -3px); }
.hero__ctas .btn::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.hero__ctas .btn:hover::before { opacity: 1; }
.hero__ctas .btn--copper { background: none; color: var(--copper); }
.hero__ctas .btn--copper:hover { background: none; color: #EBA95F; }
.hero__ctas .btn--ghost { border: none; color: var(--light); }
.hero__ctas .btn--ghost:hover { border: none; color: #FFFFFF; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.btn:active { transform: translateY(1px) !important; }
.btn, .nav__link--cta { will-change: transform; }
.btn--copper {
  background: var(--copper);
  color: var(--navy-900);
  border-color: var(--copper);
}
.btn--copper:hover { background: #EBA95F; border-color: #EBA95F; color: var(--navy-900); }
.btn--ghost {
  color: var(--light);
  border-color: rgba(188, 200, 222, 0.35);
}
.btn--ghost:hover { color: #FFFFFF; border-color: var(--copper); }

.hero__hud {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--light-soft);
  opacity: 0.7;
}
.hero__scrollcue {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-soft);
}
.hero__scrollcue-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--copper), transparent);
  animation: scrollcue 2.2s var(--ease-out) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 720px) {
  .hero__hud { display: none; }
  .hero__canvas { opacity: 0.5; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--paper { background: var(--paper-dim); color: var(--ink); }
.section--paper:nth-of-type(odd) { background: var(--paper); }
.section--navy { background: var(--navy-800); color: var(--light); }
#quienes-somos { background: var(--navy-900); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.section-title--light { color: #F4F7FC; }
.section-lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.link-arrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--copper-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--copper-deco);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-paper);
  border-left: 1px solid var(--line-paper);
}
.service {
  border-right: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
  padding: clamp(26px, 3vw, 40px);
  background: transparent;
  transition: background 0.35s;
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--copper-deco);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.service:hover { background: var(--paper); }
.section--paper:nth-of-type(odd) .service:hover { background: var(--paper-dim); }
.service:hover::before { transform: scaleX(1); }
.service__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--copper-text);
}
.service__icon {
  width: 44px; height: 44px;
  fill: none;
  stroke: var(--navy-600);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service__icon line, .service__icon polyline, .service__icon rect { transition: stroke 0.3s; }
.service:hover .service__icon { stroke: var(--copper-deep); }
.service__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--ink);
}
.service__body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }
.service__body strong { color: var(--copper-deep); font-weight: 600; }
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .service__head { margin-bottom: 16px; }
}

/* ==========================================================================
   Quiénes somos
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.about__lede {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--light);
  text-wrap: pretty;
}
.team { list-style: none; display: flex; flex-direction: column; }
.team__member { border-bottom: 1px solid var(--line-dark); position: relative; }
.team__member:first-child { border-top: 1px solid var(--line-dark); }
.team__member::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--copper-deco);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
  z-index: 1;
}
.team__member:hover::before, .team__member.is-open::before { transform: scaleX(1); }
.team__head {
  width: 100%;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.team__photo {
  width: 84px; height: 84px;
  display: block;
  position: relative;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: border-color 0.35s;
}
.team__member.is-open .team__photo, .team__head:hover .team__photo { border-color: var(--copper-deco); }
.team__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: #F4F7FC;
}
.team__role {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  text-wrap: pretty;
}
.team__plus {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}
.team__plus::before, .team__plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--light);
  transition: background 0.3s;
}
.team__plus::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.team__plus::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.team__head:hover .team__plus { border-color: var(--copper-deco); }
.team__member.is-open .team__plus { transform: rotate(45deg); border-color: var(--copper); }
.team__member.is-open .team__plus::before, .team__member.is-open .team__plus::after { background: var(--copper); }
.team__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.team__member.is-open .team__details { grid-template-rows: 1fr; }
.team__details-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team__details-inner p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--light-soft);
  text-wrap: pretty;
  max-width: 60ch;
}
.team__details-inner p:first-child { padding-top: 2px; }
.team__details-inner p:last-child { padding-bottom: 24px; }
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .team__head { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .team__photo { width: 64px; height: 64px; }
}

/* ==========================================================================
   Proyectos
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.project-card {
  position: relative;
  perspective: 900px;
  background: var(--paper);
  border: 1px solid var(--line-paper);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.project-card:hover {
  border-color: rgba(199, 123, 46, 0.55);
  box-shadow: 0 18px 44px -22px rgba(13, 23, 41, 0.28);
}
.project-card__link { transform-style: preserve-3d; will-change: transform; }
.project-card__link { display: block; color: inherit; }
.project-card__link:hover { color: inherit; }
.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line-paper);
  background: var(--navy-700);
}
.project-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) hue-rotate(178deg) saturate(2.4) brightness(0.82);
  transition: filter 0.55s var(--ease-out), transform 0.7s var(--ease-out);
}
.project-card__link:hover .project-card__media img {
  filter: none;
  transform: scale(1.03);
}
.project-card__scan {
  position: absolute;
  left: 0; top: -8%;
  width: 100%; height: 8%;
  background: linear-gradient(rgba(224, 150, 74, 0), rgba(224, 150, 74, 0.55), rgba(224, 150, 74, 0));
  border-bottom: 1px solid var(--copper);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.project-card__link:hover .project-card__scan { animation: scan 0.9s var(--ease-out) forwards; }
@keyframes scan {
  0% { top: -8%; opacity: 1; }
  85% { opacity: 1; }
  100% { top: 108%; opacity: 0; }
}
.project-card__badge {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 3;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(12, 21, 38, 0.82);
  border: 1px solid rgba(224, 150, 74, 0.45);
  padding: 5px 10px;
  pointer-events: none;
}
.project-card__body { padding: 22px 24px 26px; }
.project-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s;
}
.project-card__link:hover .project-card__title { color: var(--copper-deep); }
.project-card__meta {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 6px 0 10px;
}
.project-card__desc { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--copper-text);
}
.project-card__more::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.project-card__link:hover .project-card__more::after { transform: translateX(5px); }
@media (max-width: 980px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cifras
   ========================================================================== */
.stats-section { background: var(--navy-800); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.stat__value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1;
  color: #F4F7FC;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.stat__value--norm { color: var(--copper); }
.stat__unit {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--copper);
}
.stat__label {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--light-soft);
  max-width: 300px;
  margin-inline: auto;
  text-wrap: pretty;
}
.route { max-width: 900px; margin-inline: auto; }
.route__svg { width: 100%; height: auto; display: block; }
.route__line {
  stroke: var(--copper-deco);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  animation: route-flow 1.4s linear infinite;
}
@keyframes route-flow {
  to { stroke-dashoffset: -12; }
}
@media (prefers-reduced-motion: reduce) {
  .route__line { animation: none; }
}
.route__node { fill: var(--navy-800); stroke: var(--copper); stroke-width: 1.5; }
.route__label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.22em;
  fill: var(--light-soft);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Clientes
   ========================================================================== */
.clients {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-paper);
  border-left: 1px solid var(--line-paper);
}
.clients__item {
  border-right: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 30px);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}
.clients__item::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border: 1.5px solid var(--line-paper);
  border-radius: 50%;
  transition: border-color 0.3s, background 0.3s;
}
.clients__item:hover { color: var(--ink); background: var(--paper); }
.clients__item:hover::before { border-color: var(--copper-deco); }
.clients__item.is-in::before { animation: node-ping 0.9s var(--ease-out); }
@keyframes node-ping {
  0% { border-color: var(--copper); box-shadow: 0 0 0 0 rgba(199, 123, 46, 0.5); }
  100% { border-color: var(--line-paper); box-shadow: 0 0 0 12px rgba(199, 123, 46, 0); }
}
@media (max-width: 860px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-section { background: var(--navy-900); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__lede { margin-top: 16px; font-size: 16.5px; color: var(--light); max-width: 440px; text-wrap: pretty; }
.contact__data { list-style: none; margin-top: 34px; border-top: 1px solid var(--line-dark); }
.contact__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
  color: var(--light);
}
.contact__row a { color: var(--copper); }
.contact__row a:hover { color: #EBA95F; }
.contact__key {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-soft);
  padding-top: 3px;
}
.map { margin-top: 30px; }
.map__load {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 20px;
  background: transparent;
  border: 1px dashed rgba(188, 200, 222, 0.3);
  color: var(--light);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.map__load:hover { border-color: var(--copper); color: #FFFFFF; }
.map iframe {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line-dark);
  display: block;
  filter: grayscale(1) invert(0.92) hue-rotate(190deg) saturate(0.6);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid var(--line-dark);
  padding: clamp(24px, 3vw, 40px);
  background: var(--navy-800);
}
.contact-form__field { display: flex; flex-direction: column; gap: 8px; }
.contact-form__label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-soft);
}
.contact-form__input {
  background: var(--navy-900);
  border: 1px solid var(--line-dark);
  color: #F4F7FC;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  transition: border-color 0.3s;
  border-radius: 0;
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--copper);
}
.contact-form__input--area { resize: vertical; min-height: 120px; }
.contact-form__submit { justify-content: center; }
.contact-form__note { font-size: 12.5px; color: var(--light-soft); opacity: 0.75; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
  color: var(--light-soft);
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(28px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
}
.site-footer__title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}
.site-footer__col p { font-size: 13.5px; line-height: 1.7; margin-bottom: 4px; }
.site-footer__col a { color: var(--copper); }
.site-footer__col a:hover { color: #EBA95F; }
.site-footer__logo-img { height: 40px; width: auto; display: block; }
.site-footer__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #E9EDF5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__logo em {
  font-style: normal;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--light-soft);
}
.site-footer__tag { margin-top: 14px; font-size: 14px; color: var(--light-soft); }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--light);
  width: fit-content;
}
.site-footer__nav a:hover { color: var(--copper); }
.site-footer__meta { font-size: 13.5px; line-height: 1.8; }
.site-footer__meta a { color: var(--copper); }
.site-footer__meta a:hover { color: #EBA95F; }
.site-footer__legal { opacity: 0.65; }
.site-footer__bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--light-soft);
}
.site-footer__by a { color: var(--light); }
.site-footer__by a:hover { color: var(--copper); }
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { justify-content: flex-start; }
}

/* ==========================================================================
   Animación de entrada (estados iniciales los pone JS; fallback visible)
   ========================================================================== */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__scrollcue-line { animation: none; }
}

/* ====== Paginador (página de proyectos) ====== */
.proj-page { padding-top: clamp(120px, 14vh, 200px); }
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: clamp(40px, 5vw, 72px);
}
.pager__btn {
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-paper);
  background: transparent; color: var(--ink-soft);
  font-family: var(--font-head); font-size: 14px; letter-spacing: 0.04em;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.pager__btn:hover { border-color: var(--copper-deep); color: var(--ink); }
.pager__btn.is-active {
  background: var(--copper-deep); border-color: var(--copper-deep); color: #fff;
}
.pager__btn--nav { font-size: 16px; }

/* ==========================================================================
   Overrides que en el prototipo iban en un <style> del HTML
   (duotono y encuadre de las imágenes reales de proyecto y de equipo)
   ========================================================================== */
.project-card__media img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  filter: grayscale(1) sepia(.35) hue-rotate(178deg) saturate(2.4) brightness(.82);
  transition: filter .55s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.project-card__link:hover .project-card__media img { filter: none; transform: scale(1.03); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ==========================================================================
   Añadidos del tema (no existían en el prototipo)
   ========================================================================== */
/* Anillo de foco solo con teclado (A5): se rastrea la modalidad en <html>.kbd */
* { -webkit-tap-highlight-color: transparent; }
.kbd :focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
:focus-visible { outline: none; }

/* Panel oculto de verdad aunque el CSS lo declare flex/grid (A12b) */
[hidden] { display: none !important; }

/* Barra de administración de WordPress: no debe tapar el header fijo */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Utilidad de WordPress: texto solo para lectores de pantalla */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; display: block; padding: 12px 20px;
  background: var(--copper); color: var(--navy-900); z-index: 200; top: 16px; left: 16px;
}

/* Paginador: en WordPress son enlaces y un <span> para la página actual, no
   <button>. Sin display:inline-flex, el <span> se queda inline y el número se
   va a la esquina en vez de centrarse. */
.pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  text-decoration: none;
}
a.pager__btn { color: var(--ink-soft); }
a.pager__btn:hover { color: var(--ink); }
span.pager__btn.is-active { color: #FFFFFF; }
.pager__dots { color: var(--ink-soft); padding: 0 4px; font-family: var(--font-head); }

/* Formulario de contacto: estados que el prototipo no tenía */
.contact-form__req { color: var(--copper); margin-left: 2px; }
.contact-form__error {
  margin-top: 6px; font-size: 13px; color: #F2A0A0;
}
.contact-form__input.is-invalid { border-color: #EB5757; }
/* Trampa para bots: invisible para personas, presente para el robot */
.contact-form__trampa {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   Contacto: acuse de recibo y avisos
   Misma caja que el formulario (hereda borde, fondo y padding) para que el
   cambio no mueva el layout de la sección.
   ========================================================================== */
.contact-ok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--navy-800);
  outline: none;
}
.contact-ok__icon { width: 56px; height: 56px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-ok__ring { stroke: var(--copper-deco); stroke-width: 1.5; opacity: .55; }
.contact-ok__check { stroke: var(--copper); stroke-width: 3; }
.contact-ok__kicker {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
}
.contact-ok__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper);
  margin: 0;
}
.contact-ok__text { color: var(--light); max-width: 46ch; margin: 0; }
.contact-ok__meta { font-size: 13.5px; color: var(--light-soft); margin: 0; }
.contact-ok__meta a { color: var(--copper); }
.contact-ok__again {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  margin-top: 6px;
  transition: color .25s, border-color .25s;
}
.contact-ok__again:hover { color: var(--copper); border-color: var(--copper-deco); }

/* El check se dibuja al aparecer, con el mismo gesto que los iconos de servicio */
@media (prefers-reduced-motion: no-preference) {
  .contact-ok__ring {
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    animation: structing-trazo .9s var(--ease-out) forwards;
  }
  .contact-ok__check {
    stroke-dasharray: 46;
    stroke-dashoffset: 46;
    animation: structing-trazo .5s var(--ease-out) .5s forwards;
  }
}
@keyframes structing-trazo { to { stroke-dashoffset: 0; } }

/* Aviso de error, con el mismo lenguaje de trazo */
.contact-aviso {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(235, 87, 87, 0.45);
  background: rgba(235, 87, 87, 0.10);
  outline: none;
}
.contact-aviso__icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  fill: none;
  stroke: #F2A0A0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-aviso__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #FFD9D9;
  margin: 0 0 2px;
}
.contact-aviso__text { font-size: 13.5px; line-height: 1.5; color: var(--light); margin: 0; }
