:root {
    --brand-primary: #0f172a;
    --brand-accent: #2563eb;
    --surface-primary: #ffffff;
    --surface-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: rgba(148, 163, 184, .12);
    --portal-bg: #0a1020;
    --portal-card: rgba(255, 255, 255, .04);
    --transition: .35s cubic-bezier(.22, .61, .36, 1);
    --progress: #38bdf8;
    --progress-bg: #1f3e65;
    --success: #10b981;
    --wizard-sky-top: #041027;
    --wizard-sky-mid: #14355c;
    --wizard-sky-bottom: #3877c9;
    --wizard-sunrise: #ff8ba7;
    --wizard-neon: #8b5cf6;
    --wizard-card-bg: rgba(255, 255, 255, .88);
    --wizard-card-border: rgba(255, 255, 255, .28);
    --wizard-glass-shadow: 0 28px 68px rgba(7, 20, 45, .38);
}

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

html {
    height: 100%;
    scroll-behavior: smooth
}

body {
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--surface-secondary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(248, 250, 252, .86);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 18px 32px rgba(15, 23, 42, .08)
}

.app-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px
}

.app-bar__brand-area {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0
}

.app-bar__brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-primary);
    letter-spacing: -.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.app-bar__context {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .18);
    color: var(--brand-primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05)
}

.app-bar__context-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    color: #1d4ed8
}

.app-bar__context-sub {
    font-size: .78rem;
    color: #475569
}

.app-bar__nav {
    margin-left: auto;
    display: flex;
    gap: 18px;
    align-items: center
}

.app-bar__link {
    position: relative;
    font-weight: 600;
    font-size: .95rem;
    color: #334155;
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s ease
}

.app-bar__link:hover {
    color: var(--brand-accent)
}

.app-bar__link.is-active {
    color: var(--brand-primary)
}

.app-bar__badge {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    font-weight: 700;
    font-size: .72rem
}

.app-bar__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 18px
}

@media (max-width:960px) {
    .app-bar__inner {
        flex-wrap: wrap;
        row-gap: 12px;
        padding: 14px 18px
    }

    .app-bar__nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        gap: 14px;
        flex-wrap: wrap
    }

    .app-bar__actions {
        margin-left: auto
    }
}

@media (max-width:720px) {
    .app-bar {
        background: #fff;
        border-bottom: 1px solid rgba(148, 163, 184, .16);
        box-shadow: none;
        backdrop-filter: none
    }

    .app-bar__inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px 16px
    }

    .app-bar__brand-area {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: space-between;
        gap: 12px
    }

    .app-bar__context {
        display: none
    }

    .app-bar__nav {
        display: none
    }

    .app-bar__actions {
        order: 2;
        margin-left: 0;
        width: auto;
        justify-content: flex-end
    }
}

@media (max-width:480px) {
    .app-bar__inner {
        padding: 10px 14px
    }

    .app-bar__brand {
        font-size: 1.02rem
    }

    .app-bar__nav {
        gap: 8px;
        font-size: .88rem
    }

    .app-bar__link {
        padding: 4px 0
    }

    .app-bar__context {
        margin-top: 2px
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px
}

@media (max-width:768px) {
    .container {
        padding: 20px 18px
    }
}

@media (max-width:540px) {
    .container {
        padding: 18px 16px
    }
}

/* Portal with living aurora */
.portal {
    position: relative;
    min-height: calc(100vh - 64px);
    padding: 56px 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--portal-bg)
}

.portal::before,
.portal::after {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(40% 30% at 20% 20%, rgba(37, 99, 235, .18), transparent 60%),
        radial-gradient(35% 25% at 80% 0%, rgba(14, 165, 233, .20), transparent 60%),
        radial-gradient(45% 35% at 60% 90%, rgba(168, 85, 247, .18), transparent 60%);
    filter: blur(30px);
    animation: aurora 18s ease-in-out infinite alternate;
    pointer-events: none
}

.portal::after {
    animation-duration: 24s;
    opacity: .7;
    mix-blend-mode: screen
}

.portal__content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

.portal__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 26px
}

.portal__logo img {
    height: 66px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .95;
    transition: transform .3s ease
}

.portal__logo img:hover {
    transform: translateY(-2px)
}

.portal__header {
    text-align: center;
    margin: 12px 0 28px
}

.portal__title {
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #fff 0%, #cbd5e1 60%, #9aa6b2 100%);
    -webkit-background-clip: text;
    color: transparent
}

.portal__subtitle {
    color: #bfccda
}

.portal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 24px
}

.card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--portal-card);
    border-radius: 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    opacity: 0;
    transform: translateY(10px);
    animation: reveal .5s ease forwards
}

.card:nth-child(2) {
    animation-delay: .06s
}

.card:nth-child(3) {
    animation-delay: .12s
}

.card:nth-child(4) {
    animation-delay: .18s
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .08), transparent 40%);
    opacity: 0;
    transition: opacity .25s ease
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .28)
}

.card:hover::before {
    opacity: 1
}

.card__title {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 8px
}

