:root {
  --ink: #0f172a;
  --blue: #075985;
  --cyan: #0e7490;
  --lemon: #facc15;
  --paper: #f8fafc;
  --soft: #e0f2fe;
  --muted: #64748b;
  --line: #dbeafe;
  --white: #ffffff;
  --whatsapp: #1fa855;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.hero {
  min-height: 94vh;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.pexels.com/photos/28448390/pexels-photo-28448390.jpeg?auto=compress&cs=tinysrgb&w=1800") center/cover;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 5vw;
  position: relative;
}

.brand {
  margin-right: auto;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: white;
  font-size: 22px;
  font-weight: 950;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 14px;
  font-weight: 850;
}

.nav-cta {
  background: var(--lemon);
  color: var(--ink);
  padding: 11px 16px;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 4px;
  width: 34px;
  height: 34px;
  place-content: center;
  justify-items: end;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
  padding: 10px;
  display: grid;
  min-width: 200px;
  z-index: 60;
}

.mobile-menu-panel a {
  color: var(--ink);
  font-weight: 850;
  padding: 12px 14px;
  border-radius: 10px;
}

.mobile-menu-panel a:active,
.mobile-menu-panel a:hover {
  background: var(--soft);
}

.hero-grid {
  min-height: calc(94vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: end;
  gap: 34px;
  padding: 0 5vw 9vh;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lemon);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.lead {
  max-width: 650px;
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions,
.location-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 19px;
  border-radius: 14px;
  font-weight: 950;
}

.button-primary {
  background: var(--lemon);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
}

.button-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
}

.order-panel {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.26);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 24px;
}

.panel-label {
  color: var(--lemon);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 950;
}

.order-panel h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.1;
}

.order-panel p {
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.panel-row strong {
  font-size: 30px;
}

.panel-row a {
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 950;
  text-align: center;
}

.social-proof-strip {
  margin: 0;
  padding: 14px 5vw;
  text-align: center;
  background: var(--ink);
  color: rgba(255,255,255,0.86);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  background: white;
  padding: 22px 5vw;
}

.trust-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.trust-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.estado-abierto {
  color: #16a34a;
}

.estado-cerrado {
  color: #dc6b6b;
}

.estado-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
}

.estado-pill.estado-abierto {
  background: #dcfce7;
  color: #15803d;
}

.estado-pill.estado-cerrado {
  background: #fee2e2;
  color: #b91c1c;
}

.section {
  padding: 76px 5vw;
}

.section-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 900px;
  margin-bottom: 28px;
}

.menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
  margin-bottom: 22px;
}

.menu-head-copy {
  max-width: 720px;
}

.menu-head-copy p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 0;
}

