/* El Balcón de los Santos — página pública */
/* Sergio Trendy (demo): solo incluye A-Z, a-z, 0-9, coma y punto.
   Tildes, ñ, $ y signos caen automáticamente a Noto Serif Black. */
@font-face {
  font-family: 'Sergio Trendy';
  src: url('../fonts/SergioTrendy-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0020, U+002C, U+002E, U+0030-0039, U+0041-005A, U+0061-007A;
}
:root {
  --ink: #1b2828;
  --teal: #3f5e5f;
  --teal-2: #2e4748;
  --cream: #f0e8de;
  --paper: #f8f3ec;
  --rose: #c99a88;
  --rust: #b5532f;
  --gold: #f2b84b;
  --muted: #5f6b6a;
  --line: #ddd2c4;
  --radius: 18px;
  --display: 'Sergio Trendy', 'Noto Serif', Georgia, serif;
  --cond: 'Medula One', 'Arial Narrow', sans-serif;
  --body: 'Noto Serif', Georgia, serif;
  --topbar: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 70px); }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-wa { background: #25d366; color: #0b2a17; padding: 10px 16px; }

/* Barra superior */
.topbar { position: fixed; inset: 0 0 auto; height: var(--topbar); z-index: 50; display: flex; align-items: center; gap: 24px; padding: 0 max(16px, calc((100% - 1160px) / 2)); transition: background .25s, box-shadow .25s; }
.topbar.solid { background: rgba(27, 40, 40, .96); box-shadow: 0 4px 20px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font: 400 19px var(--cond); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,22,.55) 0%, rgba(15,22,22,.15) 35%, rgba(15,22,22,.88) 100%); }
.hero-inner { position: relative; z-index: 1; width: min(1160px, 100% - 32px); margin: 0 auto; padding: 140px 0 56px; }
.eyebrow, .kicker { font: 400 18px var(--cond); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 10px; }
.eyebrow { color: var(--gold); }
.kicker { color: var(--rust); }
.hero h1 { font: 900 clamp(44px, 8vw, 96px)/.95 var(--display); margin: 0; letter-spacing: -.02em; max-width: 12ch; }
.hero-tag { font: italic 400 clamp(18px, 2.4vw, 24px) var(--body); color: var(--cream); margin: 14px 0 8px; }
.hero-about { max-width: 58ch; color: rgba(255,255,255,.86); margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid rgba(255,255,255,.25); font: 400 19px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.hero-facts strong { color: var(--gold); font-size: 20px; margin-right: 4px; }

.notice { background: var(--rust); color: #fff; text-align: center; padding: 12px 16px; font-weight: 600; }

/* Secciones */
.section { padding: 88px 0; }
h2 { font: 900 clamp(32px, 4.6vw, 52px)/1.05 var(--display); margin: 0 0 14px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 36px; }

/* Grilla de chivas */
.chivas-sec { background: var(--cream); }
.chiva-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.chiva-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.chiva-card a, .chiva-card.soon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 16px 20px; text-decoration: none; height: 100%; }
.chiva-card:not(.soon):hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c), 0 18px 30px -18px rgba(0,0,0,.45); }
.chiva-num { position: absolute; top: 12px; left: 14px; font: 400 17px var(--cond); color: var(--muted); letter-spacing: .1em; }
.chiva-logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.chiva-card strong { font: 900 20px/1.15 var(--display); }
.chiva-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chiva-go { margin-top: 12px; font: 400 18px var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.chiva-card.soon { background: transparent; border: 2px dashed #b9ab99; box-shadow: none; color: var(--muted); }
.chiva-card.soon .chiva-logo { background: var(--teal); padding: 22px; object-fit: contain; opacity: .55; box-shadow: none; }
.logo-fallback { display: grid; place-items: center; color: #fff; font: 900 36px var(--display); }

/* Menú */
.menu-sec { padding-bottom: 80px; background: var(--paper); }
.menu-head { position: sticky; top: var(--topbar); z-index: 30; background: var(--ink); color: #fff; padding-top: 18px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.6); }
.menu-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.menu-head h2 { font-size: 30px; margin: 0; }
.search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 16px; flex: 1 1 260px; max-width: 420px; }
.search svg { width: 18px; height: 18px; fill: rgba(255,255,255,.7); flex: none; }
.search input { all: unset; flex: 1; padding: 11px 0; color: #fff; font: 15px var(--body); }
.search input::placeholder { color: rgba(255,255,255,.55); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px max(16px, calc((100% - 1160px) / 2)) 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font: 400 18px var(--cond); letter-spacing: .04em; white-space: nowrap; transition: background .15s; }
.tab:hover { background: rgba(255,255,255,.16); }
.tab.active { background: var(--gold); color: var(--ink); }
.tab-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; font-size: 14px; }

.chiva { padding-top: 56px; }
.chiva-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 3px solid var(--c); }
.chiva-head-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.chiva-head-num { margin: 0; font: 400 17px var(--cond); text-transform: uppercase; letter-spacing: .18em; color: var(--c); }
.chiva-head h3 { font: 900 clamp(30px, 4vw, 42px)/1.05 var(--display); margin: 2px 0; }
.chiva-head-sub { margin: 0; color: var(--muted); }
.chiva-cover { width: 100%; border-radius: var(--radius); margin-top: 20px; aspect-ratio: 4 / 1; object-fit: cover; }
.chiva-desc { max-width: 70ch; color: var(--muted); margin: 18px 0 0; }
.chiva-notice { background: #fff4dc; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; margin: 18px 0 0; }
.dish-photos { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.dish-photos figure { margin: 0; }
.dish-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.dish-photos figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px 56px; margin-top: 18px; }
.cat { padding-top: 22px; }
.cat-wide { grid-column: 1 / -1; }
.cat h4 { font: 900 24px var(--display); color: var(--teal); margin: 0 0 4px; }
.cat-note { margin: 0 0 8px; color: var(--rust); font: 400 17px var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.items { list-style: none; padding: 0; margin: 8px 0 0; }
.item { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font: 400 23px/1.15 var(--cond); letter-spacing: .02em; }
.dots { flex: 1; border-bottom: 2px dotted #c4b6a4; transform: translateY(-4px); min-width: 16px; }
.item-price { font: 900 18px var(--display); color: var(--teal-2); white-space: nowrap; }
.item-desc { margin: 2px 0 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.item.off .item-name, .item.off .item-desc { opacity: .5; text-decoration: line-through; }
.tag-off { font: 400 15px var(--cond); text-transform: uppercase; letter-spacing: .08em; background: #e9dfd2; color: var(--rust); padding: 3px 8px; border-radius: 6px; margin-left: 8px; white-space: nowrap; }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--rose); color: var(--ink); font: 400 20px var(--cond); padding: 6px 16px; border-radius: 999px; }
.chips li.off { opacity: .4; text-decoration: line-through; }
.table-scroll { overflow-x: auto; margin-top: 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th, .price-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid #eee5da; }
.price-table thead th { font: 400 17px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--c); }
.price-table th[scope=row], .price-table thead th:first-child { text-align: left; }
.price-table th[scope=row] { font: 400 21px var(--cond); }
.price-table td { font: 700 16px var(--display); color: var(--teal-2); }
.price-table tr:last-child > * { border-bottom: 0; }
.price-table tr.off { opacity: .5; }
.loading, .empty { padding: 40px 0; text-align: center; color: var(--muted); }
.price-note { margin-top: 48px; color: var(--muted); font-size: 14px; text-align: center; }

/* Eventos */
.events-sec { background: var(--ink); color: var(--cream); }
.events-sec .lead { color: rgba(240,232,222,.75); }
.events-sec .kicker { color: var(--gold); }
.events-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.events-photo { margin: 0; }
.events-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.events { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.event { display: flex; gap: 14px; background: rgba(255,255,255,.06); border-radius: 14px; padding: 16px; }
.event img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.event h3 { font: 900 21px var(--display); margin: 0 0 4px; color: #fff; }
.event p { margin: 0; color: rgba(240,232,222,.8); font-size: 15px; }
.event-when { color: var(--gold) !important; font: 400 17px var(--cond) !important; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px !important; }
.events-sec .btn-dark { background: var(--gold); color: var(--ink); }

/* Visítanos */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.facts { margin: 28px 0; display: grid; gap: 18px; }
.facts dt { font: 400 17px var(--cond); text-transform: uppercase; letter-spacing: .14em; color: var(--rust); }
.facts dd { margin: 2px 0 0; font-size: 18px; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.social:hover { background: var(--ink); color: var(--cream); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--cream); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.footer { background: #111a1a; color: rgba(240,232,222,.8); padding: 48px 0 90px; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 6px; }
.footer img { height: 56px; width: auto; margin-bottom: 8px; }
.footer p { margin: 0; font: 400 19px var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.footer .small { font: 13px var(--body); letter-spacing: 0; text-transform: none; opacity: .7; }

.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 860px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .events-grid, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  :root { --topbar: 62px; }
  .brand img { height: 40px; }
  .btn-wa span { display: none; }
  .btn-wa { padding: 10px; }
  .chiva-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .chiva-logo { width: 78px; height: 78px; }
  .chiva-card strong { font-size: 17px; }
  .chiva-sub { font-size: 13px; }
  .chiva-head-logo { width: 64px; height: 64px; }
  .chiva-cover { border-radius: 12px; }
  .menu-head h2 { display: none; }
  .search { max-width: none; }
  .item-name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
