/* ============================================================
   PolloCheff Clientes — app.css
   Diseño copiado del modelo pollo-cheff (Next.js) del ZIP.
   Paleta: primary #d32f2f · accent #fbc02d · Inter + Barlow.
   ============================================================ */
:root {
    color-scheme: light;
    --background: #f4f5f7;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --primary: #d32f2f;
    --primary-foreground: #ffffff;
    --secondary: #fbc02d;
    --secondary-foreground: #2a1a00;
    --muted: #eceef1;
    --muted-foreground: #6b7280;
    --accent: #fbc02d;
    --accent-foreground: #2a1a00;
    --destructive: #d32f2f;
    --border: #e3e6ea;
    --input: #e3e6ea;
    --ring: #d32f2f;
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --radius: 0.9rem;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Barlow Condensed', 'Inter', sans-serif;
    --nav-h: 64px;
    --topbar-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Oculta elementos marcados con la clase .hidden (pasos, footers, paneles). */
.hidden { display: none !important; }
/* Garantiza que el atributo hidden (ej. resultados, paneles) siempre prevalezca. */
[hidden] { display: none !important; }

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.font-display { font-family: var(--font-display); }

/* ============ App shell ============ */
.app-shell {
    position: relative;
    margin: 0 auto;
    max-width: 480px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--background);
}
.app-main { flex: 1; padding-bottom: 160px; }

/* ============ TopHeader ============ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--background) 80%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 4px;
    padding-top: calc(12px + env(safe-area-inset-top));
}
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-logo {
    height: 40px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.topbar-logo img { height: 100%; width: auto; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: 999px;
    padding: 7px 12px;
    box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.1);
}
.points-pill .star { color: var(--primary); font-size: 14px; }
.points-pill .num { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--foreground);
    transition: background 0.15s, transform 60ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.topbar-greeting { padding: 6px 16px 12px; }
.topbar-greeting .greeting {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin: 0 0 2px;
}
.topbar-greeting .greeting-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.05;
    margin: 0;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.15s;
}
.theme-toggle svg { display: block; }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon-moon { display: none; }

/* ============ BottomNav ============ */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    margin: 0 auto;
    max-width: 480px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, 0.12);
}
.bottom-nav ul {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    list-style: none;
}
.bottom-nav li { flex: 1; }
.nav-btn {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: 12px;
    transition: color 0.15s;
}
.nav-btn .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 30px;
    border-radius: 999px;
    transition: background 0.15s;
}
.nav-btn.active { color: var(--primary); font-weight: 600; }
.nav-btn.active .nav-icon { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.nav-btn .nav-label { font-size: 10.5px; font-weight: 600; line-height: 1; }

/* ============ CartFab ============ */
.cart-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom));
    z-index: 30;
    margin: 0;
    padding: 0;
}
.cart-fab-btn {
    display: flex;
    width: 84px; height: 84px;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
    transition: transform 0.12s;
}
.cart-fab-btn:active { transform: scale(0.98); }
.cart-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.cart-fab-text { display: none; }
.cart-fab-label { font-size: 12px; font-weight: 700; opacity: 0.85; }
.cart-fab-total { font-family: var(--font-display); font-size: 20px; font-weight: 800; }

/* Animación: el carrito vibra/salta cuando se agrega algo */
@keyframes cart-bounce {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-7px) rotate(-5deg); }
    30%  { transform: translateX(6px) rotate(4deg); }
    45%  { transform: translateX(-4px) rotate(-3deg); }
    60%  { transform: translateX(3px) rotate(2deg); }
    75%  { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0); }
}
#cart-fab.cart-bounce {
    animation: cart-bounce 0.5s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
    #cart-fab.cart-bounce { animation: none; }
}

/* ============ Menú ============ */
.menu-view { padding: 16px 16px 0; }

/* Hero promo */
.promo-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 85%, var(--primary)) 100%);
    color: var(--accent-foreground);
    padding: 16px;
    box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.promo-flame {
    width: 46px; height: 46px; flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.35);
    display: grid; place-items: center;
}
.promo-flame svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promo-hero .promo-content { position: relative; z-index: 2; flex: 1; min-width: 0; }
.promo-hero .promo-tag {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--accent-foreground) 80%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-hero .promo-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-top: 4px;
    text-wrap: balance;
}
.promo-hero .promo-desc { font-size: 12px; opacity: 0.85; margin-top: 8px; }
.promo-hero .promo-img {
    position: absolute;
    right: -16px; bottom: -12px;
    width: 150px; height: 150px;
    object-fit: contain;
    transform: rotate(6deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Buscador */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    border: 1.5px solid var(--border);
    background: var(--card);
    border-radius: 14px;
    padding: 0 16px;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--foreground);
    outline: none;
}
.search-bar input::placeholder { color: var(--muted-foreground); }

/* Categorías */
.category-scroll {
    margin-top: 16px;
    margin-left: -16px; margin-right: -16px;
    overflow-x: auto;
    padding: 4px 16px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll .cats { display: flex; gap: 8px; width: max-content; }
.cat-pill {
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    border-radius: 999px;
    padding: 0 16px;
    min-height: 44px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-pill.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* Título de sección */
.menu-section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-top: 20px;
}

/* Tarjetas de producto */
.product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.1);
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.16); }
.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--muted);
    cursor: pointer;
}
.product-card-img:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
}
.product-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px; }
.product-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}
.product-desc {
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.35;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-pts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-foreground);
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 999px;
    padding: 3px 8px;
    margin-top: 8px;
    align-self: flex-start;
}
.product-pts .star { color: var(--accent); fill: var(--accent); }
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}
.product-price { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.product-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform 0.12s;
}
.product-add:active { transform: scale(0.9); }

/* ============ Juegos ============ */
.games-view { padding: 20px 16px 0; }
.games-head { display: flex; align-items: center; gap: 8px; }
.games-head h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.games-sub { font-size: 13px; color: var(--muted-foreground); margin-top: 4px; }

/* Ruleta — nuevo diseño */
:root {
    --wheel-size: min(82vw, 356px);
    --wheel-a: #d32f2f;
    --wheel-b: #fff3ec;
    --wheel-c: #f2b21b;
    --wheel-ink-a: #ffffff;
    --wheel-ink-b: #5c1b13;
    --wheel-ink-c: #4a2c00;
    --wheel-rim: color-mix(in srgb, var(--primary) 58%, black);
    --gold: #f2b21b;
    --gold-deep: #b47a06;
    --gold-ink: #4a2c00;
    --shadow-pop: 0 18px 44px -18px color-mix(in srgb, var(--primary) 42%, transparent);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
.section-head { margin-bottom: 14px; }
.section-kicker {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}
.section-desc { color: var(--muted-foreground); font-size: 14px; margin-top: 5px; }

.wheel-stage {
    position: relative;
    display: grid; place-items: center;
    padding: 34px 0 6px;
    touch-action: pan-y;
    overflow: hidden;
}
.wheel-stage::before {
    content: '';
    position: absolute; inset: 6% 0 2%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 11%, transparent), transparent 72%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}
.wheel-wrap {
    position: relative; z-index: 1;
    animation: float 3.6s ease-in-out infinite;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.wheel-wrap.is-spinning { animation: none; }

.wheel {
    position: relative;
    width: var(--wheel-size);
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: var(--shadow-pop);
    will-change: transform;
}
.wheel::before {
    content: '';
    position: absolute; inset: -10px;
    border-radius: 50%;
    border: 10px solid var(--wheel-rim);
    box-shadow:
        inset 0 2px 3px color-mix(in srgb, white 22%, transparent),
        inset 0 -3px 5px color-mix(in srgb, black 34%, transparent),
        0 8px 18px -8px color-mix(in srgb, black 40%, transparent);
    z-index: -1;
}
.wheel.is-win { animation: wheel-glow 0.9s ease-out; }

.bulbs { position: absolute; inset: 0; z-index: 1; }
.bulb {
    position: absolute; left: 50%; top: 50%;
    width: 7px; height: 7px; margin: -3.5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 7px color-mix(in srgb, var(--gold) 75%, transparent);
    animation: bulb-blink 1.5s ease-in-out infinite;
}
.bulb:nth-child(odd) { animation-delay: 0.75s; }

.segment { position: absolute; inset: 0; }
.seg-content {
    position: absolute; top: 7.5%; left: 50%;
    transform: translateX(-50%);
    width: 34%;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-align: center;
    pointer-events: none;
}
.seg-emoji { font-size: clamp(17px, 4.6vw, 24px); line-height: 1; }
.seg-label {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(10px, 2.7vw, 12.5px);
    line-height: 1.05;
}

.wheel-hub {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 27%; aspect-ratio: 1;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--foreground) 16%, transparent), inset 0 -2px 0 var(--border);
    display: grid; place-items: center;
    color: var(--primary);
    z-index: 2;
}
.wheel-hub svg { width: 46%; height: 46%; }

