/* ==========================================================================
   Cookies: banner, panel de configuración y mapa bloqueado (assets/consent.js)
   ========================================================================== */
.rxk-banner, .rxk-overlay, .rxk-map { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1c1c17; }

.rxk-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 95;
  width: min(460px, calc(100vw - 48px));
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ddd8ce;
  box-shadow: 0 30px 70px -28px rgba(20, 20, 22, .55);
  animation: rxk-up .35s cubic-bezier(.2, .7, .2, 1);
}
.rxk-banner[hidden] { display: none; }
@keyframes rxk-up { from { opacity: 0; transform: translateY(16px); } }
.rxk-banner::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #7b5827, #e5a93c);
}
.rxk-banner-text strong { display: block; font: 500 19px/1.3 "Noto Serif", Georgia, serif; margin-bottom: 6px; }
.rxk-banner-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #45474a; }
.rxk-banner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rxk-banner-btns .rxk-btn { flex: 1 1 auto; }

.rxk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 13px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.rxk-btn:focus-visible { outline: 2px solid #e5a93c; outline-offset: 2px; }
.rxk-btn-dark { background: #141416; color: #fdf9f1; }
.rxk-btn-dark:hover { background: #2a2b2e; }
.rxk-btn-line { background: #fff; color: #141416; border-color: #141416; }
.rxk-btn-line:hover { background: #f6f2ea; }
.rxk-btn-ghost { background: #f3efe7; color: #141416; }
.rxk-btn-ghost:hover { background: #e9e3d6; }

/* panel */
html.rxk-lock { overflow: hidden; }
.rxk-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 14, 16, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.rxk-overlay[hidden] { display: none; }
.rxk-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: #fdf9f1;
  border: 1px solid #ddd8ce;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  animation: rxk-up .3s cubic-bezier(.2, .7, .2, 1);
}
.rxk-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rxk-dialog-head h2 { margin: 0; font: 500 22px/1.25 "Noto Serif", Georgia, serif; color: #141416; }
.rxk-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd8ce; background: #fff; display: grid; place-items: center; cursor: pointer; color: #141416; }
.rxk-x:hover { background: #f3efe7; }
.rxk-x:focus-visible { outline: 2px solid #e5a93c; outline-offset: 2px; }
.rxk-intro { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.55; color: #45474a; }
.rxk-cat { padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; background: #fff; border: 1px solid #e6e0d4; }
.rxk-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rxk-cat-head strong { font-size: 15px; }
.rxk-cat p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #5a5b5e; }
.rxk-always { font-size: 12px; font-weight: 600; color: #7b5827; }
.rxk-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 0;
  background: #c9c4ba;
  cursor: pointer;
  transition: background .2s ease;
}
.rxk-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.rxk-switch[aria-checked="true"] { background: #7b5827; }
.rxk-switch[aria-checked="true"] span { transform: translateX(20px); }
.rxk-switch:focus-visible { outline: 2px solid #e5a93c; outline-offset: 2px; }
.rxk-dialog-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rxk-dialog-btns .rxk-btn { flex: 1 1 auto; }

/* mapa bloqueado */
.rxk-map {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(123, 88, 39, .07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(123, 88, 39, .07) 1px, transparent 1px) 0 0 / 26px 26px,
    #f7f3eb;
}
.rxk-map-in { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rxk-map-in .material-symbols-outlined { font-size: 40px; color: #7b5827; }
.rxk-map-in strong { font: 500 19px/1.3 "Noto Serif", Georgia, serif; }
.rxk-map-in p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #45474a; }
.rxk-map-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

@media (max-width: 767px) {
  .rxk-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 16px 16px 14px; }
  .rxk-banner-btns .rxk-btn { flex: 1 1 30%; padding: 9px 10px; }
  html.rxk-banner-on .rx-bar { visibility: hidden; }
  .rxk-dialog { padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rxk-banner, .rxk-dialog { animation: none; }
}