.card__description {
    color: #cbd5e1;
    margin: 0 0 14px
}

.card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden
}

.card__button:hover {
    background: rgba(255, 255, 255, .12)
}

.wizard-shell {
    position: relative;
    margin-top: 32px;
    padding: 48px 48px 56px;
    border-radius: 36px;
    background: linear-gradient(150deg, var(--wizard-sky-top) 0%, var(--wizard-sky-mid) 48%, var(--wizard-sky-bottom) 100%);
    box-shadow: var(--wizard-glass-shadow);
    overflow: hidden;
    color: #e2e8f0
}

.wizard-shell::before {
    content: "";
    position: absolute;
    inset: -40% -20% 20%;
    background: radial-gradient(60% 45% at 20% 20%, rgba(56, 189, 248, .35), transparent 60%), radial-gradient(50% 40% at 78% 15%, rgba(248, 113, 113, .28), transparent 70%), radial-gradient(40% 30% at 60% 70%, rgba(139, 92, 246, .25), transparent 70%);
    opacity: .85;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: aurora 18s ease-in-out infinite alternate
}

.wizard-shell::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -18%;
    height: 240px;
    background: linear-gradient(180deg, rgba(4, 16, 39, .0) 0%, rgba(4, 16, 39, .75) 100%);
    clip-path: polygon(0% 100%, 12% 68%, 24% 82%, 37% 54%, 52% 74%, 66% 48%, 80% 78%, 92% 60%, 100% 72%, 100% 100%);
    opacity: .75;
    pointer-events: none
}

.wizard-brand {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 18px
}

.wizard-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .26));
    opacity: .94
}

.wizard-shell--compact {
    margin-top: 24px;
    padding: 36px 40px 40px;
    border-radius: 30px
}

.wizard-shell--compact .wizard-brand img {
    height: 46px
}

.wizard-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    margin: 0 auto 38px
}

.wizard-header::before {
    content: "";
    position: absolute;
    top: -90px;
    left: 50%;
    translate: -50% 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, var(--wizard-sunrise) 0%, rgba(255, 255, 255, .12) 65%, transparent 72%);
    filter: blur(0);
    opacity: .92;
    pointer-events: none
}

.wizard-header--compact::before {
    display: none
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .25)
}

.wizard-header h2 {
    margin: 20px 0 12px;
    font-size: clamp(2.2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.015em;
    color: #fff;
    text-shadow: 0 12px 40px rgba(10, 24, 55, .55)
}

.wizard-header--compact h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem)
}

.wizard-header p {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1.05rem;
    color: rgba(226, 232, 240, .92)
}

.wizard-header--compact p {
    max-width: 560px;
    font-size: .96rem
}

.wizard-progress {
    margin-top: 26px;
    padding: 22px 26px;
    border-radius: 24px;
    background: rgba(8, 25, 45, .55);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(4, 16, 39, .45);
    text-align: left
}

.wizard-progress__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden
}

.wizard-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    background: linear-gradient(90deg, var(--progress), var(--wizard-neon));
    border-radius: inherit;
    transition: width .45s cubic-bezier(.22, .61, .36, 1)
}

.wizard-progress__stops {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap
}

.wizard-shell--compact .wizard-progress {
    margin-top: 18px
}

.wizard-shell--compact .wizard-progress__stops {
    justify-content: center
}

.wizard-progress__stop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    color: rgba(226, 232, 240, .7);
    opacity: .55;
    transition: opacity .2s, color .2s, transform .2s
}

.wizard-progress__stop .bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .15);
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .35)
}

.wizard-progress__stop-label {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.wizard-progress__stop strong {
    display: block;
    font-size: .92rem;
    color: rgba(248, 250, 252, .94)
}

.wizard-progress__stop small {
    font-size: .8rem;
    color: rgba(226, 232, 240, .75);
    letter-spacing: .01em
}

.wizard-progress__stop.is-active,
.wizard-progress__stop.is-complete {
    opacity: 1;
    color: #fff;
    transform: translateY(-2px)
}

.wizard-progress__stop.is-active .bubble {
    background: linear-gradient(135deg, var(--progress), var(--wizard-neon));
    border-color: rgba(255, 255, 255, .6);
    box-shadow: 0 16px 28px rgba(15, 23, 42, .45)
}

.wizard-progress__stop.is-complete .bubble {
    background: linear-gradient(135deg, var(--progress), rgba(16, 185, 129, .9));
    border-color: rgba(255, 255, 255, .7)
}

.wizard {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 10px
}

.wizard::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(40% 30% at 80% 10%, rgba(255, 255, 255, .08), transparent 60%);
    opacity: .5;
    pointer-events: none
}

@media (max-width:1024px) {
    .wizard-shell {
        padding: 42px 36px 50px
    }

    .wizard-shell--compact {
        padding: 30px 32px 36px;
        border-radius: 26px
    }
}

@media (max-width:900px) {
    .wizard {
        grid-template-columns: 1fr;
        gap: 26px
    }
}

