/* Onboarding pre-access: Squarespace-style split layout */

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

body.onboarding-body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
  background: #fff;
}

/* ── Split shell ────────────────────────────────────────────────────── */
.ob-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Left panel ─────────────────────────────────────────────────────── */
.ob-left {
  flex: 0 0 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 4rem 2.5rem 3.5rem;
  background: #fff;
  overflow-y: auto;
}

.ob-brand {
  flex-shrink: 0;
  margin-bottom: 3.5rem;
  display: block;
  text-decoration: none;
  color: inherit;
}

.ob-brand__logo {
  height: 22px;
  width: auto;
  display: block;
}

.ob-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
}

.ob-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.ob-subtitle {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 2.5rem;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.ob-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ob-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
}

.ob-step:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.ob-step__num {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding-top: 0.15rem;
  min-width: 1.75rem;
}

.ob-step__body {
  flex: 1;
  min-width: 0;
}

.ob-step__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.ob-step__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

/* ── Step active state ──────────────────────────────────────────────── */
.ob-step--active {
  background: #f8faff;
  border-radius: 12px;
  padding: 1.5rem;
  border-top: none;
  margin-top: 0;
}
.ob-step--active + .ob-step {
  border-top: 1px solid #e2e8f0;
}

/* ── Correo remitente input ─────────────────────────────────────────── */
.ob-correo-wrap {
  display: flex;
  align-items: center;
  margin-top: 0.875rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ob-correo-wrap:focus-within {
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.1);
}
.ob-correo-input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
}
.ob-correo-input::placeholder {
  color: #94a3b8;
}
.ob-correo-suffix {
  flex-shrink: 0;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #073f93;
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.ob-correo-preview {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}
.ob-correo-preview strong {
  color: #073f93;
  font-weight: 600;
}

/* ── Error message ──────────────────────────────────────────────────── */
.ob-error {
  font-size: 0.875rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  margin-top: 1rem;
}
.ob-error[hidden] { display: none; }

/* ── Bottom bar ─────────────────────────────────────────────────────── */
.ob-bottom {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 2.5rem;
}

.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ob-btn:hover {
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

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

.ob-btn:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 3px;
}

.ob-btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.ob-btn:hover .ob-btn__arrow {
  transform: translateX(3px);
}

/* ── Right panel (image) ────────────────────────────────────────────── */
.ob-right {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  overflow: hidden;
}

.ob-right__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ob-browse {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ob-browse:hover {
  background: rgba(15, 23, 42, 0.55);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ob-left {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 2rem 2.5rem;
  }
  .ob-right {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .ob-split {
    flex-direction: column;
  }
  .ob-left {
    flex: none;
    max-width: 100%;
    padding: 2rem 1.5rem 2rem;
    order: 2;
  }
  .ob-right {
    flex: none;
    max-width: 100%;
    height: 240px;
    order: 1;
  }
  .ob-brand {
    margin-bottom: 2rem;
  }
  .ob-bottom {
    padding-top: 2rem;
  }
  .ob-btn {
    width: 100%;
  }
  .ob-browse {
    top: 1rem;
    right: 1rem;
  }
}