.button-blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 30px rgba(7, 89, 133, 0.22);
  flex: 0 0 auto;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.category-row a {
  flex: 0 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.menu-categories {
  display: grid;
  gap: 40px;
}

.category-title {
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dish-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dish-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.dish-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dish-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dish-card-top h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.dish-card .price {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 950;
  white-space: nowrap;
}

.dish-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  align-self: flex-start;
  background: var(--whatsapp);
  color: white;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.dish-card-actions {
  margin-top: 6px;
}

.agregar-btn {
  background: var(--blue);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  background: var(--soft);
  border-radius: 999px;
  padding: 6px 8px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: white;
  color: var(--blue);
  font-weight: 950;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.qty-btn:hover {
  background: var(--blue);
  color: white;
}

.qty-valor {
  min-width: 16px;
  text-align: center;
  font-weight: 950;
  color: var(--ink);
}

.dish-card-destacada {
  position: relative;
  border-color: var(--lemon);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.35);
}

.dish-card-destacada::before {
  content: "\2605 Recomendado";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--lemon);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}

.experience {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  background: var(--soft);
}

.story p,
.location p {
  color: var(--muted);
  line-height: 1.62;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: var(--blue);
  color: white;
  font-weight: 950;
  margin-bottom: 12px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.testimonials {
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.stars {
  color: var(--lemon);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 0 0 var(--lemon);
  -webkit-text-stroke: 0.5px #ca8a04;
}

.testimonial-card p {
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 14px;
}

.testimonial-name {
  display: block;
  font-weight: 900;
  color: var(--muted);
  font-size: 14px;
}

.gallery-section {
  background: var(--soft);
}

.gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 6px;
}

.tile {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-big {
  grid-column: span 2;
  grid-row: span 2;
}

.img-zoomable {
  cursor: zoom-in;
}

.blog-preview {
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.blog-read {
  align-self: flex-start;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
}

.blog-ver-todos {
  margin-top: 24px;
  text-align: center;
}

/* ---------- Carta QR (carta/index.html) ---------- */

.carta-qr-body {
  padding-bottom: 90px;
}

.carta-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: white;
  padding: 16px 5vw;
}

.carta-header-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.carta-header-inner strong {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chips-sticky {
  position: sticky;
  top: 60px;
  z-index: 39;
  background: white;
  padding: 14px 5vw;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.carta-main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 24px 5vw 60px;
}

.carta-footer {
  text-align: center;
  padding: 20px 5vw 40px;
}

.carta-footer a {
  color: var(--blue);
  font-weight: 900;
}

/* ---------- Blog: header de articulo, breadcrumb, cuerpo, listado ---------- */

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 5vw;
  background: white;
  border-bottom: 1px solid var(--line);
}

.article-header a {
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
}

.article-header strong {
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 850;
}

.article-body {
  max-width: 760px;
}

.article-body .eyebrow {
  margin-bottom: 6px;
}

.article-body h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 28px;
}

.article-body h2 {
  font-size: 24px;
  margin-top: 30px;
}

.article-body p {
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  margin-bottom: 16px;
}

.blog-index-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.blog-card-horizontal {
  flex-direction: row;
}

.blog-card-horizontal img {
  width: 220px;
  height: auto;
  flex: 0 0 auto;
}

.seo-local {
  background: white;
  padding-top: 64px;
  padding-bottom: 64px;
}

.local-copy {
  max-width: 900px;
}

.local-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.visit-section {
  background: linear-gradient(180deg, white 0%, var(--paper) 100%);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 34px;
  align-items: stretch;
}

/* Companera de [hidden] (ver .comanda-confirmacion[hidden] mas abajo):
   sin esto, GEN:MOD_SEDES no puede ocultar la card de sede unica cuando
   activa el modo multi-sede. */
.visit-grid[hidden] {
  display: none;
}

.visit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.visit-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  min-height: 390px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.map-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  background: linear-gradient(160deg, var(--blue), var(--ink));
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.map-panel span {
  position: relative;
  color: var(--lemon);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-panel strong {
  position: relative;
  display: block;
  max-width: 260px;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.05;
}

.map-panel a {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 950;
}

.visit-details {
  padding: 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-row strong {
  color: var(--blue);
  text-align: right;
  font-weight: 950;
}

.detail-row a.detail-row-wa {
  color: var(--blue);
  text-align: right;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hours-list h3 {
  margin-bottom: 12px;
}

.hours-list dl,
.hours-list dd {
  margin: 0;
}

.hours-list dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.hours-list dl div:last-child {
  border-bottom: 0;
}

.hours-list dt {
  color: var(--muted);
  font-weight: 850;
}

.hours-list dd {
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.faq-section {
  background: var(--soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.faq-list h3 {
  font-size: 19px;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 40px 5vw 26px;
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-brand span {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: white;
}

.footer-credit {
  width: min(1240px, 100%);
  margin: 18px auto 0;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  text-align: center;
}

.mobile-bar {
  display: none;
}

/* ---------- Comanda: barra flotante + panel de pedido ---------- */

.comanda-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(440px, calc(100% - 32px));
}

.comanda-bar[hidden] {
  display: none;
}

.comanda-bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 950;
  font-size: 14.5px;
  font-family: inherit;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.4);
  cursor: pointer;
}

.comanda-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comanda-overlay[hidden] {
  display: none;
}

.comanda-panel {
  width: min(480px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: white;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.4);
}

.comanda-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comanda-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.comanda-cerrar {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.comanda-items {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.comanda-vacio {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

.comanda-vacio-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.comanda-field.campo-error select {
  border-color: #b91c1c;
}

.comanda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.comanda-item-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.comanda-item-info strong {
  overflow-wrap: break-word;
}

.comanda-item-info span {
  color: var(--muted);
  font-size: 12.5px;
}

.comanda-item-subtotal {
  color: var(--blue);
  white-space: nowrap;
  font-size: 14px;
}

.comanda-item-quitar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.comanda-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 950;
}

.comanda-total-row strong {
  font-size: 21px;
  color: var(--blue);
}

.comanda-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.comanda-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.comanda-field input,
.comanda-field select,
.comanda-field textarea {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: white;
}

.comanda-field textarea {
  min-height: 64px;
  padding-top: 10px;
  resize: vertical;
}

.comanda-modo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comanda-modo-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.comanda-modo-opt input {
  margin: 0;
}

.comanda-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  background: var(--whatsapp);
  color: white;
  font-weight: 950;
  text-align: center;
}

/* Con auto-flow (arriba) no hace falta fijar un conteo de columnas aqui:
   al ocultarse el ultimo item (Pedir), el resto se reparte solo. */
body.tiene-comanda .mobile-bar a:last-child {
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 23, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
  max-width: 640px;
}

.lightbox-cerrar {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

body.lightbox-abierto {
  overflow: hidden;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .experience,
  .visit-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .order-panel {
    max-width: 520px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .dish-grid {
    grid-template-columns: 1fr;
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 220px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 120px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 5vw;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-grid {
    min-height: calc(90vh - 76px);
  }

  .menu-head {
    display: block;
  }

  .menu-head .button {
    margin-top: 18px;
    width: 100%;
  }

  .visit-grid {
    gap: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
  }

  .tile-big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .blog-card-horizontal {
    flex-direction: column;
  }

  .blog-card-horizontal img {
    width: 100%;
    height: 170px;
  }

  .article-header {
    padding: 14px 6vw;
  }
}

@media (max-width: 576px) {
  body {
    padding-bottom: 66px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-grid {
    min-height: calc(88vh - 76px);
    padding-bottom: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .order-panel {
    display: none;
  }

  .social-proof-strip {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    padding: 12px 6vw;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 48px 6vw;
  }

  .dish-card img {
    height: 200px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .gallery-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 6px;
  }

  .mobile-bar {
    position: fixed;
    z-index: 50;
    display: grid;
    /* grid-auto-flow en vez de un conteo fijo de columnas: el modulo
       GEN:MOD_RESERVAS puede agregar un item mas a esta barra y el layout
       se adapta solo, sin tocar CSS cuando el generador quita el modulo. */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 10px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  }

  .mobile-bar a {
    background: var(--ink);
    color: white;
    min-height: 52px;
    display: grid;
    place-items: center;
    font-weight: 950;
    border-right: 1px solid rgba(255,255,255,0.14);
  }

  .mobile-bar a:last-child {
    background: var(--lemon);
    color: var(--ink);
    border-right: 0;
  }

  .comanda-bar {
    left: 12px;
    right: 12px;
    bottom: 78px;
    width: auto;
    transform: none;
  }

  /* La carta QR no tiene .mobile-bar (es una pagina utilitaria minima):
     la barra de comanda puede bajar hasta el borde inferior. */
  .carta-qr-body .comanda-bar {
    bottom: 16px;
  }

  .carta-header-inner strong {
    font-size: 16px;
  }

  .chips-sticky {
    top: 54px;
  }

  .comanda-bar-btn {
    font-size: 13px;
    padding: 13px 16px;
  }

  .comanda-panel {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .comanda-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .comanda-item-subtotal {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .comanda-item-quitar {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .lightbox-overlay {
    padding: 70px 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-cerrar {
    top: 12px;
    right: 12px;
  }
}

/* ==========================================================================
   Modulos opcionales: Reservas, Eventos, Sedes.
   El generador Python elimina por completo las secciones GEN:MOD_* cuando
   el cliente no contrata el modulo. Este bloque de CSS es generico (no esta
   ligado a un marcador) porque estilar selectores/reglas condicionalmente
   segun un modulo comprado no aporta nada: una regla CSS sin HTML que la
   use simplemente no se aplica a nada, no genera output ni peso extra
   perceptible. Mas simple para el generador: nunca tocar este archivo.
   ========================================================================== */

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

.form-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 850;
}

.form-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Reservas ---------- */

.reservas-section {
  background: white;
}

.reservas-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.reservas-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reservas-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.reservas-form,
.eventos-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 14px;
}

/* ---------- Eventos ---------- */

.eventos-section {
  background: var(--soft);
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.evento-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.evento-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.evento-card-body {
  padding: 16px 18px;
}

.evento-card-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.evento-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
}

/* ---------- Comanda: confirmacion de envio + pedido nuevo (fix-pack) ---------- */

.comanda-confirmacion {
  display: grid;
  gap: 14px;
  padding: 34px 6px 8px;
  text-align: center;
}

/* Igual que .comanda-overlay[hidden] / .lightbox-overlay[hidden] mas arriba:
   una clase que fija su propio "display" necesita esta regla compañera para
   que el atributo hidden la pueda apagar (una clase sola pierde contra
   [hidden] del user-agent solo si nadie de autor la contradice; aqui la
   contradice esta MISMA clase, asi que hace falta reforzar con [hidden]). */
.comanda-confirmacion[hidden] {
  display: none;
}

.comanda-field[hidden] {
  display: none;
}

.comanda-confirmacion-msg {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.comanda-confirmacion-sede {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
}

.comanda-confirmacion-sede[hidden] {
  display: none;
}

.comanda-confirmacion-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.comanda-nuevo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-weight: 950;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.comanda-volver-btn {
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 850;
  font-size: 13.5px;
  cursor: pointer;
  padding: 10px 4px;
  min-height: 40px;
}

/* ---------- Sedes (multi-local) ---------- */

.sedes-grid {
  display: grid;
  gap: 22px;
}

@media (max-width: 992px) {
  .reservas-grid {
    grid-template-columns: 1fr;
  }

  .eventos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .eventos-grid {
    grid-template-columns: 1fr;
  }

  .reservas-form,
  .eventos-form {
    padding: 18px;
  }

  .comanda-confirmacion {
    padding: 26px 2px 6px;
  }
}

/* QA producción 2026-07-16: la comanda-bar flotante tapaba el borde inferior
   de la última tarjeta de cada categoría al hacer scroll — reservar espacio. */
body:has(.comanda-bar:not([hidden])) .dish-grid:last-of-type,
body:has(.comanda-bar:not([hidden])) main > .section:last-of-type {
  padding-bottom: 84px;
}
/* Fallback sin :has() (navegadores viejos): margen fijo bajo la carta */
@supports not selector(:has(*)) {
  .menu-preview { padding-bottom: 84px; }
}
