/* ==========================================================================
   Plantilla de restaurantes · estilos base
   Los temas (assets/temas/*.css) solo cambian variables y detalles.
   ========================================================================== */
:root {
  --bg: #fff; --surface: #f6f6f6; --text: #1d1d1d; --muted: #666; --line: #e3e3e3;
  --primary: #b3261e; --primary-contrast: #fff; --accent: #c9a227;
  --hero-bg: #1d1d1d; --hero-text: #fff; --hero-muted: rgba(255,255,255,.78);
  --font-head: Georgia, serif; --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head-weight: 700; --head-transform: none; --head-spacing: 0;
  --radius: 12px; --radius-btn: 999px; --shadow: 0 6px 24px rgba(0,0,0,.08);
  --open: #1f9d55; --closed: #c0392b; --soon: #d68910; --wa: #25d366;
  --wrap: 1120px; --gutter: 16px; --topbar-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 56px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; margin: 0;
  text-transform: var(--head-transform); letter-spacing: var(--head-spacing); }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-contrast); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
[hidden] { display: none !important; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-btn); border: 2px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: var(--topbar-h); }
.logo { text-decoration: none; display: flex; align-items: center; min-width: 0; }
.logo-img { height: 40px; width: auto; }
.logo-txt { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 20px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-transform: var(--head-transform); letter-spacing: var(--head-spacing); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--primary); }
.topbar-cta { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .topbar-cta { margin-left: 0; } }

/* ---------- portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text);
  padding: 72px 0 64px; min-height: min(78vh, 640px); display: flex; align-items: center; }
.hero.has-img { background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.55) 45%, rgba(0,0,0,.82)), var(--hero-img) center/cover no-repeat; }
.hero.has-img .hero-kicker { color: var(--hero-text); }
.hero.has-img .hero-kicker, .hero.has-img .hero-lead { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero.has-img .hero-lead { color: var(--hero-text); }
.hero-pattern { position: absolute; inset: 0; opacity: .5; pointer-events: none; background: var(--hero-pattern, none); }
.hero.has-img .hero-pattern { display: none; }
.hero-in { position: relative; width: 100%; }
.hero-kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-muted); margin-bottom: 14px; }
.hero-desde { margin-left: 10px; padding-left: 10px; border-left: 1px solid currentColor; }
.hero-title { font-size: clamp(44px, 11vw, 96px); margin-bottom: 14px; }
.hero-title.has-logo { margin-bottom: 18px; line-height: 0; }
.hero-title.has-logo::after { display: none !important; }
.hero-logo { height: clamp(96px, 24vw, 170px); width: auto; max-width: min(88%, 520px); object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.hero-logo.is-circulo { width: clamp(120px, 30vw, 180px); height: clamp(120px, 30vw, 180px); border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.9); }
.logo-img.is-circulo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.hero-lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--hero-muted); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { color: var(--hero-text); }

/* ---------- estado abierto/cerrado ---------- */
.estado { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin: 8px 0 0;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); }
.estado .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.estado.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px color-mix(in srgb, var(--open) 30%, transparent); }
.estado.is-closed .dot { background: var(--closed); }
.estado.is-soon .dot { background: var(--soon); }
.estado-sm { background: var(--surface); font-size: 14px; padding: 4px 12px; margin: 4px 0 10px; }

/* ---------- secciones ---------- */
.sec { padding: 64px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.sec-title { font-size: clamp(30px, 5vw, 44px); margin-bottom: 20px; }
.sec-lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }

/* ---------- destacados ---------- */
/* lista vertical: foto a la izquierda y texto a la derecha; en escritorio, 2 columnas */
.dest-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .dest-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.dest-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; align-items: stretch; position: relative; }
.dest-card.sin-foto { border-left: 4px solid var(--primary); }
.dest-num { position: absolute; top: 12px; right: 16px; font-family: var(--font-head); font-size: 36px; line-height: 1; color: var(--accent); opacity: .55; }
.dest-card.sin-foto .dest-body { padding-right: 60px; }
.dest-img { flex: 0 0 38%; max-width: 200px; min-height: 128px; overflow: hidden; background: var(--surface); }
.dest-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .dest-img { flex-basis: 44%; max-width: none; min-height: 190px; } }
.dest-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.dest-body h3 { font-size: 19px; }
.dest-body p { color: var(--muted); font-size: 14px; margin: 0; }
.dest-body .precio { margin-top: auto; padding-top: 6px; text-align: left; }
@media (min-width: 760px) { .dest-body { padding: 20px 22px; } .dest-body h3 { font-size: 22px; } .dest-body p { font-size: 15px; } }

