/*
 * verisello.es — one stylesheet, served from this origin (no inline styles:
 * the Content-Security-Policy allows none). The colours, type and tile are the
 * console's (apps/console/src/styles.css): the same brand on both sides of the
 * «Empezar gratis» button.
 */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --ink: #0f1c2e;
  --ink-soft: #46586f;
  --ink-faint: #7c8ba0;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --line: #e3e8ef;
  --line-strong: #dbe3ee;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-deep: #1e3a8a;
  --accent-light: #7ba3ff;
  --navy: #0b1a33;
  --navy-deep: #081226;
  --on-navy: #e8eefc;
  --on-navy-soft: #c9d6ee;
  --on-navy-faint: #8ea2c4;
  --live: #4ade80;
  --ok: #15803d;
  --amber-bg: #fffbeb;
  --amber-line: #fcd34d;
  --amber-soft: #fef3c7;
  --amber-ink: #78350f;
  --amber-text: #92400e;
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

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

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--mono);
}

/* Icons: stroke drawings, coloured by the text around them. */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The brand navy with a guilloche rosette: the line-work of banknotes and
   official certificates, as on the console's sign-in panel. src/guilloche.mjs
   draws it; the build names the file after its hash and writes that name here. */
.seal-bg {
  background-color: var(--navy);
  background-image: url('/assets/guilloche.1aa107af4c.svg'), radial-gradient(120% 90% at 0% 0%, #17376f 0%, var(--navy) 55%, var(--navy-deep) 100%);
  background-repeat: no-repeat;
  background-position: right -320px bottom -380px, 0 0;
  background-size: 1100px 1100px, 100% 100%;
  color: var(--on-navy);
}

.date-tile.seal-bg {
  background-position: right -280px top -280px, 0 0;
  background-size: 560px 560px, 100% 100%;
}

.end.seal-bg {
  background-position: right -300px center, 0 0;
  background-size: 900px 900px, 100% 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font: 700 16px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn .ic {
  stroke-width: 2.2;
}

.btn-head {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 18px;
  box-shadow: 0 10px 30px rgb(37 99 235 / 40%);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-tall {
  min-height: 52px;
  font-size: 17px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgb(201 214 238 / 35%);
  border-radius: 12px;
  color: var(--on-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.btn-ghost-ink {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.btn-plain {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1.2 var(--sans);
  cursor: pointer;
}

/* ── Top strip ───────────────────────────────────────────────────────────── */

.strip {
  background: var(--navy);
  color: var(--on-navy-soft);
  font-size: 14px;
}

.strip-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
}

.strip strong {
  color: #ffffff;
  font-weight: 600;
}

.strip a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.strip a:hover {
  color: #ffffff;
}

.tag {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--accent-light);
  border-radius: 4px;
  padding: 2px 6px;
}

.tag-solid {
  color: #ffffff;
  background: var(--accent);
}

/* ── Header: stays on screen, and says where the reader is ─────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .top {
    background: rgb(255 255 255 / 86%);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.brand-tile {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 26%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.brand-tile svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.brand-words {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  display: block;
  width: 68.4px;
  height: 36px;
  overflow: visible;
  fill: currentColor;
}

.brand-wordmark text {
  font: 700 52.8px var(--sans);
  letter-spacing: -1.1px;
}

.brand-product {
  margin-top: -5.4px;
  padding-left: 3.5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.233em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding-left: 12px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}

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

.nav a.is-current {
  background: #eef2f8;
  color: var(--ink);
}

/* The same sections as chips, on the screens too narrow for the menu. */
.chips {
  display: none;
}

.signin {
  flex: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

/* The language switch: two links, a white pill under the current one that
   slides across when the other is chosen (site.js holds the navigation for
   the length of the slide). */
.lang {
  position: relative;
  flex: none;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: #eef2f8;
  border: 1px solid var(--line-strong);
}

.lang::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 1px 3px rgb(15 28 46 / 18%),
    0 0 0 1px var(--line-strong);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.lang[data-current='en']::before {
  transform: translateX(100%);
}

.lang a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.lang a:hover,
.lang a[aria-current='page'] {
  color: var(--ink);
}

.lang .code {
  font: 600 12px var(--mono);
  letter-spacing: 0.06em;
}

/* Where an in-page link lands: below the header that stays on screen. */
section[id],
.demo {
  scroll-margin-top: 84px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 80px);
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgb(74 222 128 / 12%);
  border: 1px solid rgb(74 222 128 / 35%);
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 600;
}

.live {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: live 2s ease-in-out infinite;
}

@keyframes live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(74 222 128 / 55%);
  }
  50% {
    box-shadow: 0 0 0 6px rgb(74 222 128 / 0%);
  }
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  color: #ffffff;
}

.accent {
  color: var(--accent-light);
}

.hero .lead {
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--on-navy-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.micro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--on-navy-soft);
  font-size: 15px;
}

.micro li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.micro .ic {
  width: 18px;
  height: 18px;
  stroke: var(--live);
  stroke-width: 2.4;
}

/* ── The demo: Sella, Envía, Listo — played in turn ──────────────────────── */

.demo {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(201 214 238 / 18%);
}

.demo-bar {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.demo-tabs {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.demo-tab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--on-navy-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.demo-tab:hover {
  background: rgb(255 255 255 / 6%);
  color: #ffffff;
}

.demo-tab[aria-selected='true'] {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.demo-tab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.demo-n {
  font: 600 12px var(--mono);
  opacity: 0.7;
}

.demo-track {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgb(201 214 238 / 20%);
  overflow: hidden;
}

.demo-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-light);
}

.demo-tab.is-done .demo-fill {
  width: 100%;
}

/* 5 s a step — site.js keeps the same time. Held (pointer or focus on it, out
   of view, tab hidden) or paused, the bar stops where it is. */
.demo[data-live] .demo-tab[aria-selected='true'] .demo-fill {
  animation: fill 5s linear both;
}

.demo[data-held] .demo-tab[aria-selected='true'] .demo-fill,
.demo[data-paused] .demo-tab[aria-selected='true'] .demo-fill {
  animation-play-state: paused;
}

@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.demo-pause,
.round {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
}

.demo-pause {
  border: 1px solid rgb(201 214 238 / 25%);
  background: transparent;
  color: var(--on-navy-soft);
  height: auto;
}

.demo-pause:hover {
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
}

.round {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.round:hover {
  background: #eef2f8;
}

.demo-pause .ic,
.round .ic {
  width: 18px;
  height: 18px;
}

.ic-play,
[data-paused] > .ic-pause {
  display: none;
}

[data-paused] > .ic-play {
  display: block;
}

.demo-stage {
  position: relative;
  height: 300px;
  border-radius: 14px;
  background: rgb(8 18 38 / 55%);
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.scene.is-active > * {
  animation: rise 0.5s ease-out both;
}

.scene.is-active > .aeat {
  animation-delay: 0.45s;
}

/* The invoice keeps its tilt while it rises. */
.scene-seal.is-active > .paper {
  animation-name: rise-paper;
}

@keyframes rise-paper {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: rotate(-2deg);
  }
}

/* The invoice, sealed. */
.paper {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 24px 50px rgb(0 0 0 / 35%);
  transform: rotate(-2deg);
}

.paper-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.paper-qr {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font: 600 7px var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.qr {
  display: block;
  width: 56px;
  height: 56px;
}

.paper-number {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  color: var(--ink-soft);
}

.paper-number .mono {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.paper-number strong {
  font-size: 16px;
  color: var(--ink);
}

/* Issuer above client, on the left: the stamp lands on the space beside them. */
.paper-parties {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.paper-parties div {
  display: flex;
  flex-direction: column;
  max-width: 62%;
}

.paper-parties span {
  color: var(--ink-soft);
}

.paper-parties .label {
  font-size: 10px;
  color: var(--ink-faint);
}

.paper-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
}

.paper-total strong {
  flex: none;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

.stamp {
  position: absolute;
  right: -30px;
  top: 92px;
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow:
    inset 0 0 0 4px #ffffff,
    inset 0 0 0 6px var(--accent);
  background: rgb(255 255 255 / 92%);
  color: var(--accent);
  transform: rotate(-12deg);
}

.scene.is-active .stamp {
  animation: stamp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

.stamp-ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stamp strong {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.stamp span {
  font: 600 8px var(--mono);
  letter-spacing: 0.1em;
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.7) rotate(-20deg);
  }
  55% {
    opacity: 1;
    transform: scale(0.93) rotate(-11deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-12deg);
  }
}

/* The record, on its way to AEAT. */
.mini-paper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 104px;
  height: 136px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgb(0 0 0 / 35%);
}

.mini-paper span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e3e8ef;
}

.mini-paper span:first-child {
  width: 60%;
  background: #c6d2e3;
}

.mini-paper span:nth-child(3) {
  width: 80%;
}

.mini-paper .mini-seal {
  margin-top: auto;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
}

.fly {
  color: var(--accent-light);
}

.fly .ic {
  width: 40px;
  height: 40px;
}

.scene.is-active > .fly {
  animation: fly 0.8s ease-out 0.15s both;
}

@keyframes fly {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.aeat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 170px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 35%);
}

.aeat strong {
  font-size: 16px;
}

.aeat .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-weight: 700;
}

.aeat .ok .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.toast-env {
  align-self: flex-start;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font: 600 10px var(--mono);
  letter-spacing: 0.06em;
}

/* The client's inbox. */
.mail {
  width: min(340px, 92%);
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 24px 50px rgb(0 0 0 / 35%);
}

.mail-head {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: #eef2f8;
}

.mail-head > span:last-child {
  color: var(--ink-soft);
}

.mail-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.mail-body > span {
  display: flex;
  flex-direction: column;
}

.mail-body > span > span {
  color: var(--ink-soft);
}

.qr-mail {
  flex: none;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* The steps' words. Without JavaScript all three; with it, the current one. */
.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  color: var(--on-navy-soft);
}

.demo-step strong {
  font-size: 17px;
  color: #ffffff;
}

.demo[data-live] .demo-steps {
  min-height: 70px;
}

.demo[data-live] .demo-step:not(.is-active) {
  display: none;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section-in {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 600 12px var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.intro .lead {
  font-size: 18px;
  color: var(--ink-soft);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}

.tile-soft {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Sections ease in as they come into view (site.js, never with reduced motion). */
.js .reveal {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ── Rows of cards: swiped on a phone, two at a time on a wide screen ─────── */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 2);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.rail > li {
  min-width: 0;
  scroll-snap-align: start;
}

.rail[data-live] {
  scrollbar-width: none;
}

.rail[data-live]::-webkit-scrollbar {
  display: none;
}

.rail-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
}

/* A 24-px target around an 8-px dot. */
.rail-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rail-dots button::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c6d2e3;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    background-color 0.2s;
}

.rail-dots button[aria-current='true']::before {
  width: 22px;
  background: var(--accent);
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-head h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.rail-arrows {
  display: flex;
  gap: 8px;
}

/* ── VERI*FACTU ──────────────────────────────────────────────────────────── */

.verifactu {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.vf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.vf-head .intro {
  flex: 999 1 520px;
}

/* Beside the intro they keep 440 px; on a row of their own they fill it. */
.dates {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
}

.count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.count strong {
  font: 600 40px/1 var(--mono);
  color: #ffffff;
}

.count span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}

.when {
  display: flex;
  flex-direction: column;
}

.when strong {
  font-size: 17px;
  color: #ffffff;
}

.when span {
  font-size: 14px;
  color: var(--on-navy-soft);
}

.dates-note {
  font-size: 13px;
  color: var(--ink-faint);
}

.reqs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.req-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.req-n {
  margin-left: auto;
  font: 600 12px var(--mono);
  color: var(--ink-faint);
}

.req-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.req-law,
.req-us {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
}

.req-law {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.req-us {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: var(--accent-deep);
}

.law-tag,
.us-tag {
  font: 600 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.law-tag {
  color: var(--ink-faint);
}

.us-tag {
  color: #1d4ed8;
}

.req-us > span:last-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.req-us .ic {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: var(--ok);
  stroke-width: 2.6;
}

.risk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
}

.risk-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #b45309;
}

.risk-ic .ic {
  width: 24px;
  height: 24px;
}

.risk-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.risk-text strong {
  font-size: 19px;
  line-height: 1.35;
  color: var(--amber-ink);
}

.risk-text span {
  font-size: 14px;
  color: var(--amber-text);
}

.risk .btn {
  flex: none;
}

.who-note {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.who-note summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.who-note summary::-webkit-details-marker {
  display: none;
}

.who-note .ic {
  width: 18px;
  height: 18px;
}

.who-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.who-note[open] .who-chevron {
  transform: rotate(90deg);
}

.who-note p {
  padding: 0 16px 14px 44px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ── How to start ────────────────────────────────────────────────────────── */

/* Side by side on a wide screen; a row to swipe, with tabs, on a phone. */
.rail-plans {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  scroll-snap-type: none;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

/* Its second pixel of blue is a ring outside the border, so both cards keep
 * the same box and their contents line up. */
.plan-now {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 40px rgb(37 99 235 / 14%);
}

.plan h3 {
  font-size: 26px;
  letter-spacing: -0.015em;
}

/* The title, and beside it «Muy pronto» while production is closed: one row in
 * both cards (the pill is shorter than the title's line), so the titles,
 * prices and lists of the two cards start at the same height. */
.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--ink);
  font: 600 12px var(--mono);
  letter-spacing: 0.1em;
}

.badge .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0;
}

.badge-solid {
  background: var(--accent);
  color: #ffffff;
}

.badge-solid .num {
  background: #ffffff;
  color: var(--accent);
}

.soon {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--amber-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: -10px;
  color: var(--ink-soft);
}

.price strong {
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ticks .ic {
  margin-top: 2px;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.ticks-ink .ic {
  stroke: var(--ink);
}

.plan-now .btn {
  margin-top: auto;
}

.founder {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 15px;
}

.founder .ic {
  width: 22px;
  height: 22px;
}

.more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.fine {
  font-size: 14px;
  color: var(--ink-soft);
}

.plan-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border-radius: 12px;
  background: #e9eef5;
}

.plan-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: 700 14px/1.2 var(--sans);
  cursor: pointer;
}

.plan-tabs button span {
  font-size: 12px;
  font-weight: 500;
}

.plan-tabs button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(15 28 46 / 18%);
}

/* ── Who it is for ───────────────────────────────────────────────────────── */

.who {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.rail-cards {
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  scroll-snap-type: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.card-tag {
  font-weight: 700;
  color: var(--accent-deep);
}

.card p:last-child {
  color: var(--ink-soft);
}

/* Whatever the trade: a line of sectors under the cards. */
.sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 22px;
}

.sectors-title {
  font-weight: 700;
  margin-right: 4px;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-list li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 14px;
}

/* The trust points glide past (site.js turns it on and gives it a pause button). */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 16px var(--gutter);
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 15px;
}

.ticker-list .ic {
  color: var(--accent);
}

.ticker:not([data-live]) .ticker-track {
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
}

.ticker:not([data-live]) .ticker-list[aria-hidden='true'] {
  display: none;
}

.ticker:not([data-live]) .ticker-list li {
  white-space: normal;
}

.ticker[data-live] .ticker-list {
  flex-wrap: nowrap;
  padding-right: 40px;
}

.ticker[data-live] .ticker-track {
  animation: ticker 40s linear infinite;
}

.ticker[data-live][data-paused] .ticker-track,
.ticker[data-live]:hover .ticker-track,
.ticker[data-live]:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.ticker-pause {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgb(15 28 46 / 12%);
}

/* ── Last call and footer ────────────────────────────────────────────────── */

.end-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.end-in > div {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.end h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  color: #ffffff;
}

.end p {
  font-size: 18px;
  color: var(--on-navy-soft);
}

.foot {
  background: var(--navy-deep);
  color: #9fb0cc;
  font-size: 14px;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.foot a {
  color: var(--on-navy-soft);
}

.foot a:hover {
  color: #ffffff;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.lang-foot {
  margin-left: auto;
  background: rgb(255 255 255 / 6%);
  border-color: rgb(201 214 238 / 20%);
}

.lang-foot::before {
  background: rgb(255 255 255 / 14%);
  box-shadow: none;
}

.lang.lang-foot a {
  color: var(--on-navy-faint);
  min-height: 36px;
}

.lang.lang-foot a:hover,
.lang.lang-foot a[aria-current='page'] {
  color: #ffffff;
}

.no-cookies {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.no-cookies .ic {
  width: 18px;
  height: 18px;
}

.binding {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── The phone's «Empezar gratis» bar ────────────────────────────────────── */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgb(15 28 46 / 8%);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

/* Off screen it is also out of reach of the keyboard. */
.dock:not(.is-shown) {
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

.dock.is-shown {
  transform: none;
}

.dock-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.dock-text strong {
  font-size: 14px;
}

.dock-text span {
  font-size: 12px;
  color: var(--ink-soft);
}

.dock .btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
}

body.has-dock .foot-in {
  padding-bottom: 92px;
}

/* ── The other-language card ─────────────────────────────────────────────── */

.lang-hint {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(340px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgb(15 28 46 / 25%);
  animation: rise 0.4s ease-out both;
}

body.has-dock .lang-hint {
  bottom: 92px;
}

.hint-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hint-head > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hint-head > span:last-child > span {
  color: var(--ink-soft);
  font-size: 14px;
}

.hint-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hint-actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

.hint-actions .btn-plain {
  flex: 1 1 auto;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.not-found {
  background: var(--paper);
}

.nf-in {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.nf-in section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.nf-in h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
}

.nf-in h2 {
  font-size: 24px;
}

.nf-in p {
  color: var(--ink-soft);
}

/* ── Narrower screens ────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .top .lang {
    margin-left: auto;
  }

  .chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px var(--gutter) 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chips a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .chips a.is-current {
    background: var(--ink);
    color: #ffffff;
  }

  section[id],
  .demo {
    scroll-margin-top: 124px;
  }

  .rail-cards {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 20px) / 2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

@media (max-width: 900px) {
  .req-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .top-in {
    height: 60px;
    gap: 10px;
  }

  .brand-tile {
    width: 32px;
    height: 32px;
  }

  .brand-wordmark {
    width: 60.8px;
    height: 32px;
  }

  .brand-product {
    margin-top: -4.8px;
    font-size: 8px;
  }

  .btn-head,
  .actions .btn-ghost {
    display: none;
  }

  .signin {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font-size: 14px;
  }

  .top .lang .name {
    display: none;
  }

  .top .lang a {
    min-width: 42px;
    padding: 0 8px;
  }

  .hero-in {
    gap: 22px;
  }

  .hero-copy {
    gap: 14px;
  }

  .btn-big {
    width: 100%;
  }

  .micro {
    font-size: 14px;
    gap: 6px 16px;
  }

  .demo {
    padding: 10px;
    gap: 10px;
  }

  .demo-tab {
    min-height: 48px;
    padding: 8px;
  }

  .demo-tab-head {
    font-size: 14px;
    gap: 6px;
  }

  .demo-stage {
    height: 236px;
  }

  .scene {
    gap: 10px;
  }

  .scene-seal .paper {
    transform: rotate(-2deg) scale(0.78);
  }

  .scene-seal.is-active > .paper {
    animation-name: rise-small;
  }

  .scene-send > * {
    zoom: 0.8;
  }

  .demo-step {
    font-size: 14px;
  }

  .section-in {
    gap: 18px;
  }

  .row-head h3 {
    font-size: 17px;
  }

  /*
   * One card at a time, all rows alike: a card is --card of the column, the
   * next one peeks in on the right, and the last one stops where the others
   * do (the room after it is the padding on the right) — never half of the
   * card before it showing on the left. The padding is a percentage of the
   * column; what it leaves of the row is the card, so a column is 100 %.
   * The gap is wider than the gutter, so not even the ring of the card
   * before shows at the edge.
   */
  .rail,
  .rail-plans,
  .rail-cards {
    --card: 88%;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 100%;
    gap: calc(var(--gutter) + 8px);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 calc(var(--gutter) + 100% - var(--card)) 6px var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
  }

  .rail-arrows {
    display: none;
  }

  .btn-tall {
    font-size: 16px;
  }

  .req {
    padding: 16px;
    gap: 10px;
  }

  .req-head {
    font-size: 16px;
  }

  .req-pair {
    gap: 8px;
  }

  .req-law,
  .req-us {
    padding: 10px 12px;
    font-size: 14px;
  }

  .date-tile {
    padding: 14px;
    gap: 6px;
  }

  .count strong {
    font-size: 30px;
  }

  .when strong {
    font-size: 15px;
  }

  .when span {
    font-size: 12px;
  }

  .risk {
    padding: 14px;
    gap: 10px;
  }

  .risk-ic {
    width: 36px;
    height: 36px;
  }

  .risk-text {
    flex-basis: calc(100% - 50px);
  }

  .risk-text strong {
    font-size: 16px;
  }

  .risk .btn {
    width: 100%;
  }

  .plan {
    padding: 18px;
    gap: 12px;
  }

  .plan h3 {
    font-size: 21px;
  }

  .price strong {
    font-size: 34px;
  }

  .card {
    padding: 18px;
  }

  .ticker-list {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .end-in .btn-big {
    width: 100%;
  }

  .lang-foot {
    margin-left: 0;
  }
}

@media (min-width: 761px) {
  .plan-tabs,
  .dock {
    display: none !important;
  }
}

@keyframes rise-small {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(-2deg) scale(0.78);
  }
  100% {
    opacity: 1;
    transform: rotate(-2deg) scale(0.78);
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .top,
  .dock,
  .lang-hint {
    position: static;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rail {
    scroll-behavior: auto;
  }

  .js .reveal:not(.is-in) {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    width: auto;
  }

  .ticker .ticker-list[aria-hidden='true'],
  .ticker-pause {
    display: none !important;
  }

  .ticker .ticker-list {
    flex-wrap: wrap;
  }
}

/* «Contacto» (ADR-049): the form that opens a support enquiry. */
.contact-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 0.95rem;
}
.contact-error:target {
  display: flex;
}
.contact-error .ic {
  flex: none;
  width: 20px;
  height: 20px;
}
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-wide {
  grid-column: 1 / -1;
}
.contact-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.contact-field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}
.contact-consent a {
  color: var(--accent);
}
.contact-form .btn {
  justify-self: start;
}
.contact-fine {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.foot-contact {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-contact:hover {
  color: var(--ink);
}
.thanks-check {
  display: inline-flex;
  margin: 0 0 6px;
  color: var(--accent);
}
.thanks-check .ic {
  width: 44px;
  height: 44px;
}
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
