/* ==========================================================================
   VIRYK S.A.S. — styles.css
   Technology Consulting & Digital Transformation Partner
   Mobile-first · Design-token driven · Self-contained (index.html links only
   this file, so the full token set lives in :root below).
   Breakpoints (system): sm 640 · md 768 · lg 1024 · xl 1280
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* ----- COLOR — light theme (one token per role, WCAG AA checked) ----- */
  --color-navy: #0A1B3A;            /* primary dark surface (hero/footer)  */
  --color-navy-deep: #060F24;       /* deepest navy: gradients, overlay bg  */
  --color-graphite: #161A22;        /* near-black neutral (dark cards)      */
  --color-white: #FFFFFF;           /* pure surface                          */
  --color-light: #F4F6FA;           /* alt section background (light gray)   */
  --color-gray: #8A93A5;            /* neutral mid: icons, disabled, meta     */
  --color-border: #E1E6EF;          /* hairline borders on light             */
  --color-border-dark: #22324E;     /* hairline borders on navy              */
  --color-accent: #2563EB;          /* electric blue — CTAs, links, focus    */
  --color-accent-hover: #1D4ED8;    /* accent press/hover (deeper)           */
  --color-accent-soft: #E8F0FE;     /* accent tint: badges, chips, icons-bg  */
  --color-accent-soft-dark: #0E2654;/* accent tint on navy                   */
  --color-accent-on-dark: #60A5FA;  /* accent text/links on navy (AA)        */
  --color-accent-hover-on-dark: #93C5FD;
  --color-text: #0F172A;            /* primary text on light (AA 15.9:1)     */
  --color-text-muted: #5B6472;      /* secondary text on light (AA 5.9:1)    */
  --color-text-on-dark: #F8FAFD;    /* primary text on navy (AA 16:1)        */
  --color-text-muted-dark: #9AA7BF; /* secondary text on navy (AA 7:1)       */
  --color-success: #15803D;         /* form validation ok (AA 5:1 on white)  */
  --color-error: #DC2626;           /* form validation error (AA 4.8:1)      */
  --color-overlay: #060F24B8;       /* image/hero overlay (rgba 6,15,36,.72) */
  /* solid accent fills for CTA buttons — theme-independent (AA on white) */
  --color-accent-solid: #2563EB;
  --color-accent-solid-hover: #1D4ED8;

  /* ----- TYPOGRAPHY — families ----- */
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ----- TYPOGRAPHY — scale (fluid display/h1/h2, fixed rem below) ----- */
  --fs-display: clamp(2.75rem, 6vw + 1rem, 4.5rem);   /* 44–72 hero        */
  --fs-h1: clamp(2.25rem, 4vw + 0.5rem, 3.25rem);     /* 36–52 page title   */
  --fs-h2: clamp(1.875rem, 3vw + 0.25rem, 2.5rem);    /* 30–40 section      */
  --fs-h3: 1.375rem;                                  /* 22 card/lead       */
  --fs-lg: 1.25rem;                                   /* 20 emphasis        */
  --fs-body: 1.0625rem;                               /* 17 base body       */
  --fs-sm: 0.875rem;                                  /* 14 small/forms     */
  --fs-xs: 0.75rem;                                   /* 12 captions        */

  /* line heights */
  --lh-display: 1.05;
  --lh-heading: 1.25;
  --lh-body: 1.6;
  --lh-small: 1.5;
  --lh-mono: 1.6;

  /* letter spacing */
  --ls-tight: -0.02em;   /* display + h1 */
  --ls-normal: 0em;      /* body         */
  --ls-wide: 0.02em;     /* h2/h3        */
  --ls-label: 0.14em;    /* kicker, overline (uppercase) */
  --ls-mono: 0.06em;     /* mono numerals/accents        */

  /* weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ----- SPACING — 4pt base scale ----- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;
  /* semantic layout aliases */
  --space-section: clamp(4rem, 8vw, 6.5rem);  /* section vertical rhythm */
  --space-gutter: clamp(1.25rem, 4vw, 2rem);  /* page horizontal gutter   */

  /* ----- RADIUS ----- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;   /* pills: badge, chip, tag */

  /* ----- SHADOW (navy-tinted, layered) ----- */
  --shadow-sm: 0 1px 2px rgba(10, 27, 58, 0.06), 0 1px 3px rgba(10, 27, 58, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 27, 58, 0.08), 0 2px 6px rgba(10, 27, 58, 0.05);
  --shadow-lg: 0 20px 48px rgba(10, 27, 58, 0.12), 0 6px 16px rgba(10, 27, 58, 0.07);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.28), 0 10px 28px rgba(37, 99, 235, 0.22);

  /* ----- MOTION ----- */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;
  --dur-reveal: 650ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* signature premium ease  */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --transition-fast: all var(--dur-fast) var(--ease-out);
  --transition-base: all var(--dur-base) var(--ease-out);
  --transition-slow: all var(--dur-slow) var(--ease-out);
  --transition-reveal: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  --reveal-distance: 24px;   /* translateY start of reveal */
  --stagger-delay: 80ms;     /* increment between staggered children */

  /* ----- LAYOUT aliases (layout layer) ----- */
  --nav-height: 76px;        /* sticky header height */
  --container-max: 1200px;   /* container max-width of the system */
}

