/* ClickGest Resto · estilos de la web del restaurante (carga después de style.css) */
:root { --background: #faf6ef; --foreground: #241c15; --ink-dark: #17110b; --gold-light: #e08a74; --line: #e8dfd1; --muted: #75695c; --radius: 12px; }
body { background: var(--background); }
.font-display, h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.eyebrow { color: var(--gold); letter-spacing: .14em; }
[hidden] { display: none !important; }
.narrow { max-width: 720px; margin: 0 auto; }
.site-logo img { max-height: 46px; display: block; }
.r-muted { color: var(--muted); }
.r-link { color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.r-empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.r-notice { background: #fff6e8; border: 1px solid #efdcbc; border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; margin: 1rem 0; }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-gold { color: #fff; }
.btn-gold:hover { background: var(--gold); filter: brightness(.92); }

/* Portada */
.r-hero { min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; background-color: var(--ink); background-image: radial-gradient(circle at 80% 15%, rgba(200,85,61,.55), transparent 55%), radial-gradient(circle at 10% 90%, rgba(226,172,90,.28), transparent 50%); background-size: cover; background-position: center; }
.r-hero-inner { padding-top: 6rem; padding-bottom: 4.5rem; }
.r-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; opacity: .9; margin: 0; }
.r-hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1.02; margin: .4rem 0 .6rem; color: #fff; font-weight: 400; }
.r-lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 620px; opacity: .92; margin: 0; }
.r-lead-dark { color: var(--muted); max-width: 620px; margin-top: .6rem; }
.r-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.r-daily-strip { padding: 1.6rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.r-daily-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.r-daily-inner h2 { font-size: 1.5rem; margin: .1rem 0; color: var(--ink); }
.r-daily-inner > div:first-child { flex: 1; min-width: 220px; }
.r-daily-price { font-family: Georgia, serif; font-size: 2rem; color: var(--gold); }
.r-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.r-feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; display: block; }
.r-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.r-feature-body { padding: 1rem 1.1rem 1.2rem; }
.r-feature h3 { font-size: 1.12rem; margin: 0; color: var(--ink); font-weight: 400; }
.r-feature p { font-size: .9rem; margin: .4rem 0 0; }
.r-dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.r-price { font-weight: 600; white-space: nowrap; color: var(--ink); }
.r-price.big { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; color: var(--gold); }
.r-price small { color: var(--muted); font-weight: 400; }
.r-about { background: var(--ink); color: #fff; }
.r-about h2 { color: #fff; font-size: 2rem; margin: .3rem 0 1rem; font-weight: 400; }
.r-about .r-link { color: #fff; }
.r-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.r-about-grid > :only-child { grid-column: 1 / -1; max-width: 680px; }
.r-about-grid img { width: 100%; border-radius: var(--radius); }
.r-about-text { line-height: 1.75; opacity: .9; white-space: pre-line; }
.r-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.r-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.r-gallery.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.r-visit { background: var(--paper); }
.r-visit h2 { font-size: 2rem; margin: .3rem 0 1rem; color: var(--ink); font-weight: 400; }
.r-visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.r-visit-grid > :only-child { grid-column: 1 / -1; }
.r-visit-line { margin: .4rem 0; }
.r-map { height: 340px; border-radius: var(--radius); z-index: 1; }
.hours-table { list-style: none; padding: 0; margin: 1.1rem 0 0; max-width: 420px; }
.hours-table li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px dotted var(--line); font-size: .94rem; }
.hours-list li { display: flex; flex-direction: column; margin-bottom: .45rem; font-size: .86rem; }
.hours-list li span:first-child { color: rgba(255,255,255,.55); font-size: .78rem; }
.footer-social { display: flex; gap: .9rem; margin-top: 1rem; font-size: .85rem; }
.footer-social a { color: rgba(255,255,255,.75); text-decoration: underline; }
.page-head { padding: 3.2rem 0 1.6rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: .3rem 0 0; color: var(--ink); font-weight: 400; }
.float-book { display: none; }

/* Carta */
.menu-cats { position: sticky; top: 0; z-index: 30; display: flex; gap: .3rem; overflow-x: auto; padding: .7rem max(20px, calc((100vw - 900px) / 2)); background: var(--background); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats a { padding: .4rem .85rem; border-radius: 999px; white-space: nowrap; font-size: .9rem; color: var(--muted); }
.menu-cats a.on { background: var(--ink); color: #fff; }
.menu-wrap { max-width: 900px; margin: 0 auto; padding: 1.4rem 20px 5rem; }
.allergen-filter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; }
.allergen-filter summary { cursor: pointer; font-weight: 600; font-size: .94rem; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .35rem .8rem; font-size: .9rem; }
.menu-section { padding-top: 2.4rem; scroll-margin-top: 54px; }
.menu-section h2 { font-size: 1.7rem; margin: 0; color: var(--ink); font-weight: 400; }
.dish-list { margin-top: .8rem; }
.dish { display: flex; gap: 1.1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.dish-main { flex: 1; min-width: 0; }
.dish h3 { font-size: 1.06rem; margin: 0; font-weight: 600; font-family: inherit; letter-spacing: 0; }
.dish-star { color: var(--gold); }
.dish-desc { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }
.dish-img { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.dish-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.al-chip, .diet-chip { display: inline-flex; gap: .25rem; align-items: center; font-size: .72rem; padding: .08rem .45rem; border-radius: 999px; background: #f1e9dc; color: #5b4f42; }
.diet-chip { background: #e6efdf; color: #40603a; }
.dish-add { margin-top: .6rem; transition: transform .15s; }
.dish-add.added { background: var(--ink); color: #fff; transform: scale(1.06); }
.dish.is-soldout h3, .dish.is-soldout .dish-desc, .dish.is-soldout .r-price { opacity: .5; }
.dish.is-soldout .dish-img { filter: grayscale(1); opacity: .6; }
.soldout-tag { display: inline-block; margin-top: .55rem; font-size: .75rem; font-weight: 600; color: #a03a26; }
.menu-legal { margin-top: 2.4rem; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.daily-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.2rem; }
.daily-card h2 { font-size: 1.6rem; margin: 0; color: var(--ink); font-weight: 400; }
.daily-course { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 1.4rem 0 .4rem; font-family: inherit; }
.daily-items { list-style: none; padding: 0; margin: 0; }
.daily-items li { padding: .22rem 0; }
.daily-incl { margin: 1.4rem 0 0; padding-top: .9rem; border-top: 1px dotted var(--line); color: var(--muted); font-size: .92rem; }

/* Carrito */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); z-index: 60; pointer-events: none; }
.cart-bar button { pointer-events: auto; display: flex; width: 100%; max-width: 520px; margin: 0 auto; gap: .8rem; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: .95rem 1.1rem; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.28); }
#cart-count { background: var(--gold); border-radius: 999px; min-width: 1.6em; padding: 0 .4em; text-align: center; font-weight: 700; }
.has-cart #chat-widget { display: none !important; }
.sheet-overlay { position: fixed; inset: 0; background: rgba(20,14,8,.5); z-index: 70; }
.sheet { position: fixed; z-index: 80; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 1.5rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom)); }
.sheet h3 { font-size: 1.4rem; margin: 0 2rem .8rem 0; color: var(--ink); font-weight: 400; }
.sheet-close { position: absolute; top: .9rem; right: .9rem; background: none; border: 0; font-size: 1.05rem; cursor: pointer; padding: .4rem; }
.no-scroll { overflow: hidden; }
.opt-group { border: 0; padding: 0; margin: 0 0 1.1rem; }
.opt-group legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
.opt-group legend small { color: var(--muted); font-weight: 400; }
.opt-group.missing legend { color: #b42318; }
.opt { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); font-size: .9rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.qty-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.qty output { min-width: 1.5em; text-align: center; }
.cart-line { display: grid; grid-template-columns: 1fr auto 72px; gap: .7rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.cart-line small, .sum-line small { display: block; color: var(--muted); font-size: .8rem; }
.cart-line > span { text-align: right; }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.sum-line.big { font-weight: 700; font-size: 1.1rem; padding: .85rem 0; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--foreground); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; z-index: 90; font-size: .94rem; max-width: 90vw; text-align: center; }
.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; padding-bottom: 4rem; }
.checkout-summary { position: sticky; top: 1rem; }
.summary-totals { display: grid; grid-template-columns: 1fr auto; gap: .3rem; margin: .8rem 0 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.summary-totals dd { margin: 0; text-align: right; }
.summary-totals .big { font-weight: 700; font-size: 1.15rem; margin-top: .3rem; }
.seg { display: flex; background: #f1e9dc; border-radius: 10px; padding: 4px; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .6rem; border-radius: 7px; font-weight: 600; font-size: .94rem; }
.seg input:checked + span { background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.pay-options { border: 0; padding: 0; }
.pay-options legend { font-size: .85rem; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.track { list-style: none; display: flex; padding: 0; margin: 1.6rem 0 .6rem; counter-reset: s; }
.track li { flex: 1; font-size: .76rem; text-align: center; color: var(--muted); position: relative; padding-top: 1.6rem; }
.track li::before { content: ''; position: absolute; top: 3px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.track li::after { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.done { color: var(--ink); font-weight: 600; }
.track li.done::before, .track li.done::after { background: var(--gold); }

/* Reservas */
.slots { min-height: 2.5rem; }
.slots.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.slot-shift { font-size: .8rem; color: var(--muted); margin: .5rem 0 .3rem; text-transform: uppercase; letter-spacing: .08em; }
.slot-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.slot { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: .5rem .8rem; cursor: pointer; font-size: .94rem; font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.res-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }
.res-card span { display: block; font-size: .78rem; color: var(--muted); }
.res-card strong { font-size: 1.15rem; }

/* Mesa (QR) */
.bare-header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 20px; background: var(--ink); color: #fff; }
.bare-header .site-logo { color: #fff; font-family: Georgia, serif; font-size: 1.15rem; }
.bare-header .lang-switch a { color: rgba(255,255,255,.7); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .9rem 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.table-head strong { display: block; font-size: 1.2rem; font-family: Georgia, serif; }
.table-head .r-kicker { color: var(--muted); font-size: .68rem; }
.table-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.table-tally { padding: .8rem 20px; }
.table-tally details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; }
.table-tally summary { cursor: pointer; }

@media (max-width: 860px) {
  .r-feature-grid, .r-about-grid, .r-visit-grid, .checkout { grid-template-columns: 1fr; }
  .r-gallery { grid-template-columns: repeat(2, 1fr); }
  .checkout-summary { position: static; }
  .float-book { display: block; position: fixed; bottom: 14px; left: 14px; z-index: 40; background: var(--gold); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
  .dish-img { width: 84px; height: 84px; }
}
@media (max-width: 480px) { .form-grid-3 { grid-template-columns: 1fr; } .track li { font-size: .66rem; } }
@media print { .site-header, .site-footer, .menu-cats, .allergen-filter, .cart-bar, .float-book, #chat-widget, .dish-add { display: none !important; } }
.site-nav a.btn-gold, .mobile-nav a.btn-gold { color: #fff; }
.mobile-nav:not(.open) { box-shadow: none; }
