:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d8dee8;
  --soft: #f3f6fa;
  --brand: #072146;
  --brand-light: #eaf3ff;
  --action: #087a3e;
  --action-dark: #056332;
  --bbva: #004481;
  --warning-bg: #fff8e7;
  --warning-line: #d69b22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--soft) 0, #fff 360px);
  font-size: 17px;
  line-height: 1.6;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--bbva);
}

.gtm-frame {
  display: none;
  visibility: hidden;
}

.site-header,
.site-footer,
main {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 6px;
}

.page-type {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

main {
  padding-block: 52px 64px;
}

.intro {
  max-width: 720px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--bbva);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.steps {
  padding: 0;
  margin: 34px 0 30px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-primary {
  padding: 28px;
  margin: 0 -28px;
  background: var(--brand-light);
  border: 2px solid var(--bbva);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.step-content > :last-child {
  margin-bottom: 0;
}

.code-value {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  margin: 14px 0 16px;
  color: var(--ink);
  background: #fff;
  border: 2px dashed var(--bbva);
  border-radius: 6px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.code-value:hover,
.code-value:focus-visible {
  background: #f8fbff;
}

.copy-icon {
  display: inline-flex;
  color: var(--bbva);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

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

.button:focus-visible,
.code-value:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #f4b940;
  outline-offset: 3px;
}

.button-copy {
  width: 100%;
  background: var(--action);
}

.button-copy:hover {
  background: var(--action-dark);
}

.button-bbva {
  background: var(--bbva);
}

.button-bbva:hover {
  background: var(--brand);
}

.status {
  min-height: 26px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.is-copied .code-value {
  border-style: solid;
  border-color: var(--action);
}

.is-copied .button-copy {
  background: var(--action-dark);
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf1f6;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  overflow-wrap: anywhere;
}

.disclosure {
  padding: 22px 24px;
  margin: 30px 0 40px;
  background: var(--warning-bg);
  border-left: 5px solid var(--warning-line);
}

.disclosure h2 {
  font-size: 21px;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.faq > h2 {
  margin-bottom: 12px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

summary {
  padding: 18px 34px 18px 0;
  cursor: pointer;
  font-weight: 800;
}

details p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 760px);
  }

  .site-header {
    min-height: 66px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .page-type {
    display: none;
  }

  main {
    padding-block: 34px 48px;
  }

  h1 {
    font-size: 33px;
  }

  h2 {
    font-size: 23px;
  }

  .lead {
    font-size: 17px;
  }

  .step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding-block: 24px;
  }

  .step-primary {
    padding: 20px 14px;
    margin-inline: -4px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .code-value {
    min-height: 66px;
    padding: 14px 8px;
    font-size: 24px;
  }

  .button {
    width: 100%;
  }

  .disclosure {
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  .button {
    transition: none;
  }
}