@media (max-width:768px) {
    .wizard-shell {
        padding: 34px 26px 40px;
        border-radius: 28px
    }

    .wizard-shell--compact {
        padding: 26px 22px 32px;
        border-radius: 24px
    }

    .wizard-progress {
        padding: 18px 20px
    }

    .wizard-progress__stops {
        justify-content: flex-start
    }

    .wizard-progress__stop {
        min-width: 150px
    }
}

@media (max-width:600px) {

    .wizard-shell,
    .wizard-shell--compact {
        margin-top: 0;
        padding: 18px 0 32px;
        border-radius: 0;
        background: transparent;
        box-shadow: none
    }

    .wizard-shell::before,
    .wizard-shell::after {
        display: none
    }

    .wizard-brand {
        display: none
    }

    .wizard-badge {
        display: none
    }

    .wizard-header {
        margin: 0 0 18px;
        padding: 0 14px;
        text-align: left
    }

    .wizard-header::before {
        display: none
    }

    .wizard-header h2 {
        font-size: clamp(1.5rem, 5.4vw, 1.95rem);
        color: #0f1c30;
        text-shadow: none
    }

    .wizard-header p {
        display: none
    }

    .wizard-progress {
        margin-top: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
        backdrop-filter: none;
        display: inline-flex;
        align-items: center;
        gap: 10px
    }

    .wizard-progress::before {
        content: attr(data-mobile-label);
        font-weight: 700;
        font-size: .9rem;
        color: #2563eb;
        letter-spacing: .02em
    }

    .wizard-progress[data-step]::before {
        content: "Paso "attr(data-step) " de "attr(data-steps-total);
    }

    .wizard-progress__track,
    .wizard-progress__stops {
        display: none
    }

    .wizard-progress__stop {
        display: none
    }

    .wizard-progress__stop .bubble {
        display: none
    }

    .wizard-progress__stop.is-active .bubble {
        background: linear-gradient(135deg, var(--progress), var(--wizard-neon));
        color: #fff
    }

    .wizard-progress__stop.is-complete .bubble {
        background: linear-gradient(135deg, var(--progress), rgba(16, 185, 129, .9));
        color: #fff
    }

    .wizard::after {
        display: none
    }

    .wizard {
        gap: 18px;
        padding: 0 14px
    }

    .wizard>section,
    .wizard>aside {
        padding: 0
    }

    .wizard>aside {
        margin-top: 18px
    }

    .wizard-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
        padding-top: 16px;
        gap: 10px
    }

    .wizard-actions__left,
    .wizard-actions__right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
        align-items: stretch
    }

    .wizard-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 14px
    }

    .wizard-inline-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px
    }

    .wizard-inline-input {
        width: 100%;
        justify-content: space-between
    }

    .wizard-inline-input input {
        flex: 0 0 120px
    }

    .wizard-inline-form {
        padding: 16px
    }

    .variant-card {
        padding: 14px 14px
    }

    .variant-card__qty {
        width: 100%
    }

    .variant-card__qty .qty-control {
        width: 100%
    }

    .qty-control {
        width: 100%;
        justify-content: space-between
    }

    .qty-control__input {
        width: 68px
    }

    .step-card {
        border-radius: 18px;
        box-shadow: 0 12px 22px rgba(15, 23, 42, .12);
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .18)
    }

    .step-card h3 {
        padding: 16px 18px;
        font-size: 1.04rem
    }

    .step-card .content {
        padding: 18px 18px 24px;
        gap: 18px
    }

    .wizard-choice {
        padding: 16px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(15, 23, 42, .12)
    }

    .catalog-shell {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        margin-top: 20px
    }

    .catalog-shell::after {
        display: none
    }

    .catalog-stage {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent
    }

    .catalog-footer {
        position: static;
        margin-top: 20px
    }

    .catalog-footer::before {
        display: none
    }

    .side {
        position: static;
        border-radius: 16px;
        padding: 18px;
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .18);
        box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
        color: #0f172a
    }

    .side td {
        border-bottom: 1px solid rgba(148, 163, 184, .18)
    }

    .side td:last-child {
        border-bottom: none
    }

    .side .right {
        color: #0f172a
    }

    .side .small {
        color: #475569
    }

    .totals-grid {
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 16px;
        padding: 16px;
        gap: 6px
    }

    .totals-grid strong {
        font-size: 1rem
    }

    input,
    textarea {
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .24);
        box-shadow: none
    }
}

@media (max-width:440px) {
    .wizard-inline-input {
        flex-direction: column;
        align-items: flex-start
    }

    .wizard-inline-input input {
        width: 100%;
        text-align: left;
        max-width: none
    }

    .wizard-inline-form {
        gap: 12px
    }

    .wizard-actions__left,
    .wizard-actions__right {
        flex-direction: column;
        gap: 10px
    }
}

.step-card {
    border: 1px solid var(--wizard-card-border);
    border-radius: 24px;
    background: var(--wizard-card-bg);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .55s ease .08s forwards;
    display: flex;
    flex-direction: column;
    overflow: visible;
    color: var(--text-primary)
}

.step-card h3 {
    margin: 0;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(255, 255, 255, .6));
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f1c30
}

