/* ═══════════════════════════════════════════════════════════════════════════
   Onboarding externo de creadores (rf-onboarding).
   Usa los tokens --ds-* de rf-tokens.css (design system, réplica de realfluencers.co).
   Flujo y campos: mock "Onboarding RealFluencers" (5 nov 2026).
   ═══════════════════════════════════════════════════════════════════════════ */

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ds-black);
  color: var(--ds-white);
  font-family: var(--ds-font-text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--ds-font-head); font-weight: 500; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }

/* ── Fondo ───────────────────────────────────────────────────────────────── */
.ob-fondo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(at 100% 100%, var(--ds-accent) 21%, var(--ds-black) 69%);
}
.ob-fondo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero-fondo.webp") 50% 100% / cover no-repeat;
  opacity: .28;
}
.ob-fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ds-black) 0%, rgba(2, 4, 7, .7) 45%, rgba(2, 4, 7, .35) 100%);
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ds-ancho);
  margin: 0 auto;
  padding: 22px 56px;
}
.ob-logo img { display: block; height: 30px; width: auto; }
.ob-nav-label { font-size: 13px; font-weight: 600; color: var(--ds-white-74); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.ob-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px;
  align-items: start;
  max-width: var(--ds-ancho);
  margin: 0 auto;
  padding: 48px 56px 96px;
}

/* ── Aside: titular + progreso ───────────────────────────────────────────── */
.ob-aside { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 28px; }
.ob-eyebrow { font-size: 16px; font-weight: 600; color: var(--ds-white); }
.ob-aside h1 { font-size: 60px; line-height: 1; }
.ob-aside h1 .neon { color: var(--ds-neon); display: block; }
.ob-aside .ob-lead { font-size: 20px; line-height: 1.3; color: var(--ds-white); max-width: 26em; }

.ob-pasos { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ob-pasos li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ds-white-63); }
.ob-pasos li i {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
}
.ob-pasos li.hecho { color: var(--ds-white-74); }
.ob-pasos li.hecho i { background: var(--ds-accent); border-color: var(--ds-accent); }
.ob-pasos li.ahora { color: var(--ds-white); }
.ob-pasos li.ahora i { border: 6px solid var(--ds-neon); }
.ob-tagline { font-family: var(--ds-font-head); font-size: 16px; color: var(--ds-neon); }

/* ── Tarjeta del formulario ──────────────────────────────────────────────── */
.ob-card {
  background: rgba(20, 20, 20, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--ds-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ob-card h2 { font-size: 32px; line-height: 1.1; }
.ob-card .ob-sub { font-size: 15px; color: var(--ds-white-74); }

/* ── Campos ──────────────────────────────────────────────────────────────── */
.ob-campo { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ds-white-74); }
.ob-control { position: relative; display: flex; }
.ob-campo input,
.ob-campo select,
.ob-campo textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--ds-navy);
  border-radius: 14px;
  background: rgba(2, 4, 7, .6);
  color: var(--ds-white);
  font-size: 16px;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ob-campo textarea { padding: 14px 18px; line-height: 1.45; resize: vertical; min-height: 140px; }
.ob-campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ob-campo select option { background: var(--ds-section); }
.ob-campo input::placeholder,
.ob-campo textarea::placeholder { color: rgba(255, 255, 255, .38); }
.ob-campo input:focus,
.ob-campo select:focus,
.ob-campo textarea:focus { outline: none; border-color: var(--ds-accent); box-shadow: 0 0 0 4px rgba(0, 155, 223, .2); }
.ob-campo.con-voz input,
.ob-campo.con-voz textarea { padding-right: 56px; }

.ob-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-fila.red { grid-template-columns: 150px 1fr; }

/* Micrófono para dictar (Web Speech API, sin costo; se oculta si el navegador no lo soporta) */
.ob-voz {
  position: absolute;
  right: 8px; top: 8px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--ds-white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, color .18s ease;
}
.ob-voz:hover { background: rgba(255, 255, 255, .16); }
.ob-voz.grabando { background: var(--ds-neon); color: var(--ds-surface-dk); animation: ob-pulso 1.2s ease-in-out infinite; }
.ob-voz svg { width: 16px; height: 16px; }
@keyframes ob-pulso { 50% { box-shadow: 0 0 0 6px rgba(231, 253, 1, .25); } }

.ob-check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(2, 4, 7, .45);
  font-size: 13px; line-height: 1.5; color: var(--ds-white-74);
}
.ob-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ds-accent); }
.ob-check a { color: var(--ds-accent); }

.ob-error { font-size: 14px; font-weight: 600; color: #FF8A80; }
.ob-sub a { color: var(--ds-accent); font-weight: 600; }
.ob-sub b { color: var(--ds-white); font-weight: 600; }
.ob-ya { text-align: center; }

/* ── Botones (mismos del corporativo) ────────────────────────────────────── */
.ob-acciones { display: flex; gap: 14px; margin-top: 6px; }
.ob-acciones .ob-btn--luz { flex: 1; }
.ob-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: var(--ds-pill);
  font-family: var(--ds-font-text);
  font-size: 16px; font-weight: 600; line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ob-btn--luz { background: var(--ds-white); color: var(--ds-primary); box-shadow: var(--ds-glow); }
.ob-btn--luz:hover { background: var(--ds-accent-hov); color: var(--ds-white); }
.ob-btn--borde { background: transparent; color: var(--ds-white); border-color: var(--ds-white); }
.ob-btn--borde:hover { background: var(--ds-white); color: var(--ds-primary); }
.ob-btn[disabled] { opacity: .55; cursor: wait; }

/* ── Confirmación ────────────────────────────────────────────────────────── */
.ob-ok {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(231, 253, 1, .12);
  color: var(--ds-neon);
  display: flex; align-items: center; justify-content: center;
}

.ob-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 12px;
  background: var(--ds-white); color: var(--ds-primary);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
}

