/* contacto.vtm.news — cookies.css
 * Banner GDPR de gestión de consentimiento.
 * Overlay inferior + modal de personalización. Independiente de base.css
 * para que pueda incluirse en cualquier landing.
 */

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #2f2f2f;
  color: #fff;
  padding: 18px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  transform: translateY(110%);
  transition: transform .35s ease-out;
}
.cc-banner.cc-visible { transform: translateY(0); }

.cc-banner .cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cc-banner .cc-text { flex: 1 1 380px; min-width: 0; }
.cc-banner .cc-text p { margin: 0; }
.cc-banner a {
  color: #f5b800;
  text-decoration: underline;
}

.cc-banner .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #fff;
  transition: background .15s, color .15s;
}
.cc-btn--accept {
  background: #f5b800;
  color: #2f2f2f;
}
.cc-btn--accept:hover { background: #d9a300; }
.cc-btn--reject {
  border-color: #777;
}
.cc-btn--reject:hover { background: rgba(255,255,255,0.08); }
.cc-btn--custom {
  border-color: #f5b800;
  color: #f5b800;
}
.cc-btn--custom:hover { background: rgba(245,184,0,0.12); }

/* ── MODAL ───────────────────────────────────────────────────────── */
.cc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-modal.cc-open { display: flex; }

.cc-modal-box {
  background: #fff;
  color: #2f2f2f;
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.cc-modal-box h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #3f3f3f;
}
.cc-modal-box p { margin: 0 0 18px; font-size: 0.95rem; }

.cc-category {
  border: 1px solid #e3e0d8;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fafaf7;
}
.cc-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cc-category-head strong {
  color: #3f3f3f;
  font-size: 0.98rem;
}
.cc-category-desc {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #6b6a64;
}

/* Toggle switch */
.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;
  cursor: pointer;
  inset: 0;
  background: #c5c2b8;
  border-radius: 24px;
  transition: background .2s;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cc-switch input:checked + .cc-slider { background: #f5b800; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider {
  background: #6b6a64;
  cursor: not-allowed;
  opacity: 0.7;
}

.cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 540px) {
  .cc-banner { font-size: 0.88rem; padding: 14px; }
  .cc-banner .cc-actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; }
  .cc-modal-box { padding: 22px 18px; }
  .cc-modal-actions { justify-content: stretch; }
  .cc-modal-actions .cc-btn { flex: 1; }
}