.wheel-pointer {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 34px;
    color: var(--primary);
    filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--primary) 46%, transparent));
    transition: transform 0.09s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.09s ease;
    z-index: 3;
}
.wheel-pointer .pointer-body { animation: pointer-bob 1.7s ease-in-out infinite; }
.wheel-pointer.tick {
    transform: translateX(-50%) scale(1.14);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--primary) 70%, transparent));
}

.spin-cta { display: flex; justify-content: center; margin-top: 16px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit; font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 78%, black); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-lg {
    width: 100%; max-width: 340px;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-weight: 700; font-size: 19px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.btn.is-spinning::before {
    content: '';
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spin-hint { text-align: center; color: var(--muted-foreground); font-size: 13px; margin: 12px auto 0; max-width: 340px; }

.result {
    display: flex; align-items: center; gap: 12px;
    margin: 16px auto 0;
    max-width: 340px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
    font-size: 14px;
    animation: result-in 0.38s var(--ease-out);
}
.result[hidden] { display: none; }
.result-emoji { font-size: 26px; line-height: 1; }
.result-title { display: block; font-weight: 700; font-size: 14.5px; }
.result-desc { color: var(--muted-foreground); font-size: 13px; }
.result.is-win { background: color-mix(in srgb, var(--primary) 11%, transparent); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.result.is-win .result-title { color: var(--primary); }
.result.is-points { background: color-mix(in srgb, var(--gold) 15%, transparent); border-color: color-mix(in srgb, var(--gold) 42%, transparent); }
.result.is-points .result-title { color: var(--gold-ink); }

#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pointer-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes bulb-blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; box-shadow: 0 0 10px var(--gold); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes result-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes wheel-glow { 0% { filter: brightness(1); } 42% { filter: brightness(1.15) saturate(1.08); } 100% { filter: brightness(1); } }

@media (prefers-reduced-motion: reduce) {
    .wheel-wrap, .wheel-pointer .pointer-body, .bulb, .wheel.is-win { animation: none !important; }
    .btn.is-spinning::before { animation-duration: 1.4s; }
}

/* Retos */
.challenges { margin-top: 28px; }
.challenges-head { display: flex; align-items: center; gap: 8px; }
.challenges-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.challenge-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.challenge-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.challenge-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.challenge-top p { font-weight: 600; font-size: 14px; }
.challenge-pts {
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.challenge-bar { height: 8px; background: var(--muted); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.challenge-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.challenge-count { font-size: 12px; color: var(--muted-foreground); margin-top: 6px; }

/* ============ Pedidos ============ */
.orders-view { padding: 20px 16px 0; }
.orders-view h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.active-order {
    margin-top: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.active-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 12px 16px;
}
.active-order-head .id { font-size: 12px; opacity: 0.8; }
.active-order-head .eta { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.order-steps { display: flex; align-items: center; padding: 16px; }
.order-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.order-step:last-child { flex: none; }
.order-step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
}
.order-step-dot.done { background: var(--primary); color: var(--primary-foreground); }
.order-step-dot.pending { background: var(--muted); color: var(--muted-foreground); }
.order-step-label { width: 56px; text-align: center; font-size: 10px; font-weight: 500; color: var(--muted-foreground); line-height: 1.2; }
.order-step-line { height: 4px; flex: 1; border-radius: 999px; margin-bottom: 20px; }
.order-step-line.done { background: var(--primary); }
.order-step-line.pending { background: var(--muted); }

.orders-history-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-top: 24px; }
.order-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding-bottom: 16px; }
.order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-card-id { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.order-card-date { font-size: 12px; color: var(--muted-foreground); }
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.status-recibido, .status-preparando { background: var(--accent); color: var(--accent-foreground); }
.status-en-camino { background: var(--primary); color: var(--primary-foreground); }
.status-entregado, .status-listopara { background: var(--muted); color: var(--muted-foreground); }
.order-card-items { font-size: 13px; color: var(--muted-foreground); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 10px;
}
.order-card-pts { font-size: 12px; font-weight: 600; color: var(--primary); }
.order-card-total { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

/* ============ Perfil ============ */
.profile-view { padding: 20px 16px 0; }
.profile-view h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
}
.user-name { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; }
.user-email { font-size: 13px; color: var(--muted-foreground); margin-top: 4px; }

.rewards-card {
    margin-top: 16px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 30%, transparent);
}
.rewards-card-top { display: flex; align-items: center; justify-content: space-between; }
.rewards-card-top .label { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent); }
.level-badge {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 999px;
    padding: 4px 12px;
}
.rewards-points { display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; }
.rewards-points .big { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1; }
.rewards-points .unit { display: flex; align-items: center; gap: 3px; font-size: 13px; margin-bottom: 4px; }
.rewards-progress { height: 10px; background: rgba(255, 255, 255, 0.25); border-radius: 999px; margin-top: 16px; overflow: hidden; }
.rewards-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s; }
.rewards-hint { font-size: 12px; opacity: 0.85; margin-top: 8px; }
.rewards-hint strong { color: var(--accent); }
.level-redeem {
    margin-top: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: levelPulse 1.8s ease-in-out infinite;
}
.level-redeem[hidden] { display: none; }
.level-redeem .star { color: #ffd54a; }
@keyframes levelPulse {
    0%, 100% { box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(0); }
    50% { box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { .level-redeem { animation: none; } }

.profile-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.profile-toggle-left { display: flex; align-items: center; gap: 12px; }
.profile-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--muted);
}
.profile-toggle-left span { font-weight: 600; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; transition: background 0.2s; }
.switch.on { background: var(--primary); }
.switch.off { background: var(--muted); }
.switch .knob {
    position: absolute;
    top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}
.switch.on .knob { transform: translateX(20px); }
.switch.off .knob { transform: translateX(2px); }

.profile-menu {
    margin-top: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.profile-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--foreground);
    text-align: left;
}
.profile-menu-item + .profile-menu-item { border-top: 1px solid var(--border); }
.profile-menu-item-left { display: flex; align-items: center; gap: 12px; }
.profile-menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--muted);
}
.profile-menu-item-left span { font-weight: 600; }
.profile-menu-item .chevron { color: var(--muted-foreground); }

.logout-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============ Drawer / Modal (bottom sheet) ============ */
.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    overscroll-behavior: contain;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
/* Bloquear el scroll de la página de fondo mientras haya un modal/hoja abierto */
html:has(.sheet-overlay.open),
body:has(.sheet-overlay.open) { overflow: hidden; }
.sheet-overlay .backdrop { position: absolute; inset: 0; border: none; background: transparent; }
.sheet {
    position: relative;
    z-index: 1; /* El panel debe quedar por encima del backdrop para que sus botones sean clickeables. */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}