.step-card .content {
    padding: 26px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px
}

.wizard-form {
    display: flex;
    flex-direction: column;
    flex: 1
}

.wizard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

@media (max-width:700px) {
    .row {
        grid-template-columns: 1fr
    }
}

label {
    display: block;
    font-weight: 700;
    margin: 6px 0 6px;
    color: #1f2937
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    font: inherit;
    transition: border-color .25s, box-shadow .25s;
    background: rgba(248, 250, 252, .92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08)
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--progress);
    box-shadow: 0 16px 34px rgba(56, 189, 248, .22)
}

textarea {
    min-height: 110px;
    resize: vertical
}

.small {
    color: #64748b;
    font-size: .92rem
}

.btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12)
}

.btn.primary {
    background: linear-gradient(135deg, var(--progress), var(--wizard-neon));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 32px rgba(56, 189, 248, .35)
}

.btn.secondary {
    background: rgba(15, 23, 42, .06);
    border-color: rgba(148, 163, 184, .18);
    color: #0f1c30
}

.btn.ghost {
    background: rgba(15, 23, 42, .04);
    border-color: rgba(148, 163, 184, .12);
    color: #1f2937
}

.btn.danger {
    color: #b91c1c
}

.btn:not(.primary):hover {
    background: rgba(15, 23, 42, .08);
    color: #0b1120
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, .12);
    color: #0b1120
}

.btn.primary:hover {
    filter: brightness(1.02);
    box-shadow: 0 20px 36px rgba(56, 189, 248, .42)
}

.btn.danger:hover {
    color: #7f1d1d
}

.btn .ink {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, .35);
    animation: ink .6s ease-out
}

@keyframes ink {
    to {
        transform: scale(3);
        opacity: 0
    }
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .22);
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    align-self: stretch
}

.wizard-actions--sticky {
    position: sticky;
    bottom: 24px;
    z-index: 25;
    margin-top: auto;
    background: rgba(248, 250, 252, .94);
    backdrop-filter: blur(16px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 36px rgba(15, 23, 42, .12)
}

.wizard-actions--sticky .btn {
    white-space: nowrap
}

.step-card .wizard-actions--sticky {
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
    border-top-color: rgba(148, 163, 184, .18)
}

.wizard-actions__left,
.wizard-actions__right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.wizard-body--intro {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    padding: 4px 0
}

.wizard-intro-media {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(99, 102, 241, .12));
    box-shadow: 0 26px 48px rgba(15, 23, 42, .24)
}

.wizard-intro-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.wizard-intro-content {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.wizard-intro-content .lead {
    max-width: 100%
}

@media (max-width:900px) {
    .wizard-body--intro {
        grid-template-columns: 1fr
    }
}

.lead {
    font-size: 1.05rem;
    color: #0f1c30;
    max-width: 680px;
    line-height: 1.6
}

.wizard-checklist {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(148, 163, 184, .25);
    box-shadow: 0 18px 32px rgba(15, 23, 42, .08)
}

.wizard-checklist div {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: #0f1c30
}

.wizard-checklist div span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .14);
    color: var(--brand-accent);
    font-weight: 700
}

.wizard-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.wizard-choice {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(240, 249, 255, .92), rgba(225, 239, 255, .74));
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 20px 34px rgba(15, 23, 42, .12)
}

.wizard-choice h4 {
    margin: 0;
    font-size: 1.08rem;
    color: #0f1c30
}

.wizard-choice p {
    margin: 0;
    color: #475569;
    font-size: .95rem
}

.wizard-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.wizard-inline-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 22px
}

.wizard-inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 18px 32px rgba(15, 23, 42, .08)
}

.wizard-inline-form label {
    font-weight: 700;
    color: #0f1c30;
    font-size: .92rem
}

.wizard-inline-input {
    display: flex;
    gap: 10px;
    align-items: center
}

.wizard-inline-input input {
    width: 140px;
    text-align: right
}

.wizard-inline-form small {
    font-size: .8rem;
    color: #64748b
}

.wizard-inline-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .24);
    color: #0f1c30;
    font-size: .9rem
}

.wizard-inline-pill strong {
    color: var(--brand-accent)
}

.wizard-summary {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .24);
    box-shadow: 0 16px 28px rgba(15, 23, 42, .08)
}

.wizard-summary div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px
}

.wizard-summary strong {
    font-size: .85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .12em
}

.wizard-summary span {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f1c30
}

.note {
    color: rgba(15, 23, 42, .72);
    font-size: .95rem
}

/* Product catalog cards */
.product-groups {
    display: flex;
    flex-direction: column;
    gap: 46px;
    margin-top: 18px
}

.product-group {
    padding: 0
}

.product-group+.product-group {
    border-top: 1px solid rgba(148, 163, 184, .18);
    padding-top: 40px
}

.product-group__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #101935;
    margin-bottom: 6px
}

.product-group__description {
    color: #475569;
    font-size: 1rem;
    margin: 0 0 20px;
    max-width: 640px
}

.product-subgroup {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, .18)
}