/* Dark theming — block-scoped: any surface below carries dark tokens.
   Mirrors the system's [data-theme="dark"] scoping for hero/footer/dark sections. */
.hero,
.footer,
.section--dark,
[data-theme='dark'] {
  --color-border: var(--color-border-dark);
  --color-text: var(--color-text-on-dark);
  --color-text-muted: var(--color-text-muted-dark);
  --color-accent: var(--color-accent-on-dark);
  --color-accent-hover: var(--color-accent-hover-on-dark);
  --color-accent-soft: var(--color-accent-soft-dark);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-8));
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll,
html.no-scroll {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-wide);
}

p {
  overflow-wrap: break-word;
}

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

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

button {
  cursor: pointer;
}

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

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

/* Accessible focus ring — consistent across the whole site */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

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

.section--light {
  background-color: var(--color-light);
}

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

/* Skip link (a11y) */
.skip-link {
  position: fixed;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 200;
  padding: var(--space-12) var(--space-16);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-250%);
  opacity: 0;
  transition: var(--transition-fast);
}

.skip-link:focus-visible {
  transform: none;
  opacity: 1;
}

/* Section heads */
.section-head {
  max-width: 70ch;
  margin-bottom: var(--space-48);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__intro {
  max-width: 65ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.section-head--center .section-head__intro {
  margin-inline: auto;
}

/* Kicker / overline — uppercase mono, tracked */
.kicker {
  display: inline-block;
  margin-bottom: var(--space-12);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-mono);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Section headings */
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-16);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.625rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background-color: var(--color-accent-solid);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background-color: var(--color-accent-solid-hover);
  box-shadow: var(--shadow-md);
}

.button--secondary {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  background-color: transparent;
}

.button--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.button--lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--fs-body);
}

/* Un botón nunca supera el ancho de su contenedor; si el texto largo
   no cabe, pasa a dos líneas (spec: specs/botones-responsive/spec.md). */
.button {
  max-width: 100%;
}

.button--lg {
  white-space: normal;
}

.button--sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Header siempre en blanco: el logotipo y los enlaces son oscuros, así que un
     fondo claro garantiza contraste AA/AAA (el topbar navy queda encima). */
  background-color: var(--color-white);
  transition: var(--transition-base);
}

.nav.is-scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: var(--nav-height);
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  flex-shrink: 0;
}

.nav-logo__img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 639px) {
  .nav-logo__img {
    height: 32px;
  }
}