.sheet-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--muted);
    color: var(--foreground);
}
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px; }
#add-modal .sheet-body { padding: 4px 20px 24px; }
.sheet-foot {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

/* ============ Modal de personalización de combos ============ */
.combo-subtitle {
    font-size: 14px;
    color: var(--muted-foreground, #666);
    margin: 4px 0 12px;
    line-height: 1.4;
}
.combo-acomp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.combo-acomp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
}
.combo-acomp-emoji { font-size: 34px; }
.combo-acomp-name { font-size: 13px; font-weight: 600; text-align: center; }
.combo-stepper { display: flex; align-items: center; gap: 12px; }
.combo-stepper .qty-btn {
    width: 52px; height: 52px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.combo-stepper .qty-val { width: 38px; font-size: 24px; }

/* Bloquear el zoom por doble toque dentro del modal de combos */
#combo-modal .sheet-body,
#combo-modal .sheet-foot,
#combo-modal .combo-acomp-card,
#combo-modal .combo-sabor-chip,
#combo-modal .combo-upgrade-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.combo-total {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.combo-total.bad { color: #d33; }
.combo-error {
    margin-top: 6px;
    font-size: 13px;
    color: #d33;
    text-align: center;
}
.combo-sabores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.combo-sabor-chip {
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.combo-sabor-chip.is-active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.combo-upgrade { margin-top: 18px; }
.combo-upgrade-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.combo-upgrade-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.combo-upgrade-btn.is-active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.combo-upgrade-btn .combo-upgrade-price { color: var(--primary); font-weight: 800; }

/* ============================================================
   Módulo de extras de las hamburguesas (queso cheddar + pepinillos)
   Se usa en el modal de producto y en el del combo.
   ============================================================ */
.burger-extras { margin-top: 20px; }

.extras-list {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
}
.extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.extra-row + .extra-row { border-top: 1px solid var(--border); }
.extra-row:active { background: var(--muted); }
.extra-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.extra-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.extra-sub { font-size: 12px; color: var(--muted-foreground); }

/* El interruptor. Es un <input type="checkbox"> de verdad, solo que dibujado. */
.extra-switch { position: relative; flex: 0 0 auto; display: inline-flex; width: 46px; height: 27px; }
.extra-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.extra-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d5d9de;
    transition: background 170ms ease;
}
.extra-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    transition: transform 170ms ease;
}
.extra-switch input:checked + .extra-track { background: var(--primary); }
.extra-switch input:checked + .extra-track::after { transform: translateX(19px); }
.extra-switch input:focus-visible + .extra-track {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Resumen de lo elegido, debajo del módulo */
.extra-total {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* ============ Carrito (drawer) ============ */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-img {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--muted);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.1; }
.cart-item-remove { border: none; background: transparent; color: var(--muted-foreground); padding: 2px; }
.cart-item-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px;
}
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border: none;
    border-radius: 50%;
}
.qty-btn.minus { background: var(--muted); color: var(--foreground); }
.qty-btn.plus { background: var(--primary); color: var(--primary-foreground); }
.qty-val { width: 24px; text-align: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.cart-item-total { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

.cart-item-reward { border-bottom: 1px solid var(--border); padding: 12px 0; display: flex; align-items: center; gap: 12px; }
.cart-item-reward .reward-free { color: var(--success); font-weight: 800; }

/* Premios disponibles para agregar al pedido */
.cart-rewards-available {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed var(--primary);
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}
.cart-rewards-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.cart-rewards-hint { font-size: 12px; color: var(--muted-foreground); margin: 0 0 10px; }
.cart-rewards-min {
    font-size: 12.5px;
    color: var(--muted-foreground);
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 0 0 10px;
}
.cart-rewards-min strong { color: var(--primary); }
.cart-reward-available {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}
.cart-reward-available:first-of-type { border-top: none; }
.cart-reward-avail-icon { font-size: 20px; flex-shrink: 0; }
.cart-reward-avail-info { flex: 1; min-width: 0; }
.cart-reward-avail-name { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.cart-reward-avail-desc { font-size: 12px; color: var(--muted-foreground); margin: 0; }
.cart-reward-avail-add {
    width: 34px; height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.cart-reward-avail-add:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    opacity: 0.6;
}

.cart-summary { padding: 12px 0; }
.summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted-foreground); padding: 3px 0; }
.summary-row.pts { color: var(--primary); font-weight: 600; }
/* Puntos del paso final, con el aparte del código de creador. */
.summary-row.pts.final-pts-row { padding: 6px 0 0; }
.pts-extra {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    animation: aparecerExtra 320ms ease-out both;
}
@keyframes aparecerExtra {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .pts-extra { animation: none; }
}
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; color: var(--foreground); }
.summary-row.total .label { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.summary-row.total .value { font-family: var(--font-display); font-size: 24px; font-weight: 800; }

.checkout-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform 0.12s;
}

/* ============================================================
   Código de creador (va justo antes de enviar el pedido)
   ============================================================ */
.creator-box { margin-top: 16px; }
.creator-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}
.creator-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    transition: border-color 160ms ease, background 160ms ease;
}
.creator-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 0;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--foreground);
}
.creator-input::placeholder {
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: var(--muted-foreground);
}
.creator-icon { font-size: 16px; font-weight: 800; }
.creator-input-wrap:focus-within { border-color: var(--foreground); }

/* Código correcto */
.creator-input-wrap.is-ok {
    border-color: var(--success);
    background: var(--success-bg);
}
.creator-input-wrap.is-ok .creator-icon { color: var(--success); }

/* Código incorrecto */
.creator-input-wrap.is-error {
    border-color: var(--destructive);
    background: color-mix(in srgb, var(--destructive) 8%, transparent);
}
.creator-input-wrap.is-error .creator-icon,
.creator-input-wrap.is-error .creator-input { color: var(--destructive); }

.creator-msg {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 17px;
}
.creator-msg.is-ok { color: var(--success); }
.creator-msg.is-error { color: var(--destructive); }

/* El temblor cuando el código está mal */
@keyframes temblorcito {
    0%, 100% { transform: translateX(0); }
    15%      { transform: translateX(-7px); }
    30%      { transform: translateX(6px); }
    45%      { transform: translateX(-5px); }
    60%      { transform: translateX(4px); }
    75%      { transform: translateX(-2px); }
}
.creator-input-wrap.tiembla {
    animation: temblorcito 430ms cubic-bezier(.36, .07, .19, .97) both;
}

/* Si el cliente pidió menos movimiento en su teléfono, no se sacude. */
@media (prefers-reduced-motion: reduce) {
    .creator-input-wrap.tiembla { animation: none; }
}

/* ============================================================
   MÓDULO DE PUNTOS CREADOR (solo cuentas con permiso)
   ============================================================ */

/* El ítem del menú del perfil, destacado sobre los demás. */
.profile-menu-item.profile-menu-creator {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, #000));
    color: var(--primary-foreground);
    margin-bottom: 8px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 26%, transparent);
}
.profile-menu-item.profile-menu-creator .profile-menu-item-icon { color: var(--primary-foreground); }
.profile-menu-item.profile-menu-creator .chevron { color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); }
.profile-menu-item.profile-menu-creator:active { transform: scale(0.985); }
.creator-menu-badge {
    margin-left: auto;
    margin-right: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-foreground);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.creator-body { padding: 4px 18px 28px; }

/* --- El número grande: puntos y dinero en vivo --- */
.creator-hero {
    text-align: center;
    padding: 22px 16px 18px;
    border-radius: 18px;
    /* Un poco más oscuro que --primary para que el texto blanco pase contraste AA. */
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--primary) 88%, #000),
        color-mix(in srgb, var(--primary) 62%, #000));
    color: var(--primary-foreground);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}
.creator-hero-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.creator-hero-pts {
    margin: 0;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.creator-hero-unit {
    margin-left: 6px;
    font-size: 20px;
    font-weight: 700;
    opacity: 0.92;
}
.creator-hero-money {
    margin: 14px 0 0;
    font-size: 15px;
}
.creator-hero-money b {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.creator-hero-rate {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.92;
}

/* --- Progreso hacia el canje --- */
.creator-progress { margin: 18px 0 0; }
.creator-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--muted);
    overflow: hidden;
}
.creator-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 520ms cubic-bezier(.22, 1, .36, 1);
}
.creator-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    /* Un pelo más oscuro que --muted-foreground: sobre el gris de fondo
       el tono normal se queda en 4.43:1 y no llega al mínimo de 4.5. */
    color: #5b6472;
}

