Files
smartmenu-collina/src/app/globals.css
T
Collina SystemsandClaude Opus 4.8 58a71d0bef Apply full frontend redesign (Montserrat, red accent, glass + dock UI)
Fonts switched to Montserrat (UI) + Merriweather (landing wordmark). Macro
protein standard color updated to #dc2626; primary actions hardcoded red.
New globals.css primitives: ai-smoke gradient buttons, seg-btn, sticky
cat-bar, editor dock-*, macro shimmer, delivery-timer pulses, liquid-btn,
aurora, editable-num.

- Public: landing (video bg + red CTA), PublicMenu (segmented toggle +
  "Preguntar a Claude" + sticky category bar w/ scroll-spy + Order/Waiter/
  Split FABs), DishCard flip, MacrosBack shimmer, BrandHeader, SplitPanel,
  AiConsultant.
- Editor: bottom dock navigation, EditorLogin video background, BrandTab,
  CatalogTab (+SectionTitleEditor), VersionHistory, OrdersTab, ProductEditor.
- Admin: AdminLogin, AdminPanel.
- Add landing/editor background videos under public/videos.
- ES/EN i18n keys added; FRONTEND.md updated; design mockups included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 14:03:06 -06:00

537 lines
14 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
/* Default restaurant palette (overridden per-restaurant at runtime). */
--bg: #f4f1ec;
--bg-2: #e9e3da;
--surface: rgba(255, 255, 255, 0.55);
--accent: #b45309;
--text: #2a2520;
--tab: rgba(255, 255, 255, 0.45);
}
html,
body {
padding: 0;
margin: 0;
min-height: 100%;
}
body {
color: var(--text);
font-family: var(--font-montserrat), system-ui, sans-serif;
background:
radial-gradient(1200px 800px at 80% -10%, rgba(255, 255, 255, 0.6), transparent 60%),
radial-gradient(1000px 700px at -10% 110%, rgba(255, 255, 255, 0.4), transparent 55%),
linear-gradient(160deg, var(--bg), var(--bg-2));
background-attachment: fixed;
}
@layer components {
.glass {
background: var(--surface);
backdrop-filter: blur(18px) saturate(140%);
-webkit-backdrop-filter: blur(18px) saturate(140%);
border: 1px solid rgba(255, 255, 255, 0.6);
box-shadow:
0 8px 32px rgba(31, 38, 135, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.glass-soft {
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-pill {
background: var(--tab);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255, 255, 255, 0.55);
}
.display {
font-family: var(--font-montserrat), system-ui, sans-serif;
}
/* Reserved for the landing "Smart Menu" wordmark. */
.wordmark {
font-family: var(--font-merriweather), Georgia, serif;
}
}
/* 3D flip card primitives */
.flip-scene {
perspective: 1400px;
}
.flip-card {
position: relative;
transform-style: preserve-3d;
transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip-card.is-flipped {
transform: rotateY(180deg);
}
.flip-face {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
position: absolute;
inset: 0;
}
.flip-front {
position: relative;
}
.flip-back {
transform: rotateY(180deg);
}
/* ---- Landing page brand animation (lightweight, pure CSS) ---- */
@keyframes lp-rise {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes lp-sparkle {
0%,
100% {
opacity: 0;
transform: scale(0.2) rotate(0deg);
}
50% {
opacity: 1;
transform: scale(1) rotate(90deg);
}
}
@keyframes lp-glow {
0%,
100% {
opacity: 0.45;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.08);
}
}
.lp-smart {
animation: lp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-sign {
animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
.lp-cta {
animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}
.lp-glow {
animation: lp-glow 6s ease-in-out infinite;
}
.lp-sparkle {
animation: lp-sparkle 2.6s ease-in-out infinite both;
/* delay accompanies the "by Collina" entrance; staggered per-sparkle below */
animation-delay: 0.7s;
}
/* Respect reduced motion: show the final state, skip the sequence. */
@media (prefers-reduced-motion: reduce) {
.lp-smart,
.lp-sign,
.lp-cta {
animation: none;
opacity: 1;
transform: none;
}
.lp-glow {
animation: none;
}
.lp-sparkle {
animation: none;
opacity: 0.55;
}
}
/* hide horizontal scrollbar on section tabs */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* ============================================================
Redesign design-system primitives (ported from the mockups)
============================================================ */
/* ---- Primary action color (hardcoded red across restaurants) ---- */
:root {
--action: #dc2626;
}
/* ---- "Liquid glass" button (opt-in via .liquid-btn) ---- */
.liquid-btn {
position: relative;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(245, 242, 237, 0.25) 55%, rgba(180, 83, 9, 0.06)),
rgba(255, 255, 255, 0.4);
backdrop-filter: blur(10px) saturate(160%);
-webkit-backdrop-filter: blur(10px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.9);
box-shadow:
0 10px 24px -6px rgba(40, 30, 20, 0.22),
0 2px 6px rgba(40, 30, 20, 0.1),
inset 0 2px 2px rgba(255, 255, 255, 1),
inset 0 -6px 12px rgba(180, 160, 140, 0.18),
inset 0 0 0 1px rgba(255, 255, 255, 0.5);
overflow: hidden;
color: #2a2520;
transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.liquid-btn::before {
content: '';
position: absolute;
left: 6%;
right: 6%;
top: 2px;
height: 42%;
border-radius: 999px;
pointer-events: none;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
filter: blur(0.5px);
opacity: 0.9;
}
.liquid-btn:hover {
box-shadow:
0 14px 30px -6px rgba(40, 30, 20, 0.28),
0 3px 8px rgba(40, 30, 20, 0.14),
inset 0 2px 3px rgba(255, 255, 255, 1),
inset 0 -7px 14px rgba(180, 160, 140, 0.22),
inset 0 0 0 1px rgba(255, 255, 255, 0.6);
transform: translateY(-1px);
}
/* ---- Animated gradient "smoke" buttons (AI / order / split) ---- */
@keyframes ai-smoke {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.ai-smoke,
.ai-smoke-red,
.ai-smoke-green {
background-size: 300% 300%;
color: #fff;
border: none;
animation: ai-smoke 6s ease-in-out infinite;
}
.ai-smoke { background-image: linear-gradient(120deg, #d97757, #e89b7d, #c2410c, #e08a5f, #d97757); }
.ai-smoke-red { background-image: linear-gradient(120deg, #dc2626, #f05252, #991b1b, #ef4444, #dc2626); }
.ai-smoke-green { background-image: linear-gradient(120deg, #4c1d95, #6d28d9, #3b0764, #5b21b6, #4c1d95); }
@media (prefers-reduced-motion: reduce) {
.ai-smoke,
.ai-smoke-red,
.ai-smoke-green { animation: none; }
}
/* ---- Segmented control (e.g. Tarjetas / Lista) ---- */
.seg-btn {
color: rgba(42, 37, 32, 0.5);
background: transparent;
border: none;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg-btn.is-active {
color: #111;
background: #fff;
box-shadow: 0 2px 8px rgba(40, 30, 20, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
/* ---- Category pills + sticky "stuck" bar (public menu sections) ---- */
.cat-btn {
display: flex;
align-items: center;
gap: 8px;
background: #f0f0f0;
color: #111;
border: none;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
}
.cat-btn.is-active {
background: #111;
color: #fff;
}
.cat-bar {
background: #ffffff;
display: flex;
flex-direction: column;
transition: box-shadow 0.25s ease, background 0.25s ease;
}
.cat-bar.is-stuck {
box-shadow: 0 6px 16px -6px rgba(40, 30, 20, 0.18), 0 1px 0 rgba(0, 0, 0, 0.04);
}
.cat-row {
display: flex;
gap: 8px;
overflow-x: auto;
}
.stuck-name {
display: none;
font-weight: 700;
font-size: 18px;
color: #111;
margin-bottom: 12px;
padding-left: 2px;
}
.cat-bar.is-stuck .stuck-name { display: block; }
.cat-bar.is-stuck .cat-row { justify-content: flex-start; gap: 22px; }
.cat-bar.is-stuck .cat-btn {
background: transparent !important;
color: rgba(42, 37, 32, 0.45) !important;
border-radius: 0 !important;
padding: 0 0 9px !important;
position: relative;
font-weight: 600;
}
.cat-bar.is-stuck .cat-btn.is-active { background: transparent !important; color: #111 !important; }
.cat-bar.is-stuck .cat-btn.is-active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 3px;
border-radius: 3px;
background: #111;
}
/* ---- Editor bottom dock navigation ---- */
.dock-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
width: 100%;
padding: 20px 18px 14px;
border-radius: 32px;
background: #fff;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dock-btn {
flex: 1 1 0;
height: 46px;
border: none;
background: transparent;
cursor: pointer;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
.dock-chip {
width: 46px;
height: 46px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: #1b1916;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.5, 1), background 0.25s, box-shadow 0.25s;
}
.dock-btn:hover .dock-chip { transform: translateY(-3px); }
.dock-btn.is-active .dock-chip {
background: #ececec;
transform: translateY(-12px) scale(1.06);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.dock-dot {
position: absolute;
bottom: -4px;
left: 50%;
width: 6px;
height: 6px;
border-radius: 999px;
background: #111;
transform: translateX(-50%) scale(0);
transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.5, 1);
}
.dock-btn.is-active .dock-dot { transform: translateX(-50%) scale(1); }
.dock-tip {
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
padding: 7px 16px;
border-radius: 14px;
background: #fff;
color: #1b1916;
font-size: 14px;
font-weight: 500;
white-space: nowrap;
opacity: 0;
transform: translateX(-50%) translateY(6px) scale(0.95);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.2);
}
.dock-btn:hover .dock-tip { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
/* ---- Macro grid (back of dish card) + shimmering numbers ---- */
.macro-cell {
background: #fff;
border: 1px solid rgba(0, 0, 0, 0.04);
box-shadow: 0 1px 3px rgba(40, 30, 20, 0.06);
}
@keyframes macro-shine {
0% { background-position: 250% 0; }
100% { background-position: -150% 0; }
}
.macro-num {
background-image: linear-gradient(
100deg,
var(--c) 0%,
var(--c) 42%,
color-mix(in srgb, var(--c) 35%, #ffffff) 50%,
var(--c) 58%,
var(--c) 100%
);
background-size: 250% 100%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
animation: macro-shine 5.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.macro-num { animation: none; }
}
/* ---- Order delivery-timer pulses (editor orders) ---- */
@keyframes pendiente-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(40, 189, 28, 0); }
50% { box-shadow: 0 0 0 4px rgba(40, 189, 28, 0.5); }
}
@keyframes pendiente-pulse-yellow {
0%, 100% { box-shadow: 0 0 0 0 rgba(224, 189, 58, 0); }
50% { box-shadow: 0 0 0 4px rgba(224, 189, 58, 0.5); }
}
@keyframes pendiente-pulse-red {
0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.5); }
}
.pendiente-green {
background: #28bd1c;
color: #fff;
border: 1px solid #1f9416;
animation: pendiente-pulse 1.2s ease-in-out infinite;
}
.pendiente-yellow {
background: #fce167;
color: #4a3c00;
border: 1px solid #e0bd3a;
animation: pendiente-pulse-yellow 1.2s ease-in-out infinite;
}
.pendiente-red {
background: #ef4444;
color: #fff;
border: 1px solid #991b1b;
animation: pendiente-pulse-red 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.pendiente-green,
.pendiente-yellow,
.pendiente-red { animation: none; }
}
/* ---- Numeric inputs without spinner (editor thresholds) ---- */
.editable-num {
-moz-appearance: textfield;
appearance: textfield;
}
.editable-num::-webkit-outer-spin-button,
.editable-num::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* ---- Aurora background (landing) ---- */
.aurora {
--white-gradient: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
--aurora: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
position: absolute;
inset: -10px;
pointer-events: none;
opacity: 0.5;
will-change: transform;
background-image: var(--white-gradient), var(--aurora);
background-size: 300% 200%;
background-position: 50% 50%, 50% 50%;
filter: blur(10px) invert(1);
-webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.aurora::after {
content: '';
position: absolute;
inset: 0;
background-image: var(--white-gradient), var(--aurora);
background-size: 200% 100%;
background-attachment: fixed;
mix-blend-mode: difference;
animation: aurora 60s linear infinite;
}
@keyframes aurora {
from { background-position: 50% 50%, 50% 50%; }
to { background-position: 350% 50%, 350% 50%; }
}
@media (prefers-reduced-motion: reduce) {
.aurora::after { animation: none; }
}
/* Safe-area helpers for edge-to-edge layout (viewport-fit=cover).
The background covers behind the notch / dynamic island and gesture bar, while
interactive content is padded so it isn't covered. On devices without insets
env() resolves to 0, so spacing matches the previous values. */
@layer utilities {
/* public menu header */
.safe-pt-header {
padding-top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
}
/* editor header */
.safe-pt-editor {
padding-top: calc(env(safe-area-inset-top, 0px) + 1rem);
}
/* sticky section tabs keep clear of the island when scrolled */
.safe-top-sticky {
top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
}
/* public floating action buttons clear the gesture bar */
.safe-bottom-fab {
bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
}
/* editor bottom tab bar clears the gesture bar */
.safe-pb-tabbar {
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
}
/* absolute overlay on the brand banner, kept clear of the island */
.safe-abs-top {
top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
}
/* full-screen modal/sheet overlays: keep content clear of island + gesture bar */
.safe-modal {
padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
}
}