/* ==========================================================================
   DP INGENIERÍA — Digital brochure
   Token system
   ========================================================================== */
:root{
  /* Color */
  --bg:            #0B1512;   /* fondo principal, negro con base verde-petróleo */
  --bg-alt:        #0E1B17;   /* variante de fondo para secciones "dark" alternas */
  --panel:         #11211C;   /* paneles, tarjetas, nav */
  --line:          #24352E;   /* líneas finas / bordes */
  --line-soft:     #1A2924;
  --ink-hi:        #F3F6F1;   /* texto principal */
  --ink-lo:        #93A69C;   /* texto secundario / muted */
  --ink-faint:     #5C6B64;
  --accent:        #49B87C;   /* verde técnico */
  --accent-soft:   #1C3327;   /* verde técnico, uso como relleno sutil */
  --accent-bright: #82E3AC;   /* verde técnico, estados hover / highlight */
  --paper:         #F3F6F1;   /* texto invertido sobre acento */

  /* Type */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --edge: clamp(1.25rem, 4vw, 4rem);
  --rail-w: 4.5rem;
  --header-h: 5rem;
  --radius: 2px;

  --ease-out: cubic-bezier(.16,.84,.44,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }
button{ font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; font-size: 1rem; }

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06130D;
  padding: .75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus{ left: var(--edge); top: .75rem; }

:focus-visible{
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow{
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow__num{ color: var(--ink-faint); }
.eyebrow--muted{ color: var(--ink-lo); font-weight: 500; }

.section__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 16ch;
}
.section__lead{
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-lo);
  line-height: 1.55;
}
.section__closing{
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  color: var(--accent-bright);
}
.section__closing--sm{ font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-top: 2rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn--accent{
  background: var(--accent);
  border-color: var(--accent);
  color: #06130D;
}
.btn--accent:hover{ background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.btn--ghost{
  background: transparent;
  color: var(--ink-hi);
  border-color: var(--line);
}
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent-bright); }
.btn--sm{ padding: .6rem 1.25rem; font-size: .85rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8,17,14,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled{
  background: rgba(8,17,14,.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.55);
}
.site-header__inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
}
.brand{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.brand::before{
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
.brand__dp{ color: var(--accent-bright); }
.brand__name{ color: var(--ink-hi); }

.main-nav__list{
  display: flex;
  gap: 1.9rem;
}
.main-nav__list a{
  font-size: .82rem;
  font-weight: 600;
  color: rgba(243,246,241,.72);
  letter-spacing: .02em;
  position: relative;
  padding: .3rem 0;
  transition: color .2s var(--ease-out);
}
.main-nav__list a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right .28s var(--ease-out);
}
.main-nav__list a:hover{ color: var(--ink-hi); }
.main-nav__list a.is-active{ color: var(--accent-bright); }
.main-nav__list a.is-active::after{ right: 0; }

.site-header__actions{ display: flex; align-items: center; gap: 1rem; }
.site-header__cta{ display: inline-flex; }

.menu-toggle{
  display: none;
  width: 2.4rem; height: 2.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle__bar{
  width: 22px; height: 1.5px;
  background: var(--ink-hi);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child{ transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child{ transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) var(--edge) 2rem;
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open{ transform: translateY(0); visibility: visible; }
.mobile-menu ul{ display: flex; flex-direction: column; gap: 1.1rem; width: 100%; }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink-hi);
  display: flex;
  align-items: baseline;
  gap: .9rem;
}
.mobile-menu a span{ font-size: .9rem; color: var(--accent); font-weight: 500; }
.mobile-menu a.is-active{ color: var(--accent-bright); }
.mobile-menu__footer{
  position: absolute;
  bottom: 2rem; left: var(--edge);
  display: flex; flex-direction: column; gap: .4rem;
  color: var(--ink-lo);
  font-size: .9rem;
}

/* Side rail — oculto a pedido (los puntos quedaban desalineados) */
.side-rail{
  display: none;
}
.side-rail ol{ display: flex; flex-direction: column; gap: .95rem; align-items: flex-end; }
.side-rail li{ display: flex; align-items: center; gap: .6rem; }
.side-rail button{
  display: flex; align-items: center; gap: .6rem;
  padding: 0;
}
.side-rail__label{
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-lo);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  white-space: nowrap;
}
.side-rail li:hover .side-rail__label,
.side-rail button.is-active .side-rail__label{ opacity: 1; transform: translateX(0); color: var(--ink-hi); }
.side-rail__dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.side-rail button.is-active .side-rail__dot{
  background: var(--accent);
  transform: scale(1.6);
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.section{
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3.5rem) var(--edge) 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
}
.section--dark{ background: var(--bg-alt); }
.section__inner{ width: 100%; max-width: 74rem; margin: 0 auto; }
.section__inner--wide{ max-width: 84rem; }

/* ==========================================================================
   01 · Hero
   ========================================================================== */
.hero{
  padding-top: calc(var(--header-h) + 2rem);
  justify-content: flex-end;
  border-bottom: none;
  overflow: hidden;
}
.hero__bg{ position: absolute; inset: 0; z-index: 0; }
.hero__bg-image{
  position: absolute;
  inset: -4%;
  background-image:
    radial-gradient(120% 90% at 78% 8%, rgba(73,184,124,.16), transparent 55%),
    linear-gradient(200deg, rgba(9,20,16,.55) 0%, rgba(8,17,14,.25) 45%, rgba(8,17,14,.6) 100%),
    url("../assets/images/hero.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center 32%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  will-change: transform;
}
.hero__grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 70% 30%, black, transparent);
  mix-blend-mode: overlay;
}
.hero__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,11,.94) 0%, rgba(7,15,12,.42) 52%, rgba(7,15,12,.58) 100%);
}
.hero__content{
  position: relative; z-index: 2;
  max-width: 46rem;
  padding-bottom: 5.5rem;
}
.hero__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-top: .75rem;
}
.hero__title span{ display: block; overflow: hidden; }
.hero__text{
  margin-top: 1.75rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-lo);
}
.hero__actions{ margin-top: 2.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue{
  position: absolute;
  left: var(--edge);
  bottom: 2rem;
  z-index: 2;
  display: flex; align-items: center; gap: .75rem;
  color: var(--ink-lo);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-cue__line{
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Reveal-line (hero headline mask reveal, animated via GSAP) */
.reveal-line, .reveal-up{ will-change: transform, opacity; }

/* ==========================================================================
   02 · Visión — palabras dinámicas
   ========================================================================== */
.vision-words{
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.vision-words li{
  flex: 1 1 auto;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: .9rem;
}
.vision-words__index{
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--ink-faint);
}
.vision-words__word{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--ink-hi);
  transition: color .25s var(--ease-out);
}
.vision-words li:hover .vision-words__word{ color: var(--accent-bright); }

/* ==========================================================================
   03 · Posicionamiento — proceso
   ========================================================================== */
.process-chain{
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.process-chain li{
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.process-chain__step{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  opacity: .35;
  transition: opacity .4s var(--ease-out);
}
.process-chain__step.is-active{ opacity: 1; }
.process-chain__num{
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--accent);
}
.process-chain__word{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  font-weight: 600;
}
.process-chain__connector{
  width: clamp(1.25rem, 3vw, 3rem);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.process-chain__connector::after{
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.process-chain__connector.is-active::after{ transform: scaleX(1); }

/* ==========================================================================
   04 · Experiencia — stats
   ========================================================================== */
.stats-row{
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.stat-block__number{
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: .15rem;
}
.stat-block__plus{ font-size: .55em; font-weight: 500; }
.stat-block__unit{ font-size: 1.1rem; color: var(--ink-lo); font-weight: 500; margin-left: .35rem; }
.stat-block__label{ margin-top: .75rem; color: var(--ink-lo); font-size: 1rem; max-width: 20ch; }

.quals-row{
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.quals-row__item{
  flex: 1 1 22rem;
  max-width: 30rem;
  color: var(--ink-hi);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  display: flex;
  gap: .8rem;
}
.quals-row__dot{
  flex: none;
  width: 7px; height: 7px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   05 · Liderazgo
   ========================================================================== */
.leadership-grid{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.portrait{
  width: fit-content;
  max-width: 12.5rem;
  margin-inline: auto;
  padding: .5rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.portrait-placeholder{
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--ink-faint);
  text-align: center;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.portrait-placeholder__sub{ color: var(--ink-faint); font-size: .75rem; }
.portrait__photo{
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-alt);
  filter: grayscale(.35) contrast(.98) brightness(1.02);
}
.portrait__caption{
  margin-top: .9rem;
  padding: 0 .1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.portrait__name{ font-family: var(--font-display); font-weight: 600; color: var(--ink-hi); font-size: .95rem; }
.portrait__role{ color: var(--ink-lo); font-size: .78rem; line-height: 1.5; max-width: 30ch; }
.portrait__linkedin{
  margin-top: .3rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.portrait__linkedin:hover{ color: var(--accent-bright); border-color: var(--accent-bright); }

/* ==========================================================================
   06 · Sectores
   ========================================================================== */
.sectors{
  margin-top: 3rem;
  display: flex;
  gap: 2px;
  min-height: 26rem;
  width: 100%;
}
.sector{
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--panel);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition: flex .55s var(--ease-out), background-color .4s var(--ease-out);
}
.sector::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.sector.is-active{ flex: 2.4; background: #142B22; }
.sector.is-active::before{ opacity: 1; }
.sector__icon{
  display: block;
  width: clamp(1.6rem, 2.6vw, 2.1rem);
  height: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--accent);
  opacity: .85;
  margin-bottom: 1.5rem;
  transition: color .3s var(--ease-out);
}
.sector__icon svg{ width: 100%; height: 100%; display: block; }
.sector.is-active .sector__icon{ color: var(--accent-bright); }
.sector__index{
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--accent);
}
.sector__name{
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 600;
  position: relative;
}
.sector__list{
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .4s var(--ease-out);
  position: relative;
}
.sector.is-active .sector__list{ max-height: 16rem; opacity: 1; }
.sector__list li{
  color: var(--ink-lo);
  font-size: .95rem;
}

/* ==========================================================================
   07 · Ecosistema
   ========================================================================== */
.ecosystem{
  position: relative;
  margin: 3.5rem auto 0;
  width: min(100%, 62rem);
  aspect-ratio: 1.5 / 1;
  max-height: 42rem;
}
.ecosystem__lines{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.ecosystem__lines line{
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke .3s var(--ease-out), stroke-width .3s var(--ease-out);
}
.ecosystem__lines line.is-active{ stroke: var(--accent); stroke-width: 1.4; }

.ecosystem__hub{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: clamp(7rem, 13vw, 9.5rem);
  height: clamp(7rem, 13vw, 9.5rem);
  border-radius: 50%;
  background: var(--accent);
  color: #06130D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.85rem, 1.2vw, 1.05rem);
  text-align: center;
  line-height: 1.25;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(73,184,124,.25), 0 20px 60px -20px rgba(73,184,124,.55);
}

.ecosystem__nodes{ position: absolute; inset: 0; z-index: 2; }
.eco-node{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  padding: .4rem;
}
.eco-node__dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.eco-node__label{
  font-size: .78rem;
  color: var(--ink-lo);
  white-space: nowrap;
  transition: color .25s var(--ease-out);
}
.eco-node:hover .eco-node__dot, .eco-node:focus-visible .eco-node__dot{ background: var(--accent-bright); transform: scale(1.4); }
.eco-node:hover .eco-node__label, .eco-node:focus-visible .eco-node__label{ color: var(--ink-hi); }

.ecosystem-grid{ display: none; }

/* ==========================================================================
   08 · Metodología
   ========================================================================== */
.methodology{
  padding: 0;
  min-height: auto;
}
.methodology__pin{
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(var(--header-h) + 2.5rem) var(--edge) 2.5rem;
  background: var(--bg-alt);
}
.methodology__hint{
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: .85rem;
}
.methodology__stages{
  padding: 0 var(--edge) 5rem;
}
.stage{
  max-width: 74rem;
  margin: 0 auto;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 5rem 14rem 1fr;
  gap: 2rem;
  align-items: baseline;
}
.stage:last-child{ border-bottom: 1px solid var(--line); }
.stage__num{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink-faint);
  transition: color .3s var(--ease-out);
}
.stage.is-active .stage__num{ color: var(--accent); }
.stage__title{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
}
.stage__text{ color: var(--ink-lo); max-width: 42ch; line-height: 1.6; }

/* ==========================================================================
   09 · Capacidades
   ========================================================================== */
.capabilities{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.capabilities__cloud{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}
.capability{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--ink-lo);
  padding: .5rem .2rem;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.capability:hover, .capability:focus-visible, .capability.is-active{
  color: var(--accent-bright);
  border-color: var(--accent);
}
.capability.is-related{ color: var(--ink-hi); }
.capabilities__detail{
  min-height: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-hi);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.6;
}
.capabilities__detail-hint{ color: var(--ink-faint); font-size: .9rem; }
.capabilities__detail-title{ font-family: var(--font-display); font-weight: 600; color: var(--accent-bright); margin-bottom: .4rem; display: block; }

/* ==========================================================================
   10 · Clientes — carousel
   ========================================================================== */
.clients-carousel{
  position: relative;
  margin-top: 3.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.clients-carousel__track{
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(2.5rem, 5vw, 5rem);
  animation: clients-scroll 46s linear infinite;
}
.clients-carousel.is-paused .clients-carousel__track,
.clients-carousel__track:hover{ animation-play-state: paused; }
.clients-carousel__track.is-static{
  animation: none;
  flex-wrap: wrap;
  width: 100%;
  row-gap: 1.1rem;
}
@keyframes clients-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.client-name{
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-lo);
  opacity: .8;
  white-space: nowrap;
  transition: color .25s var(--ease-out), opacity .25s var(--ease-out);
}
.client-name:hover{ color: var(--accent-bright); opacity: 1; }
.client-name__logo{
  display: block;
  max-height: 2.25rem;
  width: auto;
  filter: grayscale(1) brightness(1.6) contrast(.9);
  opacity: .8;
  transition: filter .3s var(--ease-out), opacity .3s var(--ease-out);
}
.client-name:hover .client-name__logo{ filter: none; opacity: 1; }

.clients-carousel__edge{
  position: absolute; top: 0; bottom: 0;
  width: clamp(2rem, 8vw, 7rem);
  z-index: 2;
  pointer-events: none;
}
.clients-carousel__edge--left{ left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.clients-carousel__edge--right{ right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }

.clients-carousel__pause{
  position: absolute;
  right: var(--edge);
  bottom: -2.6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-faint);
  font-size: .78rem;
  letter-spacing: .04em;
}
.clients-carousel__pause:hover{ color: var(--ink-hi); }
.clients-carousel__pause-icon{
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.clients-carousel__pause-icon::before,
.clients-carousel__pause-icon::after{
  content: "";
  position: absolute;
  top: 3px; bottom: 3px;
  width: 1.5px;
  background: currentColor;
}
.clients-carousel__pause-icon::before{ left: 4px; }
.clients-carousel__pause-icon::after{ right: 4px; }
.clients-carousel__pause[aria-pressed="true"] .clients-carousel__pause-icon::before,
.clients-carousel__pause[aria-pressed="true"] .clients-carousel__pause-icon::after{
  top: 50%; bottom: auto; left: 3px; right: auto;
  width: 7px; height: 1.5px; margin-top: -.75px;
  transform: none;
}
.clients-carousel__pause[aria-pressed="true"] .clients-carousel__pause-icon::after{ left: auto; right: 3px; }

/* ==========================================================================
   11 · Contacto
   ========================================================================== */
.contact__title{
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  max-width: 22ch;
}
.contact__title-accent{ color: var(--accent); font-style: italic; }

.contact__grid{
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact__links{ display: flex; flex-direction: column; }
.contact__link{
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition: padding-left .25s var(--ease-out);
}
.contact__links .contact__link:last-child{ border-bottom: 1px solid var(--line); }
.contact__link:hover{ padding-left: .6rem; color: var(--accent-bright); }
.contact__link-label{
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__link-value{ font-size: 1.05rem; font-weight: 500; }

.contact-form{ display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form__row{ display: flex; flex-direction: column; gap: .5rem; }
.contact-form__row label{ font-size: .82rem; color: var(--ink-lo); }
.contact-form__row input,
.contact-form__row textarea{
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-hi);
  padding: .85rem 1rem;
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color .2s var(--ease-out);
}
.contact-form__row input:focus,
.contact-form__row textarea:focus{ border-color: var(--accent); }
.contact-form__row.has-error input,
.contact-form__row.has-error textarea{ border-color: #E0664F; }
.contact-form__error{
  font-size: .78rem;
  color: #E0664F;
  min-height: 1em;
}
.contact-form__submit{ align-self: flex-start; margin-top: .5rem; }
.contact-form__status{
  font-size: .88rem;
  color: var(--accent-bright);
  min-height: 1.2em;
}

.site-footer{
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 74rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--ink-faint);
  font-size: .82rem;
}
.site-footer__brand{ display: flex; flex-direction: column; gap: .3rem; }
.site-footer__credit a{
  color: var(--ink-lo);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.site-footer__credit a:hover{ color: var(--accent-bright); border-color: var(--accent-bright); }

/* ==========================================================================
   Responsive — notebook (1024–1440px: viewport is wider than the capped
   content column, so vw-based type scales read oversized here — tighten
   the top of each clamp() instead of just relying on vw)
   ========================================================================== */
@media (max-width: 1440px){
  :root{ --edge: clamp(1.5rem, 3.2vw, 2.75rem); }
  .hero__title{ font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
  .section__title{ font-size: clamp(1.85rem, 3.1vw, 2.6rem); }
  .contact__title{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
  .stat-block__number{ font-size: clamp(3rem, 6.5vw, 4.75rem); }
  .sector__name{ font-size: clamp(1.2rem, 2vw, 1.7rem); }
  .capability{ font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
  .ecosystem{ max-height: 34rem; }
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */
@media (max-width: 1080px){
  .main-nav{ display: none; }
  .side-rail{ display: none; }
  .menu-toggle{ display: flex; }
  .leadership-grid{ grid-template-columns: 1fr; }
  .leadership-grid .portrait{ max-width: 11rem; }
  .contact__grid{ grid-template-columns: 1fr; }
  .stage{ grid-template-columns: 4rem 1fr; }
  .stage__text{ grid-column: 2 / -1; }
}

@media (max-width: 860px){
  .sectors{ flex-direction: column; min-height: auto; }
  .sector{ flex: none !important; }
  .sector__list{ max-height: none; opacity: 1; }
  .sector:not(.is-active) .sector__list{ display: none; }
  .sector.is-active{ background: #142B22; }

  .clients-carousel__track{ animation-duration: 32s; }
  .ecosystem{ display: none; }
  .ecosystem-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 2.5rem;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .ecosystem-grid li{
    background: var(--bg);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
  }
  .ecosystem-grid .eco-node__dot{ position: static; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 560px){
  .site-header__cta{ display: none; }
}

@media (max-width: 640px){
  :root{ --edge: 1.1rem; --header-h: 4.25rem; }
  .section{ padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3.5rem; }
  .hero__content{ padding-bottom: 3.5rem; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .stats-row{ gap: 2.5rem; }
  .quals-row{ flex-direction: column; gap: 1.5rem; }
  .vision-words li{ flex: 1 1 100%; }
  .process-chain{ flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .process-chain__connector{ width: 1px; height: 1.25rem; }
  .clients-carousel{ padding-bottom: 2.5rem; }
  .clients-carousel__pause{ right: 50%; transform: translateX(50%); bottom: -2.2rem; }
  .contact-form__submit{ width: 100%; justify-content: center; }
  .site-footer{ flex-direction: column; gap: .4rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .clients-carousel__track{
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
  }
}
