/* Nova Tree Studio — client widget styles.
   Palette and typography per SPEC §5.3. Mobile-first, no external assets. */

:root {
  --bg: #0c1210;
  --surface: #141d19;
  --surface-2: #182420;
  --gold: #c9a961;
  --gold-2: #e8d5a3;
  --ivory: #f4efe4;
  --green: #1f3d2e;
  --ink-dim: rgba(244, 239, 228, 0.64);
  --ink-faint: rgba(244, 239, 228, 0.56); /* >= 4.5:1 sobre #0c1210 (WCAG AA texto pequeño) */
  --line: rgba(201, 169, 97, 0.32);
  --line-faint: rgba(201, 169, 97, 0.14);
  --danger: #b3554d;
  --font-display: Didot, "Playfair Display", "Bodoni MT", Georgia, serif;
  --font-body: "Optima", "Gill Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gold-grad: linear-gradient(135deg, #c9a961 0%, #e8d5a3 55%, #c9a961 100%);
}

* { box-sizing: border-box; }

/* Keep [hidden] winning over any display rule (e.g. .topbar, .voice-row). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(120% 70% at 50% 0%, #131b16 0%, var(--bg) 62%) fixed;
  background-color: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

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

/* ---------- layout ---------- */

.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px calc(40px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line-faint);
}

.topbar-brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--ivory);
}

.demo-badge {
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}

.screen { display: none; }

.screen.is-active {
  display: block;
  animation: screen-in 320ms var(--ease);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.screen h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 34px 0 10px;
}

.sub {
  color: var(--ink-dim);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 26px;
  max-width: 42ch;
}

.sub.small { font-size: 13.5px; margin-bottom: 16px; }

.section-label {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin: 32px 0 14px;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms var(--ease), filter 200ms var(--ease),
    background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-grad);
  color: #12100a;
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ivory);
}

.btn-ghost:hover { border-color: var(--gold); }

.btn:disabled {
  cursor: default;
  filter: saturate(0.6) brightness(0.85);
  transform: none;
}

.btn.is-loading { color: transparent; }

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(18, 16, 10, 0.3);
  border-top-color: #12100a;
  animation: spin 800ms linear infinite;
}

.btn-ghost.is-loading::after {
  border-color: rgba(201, 169, 97, 0.3);
  border-top-color: var(--gold);
}

.btn-wide { max-width: 320px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ---------- welcome ---------- */

.welcome {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 48px 0;
}

.welcome-eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0;
}

.welcome-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 10vw, 46px);
  letter-spacing: 0.2em;
  margin: 0;
  padding-left: 0.2em; /* optically recenter the tracking */
}

.gold-rule {
  width: 68px;
  height: 1px;
  background: var(--gold-grad);
}

.welcome-subtitle {
  color: var(--ink-dim);
  max-width: 34ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.lang-btn + .lang-btn { border-left: 1px solid var(--line); }

.lang-btn.is-active {
  background: var(--gold-grad);
  color: #12100a;
  font-weight: 600;
}

.welcome-footnote {
  color: var(--ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 10px 0 0;
}

/* ---------- capture ---------- */

.capture-cards {
  display: grid;
  gap: 12px;
}

.capture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.capture-card:hover { border-color: var(--gold); }

.capture-card:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card-icon { color: var(--gold); margin-bottom: 4px; }

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.card-hint { color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0.06em; }

.preview-frame {
  margin: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.preview-frame img { width: 100%; }

/* ---------- loaders / rotating messages ---------- */

.loader-scene {
  min-height: 64vh;
  min-height: 64svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-faint);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

.rotator {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--ivory);
  margin: 0;
  max-width: 30ch;
  opacity: 1;
  transition: opacity 300ms var(--ease);
}

.rotator.is-out { opacity: 0; }

/* ---------- before / after slider ---------- */

.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  touch-action: none;
  background: var(--surface);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: var(--gold-grad);
}

.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.82);
  border: 1px solid var(--gold);
}

.ba-grip::before,
.ba-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--gold-2);
  border-left: 1.5px solid var(--gold-2);
}

.ba-grip::before {
  left: 8px;
  transform: translateY(-50%) rotate(-45deg);
}

.ba-grip::after {
  right: 8px;
  transform: translateY(-50%) rotate(135deg);
}

.ba-tag {
  position: absolute;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(12, 18, 16, 0.72);
  border: 1px solid var(--line-faint);
  border-radius: 3px;
  padding: 4px 8px;
  pointer-events: none;
}

.ba-tag-before { left: 10px; }
.ba-tag-after { right: 10px; }

