/* Cookie Consent UI — moderno y conforme LSSI/GDPR (ES) */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 10000;
}

.cc-overlay.cc-open {
  display: block;
}

.cc-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 24px;
}

.cc-modal h3 {
  margin: 0 0 10px 0;
  color: #263238;
  font-weight: 600;
}

.cc-modal p.desc {
  margin: 0 0 16px 0;
  color: #546e7a;
}

.cc-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fa;
  border: 1px solid #eceff1;
  border-radius: 10px;
  padding: 12px 14px;
}

.cc-category .info {
  max-width: 75%;
}

.cc-category .title {
  color: #37474f;
  font-weight: 600;
}

.cc-category .note {
  font-size: 0.92rem;
  color: #607d8b;
}

/* Switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.cc-switch input { display: none; }

.cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cfd8dc;
  transition: 0.25s;
  border-radius: 999px;
}

.cc-slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: #fff;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cc-switch input:checked + .cc-slider { background: #26a69a; }
.cc-switch input:checked + .cc-slider:before { transform: translateX(22px); }
.cc-switch input:disabled + .cc-slider { background: #b0bec5; opacity: 0.8; }

.cc-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.cc-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.cc-btn.primary { background: #26a69a; color: #fff; }
.cc-btn.secondary { background: #eceff1; color: #263238; }
.cc-btn.ghost { background: transparent; color: #26a69a; }

/* Banner */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffffff;
  border: 1px solid #eceff1;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 16px;
  z-index: 9999;
  display: none;
}

.cc-banner.cc-show { display: block; }

.cc-banner .cc-text { color: #455a64; }
.cc-banner .cc-links a { color: #26a69a; font-weight: 600; text-decoration: none; }

.cc-banner .cc-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* Bloqueo de terceros */
.cc-blocked {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3e0;
  border: 1px dashed #ffb74d;
  color: #8d6e63;
  border-radius: 10px;
  padding: 8px 12px;
}

.cc-blocked .cc-enable {
  border: none;
  background: #26a69a;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}