/* =========================================================
   TOKENS / SISTEMA VISUAL GLOBAL
   ========================================================= */
:root {
  --canvas: #f3f1eb;
  --ink: #111315;
  --graphite: #2a2e31;
  --stone: #747a7e;
  --stone-soft: #e7e5df;
  --line: #d7d9d5;
  --signal: #1f5673;
  --signal-dark: #17435c;
  --signal-soft: #c6dbe8;
  --white: #ffffff;

  --font-display: "Supreme", sans-serif;
  --font-body: "Plein", sans-serif;
  --font-accent: "Sentient", serif;

  --shell: 1320px;
  --gutter: clamp(24px, 4vw, 64px);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--signal);
  color: var(--white);
}

/* =========================================================
   ACCESIBILIDAD / UTILIDADES
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-10);
}

.section--dark {
  background: var(--ink);
  color: var(--canvas);
}

.section--stone {
  background: var(--stone-soft);
}

/* =========================================================
   HEADER / NAVEGACIÓN PRINCIPAL
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    backdrop-filter 280ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.brand__copy small {
  color: var(--stone);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 38px);
  font-size: 14px;
  font-weight: 500;
}

.primary-nav > a:not(.button) {
  position: relative;
}

.primary-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--ink);
  transition: right 260ms var(--ease-out);
}

.primary-nav > a:not(.button):hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 1px;
  margin-block: 7px;
  background: var(--ink);
}

/* =========================================================
   COMPONENTES / BOTONES Y LINKS
   ========================================================= */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-sm);
  background: var(--signal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 260ms var(--ease-out),
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.button--small {
  min-height: 40px;
  padding: 9px 16px;
}

.button--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

.button--full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.text-link span {
  transition: transform 260ms var(--ease-out);
}

.text-link:hover span {
  transform: translateX(5px);
}

.text-link--signal {
  color: var(--signal);
}

.text-link--light {
  color: var(--canvas);
}

/* =========================================================
   SISTEMA / ÍNDICES, TÍTULOS Y ACENTOS
   ========================================================= */
.section-index {
  margin: 0 0 var(--space-6);
  color: var(--stone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-index--dark {
  color: rgba(243, 241, 235, 0.46);
}

.section-heading__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.section-heading__grid .section-title {
  grid-column: 1 / span 8;
}

.section-title {
  margin: 0;
  max-width: 930px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-title > span {
  display: block;
  color: var(--stone);
}

.section-title--dark {
  color: var(--canvas);
}

.section-title--dark > span {
  color: rgba(243, 241, 235, 0.64);
}

.section-title .serif-accent,
.section-title--dark .serif-accent {
  color: inherit;
}

.section-intro {
  grid-column: 10 / -1;
  margin: 0 0 6px;
  color: var(--graphite);
}

.serif-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* =========================================================
   HERO / IDENTIDAD Y PRIMER CTA
   ========================================================= */
.hero {
  min-height: 100svh;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      rgba(31, 86, 115, 0.042) 0%,
      rgba(243, 241, 235, 0) 46%,
      rgba(42, 46, 49, 0.026) 100%
    ),
    var(--canvas);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.hero__content {
  grid-column: 1 / span 7;
  padding-bottom: 0;
  transform: translateY(4%);
}

.hero__title {
  margin: 0;
  max-width: 1000px;
  font-family: var(--font-display);
  font-size: clamp(64px, 7.1vw, 112px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.064em;
}

.hero__title-accent {
  display: block;
  color: var(--signal);
}

/* =========================================================
   HERO / SUBRAYADO ANIMADO EN "EN IA"
   ========================================================= */
.hero__underline {
  position: relative;
  display: inline-block;
}

.hero__underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.035em;
  height: 1px;
  background: rgba(17, 19, 21, 0.82);
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroUnderlineSweep 520ms var(--ease-out) 2s forwards;
}

@keyframes heroUnderlineSweep {
  to {
    transform: scaleX(1);
  }
}

.hero__lead {
  max-width: 650px;
  margin: var(--space-7) 0 0;
  color: var(--graphite);
  font-size: clamp(18px, 1.4vw, 22px);
}

.hero__actions {
  margin-top: var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__media {
  grid-column: 9 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__media-frame {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--graphite);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center top;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--stone);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero__rail {
  min-height: 96px;
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero__rail > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
}

.hero__rail > div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.hero__rail > div:nth-child(2),
.hero__rail > div:nth-child(3) {
  padding-left: var(--space-6);
}

.hero__rail strong {
  min-width: 72px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  transition:
    transform 240ms var(--ease-out),
    color 240ms ease;
}

.hero__rail strong.counter--running {
  color: var(--signal);
  transform: translateY(-2px);
}

.hero__rail strong.counter--settled {
  color: var(--ink);
  transform: translateY(0);
}

.hero__rail span {
  max-width: 110px;
  color: var(--stone);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   IMÁGENES / FALLBACK
   ========================================================= */
.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: end start;
  padding: 24px;
  color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(
      135deg,
      transparent 0 48%,
      rgba(255, 255, 255, 0.08) 48% 49%,
      transparent 49%
    ),
    var(--graphite);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.has-missing-image > img {
  visibility: hidden;
}

.has-missing-image > .image-fallback {
  display: grid;
}

/* EMPRESAS */
.trusted {
  position: relative;
  overflow: hidden;
  padding-block: 88px 104px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    #ebe8e1;
}

.trusted-editorial__heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-bottom: 58px;
}

.trusted-editorial__heading .section-index {
  grid-column: 1 / span 2;
  align-self: start;
  margin-top: 8px;
}

.trusted-editorial__title {
  grid-column: 4 / span 7;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.trusted-editorial__title span {
  color: var(--stone);
}

/* EMPRESAS */
.trusted-editorial__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  max-width: 1280px;
  margin-inline: auto;
  padding-block: 32px 36px;
  border-top: 1px solid rgba(17, 19, 21, 0.2);
  border-bottom: 1px solid rgba(17, 19, 21, 0.2);
}

.trusted-editorial__item {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition:
    color 220ms ease,
    transform 220ms var(--ease-out);
}

.trusted-editorial__item:not(:last-child)::after {
  content: "/";
  margin-inline: clamp(14px, 1.7vw, 28px);
  color: var(--signal);
  font-size: 0.55em;
  font-weight: 400;
  opacity: 0.68;
}

/* =========================================================
   SERVICIOS / LISTA EDITORIAL
   ========================================================= */
.service-list {
  margin-top: var(--space-9);
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns:
    64px
    minmax(150px, 180px)
    minmax(0, 1fr)
    minmax(290px, 0.82fr);
  grid-template-areas:
    "number media eyebrow features"
    ". media title features"
    ". media description features";
  column-gap: 28px;
  row-gap: 14px;
  align-items: start;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}

.service-row__number {
  grid-area: number;
  align-self: center;
  color: var(--signal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.service-row__eyebrow {
  grid-area: eyebrow;
  align-self: center;
  margin: 0;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-row__media {
  grid-area: media;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__title {
  grid-area: title;
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.service-row__description {
  grid-area: description;
  align-self: start;
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--graphite);
}

.service-row__features {
  grid-area: features;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row__features li {
  position: relative;
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  font-size: 14px;
}

.service-row__features li:first-child {
  border-top: 1px solid var(--line);
}

.service-row__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.inline-cta {
  margin-top: var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}

.inline-cta p {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
}

/* =========================================================
   ECOSISTEMAS / SECCIÓN DISTINTIVA
   ========================================================= */
.ecosystems {
  padding-block: var(--space-11);
}

.ecosystems__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.ecosystems__intro {
  grid-column: 1 / span 5;
  position: sticky;
  top: 130px;
  align-self: start;
}

.ecosystems__list {
  grid-column: 7 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ecosystem-block {
  padding-block: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ecosystem-block__meta {
  margin-bottom: var(--space-7);
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  color: rgba(243, 241, 235, 0.4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.ecosystem-block h3 {
  margin: 0;
  color: var(--canvas);
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.ecosystem-block__tagline {
  margin: 12px 0 var(--space-5);
  color: var(--signal-soft);
  font-family: var(--font-accent);
  font-size: 23px;
  font-style: italic;
}

.ecosystem-block > p:not(.ecosystem-block__tagline) {
  max-width: 650px;
  color: rgba(243, 241, 235, 0.62);
}

.ecosystem-block ul {
  margin: var(--space-6) 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
}

.ecosystem-block li {
  padding: 12px 14px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(243, 241, 235, 0.72);
  font-size: 13px;
}

/* =========================================================
   PROGRAMAS / CAPACITACIÓN
   ========================================================= */
.programs__grid {
  margin-top: var(--space-9);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-7);
}

.program-panel {
  padding: var(--space-7);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
}

.program-panel--process {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.program-panel__label {
  margin: 0 0 var(--space-7);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.program-panel__description {
  margin: 0 0 var(--space-6);
  color: var(--stone);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
}

.process-list p {
  margin: 0;
}

.program-list > div {
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.program-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.program-list strong {
  display: block;
  font-size: 16px;
}

.program-list p {
  margin: 8px 0 0;
  color: var(--stone);
  font-size: 14px;
}

.other-programs {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.other-programs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-7);
}

.other-programs__grid span {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.other-programs__grid span:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.other-programs__grid span:nth-child(even) {
  padding-left: 18px;
}

/* =========================================================
   GALERÍA / EVIDENCIA
   ========================================================= */
.gallery-viewer {
  margin-top: var(--space-9);
}

.gallery-viewer__stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--graphite);
}

.gallery-viewer__stage > img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.gallery-viewer__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 19, 21, 0.8) 0%,
    rgba(17, 19, 21, 0.05) 55%,
    transparent 75%
  );
  pointer-events: none;
}

.image-fallback--gallery {
  z-index: 1;
}

.gallery-viewer__overlay {
  position: absolute;
  z-index: 3;
  left: var(--space-7);
  right: var(--space-7);
  bottom: var(--space-7);
  color: var(--white);
}

.gallery-viewer__overlay span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--signal-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-viewer__overlay h3 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gallery-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(17, 19, 21, 0.52);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-control--prev {
  left: 20px;
}

.gallery-control--next {
  right: 20px;
}

.gallery-viewer__counter {
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  color: var(--stone);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-stats__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: center;
  min-height: 132px;
  padding-block: var(--space-6);
}

.gallery-stats__item:not(:first-child) {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--line);
}

.gallery-stats__item:not(:last-child) {
  padding-right: clamp(24px, 3vw, 48px);
}

.gallery-stats__item strong {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.gallery-stats__item span {
  max-width: 170px;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* =========================================================
   TRAYECTORIA / FORMACIÓN
   ========================================================= */
.trajectory__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.trajectory__heading {
  grid-column: 1 / span 5;
}

.trajectory__content {
  grid-column: 7 / -1;
}

.credential-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.credential-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.credential-list span {
  color: var(--signal);
  font-size: 10px;
  font-weight: 600;
}

.trajectory__statement {
  margin: var(--space-8) 0 0;
  max-width: 720px;
  font-family: var(--font-accent);
  font-size: clamp(25px, 2.2vw, 34px);
  font-style: italic;
  line-height: 1.25;
}

/* =========================================================
   TESTIMONIOS / VALIDACIÓN
   ========================================================= */
.testimonial-grid {
  margin-top: var(--space-9);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial {
  margin: 0;
  padding: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial p {
  margin: 0;
  color: rgba(243, 241, 235, 0.8);
  font-size: 17px;
  line-height: 1.65;
}

.testimonial footer {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.testimonial footer strong {
  color: var(--canvas);
  font-size: 13px;
}

.testimonial footer span {
  color: rgba(243, 241, 235, 0.4);
  font-size: 11px;
}

/* =========================================================
   TESTIMONIOS / VARIANTE CLARA DE AUTORIDAD
   ========================================================= */
.testimonials.section--dark {
  background: var(--stone-soft);
  color: var(--ink);
}

.testimonials .section-index--dark {
  color: var(--stone);
}

.testimonials .section-title--dark {
  color: var(--ink);
}

.testimonials .section-title--dark > span {
  color: var(--stone);
}

.testimonials .testimonial-grid {
  border-top-color: rgba(17, 19, 21, 0.16);
}

.testimonials .testimonial {
  border-bottom-color: rgba(17, 19, 21, 0.16);
}

.testimonials .testimonial:not(:last-child) {
  border-right-color: rgba(17, 19, 21, 0.16);
}

.testimonials .testimonial p {
  color: var(--graphite);
}

.testimonials .testimonial footer strong {
  color: var(--ink);
}

.testimonials .testimonial footer span {
  color: var(--stone);
}

/* =========================================================
   BLOG / PUENTE EDITORIAL
   ========================================================= */
.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.blog-preview {
  background: #ece8e2;
  border-top: 1px solid var(--line);
}

.blog-preview__grid > div:first-child {
  grid-column: 1 / span 7;
}

.blog-preview__placeholder {
  grid-column: 9 / -1;
  align-self: end;
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.blog-preview__placeholder p {
  margin: 0 0 var(--space-6);
  color: var(--stone);
}

/* =========================================================
   DIAGNÓSTICO / CONVERSIÓN PRINCIPAL
   ========================================================= */
.diagnostic {
  padding-block: var(--space-11);
}

.diagnostic__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.diagnostic__content {
  grid-column: 1 / span 6;
  padding-right: var(--space-8);
}

.diagnostic__lead {
  max-width: 650px;
  margin: var(--space-7) 0 0;
  color: rgba(243, 241, 235, 0.65);
  font-size: 18px;
}

.diagnostic__benefits {
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

.diagnostic__benefits li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(243, 241, 235, 0.78);
}

.diagnostic__benefits li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.diagnostic__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.contact-form {
  grid-column: 8 / -1;
  padding: var(--space-7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.contact-form__heading {
  margin-bottom: var(--space-6);
}

.contact-form__heading h3 {
  margin: 0;
  color: var(--canvas);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.contact-form__heading p {
  margin: 6px 0 0;
  color: rgba(243, 241, 235, 0.45);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-4);
}

.contact-form label > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(243, 241, 235, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(0, 0, 0, 0.16);
  color: var(--canvas);
  padding: 13px 14px;
  transition: border-color 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--signal);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form select option {
  background: var(--ink);
}

.contact-form__privacy {
  margin: 12px 0 0;
  color: rgba(243, 241, 235, 0.35);
  text-align: center;
  font-size: 10px;
}

.contact-form__status {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-form__status.is-visible {
  display: block;
}

.contact-form__status.is-success {
  color: #1f5f3b;
  background: #edf7f1;
}

.contact-form__status.is-error {
  color: #8a2d27;
  background: #fbefed;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
   FOOTER / NAVEGACIÓN SECUNDARIA
   ========================================================= */
.site-footer {
  padding-top: var(--space-9);
  background: #0b0c0d;
  color: var(--canvas);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-9);
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.brand__mark--light {
  border-color: rgba(243, 241, 235, 0.4);
  color: var(--canvas);
}

.site-footer__brand strong {
  font-size: 14px;
}

.site-footer__brand p {
  max-width: 340px;
  margin: 10px 0 0;
  color: rgba(243, 241, 235, 0.42);
  font-size: 12px;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}

.site-footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links strong {
  margin-bottom: 8px;
  color: rgba(243, 241, 235, 0.45);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer__links a {
  color: rgba(243, 241, 235, 0.7);
  font-size: 12px;
}

.site-footer__bottom {
  margin-top: var(--space-8);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  color: rgba(243, 241, 235, 0.35);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   MICROINTERACCIONES / EFECTOS SUTILES
   ========================================================= */
.ecosystem-block {
  transition:
    transform 320ms var(--ease-out),
    border-color 320ms ease;
}

.testimonial {
  transition:
    background-color 320ms ease,
    transform 320ms var(--ease-out);
}

/* =========================================================
   ANIMACIÓN / REVEAL PROGRESIVO
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MEDIA QUERY / <= 1180PX
   ========================================================= */
@media (max-width: 1180px) {
  .hero__content {
    grid-column: 1 / span 7;
  }

  .hero__media {
    grid-column: 8 / -1;
  }

  .hero__media-frame,
  .hero__image {
    min-height: 500px;
  }

  .section-heading__grid .section-title {
    grid-column: 1 / span 8;
  }

  .section-intro {
    grid-column: 9 / -1;
  }

  .service-row {
    grid-template-columns:
      52px
      minmax(140px, 160px)
      minmax(0, 1fr)
      minmax(250px, 0.78fr);
    column-gap: 22px;
  }

  .ecosystems__intro {
    grid-column: 1 / span 5;
  }

  .ecosystems__list {
    grid-column: 6 / -1;
  }

  .diagnostic__content {
    grid-column: 1 / span 6;
    padding-right: var(--space-6);
  }

  .contact-form {
    grid-column: 7 / -1;
  }
}

/* =========================================================
   MEDIA QUERY / <= 980PX
   ========================================================= */
@media (max-width: 980px) {
  :root {
    --gutter: 28px;
  }

  .section {
    padding-block: var(--space-9);
  }

  .site-header__inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 90px var(--gutter);
    background: var(--canvas);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 280ms ease,
      visibility 280ms ease,
      transform 280ms var(--ease-out);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav .button {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 15px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-7);
  }

  .hero__content {
    grid-column: 1 / -1;
    transform: none;
  }

  .hero__media {
    grid-column: 3 / -1;
  }

  .section-heading__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .trusted__header {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .trusted__header .section-index,
  .trusted__title {
    grid-column: 1 / -1;
  }

  .trusted-editorial__heading {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: 24px;
  }

  .trusted-editorial__heading .section-index {
    grid-column: 1 / -1;
  }

  .trusted-editorial__title {
    grid-column: 1 / span 7;
    max-width: 680px;
  }

  .trusted-editorial__list {
    max-width: none;
    margin-inline: 0;
  }

  .trusted__header .section-index {
    margin-bottom: var(--space-5);
  }

  .trusted__inner {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-7);
  }

  .trusted__header,
  .trusted__names {
    grid-column: 1 / -1;
  }

  .trusted__title {
    max-width: 650px;
  }

  .trusted__names {
    margin-top: var(--space-4);
  }

  .section-heading__grid .section-title,
  .section-intro {
    grid-column: 1 / -1;
  }

  .section-intro {
    max-width: 620px;
    margin-top: var(--space-6);
  }

  .service-row {
    grid-template-columns: 46px minmax(140px, 160px) minmax(0, 1fr);
    grid-template-areas:
      "number media eyebrow"
      ". media title"
      ". media description"
      ". media features";
    column-gap: 22px;
    row-gap: 14px;
  }

  .service-row__features {
    margin-top: 12px;
  }

  .ecosystems {
    padding-block: var(--space-10);
  }

  .ecosystems__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-9);
  }

  .ecosystems__intro,
  .ecosystems__list {
    grid-column: 1 / -1;
  }

  .ecosystems__intro {
    position: static;
  }

  .programs__grid {
    grid-template-columns: 1fr;
  }

  .gallery-viewer__stage,
  .gallery-viewer__stage > img {
    min-height: 540px;
    height: 540px;
  }

  .trajectory__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .trajectory__heading,
  .trajectory__content {
    grid-column: 1 / -1;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial:not(:last-child) {
    border-right: 0;
  }

  .blog-preview__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .blog-preview__grid > div:first-child,
  .blog-preview__placeholder {
    grid-column: 1 / -1;
  }

  .blog-preview__placeholder {
    max-width: 650px;
  }

  .diagnostic {
    padding-block: var(--space-10);
  }

  .diagnostic__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: var(--space-9);
  }

  .diagnostic__content,
  .contact-form {
    grid-column: 1 / -1;
  }

  .diagnostic__content {
    padding-right: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MEDIA QUERY / <= 760PX
   ========================================================= */
@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "eyebrow"
      "media"
      "title"
      "description"
      "features";
    gap: 0;
    padding-block: 48px;
  }

  .service-row__number {
    margin-bottom: 28px;
  }

  .service-row__eyebrow {
    margin-bottom: 16px;
  }

  .service-row__media {
    width: 100%;
    max-width: none;
    margin-bottom: 28px;
    aspect-ratio: 16 / 9;
  }

  .service-row__title {
    margin-bottom: 22px;
  }

  .service-row__description {
    margin: 0 0 28px;
  }

  .service-row__features {
    width: 100%;
    margin-top: 0;
  }

  .trusted__line--offset {
    padding-left: 0;
  }

  .hero__rail {
    grid-template-columns: 1fr;
  }

  .hero__rail > div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__rail > div:nth-child(2),
  .hero__rail > div:nth-child(3) {
    padding-left: 0;
  }

  .trusted-editorial__heading {
    display: block;
    margin-bottom: 40px;
  }

  .trusted-editorial__heading .section-index {
    margin: 0 0 24px;
  }

  .trusted-editorial__title {
    max-width: 600px;
  }

  .trusted-editorial__item {
    white-space: normal;
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .other-programs__grid {
    grid-template-columns: 1fr;
  }

  .other-programs__grid span:nth-child(odd) {
    border-right: 0;
  }

  .other-programs__grid span:nth-child(even) {
    padding-left: 0;
  }

  .ecosystem-block ul {
    grid-template-columns: 1fr;
  }

  .gallery-viewer__overlay {
    left: var(--space-5);
    right: var(--space-5);
    bottom: var(--space-5);
  }

  .gallery-stats {
    grid-template-columns: 1fr;
  }

  .gallery-stats__item {
    grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
    min-height: 0;
    padding: 26px 0;
  }

  .gallery-stats__item:not(:first-child) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-stats__item:not(:last-child) {
    padding-right: 0;
  }

  .gallery-stats__item span {
    max-width: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer__links {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MEDIA QUERY / <= 560PX
   ========================================================= */
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding-block: 76px;
  }

  .trusted {
    padding-block: 64px 72px;
  }

  .trusted {
    padding-block: 64px 72px;
  }

  .trusted-editorial__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .trusted-editorial__list {
    display: grid;
    gap: 14px;
    padding-block: 26px;
  }

  .trusted-editorial__item {
    display: block;
    font-size: 22px;
    line-height: 1.25;
  }

  .trusted-editorial__item:not(:last-child)::after {
    display: none;
  }

  .trusted__line {
    padding-block: 18px;
    gap: 8px 12px;
    font-size: clamp(19px, 5.8vw, 24px);
  }

  .trusted__sep {
    font-size: 0.65em;
  }

  .brand__copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero__title {
    font-size: clamp(48px, 14vw, 62px);
    line-height: 0.88;
  }

  .hero__lead {
    margin-top: var(--space-6);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__media {
    grid-column: 1 / -1;
  }

  .hero__media-frame,
  .hero__image {
    min-height: 460px;
  }

  .hero__meta {
    flex-wrap: wrap;
  }

  .section-title {
    font-size: clamp(40px, 11.5vw, 54px);
  }

  .service-row__title {
    font-size: clamp(32px, 9.5vw, 44px);
  }

  .ecosystems {
    padding-block: 88px;
  }

  .ecosystem-block h3 {
    font-size: 44px;
  }

  .program-panel {
    padding: var(--space-6);
  }

  .gallery-viewer__stage,
  .gallery-viewer__stage > img {
    min-height: 460px;
    height: 460px;
  }

  .gallery-control {
    top: auto;
    bottom: 18px;
  }

  .gallery-control--prev {
    left: auto;
    right: 76px;
  }

  .gallery-control--next {
    right: 20px;
  }

  .gallery-viewer__overlay {
    bottom: 92px;
  }

  .gallery-stats__item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }

  .gallery-stats__item strong {
    font-size: 42px;
  }

  .gallery-stats__item span {
    font-size: 10px;
  }

  .trajectory__statement {
    font-size: 25px;
  }

  .testimonial {
    padding-inline: 0;
  }

  .diagnostic {
    padding-block: 88px;
  }

  .contact-form {
    padding: var(--space-6);
  }

  .site-footer__links {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================================================
   MEDIA QUERY / HOVER REAL
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .trusted__name:hover {
    color: var(--signal);
    transform: translateY(-2px);
  }

  .ecosystem-block:hover {
    transform: translateX(6px);
    border-bottom-color: rgba(31, 86, 115, 0.5);
  }

  .testimonial:hover {
    background: rgba(255, 255, 255, 0.34);
    transform: translateY(-3px);
  }

  .trusted-editorial__item:hover {
    color: var(--signal);
    transform: translateY(-2px);
  }
}

/* =========================================================
   MEDIA QUERY / PREFERENCIA DE MOVIMIENTO REDUCIDO
   ========================================================= */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__underline::after {
    animation: none;
    transform: scaleX(1);
  }

  .hero__rail strong {
    transform: none !important;
  }
}


/* =========================================================
   =========================================================
   CAPA DE REFINAMIENTO / indexV2
   Sistema de acabado: papel, luz, filo, ritmo y movimiento.
   No altera contenido, imagenes ni paleta.
   =========================================================
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS / AFINADO DE LINEA, LUZ Y SOMBRA
   --------------------------------------------------------- */
:root {
  --line: rgba(17, 19, 21, 0.115);
  --line-strong: rgba(17, 19, 21, 0.2);
  --line-light: rgba(255, 255, 255, 0.12);

  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --edge-dark: inset 0 -1px 0 rgba(17, 19, 21, 0.05);
  --contact: 0 1px 1px rgba(17, 19, 21, 0.035), 0 22px 48px -34px rgba(17, 19, 21, 0.42);
  --contact-deep: 0 2px 2px rgba(17, 19, 21, 0.05), 0 38px 70px -40px rgba(17, 19, 21, 0.5);
  --contact-ink: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 80px -46px rgba(0, 0, 0, 0.9);

  --ease-soft: cubic-bezier(0.22, 0.61, 0.28, 1);
  --rhythm: clamp(92px, 9.5vw, 152px);
}

/* ---------------------------------------------------------
   2. PAPEL / GRANO CALIBRADO SOBRE TODO EL DOCUMENTO
   --------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   3. LUZ / FUENTE UNICA ARRIBA-IZQUIERDA
   --------------------------------------------------------- */
.hero,
.trusted,
.section,
.blog-preview {
  position: relative;
  isolation: isolate;
}

.hero::before,
.trusted::before,
.section::before,
.blog-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    118% 92% at 10% -12%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.36) 32%,
    rgba(255, 255, 255, 0) 62%
  );
}

.section--dark::before {
  background: radial-gradient(
    110% 85% at 8% -14%,
    rgba(255, 255, 255, 0.075) 0%,
    rgba(255, 255, 255, 0.018) 38%,
    rgba(255, 255, 255, 0) 66%
  );
}

/* ---------------------------------------------------------
   4. RITMO VERTICAL / RESPIRACION ENTRE SECCIONES
   --------------------------------------------------------- */
.section {
  padding-block: var(--rhythm);
}

.ecosystems,
.diagnostic {
  padding-block: calc(var(--rhythm) * 1.14);
}

.service-list,
.programs__grid,
.gallery-viewer,
.testimonial-grid {
  margin-top: clamp(56px, 6vw, 88px);
}

.section-heading + * {
  margin-top: clamp(56px, 6vw, 88px);
}

/* Hairline de separacion que se desvanece en los extremos */
.services::after,
.programs::after,
.gallery::after,
.testimonials::after,
.trajectory::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(17, 19, 21, 0) 0%,
    rgba(17, 19, 21, 0.16) 18%,
    rgba(17, 19, 21, 0.16) 82%,
    rgba(17, 19, 21, 0) 100%
  );
}

/* ---------------------------------------------------------
   5. INDICES DE SECCION / MARCA EDITORIAL
   --------------------------------------------------------- */
.section-index {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0.16em;
}

.section-index::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title,
.hero__title,
.trusted-editorial__title,
.service-row__title,
.ecosystem-block h3 {
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1;
}

.section-intro,
.hero__lead,
.service-row__description,
.program-panel__description {
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   6. HEADER / PRESENCIA Y MATERIA
   --------------------------------------------------------- */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 92px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(243, 241, 235, 0.72) 0%,
    rgba(243, 241, 235, 0) 100%
  );
  transition: opacity 320ms ease;
}

.site-header:not(.is-scrolled)::after {
  opacity: 1;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -34px rgba(17, 19, 21, 0.6);
}

.brand__mark {
  border-color: rgba(17, 19, 21, 0.55);
  box-shadow: var(--edge-light), 0 1px 2px rgba(17, 19, 21, 0.07);
  transition: border-color 260ms ease, color 260ms ease,
    transform 320ms var(--ease-out);
}

.brand:hover .brand__mark {
  border-color: var(--signal);
  color: var(--signal);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   7. BOTONES Y LINKS / PROFUNDIDAD CONTROLADA
   --------------------------------------------------------- */
.button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 1px 1px rgba(17, 19, 21, 0.06),
    0 14px 26px -16px rgba(23, 67, 92, 0.85);
  transition: transform 320ms var(--ease-out), background-color 260ms ease,
    border-color 260ms ease, box-shadow 320ms var(--ease-out);
}

.button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 34px -16px rgba(23, 67, 92, 0.9);
}

.button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(17, 19, 21, 0.28);
}

.button--outline {
  box-shadow: var(--edge-light), 0 1px 1px rgba(17, 19, 21, 0.05);
}

.button--outline:hover {
  box-shadow: 0 16px 30px -18px rgba(17, 19, 21, 0.85);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------
   8. HERO / COMPOSICION, MATERIA Y RIEL
   --------------------------------------------------------- */
.hero {
  border-bottom: 0;
  background:
    linear-gradient(
      180deg,
      rgba(243, 241, 235, 0) 72%,
      rgba(42, 46, 49, 0.05) 100%
    ),
    linear-gradient(
      135deg,
      rgba(31, 86, 115, 0.05) 0%,
      rgba(243, 241, 235, 0) 46%,
      rgba(42, 46, 49, 0.03) 100%
    ),
    var(--canvas);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(17, 19, 21, 0) 0%,
    rgba(17, 19, 21, 0.2) 22%,
    rgba(17, 19, 21, 0.2) 78%,
    rgba(17, 19, 21, 0) 100%
  );
}

.hero__title {
  letter-spacing: -0.058em;
}

.hero__underline::after {
  height: 2px;
  bottom: -0.02em;
  background: linear-gradient(
    90deg,
    rgba(31, 86, 115, 0.9),
    rgba(17, 19, 21, 0.85)
  );
}

.hero__lead {
  max-width: 600px;
  color: var(--graphite);
  line-height: 1.5;
}

.hero__media-frame {
  border-radius: 2px;
  background: var(--graphite);
  box-shadow: 0 0 0 1px rgba(17, 19, 21, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--contact-deep);
}

.hero__media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -90px 120px -80px rgba(17, 19, 21, 0.55);
}

.hero__meta {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--stone);
  letter-spacing: 0.14em;
}

.hero__rail {
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.hero__rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(1px);
}

.hero__rail > div:not(:last-child) {
  border-right-color: var(--line);
}

.hero__rail strong {
  min-width: 88px;
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.05em;
}

.hero__rail span {
  max-width: 128px;
  color: var(--stone);
  letter-spacing: 0.09em;
}

/* ---------------------------------------------------------
   9. EMPRESAS / SUPERFICIE Y CONTRASTE
   --------------------------------------------------------- */
.trusted {
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    #eceae3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(17, 19, 21, 0.07);
}

.trusted-editorial__list {
  border-top-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
}

.trusted-editorial__item {
  transition: color 240ms ease, transform 340ms var(--ease-out);
}

/* ---------------------------------------------------------
   10. SERVICIOS / FILA EDITORIAL CON MATERIA
   --------------------------------------------------------- */
.service-list {
  border-top-color: var(--line-strong);
}

.service-row {
  transition: background-color 420ms var(--ease-soft);
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(31, 86, 115, 0.05),
    rgba(31, 86, 115, 0) 62%
  );
  transition: opacity 420ms var(--ease-soft);
}

.service-row__number {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: transform 420ms var(--ease-out);
}

.service-row__media {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 19, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--contact);
}

.service-row__media img {
  transition: transform 900ms var(--ease-soft);
}

.service-row__features li {
  border-bottom-color: var(--line);
  transition: color 260ms ease;
}

.service-row__features li:first-child {
  border-top-color: var(--line);
}

.inline-cta {
  border-color: var(--line-strong);
}

/* ---------------------------------------------------------
   11. ECOSISTEMAS / SUPERFICIE OSCURA
   --------------------------------------------------------- */
.ecosystems.section--dark {
  background:
    radial-gradient(
      130% 100% at 6% -8%,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0) 58%
    ),
    var(--ink);
}

.ecosystems__list,
.ecosystem-block {
  border-color: rgba(255, 255, 255, 0.13);
}

.ecosystem-block {
  padding-inline: clamp(0px, 1.4vw, 26px);
  border-radius: 2px;
  transition: transform 420ms var(--ease-out), background-color 420ms ease,
    border-color 420ms ease, box-shadow 420ms var(--ease-out);
}

.ecosystem-block__tagline {
  color: #b6d2e2;
}

.ecosystem-block li {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------
   12. PROGRAMAS / PANELES CON DOBLE FILO
   --------------------------------------------------------- */
.program-panel {
  border-color: var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.24)
  );
  box-shadow: var(--edge-light), var(--edge-dark), var(--contact);
}

.program-panel__label {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.04em;
}

.process-list li,
.program-list > div,
.other-programs__grid span {
  border-color: var(--line);
}

.process-list span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.other-programs {
  border-top-color: var(--line-strong);
}

/* ---------------------------------------------------------
   13. GALERIA / ESCENARIO Y METRICAS
   --------------------------------------------------------- */
.gallery.section--stone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    var(--stone-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.gallery-viewer__stage {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 19, 21, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--contact-deep);
}

.gallery-control {
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px -18px rgba(0, 0, 0, 0.9);
  transition: background-color 280ms ease, border-color 280ms ease,
    transform 320ms var(--ease-out);
}

.gallery-stats {
  border-color: var(--line-strong);
}

.gallery-stats__item:not(:first-child) {
  border-left-color: var(--line);
}

.gallery-stats__item strong {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   14. TESTIMONIOS / VUELVEN AL PAPEL
   --------------------------------------------------------- */
.testimonials.section--dark {
  background: var(--canvas);
}

.testimonials .testimonial-grid {
  border-top-color: var(--line-strong);
}

.testimonials .testimonial {
  border-color: var(--line);
  border-radius: 2px;
  transition: background-color 380ms ease, transform 380ms var(--ease-out),
    box-shadow 380ms var(--ease-out);
}

.testimonials .testimonial p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.testimonials .testimonial footer strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonials .testimonial footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   15. TRAYECTORIA / AUTORIDAD TEMPRANA
   --------------------------------------------------------- */
.credential-list {
  border-top-color: var(--line-strong);
}

.credential-list li {
  border-bottom-color: var(--line);
  transition: background-color 300ms ease, padding-left 300ms var(--ease-out);
}

.credential-list span {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trajectory__statement {
  position: relative;
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
  color: var(--graphite);
}

/* ---------------------------------------------------------
   16. BLOG / PUENTE
   --------------------------------------------------------- */
.blog-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    #eceae4;
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(17, 19, 21, 0.06);
}

.blog-preview__placeholder {
  border-top-color: var(--line-strong);
}

/* ---------------------------------------------------------
   17. DIAGNOSTICO / CONVERSION
   --------------------------------------------------------- */
.diagnostic.section--dark {
  background:
    radial-gradient(
      120% 95% at 8% -10%,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    var(--ink);
}

.diagnostic__benefits li {
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-form {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: var(--contact-ink);
}

.contact-form__heading {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
  transition: border-color 220ms ease, background-color 220ms ease,
    box-shadow 220ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(243, 241, 235, 0.28);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(31, 86, 115, 0.18);
}

.contact-form :where(input, select, textarea):focus-visible {
  outline: 0;
}

/* ---------------------------------------------------------
   18. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(
      100% 90% at 6% 0%,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0) 58%
    ),
    #0b0c0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-footer__links a {
  transition: color 220ms ease, transform 320ms var(--ease-out);
}

.site-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------
   19. MOVIMIENTO / ENTRADA ESCALONADA
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 820ms var(--ease-soft) var(--reveal-delay, 0ms),
    transform 820ms var(--ease-soft) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.service-list > .service-row:nth-of-type(2),
.testimonial-grid > *:nth-child(2),
.ecosystems__list > *:nth-child(2),
.programs__grid > *:nth-child(2) {
  --reveal-delay: 110ms;
}

.service-list > .service-row:nth-of-type(3),
.testimonial-grid > *:nth-child(3) {
  --reveal-delay: 210ms;
}

/* ---------------------------------------------------------
   20. HOVER REAL / MICROINTERACCIONES
   --------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .service-row:hover::before {
    opacity: 1;
  }

  .service-row:hover .service-row__number {
    transform: translateX(4px);
  }

  .service-row:hover .service-row__media img {
    transform: scale(1.035);
  }

  .service-row:hover .service-row__features li {
    color: var(--graphite);
  }

  .ecosystem-block:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.028);
    border-bottom-color: rgba(31, 86, 115, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .testimonials .testimonial:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: var(--edge-light), var(--contact);
  }

  .credential-list li:hover {
    padding-left: 8px;
    background: rgba(31, 86, 115, 0.035);
  }

  .gallery-control:hover {
    background: rgba(31, 86, 115, 0.9);
    border-color: rgba(31, 86, 115, 0.9);
    transform: translateY(-1px);
  }

  .site-footer__links a:hover {
    color: var(--canvas);
    transform: translateX(3px);
  }
}

/* ---------------------------------------------------------
   21. RESPONSIVE / AJUSTES DE LA CAPA
   --------------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    --rhythm: clamp(76px, 10vw, 104px);
  }

  .hero__rail strong {
    font-size: 34px;
  }

  .service-row::before {
    inset: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --rhythm: 78px;
  }

  .testimonials .testimonial p {
    font-size: 19px;
  }

  .section-index::before {
    width: 18px;
  }
}

/* ---------------------------------------------------------
   22. MOVIMIENTO REDUCIDO
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .service-row__media img,
  .ecosystem-block,
  .testimonials .testimonial,
  .credential-list li {
    transform: none !important;
    transition: none !important;
  }
}


/* ---------------------------------------------------------
   23. AJUSTES / RIEL DEL HERO Y LISTA DE EMPRESAS EN MOVIL
   --------------------------------------------------------- */
.hero__rail span {
  max-width: 190px;
  color: var(--graphite);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero__rail span {
    font-size: 15px;
    max-width: 170px;
  }
}

@media (max-width: 560px) {
  .hero__rail span {
    max-width: none;
    font-size: 16px;
  }

  .trusted-editorial__list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 0;
    padding-block: 26px;
  }

  .trusted-editorial__item {
    display: inline-flex;
    font-size: 20px;
    line-height: 1.3;
    white-space: normal;
  }

  .trusted-editorial__item:not(:last-child)::after {
    display: inline;
    margin-inline: 11px;
  }
}


/* ---------------------------------------------------------
   24. TONO SECUNDARIO / GRIS EN FAMILIA DEL ACENTO
   El gris frio neutro se sustituye por un gris azulado de
   croma bajo, emparentado con el petroleo del acento.
   No es el acento: mantiene su rol de jerarquia secundaria.
   --------------------------------------------------------- */
:root {
  --stone: #5c6e78;
  --graphite: #29343a;
}

.section-title > span {
  color: #5a6d78;
}

.section-intro,
.service-row__description,
.hero__lead {
  color: var(--graphite);
}

/* Contenido visible por defecto; la animación se activa solo con JS operativo. */
html [data-reveal] {
  opacity: 1;
  transform: none;
  will-change: auto;
}
html [data-reveal].reveal-ready:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  html [data-reveal].reveal-ready:not(.is-visible) {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
/* Menú móvil: el desenfoque del header no debe contener el panel fijo. */
@media (max-width: 980px) {
  body.is-nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .primary-nav {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* En orientación horizontal o pantallas bajas, todos los enlaces son accesibles. */
@media (max-width: 980px) and (max-height: 600px) {
  .primary-nav {
    justify-content: flex-start;
    padding-block: 78px 28px;
    gap: 18px;
    font-size: 28px;
  }
}
/* Evitar que palabras largas desborden en móviles de 320 px. */
@media (max-width: 360px) {
  .hero__title { font-size: 44px; }
  .diagnostic .section-title { font-size: 36px; }
}