:root {
    --brand-1: #6d28d9;
    --brand-2: #4f46e5;
    --brand-3: #06b6d4;
    --bg-soft: #f7f7fb;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-soft);
    color: #1f2937;
}

h1, h2, h3, h4, .fw-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
}

.app-navbar {
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

.app-footer {
    background: #fff;
    border-top: 1px solid #eee;
}

.hero {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
    color: #fff;
    border-radius: 0 0 32px 32px;
    padding: 4rem 0 5rem;
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero p.lead {
    color: rgba(255, 255, 255, .9);
}

.step-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, .06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
}

.card-modern {
    border: none;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(17, 24, 39, .07);
}

.card-modern .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f4;
    border-radius: 18px 18px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.btn-brand {
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    border: none;
    color: #fff;
}

.btn-brand:hover {
    filter: brightness(1.08);
    color: #fff;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.wizard-steps .badge-step {
    padding: .5rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: #ece9fe;
    color: var(--brand-1);
}

.wizard-steps .badge-step.active {
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    color: #fff;
}

.wizard-steps .badge-step.done {
    background: #d1fae5;
    color: #047857;
}

#canvas-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    cursor: crosshair;
    user-select: none;
    max-width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

#badge-img { display: block; max-width: 100%; height: auto; }
#editor-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

#zona-form { background: #f8f9fc; border-radius: 12px; padding: 14px; }

.modelo-card {
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow .15s ease;
}

.modelo-card:hover { box-shadow: 0 8px 20px rgba(17,24,39,.1); }

.modelo-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #f1f1f5;
}

.dropzone {
    border: 2px dashed #c7c7f5;
    border-radius: 14px;
    padding: 2.5rem 1rem;
    text-align: center;
    background: #fbfaff;
    transition: border-color .15s ease, background .15s ease;
}

.dropzone.dragover {
    border-color: var(--brand-2);
    background: #efeeff;
}