/* ── Onboarding: bienvenida y opciones ───────────────────────────────────── */
.ob-eyebrow--neon { color: var(--ds-neon); }
.ob-opcion {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius);
  background: var(--ds-white);
  color: var(--ds-primary);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ob-opcion strong { font-family: var(--ds-font-head); font-size: 20px; font-weight: 500; }
.ob-opcion span { font-size: 14px; color: rgba(13, 20, 37, .7); }
.ob-opcion:hover { transform: translateY(-2px); box-shadow: var(--ds-glow); }
.ob-opcion--alt { background: rgba(2, 4, 7, .55); color: var(--ds-white); border-color: var(--ds-navy); }
.ob-opcion--alt span { color: var(--ds-white-74); }
.ob-opcion--alt:hover { border-color: var(--ds-accent); box-shadow: 0 10px 40px rgba(0, 155, 223, .25); }

/* ── Subida de archivos ──────────────────────────────────────────────────── */
.ob-drop {
  position: relative;
  min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 18px;
  border: 2px dashed var(--ds-accent);
  border-radius: var(--ds-radius);
  background: rgba(0, 155, 223, .06);
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease;
}
.ob-drop:hover { background: rgba(0, 155, 223, .12); }
.ob-drop strong { font-size: 16px; overflow-wrap: anywhere; }
.ob-drop small { font-size: 13px; color: var(--ds-white-74); }
.ob-drop input, .ob-slot input, .ob-avatar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ob-drop:focus-within, .ob-slot:focus-within, .ob-avatar:focus-within { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.ob-drop.tiene { border-style: solid; background: rgba(0, 155, 223, .14); }

/* ── Pasos ───────────────────────────────────────────────────────────────── */
.ob-progreso { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ds-white-74); }
.ob-barras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ob-barras span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.ob-barras span.on { background: var(--ds-neon); }

.ob-resumen {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--ds-navy);
  border-radius: 14px;
  background: rgba(2, 4, 7, .45);
}
.ob-resumen strong { font-size: 17px; }
.ob-resumen span { font-size: 14px; color: var(--ds-white-74); }

.ob-ayuda { margin-top: -10px; font-size: 12px; color: var(--ds-white-63); }

.ob-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--ds-pill); background: rgba(2, 4, 7, .6); border: 1px solid var(--ds-navy); }
.ob-tabs button { min-height: 42px; border: 0; border-radius: var(--ds-pill); background: transparent; color: var(--ds-white-74); font-size: 14px; font-weight: 600; cursor: pointer; }
.ob-tabs button[aria-selected="true"] { background: var(--ds-white); color: var(--ds-primary); }

.ob-grabadora { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--ds-navy); border-radius: var(--ds-radius); background: rgba(2, 4, 7, .45); }
.ob-grabadora audio { width: 100%; }
.ob-btn--rec { background: var(--ds-neon); color: var(--ds-surface-dk); }

.ob-quien { display: flex; align-items: center; gap: 16px; }
.ob-quien strong { display: block; font-size: 16px; }
.ob-quien small { font-size: 13px; color: var(--ds-white-74); }
.ob-avatar {
  position: relative;
  width: 84px; height: 84px; flex: none;
  border: 2px dashed var(--ds-accent);
  border-radius: 50%;
  background: rgba(0, 155, 223, .08);
  color: var(--ds-accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.ob-avatar img, .ob-slot img { width: 100%; height: 100%; object-fit: cover; }

.ob-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -8px; }
.ob-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2px dashed rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(2, 4, 7, .45);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--ds-white-63);
  overflow: hidden;
  cursor: pointer;
}
.ob-slot:hover { border-color: var(--ds-accent); }

.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.ob-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ds-navy);
  border-radius: var(--ds-pill);
  background: var(--ds-black-42);
  color: var(--ds-white-74);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ob-chip:hover { border-color: var(--ds-accent); color: var(--ds-white); }
.ob-chip[aria-pressed="true"] { background: var(--ds-white); border-color: var(--ds-white); color: var(--ds-primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ob-nav { padding: 18px 24px; }
  .ob-shell { grid-template-columns: 1fr; gap: 32px; padding: 24px 24px 72px; }
  .ob-aside { position: static; gap: 18px; }
  .ob-aside h1 { font-size: 42px; }
  .ob-aside .ob-lead { font-size: 17px; }
  .ob-pasos { display: none; }
  .ob-tagline { display: none; }
}
@media (max-width: 560px) {
  .ob-card { padding: 24px 20px; }
  .ob-card h2 { font-size: 26px; }
  .ob-fila, .ob-fila.red { grid-template-columns: 1fr; }
  .ob-acciones { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { .ob-voz.grabando { animation: none; } }