/* ---------- menú ---------- */
.tasa { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.menu-hint { font-size: 15px; margin-bottom: 4px; }
.menu-tools { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 8px; }
.search input { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--bg); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (min-width: 700px) { .menu-tools { flex-direction: row; align-items: center; } .search { flex: 0 1 340px; } }

.tabs { position: sticky; top: var(--topbar-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; color: var(--muted); }
.tab.is-active { background: var(--primary); color: var(--primary-contrast); }

.cat { padding-top: 28px; }
.cat-title { font-size: 26px; margin-bottom: 4px; }
.cat-nota { color: var(--muted); font-size: 14px; }
.items { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0 32px; }
@media (min-width: 860px) { .items { grid-template-columns: 1fr 1fr; } }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.item-foto { width: 84px; height: 84px; border-radius: calc(var(--radius) - 4px); object-fit: cover; flex: none; }
.item-body { flex: 1; min-width: 0; }
.item-top { display: flex; align-items: baseline; gap: 12px; }
.item-name { font-size: 18px; font-family: var(--item-font, var(--font-head)); }
.item-top .precio { margin-left: auto; }
.item-desc { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item-meta:empty { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.tag-recomendado { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.tag-nuevo { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.tag-agotado { background: var(--text); color: var(--bg); }
.is-agotado .item-name, .is-agotado .precio { opacity: .45; text-decoration: line-through; }
.precio { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.precio .bs { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.add { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-contrast);
  font-size: 24px; line-height: 1; cursor: pointer; align-self: center; }
.add.added { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.sin-resultados { padding: 24px 0; color: var(--muted); }
.item.is-hidden, .cat.is-hidden { display: none; }

/* ---------- promos y eventos ---------- */
.ev-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ev-card { border-radius: var(--radius); padding: 22px; background: var(--surface); border-left: 4px solid var(--primary); }
.ev-card.evento { border-left-color: var(--accent); }
.ev-card h3 { font-size: 22px; margin: 6px 0 8px; }
.ev-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.ev-fecha { font-weight: 600; font-size: 14px; margin: 0; }

/* ---------- formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 16px; font-weight: 400; width: 100%; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.seg { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 10px; min-height: 46px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.seg input { min-height: auto; width: auto; }

/* ---------- historia / galería ---------- */
.historia-in { display: grid; gap: 32px; align-items: center; }
.historia p { font-size: 17px; max-width: 60ch; }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
@media (min-width: 860px) { .historia-in { grid-template-columns: 1fr 1fr; } }

/* ---------- reseñas ---------- */
.rating { font-size: 17px; }
.stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.resenas-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 18px 0 22px; }
.resena { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.resena p { font-size: 16px; }
.resena cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------- sedes ---------- */
.sedes-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sede h3 { font-size: 22px; }
.sede-dir { color: var(--muted); }
.horario { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 16px; }
.horario th { text-align: left; font-weight: 500; padding: 4px 0; color: var(--muted); }
.horario td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.horario tr.is-today th, .horario tr.is-today td { color: var(--text); font-weight: 700; }
.sede-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- pie ---------- */
.footer { background: var(--footer-bg, var(--text)); color: var(--footer-text, var(--bg)); padding: 48px 0 24px; font-size: 15px; }
.footer a { color: inherit; }
.footer-in { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--font-head); font-size: 24px; font-weight: var(--head-weight); text-transform: var(--head-transform); }
.footer-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.pagos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagos li { border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: 13px; opacity: .9; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(127,127,127,.35); font-size: 13px; opacity: .75; }
.credito { margin-left: auto; }

/* ---------- botones flotantes y carrito ---------- */
.fab { position: fixed; z-index: 50; border: 0; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.fab-wa { right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.fab-cart { left: 16px; right: 90px; bottom: 18px; min-height: 54px; border-radius: 999px; background: var(--primary); color: var(--primary-contrast);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 0 18px; }
.fab-cart b { background: var(--primary-contrast); color: var(--primary); border-radius: 999px; min-width: 26px; padding: 0 8px; }
@media (min-width: 700px) { .fab-cart { left: auto; right: 90px; } }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); overflow-y: auto; padding: 20px var(--gutter) 32px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-head h2 { font-size: 26px; }
.x { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.cart-items { list-style: none; padding: 0; margin: 0 0 18px; }
.cart-items li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-items .ci-name { flex: 1; font-weight: 600; }
.cart-items .ci-qty { display: flex; align-items: center; gap: 6px; }
.cart-items button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 18px; }
.cart-total { font-size: 18px; margin: 4px 0 0; }
body.no-scroll { overflow: hidden; }

/* ---------- páginas auxiliares ---------- */
.legal h2 { font-size: 22px; margin: 24px 0 8px; }
.qr-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.qr-card { text-align: center; max-width: 420px; }
.qr-box { display: inline-block; padding: 16px; background: #fff; border-radius: 16px; margin: 8px 0 12px; }
.qr-url { font-weight: 600; word-break: break-all; }
@media print { .no-print { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- modo demo (capturas para el vídeo): alturas fijas, sin animaciones ---------- */
.modo-demo .hero { min-height: 640px; }
.modo-demo .franja-propuesta { display: none; }
.modo-demo *, .modo-demo *::before, .modo-demo *::after { animation: none !important; transition: none !important; }

/* ---------- franja de propuesta (solo en maquetas para prospectos) ---------- */
.franja-propuesta { background: #111; color: #fff; font: 600 13px/1.3 system-ui, sans-serif; text-align: center; padding: 8px 12px; position: relative; z-index: 45; }
.franja-propuesta a { color: #ffd84d; margin-left: 6px; white-space: nowrap; }
.propuesta-expirada { position: fixed; inset: 0; z-index: 999; background: #111; color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; font: 18px/1.5 system-ui, sans-serif; }
.propuesta-expirada a { color: #ffd84d; }

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