/* Desktop nav list */
.nav__list {
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link[aria-current='page'] {
  color: var(--color-accent);
}

.nav-link.is-active {
  color: var(--color-accent);
}

/* El header es blanco siempre; los enlaces del nav usan colores constantes. */

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-8);
  background: transparent;
  border: none;
  color: var(--color-navy);
  transition: var(--transition-fast);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.nav-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: var(--color-navy);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}

.nav-menu.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              visibility 0s;
}

.nav-menu .nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  height: 100%;
  padding: var(--space-32) var(--space-gutter);
  overflow-y: auto;
}

.nav-menu .nav__item {
  width: 100%;
}

.nav-menu .nav-link {
  display: block;
  padding: var(--space-12) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link[aria-current='page'] {
  color: var(--color-accent-on-dark);
}

.nav-menu .nav__item--cta {
  margin-top: auto;
  padding-top: var(--space-24);
}

.nav-menu .nav-cta {
  width: 100%;
}

/* Desktop navigation */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    inset: auto;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav-menu .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-24);
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .nav-menu .nav__item {
    width: auto;
  }

  .nav-menu .nav-link {
    padding: var(--space-8) 0;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    border-bottom: none;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link[aria-current='page'],
  .nav-menu .nav-link.is-active {
    color: var(--color-accent);
  }

  .nav-menu .nav__item--cta {
    margin: 0;
    padding: 0;
    margin-left: var(--space-8);
  }

  .nav-menu .nav-cta {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--space-section) + var(--space-24));
  padding-bottom: var(--space-section);
  background: linear-gradient(165deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
}

.hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}

.hero__bg-glow--one {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, var(--color-accent-on-dark) 0%, transparent 65%);
}

.hero__bg-glow--two {
  width: 560px;
  height: 560px;
  bottom: -240px;
  right: -160px;
  background: radial-gradient(circle, #1D4ED8 0%, transparent 65%);
}

.hero__inner {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}

.hero-eyebrow {
  margin-bottom: var(--space-16);
  color: var(--color-accent-on-dark);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-display);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-24);
}

.hero-subtitle {
  max-width: 60ch;
  margin: 0 auto var(--space-32);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--color-text-muted-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.hero__note {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted-dark);
}

/* --------------------------------------------------------------------------
   7. GRIDS & CARDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .grid--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--solutions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .grid--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Base card */
.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-32);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.section--dark .card {
  background-color: var(--color-graphite);
  border-color: var(--color-border-dark);
}

.section--dark .card:hover {
  border-color: var(--color-accent);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-12);
}

.card__summary {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--space-24);
}

/* Service cards */
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-full);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  flex-shrink: 0;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__list {
  display: grid;
  gap: var(--space-8);
  margin-top: auto;
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border);
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
  color: var(--color-text-muted);
}

.card__list li::before {
  content: '✓';
  flex: 0 0 auto;
  font-size: 0.85em;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-accent);
}

/* Solution cards (problem → arrow → outcome) */
.card--solution .card__title {
  margin-bottom: var(--space-16);
}

.card__block {
  padding: var(--space-16);
  border-radius: var(--radius-md);
  background-color: var(--color-light);
}

.section--dark .card__block {
  background-color: rgba(255, 255, 255, 0.05);
}

.card__block-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  margin-bottom: var(--space-4);
}

.card__block--problem .card__block-label {
  color: var(--color-text-muted);
}

.card__block--outcome .card__block-label {
  color: var(--color-accent);
}

.card__block-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
  color: var(--color-text);
}

.card__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-12) 0;
  color: var(--color-accent);
}

.card__arrow svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   8. TIMELINE — METHOD
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px; /* center of 48px numbered chips */
  width: 2px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
}

.step {
  position: relative;
  padding: 0 0 var(--space-32) calc(var(--space-48) + var(--space-24));
}

.step:last-child {
  padding-bottom: 0;
}

.step--number {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-mono);
}

