:root {
  --bg: #faf7f2;
  --ink: #172033;
  --muted: #667085;
  --line: rgba(120, 92, 54, 0.2);
  --panel: #fffdf8;
  --accent: #7c2d12;
  --accent-2: #b45309;
  --gold: #f5c451;
  --green: #247a4d;
  --shadow: 0 24px 70px rgba(65, 43, 25, 0.14);
  --radius: 8px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 196, 81, 0.2), transparent 26rem),
    linear-gradient(180deg, #fffaf0, var(--bg));
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.hidden {
  display: none !important;
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(124, 45, 18, 0.96);
  color: #fffaf0;
  backdrop-filter: blur(14px);
}

.back,
.back-link,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.back {
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  color: rgba(255, 250, 240, 0.8);
}

.back:hover {
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.09);
}

.logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.15);
  font-weight: 950;
}

.brand {
  min-width: 0;
  flex: 1;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
}

.brand p {
  margin-top: 2px;
  color: rgba(255, 250, 240, 0.66);
  font-size: 12px;
}

.badge {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff2c7;
  font-size: 12px;
  font-weight: 850;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-chooser {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

.chooser-copy {
  padding: 26px 0;
}

.chooser-copy h2,
.restaurant-hero h2,
.whatsapp-layout h2,
.admin-head h2 {
  margin: 0 0 14px;
  color: #172033;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.chooser-copy p,
.restaurant-hero p,
.whatsapp-layout p,
.admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card,
.restaurant-card,
.restaurant-details article,
.whatsapp-layout,
.admin-real-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 42px rgba(65, 43, 25, 0.08);
}

.choice-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.choice-card.primary {
  background:
    linear-gradient(145deg, rgba(124, 45, 18, 0.1), rgba(255, 253, 248, 0.92)),
    var(--panel);
}

.choice-card small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-card h3 {
  margin: 18px 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.btn {
  border: 1px solid rgba(124, 45, 18, 0.24);
  padding: 0 17px;
  background: var(--accent);
  color: #fffaf0;
}

.btn:hover {
  background: #69260f;
}

.btn.secondary {
  background: rgba(255, 253, 248, 0.9);
  color: var(--accent);
}

.btn.secondary:hover {
  background: #fff8e8;
}

.back-link {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.restaurant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(124, 45, 18, 0.93), rgba(180, 83, 9, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='rgba(255,255,255,.12)'/%3E%3C/svg%3E");
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.restaurant-hero h2 {
  max-width: 13ch;
  color: #fffaf0;
}

.restaurant-hero p {
  max-width: 62ch;
  color: rgba(255, 250, 240, 0.82);
}

.restaurant-hero .eyebrow {
  color: var(--gold);
}

.restaurant-hero .btn {
  margin-top: 24px;
  background: var(--gold);
  color: #3f1908;
}

.important-note {
  margin-top: 14px !important;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.restaurant-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.24);
  color: #fffaf0;
}

.restaurant-card strong {
  font-size: 22px;
}

.restaurant-card span {
  color: rgba(255, 250, 240, 0.8);
}

.restaurant-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.restaurant-details article {
  padding: 18px;
}

.restaurant-details strong,
.restaurant-details span {
  display: block;
}

.restaurant-details strong {
  margin-bottom: 7px;
}

.restaurant-details span {
  color: var(--muted);
  line-height: 1.5;
}

.whatsapp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 26px;
  padding: clamp(24px, 4vw, 38px);
}

.steps {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.steps span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8e8;
  color: #3c4658;
  font-weight: 750;
}

.phone-preview {
  overflow: hidden;
  border-radius: var(--radius);
  background: #111b21;
  color: #f2f4f7;
  box-shadow: var(--shadow);
}

.wa-head {
  padding: 14px 16px;
  background: #075e54;
  font-weight: 850;
}

.wa-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
  padding: 16px;
  background: linear-gradient(135deg, #111b21, #18252c);
}

.wa-body p {
  max-width: 86%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #f2f4f7;
  font-size: 14px;
  line-height: 1.45;
}

.wa-body .in {
  align-self: flex-start;
  background: #202c33;
}

.wa-body .out {
  align-self: flex-end;
  background: #005c4b;
}

.admin-real-panel {
  overflow: hidden;
  background: #fffdf8;
}

.admin-demo-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-demo-note h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.08;
}

.admin-demo-note p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-real-frame {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  min-height: 620px;
  border: 0;
  background: #f8fafc;
}

.reservas-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 999997;
  display: none;
  background: rgba(16, 24, 40, 0.64);
  backdrop-filter: blur(3px);
}

.reservas-tour-overlay.active {
  display: block;
}

.reservas-tour-card {
  position: fixed;
  z-index: 999999;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100vw - 28px));
  padding: 24px;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.reservas-tour-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.reservas-tour-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.tour-actions,
.tour-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tour-samples {
  margin-bottom: 14px;
}

.tour-samples button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(124, 45, 18, 0.2);
  border-radius: 999px;
  background: #fff8e8;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

#bb-trigger.reservas-highlight {
  z-index: 999998 !important;
  animation: reservasPulse 1.3s ease-in-out infinite;
}

@keyframes reservasPulse {
  0%,
  100% { box-shadow: 0 0 0 4px #fff8e8, 0 0 0 10px rgba(245, 196, 81, 0.95); }
  50% { box-shadow: 0 0 0 4px #fff8e8, 0 0 0 18px rgba(245, 196, 81, 0.18); }
}

@media (max-width: 900px) {
  .demo-chooser,
  .restaurant-hero,
  .whatsapp-layout,
  .chooser-grid,
  .restaurant-details,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .demo-header {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .badge {
    display: none;
  }

  main {
    width: min(100% - 24px, 520px);
    padding-top: 30px;
  }

  .section-toolbar,
  .admin-demo-note {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-actions,
  .choice-actions .btn,
  .section-toolbar .btn,
  .restaurant-hero .btn,
  .whatsapp-layout .btn {
    width: 100%;
  }

  .choice-card {
    min-height: auto;
  }
}