.product-subgroup__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, .06);
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(226, 232, 240, .75));
    box-shadow: 0 22px 36px rgba(15, 23, 42, .12);
    transition: transform .25s ease, box-shadow .25s ease
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 44px rgba(15, 23, 42, .16)
}

.product-card__media {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    background-color: #f1f5f9;
    background-size: var(--product-card-media-fit, cover);
    background-position: var(--product-card-media-position, center);
    background-repeat: no-repeat;
    overflow: hidden
}

.product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .22) 100%);
    opacity: .25;
    z-index: 0;
    transition: opacity .2s ease
}

.product-card__media--empty {
    background-image: linear-gradient(135deg, rgba(37, 99, 235, .4), rgba(14, 165, 233, .45))
}

.product-card__media--has-image {
    background-color: #fff;
    background-image: none
}

.product-card__media--has-image::after {
    opacity: .08
}

.product-card__media--portrait {
    --product-card-media-position: center bottom
}

.product-card__media--tall {
    --product-card-media-fit: contain;
    --product-card-media-position: center bottom
}

.product-card__media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    text-transform: uppercase;
    z-index: 1
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 20px
}

.product-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.product-card__name {
    font-weight: 800;
    font-size: 1.12rem;
    color: #0f172a;
    letter-spacing: -.01em
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: .92rem;
    color: #475569
}

.product-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.product-card__subtitle {
    color: #475569
}

.product-card__unit {
    color: #0f172a;
    font-weight: 600
}

.product-card__price {
    font-weight: 700;
    color: var(--brand-accent);
    white-space: nowrap
}

.product-card__description {
    color: #475569;
    font-size: .93rem
}

.product-card__lists {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #334155;
    font-size: .9rem;
    background: rgba(248, 250, 252, .9);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .16)
}

.product-card__list-title {
    font-weight: 700;
    color: #0f172a;
    font-size: .88rem
}

.product-card__list-items {
    margin: 0;
    padding-left: 18px
}

.product-card__tagline {
    font-size: .88rem;
    color: #1f2937;
    background: rgba(248, 250, 252, .85);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .16)
}

.product-card__variants {
    display: flex;
    flex-direction: column;
    gap: 12px
}

@media (max-width:540px) {
    .product-card {
        border-radius: 18px
    }

    .product-card__body {
        padding: 16px
    }

    .product-card__name {
        font-size: 1.05rem
    }

    .product-card__meta {
        font-size: .88rem
    }
}

.variant-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .1)
}

.variant-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.variant-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    align-self: flex-start
}

.variant-card__title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem
}

.variant-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .9rem;
    color: #475569
}

.variant-card__price {
    font-weight: 700;
    color: var(--brand-accent)
}

.variant-card__unit {
    font-size: .82rem;
    color: #64748b
}

.variant-card__description {
    margin: 0;
    color: #475569;
    font-size: .86rem
}

.variant-card__qty {
    display: flex;
    align-items: center
}

.variant-card__qty .qty-control {
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .06);
    box-shadow: none;
    border-color: rgba(148, 163, 184, .2)
}

.variant-card__qty .qty-control__btn {
    width: 32px;
    height: 32px
}

.variant-card__qty .qty-control__input {
    width: 60px;
    padding: 8px 10px;
    box-shadow: none;
    font-size: .95rem
}

.product-card__qty {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.product-card__qty-label {
    font-weight: 700;
    color: #0f1c30;
    font-size: .9rem
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .04);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .12)
}

.qty-control__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .26);
    background: #fff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s
}

.qty-control__btn:hover {
    background: rgba(37, 99, 235, .08);
    border-color: rgba(37, 99, 235, .38);
    color: var(--brand-accent)
}

.qty-control__input {
    width: 74px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 12px 20px rgba(15, 23, 42, .08)
}

.qty-control__input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .22)
}

.line-submeta {
    color: #64748b;
    margin-top: 2px;
    font-size: .85rem
}

.totals-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: .95rem
}

.totals-grid strong {
    font-size: 1.08rem
}

.note {
    color: rgba(15, 23, 42, .72);
    font-size: .95rem
}

.cart-empty {
    padding: 20px;
    border: 1px dashed rgba(148, 163, 184, .35);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    text-align: center
}

.cart-empty .btn {
    margin-top: 16px
}

.package-confirm {
    margin-bottom: 28px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .28);
    box-shadow: 0 18px 32px rgba(15, 23, 42, .12)
}

.package-confirm h4 {
    margin: 8px 0 12px;
    font-size: 1.1rem;
    color: #0f172a
}

.package-confirm p {
    margin: 0;
    color: #1f2937
}

.package-confirm__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .18);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase
}

.package-confirm__actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.package-confirm__actions .btn {
    flex: 0 0 auto
}

.package-confirm__note {
    display: block;
    margin-top: 12px;
    font-size: .82rem;
    color: var(--text-secondary)
}

.cart-group-label td {
    padding: 14px 8px 4px;
    border: none
}

.cart-group-label__line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 10px
}

.cart-group-label__line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(148, 163, 184, .28)
}