/* --- Botón de canjear --- */
.creator-redeem-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 15px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform 0.12s, opacity 0.2s, background 0.2s;
}
.creator-redeem-btn:not(:disabled):active { transform: scale(0.98); }
/* Apagado hasta llegar al mínimo. */
.creator-redeem-btn:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.9;
}
.creator-redeem-btn.is-ready {
    animation: latidoCanje 1.8s ease-in-out infinite;
}
@keyframes latidoCanje {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    .creator-redeem-btn.is-ready { animation: none; }
    .creator-bar > span { transition: none; }
}
.creator-redeem-hint {
    margin: 9px 0 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #5b6472;
}

/* --- Ficha del creador --- */
.creator-card {
    margin-top: 20px;
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}
.creator-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    font-size: 14px;
    color: var(--muted-foreground);
}
.creator-card-row + .creator-card-row { border-top: 1px solid var(--border); }
.creator-card-row b {
    color: var(--foreground);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

/* --- Movimientos --- */
.creator-sub {
    margin: 22px 0 10px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--foreground);
}
.creator-moves { display: flex; flex-direction: column; gap: 8px; }
.creator-move {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}
.creator-move-title { display: block; font-size: 13.5px; font-weight: 700; color: var(--foreground); }
.creator-move-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted-foreground); }
.creator-move-right { text-align: right; flex-shrink: 0; }
.creator-move-pts {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}
.creator-move-money { display: block; font-size: 12px; font-weight: 600; color: var(--success); }
/* Un pedido que usó el código pero cuyos productos no daban puntos. */
.creator-move-pts.is-cero { color: #5b6472; }
.creator-empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--muted-foreground);
    border: 1px dashed var(--border);
    border-radius: 12px;
}
.checkout-btn:active { transform: scale(0.98); }

/* --- Globo de carrito multi-paso --- */
.step-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 600;
    padding: 0 0 12px;
    cursor: pointer;
}
.step-label { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.step-hint { font-size: 13px; color: var(--muted-foreground); margin: 0 0 16px; }
.delivery-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.delivery-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: var(--foreground);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.delivery-type-btn.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }
.gps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--primary);
    border-radius: 14px;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.gps-status { font-size: 12px; text-align: center; color: var(--muted-foreground); margin-top: 10px; }
.cart-map-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cart-map-wrap[hidden] { display: none !important; }
.cart-map-hint { font-size: 12px; color: var(--muted-foreground); text-align: center; }
.cart-map { width: 100%; height: 220px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; z-index: 1; background: #e5e3df; }
.cart-map .leaflet-container { background: #e5e3df; }
.step-subtitle { font-size: 12px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 10px; }
.addr-empty { font-size: 13px; color: var(--muted-foreground); background: var(--muted); border-radius: 12px; padding: 12px; text-align: center; }
.saved-address-card {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px; margin-bottom: 8px; text-align: left;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.saved-address-card:hover { border-color: var(--primary); }
.saved-address-card.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.saved-address-icon { font-size: 20px; flex-shrink: 0; }
.saved-address-info { flex: 1; min-width: 0; }
.saved-address-label { display: block; font-weight: 700; font-size: 14px; color: var(--foreground); }
.saved-address-text { display: block; font-size: 12px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-address-check { color: var(--primary); font-weight: 800; opacity: 0; transition: opacity .15s; }
.saved-address-card.active .saved-address-check { opacity: 1; }
.new-address-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 13px; margin-top: 4px;
    border: 2px dashed var(--border); border-radius: 14px;
    background: transparent; color: var(--foreground); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.new-address-btn:hover { border-color: var(--primary); color: var(--primary); }
.upsell-list { display: flex; flex-direction: column; gap: 10px; }
.upsell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
}
.upsell-item-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--muted); }
.upsell-item-info { flex-grow: 1; min-width: 0; }
.upsell-item-name { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.upsell-item-price { font-size: 13px; color: var(--primary); font-weight: 700; margin: 0; }
.upsell-item-add {
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.cart-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart-total-row span { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.cart-total-row .cart-total-value { font-size: 26px; font-weight: 800; color: var(--primary); }
.customer-fields { display: flex; flex-direction: column; gap: 14px; }
.customer-info-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; background: var(--muted); border-radius: 12px;
}
.customer-info-label { font-size: 12px; color: var(--muted-foreground); font-weight: 600; }
.customer-info-value { font-size: 15px; font-weight: 700; color: var(--foreground); text-align: right; word-break: break-word; }
.change-info-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 12px; margin-top: 4px;
    border: 1px solid var(--border); border-radius: 12px;
    background: transparent; color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.change-info-btn:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.customer-edit-actions { display: flex; gap: 10px; }
.save-info-btn {
    flex: 1; padding: 13px; border: none; border-radius: 12px;
    background: var(--primary); color: var(--primary-foreground); font-weight: 700; font-size: 14px; cursor: pointer;
}
.save-info-btn:disabled { opacity: .6; cursor: default; }
.cancel-info-btn {
    flex: 1; padding: 13px; border: 1px solid var(--border); border-radius: 12px;
    background: transparent; color: var(--muted-foreground); font-weight: 700; font-size: 14px; cursor: pointer;
}

/* Premios en el carrito */
.reward-list { display: flex; flex-direction: column; gap: 10px; }
.reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.reward-icon { font-size: 24px; flex-shrink: 0; }
.pending-pill {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #b26a00;
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}
.pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: #7a4d00;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 14px;
}
.reward-info { flex: 1; min-width: 0; }
.reward-title { font-weight: 700; display: block; font-size: 14px; }
.reward-desc { font-size: 12px; color: var(--muted-foreground); }
.reward-add {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ============ AddToCart modal ============ */
.modal-img { position: relative; height: 176px; flex-shrink: 0; overflow: hidden; background: var(--muted); border-radius: 24px 24px 0 0; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img .sheet-close {
    position: absolute;
    top: 12px; right: 12px;
    background: color-mix(in srgb, var(--card) 90%, transparent);
}
.modal-name { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; }
.modal-desc { font-size: 14px; color: var(--muted-foreground); margin-top: 6px; }
.modal-section { margin-top: 20px; }
.modal-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.option-btn.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.option-btn .opt-price { font-size: 12px; }
.option-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
}
.option-row-left { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.checkbox.checked { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.option-row .opt-price { font-size: 12px; color: var(--muted-foreground); font-weight: 600; }
.modal-notes {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--foreground);
    resize: none;
    outline: none;
}
.modal-notes:focus { border-color: var(--primary); }
.modal-foot-row { display: flex; align-items: center; gap: 12px; }
.modal-add-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform 0.12s;
}
.modal-add-btn:active { transform: scale(0.98); }
.sheet-foot-split .modal-add-btn { flex: none; justify-content: center; padding: 15px 28px; }

/* Pie tipo pollocheff.com: total a la izquierda + botón a la derecha */
.sheet-foot-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.modal-total-block { display: flex; flex-direction: column; min-width: 0; }
.modal-total-label { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.modal-total-price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--foreground); line-height: 1; }

/* ============ Checkout WhatsApp ============ */
.checkout-section { margin-top: 8px; }
.checkout-section .section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted-foreground); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--foreground);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.btn-whatsapp {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: transform 0.12s;
}
.btn-whatsapp:active { transform: scale(0.98); }
.wa-confirm { text-align: center; margin: 16px 0; }
.wa-confirm p { color: var(--muted-foreground); margin-bottom: 12px; }

/* ============ Alertas / vacío ============ */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); }
.empty { text-align: center; color: var(--muted-foreground); padding: 32px 16px; }
.empty .btn { margin-top: 12px; }

/* ============ Login ============ */
.auth-screen {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--primary) 6%, var(--background)) 0%, var(--background) 60%);
}
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
}
.auth-logo { width: 150px; height: auto; margin: 0 auto 8px; }
.auth-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--primary); }
.auth-sub { color: var(--muted-foreground); font-weight: 600; margin-bottom: 16px; }
.auth-tagline { color: var(--muted-foreground); font-size: 14px; margin-bottom: 24px; }
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #3c4043; /* texto oscuro fijo, visible en claro y oscuro */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
}
.btn-google:hover { background: #fafafa; }
.auth-note { font-size: 12px; color: var(--muted-foreground); margin-top: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 8px; }

/* ============ Completar perfil (panel acorde al diseño principal de la app) ============ */
.cp-screen {
    min-height: 100dvh;
    background: var(--background);
    display: flex;
    flex-direction: column;
}
.cp-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}
.cp-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 28px 22px;
}
.cp-card-head { text-align: left; margin-bottom: 20px; }
.cp-step {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.cp-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
    margin: 0 0 6px;
}
.cp-sub { color: var(--muted-foreground); font-size: 14px; margin: 0; line-height: 1.45; }
.cp-form { display: flex; flex-direction: column; gap: 14px; }

