/* ============================================================
   Casa Bela — Resto Bar · El Torno
   Identidad 2026: fondo claro, líneas finas, dorado tostado.
   Del logo: marrón dorado #B98A2F · madera #8F6A1F · crema.
   ============================================================ */
:root {
  --bg: #FAF7F1;
  --bg-alt: #F3EEE2;
  --surface: #FFFFFF;
  --ink: #2B2118;
  --ink-soft: #6F6053;
  --line: #E6DECC;
  --line-strong: #CBBD9F;
  --brand: #B98A2F;
  --brand-deep: #8F6A1F;
  --brand-soft: #F6EED8;
  --terra: #C96F4A;
  --terra-deep: #A9552F;
  --green: #4C7A5C;
  --red: #B3453E;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 33, 24, 0.07);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }

.main-content {
  flex: 1;
  padding: 24px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

#payment-mode {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: all .18s ease;
  font-family: var(--font-body);
}

.nav-link:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }

.nav-link.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--line-strong);
}

.nav-link.cta {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.nav-link.cta:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero-banner {
  text-align: center;
  padding: 56px 20px 46px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.hero-banner .eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}

.hero-banner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 12px;
}

.hero-banner h2 em { font-style: italic; color: var(--brand-deep); }

.hero-banner p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.hero-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
}

.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink-soft); }

.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* ---------- Búsqueda ---------- */
.search-filters {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.search-filters input,
.search-filters select {
  flex: 1;
  padding: 11px 16px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
  transition: border-color .18s;
}

.search-filters input:focus,
.search-filters select:focus { border-color: var(--brand); }

/* ---------- Eventos ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.event-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-info { padding: 18px 18px 20px; }

.event-info h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-date-location {
  font-size: .84rem;
  color: var(--terra);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.event-info p { color: var(--ink-soft); font-size: .92rem; }

.condition {
  display: inline-block;
  font-size: .74rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 4px 4px 0 0;
}

.presale-price {
  font-weight: 700;
  color: var(--terra);
  font-size: 1.05rem;
}

/* ---------- Detalle de evento ---------- */
.event-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.event-detail-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.back-btn {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .18s;
}
.back-btn:hover { border-color: var(--brand); color: var(--brand-deep); }

.event-detail-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.event-detail-content img { border-radius: 10px; margin-bottom: 18px; border: 1px solid var(--line); }

.order-details { margin-top: 14px; }
.order-details h4 {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.ticket-preview, .placeholder-ticket {
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Sectores y combos ---------- */
.seat-map-section, .sectors-section, .combos-section { margin-top: 34px; }

.seat-map-section h3, .sectors-section h3, .combos-section h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.sectors-grid, .combos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.sector-card, .combo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .18s, box-shadow .18s;
}

.sector-card:hover, .combo-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }

.sector-card h4, .combo-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.select-sector-btn, .add-combo-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s;
}

.select-sector-btn:hover, .add-combo-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Carrito ---------- */
.cart-items { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .93rem;
}

.remove-btn {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--red);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .18s;
}
.remove-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.checkout-btn { width: 100%; }

/* ---------- Checkout / pago ---------- */
.payment-container, .order-lookup-container, .confirmation-container {
  max-width: 640px;
  margin: 0 auto;
}

.payment-methods { margin: 18px 0; }

.payment-options { display: grid; gap: 10px; }

.payment-option {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: .95rem;
  transition: border-color .18s, background .18s;
}

.payment-option:hover { border-color: var(--brand); }

.qr-code-placeholder, .payment-placeholder-content, .placeholder-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.confirmation-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.confirmation-message { color: var(--ink-soft); margin-top: 10px; }

