/* =============================================================
   Kallpa · Cocina Peruana de Origen — styles.css
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #14100d;
  --bg-2: #1c1612;
  --bg-3: #261d17;
  --line: rgba(243, 233, 219, 0.12);
  --cream: #f3e9db;
  --muted: #b9aa97;
  --terracota: #c4532d;
  --terracota-2: #a8411f;
  --aji: #e3a43a;
  --morado: #5a2a4e;
  --verde: #6f8a4a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 13 L12 1 L24 13 L36 1 L48 13' fill='none' stroke='%23e3a43a' stroke-width='1.4' opacity='.55'/%3E%3C/svg%3E");
}

/* 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; color: var(--aji); }
::selection { background: var(--terracota); color: var(--cream); }
:focus-visible { outline: 2px solid var(--aji); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
[hidden] { display: none !important; }
* { scrollbar-color: rgba(227,164,58,.35) transparent; scrollbar-width: thin; }
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cream); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.small { font-size: .92rem; color: var(--muted); }
.link { color: var(--aji); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--cream); }
.placeholder-note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); opacity: .7; text-align: center; }

/* 4. Typography ------------------------------------------------ */
.eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--aji); font-weight: 700; display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 8px; background: var(--pattern) left center / auto 8px repeat-x; }
.section-title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); margin: .6rem 0 1.2rem; }
.section-lead { color: var(--muted); max-width: 60ch; }

/* 5. Components ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracota); color: #fff; box-shadow: 0 12px 30px -12px rgba(196, 83, 45, .8); }
.btn-primary:hover { background: #d4603a; box-shadow: 0 18px 36px -12px rgba(196, 83, 45, .9); }
.btn-ghost { border: 1px solid rgba(243, 233, 219, .35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--aji); color: var(--aji); }
.btn-link { padding-inline: .4rem; color: var(--cream); font-weight: 600; }
.btn-link:hover { color: var(--aji); transform: none; }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #5bd17a; box-shadow: 0 0 0 0 rgba(91, 209, 122, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 209, 122, 0); } }

.tag { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--aji); }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--cream); white-space: nowrap; }

.add-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(227, 164, 58, .5); color: var(--aji); transition: background .25s, color .25s, transform .3s var(--ease-out);
}
.add-btn::before { content: "+ "; }
.add-btn:hover { background: var(--aji); color: var(--bg); }
.add-btn.is-added { background: var(--verde); border-color: var(--verde); color: #fff; }
.add-btn.is-added::before { content: "✓ "; }

.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--cream); transition: background .25s; flex: none; }
.icon-btn:hover { background: rgba(243, 233, 219, .1); }

.b-veg, .b-sg, .b-hot { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 4px; margin-left: .25rem; vertical-align: middle; font-family: var(--sans); font-style: normal; }
.b-veg { background: rgba(111, 138, 74, .25); color: #a9c47f; }
.b-sg { background: rgba(227, 164, 58, .18); color: var(--aji); }
.b-hot { background: rgba(196, 83, 45, .2); color: #f08a62; }

/* Fields */
.field { display: grid; gap: .4rem; flex: 1; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(243, 233, 219, .05); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .25s, background .25s; color-scheme: dark;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aji); background: rgba(243, 233, 219, .08); }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid { border-color: #e2674a; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.check input { accent-color: var(--terracota); width: 18px; height: 18px; }

/* 6. Sections -------------------------------------------------- */

/* Topbar */
.topbar { background: #0e0b09; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar-links { display: none; gap: 1.6rem; }
.topbar-links a:hover { color: var(--aji); }
.topbar-status.is-open::before, .topbar-status.is-closed::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.topbar-status.is-open::before { background: #5bd17a; }
.topbar-status.is-closed::before { background: #e2674a; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(20, 16, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--aji); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--cream); line-height: 1; display: grid; }
.brand-name small { font-family: var(--sans); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: .25rem; }
.nav-links { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; }
.nav-links a { position: relative; padding: .3rem 0; color: rgba(243, 233, 219, .85); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--aji); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn-primary { display: none; }
.nav-cart { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .25s; }
.nav-cart:hover { border-color: var(--aji); }
.nav-cart svg { width: 21px; height: 21px; }
.nav-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--terracota); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; transform: scale(0); transition: transform .4s var(--ease-out); }
.nav-cart-count.has-items { transform: scale(1); }
.nav-cart-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.4); } }
.nav-burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-burger span { display: block; width: 24px; height: 1.6px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.3px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; padding: 1.5rem var(--gutter) 2rem;
  background: rgba(20, 16, 13, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); gap: 1.1rem; font-size: 1.15rem;
}

