/* SANTO — Catálogo público (paleta oficial del manual de marca) */
:root {
    --ink: #0a0a0a;
    --ink-soft: #141414;
    --ink-lift: #1c1c1c;
    --paper: #f8e1cb;
    --paper-dim: rgba(248, 225, 203, 0.72);
    --paper-mute: rgba(248, 225, 203, 0.42);
    --line: rgba(248, 225, 203, 0.14);
    --line-strong: rgba(248, 225, 203, 0.28);
    --mustard: #dd9038;
    --mustard-deep: #c47828;
    --olive: #9da211;
    --lime: #cad437;
    --mauve: #a05074;
    --flame: #ea480f;
    --danger: #ff6b5a;
    --radius-soft: 1.25rem;
    --font-display: 'Bebas Neue', Impact, Haettenschweiler, sans-serif;
    --font-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    --max: 42rem;
}

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

html {
    scroll-behavior: smooth;
}

body.santo-catalog {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--paper);
    font-family: var(--font-body);
    background-color: var(--ink);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(221, 144, 56, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(160, 80, 116, 0.08), transparent 50%),
        radial-gradient(ellipse 40% 35% at 0% 60%, rgba(157, 162, 17, 0.06), transparent 45%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.santo-catalog.is-cart-open {
    overflow: hidden;
    touch-action: none;
}

body.santo-catalog::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[x-cloak] {
    display: none !important;
}

.sc-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────── */
.sc-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem 5rem;
    overflow: hidden;
}

.sc-hero__glow {
    position: absolute;
    width: min(90vw, 28rem);
    height: min(90vw, 28rem);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 144, 56, 0.22), transparent 68%);
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: sc-breathe 7s ease-in-out infinite;
}

.sc-hero__cap {
    position: absolute;
    width: min(68vw, 20rem);
    opacity: 0.09;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -42%);
    pointer-events: none;
    animation: sc-float 9s ease-in-out infinite;
}

.sc-hero__logo {
    position: relative;
    width: min(82vw, 22rem);
    height: auto;
    margin: 0 auto 1.35rem;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
    animation: sc-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-hero__tag {
    position: relative;
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 6vw, 2.35rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mustard);
    animation: sc-rise 1.1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-hero__line {
    position: relative;
    max-width: 19.5rem;
    margin: 0 auto 1.75rem;
    font-size: clamp(0.98rem, 3.6vw, 1.12rem);
    line-height: 1.45;
    color: var(--paper-dim);
    font-weight: 400;
    text-wrap: balance;
    animation: sc-rise 1.1s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.85rem 1.5rem;
    border: 1.5px solid var(--mustard);
    background: var(--mustard);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    animation: sc-rise 1.1s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    -webkit-user-select: none;
    user-select: none;
}

.sc-hero__cta:hover,
.sc-hero__cta:active {
    background: transparent;
    color: var(--mustard);
}

.sc-hero__cta:active {
    transform: scale(0.98);
}

.sc-hero__cta svg {
    width: 1.1rem;
    height: 1.1rem;
    animation: sc-bob 1.8s ease-in-out infinite;
}

.sc-hero__mesa {
    position: absolute;
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-mute);
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sticky toolbar ───────────────────────────── */
.sc-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    padding-top: env(safe-area-inset-top);
}

.sc-toolbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem 0.5rem;
}

.sc-toolbar__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.sc-toolbar__mark {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-toolbar__meta {
    min-width: 0;
}

.sc-toolbar__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    line-height: 1;
}

.sc-toolbar__sub {
    margin: 0.15rem 0 0;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-cart-btn {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1.5px solid var(--mustard);
    background: var(--mustard);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
    -webkit-user-select: none;
    user-select: none;
}

.sc-cart-btn:hover,
.sc-cart-btn:active {
    background: transparent;
    color: var(--mustard);
}

.sc-cart-btn:active {
    transform: scale(0.96);
}

.sc-cart-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.sc-cart-btn__badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--flame);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.sc-search {
    position: relative;
    padding: 0 1rem 0.55rem;
}

.sc-search svg {
    position: absolute;
    left: 1.7rem;
    top: 50%;
    transform: translateY(-55%);
    width: 1rem;
    height: 1rem;
    color: var(--mustard);
    pointer-events: none;
}

.sc-search input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 1rem 0.7rem 2.45rem;
    border: 1px solid var(--line-strong);
    background: var(--ink-soft);
    color: var(--paper);
    font: inherit;
    font-size: 1rem; /* evita zoom iOS */
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sc-search input::placeholder {
    color: var(--paper-mute);
}

