:root {
  --brand: #7a2f1b;
  --brand2: #eaa022;
  --ink: #1e1a18;
  --muted: #6d655e;
  --paper: #fffdf9;
  --line: #eadfce;
  --bg: #f5efe8;
  --ok: #1f6f43;
  --danger: #9e2b25;
  --shadow: 0 14px 30px rgba(0,0,0,.08);
  --shadow-soft: 0 10px 22px rgba(41,27,20,.07);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f3ece4, #fff 220px);
}

a {
  text-decoration: none;
  color: inherit;
}

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 4rem 0;
}

/* NAVBAR & HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #a94d2a 66%, var(--bs-yellow));
  box-shadow: var(--shadow);
}

.navbar-brand .brand-copy {
  font-family: 'Satisfy', serif;
  font-size: 1.5rem;
}

.navbar-brand .brand-copy strong {
  font-weight: 700;
  font-size: 0;
  letter-spacing: 0;
}

/* "Restaurante" en negro */

.navbar-brand .brand-copy strong::before {
  content: 'Restaurante ';
  font-size: 1.5rem;
  color: #000;
  letter-spacing: normal;
}

/* "Merche" en dorado */

.navbar-brand .brand-copy strong::after {
  content: 'Merche';
  font-size: 1.5rem;
  color: var(--brand2);
  letter-spacing: normal;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.nav-logo {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}

.nav-link {
  padding: .56rem .9rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active {
  background: #efe5d7;
  color: var(--brand);
}

.header-cta {
  background: var(--brand);
  color: #fff;
  padding: .72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

/* HERO & SECTIONS */

.hero {
  padding: 5rem 0 3rem;
}

.hero-card, .menu-card, .editor-card, .contact-card, .legal-card, .menu-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-badge, .menu-tag, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .5rem .8rem;
  font-weight: 700;
}

.hero-badge {
  background: #fff6ea;
  border: 1px solid #ead6bf;
  color: var(--brand);
}

.menu-tag {
  background: #f6ede2;
  color: var(--brand);
  font-size: .86rem;
}

.status-pill {
  background: #edf8f0;
  color: var(--ok);
  font-size: .88rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  margin: .8rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-right {
  height: 100%;
  background: linear-gradient(155deg, var(--brand), #2e2019);
  color: #fff;
  padding: 2rem;
}

.callout {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fffbf6;
  border-left: 4px solid var(--brand2);
}

.hero-feature {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3e5d7;
  color: var(--brand);
  font-weight: 800;
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 .5rem;
}

.section-subtitle, .small-note {
  color: var(--muted);
}

.menu-card {
  padding: 1.4rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.menu-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.menu-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed #e8dcc8;
}

/* BUTTONS */

.btn-brand, .btn-soft, .btn-outline-soft, .btn-danger-soft, .btn-pill, .btn-remove {
  border-radius: 12px;
  padding: .75rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: #67240f;
  border-color: #67240f;
  color: #fff;
}

.btn-soft {
  background: #f2e7da;
  border-color: #e4cfb6;
  color: #5d2917;
}

.btn-soft:hover {
  background: #efdeca;
}

.btn-outline-soft {
  background: #fff;
  border-color: #dbc2a9;
  color: #6b3d24;
}

.btn-danger-soft {
  background: #fff0ed;
  border-color: #efc1b6;
  color: #8a2f1a;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #b14837);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-pill:hover {
  background: linear-gradient(135deg, #8f2c2c, #9f3d30);
  transform: translateY(-1px);
}

.btn-remove {
  background: #fff1ee;
  color: #8a2f1a;
  border: 1px solid #efc1b6;
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.btn-remove:hover {
  background: #fde7e2;
}

/* EDITOR */

.editor-shell {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.25rem;
}

.editor-card {
  padding: 1.25rem;
}

.preview-shell {
  position: sticky;
  top: 92px;
}

.form-label {
  font-weight: 700;
  color: #312a24;
}

.form-control, .form-select, .form-control:focus {
  border-color: #d9c6b1;
  box-shadow: none;
  background: #fffdf9;
  border-radius: 12px;
  padding: .8rem .9rem;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 15px 0 7px;
  color: #3f3128;
}

.field-input, .plate-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf6f1;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: .16s ease;
}

.field-input:focus, .plate-input:focus {
  background: #fff;
  border-color: #cda67a;
  box-shadow: 0 0 0 4px rgba(216, 168, 107, .14);
}

.repeater-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: start;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.repeater-item.two-cols {
  grid-template-columns: 1fr 140px auto;
}

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

.dynamic-block {
  display: grid;
  gap: 8px;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

/* MENU PREVIEW */

.page-shell {
  padding: 0 0 70px;
  background: linear-gradient(180deg, #eee6dc 0, #f4ede5 28%, #efe7de 100%);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: center;
}

.menu-preview {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #fffdfa 0, #f7f7f7 100%);
  border: 1px solid #eadbca;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
}

.script-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  color: #2f221c;
  margin: 0 0 8px;
}

.helper {
  font-size: 12px;
  line-height: 1.52;
  color: var(--muted);
  margin: 0 0 16px;
}

.menu-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 34px;
  color: var(--brand);
  text-align: center;
  margin: 0 0 6px;
}

.menu-date {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 24px;
}

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 20px;
}

.menu-box {
  background: #f4ede5;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #ede1d5;
}

.box-title {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #211915;
}

.price-band {
  background: linear-gradient(135deg, var(--brand), #af4234);
  color: #fff;
  padding: 18px 22px;
  text-align: center;
  border-radius: 15px;
  margin: 0 0 20px;
  box-shadow: var(--shadow-soft);
}

.price-band strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin-bottom: 3px;
}

.price-band span {
  font-size: 14px;
  font-weight: 800;
}

.footer-button {
  text-align: center;
  padding: 16px 0 34px;
}

/* FOOTER */

.footer {
  padding: 2rem 0 3rem;
  background: #1e1814;
  color: #f8f3ed;
  margin-top: 4rem;
}

.footer a {
  color: #fff6ee;
  opacity: .86;
}

.footer a:hover {
  opacity: 1;
}

.site-top, .site-bottom {
  background: #2f120d;
  color: #fff;
}

.site-top {
  min-height: 126px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}

.brand, .footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

.brand {
  font-size: 46px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.footer-brand {
  font-size: 58px;
  color: #fff;
  text-align: right;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  opacity: .95;
  margin-bottom: 18px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  opacity: .95;
  margin-bottom: 24px;
}

.footer-line {
  height: 1px;
  background: #cab7aa;
  margin-top: 34px;
  opacity: .85;
}

.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.52;
}

/* MESSAGES & ALERTS */

.toast-area {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 3000;
  display: grid;
  gap: .75rem;
}

.toast-lite {
  background: #1f6f43;
  color: #fff;
  padding: .9rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 280px;
}

.message {
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .92rem;
}

.message.ok {
  background: #edf8f0;
  color: var(--ok);
}

.message.warn {
  background: #fff7e6;
  color: #8a5814;
}

.message.error {
  background: #fff0ed;
  color: var(--danger);
}

.status {
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

.status.ok {
  color: #1f6f43;
}

.status.warn {
  color: #ab3a1e;
}

.status.err {
  color: #9e2b25;
}

/* AUTH */

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(160deg, #fff8ef, #f3ebe1);
}

.auth-card {
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.site-bottom {
  padding: 56px 0 28px;
  min-height: 220px;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .preview-shell {
    position: static;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .brand {
    font-size: 40px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 4.4rem;
  }
}

@media (max-width: 767.98px) {
  .hero-right {
    padding: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 3rem 0;
  }
}

@media (max-width: 720px) {
  .menu-columns, .row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand {
    font-size: 36px;
  }
}

@media (max-width: 720px) {
  .footer-brand {
    text-align: center;
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .container-page {
    width: min(100% - 24px, 1200px);
  }
}

@media (max-width: 720px) {
  .toolbar > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 991px) {
  .nav-logo {
    max-height: 40px;
  }
}

