/* ==========================================================================
   pcmCorp — Sistema visual "Disrupción Corporativa"
   Gris carbón + naranja vibrante + plata
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-primary: #0b0f17;
  --bg-deep: #080b11;
  --bg-card: #161c28;
  --bg-card-2: #131924;
  --bg-elevated: #1b2331;

  --accent: #ff8c00;
  --accent-glow: #ffa500;
  --accent-soft: rgba(255, 140, 0, 0.10);
  --accent-line: rgba(255, 140, 0, 0.28);

  --silver: #e2e8f0;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --dim: #64748b;

  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --container: 1180px;
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 26px rgba(255, 140, 0, 0.42);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure, ul, ol, blockquote {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

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

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

button { cursor: pointer; }

::selection {
  background: rgba(255, 140, 0, 0.28);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #0b0f17;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: clamp(84px, 9vw, 132px);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--alt {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 140, 0, 0.05), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__img {
  display: block;
  height: 80px;
  width: auto;
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo__img { transform: translateY(-1px) scale(1.03); }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 12px;
  --btn-px: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.btn__icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: #0b0f17;
  box-shadow: 0 10px 30px -12px rgba(255, 140, 0, 0.65);
}
.btn--primary:hover {
  background: var(--accent-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(226, 232, 240, 0.02);
  border-color: rgba(226, 232, 240, 0.20);
  color: var(--silver);
}
.btn--ghost:hover {
  border-color: var(--accent-line);
  background: rgba(255, 140, 0, 0.07);
  color: var(--accent-glow);
  transform: translateY(-2px);
}

.btn--lg {
  --btn-py: 15px;
  --btn-px: 26px;
  font-size: 0.95rem;
}
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 28px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent-glow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 23, 0.55);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 15, 23, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--silver); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { --btn-py: 10px; --btn-px: 18px; font-size: 0.85rem; }
.nav__meta { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.site-header.is-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 42%, rgba(255, 140, 0, 0.16), transparent 62%);
  filter: blur(10px);
}
.hero__glow--low {
  top: auto;
  bottom: -45%;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.07), transparent 65%);
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 140, 0, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.hero:hover .hero__spotlight { opacity: 1; }

.hero__circuit {
  position: absolute;
  width: 340px;
  height: 340px;
  opacity: 0.85;
  top: 26%;
}
.hero__circuit--left { left: -80px; }
.hero__circuit--right { right: -80px; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.06);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

.hero__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.7vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--silver);
  max-width: 1120px;
}

@media (min-width: 901px) {
  .hero__line { white-space: nowrap; }
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(92deg, #ff8c00 0%, #ffb020 55%, #ffa500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 140, 0, 0.22));
}

.hero__lead {
  margin-top: 26px;
  max-width: 750px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__stats {
  margin-top: clamp(56px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-inline: 18px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid rgba(148, 163, 184, 0.09);
  background: #0a0e15;
  padding-block: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-line);
  flex-shrink: 0;
}

/* ---------- Section head ---------- */
.section-head { max-width: 780px; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 1.00rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);
}
.eyebrow__num { color: var(--accent); }
.eyebrow--center { justify-content: center; }

.section-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--silver);
}
.section-title--xl {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.section-lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  max-width: 60ch;
}
.section-lead--center { margin-inline: auto; max-width: 68ch; text-align: center; }

.text-accent {
  background: linear-gradient(92deg, #ff8c00, #ffb020);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Metodología ---------- */
.steps {
  margin-top: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 34px 26px 8px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 140, 0, 0.55);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.step:hover::before { transform: scaleX(1); }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--silver);
}
.step__text {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Capacidades ---------- */
.caps {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cap {
  position: relative;
  padding: 34px 34px 30px;
  background: linear-gradient(160deg, #161c28 0%, #121824 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.cap::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cap:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}
.cap:hover::after { opacity: 1; }
.cap__num {
  font-family: var(--font-mono);
  font-size: 1.0rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.cap__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: -0.01em;
}
.cap__text {
  margin-top: 12px;
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 44ch;
}
.cap__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.cap__link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.cap:hover .cap__link { color: var(--accent); }
.cap:hover .cap__link svg { transform: translateX(4px); }

/* ---------- Servicios ---------- */
.services {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 36px 34px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--accent-line);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 140, 0, 0.06);
}
.service__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: rgba(255, 140, 0, 0.07);
  color: var(--accent);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service__icon svg { width: 24px; height: 24px; }
.service:hover .service__icon {
  background: rgba(255, 140, 0, 0.14);
  box-shadow: 0 0 22px rgba(255, 140, 0, 0.22);
}
.service__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.service__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--silver);
  letter-spacing: -0.01em;
}
.service__text {
  margin-top: 14px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--muted);
  flex-grow: 1;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tag {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.05);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.service:hover .tag {
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ---------- Perfil y credenciales ---------- */
.profile {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(255, 140, 0, 0.06), transparent 65%),
    var(--bg-primary);
}

