/* ===================================================================
   BORDE DATA — web
   Tokens alineados con el Sistema de Diseño v1.0
   (01. Sistema de diseño/borde-tokens.css): slate institucional,
   azul brillante solo como acento, una sola familia (Outfit).
   Los nombres --teal-* se conservan por compatibilidad con el CSS
   existente; sus valores ya son la rampa slate.
   =================================================================== */

:root {
  /* Rampa slate (antes "teal") */
  --teal-900: #22333F;   /* slate profundo · portadas, superficies oscuras */
  --teal-800: #355872;   /* primario institucional */
  --teal-700: #4E7591;   /* slate 500 · apoyos */
  --teal-500: #7AAACE;   /* secundario */
  --teal-100: #E4F2FF;   /* slate 100 · chips y superficies suaves */

  /* Acento digital: links, foco, CTAs. Uso puntual, nunca de fondo grande */
  --bright: #2563EB;
  --accent-soft: #9CD5FF;

  /* Neutros */
  --paper: #F7F8F0;      /* fondo de página (neutro cálido) */
  --paper-2: #EEF2EA;    /* superficie alterna */
  --cream: #FFFFFF;      /* tarjetas */
  --ink: #22333F;        /* texto principal */
  --ink-2: #3A4C58;
  --ink-3: #5B6B75;      /* texto secundario */
  --ink-4: #8A98A1;
  --line: #E3E7DC;
  --line-2: #C8D2C9;

  /* Tipografía: una sola familia */
  --serif: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

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

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }

/* ---------- utility ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-800);
  font-weight: 600;
}
.eyebrow.muted { color: var(--ink-3); }

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }
.italic { font-style: italic; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: color-mix(in oklab, var(--line) 60%, transparent);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--teal-800);
}
.nav__brand img { width: 28px; height: 28px; object-fit: contain; }
.nav__brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.nav__links {
  display: flex;
  gap: var(--s-5);
  font-size: 14px;
  color: var(--ink-2);
  margin-left: var(--s-7);
}
.nav__links a {
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--teal-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--teal-800); }
.nav__links a[aria-current="page"] { color: var(--bright); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  background: transparent;
  transition: all .2s var(--ease);
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-toggle .active { color: var(--ink); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bright);
  color: #fff;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav__cta:hover { background: var(--teal-900); }
.nav__cta svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .nav__links { gap: var(--s-4); font-size: 13px; margin-left: var(--s-5); }
}

/* hamburger */
.nav__burger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  /* backdrop-filter makes .nav a containing block for its position:fixed
     children, which would trap the full-screen menu inside the ~60px bar.
     Drop the blur on mobile (solid bar instead) so the overlay covers the
     viewport, and keep the bar items above the overlay. */
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__brand, .nav__right { position: relative; z-index: 100; }
  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    z-index: 99;
    padding: 100px var(--gutter) var(--s-7);
    gap: var(--s-5);
    font-size: 28px;
    font-family: var(--serif);
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__burger { display: flex; z-index: 101; }
  .nav__cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(33px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 28px 0 0;
  max-width: 18ch;
}
.hero__title em { font-style: normal; color: inherit; }
.hero__sub {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--teal-900);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--paper-2) 60%, transparent);
}
.btn svg { width: 14px; height: 14px; }

/* hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__visual canvas,
.hero__visual svg.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero__logo {
  position: relative;
  width: 64%;
  filter: drop-shadow(0 18px 40px rgba(53, 88, 114, 0.18));
}
.hero__logo img { width: 100%; }

/* hero footer band */
.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.hero__footer-cell {
  max-width: 28ch;
}
.hero__footer .eyebrow { display: block; margin-bottom: 8px; }
.hero__scroll {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  background: var(--teal-800);
  animation: slide 2.4s var(--ease) infinite;
}
@keyframes slide {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* motivo de marca (nodos y filamentos) — siempre detrás del contenido */
.hero__net { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 55%, transparent 72%); }
.section--net { overflow: hidden; }
.section--net > .wrap { position: relative; z-index: 1; }
.section__net { position: absolute; inset: 0; opacity: .55; pointer-events: none; }