/* ---------- Tienda / productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-image { width: 100%; height: 170px; object-fit: cover; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); }

.product-stock {
  display: inline-block;
  font-size: .74rem;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 6px;
}

.add-to-cart-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  font-weight: 600;
  font-size: .9rem;
  color: #fff;
  background: var(--terra);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s;
}
.add-to-cart-btn:hover { background: var(--terra-deep); }

/* ---------- Cuenta (login / registro) ---------- */
.account-box, .account-logged {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.account-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-box .sub { color: var(--ink-soft); font-size: .88rem; margin-bottom: 14px; }

.account-box input {
  width: 100%;
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .18s;
}

.account-box input:focus { border-color: var(--brand); background: var(--surface); }

.account-box .btn { width: 100%; margin-top: 4px; }

.account-msg { font-size: .86rem; margin-top: 8px; min-height: 1em; }
.account-msg.ok { color: var(--green); }
.account-msg.error { color: var(--red); }

.customer-info-box {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .92rem;
  margin-bottom: 16px;
}

/* ---------- Reservas: plano de mesas ---------- */
.res-intro { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.res-intro h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.res-intro p { color: var(--ink-soft); margin-top: 6px; }

.res-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}

.plan-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

#plan-svg { width: 100%; height: auto; display: block; }

.plan-stage {
  fill: var(--brand-soft);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.plan-floor { fill: #FDFBF6; stroke: var(--line-strong); stroke-width: 1; }
.plan-wall { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; }
.plan-label {
  font-family: var(--font-body);
  font-size: 15px;
  fill: var(--ink-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.g-mesa { cursor: pointer; }
.g-mesa .hot {
  fill: rgba(185, 138, 47, 0.12);
  stroke: var(--brand);
  stroke-width: 1.4;
  transition: all .18s ease;
}
.g-mesa .num {
  font-size: 13px;
  font-weight: 700;
  fill: var(--brand-deep);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.g-mesa:hover .hot { fill: rgba(185, 138, 47, 0.28); transform: scale(1.06); }
.g-mesa.selected .hot { fill: var(--terra); stroke: var(--terra-deep); }
.g-mesa.selected .num { fill: #fff; }
.g-mesa.taken { cursor: not-allowed; }
.g-mesa.taken .hot { fill: rgba(179, 69, 62, 0.16); stroke: var(--red); stroke-dasharray: 4 3; }
.g-mesa.taken .num { fill: var(--red); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--ink-soft);
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -2px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 86px;
}

.panel h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.panel .sub { color: var(--ink-soft); font-size: .85rem; margin: 4px 0 16px; }

.mesa-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.mesa-pick .mn { font-size: 1.5rem; font-weight: 700; color: var(--brand-deep); }
.mesa-pick .mi { font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }

.panel .fld { margin-bottom: 12px; }
.panel .fld label {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.panel .fld input,
.panel .fld select {
  width: 100%;
  padding: 10px 13px;
  font-size: .93rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .18s;
}

.panel .fld input:focus, .panel .fld select:focus { border-color: var(--brand); background: var(--surface); }

.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#res-msg { margin-top: 12px; font-size: .9rem; }
#res-msg.ok { color: var(--green); }
#res-msg.err { color: var(--red); }

/* ---------- Cómo llegar ---------- */
.map-section { margin-top: 54px; }

.map-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-info { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }

.map-info .eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

.map-info h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 12px; }

.map-info address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.map-frame { min-height: 320px; border-left: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
}

.footer .f-brand { height: 58px; margin: 0 auto 10px; }
.footer .f-links { display: flex; gap: 18px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.footer a { color: var(--brand-deep); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Burbuja de chat (Bela AI) ---------- */
.cb-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--terra);
  border: none;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 10px 26px rgba(43, 33, 24, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  animation: cbPulse 2.8s infinite;
}

.cb-btn:hover { transform: scale(1.07); }

@keyframes cbPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(43,33,24,.25), 0 0 0 0 rgba(201,111,74,.35); }
  50% { box-shadow: 0 10px 26px rgba(43,33,24,.25), 0 0 0 13px rgba(201,111,74,0); }
}

.cb-btn svg { width: 27px; height: 27px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.cb-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: min(360px, calc(100vw - 28px));
  height: min(500px, 68vh);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(43, 33, 24, 0.22);
  font-family: var(--font-body);
}

.cb-panel.open { display: flex; animation: cbUp .26s ease; }
@keyframes cbUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cb-head {
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
}

.cb-head img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.cb-head b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); display: block; line-height: 1.15; }
.cb-head small { color: var(--ink-soft); font-size: .72rem; letter-spacing: .06em; }
.cb-head .cb-status { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; }

.cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg);
}

.cb-body::-webkit-scrollbar { width: 5px; }
.cb-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.cb-msg {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.5;
  white-space: pre-line;
}

.cb-msg.bot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.cb-msg.user {
  background: var(--terra);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.cb-msg a { color: var(--terra-deep); font-weight: 600; }
.cb-msg.bot b { color: var(--brand-deep); }

.cb-typing { display: flex; gap: 4px; padding: 11px 13px; align-self: flex-start; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: cbB 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .18s; }
.cb-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes cbB { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.cb-chips {
  padding: 9px 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cb-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--brand-deep);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-body);
}

.cb-chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.cb-input { display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.cb-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .86rem;
  outline: none;
}
.cb-input input::placeholder { color: var(--ink-soft); opacity: .7; }
.cb-input button { background: none; border: none; color: var(--terra); padding: 0 16px; cursor: pointer; font-size: 1.15rem; }

/* ---------- Toast / mensajes sueltos ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: .88rem;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 10000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .res-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .map-card { grid-template-columns: 1fr; }
  .map-frame { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .nav-container { flex-direction: column; gap: 8px; padding: 10px 12px; }
  .nav-links { justify-content: center; }
  .logo { height: 46px; }
  .main-content { padding: 16px 14px 90px; }
  .hero-banner { padding: 36px 14px 32px; }
  .search-filters { flex-direction: column; }
  .events-grid { grid-template-columns: 1fr; }
  .cb-btn { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .cb-panel { right: 10px; left: 10px; width: auto; bottom: 80px; height: min(480px, 66vh); }
  .panel .row2 { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}