.profile__bio {
  margin-top: clamp(44px, 5vw, 64px);
  padding: 38px 36px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #161c28 0%, #121824 100%);
}
.profile__role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.profile__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--silver);
}
.profile__text {
  margin-top: 16px;
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--muted);
}
.profile__facts {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.profile__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--silver);
}
.profile__facts span {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Acreditación de perito: una sola línea, sin tarjeta propia. */
.profile__accred {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
/* El texto de la acreditación va siempre en una sola línea. */
.profile__accred-main {
  flex: 1 1 320px;
  min-width: 0;
}
.profile__accred-text { flex: 1 1 auto; min-width: 0; }
.profile__accred strong { font-weight: 600; color: var(--silver); }
.profile__accred-link {
  flex-shrink: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.profile__accred-link:hover { border-color: var(--accent); }

.credentials {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 34px) clamp(26px, 3vw, 34px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 320px at 100% 0%, rgba(255, 140, 0, 0.07), transparent 72%),
    rgba(148, 163, 184, 0.04);
}
.credentials__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 36px;
  align-items: start;
}
.credentials__intro { display: grid; gap: 9px; max-width: 62ch; }
.credentials__label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.credentials__title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--silver);
}
.credentials__lead {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}
.credentials__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.credentials__counts li {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 84px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.55);
}
.credentials__counts strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.credentials__counts span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
}
.credentials__groups {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.cred-group {
  padding: 18px 18px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 23, 0.5);
}
.cred-group--wide { grid-column: 1 / -1; }
.cred-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cred-group__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred-group__count {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
}
.cred-list { display: grid; }
.cred-group--wide .cred-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}
.cred {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.cred:last-child { border-bottom: 0; }
.cred__body { min-width: 0; }
.cred__name {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.cred__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--dim);
}
.cred__link {
  flex-shrink: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}
.cred__link:hover { border-color: var(--accent); }
.cred__link--muted {
  border-bottom-color: rgba(148, 163, 184, 0.28);
  color: var(--muted);
}
.cred__link--muted:hover {
  border-color: var(--muted);
  color: var(--silver);
}
.credentials__extra {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--dim);
}
.credentials__extra strong {
  font-weight: 600;
  color: var(--muted);
}

.sectors {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.sectors__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.sectors__list {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Diagnóstico ---------- */
.diagnostic {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: start;
}
.diagnostic__intro { position: sticky; top: calc(var(--header-h) + 28px); }
.diagnostic__intro .section-title {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.14;
}

.result {
  margin-top: 38px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #141b27 0%, #0f1520 100%);
  box-shadow: var(--shadow-card);
}
.result__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.result__list {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.result__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.result__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(255, 140, 0, 0.12);
  color: var(--accent);
}
.result__check svg { width: 13px; height: 13px; }
.result__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver);
}
.result__list span {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.result__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--muted);
}
.result__note strong { color: var(--silver); font-weight: 600; }
.result .btn { margin-top: 22px; }

.diagnostic__list { display: grid; }
.area {
  padding: 30px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), background-color 0.35s var(--ease);
}
.area:last-child { border-bottom: 1px solid var(--line); }
.area:hover { padding-left: 14px; }
.area__num {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}
.area:hover .area__num { color: var(--accent); }
.area__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: -0.01em;
}
.area__text {
  margin-top: 9px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Diferenciador ---------- */
.difference {
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(255, 140, 0, 0.09), transparent 70%),
    var(--bg-primary);
}
.difference__statement { text-align: center; max-width: 940px; margin-inline: auto; }
.difference__statement .section-lead { margin-inline: auto; }

.patterns {
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(22, 28, 40, 0.9) 0%, rgba(12, 17, 26, 0.9) 100%);
  box-shadow: var(--shadow-card);
}
.patterns__head { max-width: 620px; }
.patterns__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.patterns__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--silver);
}
.patterns__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.pattern {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.pattern__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.pattern__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--silver);
}
.pattern__text {
  margin-top: 10px;
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--muted);
}
.patterns__closing {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 28px); }

.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--silver);
  transition: color 0.25s var(--ease);
}
.faq-item__button:hover { color: var(--accent-glow); }
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-item__icon {
  border-color: var(--accent);
  background: rgba(255, 140, 0, 0.1);
  transform: rotate(180deg);
}
.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after { background: var(--accent); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-item__content {
  padding: 0 52px 26px 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.78;
}

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(760px 420px at 50% 100%, rgba(255, 140, 0, 0.10), transparent 72%),
    var(--bg-primary);
}
.contact__panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 70px);
  padding: clamp(30px, 4.4vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #151c28 0%, #0e131d 100%);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.contact__panel::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.12), transparent 65%);
  pointer-events: none;
}
.contact__aside { position: relative; }
.contact__aside .section-title {
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.16;
}
.contact__facts {
  margin-top: 40px;
  display: grid;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact__fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact__fact-value {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--silver);
}
a.contact__fact-value { transition: color 0.25s var(--ease); }
a.contact__fact-value:hover { color: var(--accent); }

