/* Wizard del funnel web (/empezar y /en/start). Reusa los tokens de
   styles.css; el ámbar es el acento "premium" de los anuncios. */
.onboarding-page { background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; }
.onboarding-page .ob-header { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.ob-progress-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.ob-progress { flex: 1; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.ob-progress > div { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .25s ease; }
#progress-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.ob-main { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 8px 20px 40px; }
.ob-step h1 { font-size: 24px; margin: 10px 0 6px; color: var(--text); }
.ob-step .ob-sub { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 18px; }

.ob-options { display: grid; gap: 10px; }
.ob-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 16px;
  background: var(--surface); font: inherit; cursor: pointer; }
.ob-option img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.ob-option span { font-weight: 600; color: var(--text); }
.ob-option:hover { border-color: var(--primary); }
.ob-option[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }

.ob-slider-value { font-family: "Sora", sans-serif; font-size: 44px; font-weight: 700;
  color: var(--primary-dark); text-align: center; margin: 12px 0 4px; }
.ob-slider-hint { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; }
input[type="range"].ob-range { width: 100%; accent-color: var(--primary); }

.ob-field { margin-bottom: 14px; }
.ob-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ob-field input, .ob-field select { width: 100%; padding: 12px 14px; font: inherit;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.ob-field input:focus, .ob-field select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.ob-error { color: #b3362a; font-size: 13px; margin-top: 6px; }
.ob-error-store { display: inline-flex; margin-top: 10px; }
.ob-error-store[hidden] { display: none; }

.ob-actions { display: flex; gap: 10px; margin-top: 22px; }
.ob-btn-primary { flex: 1; padding: 15px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--primary); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px; }
.ob-btn-primary:disabled { opacity: .5; cursor: default; }
.ob-btn-small { flex: 0 0 auto; padding: 10px 16px; font-size: 14px; }
.ob-btn-ghost { padding: 10px 14px; border: 0; background: none; color: var(--text-secondary);
  font: inherit; font-weight: 600; cursor: pointer; }

.ob-final { text-align: center; padding-top: 24px; }
.ob-final .ob-check { width: 72px; height: 72px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 34px; line-height: 72px; margin: 0 auto 18px; }
.ob-final h1 { color: var(--text); }
.ob-final .ob-amber { color: #d9a441; }
.ob-final .btn-store { display: inline-block; margin-top: 18px; }

.ob-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  background: var(--primary-deep); color: #fff; border-radius: 16px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
/* El atributo `hidden` del banner queda sin efecto si no se pisa aquí: el
   `display: flex` de arriba tiene la misma especificidad y gana por orden. */
.ob-consent[hidden] { display: none; }
.ob-consent a { color: #f5d9a0; text-decoration: underline; }
.ob-consent p { flex: 1 1 260px; margin: 0; }
.ob-consent-actions { display: flex; gap: 8px; }
.ob-consent .ob-btn-ghost { color: #cfe3dd; }
.ob-noscript { padding: 30px 0; }

@media (min-width: 700px) { .ob-step h1 { font-size: 28px; } }
