﻿:root {
  --ink: #3c3c3c;
  --ink-2: #3c3c3c;
  --muted: #6b7280;
  --line: #dee2e6;
  --soft: #f5f5f5;
  --white: #ffffff;
  --blue: #660099;
  --blue-dark: #4a006e;
  --blue-bright: #1ca5ea;
  --gold: #b9975b;
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: #fff;
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(7,17,31,.09); }
.topbar { height: 44px; background: #f4f6f8; border-bottom: 1px solid var(--line); }
.topbar-inner { height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.topbar-cta {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(102,0,153,.14);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.topbar-cta:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(102,0,153,.25), 0 8px 20px rgba(102,0,153,.2);
}
.nav-bar {
  position: relative;
  background: #fff;
  border-bottom: 2px solid var(--blue);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  background: transparent;
}
.brand img { width: 150px; max-height: 46px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a,
.mega-trigger {
  padding: 10px 14px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover,
.mega-trigger:hover { color: var(--blue); }
.nav-item { position: relative; }
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mega-trigger span {
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}
.has-mega.open .mega-trigger span {
  transform: rotate(90deg);
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: 390px;
  display: none;
  z-index: 120;
  background: #fff;
  border: 1px solid rgba(102,0,153,.12);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 44px rgba(7,17,31,.15);
  pointer-events: auto;
  overflow: hidden;
}
.has-mega.open .mega-menu,
.has-mega:focus-within .mega-menu {
  display: block;
}
.mega-menu-inner {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 10px 0;
}
.mega-menu-inner > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  border-bottom: 1px solid rgba(223,229,236,.75);
}
.mega-menu-inner > a:last-child {
  border-bottom: 0;
}
.mega-menu-inner > a:hover,
.mega-menu-inner > a:focus {
  color: var(--blue);
  background: #f7f1fb;
}
.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border: 2px solid transparent;
  border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.header-cta, .btn-primary { background: var(--blue); color: #fff; }
.header-cta:hover, .btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(102,0,153,.22);
}
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); }

.section { padding: 64px 0; }
.section-kicker, .eyebrow {
  display: inline-block; margin-bottom: 18px; color: var(--blue-bright); font-size: 16px;
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.section-heading { max-width: 860px; margin-bottom: 52px; }
.section-heading h2, .about-copy h2, .contact-info h2 {
  font-size: clamp(28px, 3.5vw, 32px); line-height: 1.15; letter-spacing: -.01em; font-weight: 600;
}
.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 32px); line-height: 1.15; letter-spacing: -.01em; font-weight: 600;
}
.section-heading p,
.position-grid p,
.hero-copy p,
.about-copy p,
.contact-info p,
.method-intro p {
  font-size: 17px;
  line-height: 1.72;
}
.section-heading h2 { max-width: 760px; }

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 166px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(24,0,38,.92) 0%, rgba(24,0,38,.72) 42%, rgba(24,0,38,.38) 100%),
    linear-gradient(135deg, #2c1238, #6b1c88);
}
.hero-media {
  position: absolute;
  inset: 112px 0 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(30,0,44,.92), rgba(30,0,44,.35)),
    url("Imagenes/cmconsultoraportada-2048x1152.jpg") center / cover no-repeat;
  opacity: .48;
  filter: saturate(.7) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 112px 0 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22,0,32,.9) 0%, rgba(22,0,32,.72) 42%, rgba(22,0,32,.28) 100%),
    linear-gradient(0deg, rgba(0,0,0,.18), transparent 42%);
}
.hero-grid { position: relative; z-index: 2; display: block; }
.hero-copy { max-width: 880px; color: #fff; }
.hero h1 {
  font-size: clamp(42px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-weight: 700;
}
.hero-copy p { max-width: 650px; margin-top: 24px; color: rgba(255,255,255,.9); font-size: 21px; line-height: 1.48; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.52);
}

.position-section { padding: 72px 0; }
.position-grid {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 92px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0 0 62px;
}
.position-grid .section-kicker {
  margin-bottom: 0;
  color: var(--blue-bright);
}
.position-grid p {
  max-width: 560px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0;
  font-weight: 400;
}

.metrics-section { padding: 0 0 86px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(7,17,31,.06);
}
.metrics-grid div { padding: 28px; border-right: 1px solid var(--line); background: #fff; }
.metrics-grid div:last-child { border-right: 0; }
.metrics-grid strong { display: block; color: var(--blue); font-size: 36px; line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.metrics-grid span { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 500; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-item {
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(7,17,31,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(102,0,153,.22);
  box-shadow: 0 24px 48px rgba(7,17,31,.1);
}
.service-media {
  height: 136px;
  margin: -28px -28px 26px;
  background: var(--soft) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.service-media-convenio { background-image: url("Imagenes/asesoria-en-convenio-marco.jpg"); }
.service-media-licitacion { background-image: url("Imagenes/Informes-de-Gestion-Compras-Publicas.jpg"); }
.service-media-backoffice { background-image: url("Imagenes/administracion-back-office-1024x684.jpg"); }
.service-media-capacitacion { background-image: url("Imagenes/capacitacion-convenio-marco-1024x682.jpg"); }
.service-media-informes { background-image: url("Imagenes/Informes-de-Gestion-Compras-Publicas.jpg"); }
.service-media-integridad { background-image: url("Imagenes/generacion de progrmaa d eintegridad.jpg"); }
.service-item span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.service-item h3 { margin: 30px 0 14px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.service-item p { color: var(--ink-2); line-height: 1.68; }
.service-item small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.55; }
.service-item a { display: inline-block; margin-top: 28px; color: var(--blue); font-weight: 700; }

.methodology-section, .expertise-section, .insights-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-intro {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 76px;
}
.method-intro h2 {
  max-width: 420px;
  font-size: clamp(28px, 3.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 600;
}
.method-intro p {
  max-width: 560px;
  color: var(--muted);
}
.method-orbit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.method-orbit::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), #27a9e1, transparent);
  z-index: 0;
}
.method-circle {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 158px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-align: center;
}
.method-circle::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: .9;
}
.method-circle::after {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: currentColor;
}
.method-circle span {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: .78;
}
.method-circle strong {
  max-width: 126px;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.method-circle-primary {
  background: #08116d;
  color: #08116d;
}
.method-circle-primary span,
.method-circle-primary strong { color: #fff; }
.method-circle-secondary {
  background: #2626bc;
  color: #2626bc;
}
.method-circle-secondary span,
.method-circle-secondary strong { color: #fff; }
.method-circle-tertiary {
  background: #27a9e1;
  color: #27a9e1;
}
.method-circle-tertiary span,
.method-circle-tertiary strong { color: #fff; }
.method-circle-quaternary {
  background: #0b4f8a;
  color: #0b4f8a;
}
.method-circle-quaternary span,
.method-circle-quaternary strong { color: #fff; }
.method-circle-quinary {
  background: #b9975b;
  color: #b9975b;
}
.method-circle-quinary span,
.method-circle-quinary strong { color: #fff; }

.expertise-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.expertise-grid span { min-height: 96px; display: flex; align-items: center; padding: 22px; background: #fff; font-weight: 750; }

.category-grid, .insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.category-card, .about-card, .cta-card {
  padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 12px 28px rgba(7,17,31,.04);
}
.insight-card {
  padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 12px 28px rgba(7,17,31,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(7,17,31,.1);
}
.category-card h3, .insight-card h3 { font-size: 23px; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 14px; font-weight: 600; }
.category-card p, .insight-card p, .about-card p, .cta-card p { color: var(--muted); }
.insight-card span { color: var(--gold); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.insight-card a { display: inline-block; margin-top: 24px; color: var(--blue); font-weight: 800; }

.clients-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-heading {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 46px;
}
.clients-heading h2 {
  max-width: 540px;
  font-size: clamp(28px, 3.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 600;
}
.clients-heading p {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.clients-carousel {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.client-logo-grid {
  display: grid;
  gap: 14px;
}
.client-logo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: clientsMarquee 72s linear infinite;
}
.client-logo-track-2 {
  animation-duration: 86s;
  animation-direction: reverse;
}
.client-logo-track-3 {
  animation-duration: 96s;
}
.clients-carousel:hover .client-logo-track {
  animation-play-state: paused;
}
.client-logo-item {
  flex: 0 0 172px;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7,17,31,.035);
}
.client-logo-item img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: opacity .2s ease, filter .2s ease;
}
.client-logo-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about-grid { display: grid; grid-template-columns: 1fr .55fr; gap: 60px; align-items: start; }
.about-copy p { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.about-card { border-top: 4px solid var(--blue); }
.about-card h3 { margin-bottom: 18px; font-size: 27px; line-height: 1.18; letter-spacing: -.02em; font-weight: 600; }
.about-image {
  min-height: 260px;
  margin-bottom: 24px;
  background: url("Imagenes/administracion-back-office-1024x684.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}

.cta-section { padding-top: 0; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--ink); color: #fff; }
.cta-card p { color: rgba(255,255,255,.68); margin-top: 18px; max-width: 720px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-card .btn-secondary { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }

.contact-section { background: var(--soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .72fr 1fr; gap: 70px; }
.contact-info p { margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.contact-links { display: grid; gap: 12px; margin-top: 32px; }
.contact-links a { color: var(--blue); font-weight: 800; }
.contact-form { padding: 30px; border: 1px solid var(--line); background: #fff; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; }
.form-status { min-height: 22px; margin-top: 12px; color: var(--blue); font-weight: 600; }

.footer { padding: 58px 0 28px; background: var(--blue); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; }
.footer-logo { width: 150px; padding: 6px 10px; background: rgba(255,255,255,.95); margin-bottom: 18px; border-radius: 6px; }
.footer p, .footer-bottom { color: rgba(255,255,255,.58); }
.footer h4 { margin-bottom: 16px; color: rgba(255,255,255,.38); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.76); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.whatsapp-float, .back-top { position: fixed; z-index: 40; border: 0; cursor: pointer; }
.whatsapp-float { right: 22px; bottom: 22px; padding: 13px 16px; background: var(--blue); color: #fff; font-weight: 800; }
.back-top { right: 22px; bottom: 76px; width: 42px; height: 42px; display: none; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.back-top.visible { display: block; }

.service-page {
  min-height: 100vh;
  background: #fff;
}
.service-hero {
  padding: 172px 0 84px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}
.service-hero h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
  color: #fff;
}
.service-hero p {
  max-width: 720px;
  margin-bottom: 36px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.6;
}
.service-hero .back-link {
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.service-hero .back-link:hover { color: #fff; }
.service-hero .btn-primary {
  background: #fff;
  color: var(--blue);
}
.service-hero .btn-primary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  transition: gap .15s ease;
}
.back-link:hover { gap: 10px; }
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-detail-grid article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-top: 3px solid var(--blue);
}
.service-detail-grid h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.service-detail-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.service-includes {
  background: var(--soft);
}
.service-includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.service-includes-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.service-includes-check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.service-includes-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.service-includes-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.service-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 84px 0;
  text-align: center;
  color: #fff;
}
.service-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -.03em;
}
.service-cta p {
  color: rgba(255,255,255,.8);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.service-cta .btn-primary {
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  padding: 14px 36px;
}
.service-cta .btn-primary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.article-page {
  background: #fff;
}
.article-hero {
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(74,0,110,.9), rgba(7,17,31,.78)),
    url("Imagenes/cmconsultoraportada-2048x1152.jpg") center / cover no-repeat;
  color: #fff;
}
.article-hero-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 70px;
  align-items: end;
}
.article-hero .back-link {
  color: rgba(255,255,255,.82);
}
.article-hero .section-kicker {
  color: #e9d5ff;
}
.article-hero h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 520;
}
.article-hero p {
  max-width: 700px;
  color: rgba(255,255,255,.84);
  font-size: 20px;
  line-height: 1.55;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.article-summary {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.article-summary span {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-summary ul {
  display: grid;
  gap: 14px;
  list-style: none;
}
.article-summary li {
  color: rgba(255,255,255,.82);
  font-size: 15px;
}
.article-summary strong {
  color: #fff;
}
.article-content-section {
  padding-top: 76px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 70px;
  align-items: start;
}
.article-content {
  max-width: 780px;
}
.article-lead {
  margin-bottom: 48px;
  color: var(--ink-2);
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.article-content h2 {
  margin: 46px 0 18px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 560;
}
.article-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}
.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 56px;
  background: var(--line);
  border: 1px solid var(--line);
}
.date-grid div {
  min-height: 160px;
  padding: 24px;
  background: #fff;
}
.date-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.date-grid strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.article-tags span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.support-grid article,
.sidebar-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.support-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 18px;
}
.article-sidebar {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 16px;
}
.sidebar-card {
  border-top: 4px solid var(--blue);
}
.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.sidebar-card p {
  margin-bottom: 22px;
  color: var(--muted);
}
.sidebar-contact a {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
}

.reveal { opacity: 0; transform: scale(0.9); transition: opacity 1s ease-in-out, transform 1s ease-in-out; }
.reveal.visible { opacity: 1; transform: scale(1); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #d9edf8; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #6c757d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

@media (max-width: 1040px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { position: fixed; top: 112px; left: 20px; right: 20px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 42px rgba(7,17,31,.12); border-radius: 0 0 8px 8px; }
  .main-nav.open a { padding: 14px; color: var(--ink); }
  .main-nav.open .mega-trigger { width: 100%; justify-content: space-between; padding: 14px; color: var(--ink); }
  .main-nav.open .mega-menu { position: static; display: none; box-shadow: none; border: 0; }
  .main-nav.open .has-mega.open .mega-menu { display: block; }
  .main-nav.open .mega-menu-inner { width: 100%; grid-template-columns: 1fr; gap: 14px; padding: 8px 14px 14px; }
  .main-nav.open .mega-column { gap: 10px; }
  .hero-grid, .position-grid, .about-grid, .contact-grid, .cta-card { grid-template-columns: 1fr; }
  .article-hero-grid, .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .position-grid { gap: 24px; }
  .clients-heading { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { border-left: 0; padding-left: 0; }
  .services-grid, .category-grid, .insights-grid { grid-template-columns: repeat(2,1fr); }
  .client-logo-item { flex-basis: 160px; }
  .expertise-grid, .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .method-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .method-orbit { grid-template-columns: repeat(3, 1fr); row-gap: 70px; }
  .method-circle { width: 142px; height: 142px; }
  .method-circle::before { inset: -18px; }
  .method-circle strong { font-size: 16px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar { height: 40px; }
  .topbar-inner { height: 40px; gap: 12px; }
  .topbar-cta { min-height: 26px; padding: 0 12px; font-size: 12px; }
  .header-inner { height: 62px; }
  .brand img { width: 120px; }
  .brand { padding: 4px 0; }
  .main-nav.open { top: 102px; }
  .hero { min-height: 580px; padding: 128px 0 56px; }
  .hero-media,
  .hero-overlay { inset: 102px 0 0; }
  .section { padding: 70px 0; }
  .section-heading h2, .about-copy h2, .contact-info h2, .cta-card h2 { font-size: clamp(24px, 7vw, 28px); }
  .hero h1 { font-size: clamp(36px, 10vw, 44px); }
  .hero-copy p { font-size: 18px; line-height: 1.45; }
  .hero-actions, .btn { width: 100%; }
  .metrics-grid, .services-grid, .category-grid, .insights-grid, .expertise-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .client-logo-item { flex-basis: 146px; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-includes-grid { grid-template-columns: 1fr; }
  .service-hero { padding: 148px 0 64px; }
  .service-hero h1 { font-size: clamp(32px, 10vw, 52px); }
  .article-hero { padding: 58px 0; }
  .article-hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .article-summary { padding: 22px; }
  .article-lead { font-size: 20px; }
  .date-grid, .support-grid { grid-template-columns: 1fr; }
  .metrics-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics-grid div:last-child { border-bottom: 0; }
  .method-orbit { grid-template-columns: 1fr; gap: 58px; }
  .method-orbit::before {
    left: 50%;
    right: auto;
    top: 8%;
    bottom: 8%;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--blue), #27a9e1, transparent);
  }
  .contact-form { padding: 20px; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { left: 14px; right: 14px; text-align: center; }
  .back-top { display: none !important; }
}