.contact__form { position: relative; display: grid; gap: 16px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 8px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(8, 11, 17, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--silver);
  font-size: 0.9rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: #55637a; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-strong); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
  background: rgba(8, 11, 17, 0.9);
}
.textarea { resize: vertical; min-height: 108px; }

.select-wrap { position: relative; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select option { background: #121824; color: var(--silver); }

.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(8, 11, 17, 0.7);
  position: relative;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #0b0f17;
  border-bottom: 2px solid #0b0f17;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.check input:checked + .check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.check__text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.check__text a { color: var(--silver); text-decoration: underline; text-underline-offset: 2px; }
.check__text a:hover { color: var(--accent); }

.form__note {
  font-size: 0.72rem;
  color: var(--dim);
  line-height: 1.6;
}
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--muted); }

.form__success[hidden] { display: none !important; }
.form__success {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.07);
  color: #bbf7d0;
  font-size: 0.86rem;
  line-height: 1.55;
}
.form__success strong { font-size: 0.92rem; }
.form__success span { color: #86efac; }
.form__success.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.07);
  color: #fecaca;
}
.form__success.is-error span { color: #fca5a5; }
.form__success.is-error a {
  color: #fecaca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot antispam del formulario (oculto para personas). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080b11;
  padding-top: 68px;
  padding-bottom: 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer__brand .logo { margin-bottom: 20px; }
.footer__brand .logo__img { height: 60px; }
.footer__tagline {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}
.footer__mail {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.footer__mail:hover { color: var(--accent-glow); }
.footer__title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__link {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__link:hover { color: var(--silver); transform: translateX(2px); }

.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.76rem;
  color: var(--dim);
}
.footer__social { display: flex; align-items: center; gap: 10px; }
.footer__social a:hover { color: var(--silver); }
.footer__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

/* ---------- Legal ---------- */
.legal-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255, 140, 0, 0.09), transparent 70%),
    var(--bg-primary);
}
.legal-hero .section-title { margin-top: 18px; }
.legal-hero p { margin-top: 16px; color: var(--muted); max-width: 62ch; }
.legal-body { padding-block: 64px 96px; }
.legal-body .container { max-width: 860px; }
.legal-body h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--silver);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--silver); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__circuit { width: 260px; height: 260px; opacity: 0.6; }
  .hero__circuit--left { left: -110px; }
  .hero__circuit--right { right: -110px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 30px 26px 26px 0; }
  .step:nth-child(2n) { border-right: 0; padding-right: 0; }
  .step:nth-child(2n + 1) { padding-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .step:nth-child(3) { padding-left: 0; }

  .diagnostic,
  .faq { grid-template-columns: 1fr; }
  .diagnostic__intro,
  .faq__intro { position: static; }
  .diagnostic__list { margin-top: 8px; }

  .credentials__head { grid-template-columns: 1fr; gap: 18px; }
  .credentials__counts { justify-content: flex-start; }

  .contact__panel { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 82px; }

  .logo__img { height: 74px; }
  .footer__brand .logo__img { height: 52px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 40px;
    background: #090d14;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  body.is-menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--silver);
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 20px; width: 100%; }
  .nav__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
  .nav__meta-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
  }
  .nav__meta-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
  }
  .nav-toggle { display: block; }

  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .section-head--split .section-lead { margin-top: 20px; }

  .caps,
  .services { grid-template-columns: 1fr; }
  .patterns__grid { grid-template-columns: 1fr; gap: 24px; }
  .pattern { padding-top: 22px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }

  .badge {
    font-size: 0.56rem;
    letter-spacing: 0.09em;
    padding: 7px 13px;
    gap: 8px;
  }

  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 64px; min-height: auto; }
  .hero__title { max-width: none; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .stat { padding-block: 20px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .hero__scroll { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step,
  .step:nth-child(2n),
  .step:nth-child(2n + 1) {
    padding: 26px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .step:first-child { border-top: 0; }

  .cap,
  .service { padding: 28px 24px 26px; }
  .result { padding: 24px 20px; }
  .patterns { padding: 26px 22px; }

  .profile__bio { padding: 28px 24px 26px; }
  .profile__facts { grid-template-columns: 1fr; gap: 18px; }
  .profile__accred { gap: 10px; align-items: flex-start; }
  .profile__accred-main { flex-basis: 100%; }
  .credentials { padding: 22px 20px; }
  .credentials__groups { grid-template-columns: 1fr; }
  .cred-group--wide .cred-list { grid-template-columns: 1fr; }
  .cred { flex-direction: column; gap: 8px; }
  .sectors { display: grid; gap: 8px; }

  .field-row { grid-template-columns: 1fr; }
  .contact__panel { padding: 26px 20px 30px; }
  .contact__form { gap: 14px; }

  .faq-item__button { font-size: 0.92rem; gap: 16px; padding: 20px 0; }
  .faq-item__content { padding-right: 8px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
