:root {
    --wizard-bg: #ffffff;
    --wizard-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    --primary: #6a11cb;
    --primary-alt: #b39ddb;
    --primary-dark: #4c0494;
    --step-circle-bg: #ffffff;
    --step-circle-color: #6a11cb;
    --step-line-color: rgba(255, 255, 255, 0.45);
    --border-soft: #e5e7eb;
    --form-radius: 0.75rem;
}

.registro-wrapper {
    min-height: 70dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background: radial-gradient(
        circle at top,
        #f5f3ff,
        #eef2ff 50%,
        #f9fafb 100%
    );
}

/* Wizard general */

.wizard {
    display: flex;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    background: var(--wizard-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--wizard-shadow);
}

/* Panel izquierdo */

.left-panel {
    background: linear-gradient(160deg, #6a11cb, #b39ddb);
    color: #fff;
    padding: 32px 26px;
    width: 35%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: "";
    position: absolute;
    inset: auto -40px 10% auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.35),
        transparent 60%
    );
    opacity: 0.7;
}

.left-panel-inner {
    position: relative;
    z-index: 1;
}

.left-panel h1.logo {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.left-panel-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.92;
}

.left-panel .step-title {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Step list */

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 22px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-list li.active {
    opacity: 1;
    transform: translateX(2px);
}

.steps-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--step-circle-bg);
    color: var(--step-circle-color);
    text-align: center;
    line-height: 26px;
    font-weight: 600;
    font-size: 0.9rem;
}

.steps-list li::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 30px;
    width: 2px;
    height: calc(100% - 28px);
    background: var(--step-line-color);
}

.steps-list li:last-child::after {
    display: none;
}

.steps-list li small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Panel derecho */

.right-panel {
    flex: 1;
    padding: 32px 26px;
    background: #ffffff;
}

@media (min-width: 992px) {
    .right-panel {
        padding: 40px 40px;
    }
}

/* Header */

.wizard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.wizard-header .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(179, 157, 219, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.wizard-header .icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.wizard-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.wizard-header p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Step content */

.step-content {
    animation: fadeIn 0.2s ease-out;
}

.step-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.step-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

/* Form layout */

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 0;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}

.form-control,
.form-select {
    border-radius: var(--form-radius);
    border: 1px solid var(--border-soft);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-alt);
    box-shadow: 0 0 0 0.12rem rgba(179, 157, 219, 0.45);
}

/* Options step */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.6rem;
    background: #f3f4f6;
    border-radius: 0.6rem;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.86rem;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        transform 0.08s ease;
}

.option-item input {
    margin: 0;
}

.option-item span {
    flex: 1;
}

.option-item.checked {
    background: #e0f2fe;
    border-color: #0ea5e9;
    transform: translateY(-1px);
}

/* Foto preview */

.preview-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-img {
    max-width: 150px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

/* Botones */

.step-actions {
    margin-top: 18px;
}

.btn-next,
.btn-prev {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.15s ease, color 0.15s ease,
        transform 0.08s ease, box-shadow 0.12s ease;
}

.btn-next {
    background: linear-gradient(135deg, #6a11cb, #b39ddb);
    color: #fff;
    box-shadow: 0 8px 18px rgba(106, 17, 203, 0.25);
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(106, 17, 203, 0.35);
}

.btn-prev {
    background: #e5e7eb;
    color: #374151;
}

.btn-prev:hover {
    background: #d1d5db;
}

.btn-next:active,
.btn-prev:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Helpers */

.d-none {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 767.98px) {
    .registro-wrapper {
        padding: 24px 10px 32px;
    }

    .wizard {
        flex-direction: column;
        border-radius: 0.75rem;
    }

    .right-panel {
        padding: 24px 16px 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}
