:root {
  --bg: #110C0C;
  --surface: #1C1515;
  --surface-2: #2A2222;
  --text: #F4EBE0;
  --muted: #B8AAA0;
  --rose: #B3132B;
  --rose-hover: #C91A35;
  --saffron: #E3A72F;
  --line: #3A2F2F;
  --radius: 16px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.demo-bar { margin: 0; padding: 8px 16px; background: var(--saffron); color: #1B1414; font-size: .8125rem; text-align: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(17, 12, 12, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.brand-mark { width: 32px; height: 32px; color: var(--rose); }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color .2s; }
.top nav a:hover { color: var(--text); }
.social { display: flex; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .75rem; font-weight: 600; line-height: 20px; }
.cart-count:empty, .cart-count[data-zero] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-hover); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--saffron); }
.btn-add { min-height: 44px; padding: 0 18px; background: var(--surface-2); border-color: var(--line); }
.btn-add:hover { background: var(--rose); border-color: var(--rose); }
.btn-block { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) clamp(16px, 4vw, 48px); }
.eyebrow { margin: 0 0 12px; color: var(--saffron); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 em { display: block; color: var(--saffron); font-weight: 500; }
.lead { max-width: 34ch; margin: 20px 0 32px; color: var(--muted); font-size: 1.125rem; }
.cta-row, .contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--rose); vertical-align: middle; }
.hero-art svg { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section:not(.hero) { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2, .how h2, .contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { color: var(--muted); }
.paella { border-top: 1px solid var(--line); }

.paella-grid, .menu-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.paella-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.dish { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dish-star { border-color: rgba(227, 167, 47, .5); }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg)); color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.ph svg { width: 40px; height: 40px; color: var(--rose); opacity: .8; }
.dish-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px; }
.dish-body h3 { font-size: 1.25rem; }
.dish-body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; }
.tag { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.tag-closed { border-color: var(--rose); color: var(--text); }

.season { border-top: 1px solid var(--line); }

.how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.how li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--saffron); }
.how li strong { font-size: 1.125rem; }
.how li span, .how-note { color: var(--muted); }
.how-note { margin-top: 24px; }

.contact { text-align: center; }
.contact .contact-row { justify-content: center; margin: 28px 0 16px; }
.contact > p:first-of-type { color: var(--muted); }

.foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 16px 120px; border-top: 1px solid var(--line); text-align: center; }
.foot p { margin: 0; }

/* Cart */
.sticky-cart { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; display: none; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.cart { width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); }
.cart::backdrop { background: rgba(0,0,0,.6); }
.cart-inner { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 20px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 1.75rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.25rem; }
.cart-items { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cart-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-items li span { display: block; color: var(--muted); font-size: .875rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty span { min-width: 1.5ch; text-align: center; color: var(--text) !important; font-size: 1rem !important; }
.cart-empty { margin: 0; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.125rem; }
.cart label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 500; }
.cart input, .cart textarea { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.form-error { margin: 0; color: #FF8A9A; font-size: .875rem; }

.toast { position: fixed; z-index: 30; left: 50%; top: 80px; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .875rem; font-weight: 500; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Mobile */
@media (max-width: 760px) {
  .top { gap: 8px; padding-inline: 12px; }
  .top nav { display: none; }
  .brand { margin-right: auto; gap: 6px; font-size: 1.0625rem; white-space: nowrap; }
  .brand-mark { width: 26px; height: 26px; }
  .social { gap: 0; }
  .icon-link, .cart-btn { width: 40px; height: 40px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 180px; }
  .lead { margin: 16px 0 24px; }
  .dish { flex-direction: row; }
  .dish .ph { flex: 0 0 96px; aspect-ratio: auto; font-size: 0; }
  .dish .ph span { display: none; }
  .dish-body { min-width: 0; padding: 14px; }
  .dish-foot { flex-wrap: wrap; }
  .btn-add { padding: 0 14px; }
  .dish-body h3 { font-size: 1.0625rem; }
  .how ol { grid-template-columns: 1fr; }
  .sticky-cart:not([hidden]) { display: flex; }
  .contact-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