/* ============ Modal Google (mock) ============ */
.g-modal {
    position: fixed; inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.g-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.g-header { text-align: center; margin-bottom: 20px; }
.g-logo { width: 40px; height: 40px; margin: 0 auto 10px; }
.g-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #202124; }
.g-header p { color: #5f6368; font-size: 13px; }
.g-field { margin-bottom: 16px; text-align: left; }
.g-field label { display: block; font-size: 13px; font-weight: 600; color: #5f6368; margin-bottom: 6px; }
.g-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}
.g-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12); }
.g-next {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.g-hint { font-size: 12px; color: #5f6368; text-align: center; margin-top: 12px; }

/* ============ Toast ============ */
.toast-container {
    position: fixed;
    left: 16px; right: 16px;
    top: calc(env(safe-area-inset-top) + 12px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--foreground);
    color: var(--background);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ============ Panel de Ubicación (Mis direcciones) ============ */
.addr-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--background);
}
.addr-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 24px;
    overflow-y: auto;
}
.addr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: var(--background);
    z-index: 2;
}
.addr-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--muted);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.addr-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}
/* --- Panel Historial de Premios --- */
.prizes-body { padding-bottom: 24px; }
.prizes-section-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--foreground);
    margin: 20px 0 10px;
}
.prizes-section-title:first-child { margin-top: 4px; }
.prizes-empty {
    font-size: 13px;
    color: var(--muted-foreground);
    background: var(--muted);
    border-radius: 12px;
    padding: 14px 16px;
    line-height: 1.5;
}
.prize-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.prize-card.is-active { border-color: rgba(251, 192, 45, 0.55); }
.prize-card.is-used { opacity: 0.72; }
.prize-emoji {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.prize-card.is-active .prize-emoji { background: rgba(251, 192, 45, 0.18); }

/* ===== Panel Referidos ===== */
.ref-body { padding: 4px 2px 28px; }
.ref-intro { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); text-align: center; margin: 4px 8px 18px; }
.ref-intro b { color: var(--accent); }
.ref-card {
    text-align: center;
    background: linear-gradient(180deg, #fff7ea, var(--card, #fff));
    border: 1px solid var(--border, #e3e6ea);
    border-radius: 22px;
    padding: 24px 18px 20px;
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .22);
}
.ref-qr-zone { display: inline-flex; flex-direction: column; align-items: center; }
.ref-qr {
    width: 176px; height: 176px;
    background: #fff; padding: 12px;
    border: 3px solid #fff;
    border-radius: 20px;
    box-shadow: 0 0 0 5px rgba(251, 192, 45, .35), 0 12px 24px -10px rgba(0, 0, 0, .28);
    animation: refQrFloat 3.4s ease-in-out infinite;
}
@keyframes refQrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.ref-qr-scan {
    margin-top: 10px;
    font-size: 12px; font-weight: 700; color: #986e00;
    background: rgba(255, 200, 70, .28);
    padding: 4px 12px; border-radius: 999px;
}
.ref-label { font-size: 12px; color: var(--muted-foreground); margin: 16px 0 2px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ref-code { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--primary); margin: 0 0 14px; }
.ref-copy-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 20px;
    border: none; border-radius: 999px;
    background: var(--primary); color: var(--primary-foreground, #fff);
    font-weight: 700; font-size: 14px; cursor: pointer;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 45%, transparent);
    transition: transform .12s, box-shadow .12s;
}
.ref-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 55%, transparent); }
.ref-copy-btn:active { transform: translateY(0); }
.ref-copy-btn:disabled { opacity: .6; }
.ref-how { display: flex; gap: 8px; align-items: stretch; margin-top: 16px; }
.ref-how-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e3e6ea);
    border-radius: 16px;
    padding: 14px 8px;
}
.ref-how-n {
    width: 26px; height: 26px; flex: none;
    border-radius: 50%;
    background: var(--accent); color: var(--accent-foreground, #fff);
    font-family: var(--font-display); font-size: 14px; font-weight: 800;
    display: grid; place-items: center;
    box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ref-how-item p { margin: 0; font-size: 11px; line-height: 1.35; color: var(--muted-foreground); }
.ref-how-item p b { color: var(--accent); }
.ref-link-box { margin-top: 18px; }
.ref-link-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted-foreground); margin-bottom: 8px; }
.ref-link-row { display: flex; align-items: stretch; gap: 8px; }
.ref-link {
    flex: 1; min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border, #e3e6ea);
    border-radius: 12px;
    font-size: 12px; color: var(--foreground);
    background: var(--surface, #fff);
}
.ref-link-copy {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    border: none; border-radius: 12px;
    background: var(--muted, #f0f0f0); color: var(--foreground);
    cursor: pointer;
    transition: background .12s;
}
.ref-link-copy:hover { background: var(--border, #e3e6ea); }
.ref-wa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; box-sizing: border-box;
    margin-top: 18px; padding: 15px;
    border: none; border-radius: 14px;
    background: #25D366; color: #fff;
    font-weight: 800; font-size: 16px; text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
    transition: transform .12s, box-shadow .12s;
}
.ref-wa:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 211, 102, .5); }
@media (prefers-reduced-motion: reduce) { .ref-qr { animation: none; } }
.prize-info { flex: 1; min-width: 0; }
.prize-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--foreground);
    margin: 0;
}
.prize-desc {
    font-size: 12px;
    color: var(--muted-foreground);
    margin: 2px 0 0;
    line-height: 1.4;
}
.prize-date {
    font-size: 11px;
    color: var(--muted-foreground);
    margin: 4px 0 0;
}
.prize-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.prize-status.is-active { background: rgba(251, 192, 45, 0.18); color: #8a6d00; }
.prize-status.is-used { background: var(--muted); color: var(--muted-foreground); }
.addr-count {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}
.addr-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.addr-empty {
    text-align: center;
    color: var(--muted-foreground);
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.6;
}
.recur-subtitle { font-size: 13px; color: var(--muted-foreground); margin: 0 0 16px; }
.recur-list { display: flex; flex-direction: column; gap: 10px; }
.recur-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}
.recur-item:active { transform: scale(0.98); }
.recur-item:hover { border-color: var(--primary); }
.recur-item-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--muted);
}
.recur-item-info { flex-grow: 1; min-width: 0; }
.recur-item-name { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.recur-item-meta { font-size: 12px; color: var(--muted-foreground); margin: 0; }
.recur-item-add {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Notificaciones --- */
.notif-body { text-align: center; padding: 20px 8px; }
.notif-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notif-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.notif-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; margin: 0 0 20px; }
.notif-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.notif-btn:active { opacity: 0.85; }
.notif-status { font-size: 13px; color: var(--muted-foreground); margin-top: 14px; min-height: 18px; }

/* --- Ayuda y soporte --- */
.support-body { display: flex; flex-direction: column; gap: 12px; }
.support-intro { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; margin: 0 0 4px; }
.support-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.support-card:hover { border-color: var(--primary); }
.support-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.support-card-icon.wa { background: #25d366; }
.support-card-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.support-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted-foreground); }
.support-card-value { font-weight: 700; font-size: 14px; word-break: break-word; }
.support-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}
.support-hours-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.support-hours-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted-foreground); }
.support-hours-value { font-weight: 700; font-size: 14px; }
.addr-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.addr-item.is-default { border-color: var(--primary); }
.addr-item-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.addr-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.addr-item-info { min-width: 0; }
.addr-item-label {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.addr-default-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
}
.addr-item-address {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.addr-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.addr-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.addr-action.danger:hover { color: #d32f2f; border-color: #d32f2f; }
.addr-add-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.addr-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.addr-form-head { display: flex; align-items: center; gap: 12px; }
.addr-form-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0; }
.addr-gps-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.addr-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted-foreground);
    font-size: 12px;
    text-transform: uppercase;
}
.addr-divider::before, .addr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.addr-search-row { display: flex; gap: 8px; }
.addr-search-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 14px;
}
.addr-search-row input:focus { outline: none; border-color: var(--primary); }
.addr-search-row button {
    width: 46px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.addr-results { display: flex; flex-direction: column; gap: 8px; }
.addr-results.hidden { display: none; }
.addr-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 13px;
    cursor: pointer;
}
.addr-result svg { flex-shrink: 0; color: var(--primary); margin-top: 1px; }
.addr-status { font-size: 13px; color: var(--muted-foreground); text-align: center; min-height: 18px; }
.addr-selected {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
}
.addr-selected-label { font-size: 11px; text-transform: uppercase; opacity: 0.8; margin: 0 0 2px; }
.addr-selected-text { font-size: 14px; font-weight: 600; margin: 0; }
.mydata-fields { display: flex; flex-direction: column; gap: 14px; }
.addr-field { display: flex; flex-direction: column; gap: 6px; }
.addr-field label { font-size: 13px; font-weight: 600; }
.addr-field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 14px;
}
.addr-field input:focus { outline: none; border-color: var(--primary); }
.addr-field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}
.addr-field select:focus { outline: none; border-color: var(--primary); }
.addr-save-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}
.addr-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.addr-map-wrap { display: flex; flex-direction: column; gap: 8px; }
.addr-map-wrap[hidden], .addr-form[hidden], .addr-selected[hidden] { display: none !important; }
.addr-map-hint { font-size: 12px; color: var(--muted-foreground); text-align: center; }
.addr-map {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 1;
    background: #e5e3df; /* fondo claro siempre, evita mapa negro en modo oscuro */
}
.addr-map .leaflet-control-attribution { font-size: 9px; }
.addr-map .leaflet-container { background: #e5e3df; }
.addr-map .leaflet-tile { filter: none; }

/* ============ Desktop (≥768px) ============ */
@media (min-width: 768px) {
    /* App shell más ancho, con espacio para la barra lateral */
    .app-shell {
        max-width: none;
        padding-left: 240px;
    }
    .app-main {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 0 24px 60px;
    }

    /* BottomNav → barra lateral izquierda */
    .bottom-nav {
        left: 0; right: auto; top: 0; bottom: 0;
        width: 240px;
        max-width: none;
        border-top: none;
        border-right: 1px solid var(--border);
        padding-top: 20px;
    }
    .bottom-nav ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 0 12px;
    }
    .bottom-nav li { flex: none; }
    .nav-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 16px;
        font-size: 15px;
    }
    .nav-btn .nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

    /* Topbar más ancho */
    .topbar-inner { padding: 12px 24px; padding-top: calc(12px + env(safe-area-inset-top)); }

    /* CartFab: círculo en la esquina inferior derecha */
    .cart-fab {
        left: auto;
        right: 24px;
        max-width: none;
        margin: 0;
        bottom: 24px;
    }

    /* Menú: grid de 2 columnas */
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Categorías y búsqueda más anchas */
    .cat-pills { flex-wrap: wrap; }
    .search-bar { max-width: 480px; }

    /* Modales / hojas centradas y más anchas */
    .sheet-overlay {
        justify-content: center;
    }
    .sheet {
        max-width: 600px;
        max-height: 85vh;
        border-radius: 24px;
        transform: translateY(20px) scale(0.98);
    }
    .sheet-overlay.open .sheet { transform: translateY(0) scale(1); }

    /* Panel de direcciones centrado */
    .addr-panel { max-width: 600px; }
}

