/* ============================================================
   IAN CONSULTING GROUP SAS — Hoja de estilos global
   Stack: HTML + CSS + Vanilla JS
   Paleta: Blanco / Azul primario #031d34 / Azul secundario #02243d
   DECISION: tipografía Playfair Display (titulares serif, prestigio
   financiero) + Inter (cuerpo y UI, legibilidad). Acento azul medio
   derivado de la marca para hovers y detalles, sin salir del esquema.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy:        #031d34;   /* azul primario */
  --navy-2:      #02243d;   /* azul secundario */
  --navy-deep:   #021627;   /* refuerzo para gradientes */
  --accent:      #3a7ca5;   /* azul medio para detalles/hover */
  --accent-soft: #6fa8c9;
  --white:       #ffffff;
  --paper:       #f6f8fa;   /* fondo de sección suave */
  --paper-2:     #eef2f6;
  --line:        #e2e8f0;
  --ink:         #1c2b3a;   /* texto principal sobre blanco */
  --muted:       #5b6b7b;   /* texto secundario */
  --muted-light: #aab8c5;   /* texto sobre fondos oscuros */

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(3, 29, 52, .06);
  --shadow-md: 0 14px 40px rgba(3, 29, 52, .10);
  --shadow-lg: 0 30px 70px rgba(3, 29, 52, .16);

  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

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

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

body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { color: var(--muted); }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-deep) 100%);
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: var(--muted-light); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.06rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: all .4s var(--ease);
}
.site-header__inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; z-index: 110; }
.brand img { height: 42px; width: auto; transition: opacity .3s; }
.brand .logo-white { display: block; }
.brand .logo-navy { display: none; position: absolute; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88);
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent-soft); transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after, .nav__links a:hover::after { width: 100%; }

/* Header con scroll: fondo blanco */
.site-header.is-scrolled {
  height: 70px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled .brand .logo-white { display: none; }
.site-header.is-scrolled .brand .logo-navy { display: block; position: static; }
.site-header.is-scrolled .nav__links a { color: var(--ink); }
.site-header.is-scrolled .nav__links a:hover,
.site-header.is-scrolled .nav__links a.is-active { color: var(--navy); }
.site-header.is-scrolled .burger span { background: var(--navy); }

/* Variante para páginas internas (header siempre claro desde el inicio) */
.site-header.header--solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.header--solid .brand .logo-white { display: none; }
.site-header.header--solid .brand .logo-navy { display: block; position: static; }
.site-header.header--solid .nav__links a { color: var(--ink); }
.site-header.header--solid .nav__links a:hover,
.site-header.header--solid .nav__links a.is-active { color: var(--navy); }
.site-header.header--solid .burger span { background: var(--navy); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.burger span { width: 26px; height: 2px; background: #fff; transition: all .35s var(--ease); border-radius: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--navy); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(2,22,39,.94) 0%, rgba(3,29,52,.86) 45%, rgba(2,36,61,.62) 100%);
}
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent-soft); font-style: italic; }
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 600px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stat .num { font-family: var(--ff-serif); font-size: clamp(2rem, 3.5vw, 2.8rem); color: #fff; line-height: 1; }
.hero__stat .label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .5rem; letter-spacing: .03em; }

/* Mini-banner para páginas internas */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 70px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-deep) 100%);
  color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,124,165,.28), transparent 65%);
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 580px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.4rem; letter-spacing: .03em; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .5rem; opacity: .5; }

/* ============================================================
   COMPONENTES
   ============================================================ */

/* Grid utilitario */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta de servicio */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-card__icon {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--navy);
  margin-bottom: 24px; transition: all .4s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--navy); color: #fff; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .7rem; }
.service-card p { font-size: .98rem; margin-bottom: 1.2rem; }
.service-card__link {
  font-family: var(--ff-sans); font-size: .88rem; font-weight: 600;
  color: var(--accent); display: inline-flex; align-items: center; gap: .5rem;
  letter-spacing: .02em;
}
.service-card__link svg { width: 16px; height: 16px; transition: transform .3s; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* Tarjeta de servicio detallada (página servicios) */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.service-detail .num {
  font-family: var(--ff-serif); font-size: 1rem; color: var(--accent);
  font-weight: 600; letter-spacing: .1em;
}
.service-detail h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .6rem 0 1rem; }
.service-list { margin-top: 1.6rem; display: grid; gap: 12px; }
.service-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.service-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Bloque imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split__badge {
  position: absolute; bottom: -28px; right: -10px;
  background: var(--navy); color: #fff; padding: 26px 30px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 230px;
}
.split__badge .num { font-family: var(--ff-serif); font-size: 2.4rem; line-height: 1; color: #fff; }
.split__badge .txt { font-size: .85rem; color: rgba(255,255,255,.78); margin-top: .4rem; }

/* Lista de checks */
.checks { display: grid; gap: 14px; margin-top: 1.8rem; }
.checks li { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink); }
.checks svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.checks strong { display: block; color: var(--navy); font-family: var(--ff-sans); font-weight: 600; }
.checks span { font-size: .95rem; color: var(--muted); }