.cart-group-label__title {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap
}

.cart-group-label__caption {
    font-size: .82rem;
    color: var(--text-muted);
    white-space: nowrap
}

.cart-group-label__bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--text-muted);
    display: inline-block
}

.cart-group-label--catering .cart-group-label__bullet {
    background: #2563eb
}

.cart-group-label--other .cart-group-label__bullet {
    background: #94a3b8
}

.side-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px
}

.side-actions .btn {
    width: 100%;
    justify-content: center
}

.cart-remove {
    text-align: center
}

.remove-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #b91c1c
}

.remove-toggle input {
    accent-color: #b91c1c;
    width: 18px;
    height: 18px
}

.remove-toggle span {
    display: none
}

.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.cart-grid__header {
    display: none
}

.cart-grid__group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #334155;
    font-weight: 600;
    font-size: .9rem
}

.cart-grid__group-bullet {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
    display: inline-block
}

.cart-grid__group-bullet--catering {
    background: #2563eb
}

.cart-grid__group-bullet--other {
    background: #94a3b8
}

.cart-grid__group-caption {
    display: block;
    font-size: .76rem;
    color: #64748b;
    font-weight: 500
}

.cart-grid__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 0 8px 14px rgba(15, 23, 42, .08)
}

.cart-grid__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .92rem;
    color: #0f172a
}

.cart-grid__cell::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8
}

.cart-grid__cell--product strong {
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0f172a
}

.cart-grid__meta {
    font-size: .84rem;
    color: #64748b
}

.cart-grid__cell--price span,
.cart-grid__cell--subtotal span {
    font-weight: 700;
    font-size: 1rem;
    color: #0f1c30
}

.cart-grid__cell--qty .qty-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .24);
    font-weight: 700;
    text-align: center;
    font-size: .95rem;
    box-shadow: none
}

.cart-grid__cell--remove {
    align-items: flex-end
}

.cart-grid__cell--remove .remove-toggle {
    color: #b91c1c;
    font-size: .84rem
}

.cart-grid__cell--remove .remove-toggle span {
    display: inline
}

.cart-grid[role="table"] {
    margin-top: 4px
}

@media (min-width:900px) {
    .cart-grid {
        border: 1px solid rgba(148, 163, 184, .14);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 22px rgba(15, 23, 42, .1);
        padding: 0;
        gap: 0
    }

    .cart-grid__header {
        display: grid;
        grid-template-columns: 44% 12% 12% 12% 12% 8%;
        gap: 8px;
        padding: 18px 24px 14px;
        font-size: .78rem;
        font-weight: 700;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: .1em
    }

    .cart-grid__group {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 14px 24px;
        font-size: .85rem;
        font-weight: 700;
        color: #1f2937;
        background: rgba(148, 163, 184, .08)
    }

    .cart-grid__group+.cart-grid__row {
        border-top: 1px solid rgba(148, 163, 184, .18)
    }

    .cart-grid__group-caption {
        font-size: .74rem;
        color: #64748b;
        font-weight: 500
    }

    .cart-grid__row {
        display: grid;
        grid-template-columns: 44% 12% 12% 12% 12% 8%;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent
    }

    .cart-grid__row+.cart-grid__row {
        border-top: 1px solid rgba(148, 163, 184, .12)
    }

    .cart-grid__cell {
        gap: 4px;
        font-size: .9rem;
        color: #0f172a
    }

    .cart-grid__cell::before {
        display: none
    }

    .cart-grid__cell--product {
        gap: 4px
    }

    .cart-grid__cell--product strong {
        font-size: .95rem
    }

    .cart-grid__meta {
        font-size: .82rem
    }

    .cart-grid__cell--price span,
    .cart-grid__cell--subtotal span {
        font-weight: 600;
        font-size: .95rem
    }

    .cart-grid__cell--qty .qty-input {
        width: 64px;
        padding: 8px;
        font-size: .9rem
    }

    .cart-grid__cell--remove {
        align-items: center;
        justify-content: center
    }

    .cart-grid__cell--remove .remove-toggle span {
        display: none
    }
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.pack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(160deg, rgba(240, 249, 255, .92), rgba(225, 239, 255, .68));
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 18px 32px rgba(15, 23, 42, .14)
}

.pack:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 48px rgba(15, 23, 42, .22)
}

.pack__media {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .2);
    background: rgba(15, 23, 42, .08)
}

.pack__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pack__body {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.pack__body h4 {
    margin: 0;
    font-size: 1.08rem;
    color: #0f1c30
}

.pack__body .small {
    color: #475569
}

.pack__price {
    font-weight: 600;
    color: #475569
}

.pack__price .pp {
    font-weight: 800;
    color: var(--progress)
}

.pack .btn {
    margin-top: 4px
}

.wizard .product-groups {
    gap: 34px
}

.wizard .product-group+.product-group {
    border-top: 1px solid rgba(148, 163, 184, .16);
    padding-top: 32px
}

.wizard .product-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.catalog-shell {
    position: relative;
    margin-top: 34px;
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(15, 23, 42, .08) 0%, rgba(37, 99, 235, .1) 45%, rgba(59, 130, 246, .08) 100%);
    box-shadow: 0 34px 60px rgba(15, 23, 42, .16);
    overflow: visible
}