/* Range input is the keyboard/AT path; pointers are handled on the container. */
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ba-range:focus-visible ~ .ba-handle .ba-grip,
.ba-slider:has(.ba-range:focus-visible) .ba-grip {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- design ---------- */

.attempts {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: background-color 300ms var(--ease);
}

.dot.is-used { background: var(--gold-grad); }

.attempts-caption {
  text-align: center;
  color: var(--ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 10px 0 0;
}

.samples { display: grid; gap: 12px; }

.sample {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  color: var(--ivory);
  cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.sample:hover { border-color: var(--gold); }

.sample.is-selected {
  border-color: var(--gold);
  background: linear-gradient(0deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.08)), var(--surface);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.sample-swatch {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.swatch-1 { background: linear-gradient(135deg, #1f3d2e 0 55%, #c9a961 55% 100%); }
.swatch-2 { background: linear-gradient(135deg, #eef1f4 0 40%, #8f9aa4 40% 70%, #d7dde2 70% 100%); }
.swatch-3 { background: linear-gradient(135deg, #e8d5a3 0 40%, #e9c9c0 40% 70%, #cfe3da 70% 100%); }

.sample-text { display: flex; flex-direction: column; gap: 3px; }

.sample-name {
  font-family: var(--font-display);
  font-size: 17.5px;
  letter-spacing: 0.03em;
}

.sample-desc { color: var(--ink-dim); font-size: 13px; line-height: 1.45; }

.voice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mic-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
    box-shadow 300ms var(--ease);
}

.mic-btn:hover { background: var(--surface-2); }

.mic-btn.is-listening {
  background: var(--gold-grad);
  color: #12100a;
  animation: mic-pulse 1.6s var(--ease) infinite;
}

.mic-btn.is-processing {
  color: transparent;
  position: relative;
}

.mic-btn.is-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  animation: spin 800ms linear infinite;
}

@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(201, 169, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
}

.mic-status {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  min-width: 12ch;
}

/* ---------- form elements ---------- */

textarea,
.field input {
  width: 100%;
  background: #0f1613;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding: 13px 14px;
  transition: border-color 200ms var(--ease);
}

textarea { resize: vertical; min-height: 96px; }

textarea:focus,
.field input:focus {
  outline: none;
  border-color: var(--gold);
}

textarea::placeholder,
.field input::placeholder { color: var(--ink-faint); }

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

.field > span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--danger); }

/* ---------- viewer ---------- */

.pano {
  position: relative;
  height: min(56vh, 440px);
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  touch-action: none;
  cursor: grab;
}

.pano.is-dragging { cursor: grabbing; }

.pano img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  opacity: 1;
  transition: opacity 300ms var(--ease);
}

.pano.is-loading img { opacity: 0.25; }

.pano.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line-faint);
  border-top-color: var(--gold);
  animation: spin 800ms linear infinite;
}

.pano-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(12, 18, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 400ms var(--ease);
}

.pano-hint.is-gone { opacity: 0; }

.relight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
  background: rgba(20, 29, 25, 0.7);
}

.relight-btn {
  position: relative;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 6px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.relight-btn:first-child { border-left: 0; }

.relight-btn.is-active {
  background: var(--gold-grad);
  color: #12100a;
}

.relight-btn:disabled { cursor: default; }

.relight-btn.is-loading .relight-label { visibility: hidden; }

.relight-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  animation: spin 800ms linear infinite;
}

.about {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.about summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.04em;
  position: relative;
}

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

.about summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 18px;
  transition: transform 200ms var(--ease);
}

.about[open] summary::after {
  content: "\2212"; /* minus sign */
}

.about-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line-faint);
}

.about-body p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 14px 0 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 16px 0 0;
}

.facts .fact { min-width: 0; }

.facts dt {
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.facts dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ivory);
  overflow-wrap: break-word;
}

/* ---------- exhausted ---------- */

.thumbs {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
}

/* ---------- done ---------- */

.done-mark {
  width: 74px;
  height: 74px;
  margin: 64px auto 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 486px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px 16px 11px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  z-index: 40;
  animation: toast-in 300ms var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-msg {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ivory);
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.toast-btn {
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.toast-btn-quiet { color: var(--ink-faint); }

/* ---------- noscript ---------- */

.noscript {
  text-align: center;
  color: var(--ink-dim);
  padding: 40px 24px;
}

/* ---------- desktop refinement ---------- */

@media (min-width: 560px) {
  .screen h2 { font-size: 30px; }
  .capture-cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spinner,
  .btn.is-loading::after,
  .mic-btn.is-processing::after,
  .relight-btn.is-loading::after,
  .pano.is-loading::after {
    animation: spin 1.4s linear infinite !important;
    animation-duration: 1.4s !important;
  }

  .mic-btn.is-listening { animation: none !important; }
}

/* ---------- Traspaso a móvil por QR (pantalla de captura) ---------- */

.qr-handoff {
  margin-top: 22px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--surface);
}

.qr-handoff h3 {
  margin: 0 0 8px;
  font-family: Didot, "Playfair Display", "Bodoni MT", Georgia, serif;
  font-weight: normal;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.qr-frame {
  margin: 18px auto 6px;
  width: 196px;
  padding: 10px;
  border-radius: 4px;
  background: var(--ivory);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 16px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--gold);
}

.qr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: qr-pulse 1.6s ease-in-out infinite;
}

@keyframes qr-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .qr-dot { animation: none; }
}

/* ---------- Recorrido por fases (stepper bajo la barra superior) ---------- */

.journey {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.journey-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

/* conector entre pasos */
.journey-step + .journey-step::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 50%;
  width: calc(100% - 26px);
  transform: translateX(calc(-13px));
  border-top: 1px solid rgba(201, 169, 97, 0.28);
}

.journey-step.is-done + .journey-step::before,
.journey-step.is-current::before {
  border-top-color: var(--gold);
}

.journey-num {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: var(--surface);
  font-size: 11px;
  color: rgba(244, 239, 228, 0.55);
  transition: all 250ms ease;
}

.journey-step.is-current .journey-num {
  border-color: var(--gold);
  background: var(--gold-grad);
  color: #0c1210;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.journey-step.is-done .journey-num {
  border-color: var(--gold);
  color: var(--gold);
  font-size: 0;
}

.journey-step.is-done .journey-num::after {
  content: "\2713";
  font-size: 11px;
}

.journey-name {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.45);
  transition: color 250ms ease;
}

.journey-step.is-current .journey-name { color: var(--gold-2); }
.journey-step.is-done .journey-name { color: rgba(244, 239, 228, 0.65); }

/* ---------- "Cómo funciona" en la portada ---------- */

.how-title {
  margin: 26px 0 12px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.how {
  margin: 0 auto 6px;
  padding: 0;
  max-width: 340px;
  list-style: none;
  text-align: left;
}

.how li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244, 239, 228, 0.82);
}

.how-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.5);
  font-size: 11px;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
