/* myfood.cl — hoja de estilos
   Paleta: cilantro (verde), merkén (rojo ají) y choclo (amarillo) sobre papel claro.
   La "mesa" del sitio es el ticket de reserva: aparece en la búsqueda de portada y en la confirmación. */

@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/epilogue-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/epilogue-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/epilogue-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #F7F8F5;
  --surface: #FFFFFF;
  --ink: #1D2321;
  --ink-2: #3A4340;
  --muted: #5D6763;
  --line: #DDE2DD;
  --line-2: #EBEEEA;
  /* Brand orange (#FFA500). White text on it is unreadable (contrast 1.97:1),
     so orange fills carry dark ink text, and orange text uses the darker --green-d. */
  --green: #FFA500;
  --green-strong: #E69500;
  --green-d: #9A5800;
  --green-tint: #FFF1D6;
  --on-brand: #1D2321;
  --chili: #B3352B;
  --chili-tint: #F8E3E0;
  --corn: #E8B53A;
  --corn-tint: #FBF0D2;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Epilogue", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-d); text-underline-offset: 2px; }
a:hover { color: #6E3F00; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green-d); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; }
.is-block { display: block; }
.center { justify-content: center; }
.text-danger { color: var(--chili); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 245, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #000; line-height: 0; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { width: auto; height: 24px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1140px) { .header-row { gap: 12px; } .site-nav a { padding: 8px 9px; font-size: .94rem; } .site-nav .nav-owner { padding: 6px 10px; } }
.site-nav a:hover { background: var(--line-2); color: var(--ink); }
.site-nav .btn { color: var(--on-brand); margin-left: 6px; }
.site-nav .btn:hover { color: var(--on-brand); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-d); font-weight: 700; font-size: .75rem; flex: none; }
.avatar-lg { width: 40px; height: 40px; font-size: .875rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; font-family: var(--font-display); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(29, 35, 33, .3); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--green); color: var(--on-brand); }
.btn-primary:hover { background: var(--green-strong); color: var(--on-brand); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: var(--green); color: var(--on-brand); }
.btn-light:hover { background: var(--green-strong); color: var(--on-brand); }
.btn-danger { background: var(--chili); color: #fff; }
.btn-danger:hover { background: #8E2820; color: #fff; }
.btn-link-danger { background: none; border: 0; color: var(--chili); padding-left: 0; padding-right: 0; text-decoration: underline; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-xs { padding: 5px 11px; font-size: .82rem; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Flash messages ---------- */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.flash-success { background: var(--green-tint); color: var(--green-d); }
.flash-error { background: var(--chili-tint); color: #7A1F17; }
.flash-info { background: var(--corn-tint); color: #6B4D06; }

.notice { padding: 10px 0; font-size: .92rem; font-weight: 500; }
.notice-demo { background: var(--corn-tint); color: #6B4D06; }
.notice-warn { background: var(--chili-tint); color: #7A1F17; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field > legend, fieldset > legend { font-weight: 600; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-height: 44px;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--green-d); outline: none; box-shadow: 0 0 0 3px var(--green-tint); }
input:disabled { background: var(--line-2); color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235D6763' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=file] { padding: 8px 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.switch { display: flex; align-items: center; gap: 12px; margin: 10px 0; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--line-2); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-action { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: 1 / -1; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-2); }
.form-section { font-size: 1rem; margin: 8px 0 12px; color: var(--ink-2); }
.toggle-group, .price-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chip { cursor: pointer; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 500; }
.toggle-chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--on-brand); }
.toggle-chip input:focus-visible + span { outline: 2.5px solid var(--green-d); outline-offset: 2px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 20px; cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: var(--green); color: var(--on-brand); font-weight: 600; }
.seg input:focus-visible + span { outline: 2.5px solid var(--green-d); outline-offset: -3px; }
@media (max-width: 640px) {
  .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .form-card { padding: 20px; }
}

/* ---------- Ticket (search on the home page, confirmation page) ---------- */
.ticket {
  --notch: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(29, 35, 33, .04), 0 18px 40px -24px rgba(21, 79, 55, .45);
}
.ticket-main { padding: 26px 28px; }
.ticket-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; border-left: 2px dashed var(--line); background: linear-gradient(180deg, var(--surface), var(--line-2)); border-radius: 0 20px 20px 0; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); }
.ticket-stub::before { top: -12px; }
.ticket-stub::after { bottom: -12px; }
.stub-note { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.stub-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stub-code { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .08em; color: var(--ink); }
.ticket-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.ticket-field select, .ticket-field input { border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 6px 0; min-height: 40px; font-size: 1.05rem; font-weight: 500; background-color: transparent; }
.ticket-field select { background-position: right 2px center; padding-right: 24px; }
.ticket-field select:focus, .ticket-field input:focus { box-shadow: none; border-bottom-color: var(--green-d); }
.ticket .ticket-main { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .ticket-main { grid-template-columns: 1fr; gap: 14px; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 20px 20px; }
  .ticket-stub::before, .ticket-stub::after { top: -13px; left: auto; }
  .ticket-stub::before { left: -12px; }
  .ticket-stub::after { right: -12px; bottom: auto; }
}

/* ---------- Home ---------- */
.hero { background: var(--green); color: var(--on-brand); padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 32px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; max-width: 14ch; }
.hero .lead { color: var(--ink-2); max-width: 52ch; font-size: 1.1rem; margin: 14px 0 0; }
.hero .ticket { --notch: var(--green); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 65ch; }

.section { padding: 48px 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-title, .section-head .block-title { margin: 0; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 18px; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.occasions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.occasion { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.occasion:hover { border-color: var(--green-d); color: var(--ink); }
.occasion-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.occasion-desc { font-size: .88rem; color: var(--muted); line-height: 1.4; }

.city-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; font-size: .92rem; }
.pill:hover { border-color: var(--ink-2); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.owner-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 20px; padding: 36px 40px; }
.owner-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.owner-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0; }

/* ---------- Placeholder tile: a gingham tablecloth with a plate ---------- */
.tile {
  --c1: hsl(var(--h) 42% 90%);
  --c2: hsl(var(--h) 38% 80% / .55);
  display: grid; place-items: center; width: 100%; height: 100%;
  background-color: var(--c1);
  background-image: linear-gradient(90deg, var(--c2) 50%, transparent 50%), linear-gradient(var(--c2) 50%, transparent 50%);
  background-size: 28px 28px;
}
.tile > span { display: grid; place-items: center; width: 34%; aspect-ratio: 1; max-width: 96px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.55); font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.6rem); color: hsl(var(--h) 45% 28%); letter-spacing: -0.02em; }
.tile-hero { aspect-ratio: 21 / 8; border-radius: var(--radius); }
.tile-hero > span { max-width: 140px; font-size: 2.4rem; }

/* ---------- Restaurant cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.r-card { position: relative; min-width: 0; }
.r-card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--line-2); }
.r-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.r-card:hover .r-card-media img { transform: scale(1.03); }
.r-card-body { padding-top: 12px; }
.r-card-title { font-size: 1.08rem; margin: 0 0 2px; font-weight: 700; }
.r-card-title a { color: var(--ink); text-decoration: none; }
.r-card-title a:hover { text-decoration: underline; }
.r-card-meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.r-card-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; flex-wrap: wrap; }
.score { display: inline-grid; place-items: center; min-width: 34px; padding: 2px 7px; border-radius: 8px; background: var(--chili); color: #fff; font-weight: 700; font-size: .85rem; }
.price { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.can-book { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--green-d); background: var(--green-tint); padding: 3px 9px; border-radius: 999px; }
.fav-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.fav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fav svg { fill: none; }
.fav.is-on { color: var(--chili); }
.fav.is-on svg { fill: currentColor; }
.fav-inline { position: static; }
.fav-text.is-on { border-color: var(--chili); color: var(--chili); }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.collection { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.collection-stack { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; background: var(--line-2); }
.collection-stack > :first-child { grid-row: span 2; }
.collection-stack > :only-child { grid-column: span 2; }
.collection-stack img, .collection-stack .tile { width: 100%; height: 100%; object-fit: cover; }
.collection-stack .tile > span { width: 46%; font-size: .9rem; box-shadow: none; }
.collection-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.collection:hover .collection-title { text-decoration: underline; }
.collection-meta { color: var(--muted); font-size: .9rem; }

/* ---------- Search ---------- */
.page-head { padding: 32px 0 8px; }
.page-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; }
.search-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin: 8px 0 24px; }
.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.filters { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px 18px; position: sticky; top: 84px; }
.filters summary { font-weight: 700; padding: 12px 0; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters-form { padding-bottom: 16px; }
.filters .price-toggles { flex-direction: column; align-items: flex-start; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.results-head p { margin: 0; }
@media (min-width: 861px) { .filters summary { pointer-events: none; } .filters:not([open]) > form { display: block; } }
@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar input { grid-column: 1 / -1; }
}

.map { width: 100%; border-radius: var(--radius); background: var(--line-2); z-index: 0; }
.map-results { height: 380px; margin-bottom: 24px; }
.map-small { height: 220px; margin: 12px 0; }
.map-edit { height: 320px; margin-top: 8px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 32px 0 8px; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 1.25rem; }
.empty-page { text-align: center; padding: 80px 20px; }

/* ---------- Restaurant page ---------- */
.crumbs { display: flex; gap: 8px; font-size: .9rem; padding: 20px 0 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery:not(.gallery-mosaic) .gallery-item { width: 100%; aspect-ratio: 21 / 8; }
.gallery-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 21 / 8; }
.gallery-mosaic .gallery-item:first-child { grid-row: span 2; }
.gallery-item { padding: 0; border: 0; cursor: zoom-in; background: var(--line-2); overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
@media (max-width: 700px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: 4 / 3; }
  .gallery-mosaic .gallery-item:not(:first-child) { display: none; }
  .gallery:not(.gallery-mosaic) .gallery-item, .tile-hero { aspect-ratio: 4 / 3; }
  .gallery { margin: 0 -20px; border-radius: 0; }
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding: 28px 0 24px; }
.detail-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.detail-meta { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.open-status { font-weight: 600; color: var(--muted); font-size: .95rem; }
.open-status.is-open { color: var(--green-d); }
.score-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-row p { margin: 0; }
.score-big { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.score-big > span:last-child { display: grid; gap: 2px; font-size: .9rem; }
.score-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--chili); letter-spacing: -0.03em; }
.subscores { display: flex; gap: 22px; margin: 0; }
.subscores div { display: grid; }
.subscores dt { font-size: .8rem; color: var(--muted); }
.subscores dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 24px; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--corn-tint); color: #5C4205; text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip:hover { background: var(--corn); color: var(--ink); }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.prose { max-width: 68ch; }

.stars { display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, var(--chili) var(--pct), var(--line) var(--pct)); -webkit-mask: var(--star) left / var(--size) var(--size) repeat-x; mask: var(--star) left / var(--size) var(--size) repeat-x; vertical-align: -2px; }

.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 36px; }
.menu-section h3 { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin: 12px 0 6px; }
.menu-section ul { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.menu-item p { margin: 2px 0 0; font-size: .88rem; }
.menu-name { font-weight: 600; }
.menu-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--corn-tint); color: #5C4205; font-size: .74rem; font-weight: 700; vertical-align: 2px; margin-left: 4px; }
.badge-verified { background: var(--green-tint); color: var(--green-d); }
.badge-demo { background: var(--line-2); color: var(--muted); }
.badge-warn { background: var(--chili-tint); color: #7A1F17; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-weight: 400; }
.hours th { width: 40%; color: var(--ink-2); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }
.facts { display: grid; gap: 8px; margin: 0 0 12px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.tabs-inline { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs-inline a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; border: 1.5px solid transparent; }
.tabs-inline a.is-active { border-color: var(--ink); color: var(--ink); }
.reviews { list-style: none; padding: 0; margin: 0; }
.review { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.reviews .review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review-head p { margin: 0; }
.review-author { font-weight: 700; margin: 0 0 2px; }
.review-scores { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; font-size: .85rem; }
.review-scores div { display: flex; gap: 8px; align-items: center; }
.review-scores dt { color: var(--muted); }
.review-scores dd { margin: 0; }
.review-body { max-width: 68ch; white-space: normal; }
.review-photos { display: flex; gap: 8px; margin: 8px 0; }
.review-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.owner-reply { margin: 12px 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 10px 10px 0; }
.owner-reply-head { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.owner-reply p:last-child { margin: 0; }
.claim-box, .soft-box { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin: 24px 0; }
.claim-box h2, .soft-box h2 { font-size: 1.15rem; }
.soft-warn { background: var(--chili-tint); border-color: transparent; }

/* Booking card */
.detail-aside { position: sticky; top: 84px; }
.book-card { background: var(--surface); border-radius: 20px; padding: 24px; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -28px rgba(21, 79, 55, .5); }
.book-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.book-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 16px; }
.slots-wrap legend { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; max-height: 232px; overflow-y: auto; padding: 2px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: 9px 0; border: 1.5px solid var(--green); color: var(--ink); border-radius: 10px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot span:hover { background: var(--green-tint); }
.slot input:checked + span { background: var(--green); color: var(--on-brand); }
.slot input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.slots-empty { grid-column: 1 / -1; margin: 0; }
.slots.is-loading { opacity: .5; }
.book-contact { border-top: 1px solid var(--line-2); padding-top: 14px; }
.book-note { font-size: .88rem; background: var(--corn-tint); color: #5C4205; padding: 10px 12px; border-radius: 10px; }
.book-bar { display: none; }
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .detail-aside { position: static; order: -1; margin-bottom: 8px; }
  .detail-layout .detail-main { order: 0; }
  .book-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--line); z-index: 30; }
  body:has(.book-bar) .site-footer { padding-bottom: 90px; }
}
@media (max-width: 960px) { .detail-aside { order: 2; } }

.lightbox { border: 0; padding: 0; background: rgba(12, 16, 14, .94); width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; }
.lightbox-nav.next { right: 16px; top: 50%; }
.lightbox-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); }

/* ---------- Confirmation page ---------- */
.ticket-confirm { margin: 40px 0 24px; }
.ticket-confirm .ticket-main { display: block; padding: 32px; }
.ticket-status { display: inline-block; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-d); margin-bottom: 12px; }
.ticket-wait .ticket-status { background: var(--corn-tint); color: #5C4205; }
.ticket-off .ticket-status { background: var(--chili-tint); color: #7A1F17; }
.ticket-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.ticket-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 24px 0 0; }
.ticket-facts div { display: grid; gap: 2px; }
.ticket-facts .span-2 { grid-column: span 2; }
.ticket-facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ticket-facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.ticket-confirm .ticket-stub { align-items: center; text-align: center; }
.ticket-ok .ticket-stub { background: linear-gradient(180deg, var(--surface), var(--green-tint)); }
.cancel-form { text-align: center; margin: 8px 0 32px; }
.back-link { display: inline-block; margin: 20px 0 8px; font-weight: 600; text-decoration: none; }
.back-link::before { content: "‹ "; }

/* ---------- Review form ---------- */
.rate-field { margin-bottom: 18px; }
.rate-field legend { font-weight: 600; margin-bottom: 6px; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { width: 38px; height: 38px; cursor: pointer; background: var(--line); -webkit-mask: var(--star) center / 34px no-repeat; mask: var(--star) center / 34px no-repeat; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { background: var(--chili); }
.rate-input input:focus-visible + label { background: var(--corn); }

/* ---------- Auth / account ---------- */
.auth { max-width: 460px; padding: 48px 20px; }
.auth .page-title { font-size: 1.8rem; }
.auth-links { margin: 14px 0 0; text-align: center; }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--muted); }
.account-head { display: flex; gap: 16px; align-items: center; padding: 32px 0 20px; }
.account-head .page-title { margin: 0; }
.account-head p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--green); }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.res-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); }
.res-item.is-past { background: transparent; }
.res-date { display: grid; place-items: center; width: 54px; height: 58px; border-radius: 12px; background: var(--green-tint); color: var(--green-d); font-size: .78rem; font-weight: 600; line-height: 1.1; flex: none; }
.res-day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.res-info { flex: 1; min-width: 0; }
.res-info p { margin: 0; font-size: .9rem; }
.res-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.res-name:hover { text-decoration: underline; }
.my-reviews { list-style: none; margin: 0; padding: 0; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; border-top: 0; }
.danger-zone { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--chili); font-weight: 600; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.status-confirmed, .status-seated, .status-active { background: var(--green-tint); color: var(--green-d); }
.status-pending { background: var(--corn-tint); color: #5C4205; }
.status-rejected, .status-cancelled, .status-no_show, .status-suspended { background: var(--chili-tint); color: #7A1F17; }

/* ---------- Join (for restaurants) ---------- */
.join-hero { background: var(--ink); color: #fff; padding: 56px 0; }
.join-hero .lead { color: rgba(255,255,255,.86); margin: 16px 0 24px; }
.join-hero .hero-title { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.join-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.join-points li { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.join-points span { color: rgba(255,255,255,.82); font-size: .94rem; }
.join-hero .btn-primary { background: var(--green); color: var(--on-brand); }
.join-hero .btn-primary:hover { background: var(--green-strong); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--on-brand); font-weight: 800; font-family: var(--font-display); }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .join-grid, .steps { grid-template-columns: 1fr; } }

/* ---------- Static pages ---------- */
.prose-page { padding: 32px 20px 64px; }
.prose-page h2 { font-size: 1.25rem; margin-top: 28px; }
.prose-page li { margin-bottom: 6px; }
.faq { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 8px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq p { padding-bottom: 8px; }

/* ---------- Panel / admin shell ---------- */
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.app-side { position: sticky; top: 84px; }
.app-side-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.app-nav { display: grid; gap: 2px; margin: 16px 0; }
.app-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.app-nav a:hover { background: var(--line-2); color: var(--ink); }
.app-nav a[aria-current] { background: var(--ink); color: #fff; }
.count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--chili); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.app-head { margin-bottom: 20px; }
.app-head .page-title { margin-bottom: 4px; }
.app-head > p { margin: 0; }
.app-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); padding: 22px; margin-bottom: 20px; min-width: 0; }
.app-card .block-title { font-size: 1.12rem; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.app-grid .span-2 { grid-column: span 2; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.kpi-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: .86rem; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.agenda li > span:nth-child(2) { flex: 1; min-width: 120px; }
.agenda-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; }
.agenda-actions { display: flex; gap: 6px; }
.agenda-actions form { margin: 0; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 150px; align-items: end; padding-bottom: 22px; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { display: block; width: 100%; min-height: 3px; background: var(--green); border-radius: 5px 5px 2px 2px; }
.bar-dot { position: absolute; top: -2px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--chili); }
.bar-label { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; background: var(--green); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.checklist li::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); margin-right: 10px; vertical-align: -3px; }
.checklist li.is-done { color: var(--muted); }
.checklist li.is-done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231D2321' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.day-nav form { margin: 0; }
.day-nav input { width: auto; }
.day-sum { margin-left: 8px; }
.add-res summary { font-weight: 600; cursor: pointer; }
.add-res form { margin-top: 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 20px; }
.app-card .table-wrap { border: 0; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-cancelled td, .row-rejected td, .row-no_show td { color: var(--muted); }
.note { margin-top: 4px; font-size: .85rem; background: var(--corn-tint); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.row-actions form { margin: 0; }
.more-actions { position: relative; }
.more-actions summary { list-style: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; width: 270px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); }
.mini-form { display: grid; gap: 6px; }
.app-filter { margin-bottom: 16px; }
.simple-list { list-style: none; margin: 16px 0 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.simple-list form { margin: 0; }
.oc-list li { display: block; }
.oc-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.oc-item summary::-webkit-details-marker { display: none; }
.oc-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.oc-main .is-block { flex-basis: 100%; padding-left: 34px; }
.oc-sort { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--green-tint); color: var(--green-d); font-size: .8rem; font-weight: 700; }
.oc-item[open] summary .btn { visibility: hidden; }
.oc-form { display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: end; margin: 12px 0 4px; padding: 14px; background: var(--paper); border-radius: 12px; }
.oc-form .field { margin: 0; }
.oc-form .oc-desc { grid-column: 1 / -1; }
.oc-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.oc-form .hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .oc-main .is-block { padding-left: 0; } }
.check-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 12px; }
.check-list .check { margin: 6px 0; }
.filter-list { margin-bottom: 8px; }
.inline-select select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.hours-grid { display: grid; gap: 4px; margin-bottom: 16px; }
.hours-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 16px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.hours-head { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hours-row .check { margin: 0; font-weight: 600; }
.time-pair { display: flex; align-items: center; gap: 8px; }
.time-pair input { width: auto; min-width: 0; flex: 1; }
.hours-row.is-closed .time-pair { opacity: .35; pointer-events: none; }
.upload-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dropzone { flex: 1; display: grid; gap: 4px; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; min-width: 240px; }
.dropzone:hover { border-color: var(--green-d); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-tile { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; position: relative; }
.photo-tile.is-cover { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.photo-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cover-badge { position: absolute; top: 8px; left: 8px; margin: 0; }
.photo-tile figcaption { padding: 10px; display: grid; gap: 8px; }
.caption-form input { min-height: 36px; padding: 6px 10px; font-size: .88rem; }
.photo-actions { display: flex; justify-content: space-between; align-items: center; }
.photo-actions form { margin: 0; }
.menu-admin { list-style: none; margin: 0; padding: 0; }
.menu-admin li { border-bottom: 1px solid var(--line-2); }
.menu-admin summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; }
.menu-admin form { padding: 8px 0 16px; }
.reply-form { display: grid; gap: 8px; margin-top: 12px; }
.reply-form .btn { justify-self: start; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); z-index: 5; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .app-side { position: static; }
  .app-nav { display: flex; overflow-x: auto; gap: 4px; margin: 8px 0; }
  .app-nav a { white-space: nowrap; gap: 8px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .span-2 { grid-column: auto; }
  .kpis, .kpis-3 { grid-template-columns: repeat(2, 1fr); }
  .hours-row { grid-template-columns: 1fr; gap: 6px; }
  .hours-head { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid p { margin-top: 12px; font-size: .92rem; max-width: 32ch; }
.footer-h { font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer-list a { color: var(--ink-2); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-base { margin-top: 28px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }


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

@media print {
  .site-header, .site-footer, .app-side, .add-res, .row-actions, .day-nav .btn, .tabs-inline, .book-bar { display: none !important; }
  .app-shell { display: block; }
  body { background: #fff; }
}
.gmap { border: 0; display: block; }
.gmap-info { font: 14px/1.4 var(--font-body); color: var(--ink); }
.gmap-info a { font-weight: 700; }
.ticket { color: var(--ink); }
.r-card-media, .collection, .collection-stack { text-decoration: none; }
.gallery:not(.gallery-mosaic) .gallery-item:not(:first-child) { display: none; }
.app-side, .app-main { min-width: 0; }
@media (max-width: 960px) { .app-shell { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Back office (restaurant panel and master panel) ---------- */
.bo { background: #F1F3EF; }
.bo-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.bo-header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.bo-header .brand { color: #fff; }
.bo-area { font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: inherit; white-space: nowrap; }
.bo-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bo-user form { margin: 0; }
.bo-user-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.bo-header .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.bo-header .btn-ghost:hover { border-color: #fff; color: #fff; }
.bo .app-side { top: 76px; }
.bo .app-shell { padding-bottom: 80px; }
@media (max-width: 640px) { .bo-user-text { display: none; } .bo-area { font-size: .8rem; } }
.bo-auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-area { width: 100%; max-width: 420px; }
.auth-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.auth-brand .bo-area { background: var(--ink); color: #fff; }
.auth-area .flashes { padding: 0 0 14px; }
.auth-area .page-title { font-size: 1.7rem; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .9rem; }
.btn-link { background: none; border: 0; color: var(--green-d); text-decoration: underline; margin-top: 6px; }

.kpi-link { text-decoration: none; color: var(--ink); }
.kpi-link:hover { border-color: var(--ink-2); color: var(--ink); }
.kpi-alert { background: var(--corn-tint); border-color: var(--corn); }
.approve-list { list-style: none; margin: 0; padding: 0; }
.approve-item { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.approve-info { min-width: 0; flex: 1 1 320px; }
.approve-info p { margin: 0 0 4px; }
.approve-name { font-size: 1.08rem; }
.approve-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.approve-actions form { margin: 0; }
.mini-form textarea { min-height: 70px; }
.narrow-card { max-width: 560px; }
.inline-form { display: inline-block; margin: 0 0 0 6px; }
.loyal-line { margin-top: 6px; }
.account-head .account-logout { margin: 0 0 0 auto; }

.cat-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.cat-rename { display: flex; gap: 8px; align-items: center; margin: 0; flex: 1 1 260px; }
.cat-rename input { min-height: 38px; padding: 6px 10px; font-weight: 600; }
.cat-actions { display: flex; gap: 4px; margin-left: auto; }
.cat-actions form { margin: 0; }
.visibility-card .switch { margin-top: 0; }
.input-suffix span { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border: 1.5px solid var(--line); border-left: 0; }
.input-suffix input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.how-list { padding-left: 18px; margin: 6px 0 0; color: var(--ink-2); }
.how-list li { margin-bottom: 6px; }

/* Loyalty card: a stamp card, like the paper ones at the counter */
.loyalty-card { display: block; position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--corn-tint); border: 1.5px dashed #D9A21F; color: var(--ink); text-decoration: none; }
a.loyalty-card:hover { border-style: solid; color: var(--ink); }
.loyalty-card.is-off { filter: grayscale(1); opacity: .7; }
.loyalty-card p { margin: 0 0 8px; }
.loyalty-card p:last-child { margin-bottom: 0; }
.loyalty-kicker { font-size: .82rem; font-weight: 700; color: #6B4D06; }
.loyalty-title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.stamps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stamp { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #C99419; background: rgba(255,255,255,.6); }
.stamp.is-on { border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231D2321' stroke-width='2.2'/%3E%3C/svg%3E") center / 18px no-repeat; }
.loyalty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
[hidden] { display: none !important; }
.field .seg { justify-self: start; }
@media (max-width: 640px) { .bo-header .logo-word { display: none; } .bo-header-row { gap: 10px; } .bo-user .avatar { display: none; } }
.sr { left: 0; top: 0; margin: -1px; }
.table-wrap { position: relative; }

/* ---------- QR ---------- */
.qr-card { display: grid; justify-items: center; text-align: center; gap: 10px; }
.qr-preview { width: min(260px, 100%); aspect-ratio: 1; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
.qr-preview svg { width: 100%; height: 100%; display: block; }
.qr-link { margin: 0; overflow-wrap: anywhere; }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kpis-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Table page (opened from the QR) ---------- */
.table-head { background: var(--surface); border-bottom: 1px solid var(--line-2); padding-bottom: 18px; margin-bottom: 18px; }
.table-cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.tile.table-cover > span { max-width: 90px; }
.table-head .detail-title { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 16px 0 4px; }
.table-score { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.review-cta { background: var(--green-tint); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; margin-bottom: 22px; }
.review-cta p { margin: 0; }
.center-text { text-align: center; }
.menu-jump { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: 64px; background: var(--paper); padding: 10px 0; z-index: 5; scrollbar-width: none; }
.table-menu .menu-section h2 { font-size: 1.2rem; margin: 22px 0 6px; scroll-margin-top: 130px; }
.table-menu .menu-section ul { list-style: none; margin: 0; padding: 0; }
.table-foot { display: grid; gap: 8px; }

/* ---------- Region home ---------- */
.hero-hello { font-weight: 600; color: var(--ink-2); margin: 0 0 6px; font-size: 1.05rem; }
.region-home { padding-bottom: 24px; }
.region-note { margin: 4px 0 0; font-size: .92rem; }
.section-compact { padding: 20px 0; }
.section-title-sm { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.section-title-sm .muted { font-weight: 600; }
@media (min-width: 1000px) { .rail-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Diner collections ---------- */
.coll-new { margin-bottom: 24px; }
.coll-new .form-inline { align-items: flex-end; }
.grow { flex: 1 1 260px; }
.coll-head { padding: 8px 0 16px; }
.coll-head .page-title { margin-bottom: 4px; }
.coll-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 40px; }
.coll-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.coll-side .form-card { padding: 20px; }
.coll-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coll-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; }
.coll-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.coll-thumb img, .coll-thumb .tile { width: 100%; height: 100%; object-fit: cover; }
.coll-thumb .tile > span { width: 54%; font-size: .9rem; box-shadow: none; }
.coll-info p { margin: 2px 0 8px; }
.note-form { display: flex; gap: 6px; }
.note-form input { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.coll-remove { margin: 0; }
.pick-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.pick:has(input:checked) { border-color: var(--green-d); background: var(--green-tint); }
.pick-body { display: grid; line-height: 1.3; }
.share-box { display: grid; gap: 10px; margin-top: 8px; }
.share-box input { font-size: .85rem; background: var(--line-2); }
.share-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.shared-head .muted { margin: 0 0 4px; font-weight: 600; }
.shared-note { margin: 8px 0 0; font-style: italic; color: var(--ink-2); font-size: .92rem; }
.shared-cta { margin: 40px 0 0; }
.more-pop-left { right: auto; left: 0; }
.save-coll .mini-form input, .save-coll .mini-form select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 900px) {
  .coll-layout { grid-template-columns: 1fr; }
  .coll-side { position: static; }
  .coll-item { grid-template-columns: 72px minmax(0, 1fr); }
  .coll-remove { grid-column: 2; }
  .note-form { flex-wrap: wrap; }
}
.coll-thumb, .tile { text-decoration: none; }
.cuisine-chips { margin: 0; }

/* ---------- Albums ---------- */
.album-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.album-tabs .pill { cursor: pointer; font: inherit; font-size: .92rem; font-weight: 500; }
.album-tabs .pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.album-tabs .pill.is-active .muted { color: rgba(255,255,255,.7); }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.album-grid-lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 20px 0 48px; }
.album-item { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--line-2); }
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album-item:hover img { transform: scale(1.04); }
.album-by { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .78rem; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-more { display: grid; place-items: center; align-content: center; aspect-ratio: 1; border-radius: 10px; background: var(--green-tint); color: var(--green-d); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.album-more span { font-family: var(--font-body); font-size: .82rem; font-weight: 600; }
.gallery-tabs { margin-bottom: 4px; }
.photo-tile.is-hidden img { opacity: .4; }
.photo-order { display: flex; gap: 4px; }
.photo-order form { margin: 0; }
.photo-tile .more-pop { width: 210px; gap: 8px; }
.photo-tile figcaption .small { margin: 0; }
@media (max-width: 640px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-tile { overflow: visible; } .photo-tile img { border-radius: 13px 13px 0 0; }
.dropzone input { max-width: 100%; } @media (max-width: 640px) { .dropzone { min-width: 0; flex-basis: 100%; } .upload-card .btn { width: 100%; } }
.dropzone { grid-template-columns: minmax(0, 1fr); } .dropzone > * { min-width: 0; }
.book-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .book-row input, .book-row select { min-width: 0; }

/* v1.5 · Portada con campañas */
.hero-preview { display: inline-block; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; margin: 0 0 14px; }
.hero-preview a { color: #fff; }
.hero-cta { margin: 18px 0 0; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.hero-search { margin-top: 32px; }

/* Banner: fondo completo detrás del texto */
.hero-has-bg { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-soften .hero-bg::after { content: ""; position: absolute; inset: 0; }
.hero-tone-dark.hero-soften .hero-bg::after { background: linear-gradient(90deg, rgba(255, 248, 236, .86) 0%, rgba(255, 248, 236, .55) 42%, rgba(255, 248, 236, 0) 72%); }
.hero-tone-light.hero-soften .hero-bg::after { background: linear-gradient(90deg, rgba(15, 18, 17, .72) 0%, rgba(15, 18, 17, .4) 45%, rgba(15, 18, 17, .05) 75%); }
.hero-tone-light .hero-title, .hero-tone-light .hero-hello { color: #fff; }
.hero-tone-light .lead { color: rgba(255, 255, 255, .92); }
.hero-has-bg .ticket { --notch: transparent; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
@media (max-width: 700px) {
  .hero-has-bg { padding: 48px 0 40px; }
  .hero-tone-dark.hero-soften .hero-bg::after { background: linear-gradient(180deg, rgba(255, 248, 236, .88) 0%, rgba(255, 248, 236, .6) 38%, rgba(255, 248, 236, .1) 70%); }
  .hero-tone-light.hero-soften .hero-bg::after { background: linear-gradient(180deg, rgba(15, 18, 17, .75) 0%, rgba(15, 18, 17, .45) 40%, rgba(15, 18, 17, .1) 70%); }
}

/* Banner: franja de borde a borde bajo el texto */
.hero-strip { margin-top: 32px; }
.hero-strip a { display: block; }
.hero-strip-pic, .hero-strip-pic img { display: block; width: 100%; height: auto; }

.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head .block-title { margin: 0; }
.sub-title { font-size: 1rem; margin: 24px 0 4px; }
.hero-live { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 6px solid var(--green); }
.hero-live p { margin: 0; }
.hero-live-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 2px 0 !important; }
.hero-list { list-style: none; margin: 0; padding: 0; }
.hero-list .hero-row { padding: 12px 0; border-top: 1px solid var(--line-2); }
.hero-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-row p { margin: 2px 0 0; }
.hero-row-main { flex: 1; min-width: 180px; }
.hero-thumb { width: 96px; height: 60px; object-fit: cover; border-radius: 10px; background: var(--green); flex: none; }
.hero-thumb-empty { display: grid; place-items: center; font-size: .72rem; color: var(--ink-2); background: var(--green-tint); }
.badge-ok { background: #E1F2E5; color: #1E6B35; }
.badge-info { background: #E4EEF8; color: #1F4E7A; }
.badge-muted { background: var(--line-2); color: var(--muted); }
.idea-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.idea { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.idea:hover { border-color: var(--green-d); background: var(--green-tint); }
.hero-form { max-width: 760px; }
.hero-current { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.hero-current img { max-width: 220px; max-height: 120px; border-radius: 10px; background: var(--green); }
.hero-form .dropzone { margin: 6px 0 14px; }
@media (max-width: 640px) { .hero-form .form-grid { grid-template-columns: 1fr; } }

/* v1.5 · Acceso para restaurantes en el encabezado */
.site-nav .nav-owner { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink-2); color: var(--ink); font-weight: 600; padding: 6px 12px; margin-left: 4px; }
.site-nav .nav-owner:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-owner svg { flex: none; }
@media (max-width: 980px) { .site-nav .nav-owner { justify-content: center; margin: 4px 0; padding: 11px 12px; } }
.join-login { margin: 14px 0 0; color: rgba(255,255,255,.86); }
.join-login a { color: #fff; font-weight: 600; }
.hero-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 14px; }
.hero-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.hero-mode:has(input:checked) { border-color: var(--green-d); background: var(--green-tint); }
.hero-mode input { margin-top: 4px; accent-color: var(--green-d); flex: none; }
.hero-mode > span { display: grid; gap: 2px; }
.hero-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-upload-title { font-weight: 600; margin: 0 0 6px; }
.hero-upload .dropzone { margin: 0; min-width: 0; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
@media (max-width: 640px) { .hero-modes, .hero-uploads { grid-template-columns: 1fr; } }

/* v1.6 · Fidelidad: sellos, puntos, niveles y fechas especiales */
.tier-badge { --tier: #B07A3B; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tier) 16%, #fff); color: color-mix(in srgb, var(--tier) 70%, #000); border: 1.5px solid color-mix(in srgb, var(--tier) 55%, #fff); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.tier-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tier); }
.tier-badge-sm { font-size: .72rem; padding: 1px 8px 1px 6px; }
.tier-badge-lg { font-size: 1rem; padding: 6px 14px 6px 12px; }
.loyalty-master { display: grid; gap: 4px; }
.loyalty-master.is-on { border-left: 6px solid var(--green); }
.loyalty-master p { margin: 0; }
.loyalty-terms summary { cursor: pointer; color: var(--green-d); margin-top: 6px; }
.loyalty-terms .field { margin: 8px 0; }
.loyalty-search .form-inline .grow { flex: 1; min-width: 220px; }
.points-rule { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.points-rule .field { margin-bottom: 0; }
.points-rule input[type=number] { width: 90px; }
.points-rule-x { padding-bottom: 12px; color: var(--muted); }
.reward-new { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line-2); }
details.reward-new > summary { list-style: none; display: inline-flex; margin-top: 12px; }
details.reward-new > summary::-webkit-details-marker { display: none; }

.member-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.member-head .page-title { margin: 0; }
.member-head p { margin: 2px 0 0; }
.member-head .tier-badge { margin-left: auto; }
.tier-card { border-left: 6px solid var(--tier); background: color-mix(in srgb, var(--tier) 7%, #fff); }
.tier-card p { margin: 0 0 6px; }
.tier-benefits { margin: 4px 0 8px; padding-left: 20px; }
.member-grid { align-items: start; }
.input-lg input { font-size: 1.5rem; font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
.input-lg span { font-size: 1.3rem; }
.stepper { display: flex; align-items: stretch; gap: 6px; max-width: 220px; }
.stepper input { text-align: center; font-size: 1.2rem; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .btn { min-width: 48px; font-size: 1.3rem; padding: 0; }
.redeem-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.redeem-row:first-of-type { border-top: 0; }
.redeem-row form { margin: 0; flex: none; }
.redeem-row.is-locked { opacity: .6; }
.stamps-sm { gap: 5px; margin: 6px 0; }
.stamps-sm .stamp { width: 20px; height: 20px; }
.stamps-sm .stamp.is-on { background-size: 12px; }
.points-balance { display: grid; gap: 0; padding: 12px 0 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.history-list li.is-void > span:first-child { text-decoration: line-through; color: var(--muted); }
.history-list form { margin: 0; }

.loyalty-box { padding: 20px; border-radius: var(--radius); background: var(--corn-tint); border: 1.5px dashed #D9A21F; }
.loyalty-box p { margin: 0 0 6px; }
.lb-me { background: rgba(255,255,255,.7); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.lb-tier { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lb-points strong { font-family: var(--font-display); font-size: 1.4rem; }
.lb-coupon { color: #6B4D06; }
.lb-card { padding: 12px 0; border-top: 1px dashed #E2C16A; }
.lb-card:first-of-type { border-top: 0; }
.lb-rewards, .lb-tiers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.lb-rewards li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.lb-rewards li.is-ready { font-weight: 700; }
.lb-cost { white-space: nowrap; color: #6B4D06; }
.lb-tiers li { font-size: .92rem; }
.lb-foot { margin-top: 8px !important; padding-top: 10px; border-top: 1px dashed #E2C16A; }

.member-card { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.member-card .mc-qr { width: 128px; height: 128px; background: #fff; border-radius: 12px; padding: 6px; }
.member-card .mc-qr svg { width: 100%; height: 100%; display: block; }
.member-card p { margin: 0; }
.mc-code { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: .12em; }
.mc-label { color: rgba(255,255,255,.75); font-size: .85rem; }
.member-card .btn { margin-top: 10px; }
.mc-big { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.85); padding: 20px; }
.mc-big[hidden] { display: none !important; }
.mc-big-inner { background: #fff; border-radius: 20px; padding: 24px; text-align: center; width: min(92vw, 380px); color: var(--ink); }
.mc-big-inner svg { width: 100%; height: auto; display: block; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.benefit-card { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--corn-tint); border: 1.5px dashed #D9A21F; color: var(--ink); }
.benefit-card p { margin: 0; }
.benefit-card .bc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.benefit-card .bc-head a { font-weight: 700; color: var(--ink); text-decoration: none; }
.date-fields { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
@media (max-width: 640px) {
  .member-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .member-head .tier-badge { margin-left: 0; }
  .redeem-row { flex-wrap: wrap; }
}

/* v1.7 · Planes y precios */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pricing-head { text-align: center; }
.pricing-head .section-title { margin-bottom: 6px; }
.pricing-head p { margin: 0; }
.launch-offer { max-width: 640px; margin: 0 auto; width: 100%; padding: 18px 22px; border-radius: var(--radius); background: var(--ink); color: #fff; text-align: center; }
.launch-offer p { margin: 0 0 8px; }
.launch-offer p:last-child { margin: 0; color: rgba(255,255,255,.85); }
.launch-kicker { color: var(--green) !important; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.launch-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.2; }
.launch-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; margin: 12px auto !important; max-width: 420px; }
.launch-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.billing-radio { position: absolute; }
.billing-switch { justify-self: center; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); gap: 4px; }
.billing-switch label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.billing-save { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-tint); color: var(--green-d); }
#bill-m:checked ~ .billing-switch label[for=bill-m], #bill-y:checked ~ .billing-switch label[for=bill-y] { background: var(--ink); color: #fff; }
#bill-y:checked ~ .billing-switch label[for=bill-y] .billing-save { background: var(--green); color: var(--on-brand); }
#bill-m:focus-visible ~ .billing-switch label[for=bill-m], #bill-y:focus-visible ~ .billing-switch label[for=bill-y] { outline: 3px solid var(--green-d); outline-offset: 2px; }
.price-year { display: none; }
#bill-y:checked ~ .plan-grid .price-year { display: block; }
#bill-y:checked ~ .plan-grid .price-month { display: none; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; max-width: 880px; margin: 0 auto; width: 100%; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.plan-card.is-featured { border: 2.5px solid var(--green); box-shadow: 0 24px 50px -30px rgba(154, 88, 0, .55); }
.plan-flag { position: absolute; top: -13px; left: 24px; padding: 3px 12px; border-radius: 999px; background: var(--green); color: var(--on-brand); font-size: .78rem; font-weight: 700; }
.plan-name { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.plan-tagline { margin: 0; color: var(--muted); }
.plan-price p { margin: 0; }
.plan-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1; }
.plan-per { color: var(--muted); font-weight: 600; }
.plan-promo { margin: 0; align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: var(--green-tint); color: var(--green-d); font-weight: 700; font-size: .88rem; }
.plan-features { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-features li { position: relative; padding-left: 28px; line-height: 1.4; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231D2321' stroke-width='2.2'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan-free { text-align: center; max-width: 640px; margin: 0 auto; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--line); }
.pricing-foot { text-align: center; margin: 0; }
.join-promo { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,165,0,.16); color: #FFD27A; }
.join-promo strong { color: var(--green); }
.btn-ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; margin-left: 8px; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 640px) { .btn-ghost-light { margin: 10px 0 0; } .billing-switch label { padding: 8px 14px; } }
.promo-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-bottom: 18px; }
.promo-banner p { margin: 0; }
.promo-banner strong { color: var(--green); }
.promo-banner a { color: #fff; }
a.promo-banner { text-decoration: none; } a.promo-banner:hover { color: #fff; background: #000; }

/* v1.8 · Mi plan y cobros */
.plan-now { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plan-now p { margin: 0; }
.plan-now-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 2px 0 10px !important; }
.plan-now-note { max-width: 320px; }
.caps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.caps li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.caps li::before { content: "×"; position: absolute; left: 4px; top: -1px; font-weight: 700; }
.caps li.is-on { color: var(--ink); text-decoration: none; }
.caps li.is-on::before { content: "✓"; color: var(--green-d); left: 2px; }
.sub-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.sub-active { background: #E1F2E5; color: #1E6B35; }
.sub-trial { background: var(--green-tint); color: var(--green-d); }
.sub-past_due { background: var(--chili-tint); color: var(--chili); }
.sub-canceled, .sub-inactive { background: var(--line-2); color: var(--muted); }
.sub-pending_card { background: var(--corn-tint); color: #6B4D06; }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.sub-facts div { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.sub-facts dt { font-size: .8rem; color: var(--muted); }
.sub-facts dd { margin: 2px 0 0; font-weight: 700; }
.sub-actions { align-items: center; gap: 10px; }
.sub-change summary { list-style: none; }
.sub-change summary::-webkit-details-marker { display: none; }
.sub-change-form { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.sub-sync { margin-top: 6px; }
.choose-plan .promo-banner { margin: 6px 0 16px; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 6px 0 14px; }
.plan-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.plan-option:has(input:checked) { border: 2px solid var(--green-d); background: var(--green-tint); }
.plan-option input { margin-top: 5px; accent-color: var(--green-d); flex: none; width: 18px; height: 18px; }
.po-body { display: grid; gap: 4px; }
.po-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.po-price { font-weight: 600; }
.po-feats { color: var(--ink-2); }
.billing-admin .app-grid { margin-top: 8px; }
.billing-rules { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.inline-stack { display: inline-block; margin: 0 6px 8px 0; }
.flow-log summary { cursor: pointer; }
.plans-edit-title { margin: 28px 0 12px; }
.plan-lock { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--corn-tint); color: #5C4205; margin-bottom: 14px; }
.plan-lock p { margin: 0; }

/* ---------- v1.9 · Continuar con Google ---------- */
.btn-google { background: #fff; color: #1F1F1F; border: 1.5px solid #C9CFCB; font-weight: 600; margin-top: 6px; }
.btn-google:hover { background: #F5F7F5; border-color: #A9B1AC; color: #1F1F1F; }
.btn-google svg { flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--muted); font-size: .88rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.howto { margin: 6px 0 14px; }
.howto summary { cursor: pointer; font-weight: 600; color: var(--green-d); }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.howto code, .app-card .hint code { word-break: break-all; }

/* ---------- v1.9 · Modo app (Android) ---------- */
body.is-app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.is-bare { padding-bottom: 0; background: var(--surface); }
.app-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(247, 248, 245, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.app-bar .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.app-bar .logo-mark { width: 30px; height: 30px; }
.app-bar .logo-word { height: 20px; }
.app-bar-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(29, 35, 33, .06); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; min-height: 52px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.tabbar a svg { transition: transform .15s; }
.tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active svg { fill: var(--green); stroke: var(--ink); }
.tabbar a:active svg { transform: scale(.9); }
@media (min-width: 700px) { .tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }
body.is-app .account-logout { display: none; }
body.is-app .account-head { padding-top: 18px; }
.app-section-title { font-family: var(--font-display); font-size: 1.35rem; margin: 18px 0 10px; }
.app-links { text-align: center; color: var(--muted); margin: 18px 0 0; }
.app-links a { color: var(--muted); }

/* Welcome screen */
.aw { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--green); }
.aw-top { position: relative; flex: 1 0 auto; padding: calc(36px + env(safe-area-inset-top)) 24px 56px; color: var(--ink); background: var(--green); background-image: var(--aw-img, none); background-size: cover; background-position: center; isolation: isolate; }
.aw-top[style]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 165, 0, .92) 0%, rgba(255, 165, 0, .78) 55%, rgba(255, 165, 0, .55) 100%); }
.aw-brand { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(29, 35, 33, .12); }
.aw-brand .logo-mark { width: 36px; height: 36px; }
.aw-brand .logo-word { height: 22px; color: var(--ink); }
.aw-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; margin: 34px 0 12px; max-width: 14ch; }
.aw-sub { font-size: 1.05rem; line-height: 1.45; margin: 0; max-width: 34ch; color: #2A2410; }
.aw-sheet { position: relative; margin-top: -26px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; box-shadow: 0 -8px 30px rgba(29, 35, 33, .08); }
.aw-sheet > * { width: 100%; max-width: 440px; justify-self: center; }
.aw-flashes { padding: 0; }
.aw-perks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.aw-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); }
.aw-perks span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--green-tint); color: var(--green-d); font-weight: 800; }
.aw-sheet .btn-google { margin-top: 4px; }
.aw-login { text-align: center; margin: 4px 0 0; color: var(--muted); }
.aw-login a { font-weight: 700; color: var(--green-d); }
.aw-skip { text-align: center; color: var(--ink-2); font-weight: 600; padding: 8px; }
.aw-legal { text-align: center; font-size: .78rem; color: var(--muted); margin: 0; }
.aw-legal a { color: var(--muted); }
@media (min-width: 900px) { .aw { flex-direction: row; } .aw-top { flex: 1 1 55%; display: flex; flex-direction: column; justify-content: center; padding: 60px; } .aw-sheet { flex: 0 0 45%; margin: 0; border-radius: 0; align-content: center; } }