/* ============ Globo de cumpleaños ============ */
.birthday-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
    animation: birthday-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.birthday-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.birthday-balloon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    animation: balloon-float 2.4s ease-in-out infinite;
}
.birthday-content { position: relative; z-index: 1; min-width: 0; }
.birthday-tag {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.95;
}
.birthday-title { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.birthday-desc { margin: 0 0 10px; font-size: 13px; line-height: 1.35; opacity: 0.95; }
.birthday-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.birthday-cta:active { transform: scale(0.96); }
@keyframes birthday-pop {
    from { opacity: 0; transform: translateY(-14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes balloon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============ Globo de bienvenida (cuenta nueva) ============ */
.welcome-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
    animation: birthday-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.welcome-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.welcome-balloon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    animation: balloon-float 2.4s ease-in-out infinite;
}
.welcome-content { position: relative; z-index: 1; min-width: 0; }
.welcome-tag {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.95;
}
.welcome-title { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.welcome-desc { margin: 0 0 10px; font-size: 13px; line-height: 1.35; opacity: 0.95; }
.welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.welcome-cta:active { transform: scale(0.96); }

/* ============ Barra de redes sociales ============ */
.social-bar {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.social-bar::-webkit-scrollbar { display: none; }
.social-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-btn:active { transform: scale(0.96); }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tt { background: #000; }
.social-wa { background: #25d366; }

/* ============ Ruleta de cumpleaños ============ */
.birthday-sheet .sheet-body { padding-top: 6px; }
.birthday-wheel-sub {
    margin: 0 0 14px;
    text-align: center;
    font-size: 14px;
    color: var(--muted-foreground);
}
.birthday-sheet .wheel-stage { margin: 0 auto; }

/* ============ Ofertas del día ============ */
.deal-card {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 85%, var(--primary)) 100%);
    border: 1px solid #e3a815;
    border-radius: 16px;
    padding: 10px 148px 10px 12px;
    min-height: 96px;
    margin: 12px 0 34px;
    overflow: visible;
    box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 60%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(150, 90, 0, .5); }
.deal-card::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-20deg); transition: left .5s ease; pointer-events: none; }
.deal-card:hover::before { left: 130%; }
.deal-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
    color: #2a1a00; background: rgba(255, 255, 255, .4);
    padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; line-height: 1.2;
}
.deal-tag::before { content: "✦"; animation: deal-spark 1.6s ease-in-out infinite; }
@keyframes deal-spark { 0%,100% { transform: translateY(0); opacity:.7; } 50% { transform: translateY(-2px); opacity:1; } }
.deal-row { display: flex; align-items: center; gap: 12px; }
.deal-info { position: relative; z-index: 1; }
.deal-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: .4px; line-height: 1; color: #2a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.deal-name small { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: rgba(42, 26, 0, .72); margin-top: 3px; }
.deal-txt { font-size: .76rem; color: rgba(42, 26, 0, .8); margin: 5px 0 9px; line-height: 1.25; }
.deal-cta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.deal-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #fff; color: #2a1a00; border: 1px solid rgba(42, 26, 0, .08); border-radius: 12px; padding: 8px 12px;
    width: auto; min-width: 128px; text-align: left; box-shadow: 0 3px 10px rgba(120, 60, 0, .18);
    transition: transform .12s ease, box-shadow .15s ease; font-size: .84rem; font-weight: 800; cursor: pointer;
}
.deal-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(120, 60, 0, .28); }
.deal-btn:active { transform: scale(.96); }
.deal-btn i { display: block; font-style: normal; font-weight: 600; font-size: .6rem; text-transform: uppercase; letter-spacing: .3px; opacity: .7; }
.deal-btn-hot { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 7px 16px rgba(160, 30, 30, .32); }
.deal-btn-hot:hover { background: #b71c1c; }
.deal-btn-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.deal-photo { position: absolute; top: 50%; right: -2px; transform: translateY(-50%); z-index: 0; }
.deal-photo img {
    width: 138px; height: 138px; object-fit: cover; border-radius: 50%;
    border: 4px solid #fff; background: #fff;
    box-shadow: 0 12px 24px rgba(120, 60, 10, .32);
    transition: transform .3s ease;
}
.deal-card:hover .deal-photo img { transform: rotate(-8deg) scale(1.05); }
.deal-mini-new {
    position: absolute; top: 12px; right: 10px; z-index: 2;
    background: var(--primary); color: #fff; font-size: .58rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .4px; padding: 3px 7px; border-radius: 999px;
    box-shadow: 0 4px 10px rgba(120, 20, 20, .35);
}

/* ============ Lanzamiento BurgerCheff (promo-hero original adaptado) ============ */
.promo-launch { min-height: 150px; } /* alto compacto */
.promo-launch .promo-content { flex: 1; min-width: 0; padding-right: 42%; }
/* Imagen con corte diagonal, formando parte del panel, centrada para que se vea */
.promo-launch .promo-img {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%; height: auto;
    object-fit: cover;
    /* Valores por defecto. El dueño los cambia desde el panel admin
       → Oferta del día. /clientes reemplaza estos var() inline desde
       la tabla promo_settings. */
    --pos-y: 50%;
    --zoom: 1.2;
    --raise-y: -80px;
    object-position: center var(--pos-y);
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); /* corte diagonal, encuadre afinado */
    transform: scale(var(--zoom)) translateY(var(--raise-y));
    filter: saturate(1.05);
}