.step__content h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-8);
}

.step__content p {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Horizontal grid on desktop */
@media (min-width: 1024px) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
  }

  .timeline::before {
    display: none;
  }

  .step {
    padding: 0;
  }

  .step--number {
    position: static;
    margin-bottom: var(--space-16);
  }
}

/* --------------------------------------------------------------------------
   9. NOSOTROS — STORY, QUOTE, PILLARS, CTA PANEL
   -------------------------------------------------------------------------- */
.nosotros__story {
  max-width: 76ch;
  margin-bottom: var(--space-48);
}

.nosotros__story p {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.nosotros__story p + p {
  margin-top: var(--space-16);
}

.nosotros__quote {
  position: relative;
  max-width: 60ch;
  margin: 0 0 var(--space-48);
  padding: var(--space-8) 0 var(--space-8) var(--space-24);
  border-left: 3px solid var(--color-accent);
}

.nosotros__quote p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-wide);
  color: var(--color-text);
}

/* Pillars */
.card--pillar p {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.card--pillar h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-12);
}

/* CTA panel */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  margin-top: var(--space-48);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-graphite) 100%);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.cta-panel__content .kicker {
  margin-bottom: var(--space-8);
  color: var(--color-accent-on-dark);
}

.cta-panel__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  margin: 0;
}

/* Móvil: el botón ocupa todo el ancho del panel. */
.cta-panel .button {
  align-self: stretch;
}

@media (min-width: 768px) {
  .cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-panel .button {
    align-self: auto;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   10. INSIGHTS — BADGE, DESCRIPTION, CHIPS
   -------------------------------------------------------------------------- */
.insights__status {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: var(--space-4) var(--space-16);
  margin-bottom: var(--space-16);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.insights__description {
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-24);
}

.insights__topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-8) var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  transition: var(--transition-fast);
}

.chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.insights__note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Tarjeta de artículo en la portada (spec: specs/insights-seo/spec.md) */
.insights__featured {
  max-width: 760px;
  margin: 0 auto var(--space-48);
  text-align: left;
}

.card--insight .kicker {
  margin-bottom: var(--space-12);
}

.card--insight .card__title {
  margin-bottom: var(--space-12);
}

.card--insight .card__title a {
  color: inherit;
  text-decoration: none;
}

.card--insight .card__title a:hover {
  color: var(--color-accent);
}

.card__meta {
  margin: var(--space-16) 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10b. ARTÍCULO (páginas de /insights/)
   -------------------------------------------------------------------------- */
.article-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.article-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 72px;
}

.article {
  padding-block: var(--space-48) var(--space-96);
}

.article__container {
  max-width: 760px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: 0 0 var(--space-32);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumb__list li + li::before {
  content: "›";
  margin-right: var(--space-8);
}

.article__head {
  margin-bottom: var(--space-48);
}

.article__title {
  margin: var(--space-12) 0 var(--space-24);
  /* Fluido: en móvil las palabras largas ("Posicionamiento") caben enteras. */
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, var(--fs-h1));
  line-height: var(--lh-heading);
  overflow-wrap: break-word;
}

.article__lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

.article__meta {
  margin: var(--space-24) 0 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.article__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.article__body h2 {
  margin: var(--space-48) 0 var(--space-16);
  font-size: var(--fs-h3);
}

.article__body p,
.article__body ul,
.article__body ol {
  margin: 0 0 var(--space-16);
}

.article__body ul,
.article__body ol {
  padding-left: 1.25rem;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li::marker {
  color: var(--color-accent);
}

.article__body li + li {
  margin-top: var(--space-8);
}

.article__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background-color: var(--color-light);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

.article__cta {
  margin-top: var(--space-64);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text-on-dark);
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-graphite) 100%);
  border-radius: var(--radius-xl);
}

.article__cta .kicker {
  color: var(--color-accent-on-dark);
}

