:root {
  --brand: #b5442e;
  --brand-dark: #7c2d1f;
  --cream: #fbf6ee;
}

body.public-body, body.client-body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--cream);
}

.navbar-brand { letter-spacing: .5px; }

.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 1rem;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.hero h1 { font-weight: 700; }

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.step-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.party-counter {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.slot-btn {
  min-width: 84px;
}

.table-shape {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #6c757d;
  background: #fff;
  cursor: grab;
  font-weight: 600;
  font-size: .78rem;
  user-select: none;
  touch-action: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .15s ease;
  line-height: 1.1;
  text-align: center;
}
.table-shape .table-code { font-size: .82rem; }
.table-shape .table-capacity { font-size: .68rem; font-weight: 400; color: #6c757d; }
.table-shape.round, .table-shape.oval { border-radius: 50%; }
.table-shape.square, .table-shape.rectangular { border-radius: .5rem; }
.table-shape.inactive { background: #f1f1f1; border-color: #adb5bd; color: #adb5bd; }
.table-shape.inactive .table-capacity { color: #adb5bd; }
.table-shape.dragging {
  cursor: grabbing;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  z-index: 10;
  opacity: .92;
}
.table-shape.occupied { background: #f8d7da; border-color: #dc3545; }
.table-shape.free { background: #d1e7dd; border-color: #198754; }

.legend-dot {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .3rem;
}

.floor-plan {
  position: relative;
  width: 100%;
  height: 480px;
  background: #f1f1f1 repeating-linear-gradient(0deg, transparent, transparent 24px, #e6e6e6 25px), repeating-linear-gradient(90deg, transparent, transparent 24px, #e6e6e6 25px);
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
  touch-action: none;
}

/* ---- Marca y portada ---- */
.brand-logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; vertical-align: middle; }
.hero.has-cover {
  background-size: cover; background-position: center;
  min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero .hero-logo { max-height: 90px; max-width: 220px; margin-bottom: 1rem; object-fit: contain; }
.hero .tagline { font-size: 1.25rem; opacity: .95; }
.info-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 18px rgba(0,0,0,.06); padding: 1.5rem; height: 100%; }
.info-card h5 i { color: var(--brand); }
.social-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; text-decoration: none; transition: background .15s;
}
.social-btn:hover { background: var(--brand); color: #fff; }
#publicMap { height: 320px; border-radius: 1rem; }

/* ---- Carta pública ---- */
.menu-index { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; position: sticky; top: 56px; background: var(--cream); padding: .5rem 0; z-index: 5; }
.menu-index a { padding: .25rem .8rem; border-radius: 2rem; background: #fff; border: 1px solid #e5dccd; color: var(--brand-dark); text-decoration: none; font-size: .9rem; }
.menu-index a:hover { background: var(--brand); color: #fff; }
.menu-cat-title { border-bottom: 2px solid var(--brand); padding-bottom: .4rem; margin-bottom: 1rem; scroll-margin-top: 110px; }
.menu-section { scroll-margin-top: 110px; }
.menu-item { background: #fff; border-radius: .75rem; padding: .9rem 1rem; margin-bottom: .6rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.menu-item.sold-out { opacity: .6; }
.menu-item.allergy-hit { opacity: .45; background: #fff5f5; outline: 1px solid #f1aeb5; }
.menu-price { font-weight: 600; white-space: nowrap; color: var(--brand-dark); }
.allergen-chip { display: inline-block; background: #fff3cd; border: 1px solid #ffe69c; border-radius: 1rem; padding: 0 .5rem; font-size: .75rem; margin: 0 .15rem .15rem 0; }
.allergen-chip.traces { background: #f1f3f5; border-color: #dee2e6; }
.allergy-toggle input { display: none; }
.allergy-toggle span { display: inline-block; padding: .25rem .75rem; border: 1px solid #ced4da; border-radius: 2rem; cursor: pointer; font-size: .9rem; user-select: none; }
.allergy-toggle input:checked + span { background: #dc3545; border-color: #dc3545; color: #fff; }

/* ---- Aviso de cookies y enlaces legales ---- */
.cookie-notice { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 760px; margin: 0 auto;
  background: #212529; color: #fff; padding: .8rem 1rem; border-radius: .75rem; display: flex; gap: 1rem; align-items: center;
  justify-content: space-between; font-size: .85rem; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.cookie-notice.d-none { display: none !important; }
.cookie-notice a { color: #ffd; }
.legal-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; }
.legal-page h2 { color: var(--brand-dark); }

/* ---- Ajuste de imágenes ---- */
.hero.has-cover { background-size: cover; background-position: center; background-repeat: no-repeat; min-height: clamp(300px, 45vw, 460px); padding: 3rem 1.5rem; }
.hero.has-cover h1, .hero.has-cover .tagline { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero .hero-logo { display: block; margin: 0 auto 1rem; height: auto; width: auto; max-height: 90px; max-width: min(240px, 70%); object-fit: contain; }
.navbar .brand-logo { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 576px) { .hero { padding: 2.5rem 1rem; } .hero .hero-logo { max-height: 64px; } }

/* Foto de plato en la carta pública */
.menu-photo { flex: 0 0 auto; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #eee; cursor: zoom-in; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.min-w-0 { min-width: 0; }
@media (min-width: 768px) { .menu-photo { width: 120px; height: 120px; } }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; } }
.gallery-item { padding: 0; border: 0; background: #eee; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.45); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; }
.lb-prev { left: .6rem; } .lb-next { right: .6rem; }

/* ===== Portada del restaurante (microsite) ===== */
.site-nav { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-nav .navbar-brand { color: #2b1d17; }
.site-nav .nav-link { color: #3d2f28; font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 5rem 0 4.5rem; background-size: cover; background-position: center; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: center; }
.site-hero .container { max-width: 760px; }
.site-hero-logo { display: block; margin: 0 auto 1rem; max-height: 90px; max-width: min(240px, 70%); object-fit: contain; }
.site-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; opacity: .9; margin-bottom: .6rem; }
.site-title { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 800; line-height: 1.05; margin-bottom: .8rem; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.site-tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); opacity: .95; margin-bottom: 1.6rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.quick-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .8rem; margin-top: -2.2rem; position: relative; z-index: 3; max-width: 760px; margin-left: auto; margin-right: auto; }
.quick-tile { background: #fff; border-radius: 16px; padding: 1.1rem .5rem; text-align: center; text-decoration: none; color: #2b1d17; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: transform .15s; }
.quick-tile:hover { transform: translateY(-3px); color: var(--brand); }
.quick-tile i { display: block; font-size: 1.6rem; color: var(--brand); margin-bottom: .3rem; }
.site-section { padding: 4rem 0; }
.site-section.alt { background: #fff; }
.section-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .4rem; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 1rem; color: #2b1d17; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; height: 380px; }
.mosaic .gallery-item { aspect-ratio: auto; height: 100%; }
.mosaic-0 { grid-row: 1 / span 2; }
.dish-card { display: block; text-decoration: none; color: inherit; background: var(--cream); border-radius: 16px; overflow: hidden; height: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: transform .15s; }
.dish-card:hover { transform: translateY(-3px); }
.dish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dish-body { padding: .8rem .9rem; }
.site-cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 3.5rem 0; }
.social-btn.dark { background: #2b1d17; color: #fff; }
.social-row.justify-content-start { justify-content: flex-start; }
#publicMap { height: 320px; border-radius: 16px; overflow: hidden; }
@media (max-width: 575px) { .mosaic { height: 260px; } .site-section { padding: 2.8rem 0; } }