/* ---------- section base ---------- */
.section {
  padding-block: var(--s-9);
  position: relative;
}
.section--tight { padding-block: var(--s-8); }
.section--surface { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--teal-500); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
  align-items: center;   /* antes: end — la 2ª columna queda centrada al lado del título */
}
@media (max-width: 820px) {
  .section__head { grid-template-columns: 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
}
.section__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section__label-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bright);
}
.section--ink .section__label-num { color: var(--accent-soft); }
.section__label-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--line);
}
.section__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.section__title em { font-style: normal; color: inherit; }
.section__lead {
  font-size: 17px;          /* antes: 18px */
  line-height: 1.7;         /* antes: 1.55 — más aire entre líneas */
  color: var(--ink-2);
  max-width: 54ch;
}
.section--ink .section__lead { color: color-mix(in oklab, var(--paper) 70%, transparent); }

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  /* when stacked, drop the table-style internal dividers/padding */
  .service:nth-child(odd) { padding-right: 0; border-right: none; }
  .service:nth-child(even) { padding-left: 0; }
}
.service {
  padding: var(--s-7) var(--s-5) var(--s-7) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  transition: background .25s var(--ease);
}
.service:nth-child(odd) {
  padding-right: var(--s-7);
  border-right: 1px solid var(--line);
}
.service:nth-child(even) {
  padding-left: var(--s-7);
}
.service:hover {
  background: color-mix(in oklab, var(--teal-100) 35%, transparent);
}
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal-800);
  padding-top: 6px;
}
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.service__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 42ch;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  text-transform: uppercase;
  transition: all .2s var(--ease);
}
.service:hover .service__tag {
  border-color: var(--teal-500);
  color: var(--teal-800);
}

/* ---------- focus / especialización ---------- */
.focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .focus { grid-template-columns: 1fr; } }
.focus__item {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.focus__item:last-child { border-right: none; }
@media (max-width: 820px) { .focus__item { border-right: none; } }
.focus__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal-800);
  display: block;
  margin-bottom: var(--s-4);
}
.focus__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  line-height: 1.2;
}
.focus__title em { font-style: normal; color: inherit; }
.focus__desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 var(--s-4);
  max-width: 38ch;
}
.focus__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.focus__bullets li {
  position: relative;
  padding-left: 14px;
}
.focus__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--teal-800);
}

/* ---------- productos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .products { grid-template-columns: 1fr; } }
.product__badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-100); border-radius: 99px; padding: 3px 9px;
}
.product {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--s-6);
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product:hover {
  border-color: var(--teal-700);
  transform: translateY(-2px);
}
.product__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-100);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  font-family: var(--serif);
  font-style: normal;
  font-size: 22px;
  color: var(--teal-800);
}
.product__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.product__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
  line-height: 1.08;
}
.product__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 var(--s-4);
  max-width: 42ch;
}
.product__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
  padding-top: var(--s-4);
}
.product__features li {
  position: relative;
  padding-left: 22px;
}
.product__features li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-700);
  font-family: var(--mono);
  font-size: 14px;
}
.product__cta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-800);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 12px 0;
  margin-bottom: -12px;
}
.product__cta::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.product:hover .product__cta::after { transform: translateX(4px); }

/* ---------- stats / impact ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__num small {
  font-size: 0.5em;
  color: var(--teal-500);
  font-style: normal;
}
.stat__label {
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}

/* ---------- cases ---------- */
.cases {
  display: grid;
  gap: var(--s-6);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding .35s var(--ease);
}
.case:last-child { border-bottom: 1px solid var(--line); }
a.case:hover { padding-left: 16px; padding-right: 0; }
article.case { cursor: default; }
.case__link--static::after { content: none; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }

.case__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.case__year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.case__client {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-800);
}
.case__tags {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: auto;
}
.case__body { }
.case__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.case__title em { font-style: normal; color: inherit; }
.case__desc {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 24px;
}
.case__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-800);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case__link::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.case:hover .case__link::after { transform: translateX(4px); }

/* ---------- team teaser ---------- */
.team-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (max-width: 820px) { .team-teaser { grid-template-columns: repeat(2, 1fr); } }
.member {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--teal-100);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.member__photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
  transition: transform .6s var(--ease);
}
.member__photo::before {
  /* placeholder portrait — striped */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,0.06) 0 1px,
    transparent 1px 14px);
}
.member__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.member__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,26,30,0.92) 0%, rgba(15,26,30,0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-5);
  color: var(--paper);
}
.member__name-static {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--paper);
  line-height: 1.1;
  transition: opacity .25s var(--ease);
  z-index: 2;
}
.member__role-static {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  margin-top: 4px;
}
.member:hover .member__overlay { opacity: 1; }
.member:hover .member__name-static { opacity: 0; }
.member:hover .member__photo { transform: scale(1.04); }
.member__overlay-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.member__overlay-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.member__overlay-bio {
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  margin: 0 0 14px;
}
.member__overlay-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--teal-500);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* ---------- clients / logos ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client:nth-child(4n) { border-right: 1px solid var(--line); }
  .client:nth-child(2n) { border-right: none; }
  .client:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .client:nth-last-child(-n+2) { border-bottom: none; }
  .client__logo { max-width: 130px; max-height: 48px; }
}
.client {
  height: 110px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: normal;
  font-size: 18px;
  color: var(--ink-3);
  transition: all .25s var(--ease);
  position: relative;
}
.client:nth-child(4n) { border-right: none; }
.client:nth-last-child(-n+4) { border-bottom: none; }
.client:hover { color: var(--teal-800); background: var(--cream); }
.client__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.client__placeholder {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.client__logo {
  max-width: 170px;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .3s var(--ease);
}
.client:hover .client__logo {
  filter: grayscale(0) opacity(1);
}
.client__fallback {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.contact__info { min-width: 0; }
.contact__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5);
}
.contact__heading em { font-style: normal; color: inherit; }
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.contact-channel {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-4);
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
}
.contact-channel__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.contact-channel__value {
  color: var(--paper);
  font-size: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .contact-channel { grid-template-columns: 1fr; gap: 4px; }
}