.promo-launch .promo-round-btn {
    -webkit-appearance:none; appearance:none; border:0; cursor:pointer;
    position:absolute; right:8%; top:50%; transform:translateY(-50%);
    width:140px; height:140px; border-radius:50%;
    background:#fff; padding:3px;
    box-shadow:0 12px 26px -10px rgba(120,60,0,.55);
    z-index:3; overflow:hidden; display:flex; align-items:center; justify-content:center;
    animation: promo-float 2.8s ease-in-out infinite, promo-glow 3.4s ease-in-out infinite;
    transition:transform .15s ease, box-shadow .2s ease;
}
.promo-launch .promo-round-btn .promo-round-img {
    width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; background:#eee;
}
.promo-launch .promo-round-btn:hover { transform:translateY(-50%) scale(1.06); box-shadow:0 16px 34px -10px rgba(120,60,0,.65); }
.promo-launch .promo-round-btn:active { transform:translateY(-50%) scale(.96); }

@keyframes promo-float {
    0%, 100% { transform: translateY(calc(-50% - 2px)); }
    50%      { transform: translateY(calc(-50% - 11px)); }
}
@keyframes promo-glow {
    0%, 100% { box-shadow: 0 12px 22px -10px rgba(120,60,0,.5), 0 0 0 0 rgba(255,217,90,.6); }
    50%      { box-shadow: 0 16px 28px -10px rgba(120,60,0,.6), 0 0 0 14px rgba(255,217,90,0); }
}
@media (prefers-reduced-motion: reduce) {
    .promo-launch .promo-round-btn { animation: none; }
}