.article__cta-title {
  margin: var(--space-8) 0 var(--space-12);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.article__cta p:not(.kicker):not(.article__cta-title) {
  color: var(--color-text-muted-dark);
}

.article__cta .button {
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   11. CONTACTO — CHANNELS & FORM
   -------------------------------------------------------------------------- */
.contacto__grid {
  display: grid;
  gap: var(--space-48);
  align-items: start;
}

.contacto__info .section-head {
  margin-bottom: var(--space-32);
}

.contacto__channels {
  display: grid;
  gap: var(--space-16);
}

.contacto__channel {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.contacto__channel svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contacto__channel-value {
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

/* Generic link */
.link {
  color: var(--color-accent);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Form panel — resets dark-scoped tokens so controls render light on navy */
.contacto__form {
  --color-border: #E1E6EF;
  --color-text: #0F172A;
  /* Texto secundario claro sobre el panel grafito (labels, notas, estado):
     #9AA7BF sobre #161A22 = 7.18:1 (AAA). Errores/éxito en variantes claras. */
  --color-text-muted: var(--color-text-muted-dark);
  --color-error: #F87171;
  --color-success: #4ADE80;

  display: grid;
  gap: var(--space-16);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background-color: var(--color-graphite);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.form-label__required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  /* #6B7280 sobre blanco = 4.83:1 (AA) y 3.69:1 de distinción frente al valor */
  color: #6B7280;
  opacity: 1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.form-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  cursor: pointer;
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Validation states */
.field-error {
  display: none;
  margin-top: var(--space-8);
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.field--error .form-input,
.field--error .form-select,
.field--error .form-textarea,
.form-field--error .form-input,
.form-field--error .form-select,
.form-field--error .form-textarea {
  border-color: var(--color-error);
}

.field--error .field-error,
.form-field--error .field-error {
  display: block;
}

/* Form status (aria-live) */
.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.form-status--success {
  color: var(--color-success);
  font-weight: var(--fw-medium);
}

.form-status--error {
  color: var(--color-error);
  font-weight: var(--fw-medium);
}

.contacto__form > .button {
  width: 100%;
}

@media (min-width: 768px) {
  .contacto__form {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16) var(--space-16);
  }

  .form-field:nth-child(7),
  .form-note,
  .contacto__form > .button,
  .form-status {
    grid-column: 1 / -1;
  }

  .contacto__form > .button {
    width: auto;
    justify-self: start;
  }
}

@media (min-width: 1024px) {
  .contacto__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-64);
  }
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-navy-deep);
  padding-top: var(--space-64);
  padding-bottom: var(--space-32);
}

.footer__grid {
  display: grid;
  gap: var(--space-48);
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  /* Chip blanco: el logotipo es oscuro y el footer es navy, así que se apoya
     sobre una placa clara para garantizar que el texto se lea bien. */
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.footer-brand__img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer__tagline {
  max-width: 30ch;
  margin: var(--space-16) 0 var(--space-24);
  color: var(--color-text-muted-dark);
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
}

.footer__social {
  display: flex;
  gap: var(--space-24);
}

.footer__social-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__social-link:hover {
  color: var(--color-accent);
}

.footer-column__title {
  margin-bottom: var(--space-16);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}

.footer-column__list {
  display: grid;
  gap: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.card--service,
.card--solution,
.card--pillar {
  height: 100%;
}

.footer-link {
  color: var(--color-text-muted-dark);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border-dark);
}

.footer__legal {
  font-size: var(--fs-xs);
  color: var(--color-text-muted-dark);
}

.footer__top {
  color: var(--color-text-muted-dark);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__top:hover {
  color: var(--color-accent-on-dark);
}

#year {
  font: inherit;
}

.link--arrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
}

.link--arrow::after {
  content: '↑';
  margin-left: var(--space-8);
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.link--arrow:hover::after {
  transform: translateY(-2px);
}

/* Variantes de dirección: avanzar (→) y volver (←). */
.link--next::after {
  content: '→';
}

.link--next:hover::after {
  transform: translateX(2px);
}

.link--back::after {
  content: none;
}

.link--back::before {
  content: '←';
  margin-right: var(--space-8);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-48) var(--space-32);
  }
}

@media (min-width: 1280px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: var(--space-64);
  }
}

/* --------------------------------------------------------------------------
   13. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: var(--transition-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Staggered delays — data-reveal-delay values used across the page */
[data-reveal-delay='80']  { --reveal-delay: 80ms; }
[data-reveal-delay='100'] { --reveal-delay: 100ms; }
[data-reveal-delay='150'] { --reveal-delay: 150ms; }
[data-reveal-delay='160'] { --reveal-delay: 160ms; }
[data-reveal-delay='200'] { --reveal-delay: 200ms; }
[data-reveal-delay='240'] { --reveal-delay: 240ms; }
[data-reveal-delay='300'] { --reveal-delay: 300ms; }
[data-reveal-delay='320'] { --reveal-delay: 320ms; }
[data-reveal-delay='400'] { --reveal-delay: 400ms; }
[data-reveal-delay='480'] { --reveal-delay: 480ms; }
[data-reveal-delay='500'] { --reveal-delay: 500ms; }
[data-reveal-delay='600'] { --reveal-delay: 600ms; }

/* --------------------------------------------------------------------------
   14. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

/* --------------------------------------------------------------------------
   15. PATRÓN DE REFERENCIA — TOPBAR / SOLUCIÓN DESTACADA / WHATSAPP
   -------------------------------------------------------------------------- */

/* Barra superior de contacto (sobre el header; se desplaza al hacer scroll) */
.topbar {
  background-color: var(--color-navy-deep);
  border-bottom: 1px solid var(--color-border-dark);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-16) var(--space-32);
  padding-block: var(--space-8);
}