.catalog-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 78% 0%, rgba(59, 130, 246, .22), transparent 70%), radial-gradient(50% 45% at 12% 24%, rgba(14, 165, 233, .16), transparent 70%);
    opacity: .65;
    pointer-events: none
}

.catalog-hero {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: #0f1c30
}

.catalog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #0f1c30;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.catalog-hero__title {
    margin: 18px 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.015em;
    color: #0f1c30
}

.catalog-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: #1f2937;
    max-width: 640px
}

.catalog-hero__chips {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #0f1c30;
    font-weight: 600;
    font-size: .86rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .1)
}

.catalog-stage {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    background: rgba(255, 255, 255, .97);
    border-radius: 26px;
    padding: 28px 30px;
    box-shadow: 0 28px 48px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
    gap: 24px
}

.catalog-stage__content {
    display: flex;
    flex-direction: column;
    gap: 40px
}

.catalog-stage .product-group {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none
}

.catalog-stage .product-subgroup {
    border-top-color: rgba(148, 163, 184, .18)
}

.catalog-stage .product-card-grid {
    gap: 24px
}

.catalog-footer {
    position: sticky;
    bottom: 24px;
    margin-top: 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 30
}

.catalog-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 42px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 90%);
    pointer-events: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px
}

.catalog-footer .wizard-actions {
    background: rgba(248, 250, 252, .97);
    border-radius: 18px;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -20px 36px rgba(15, 23, 42, .16);
    backdrop-filter: blur(12px)
}

.variant-card {
    flex-wrap: wrap
}

.variant-card__qty .qty-control {
    margin-left: auto
}

@media (max-width:1024px) {
    .product-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
    }
}

@media (max-width:900px) {
    .catalog-shell {
        padding: 28px
    }

    .catalog-stage {
        padding: 24px
    }
}

@media (max-width:640px) {
    .portal {
        border-radius: 0;
        min-height: auto;
        padding: 36px 0 44px
    }

    .portal__content {
        padding: 0 16px
    }

    .portal__logo img {
        height: 54px
    }

    .portal__grid {
        grid-template-columns: 1fr
    }

    .card {
        padding: 18px;
        border-radius: 20px
    }

    .card__title {
        font-size: 1.24rem
    }

    .card__description {
        font-size: .98rem
    }

    .card__button {
        width: 100%;
        justify-content: center
    }

    .catalog-shell {
        padding: 20px;
        border-radius: 24px
    }

    .catalog-stage {
        padding: 20px
    }

    .catalog-footer .wizard-actions {
        flex-direction: column;
        align-items: stretch
    }

    .catalog-footer .wizard-actions__left,
    .catalog-footer .wizard-actions__right {
        width: 100%;
        justify-content: space-between
    }

    .catalog-footer .wizard-actions .btn {
        flex: 1;
        justify-content: center
    }

    .variant-card {
        flex-direction: column;
        align-items: stretch
    }

    .variant-card__qty {
        justify-content: flex-start
    }

    .variant-card__qty .qty-control {
        width: 100%;
        justify-content: space-between
    }
}

.table-wrap {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12)
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0
}

.table-wrap table {
    min-width: 640px
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    vertical-align: middle
}

thead th {
    background: rgba(248, 250, 252, .9);
    text-align: left;
    font-size: .92rem;
    font-weight: 700;
    color: #1f2937
}

.right {
    text-align: right
}

.qty-input {
    width: 110px;
    text-align: right
}

.qty-input::-webkit-inner-spin-button {
    margin: 0
}

.qty-input::-moz-outer-spin-button {
    margin: 0
}