/* Valores / features */
.feature { padding: 4px 0; }
.feature__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(58,124,165,.12); color: var(--accent); margin-bottom: 18px;
}
.section--navy .feature__icon { background: rgba(255,255,255,.08); color: var(--accent-soft); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { font-size: .96rem; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stats-band .num { font-family: var(--ff-serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stats-band .num .plus { color: var(--accent-soft); }
.stats-band .label { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: .6rem; letter-spacing: .02em; }

/* Pasos / proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--ff-serif); font-size: 2.6rem; color: var(--paper-2);
  line-height: 1; margin-bottom: .6rem; font-weight: 700;
}
.section--navy .step__num { color: rgba(255,255,255,.16); }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 1.1rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.cta-band .hero__actions { justify-content: center; }

/* Tarjeta de contacto */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 2rem; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; transition: all .35s var(--ease);
}
.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.contact-item__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; background: var(--navy); color: #fff;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--ff-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-item p, .contact-item a { color: var(--navy); font-weight: 500; font-size: 1.04rem; margin-top: 2px; }
.contact-item a:hover { color: var(--accent); }

.contact-aside {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.contact-aside h3 { color: #fff; margin-bottom: 1rem; }
.contact-aside p { color: rgba(255,255,255,.82); margin-bottom: 1.8rem; }
.contact-aside .hours { display: grid; gap: 10px; margin: 1.6rem 0; }
.contact-aside .hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.contact-aside .hours span:first-child { color: rgba(255,255,255,.75); }
.contact-aside .hours span:last-child { color: #fff; font-weight: 500; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 64px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--ff-serif); font-size: 1.18rem; color: var(--navy); font-weight: 600;
}
.faq__q svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); transition: transform .35s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding-bottom: 24px; color: var(--muted); }

/* Logos / aliados (texto provisional) */
.trust { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: center; justify-content: center; opacity: .8; }
.trust span { font-family: var(--ff-serif); font-size: 1.3rem; color: var(--muted); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 300px; }
.footer-col h4 { font-family: var(--ff-sans); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.62); font-size: .95rem; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent-soft); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    background: #fff; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 8px; padding: 100px 38px 40px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(3,29,52,.18);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--navy) !important; font-size: 1.15rem; font-family: var(--ff-serif); width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 16px; }
  .burger { display: flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split, .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .service-detail__media { order: -1 !important; }
  .split__badge { position: static; margin-top: 20px; max-width: 100%; }
  .hero { min-height: auto; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(3,29,52,.4); opacity: 0; visibility: hidden; transition: all .35s; z-index: 99; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .stats-band, .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions, .cta-band .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .service-card { padding: 30px 26px; }
}

/* ============================================================
   MEJORAS v2 — Nivel consultoría premium
   Referencias: Deloitte, PwC, EY, KPMG, Crowe, BDO, Mazars.
   ============================================================ */

/* ---------- Accesibilidad: foco visible ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Hero: refinamientos ---------- */
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.9); margin-bottom: 1.6rem;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(111,168,201,.25); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.7);
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 0; } }
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ---------- Franja de pilares (value strip) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 32px 30px; border-right: 1px solid var(--line); transition: background .35s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--paper); }
.pillar__icon { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--navy); color: #fff; }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { font-family: var(--ff-sans); font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.pillar p { font-size: .9rem; line-height: 1.5; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid var(--line); } .pillar:last-child { border-bottom: 0; } }

/* ---------- Industrias / Sectores ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; transition: all .35s var(--ease);
}
.industry:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.industry__icon { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--paper-2); color: var(--navy); transition: all .35s var(--ease); }
.industry:hover .industry__icon { background: var(--navy); color: #fff; }
.industry__icon svg { width: 24px; height: 24px; }
.industry h3 { font-family: var(--ff-sans); font-size: 1.04rem; font-weight: 600; color: var(--navy); margin: 0; }
.industry p { font-size: .85rem; margin: 2px 0 0; }
@media (max-width: 860px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .industries { grid-template-columns: 1fr; } }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; position: relative; transition: all .4s var(--ease); height: 100%;
  display: flex; flex-direction: column;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial__quote { font-family: var(--ff-serif); font-size: 3.4rem; line-height: 1; color: var(--accent); opacity: .25; margin-bottom: -1.4rem; }
.testimonial__stars { display: flex; gap: 3px; color: #e0a32e; margin-bottom: 1rem; }
.testimonial__stars svg { width: 17px; height: 17px; }
.testimonial p { color: var(--ink); font-size: 1rem; line-height: 1.7; flex-grow: 1; }
.testimonial__author { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testimonial__author strong { display: block; font-family: var(--ff-sans); color: var(--navy); font-weight: 600; font-size: .98rem; }
.testimonial__author span { font-size: .85rem; color: var(--muted); }
.section--navy .testimonial { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--navy .testimonial p { color: rgba(255,255,255,.9); }
.section--navy .testimonial__author { border-top-color: rgba(255,255,255,.12); }
.section--navy .testimonial__author strong { color: #fff; }
.section--navy .testimonial__author span { color: var(--muted-light); }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Stats: número en count-up ---------- */
.stat-num[data-count] { font-variant-numeric: tabular-nums; }