/* Hero */
.hero { position: relative; min-height: calc(100svh - 74px); display: flex; align-items: center; isolation: isolate; overflow: hidden; margin-top: -74px; padding-top: 74px; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-media img { object-fit: cover; object-position: 70% 50%; animation: heroZoom 18s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20,16,13,.95) 0%, rgba(20,16,13,.84) 40%, rgba(20,16,13,.3) 72%, rgba(20,16,13,.15) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-content { padding: 6rem 0 7rem; }
.hero-title { font-size: clamp(3rem, 8.4vw, 7rem); font-weight: 600; margin: 1rem 0 1.4rem; max-width: 11ch; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(243, 233, 219, .82); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2.2rem; }
.hero-proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem; margin-top: 3.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 640px; }
.hero-proof li { display: grid; }
.hero-proof strong { font-family: var(--serif); font-size: 1.9rem; color: var(--cream); line-height: 1; }
.hero-proof span { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; border: 1.5px solid rgba(243,233,219,.4); border-radius: 14px; transform: translateX(-50%); display: none; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--aji); transform: translateX(-50%); animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-style: italic; color: rgba(243,233,219,.7); }
.marquee-track i { color: var(--terracota); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Historia */
.historia-grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.historia-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 520px; }
.historia-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.historia-media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(20,16,13,.75); backdrop-filter: blur(8px); padding: .5rem .9rem; border-radius: 999px; font-size: .78rem; }
.historia-copy p { color: rgba(243, 233, 219, .8); margin-bottom: 1rem; max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0; padding: 1.6rem 0; border-block: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--aji); line-height: 1; font-weight: 700; }
.stats dd { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }

/* Estrellas */
.estrellas { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.stars-grid { display: grid; gap: 1.4rem; }
.star-card { background: var(--bg-3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s; transform-style: preserve-3d; }
.star-card:hover { box-shadow: var(--shadow); border-color: rgba(227,164,58,.35); }
.star-card img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease-out); }
.star-card:hover img { transform: scale(1.06); }
.star-body { padding: 1.3rem 1.3rem 1.4rem; }
.star-body h3 { font-size: 1.75rem; margin: .35rem 0 .5rem; }
.star-body p { font-size: .9rem; color: var(--muted); min-height: 3em; }
.star-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }

/* Carta */
.carta { background: var(--bg-2); }
.carta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--pattern) center / auto 14px repeat-x; opacity: .5; }
.carta-controls { display: grid; gap: 1.2rem; margin-bottom: 2.6rem; position: sticky; top: 74px; z-index: 5; background: var(--bg-2); padding: .9rem 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: .55rem 1.1rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; transition: all .3s; }
.tabs button:hover { color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; border: 1px dashed rgba(243,233,219,.25); cursor: pointer; color: var(--muted); transition: all .25s; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-style: solid; border-color: var(--aji); color: var(--aji); background: rgba(227,164,58,.08); }
.chip:has(input:focus-visible) { outline: 2px solid var(--aji); outline-offset: 2px; }
.search { margin-left: auto; flex: 1 1 200px; max-width: 280px; background: rgba(243,233,219,.05); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; color-scheme: dark; }
.search:focus { outline: none; border-color: var(--aji); }
.menu { display: grid; gap: 3.5rem; }
.menu-group-title { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--aji); font-style: italic; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.menu-group-items, .menu-group { display: grid; gap: .2rem 3rem; }
.menu-group > .menu-group-title { grid-column: 1 / -1; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px dashed rgba(243,233,219,.08); align-items: start; }
.dish-head { display: flex; align-items: baseline; gap: .6rem; grid-column: 1 / -1; }
.dish-head h4 { font-size: 1.4rem; font-weight: 600; }
.dish-head h4 small { font-family: var(--sans); font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.dots { flex: 1; border-bottom: 1px dotted rgba(243,233,219,.25); transform: translateY(-4px); min-width: 20px; }
.dish p { font-size: .88rem; color: var(--muted); }
.dish .add-btn { align-self: center; }
.dish.is-hidden, .menu-group.is-hidden { display: none; }
.menu-empty { text-align: center; color: var(--muted); padding: 2rem; }
.carta-note { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 3rem; font-size: .82rem; color: var(--muted); }

/* Bar band */
.bar-band { padding: clamp(4rem, 9vw, 7rem) 0; background: radial-gradient(ellipse at 20% 50%, rgba(90,42,78,.55), transparent 60%), var(--bg); }
.bar-grid { display: grid; gap: 3rem; align-items: center; }
.bar-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bar-photos img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.bar-photos img:last-child { margin-top: 3rem; }
.bar-copy p { color: rgba(243,233,219,.8); margin-bottom: 1.6rem; max-width: 50ch; }
.bar-copy strong { color: var(--aji); }

/* Experiencias */
.exp-grid { display: grid; gap: 1.4rem; }
.exp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--bg-2); display: flex; flex-direction: column; gap: .8rem; transition: transform .6s var(--ease-out), border-color .3s; }
.exp-card:hover { transform: translateY(-6px); border-color: rgba(227,164,58,.35); }
.exp-card h3 { font-size: 2rem; }
.exp-card p { color: var(--muted); font-size: .94rem; }
.exp-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--aji); }
.exp-price { font-family: var(--serif); font-size: 2rem !important; color: var(--cream) !important; margin-top: auto; padding-top: .8rem; }
.exp-price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.exp-card--feature { background: linear-gradient(160deg, var(--terracota-2) 0%, #6d2a14 100%); border-color: transparent; }
.exp-card--feature p, .exp-card--feature .exp-price small { color: rgba(255,255,255,.82); }
.exp-card--feature .exp-kicker { color: #ffd38a; }
.exp-card--feature .btn-primary { background: var(--cream); color: var(--bg); align-self: flex-start; box-shadow: none; }

/* Reservas */
.reservas { background: var(--bg-2); }
.reservas-grid { display: grid; gap: 3rem; align-items: start; }
.reservas-copy p { color: rgba(243,233,219,.8); max-width: 48ch; }
.reservas-info { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .7rem; }
.reservas-info li { display: flex; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.reservas-info strong { min-width: 110px; color: var(--cream); font-weight: 600; }
.reserva-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.form-error { color: #ff9a7f; font-size: .88rem; }
.form-success { background: rgba(111,138,74,.15); border: 1px solid rgba(111,138,74,.5); border-radius: 14px; padding: 1.2rem; font-size: .92rem; }
.form-success strong { color: #b8d48f; display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.form-success .btn { margin-top: .9rem; }

/* Delivery */
.delivery-grid { display: grid; gap: 2.4rem; align-items: center; }
.delivery-grid p { color: rgba(243,233,219,.8); max-width: 50ch; }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.steps span { width: 38px; height: 38px; border-radius: 50%; background: var(--aji); color: var(--bg); display: grid; place-items: center; font-weight: 800; flex: none; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.steps div { font-size: .9rem; color: var(--muted); }
.delivery-grid > .btn { justify-self: start; }

/* Eventos */
.eventos { background: var(--bg-2); }
.eventos-grid { display: grid; gap: 3rem; align-items: center; }
.eventos-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.eventos-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.eventos-copy p { color: rgba(243,233,219,.8); max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.ticks li { padding-left: 1.8rem; position: relative; color: var(--muted); }
.ticks li::before { content: "✺"; position: absolute; left: 0; color: var(--terracota); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.g-item { border-radius: 14px; overflow: hidden; padding: 0; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 1s var(--ease-out), filter .5s; }
.g-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 2 / 1; }

/* Testimonios */
.testimonios { background: radial-gradient(ellipse at 80% 0%, rgba(196,83,45,.18), transparent 55%), var(--bg); }
.quotes { display: grid; gap: 1.4rem; }
.quote { border-left: 2px solid var(--terracota); padding: .4rem 0 .4rem 1.6rem; }
.quote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; font-style: italic; }
.quote footer { margin-top: 1rem; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* FAQ */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-grid header p { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--aji); transition: transform .4s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 60ch; }

/* Ubicación */
.ubicacion { background: var(--bg-2); }
.ubic-grid { display: grid; gap: 3rem; align-items: center; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aji); font-weight: 700; }
.contact-list a:hover { color: var(--aji); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* Newsletter */
.newsletter { padding: 4rem 0; background: var(--terracota); color: #fff; position: relative; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: var(--pattern) center / auto 14px; opacity: .12; pointer-events: none; }
.news-inner { display: grid; gap: 1.6rem; align-items: center; position: relative; }
.news-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }
.news-inner p { color: rgba(255,255,255,.88); max-width: 46ch; }
.news-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.news-form input { flex: 1 1 220px; padding: .95rem 1.3rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); color: var(--bg); }
.news-form .btn-primary { background: var(--bg); box-shadow: none; }
.news-msg { flex-basis: 100%; font-size: .88rem; min-height: 1.2em; }

/* Footer */
.footer { padding: 4.5rem 0 2rem; background: #0e0b09; font-size: .9rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aji); margin-bottom: 1rem; font-weight: 700; }
.footer nav a, .footer-grid > div > a:not(.brand) { display: block; color: var(--muted); padding: .25rem 0; }
.footer a:hover { color: var(--cream); }
.footer-small { color: var(--muted); margin-top: 1rem; font-size: .82rem; }
.reclamaciones { margin-top: .6rem; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem !important; display: inline-block !important; }
.credits { margin-top: .8rem; }
.credits summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.credits p { margin-top: .6rem; font-size: .74rem; line-height: 1.7; opacity: .8; }
.credits a { text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* Drawer (pedido) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .4s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease-out); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.9rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; display: grid; align-content: start; gap: 1.2rem; }
.cart-list { list-style: none; padding: 0; display: grid; gap: .2rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-item h4 { font-size: 1.2rem; }
.cart-item .ci-price { text-align: right; font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; }
.qty button:hover { background: rgba(243,233,219,.08); }
.qty span { min-width: 1.4rem; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-empty { color: var(--muted); }
.cart-options { display: grid; gap: 1rem; }
.seg { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; font-size: .85rem; text-align: center; cursor: pointer; transition: all .25s; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { border-color: var(--aji); color: var(--aji); background: rgba(227,164,58,.08); }
.drawer-foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total strong { font-family: var(--serif); font-size: 2rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,8,6,.94); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lb-close { position: absolute; top: 1rem; right: 1rem; background: rgba(243,233,219,.1); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%); z-index: 130; background: var(--cream); color: var(--bg); padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); transition: transform .5s var(--ease-out); max-width: calc(100% - 2rem); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

/* =============================================================
   CHAT · Inti
   ============================================================= */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 100; font-size: .94rem; }
.chat-fab {
  width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(145deg, var(--aji), var(--terracota));
  color: var(--bg); display: grid; place-items: center; box-shadow: 0 18px 40px -12px rgba(196,83,45,.9), 0 0 0 0 rgba(227,164,58,.5);
  transition: transform .5s var(--ease-out); position: relative; margin-left: auto; animation: fabRing 3s infinite 2s;
}
.chat-fab:hover { transform: scale(1.07) rotate(-4deg); }
.chat-fab svg { width: 28px; height: 28px; position: absolute; transition: transform .45s var(--ease-out), opacity .3s; }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg) scale(.6); color: var(--bg); }
.chat.is-open .chat-fab .i-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat-fab .i-close { opacity: 1; transform: none; }
.chat.is-open .chat-fab { animation: none; }
@keyframes fabRing { 0%, 60% { box-shadow: 0 18px 40px -12px rgba(196,83,45,.9), 0 0 0 0 rgba(227,164,58,.5); } 80% { box-shadow: 0 18px 40px -12px rgba(196,83,45,.9), 0 0 0 16px rgba(227,164,58,0); } 100% { box-shadow: 0 18px 40px -12px rgba(196,83,45,.9), 0 0 0 0 rgba(227,164,58,0); } }
.chat-fab-badge { position: absolute; top: -2px; right: -2px; background: #e2674a; color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }

.chat-teaser { position: absolute; right: 0; bottom: 78px; width: 250px; background: var(--cream); color: var(--bg); padding: .9rem 2.2rem .9rem 1rem; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); font-size: .88rem; line-height: 1.45; animation: teaserIn .6s var(--ease-out); cursor: pointer; }
.chat-teaser strong { display: block; }
.chat-teaser-close { position: absolute; top: 6px; right: 8px; font-size: .75rem; color: rgba(20,16,13,.5); padding: .2rem; }
@keyframes teaserIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.chat-panel {
  position: absolute; right: 0; bottom: 80px; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100svh - 120px));
  background: var(--bg-2); border: 1px solid rgba(227,164,58,.22); border-radius: 22px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.96); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s;
}
.chat.is-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility 0s; }

.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem .8rem .9rem 1rem; background: linear-gradient(135deg, #2a1e17, #1c1612); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, var(--aji), var(--terracota)); color: var(--bg); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 26px; height: 26px; }
.chat-title { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.chat-title strong { font-size: .95rem; }
.chat-status { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #5bd17a; display: inline-block; }

.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; overscroll-behavior: contain;
  background: radial-gradient(ellipse at top, rgba(227,164,58,.05), transparent 60%); }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; line-height: 1.5; animation: msgIn .4s var(--ease-out); word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg-bot { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--terracota); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg strong { color: var(--aji); }
.msg-user strong { color: #fff; }
.msg a { color: var(--aji); text-decoration: underline; }
.msg ul { padding-left: 1.1rem; margin: .3rem 0; }
.msg-time { display: block; font-size: .66rem; opacity: .5; margin-top: .3rem; }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-cards { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem 0 .4rem; align-self: stretch; scrollbar-width: thin; animation: msgIn .4s var(--ease-out); flex: none; }
.chat-card { flex: 0 0 170px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.chat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.chat-card-noimg { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(145deg, var(--bg-3), #3a2a20); font-family: var(--serif); font-size: 2rem; color: var(--aji); }
.chat-card div { padding: .6rem .7rem .7rem; display: grid; gap: .3rem; flex: 1; }
.chat-card h5 { font-family: var(--serif); font-size: 1.1rem; line-height: 1.1; font-weight: 600; }
.chat-card p { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.chat-card .cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 0; }
.chat-card .cc-foot b { font-family: var(--serif); font-size: 1.05rem; }
.chat-card .add-btn { font-size: .7rem; padding: .3rem .6rem; }

.chat-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 1rem; border-top: 1px solid var(--line); scrollbar-width: none; flex: none; }
.chat-chips:empty { display: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; font-size: .78rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(227,164,58,.45); color: var(--aji); transition: all .25s; }
.chat-chips button:hover { background: var(--aji); color: var(--bg); }
.chat-input { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-input input { flex: 1; min-width: 0; background: rgba(243,233,219,.06); border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1.1rem; font-size: 16px; color-scheme: dark; }
.chat-input input:focus { outline: none; border-color: var(--aji); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--terracota); color: #fff; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease-out), background .25s; }
.chat-input button:hover { background: #d4603a; transform: scale(1.06); }
.chat-input button svg { width: 19px; height: 19px; }
.chat-foot { font-size: .66rem; color: var(--muted); text-align: center; padding: 0 1rem .6rem; opacity: .7; background: var(--bg-2); }

/* Marco de reserva mientras no exista la foto (se reemplaza solo al subir el .webp) */
.hero.has-missing-img .hero-media { display: none; }
.hero.has-missing-img { background:
    radial-gradient(ellipse at 78% 45%, rgba(196,83,45,.55), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(227,164,58,.3), transparent 50%),
    radial-gradient(ellipse at 60% 10%, rgba(90,42,78,.6), transparent 55%), var(--bg); }

/* 7. Effects --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }

/* 8. Responsive ------------------------------------------------ */
@media (max-width: 540px) {
  .chat.is-open .chat-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; bottom: 0; }
  .chat.is-open .chat-fab { display: none; }
  .chat.is-open .chat-teaser { display: none; }
  .field-row { flex-direction: column; }
}
@media (min-width: 540px) {
  .stars-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .chat { right: 24px; bottom: 24px; }
}
@media (min-width: 720px) {
  .topbar-links { display: flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .news-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero-scroll { display: block; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .historia-grid { grid-template-columns: 5fr 6fr; }
  .stars-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-group { grid-template-columns: 1fr 1fr; }
  .bar-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .reservas-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .delivery-grid { grid-template-columns: 1fr 1.4fr; }
  .delivery-grid > .btn { grid-column: 2; }
  .steps { grid-template-columns: 1fr; }
  .eventos-grid { grid-template-columns: 7fr 5fr; gap: 5rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .gallery .g-item img { aspect-ratio: auto; }
  .g-wide img { aspect-ratio: auto !important; }
  .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 5rem; }
  .ubic-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}
@media (min-width: 1280px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .carta-controls { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .filters { flex-wrap: nowrap; }
  .search { flex: 0 1 200px; }
}
@media (max-width: 640px) {
  .hero-veil { background: linear-gradient(180deg, rgba(20,16,13,.9) 0%, rgba(20,16,13,.55) 45%, rgba(20,16,13,.85) 80%, var(--bg) 100%); }
  .hero-media img { object-position: 50% 70%; }
}

/* 9. Reduced motion (only intrusive) --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .hero-media img { animation: none; }
  .chat-fab { animation: none; }
}