.sc-search input:focus {
    border-color: var(--mustard);
    box-shadow: 0 0 0 3px rgba(221, 144, 56, 0.18);
}

.sc-cats {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0 1rem 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.sc-cats::-webkit-scrollbar {
    display: none;
}

.sc-cat {
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--paper-dim);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 2.35rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
    -webkit-user-select: none;
    user-select: none;
}

.sc-cat:hover,
.sc-cat:active {
    border-color: var(--mustard);
    color: var(--mustard);
}

.sc-cat.is-active {
    background: var(--mustard);
    border-color: var(--mustard);
    color: var(--ink);
}

/* ── Menú ─────────────────────────────────────── */
.sc-menu {
    /* Garantiza scroll suficiente para ocultar el hero aunque haya pocos productos */
    min-height: calc(100svh - 9.5rem);
    min-height: calc(100dvh - 9.5rem);
    padding: 1.35rem 1rem calc(6.5rem + env(safe-area-inset-bottom));
}

.sc-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--paper-mute);
    font-size: 0.95rem;
}

.sc-section + .sc-section {
    margin-top: 1.85rem;
}

.sc-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper);
}

.sc-section__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

.sc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.sc-item:first-of-type {
    border-top: 1px solid var(--line);
}

.sc-item__thumb {
    width: 3.35rem;
    height: 3.35rem;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--ink-lift);
    border: 1px solid var(--line);
}

.sc-item__thumb--empty {
    display: grid;
    place-items: center;
}

.sc-item__thumb--empty img {
    width: 1.45rem;
    height: 1.45rem;
    opacity: 0.55;
}

.sc-item__body {
    min-width: 0;
    flex: 1;
}

.sc-item__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--paper);
    line-height: 1.25;
}

.sc-item__desc {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--paper-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-item__price {
    margin: 0.3rem 0 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--mustard);
}

.sc-add {
    flex-shrink: 0;
    border: 1.5px solid var(--paper);
    background: transparent;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
    -webkit-user-select: none;
    user-select: none;
}

.sc-add__icon {
    display: none;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 500;
}

.sc-add:hover,
.sc-add:active {
    background: var(--mustard);
    border-color: var(--mustard);
    color: var(--ink);
}

.sc-add:active {
    transform: scale(0.96);
}

.sc-oos {
    flex-shrink: 0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--danger);
    font-weight: 600;
    max-width: 3.5rem;
    text-align: center;
    line-height: 1.2;
}

/* ── Dock inferior (mobile) ───────────────────── */
.sc-dock {
    position: fixed;
    z-index: 45;
    left: 0.85rem;
    right: 0.85rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--mustard);
    background: var(--mustard);
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    -webkit-user-select: none;
    user-select: none;
}

.sc-dock__count {
    display: grid;
    place-items: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.3rem;
    background: var(--ink);
    color: var(--mustard);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0;
}

.sc-dock__label {
    flex: 1;
    text-align: left;
    font-size: 1.05rem;
}

.sc-dock__total {
    font-size: 1.05rem;
}

.sc-dock-enter { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease; }
.sc-dock-enter-start { transform: translateY(120%); opacity: 0; }
.sc-dock-enter-end { transform: translateY(0); opacity: 1; }
.sc-dock-leave { transition: transform 180ms ease-in, opacity 180ms ease; }
.sc-dock-leave-start { transform: translateY(0); opacity: 1; }
.sc-dock-leave-end { transform: translateY(120%); opacity: 0; }

/* ── Drawer / bottom sheet ────────────────────── */
.sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.sc-overlay__bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.sc-drawer {
    position: relative;
    width: 100%;
    max-width: 26rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ink-soft);
    border-left: 1px solid var(--line-strong);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    animation: sc-drawer-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    padding-bottom: env(safe-area-inset-bottom);
}

.sc-drawer__handle {
    display: none;
}

.sc-drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

@keyframes sc-drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.sc-overlay-fade-enter {
    transition: opacity 220ms ease;
}

.sc-overlay-fade-enter-start,
.sc-overlay-fade-leave-end {
    opacity: 0;
}

.sc-overlay-fade-enter-end,
.sc-overlay-fade-leave-start {
    opacity: 1;
}

.sc-overlay-fade-leave {
    transition: opacity 180ms ease;
}

.sc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.sc-drawer__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.12em;
}

