/* Sabor & Fuego (demo) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('../fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-display: swap; font-weight: 300 700; src: url('../fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root { --bg: #0d0908; --bg-2: #140e0b; --ember: #e2621b; --ember-deep: #7c2d12; --gold: #d4a24c; --cream: #f3ead9; --muted: #b29a82; --pill: #e2621b; --map-bg: #1a120e; --scroll-bar: linear-gradient(90deg, #e2621b, #d4a24c); }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { background: var(--bg); color: var(--cream); font-family: 'Inter', sans-serif; overflow-x: clip; }
.font-display { font-family: 'Cormorant Garamond', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-ember { color: var(--ember); }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Encabezado: transparente arriba, sólido al bajar */
.head-inner { border: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.site-head.scrolled .head-inner { background: rgba(13, 9, 8, 0.86); border-color: rgba(212, 162, 76, 0.18); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mobile-panel { max-height: 0; overflow: hidden; background: rgba(13, 9, 8, 0.96); transition: max-height 0.35s ease; }
.mobile-panel.open { max-height: 420px; border: 1px solid rgba(212, 162, 76, 0.18); }

/* Héroe */
.hero-photo { position: absolute; inset: -6% 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.ember-field { position: absolute; inset: 0; z-index: 1; background: radial-gradient(500px circle at 20% 30%, rgba(226, 98, 27, 0.22), transparent 60%), radial-gradient(700px circle at 85% 70%, rgba(124, 45, 18, 0.45), transparent 60%), linear-gradient(180deg, rgba(13, 9, 8, 0.55), rgba(13, 9, 8, 0.9) 80%, #0d0908); animation: emberPulse 8s ease-in-out infinite alternate; }
@keyframes emberPulse { 0% { opacity: 0.85; } 100% { opacity: 1; } }
.ember-particle { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--ember); opacity: 0.7; filter: blur(0.5px); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.8; } 100% { transform: translateY(-70vh) translateX(20px); opacity: 0; } }
.hero-layer { z-index: 2; }
.scroll-cue { width: 1px; height: 54px; background: linear-gradient(180deg, transparent, var(--gold)); position: relative; overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--cream); animation: cue 2s var(--ease-soft) infinite; }
@keyframes cue { to { top: 110%; } }

/* Marquesina */
.band-ember { background: linear-gradient(100deg, var(--ember), var(--gold)); color: #1a0e06; --mq-t: 32s; }
.band-ember .marquee-track > span { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); white-space: nowrap; padding: 0.55rem 0; }
.band-ember .sep { font-style: normal; opacity: 0.6; }

.divider-flame { height: 1px; background: linear-gradient(90deg, transparent, var(--ember), var(--gold), transparent); }

.btn-primary { background: linear-gradient(120deg, var(--ember), var(--gold)); color: #1a0e06; font-weight: 600; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, filter 0.25s ease; }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(226, 98, 27, 0.55); filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-outline { border: 1px solid rgba(212, 162, 76, 0.4); transition: border-color 0.25s ease, background 0.25s ease; }
.btn-outline:hover { border-color: var(--gold); background: rgba(212, 162, 76, 0.08); }

.photo-frame { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(212, 162, 76, 0.18); background: #100a06; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease-out); }
.photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 9, 8, 0) 55%, rgba(13, 9, 8, 0.65)); pointer-events: none; }
.parallax-img { position: absolute; inset: -10% 0; height: 120% !important; }

/* El ritual */
.ritual { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent); border: 1px solid rgba(212, 162, 76, 0.16); border-radius: 1.25rem; padding: 2rem; transition: border-color 0.3s ease, transform 0.5s var(--ease-out); }
.ritual:hover { border-color: rgba(226, 98, 27, 0.55); transform: translateY(-6px); }
.ritual-n { font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(212, 162, 76, 0.65); transition: color 0.4s ease; }
.ritual:hover .ritual-n { color: rgba(226, 98, 27, 0.3); }

.dish-card .photo-frame img { transition: transform 0.7s var(--ease-out); }
.dish-card:hover .photo-frame img { transform: scale(1.07); }
.dish-price { position: absolute; right: 0.75rem; top: 0.75rem; z-index: 2; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(13, 9, 8, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--gold); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }

/* Menú */
.tabs-rail { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.tab-btn { position: relative; padding: 0.55rem 1rem; color: var(--muted); transition: color 0.25s ease; }
.tab-btn[aria-selected='true'] { color: var(--cream); }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 60px); transform: translate(var(--x, 0), var(--y, 0)); background: linear-gradient(90deg, var(--ember), var(--gold)); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.menu-row { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-row .leader { flex: 1; border-bottom: 1px dotted rgba(178, 154, 130, 0.4); transform: translateY(-4px); min-width: 1rem; }
.menu-row.is-off { display: none; }
.badge { display: inline-block; vertical-align: middle; margin-left: 0.35rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(212, 162, 76, 0.35); color: var(--gold); white-space: nowrap; }
.badge-hot { border-color: rgba(226, 98, 27, 0.5); color: #f59e6b; }
.badge-veg { border-color: rgba(134, 239, 172, 0.4); color: #86efac; }
.diet-chip { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid rgba(212, 162, 76, 0.28); color: var(--muted); transition: all 0.25s ease; }
.diet-chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #1a0e06; }

/* Galería */
.gallery-item { width: 80vw; height: 58vh; max-height: 560px; margin-right: 1rem; }
@media (min-width: 640px) { .gallery-item { width: 58vw; } }
@media (min-width: 1024px) { .gallery-item { width: 42vw; height: 56vh; margin-right: 1.5rem; } }
.gallery-btn { display: block; text-align: left; cursor: zoom-in; }
.gallery-btn:hover img { transform: scale(1.05); }
.gallery-cap { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2; font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; }
.track-pad { padding-left: max(1.5rem, calc((100vw - 72rem) / 2)); padding-right: max(1.5rem, calc((100vw - 72rem) / 2)); }

/* Reservaciones */
.panel { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 162, 76, 0.16); }
.summary-box { background: rgba(226, 98, 27, 0.08); border: 1px solid rgba(226, 98, 27, 0.25); }
.summary-box.pop { animation: pop 0.45s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.02); border-color: var(--ember); } }
.field { width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 162, 76, 0.22); border-radius: 0.9rem; padding: 0.8rem 1rem; color: var(--cream); font-size: 0.9rem; color-scheme: dark; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(226, 98, 27, 0.2); }
.field[aria-invalid='true'] { border-color: #f87171; }
select.field option { background: #1a120e; }
.field-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.stepper button { width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; border: 1px solid rgba(212, 162, 76, 0.3); font-size: 1.2rem; transition: background 0.2s ease, transform 0.15s ease; }
.stepper button:hover { background: rgba(212, 162, 76, 0.1); }
.stepper button:active { transform: scale(0.92); }

.events-box { background: linear-gradient(120deg, rgba(124, 45, 18, 0.55), rgba(20, 14, 11, 0.9)); border: 1px solid rgba(212, 162, 76, 0.2); }
.events-photo { position: relative; overflow: hidden; min-height: 260px; }

/* Reseñas */
.reviews { --mq-t: 60s; --mq-gap: 1.25rem; }
.review { width: 340px; flex: none; }
.av-1 { background: linear-gradient(135deg, var(--ember), var(--gold)); color: #1a0e06; }
.av-2 { background: linear-gradient(135deg, var(--gold), var(--ember-deep)); color: #1a0e06; }
.av-3 { background: linear-gradient(135deg, var(--ember), var(--ember-deep)); color: #f3ead9; }
.star { color: var(--gold); }

.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed rgba(178, 154, 130, 0.2); font-size: 0.9rem; }
.hours-row.today { color: var(--gold); }
.is-open { color: #86efac; }
.map-frame { filter: grayscale(0.2) invert(0.9) contrast(0.9) sepia(0.25); }
.big-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(3.5rem, 15vw, 13rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(212, 162, 76, 0.28); text-align: center; }

dialog.lightbox { background: transparent; border: 0; padding: 0; max-width: min(94vw, 1200px); }
dialog.lightbox::backdrop { background: rgba(5, 3, 2, 0.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 1rem; display: block; margin: 0 auto; }
dialog.lightbox[open] { animation: lbIn 0.45s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
