/* Bpay Servicios Digitales, S.A. de C.V. — sitio corporativo.
   Premium utilitarian minimalism: warm monochrome canvas, editorial serif
   headings, 1px hairline borders, flat bento grids, muted pastel accents.
   System font stacks only — no external resources of any kind. */

:root {
  /* Canvas + surfaces */
  --canvas: #fbfbfa;
  --canvas-warm: #f7f6f3;
  --surface: #ffffff;
  --surface-sunken: #f9f9f8;

  /* Ink */
  --ink: #111111;
  --ink-soft: #2f3437;
  --ink-muted: #787774;
  --ink-faint: #9b9a97;

  /* Structure */
  --line: #eaeaea;
  --line-strong: #dedddb;

  /* Muted pastel accents */
  --pastel-blue: #e1f3fe;
  --pastel-blue-ink: #1f6c9f;
  --pastel-green: #edf3ec;
  --pastel-green-ink: #346538;
  --pastel-yellow: #fbf3db;
  --pastel-yellow-ink: #956400;

  /* Geometry */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Type */
  --sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
    Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas,
    'Liberation Mono', monospace;

  --measure: 1120px;
  --measure-text: 720px;
}

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

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--canvas);
  /* Ambient warmth: two very low-opacity radial light spots, never a gradient
     as a visible design element. */
  background-image:
    radial-gradient(48rem 32rem at 12% -6%, rgba(149, 100, 0, 0.035), transparent 70%),
    radial-gradient(42rem 30rem at 92% 8%, rgba(31, 108, 159, 0.03), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-text {
  max-width: var(--measure-text);
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

/* ---------------------------------------------------------------- Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ------------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

/* CSS-only wordmark — no image assets. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--canvas-warm);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--canvas-warm);
}

/* -------------------------------------------------------------- Typography */

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 600;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 58ch;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* -------------------------------------------------------------- Structure */

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.section-warm {
  background: var(--canvas-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
  max-width: 62ch;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head .sub {
  margin-top: 14px;
}

/* ----------------------------------------------------------------- Hero */

.hero {
  padding: 112px 0 88px;
}

.hero .eyebrow {
  margin-bottom: 22px;
}

.hero .display {
  max-width: 17ch;
}

.hero .lead {
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.hero-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}

.hero-meta dd {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.hero-meta dd a {
  color: var(--ink);
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 180ms ease, transform 140ms ease;
}

.btn:hover {
  background: #333333;
  border-color: #333333;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--canvas-warm);
  border-color: var(--ink-faint);
}

/* ------------------------------------------------------------- Bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: var(--line-strong);
}

.card-wide {
  grid-column: span 4;
}

.card-half {
  grid-column: span 3;
}

.card-third {
  grid-column: span 2;
}

.card h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--ink-muted);
}

.card p + p {
  margin-top: 12px;
}

.card .eyebrow {
  display: block;
  margin-bottom: 16px;
}

/* Minimal geometric glyphs drawn in CSS — no icon libraries, no emoji. */
.glyph {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--canvas-warm);
  margin-bottom: 20px;
  position: relative;
}

.glyph::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
}

.glyph-square::after {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.glyph-circle::after {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.glyph-line::after {
  width: 14px;
  height: 0;
  border-top: 1.5px solid var(--ink);
  box-shadow: 0 5px 0 -0.25px var(--ink), 0 -5px 0 -0.25px var(--ink);
}

.glyph-dot::after {
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
}

/* ------------------------------------------------------------------ Tags */

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 9999px;
  background: var(--canvas-warm);
  color: var(--ink-muted);
}

.tag-blue {
  background: var(--pastel-blue);
  color: var(--pastel-blue-ink);
}

.tag-green {
  background: var(--pastel-green);
  color: var(--pastel-green-ink);
}

.tag-yellow {
  background: var(--pastel-yellow);
  color: var(--pastel-yellow-ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

/* ----------------------------------------------------------------- Steps */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.steps p {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------- Definition rows */

.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.row dt,
.row .row-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 4px;
}

.row dd,
.row .row-val {
  font-size: 16px;
  color: var(--ink-soft);
}

.row dd strong {
  color: var(--ink);
  font-weight: 600;
}

.row-val-lg {
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.row-val-lg a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.row-val-lg a:hover {
  border-bottom-color: var(--ink);
}

.row-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------ Prose block */

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 44px;
}

.prose h3 {
  font-size: 1.0625rem;
  margin-top: 32px;
}

.prose p,
.prose li {
  font-size: 16px;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------- Callouts */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
}

.callout .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.callout p {
  font-size: 15px;
  color: var(--ink-muted);
}

.entity-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------------------------------------- CTA band */

.band {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  background: var(--canvas-warm);
}

.band-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.band .sub {
  margin-top: 12px;
}

/* -------------------------------------------------------------- Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  background: var(--canvas);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .entity-name {
  font-size: 1.05rem;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
  max-width: 42ch;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ------------------------------------------------------ Motion / reveals */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .card-wide,
  .card-half,
  .card-third {
    grid-column: span 3;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 56px 0;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero .display {
    max-width: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .card-wide,
  .card-half,
  .card-third {
    grid-column: span 1;
  }

  .card,
  .steps li {
    padding: 24px;
  }

  .callout {
    padding: 24px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .row dt,
  .row .row-key {
    padding-top: 0;
  }

  .band {
    padding: 64px 0;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    gap: 2px;
    margin-left: -11px;
  }
}

@media (max-width: 380px) {
  .wordmark-sub {
    display: none;
  }
}