/* form */
.contact-form {
  background: color-mix(in oklab, var(--paper) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  border-radius: 4px;
  padding: var(--s-6);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s-5); }
.field__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.field__input,
.field__textarea,
.field__select {
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 25%, transparent);
  color: var(--paper);
  padding: 10px 0;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .25s var(--ease);
  font-family: var(--sans);
}
.field__select { appearance: none; cursor: pointer; }
.field__input:focus,
.field__textarea:focus,
.field__select:focus { border-bottom-color: var(--teal-500); }
.field__input::placeholder,
.field__textarea::placeholder { color: color-mix(in oklab, var(--paper) 35%, transparent); }
.field__textarea { resize: vertical; min-height: 90px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* field error text */
.field__error {
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
  transition: opacity .2s;
}
.field--invalid .field__input,
.field--invalid .field__textarea { border-bottom-color: #f87171; }
.field--valid .field__input,
.field--valid .field__textarea { border-bottom-color: var(--teal-500); }

/* contact form footer row */
.contact-form__footer {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}
.contact-form__note {
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 45%, transparent);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.btn--submit {
  justify-content: center;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 14px 28px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  min-width: 180px;
}
.btn--submit:hover { background: #fff; }
.btn--submit:disabled { opacity: .65; cursor: not-allowed; }
.btn--submit .btn-label { display: flex; align-items: center; gap: 8px; }
.btn--submit .btn-arrow, .btn--submit .btn-spinner { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

/* success / error banners */
.form-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: var(--s-4);
}
.form-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.form-banner--ok  { background: color-mix(in oklab, #059669 15%, transparent); color: #6ee7b7; border: 1px solid #059669; }
.form-banner--err { background: color-mix(in oklab, #dc2626 12%, transparent); color: #fca5a5; border: 1px solid #dc2626; }

/* ---------- footer ---------- */
.footer {
  background: var(--paper);
  padding-block: var(--s-8) var(--s-5);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 14ch;
}
.footer__brand-line em { font-style: normal; color: var(--teal-800); }
.footer__copy {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 36ch;
}
.footer__col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer__list a:hover { color: var(--teal-800); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.reveal--delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-line::after { animation: none; }
}

/* ---------- phone refinements (≤600px) ---------- */
@media (max-width: 600px) {
  /* tighter vertical rhythm so sections don't feel cavernous on a phone */
  .section { padding-block: var(--s-8); }
  .section--tight { padding-block: var(--s-7); }

  /* hero */
  .hero { padding-top: 96px; }
  .hero__sub { font-size: 16px; margin-top: 24px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }

  /* hero footer band: stack the cells, hide the decorative scroll hint */
  .hero__footer { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .hero__footer-cell { max-width: none; }
  .hero__scroll { display: none; }

  /* card padding trim */
  .product { padding: var(--s-5); }

  /* footer bottom: stack the two lines so they never collide */
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
}

/* ---------- small phones (≤430px) ---------- */
@media (max-width: 430px) {
  .footer__grid { grid-template-columns: 1fr; }
  /* one impact stat per row — the giant numerals get cramped two-up */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid color-mix(in oklab, var(--paper) 16%, transparent); }
  .stat:last-child { border-bottom: none; }
}


/* ---------- menú "Acceso" a plataformas ---------- */
.nav__access { position: relative; }
.nav__access > summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 4px; display: inline-flex; align-items: center; gap: 6px;
}
.nav__access > summary::-webkit-details-marker { display: none; }
.nav__access > summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.nav__access[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav__access > summary:hover { color: var(--teal-800); }
.nav__access-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(27,42,53,.12); padding: 6px; z-index: 120;
  display: flex; flex-direction: column;
}
.nav__access-menu a, .nav__access-soon {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 7px;
}
.nav__access-menu a:hover { background: var(--paper-2); }
.nav__access-menu strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav__access-menu span { font-size: 12px; color: var(--ink-3); }
.nav__access-soon { opacity: .6; cursor: default; }
.nav__mobile-only { display: none; }
@media (max-width: 980px) {
  .nav__access { display: none; }
  .nav__mobile-only { display: block; font-size: 18px !important; color: var(--teal-800); }
  .nav__links a:not(.nav__mobile-only) + .nav__mobile-only { margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
}

/* enlaces legales */
.contact-form__privacy { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: var(--teal-800); }
