/* ============================================================
   ONBOARDING — Split layout estilo Holded
   ============================================================ */

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

.ob-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8f9fb;
    min-height: 100vh;
}

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

/* ============================================================
   PANEL IZQUIERDO — Marca
   ============================================================ */
.ob-brand {
    width: 390px;
    min-width: 390px;
    background: linear-gradient(
        160deg,
        var(--secondary-dark-color, #212529) 0%,
        var(--secondary-color, #343A40) 100%
    );
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ob-brand__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 36px 32px;
}

.ob-brand__logo {
    margin-bottom: 52px;
}

.ob-brand__logo img {
    max-width: 160px;
    height: auto;
}

.ob-brand__content {
    flex: 1;
}

.ob-brand__headline {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ob-brand__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 32px;
}

.ob-brand__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ob-brand__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.ob-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--primary-color, #FF5000);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

/* ── Decorative mockup ── */
.ob-brand__footer {
    margin-top: auto;
    padding-top: 36px;
}

.ob-mockup {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.ob-mockup__bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ob-mockup__bar span:not(.ob-mockup__bar-title) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.ob-mockup__bar-title {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
}

.ob-mockup__body {
    padding: 14px 16px 16px;
}

.ob-mockup__kpis {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ob-mockup__kpi {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
}

.ob-mockup__kpi-val {
    height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 75%;
    margin-bottom: 5px;
}

.ob-mockup__kpi-val--accent {
    background: var(--primary-color, #FF5000);
    opacity: 0.7;
}

.ob-mockup__kpi-lbl {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    width: 55%;
}

.ob-mockup__charts {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 52px;
}

.ob-mockup__chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: rgba(255, 255, 255, 0.2);
}

.ob-mockup__chart-bar--1 { height: 35%; }
.ob-mockup__chart-bar--2 {
    height: 65%;
    background: var(--primary-color, #FF5000);
    opacity: 0.75;
}
.ob-mockup__chart-bar--3 { height: 50%; }
.ob-mockup__chart-bar--4 {
    height: 80%;
    background: var(--primary-color, #FF5000);
    opacity: 0.55;
}
.ob-mockup__chart-bar--5 { height: 42%; }
.ob-mockup__chart-bar--6 {
    height: 70%;
    background: var(--primary-color, #FF5000);
    opacity: 0.65;
}
.ob-mockup__chart-bar--7 { height: 55%; }

/* ============================================================
   PANEL DERECHO — Formulario
   ============================================================ */
.ob-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    overflow-y: auto;
}

/* Header sticky */
.ob-form-panel__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f3f5;
    padding: 15px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ob-form-panel__header img {
    max-width: 140px;
    height: auto;
}

.ob-login-hint {
    font-size: 14px;
    color: #6b7280;
}

.ob-link {
    color: var(--primary-color, #FF5000);
    text-decoration: none;
    font-weight: 600;
}

.ob-link:hover {
    text-decoration: underline;
}

/* Body */
.ob-form-panel__body {
    flex: 1;
    padding: 40px 48px 64px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Título */
.ob-form-title {
    margin-bottom: 32px;
}

.ob-form-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: -0.4px;
}

.ob-form-title p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Mensajes */
.ob-messages {
    margin-bottom: 24px;
}

.ob-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.ob-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ob-alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.ob-alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.ob-alert--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Steps */
.ob-step {
    margin-bottom: 36px;
}

.ob-step__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.ob-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary-color, #FF5000);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.ob-step__label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.1px;
}

/* Subsección de dirección */
.ob-subsection-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 0 0;
    margin-bottom: -4px;
}

.ob-icon {
    width: 13px;
    height: 13px;
}

/* Labels */
.ob-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ob-required {
    color: var(--primary-color, #FF5000);
    font-weight: 700;
}

/* Inputs */
.ob-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    min-height: 42px;
    appearance: none;
    -webkit-appearance: none;
}

.ob-input::placeholder {
    color: #b0b8c8;
    font-size: 13px;
}

.ob-input:hover:not(:focus) {
    border-color: #d1d5db;
}

.ob-input:focus {
    border-color: var(--primary-color, #FF5000);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #FF5000) 14%, transparent);
}

.ob-input--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.ob-input--ok {
    border-color: #16a34a;
}

.ob-field-hint {
    margin-top: 6px;
    font-size: 12px;
    min-height: 16px;
}

.ob-field-error {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.ob-field-ok {
    color: #15803d;
}

/* Select con chevron */
.ob-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Password field */
.ob-input-wrap {
    position: relative;
}

.ob-input--pass {
    padding-right: 42px;
}

.ob-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.ob-eye:hover { color: #374151; }
.ob-eye svg { width: 18px; height: 18px; }

/* Submit */
.ob-submit-area {
    padding-top: 8px;
}

.ob-btn-submit {
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--primary-color, #FF5000);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ob-btn-submit:hover {
    background: var(--primary-dark-color, #CC3F00);
}

.ob-btn-submit:active {
    transform: scale(0.99);
}

.ob-btn-arrow {
    font-size: 18px;
    line-height: 1;
}

.ob-legal {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .ob-shell {
        flex-direction: column;
    }

    .ob-brand {
        width: 100%;
        min-width: unset;
        height: auto;
        position: static;
    }

    .ob-brand__inner {
        padding: 32px 24px;
    }

    .ob-brand__footer {
        display: none;
    }

    .ob-brand__headline {
        font-size: 24px;
    }

    .ob-form-panel__header {
        padding: 14px 24px;
    }

    .ob-form-panel__body {
        padding: 28px 24px 48px;
    }
}

@media (max-width: 520px) {
    .ob-brand__list {
        display: none;
    }

    .ob-brand__logo {
        margin-bottom: 24px;
    }

    .ob-form-panel__header {
        padding: 12px 16px;
    }

    .ob-form-panel__body {
        padding: 24px 16px 40px;
    }

    .ob-form-title h2 {
        font-size: 22px;
    }
}
