
:root{
  --bb-green:#2FA19E;
  --bb-dark:#0f172a;
}
.section{ padding: clamp(24px, 5vw, 56px) 16px; }
#map{
  width: 100%;
  height: min(70vh, 680px);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}
.filtros{ display:grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 768px){ .filtros{ grid-template-columns: 1fr; } }
.filtros select, .filtros input{ padding: 10px 12px; border:1px solid #e5e7eb; border-radius: 10px; font-size: 15px; }
.resultados{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.card{ border:1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.card h4{ margin:0 0 8px 0; font-size: 18px; color: var(--bb-dark); }
.card p{ margin: 6px 0; color:#374151; font-size: 14px;}
.btn-row{ display:flex; gap:10px; margin-top:10px; flex-wrap: wrap; }
.btn{ display:inline-block; padding:10px 12px; border-radius: 10px; text-decoration:none; font-weight:600; border:1px solid transparent; }
.btn-map{ background:#fff; border-color:#e5e7eb;}
.btn-wa{ background:var(--bb-green); color:#fff;}
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 6px;}
.badge{ font-size: 12px; background:#f1f5f9; padding:4px 8px; border-radius: 999px; color:#0f172a;}
.leaflet-div-icon.bb-marker{ background: transparent; border: none; }
.bb-pin{ width:32px; height:32px; background-size: cover; background-position:center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sticky-filtros{ position: sticky; top: 8px; z-index: 500; background: #fff; padding: 8px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.06); }


/* ===== Sticky Header ===== */
.bb-header{
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .2s ease;
}
.bb-header.scrolled{ box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.bb-header .brand{ display:flex; align-items:center; gap:10px; font-weight:800; color:#0f172a; text-decoration:none; }
.bb-header .brand img{ display:block; border-radius:6px; }
.bb-header .nav{ display:flex; gap:12px; align-items:center; }
.bb-header .nav a{ text-decoration:none; padding:8px 10px; border-radius:10px; color:#0f172a; font-weight:600; }
.bb-header .nav a[aria-current="page"]{ background:#f1f5f9; }
.bb-header .nav .wa-cta{ background: var(--bb-green); color:#fff; }
.bb-header .menu-toggle{ display:none; background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:8px 10px; }

@media (max-width: 800px){
  .bb-header{ grid-template-columns: auto auto 1fr; }
  .bb-header .menu-toggle{ display:block; }
  .bb-header .nav{ display:none; }
  .bb-header .nav.open{ display:flex; flex-direction: column; position:absolute; top:56px; left:0; right:0; background:#fff; padding:8px 12px; border-bottom:1px solid #e5e7eb; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
}

/* ===== Botón "Ir arriba" ===== */
.to-top{
  position: fixed; right: 16px; bottom: 16px; z-index: 999;
  width:44px; height:44px; border-radius:999px; border:1px solid #e5e7eb; background:#fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08); font-size: 18px; cursor:pointer;
  display:none; align-items:center; justify-content:center;
}
.to-top.show{ display:flex; }
