/* The public page of veritmo.xuxo.net. It stands alone: its own tokens (nothing is imported from a dashboard), no external font or
   request. The scheme follows the system, light or dark. */
:root {
  color-scheme: light dark;
  --pg-bg: #f5f7f6;
  --pg-surface: #ffffff;
  --pg-surface-high: #e9eeed;
  --pg-ink: #101c1f;
  --pg-ink-dim: #4a6268;
  --pg-line: #d3dddd;
  --pg-accent: #1f6b55;
  --pg-on-accent: #ffffff;
  --pg-glow-a: rgb(36 160 120 / 0.22);
  --pg-glow-b: rgb(80 120 200 / 0.14);
  --pg-scrim: rgb(0 0 0 / 0.78);
  --pg-shadow: rgb(16 28 31 / 0.14);
  --pg-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pg-font-display: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pg-radius: 16px;
  --pg-radius-button: 12px;
  --pg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pg-gutter: clamp(16px, 5vw, 48px);
  --pg-max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pg-bg: #0b1316;
    --pg-surface: #111c20;
    --pg-surface-high: #19272c;
    --pg-ink: #e7eff0;
    --pg-ink-dim: #9db3b7;
    --pg-line: #24373d;
    --pg-accent: #6ec4a4;
    --pg-on-accent: #0a241d;
    --pg-glow-a: rgb(70 200 150 / 0.2);
    --pg-glow-b: rgb(100 140 230 / 0.16);
    --pg-shadow: rgb(2 10 12 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* The soft light behind the top of the page: the whole width, fading out, so it has no edge. */
body::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 36rem; z-index: -1; pointer-events: none;
  background: radial-gradient(40rem 22rem at 20% 30%, var(--pg-glow-a), transparent 70%), radial-gradient(34rem 20rem at 85% 10%, var(--pg-glow-b), transparent 70%); }
body { position: relative; overflow-x: clip; margin: 0; background: var(--pg-bg); color: var(--pg-ink); font: 17px/1.6 var(--pg-font); -webkit-text-size-adjust: 100%; }
a { color: inherit; }

/* One language at a time (site.js sets <html lang>); without the script, Spanish. */
html[lang='es'] [lang='en'],
html[lang='en'] [lang='es'] { display: none; }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pg-gutter);
  background: color-mix(in srgb, var(--pg-bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg-line);
}
.top__brand { font: 700 1.05rem var(--pg-font-display); letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.top__nav { display: flex; gap: 20px; font-size: 0.95rem; }
.top__nav a { text-decoration: none; color: var(--pg-ink-dim); padding: 8px 0; }
.top__nav a:hover { color: var(--pg-ink); }
.top__lang { display: flex; border: 1px solid var(--pg-line); border-radius: 999px; overflow: hidden; }
.top__lang button { font: 600 0.8rem var(--pg-font); min-width: 44px; min-height: 36px; border: 0; background: transparent; color: var(--pg-ink-dim); cursor: pointer; }
.top__lang button[aria-pressed='true'] { background: var(--pg-accent); color: var(--pg-on-accent); }
@media (max-width: 600px) { .top__nav { display: none; } }

main, .foot { max-width: var(--pg-max); margin-inline: auto; padding-inline: var(--pg-gutter); }

.hero { position: relative; padding-block: clamp(56px, 12vw, 128px) clamp(40px, 8vw, 88px); isolation: isolate; }
.hero--center { min-height: 70vh; display: grid; align-content: center; }
.eyebrow { margin: 0 0 12px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pg-accent); }
h1 { margin: 0 0 20px; max-width: 18ch; font: 800 clamp(2.2rem, 6.5vw, 4.2rem)/1.05 var(--pg-font-display); letter-spacing: -0.03em; text-wrap: balance; }
.hero__lead { max-width: 40rem; margin: 0 0 28px; font-size: 1.15rem; color: var(--pg-ink-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.hero__note { margin: 0; font-size: 0.9rem; color: var(--pg-ink-dim); }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  font: 600 1rem var(--pg-font); text-decoration: none;
  color: var(--pg-ink); background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius-button);
  transition: transform 200ms var(--pg-ease), box-shadow 200ms var(--pg-ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1.25rem var(--pg-shadow); }
.button:active { transform: scale(0.98); }
.button--primary { color: var(--pg-on-accent); background: var(--pg-accent); border-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pg-ink); outline-offset: 3px; }