.topbar__item {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted-dark);
}

.topbar__item a {
  color: var(--color-text-muted-dark);
  transition: color var(--dur-fast) var(--ease-out);
}

.topbar__item a:hover {
  color: var(--color-accent-on-dark);
}

@media (max-width: 639px) {
  .topbar__item--location {
    display: none;
  }
}

/* Solución destacada: bloque de dos columnas (texto + panel decorativo) */
.feature {
  position: relative; /* contenedor semántico; el layout vive en .feature__grid */
}

.feature__grid {
  display: grid;
  gap: var(--space-48);
  align-items: center;
}

.feature__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  box-shadow: var(--shadow-lg);
}

.feature__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.feature__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-32);
}

.feature__chip {
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-mono);
  white-space: nowrap;
}

.feature__chip--legacy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-muted-dark);
}

.feature__chip--modern {
  background: var(--color-accent-solid);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.feature__arrow {
  width: 28px;
  height: 28px;
  color: var(--color-accent-on-dark);
}

.feature__body {
  max-width: 58ch;
}

.feature__lead {
  margin: 0 0 var(--space-24);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.feature__list {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-32);
}

.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-size: var(--fs-body);
  line-height: var(--lh-small);
  color: var(--color-text-muted);
}

.feature__list li::before {
  content: '✓';
  flex: 0 0 auto;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-accent);
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24);
}

@media (min-width: 1024px) {
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
  }
}

/* Botón flotante de WhatsApp (verde oficial oscuro #1DA851: icono blanco 3.1:1, patrón de referencia) */
.whatsapp-float {
  position: fixed;
  right: var(--space-24);
  bottom: var(--space-24);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16);
  border-radius: var(--radius-full);
  background-color: #1DA851;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(29, 168, 81, 0.35);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 168, 81, 0.45);
}

@media (max-width: 639px) {
  .whatsapp-float {
    padding: var(--space-12);
  }

  .whatsapp-float__label {
    display: none;
  }
}