@media (max-width:640px) {
    .table-wrap {
        border-radius: 0;
        border: none;
        background: transparent;
        padding: 0;
        overflow: visible
    }

    .table-wrap table {
        min-width: 0;
        width: 100%;
        display: block;
        border-spacing: 0
    }

    .table-wrap thead {
        display: none
    }

    .table-wrap tbody {
        display: flex;
        flex-direction: column;
        gap: 18px;
        width: 100%
    }

    .table-wrap tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        background: #fff;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 18px;
        padding: 18px 18px 16px;
        box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
        width: 100%;
        box-sizing: border-box
    }

    .table-wrap tr.cart-group-label {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 6px;
        margin-top: 12px;
        width: 100%
    }

    .table-wrap tr.cart-group-label .cart-group-label__line {
        padding: 0 2px 0
    }

    .table-wrap tr.cart-group-label::after {
        content: "";
        display: block;
        height: 0
    }

    .table-wrap tr.cart-group-label td {
        padding: 0;
        border: none;
        display: block
    }

    .table-wrap tr.cart-group-label td::before {
        display: none
    }

    .table-wrap td {
        padding: 0;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: .95rem;
        color: #0f1c30
    }

    .table-wrap td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        font-size: .82rem;
        letter-spacing: .02em;
        text-transform: none
    }

    .table-wrap td[data-label="Producto"] {
        grid-column: 1 / -1;
        padding-bottom: 6px
    }

    .table-wrap td[data-label="Producto"]::before {
        font-size: .78rem;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #94a3b8
    }

    .table-wrap td[data-label="Producto"] .small {
        margin-top: 6px;
        color: #64748b;
        font-size: .88rem
    }

    .table-wrap td[data-label="Unidad"] {
        font-size: .9rem;
        color: #475569
    }

    .table-wrap td[data-label="Precio"],
    .table-wrap td[data-label="Subtotal"] {
        font-weight: 700;
        font-size: 1rem;
        color: #0f1c30
    }

    .table-wrap td[data-label="Precio"] {
        align-items: flex-start
    }

    .table-wrap td[data-label="Subtotal"] {
        align-items: flex-start
    }

    .table-wrap td[data-label="Cantidad"] {
        grid-column: 1 / -1
    }

    .table-wrap td[data-label="Cantidad"]::before {
        margin-bottom: 2px;
        color: #475569
    }

    .table-wrap td[data-label="Acción"] {
        grid-column: 1 / -1;
        align-items: flex-end
    }

    .table-wrap td[data-label="Acción"]::before {
        display: none
    }

    .table-wrap td .qty-control {
        width: 100%;
        justify-content: space-between
    }

    .table-wrap td .qty-control__input {
        width: 56px
    }

    .table-wrap td .qty-control__btn {
        width: 32px;
        height: 32px
    }

    .table-wrap td .qty-input {
        width: 100%;
        text-align: center;
        font-weight: 700;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, .24);
        padding: 12px;
        font-size: 1rem
    }

    .remove-toggle span {
        display: inline
    }
}

.side {
    position: sticky;
    top: 78px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    background: rgba(8, 25, 45, .6);
    padding: 22px;
    color: #e2e8f0;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px rgba(4, 16, 39, .5)
}

.side h4 {
    margin: 0 0 10px;
    color: #f8fafc
}

.side table {
    width: 100%;
    border-collapse: collapse
}

.side td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .14)
}

.side .right {
    text-align: right;
    color: #f8fafc
}

.side .small {
    color: rgba(226, 232, 240, .75)
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2
}

@media (max-width:960px) {
    .checkout-grid {
        grid-template-columns: 1fr
    }
}

.thankyou-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px
}

.thankyou-highlight {
    font-size: 1.05rem;
    color: #1f2937
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: linear-gradient(160deg, var(--wizard-sky-top) 0%, var(--wizard-sky-mid) 55%, var(--wizard-sky-bottom) 100%);
    color: var(--text-primary)
}

.auth-shell {
    width: min(440px, 100%);
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-card-border);
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(7, 20, 45, .4);
    backdrop-filter: blur(18px);
    padding: 34px 32px 38px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative
}

.auth-logo {
    text-align: center
}

.auth-logo img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .26));
    opacity: .96
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
    color: #0f1c30;
    letter-spacing: -.01em
}

.auth-subtitle {
    text-align: center;
    color: #475569;
    font-size: .95rem;
    margin: 0
}

@media (max-width:520px) {
    .auth-page {
        padding: 36px 18px
    }

    .auth-shell {
        padding: 28px 22px;
        gap: 18px;
        border-radius: 22px
    }

    .auth-logo img {
        height: 48px
    }

    .auth-title {
        font-size: 1.65rem
    }

    .auth-subtitle {
        font-size: .92rem
    }
}

@media (max-width:420px) {
    .auth-page {
        padding: 28px 16px
    }

    .auth-shell {
        padding: 24px 18px
    }

    .auth-logo img {
        height: 44px
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.auth-form label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    transition: border-color .25s, box-shadow .25s;
    font: inherit
}

.auth-form input:focus {
    outline: none;
    border-color: var(--progress);
    box-shadow: 0 16px 32px rgba(56, 189, 248, .22)
}

.auth-form button {
    width: 100%;
    justify-content: center
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .9rem;
    color: #475569;
    flex-wrap: wrap
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: .9rem
}

.auth-alert.error {
    background: rgba(248, 113, 113, .16);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #7f1d1d
}

.auth-alert.success {
    background: rgba(16, 185, 129, .16);
    border: 1px solid rgba(16, 185, 129, .35);
    color: #065f46
}

.input-error {
    color: #b91c1c;
    font-size: .86rem;
    margin-top: 4px
}

.btn.full {
    width: 100%;
    justify-content: center
}

.auth-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    color: #475569
}

.auth-checkbox input {
    margin-top: 4px;
    box-shadow: none;
    width: auto;
    padding: 0;
    border-radius: 4px;
    height: 18px;
    width: 18px
}

@keyframes ink {
    to {
        transform: scale(3);
        opacity: 0
    }
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes aurora {
    0% {
        transform: translate3d(-2%, 0, 0) scale(1)
    }

    100% {
        transform: translate3d(2%, 1%, 0) scale(1.02)
    }
}