.section { padding-block: clamp(36px, 7vw, 72px); border-top: 1px solid var(--pg-line); }
h2 { margin: 0 0 12px; font: 700 clamp(1.6rem, 4vw, 2.3rem)/1.15 var(--pg-font-display); letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font: 700 1.1rem var(--pg-font-display); }
.section__lead, .section__note { color: var(--pg-ink-dim); }
.section__note { margin-top: 20px; font-size: 0.9rem; }

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
#requisitos .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card { padding: 20px; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.card__list { margin: 0; padding-left: 1.1rem; color: var(--pg-ink-dim); font-size: 0.97rem; }
.card__list li { margin: 0 0 8px; }
.card__list strong, .card p strong { color: var(--pg-ink); }
.card p.card__links { margin-top: 12px; font-size: 0.92rem; }
.card p.card__links a { color: var(--pg-accent); }
.card p { margin: 0; color: var(--pg-ink-dim); font-size: 0.97rem; }

.gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tile {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  color: #fff; background: var(--pg-surface-high); border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
  transition: transform 200ms var(--pg-ease), box-shadow 200ms var(--pg-ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 0.75rem 1.75rem var(--pg-shadow); }
.tile:active { transform: scale(0.98); }
.machine { margin: 24px 0 0; padding: 18px 20px; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.machine p { margin: 0 0 12px; color: var(--pg-ink-dim); font-size: 0.97rem; }
.machine__specs { display: grid; gap: 10px 24px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.machine__time { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--pg-line); font-size: 0.92rem !important; }
.machine__specs dt { font: 600 0.78rem var(--pg-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pg-accent); }
.machine__specs dd { margin: 2px 0 0; font-size: 0.97rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tabs [role='tab'] {
  min-height: 44px; padding: 0 20px; font: 600 0.95rem var(--pg-font); cursor: pointer;
  color: var(--pg-ink-dim); background: transparent; border: 1px solid var(--pg-line); border-radius: 999px;
  transition: transform 200ms var(--pg-ease), background-color 200ms var(--pg-ease);
}
.tabs [role='tab']:hover { color: var(--pg-ink); transform: translateY(-1px); }
.tabs [role='tab']:active { transform: scale(0.98); }
.tabs [role='tab'][aria-selected='true'] { color: var(--pg-on-accent); background: var(--pg-accent); border-color: transparent; }
.gallery[hidden] { display: none; }
.gallery--tracks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.track { padding: 18px 20px; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.track p { margin: 0 0 12px; color: var(--pg-ink-dim); font-size: 0.97rem; }
.track audio { display: block; width: 100%; }
.track--note { grid-column: 1 / -1; background: var(--pg-surface-high); }
.prompt-text { margin: 0 0 8px; color: var(--pg-ink); font-size: 1rem; }
.prompt-source { margin: 0; color: var(--pg-ink-dim); font-size: 0.82rem; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 28%; }
.tile__badge { position: absolute; top: 10px; right: 10px; padding: 3px 10px; font: 600 0.78rem var(--pg-font); background: var(--pg-scrim); border-radius: 999px; }
.tile__title { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; font: 600 0.95rem var(--pg-font); background: linear-gradient(transparent, var(--pg-scrim)); }

.foot { padding-block: 32px 48px; font-size: 0.88rem; color: var(--pg-ink-dim); border-top: 1px solid var(--pg-line); }
.foot p { margin: 0; }

.viewer { width: min(64rem, 96vw); max-height: 94vh; padding: 0; color: var(--pg-ink); background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.viewer::backdrop { background: var(--pg-scrim); }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--pg-line); }
.viewer__title { flex: 1; margin: 0; font: 600 1rem var(--pg-font); }
.viewer__close { min-width: 44px; min-height: 44px; font-size: 1.1rem; color: var(--pg-ink); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.viewer__close:hover { background: var(--pg-surface-high); }
.viewer__stage img, .viewer__stage video { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #000; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .tile, .tabs [role='tab'] { transition: none; }
}

.tile__time { display: block; margin-top: 2px; font: 500 0.8rem var(--pg-font); opacity: 0.85; }
.track .card__list { margin: 0; padding-left: 1.1rem; color: var(--pg-ink-dim); font-size: 0.97rem; }
.track .card__list li { margin: 0 0 8px; }
.track .card__list strong { color: var(--pg-ink); }

/* The demos of the Access section: a grid of equal buttons, in as many rows as the width needs; the ones still being tried say so, small and apart. */
.demos__title { margin-top: 28px; }
.demos__note { margin-top: 0; }
.demos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.demos .button { width: 100%; justify-content: center; gap: 0.6em; text-align: center; }
.badge { font: 500 0.72rem var(--pg-font); letter-spacing: 0; text-transform: none; color: var(--pg-ink-dim); }
