/* Estilos del gestor de consentimiento de cookies — CSS a mano, sin utilidades
   de framework. Usa tokens del sitio si existen (--accent, --ink, --paper…);
   los valores tras la coma son el fallback. Adaptado de KONFYANS. */

.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: var(--paper, #fff);
  border-top: 1px solid var(--line, #d1d5d7);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
  padding: 20px clamp(16px, 4vw, 40px);
  display: none;
}
.cc-banner.open { display: block; }
.cc-banner-inner {
  max-width: var(--container, 1280px); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.cc-banner-text { flex: 1 1 420px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft, #4b5563); margin: 0; }
.cc-banner-text a { color: var(--accent, #2a7971); font-weight: 600; text-decoration: underline; }
.cc-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cc-btn {
  font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.cc-btn-primary { background: var(--accent, #2a7971); color: #fff; }
.cc-btn-primary:hover { opacity: .88; }
.cc-btn-outline { background: transparent; color: var(--accent, #2a7971); border-color: var(--accent, #2a7971); }
.cc-btn-outline:hover { background: rgba(0, 0, 0, .04); }
.cc-btn-ghost { background: transparent; color: var(--ink-soft, #4b5563); border-color: var(--line, #d1d5d7); }
.cc-btn-ghost:hover { background: rgba(0, 0, 0, .04); }

.cc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 17, 21, 0.55); z-index: 10001;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.cc-modal-backdrop.open { display: flex; }
.cc-modal { background: #fff; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 12px; }
.cc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; }
.cc-modal-header h2 { font-size: 21px; }
.cc-modal-close { background: none; border: none; cursor: pointer; color: var(--ink-soft, #4b5563); line-height: 1; padding: 4px; font-size: 22px; }
.cc-modal-intro { padding: 12px 24px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft, #4b5563); }
.cc-modal-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.cc-cat { border-top: 1px solid var(--line, #e2e4e5); padding: 16px 0; }
.cc-cat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-header strong { font-size: 15px; }
.cc-cat p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #4b5563); }
.cc-cat-locked { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint, #6b7280); }
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; background-color: var(--line, #d1d5d7); border-radius: 999px; cursor: pointer; transition: background-color .2s ease; }
.cc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background-color: #fff; border-radius: 999px; transition: transform .2s ease; }
.cc-switch input:checked + .cc-slider { background-color: var(--accent, #2a7971); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-modal-footer { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 24px 24px; }
.cc-modal-footer .cc-btn { flex: 1 1 auto; text-align: center; }

.cc-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 9998;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--ink, #14171a); color: #fff; border: none;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cc-fab.visible { display: flex; }
.cc-fab:hover { transform: scale(1.08); }

@media (max-width: 640px) {
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; }
}