.sc-icon-btn {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--paper);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.sc-icon-btn:hover,
.sc-icon-btn:active {
    border-color: var(--mustard);
    color: var(--mustard);
}

.sc-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.85rem 1.15rem;
    min-height: 0;
}

.sc-cart-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--paper-mute);
}

.sc-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.sc-cart-line__info {
    min-width: 0;
    flex: 1;
}

.sc-cart-line__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.sc-cart-line__price {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--paper-mute);
}

.sc-qty {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.sc-qty button {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--paper);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.sc-qty button:hover:not(:disabled),
.sc-qty button:active:not(:disabled) {
    border-color: var(--mustard);
    color: var(--mustard);
}

.sc-qty button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sc-qty span {
    width: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sc-drawer__foot {
    padding: 1rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--ink-soft);
}

.sc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.sc-total span:last-child {
    color: var(--mustard);
}

.sc-confirm {
    width: 100%;
    border: 1.5px solid var(--mustard);
    background: var(--mustard);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-height: 3.15rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
    -webkit-user-select: none;
    user-select: none;
}

.sc-confirm:hover:not(:disabled),
.sc-confirm:active:not(:disabled) {
    background: transparent;
    color: var(--mustard);
}

.sc-confirm:active:not(:disabled) {
    transform: scale(0.99);
}

.sc-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sc-hint {
    margin: 0.7rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--paper-mute);
}

.sc-error {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--danger);
}

/* Confirmación */
.sc-done {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.sc-done__mark {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.25rem;
    animation: sc-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-done__label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper-mute);
}

.sc-done__code {
    margin: 0.4rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 4.5rem);
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--mustard);
    animation: sc-rise 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-done__text {
    margin: 0;
    max-width: 16rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--paper-dim);
}

.sc-done__note {
    margin: 0.75rem 0 0;
    font-size: 0.72rem;
    color: var(--paper-mute);
}

.sc-done__again {
    margin-top: 2rem;
    border: none;
    background: none;
    color: var(--mustard);
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
}