.promo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.promo-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #2a1a00; border: none; border-radius: 999px; padding: 10px 18px;
    font-weight: 800; font-size: .88rem; cursor: pointer; box-shadow: 0 4px 12px rgba(120, 60, 0, .2);
    transition: transform .12s ease, box-shadow .15s ease;
}
.promo-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(120, 60, 0, .28); }
.promo-cta-btn:active { transform: scale(.97); }
.promo-cta-btn-hot { background: var(--primary); color: #fff; box-shadow: 0 7px 16px rgba(160, 30, 30, .32); }
.promo-cta-btn-hot:hover { background: #b71c1c; }
@media (max-width: 480px) {
    .promo-launch .promo-content { padding-right: 42%; }
    .promo-launch .promo-round-btn { width:120px; height:120px; right:5%; }
    .promo-launch .promo-cta { flex-wrap: nowrap; }
    .promo-launch .promo-cta-btn { flex: 1 1 0; justify-content: center; white-space: nowrap; font-size: .8rem; padding: 9px 8px; min-width: 0; }
}

/* ============ Accesibilidad ============ */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ===== Retos de la ruleta (checklist que otorga puntos) ===== */
.challenge-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.challenge-card { display: flex; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--border, #e3e6ea); border-radius: 16px; padding: 14px; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .12); }
.challenge-check { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--muted, #eef0ec); color: #88909c; border: 1px solid var(--border, #e3e6ea); }
.challenge-card.challenge-done .challenge-check { background: var(--primary, #d32f2f); color: #fff; border-color: transparent; }
.challenge-info { flex: 1; min-width: 0; }
.challenge-title { display: block; font-weight: 800; font-size: 15px; }
.challenge-desc { display: block; font-size: 12px; color: var(--muted-foreground, #6b7280); }
.challenge-pts { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--primary, #d32f2f); }
.challenge-action { flex: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.challenge-claimed { font-size: 13px; font-weight: 800; color: #2e7d32; white-space: nowrap; }
.challenge-locked { font-size: 22px; opacity: .45; }
.challenge-card.is-claimed { opacity: .72; }

/* ===== Bloque de retos dentro de la pestaña Juegos ===== */
.challenge-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border, #e3e6ea); }
.challenge-block-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.challenge-block-desc { margin: 0 0 12px; font-size: 13px; color: var(--muted-foreground, #6b7280); }

/* ===== Estado "Canjeado" más grande y llamativo ===== */
.challenge-card.is-claimed { opacity: 1; padding: 18px 16px; background: linear-gradient(180deg, #f1fbf1, var(--card, #fff)); border-color: #bfe3c5; }
.challenge-card.is-claimed .challenge-check { width: 44px; height: 44px; font-size: 24px; background: #2e7d32; color: #fff; border-color: #2e7d32; }
.challenge-card.is-claimed .challenge-title { font-size: 16px; }
.challenge-card.is-claimed .challenge-pts { font-size: 13px; }
.challenge-claimed { font-size: 14px; font-weight: 800; color: #2e7d32; background: #e3f4e5; padding: 9px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px -4px rgba(46, 125, 50, .4); }

/* ===== Validación de retos (solicitar / en validación) ===== */
.challenge-request { background: var(--card, #fff); color: var(--primary, #d32f2f); border: 1px solid var(--primary, #d32f2f); }
.challenge-request:disabled { opacity: .6; cursor: default; }
.challenge-pending { font-size: 13px; font-weight: 800; color: #b7791f; background: #fdf3dc; padding: 9px 12px; border-radius: 999px; white-space: nowrap; }

/* ===== Subir capture de story para validar reto ===== */
.challenge-proof { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.challenge-proof .challenge-request {
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%);
    color: #fff;
    border-color: rgba(255,255,255,.16);
    padding: 10px 17px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--primary) 80%, transparent);
}
.challenge-proof .challenge-request:hover:not(:disabled) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 80%, black) 0%, color-mix(in srgb, var(--primary) 55%, var(--accent)) 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--primary) 85%, transparent);
}
.challenge-proof .challenge-request:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.challenge-proof-hint { font-size: 11px; color: var(--muted, #999); text-align: center; line-height: 1.35; }
@media (min-width: 640px) {
    .challenge-proof { align-items: flex-end; }
    .challenge-proof-hint { text-align: right; max-width: 200px; }
}


/* ===== Logro tipo "desbloquea nivel 2" ===== */
.challenge-unlocked { font-size: 13px; font-weight: 800; color: #2e7d32; background: #e3f4e5; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }


/* ============================================================
   Happy Hour — descuento en los Combos Classic
   (precio anterior tachado + precio rebajado)
   ============================================================ */
.price-old {
    font-size: 0.72em;
    font-weight: 600;
    color: var(--muted-foreground);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary);
    margin-right: 6px;
}
/* El precio rebajado se resalta solo cuando hay un precio anterior tachado. */
.price-old + .price-now { color: var(--primary); }

.product-price.is-offer { display: inline-flex; align-items: baseline; }
.product-price.is-offer .price-old { font-size: 14px; margin-right: 6px; }

.product-hh-pill {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #ff7043);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(211, 47, 47, .25);
}

/* Botón de Happy Hour (solo administradores, en Perfil) */
.hh-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.hh-toggle:active { transform: scale(.99); }
.hh-toggle-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.hh-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hh-toggle-title { font-size: 15px; font-weight: 800; letter-spacing: .1px; }
.hh-toggle-sub { font-size: 12px; color: var(--muted-foreground); }
.hh-toggle.is-on {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 6px 18px rgba(211, 47, 47, .3);
}
.hh-toggle.is-on .hh-toggle-sub { color: rgba(255, 255, 255, .85); }
.hh-toggle.is-loading { opacity: .7; cursor: progress; }

/* Variante para reiniciar el aviso de opinión (también solo administradores).
   Azul de Google para no confundirlo con el botón de Happy Hour. */
.review-reset { border-color: color-mix(in srgb, #4285f4 45%, var(--border)); }
.review-reset .hh-toggle-icon { font-size: 20px; }
.review-reset:not(.is-on) .hh-toggle-title { color: color-mix(in srgb, #1a56c4 88%, var(--foreground)); }
.review-reset:not(.is-on) { background: color-mix(in srgb, #4285f4 5%, var(--card)); }

/* ============================================================
   Aviso de opinión al terminar un pedido
   1) botón a Google (sin puntos)  2) encuesta propia -> puntos
   ============================================================ */
.review-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    opacity: 0;
    transition: opacity .26s var(--ease-out, ease);
    overscroll-behavior: contain;
}
.review-overlay[hidden] { display: none; }
.review-overlay.open { opacity: 1; }
html:has(.review-overlay.open),
body:has(.review-overlay.open) { overflow: hidden; }

.review-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.review-card {
    position: relative;
    width: 100%;
    max-width: 372px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--card);
    border-radius: 24px;
    padding: 30px 22px 22px;
    text-align: center;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
    transform: translateY(14px) scale(.97);
    transition: transform .3s var(--ease-out, ease);
}
.review-overlay.open .review-card { transform: translateY(0) scale(1); }

.review-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: var(--muted); color: var(--muted-foreground);
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.review-close:hover { background: var(--border); color: var(--foreground); }
.review-close:active { transform: scale(.92); }
.review-close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.review-head { margin-bottom: 18px; }
.review-emoji { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.review-title {
    font-family: var(--font-display);
    font-size: 27px; font-weight: 800; line-height: 1.05;
    color: var(--foreground);
}
.review-sub { margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: var(--muted-foreground); }

/* --- Botón de Google: es LA acción principal del aviso --- */
.review-google {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    width: 100%; min-height: 74px;
    padding: 13px 18px;
    background: #fff;
    border: 2px solid #d9e2f7;
    border-radius: 18px;
    text-decoration: none; color: var(--foreground);
    box-shadow: 0 12px 30px -14px rgba(66, 133, 244, .45), 0 2px 8px -4px rgba(0, 0, 0, .12);
    transition: transform .16s, box-shadow .16s, border-color .16s;
    animation: reviewGlow 2.8s ease-in-out infinite;
}
@keyframes reviewGlow {
    0%, 100% { box-shadow: 0 12px 30px -14px rgba(66, 133, 244, .45), 0 2px 8px -4px rgba(0, 0, 0, .12); }
    50%      { box-shadow: 0 17px 40px -12px rgba(66, 133, 244, .85), 0 2px 8px -4px rgba(0, 0, 0, .12); }
}
.review-google:hover {
    border-color: #4285f4;
    box-shadow: 0 18px 42px -12px rgba(66, 133, 244, .9), 0 2px 8px -4px rgba(0, 0, 0, .12);
    animation: none;
}
.review-google:active { transform: scale(.98); }
.review-google:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.review-google-icon { flex-shrink: 0; }
.review-google-text { display: flex; flex-direction: column; text-align: left; }
.review-google-text strong {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 800; line-height: 1.1;
}
.review-google-text small { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }

/* Aviso tranquilo: le dice al cliente que no pierde nada al ir a Google. */
.review-hint {
    margin-top: 10px;
    font-size: 12px; font-weight: 600; line-height: 1.4;
    color: var(--muted-foreground); text-align: center;
}

/* --- Botón de WhatsApp (solo aparece al volver de Google) --- */
.review-wa {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 56px;
    padding: 0 16px;
    border: none; border-radius: 14px;
    background: #25d366; color: #062e17;
    font-family: var(--font-display); font-size: 19px; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .7);
    transition: transform .16s, filter .16s, box-shadow .16s;
}
.review-wa:hover { filter: brightness(1.06); box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .78); }
.review-wa:active { transform: scale(.98); }
.review-wa:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.review-wa svg { flex: 0 0 auto; }

.review-sep {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0 14px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted-foreground);
}
.review-sep::before,
.review-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* --- Encuesta propia --- */
.review-survey-title {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700; color: var(--foreground);
}
.review-stars { display: flex; justify-content: center; gap: 6px; margin: 10px 0 12px; }
.review-star {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    padding: 0; border: none; border-radius: 10px;
    background: transparent; cursor: pointer;
    transition: transform .13s var(--ease-out, ease);
}
.review-star svg { width: 34px; height: 34px; fill: var(--border); transition: fill .16s; }
.review-star:hover { transform: scale(1.12); }
.review-star.is-on svg { fill: var(--secondary); }
.review-star:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }

.review-comment {
    width: 100%;
    min-height: 58px;
    padding: 11px 13px;
    border: 1.5px solid var(--input);
    border-radius: 13px;
    background: var(--card);
    font-family: inherit; font-size: 14px; color: var(--foreground);
    resize: vertical;
    outline: none;
    transition: border-color .16s, box-shadow .16s;
}
.review-comment::placeholder { color: var(--muted-foreground); }
.review-comment:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.review-submit {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-height: 50px; margin-top: 12px;
    padding: 0 16px;
    border: none; border-radius: 14px;
    background: var(--primary); color: var(--primary-foreground);
    font-family: var(--font-display); font-size: 19px; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 65%, transparent);
    transition: transform .16s, opacity .16s, box-shadow .16s;
}
.review-submit:hover:not(:disabled) {
    box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--primary) 72%, transparent);
}
.review-submit:active:not(:disabled) { transform: scale(.98); }
.review-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.review-submit:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.review-submit.is-loading { opacity: .7; pointer-events: none; }

/* --- Salida discreta: a propósito NO compite con el botón de Google --- */
.review-continue {
    display: block; width: 100%;
    margin-top: 16px; padding: 10px 8px;
    border: none; border-radius: 10px;
    background: none;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    color: var(--muted-foreground);
    text-align: center; text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.review-continue:hover { color: var(--foreground); background: var(--muted); }
.review-continue:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* --- Agradecimiento --- */
.review-thanks { padding: 6px 0 2px; }
.review-thanks-emoji { font-size: 40px; line-height: 1; }
.review-thanks-title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 23px; font-weight: 800; color: var(--foreground);
}
.review-thanks-sub { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
    .review-overlay, .review-card, .review-star, .review-google, .review-submit, .review-continue, .review-wa { transition: none; }
    .review-google { animation: none; }
}

/* ============================================================
   Panel de canje de CoinCheff: felicitación, pasos y WhatsApp.
   ============================================================ */
.redeem-hero {
    text-align: center;
    padding: 24px 16px 20px;
    border-radius: 18px;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--primary) 88%, #000),
        color-mix(in srgb, var(--primary) 62%, #000));
    color: var(--primary-foreground);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}
.redeem-emoji { margin: 0; font-size: 40px; line-height: 1; }
.redeem-title {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.redeem-sub { margin: 4px 0 0; font-size: 14px; opacity: 0.92; }
.redeem-amount {
    margin: 14px 0 0;
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.redeem-amount-sub { margin: 6px 0 0; font-size: 12.5px; opacity: 0.92; }

.redeem-steps-title {
    margin: 22px 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6472;
}
.redeem-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.redeem-steps li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.45; color: var(--foreground); }
.redeem-steps li b { font-weight: 700; }
.redeem-n {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 12.5px;
    font-weight: 800;
}

.redeem-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #25d366;
    color: #06301a;
    font-size: 15.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.redeem-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }
.redeem-wa:active { transform: translateY(0); }
.redeem-wa svg { flex: 0 0 auto; }
.redeem-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: #5b6472;
}
.redeem-note b { font-weight: 700; color: var(--foreground); }
