/* Taberna La Cava — aviso y panel de cookies.
   Ajusta las variables a la paleta real de la web si difieren. */
.lc-cookie-banner, .lc-cookie-modal {
  --cc-bg: #1c1715;
  --cc-text: #f4ead9;
  --cc-muted: #cdbba8;
  --cc-accent: #b08d4a;
  --cc-btn-bg: #f4ead9;
  --cc-btn-text: #1c1715;
  --cc-border: rgba(243, 233, 220, .22);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cc-text);
  line-height: 1.5;
}
.lc-cookie-banner *, .lc-cookie-modal * { box-sizing: border-box; }
.lc-cookie-banner[hidden], .lc-cookie-modal[hidden] { display: none !important; }

/* Aviso: barra inferior discreta que no bloquea la navegación */
.lc-cookie-banner {
  position: fixed; z-index: 9998;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 980px; margin: 0 auto;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-top: 3px solid var(--cc-accent);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 16px 18px;
  display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap;
  font-size: .95rem;
}
.lc-cookie-banner p { margin: 0; flex: 1 1 360px; color: var(--cc-text); }
.lc-cookie-banner a { color: var(--cc-text); text-decoration: underline; }
.lc-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 1 auto; }

/* Aceptar y Rechazar: mismo estilo, mismo tamaño, misma visibilidad */
.lc-cc-btn {
  font: inherit; font-size: .93rem; font-weight: 600;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--cc-btn-bg);
  background: var(--cc-btn-bg); color: var(--cc-btn-text);
}
.lc-cc-btn--secondary { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }
.lc-cc-btn:hover { filter: brightness(.94); }
.lc-cc-btn:focus-visible, .lc-cookie-modal input:focus-visible + .lc-cc-switch {
  outline: 3px solid var(--cc-accent); outline-offset: 2px;
}
@media (max-width: 560px) {
  .lc-cookie-actions { width: 100%; }
  .lc-cc-btn--main { flex: 1 1 calc(50% - 4px); }
  .lc-cc-btn--secondary { flex: 1 1 100%; }
}

/* Panel de configuración */
.lc-cookie-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 12, 8, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lc-cookie-dialog {
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-top: 3px solid var(--cc-accent);
  border-radius: 14px;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px 22px 18px;
}
.lc-cookie-dialog h2 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: 1.45rem; margin: 0 0 .5rem; color: var(--cc-text);
}
.lc-cookie-dialog > p { margin: 0 0 1rem; color: var(--cc-muted); font-size: .95rem; }
.lc-cookie-dialog a { color: var(--cc-text); }
.lc-cc-cat { border-top: 1px solid var(--cc-border); padding: 14px 0; }
.lc-cc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lc-cc-cat__title { font-weight: 600; }
.lc-cc-cat p { margin: .35rem 0 0; font-size: .9rem; color: var(--cc-muted); }
.lc-cc-badge { font-size: .8rem; color: var(--cc-accent); white-space: nowrap; }
.lc-cc-empty { font-size: .9rem; color: var(--cc-muted); border-top: 1px solid var(--cc-border); padding: 14px 0; margin: 0; }

/* Interruptor accesible (checkbox real) */
.lc-cc-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.lc-cc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lc-cc-switch { width: 46px; height: 26px; border-radius: 999px; background: #6b574a; position: relative; transition: background .15s; }
.lc-cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lc-cc-toggle input:checked + .lc-cc-switch { background: var(--cc-accent); }
.lc-cc-toggle input:checked + .lc-cc-switch::after { transform: translateX(20px); }

.lc-cc-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-cc-modal-actions .lc-cc-btn { flex: 1 1 140px; }

/* Contenido externo bloqueado (p. ej. un mapa incrustado) */
.lc-cc-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px 16px; min-height: 220px;
  background: #efe4d4; color: #2b1d16; border-radius: 10px; font-size: .95rem;
}
.lc-cc-placeholder .lc-cc-btn { background: #9a3b26; border-color: #9a3b26; color: #fff; }

@media (prefers-reduced-motion: reduce) { .lc-cc-switch, .lc-cc-switch::after { transition: none; } }