/* ── Mobile-first tweaks ──────────────────────── */
@media (max-width: 767px) {
    .sc-add {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border-radius: 0;
    }

    .sc-add__label {
        display: none;
    }

    .sc-add__icon {
        display: block;
    }

    .sc-item__desc {
        -webkit-line-clamp: 1;
    }

    .sc-overlay {
        align-items: flex-end;
        justify-content: center;
    }

    .sc-drawer {
        max-width: none;
        width: 100%;
        height: auto;
        max-height: min(88dvh, 88vh);
        border-left: none;
        border-top: 1px solid var(--line-strong);
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
        animation: sc-sheet-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
        border-radius: 1.15rem 1.15rem 0 0;
    }

    .sc-drawer__handle {
        display: block;
        width: 2.5rem;
        height: 0.28rem;
        margin: 0.65rem auto 0.15rem;
        border-radius: 999px;
        background: var(--line-strong);
        flex-shrink: 0;
    }

    .sc-drawer__panel {
        max-height: calc(min(88dvh, 88vh) - 1.1rem);
    }

    .sc-cart-btn {
        /* El dock cubre el acceso principal; el header queda más liviano */
        opacity: 0.92;
    }

    @keyframes sc-sheet-in {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

@media (min-width: 768px) {
    .sc-dock {
        display: none !important;
    }

    .sc-hero {
        padding: 3.5rem 1.5rem 5.5rem;
    }

    .sc-hero__line {
        max-width: 22rem;
    }

    .sc-toolbar__row {
        padding: 0.85rem 1.15rem 0.65rem;
    }

    .sc-search {
        padding: 0 1.15rem 0.75rem;
    }

    .sc-cats {
        padding: 0 1.15rem 0.9rem;
    }

    .sc-menu {
        padding: 1.75rem 1.15rem 4rem;
    }

    .sc-add__label {
        display: inline;
    }

    .sc-add__icon {
        display: none;
    }

    .sc-item__desc {
        -webkit-line-clamp: 2;
    }
}

@media (max-height: 700px) and (max-width: 767px) {
    .sc-hero {
        min-height: auto;
        padding: max(2rem, env(safe-area-inset-top)) 1.25rem 3.5rem;
    }

    .sc-hero__logo {
        width: min(72vw, 16rem);
        margin-bottom: 1rem;
    }

    .sc-hero__cap {
        opacity: 0.05;
    }
}

/* ── Banner — pedido en curso ─────────────────── */
.sc-pedido-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(255 255 255 / 0.04);
    border-bottom: 1px solid rgba(255 255 255 / 0.08);
    cursor: pointer;
    user-select: none;
    transition: background 150ms ease;
    font-size: 0.88rem;
    color: var(--paper-dim);
}

.sc-pedido-banner:hover,
.sc-pedido-banner:focus-visible {
    background: rgba(255 255 255 / 0.07);
    outline: none;
}

.sc-pedido-banner__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--paper-mute);
}
.sc-pedido-banner__dot.is-pendiente      { background: #a0a0a0; }
.sc-pedido-banner__dot.is-en_preparacion { background: #f59e0b; animation: sc-blink 1.4s ease-in-out infinite; }
.sc-pedido-banner__dot.is-entregado      { background: #34d399; }

.sc-pedido-banner__texto {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-pedido-banner__sep {
    margin: 0 0.2rem;
    opacity: 0.4;
}

.sc-pedido-banner__cta {
    font-size: 0.8rem;
    color: var(--mustard);
    flex-shrink: 0;
}

/* ── Status dentro del drawer (done panel) ──── */
.sc-done__status-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
}

.sc-done__status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--paper-mute);
}
.sc-done__status-dot.is-pendiente      { background: #a0a0a0; }
.sc-done__status-dot.is-en_preparacion { background: #f59e0b; animation: sc-blink 1.4s ease-in-out infinite; }
.sc-done__status-dot.is-entregado      { background: #34d399; }

.sc-done__status-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.sc-done__refresh-hint {
    margin: 1.5rem 0 0;
    font-size: 0.7rem;
    color: var(--paper-mute);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sc-done__refresh-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    color: var(--paper-mute);
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 0.25rem;
    transition: color 150ms ease;
}
.sc-done__refresh-btn:hover { color: var(--paper-dim); }

/* ── Cuenta de items (panel done) ─────────────── */
.sc-cuenta {
    width: 100%;
    margin: 1.25rem 0 0;
    border: 1px solid rgba(255 255 255 / 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.sc-cuenta__titulo {
    margin: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-mute);
    background: rgba(255 255 255 / 0.03);
    border-bottom: 1px solid rgba(255 255 255 / 0.07);
}

.sc-cuenta__linea {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid rgba(255 255 255 / 0.05);
}

.sc-cuenta__linea:last-of-type {
    border-bottom: none;
}

.sc-cuenta__qty {
    font-size: 0.78rem;
    color: var(--paper-mute);
    min-width: 1.4rem;
    flex-shrink: 0;
}

.sc-cuenta__nombre {
    flex: 1;
    font-size: 0.88rem;
    color: var(--paper-dim);
}

.sc-cuenta__precio {
    font-size: 0.88rem;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
}

.sc-cuenta__total {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    background: rgba(255 255 255 / 0.04);
    border-top: 1px solid rgba(255 255 255 / 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--paper);
}

/* ── Botón Pagar ──────────────────────────────── */
.sc-pagar {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255 255 255 / 0.06);
    border: 1px solid rgba(255 255 255 / 0.12);
    border-radius: 0.65rem;
    color: var(--paper-mute);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.sc-pagar__soon {
    position: absolute;
    top: 0.3rem;
    right: 0.55rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mustard);
    opacity: 0.8;
}

/* Variante activa: pago con MercadoPago */
.sc-pagar--mp {
    background: #009ee3;
    border-color: #007ab8;
    color: #fff;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
}

.sc-pagar--mp:hover:not(:disabled) {
    background: #007ab8;
}

.sc-pagar--mp:active:not(:disabled) {
    transform: scale(0.98);
}

.sc-pagar--mp:disabled,
.sc-pagar--mp.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.sc-pagar__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sc-pagar--nuevo {
    background: rgba(255 255 255 / 0.08);
    border-color: rgba(255 255 255 / 0.2);
    color: var(--paper-dim);
    cursor: pointer;
    transition: background 0.18s;
}

.sc-pagar--nuevo:hover {
    background: rgba(255 255 255 / 0.13);
}

.sc-verificar {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.55rem 1rem;
    background: none;
    border: none;
    color: var(--paper-mute);
    font: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s;
}

.sc-verificar:hover:not(:disabled) { color: var(--paper-dim); }
.sc-verificar:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes sc-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ── Motion ───────────────────────────────────── */
@keyframes sc-rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sc-breathe {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes sc-float {
    0%, 100% { transform: translate(-50%, -42%) rotate(-4deg); }
    50% { transform: translate(-50%, -48%) rotate(3deg); }
}

@keyframes sc-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes sc-pop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
