/* ==========================================================
   Vínculo Digital — Banner de cookies (propio, ligero)
   AEPD 2022 conforme: 3 botones equivalentes (Rechazar / Configurar / Aceptar)
   ========================================================== */

.vc-banner,
.vc-modal-overlay {
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Banner inferior ---------- */
.vc-banner {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 9000;
  background: #1A1814;
  color: #fff;
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.vc-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.vc-banner-text {
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.vc-banner-text strong {
  color: #fff;
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.vc-banner-text a {
  color: #B89668;
  text-decoration: underline;
  text-decoration-color: rgba(184, 150, 106, 0.5);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.vc-banner-text a:hover {
  text-decoration-color: #B89668;
}

.vc-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Tres botones de mismo tamaño y peso visual = AEPD 2022 conforme */
.vc-btn {
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.4rem;
  border-radius: 2rem;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-width: 110px;
  text-align: center;
}

.vc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.vc-btn-primary {
  background: #B89668;
  border-color: #B89668;
  color: #1A1814;
  font-weight: 500;
}

.vc-btn-primary:hover {
  background: #C9A87C;
  border-color: #C9A87C;
}

@media (max-width: 760px) {
  .vc-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 1.2rem;
  }
  .vc-banner-actions { width: 100%; }
  .vc-btn { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; font-size: 0.78rem; }
}

/* ---------- Modal de configuración ---------- */
.vc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vc-modal-overlay.is-visible {
  display: flex;
  opacity: 1;
}

.vc-modal {
  background: #fff;
  color: #1A1814;
  border-radius: 1rem;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 2rem 2.2rem;
}

.vc-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.vc-modal-title em {
  color: #4A6741;
  font-style: italic;
}

.vc-modal-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5A5550;
  font-weight: 300;
  margin: 0 0 1.5rem;
}

.vc-cat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #EFE9DD;
}

.vc-cat:last-of-type { border-bottom: 1px solid #EFE9DD; margin-bottom: 1.5rem; }

.vc-cat-info { flex: 1; }

.vc-cat-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  color: #1A1814;
}

.vc-cat-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #5A5550;
  font-weight: 300;
  margin: 0;
}

/* Switch */
.vc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.vc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.vc-switch-slider {
  position: absolute;
  inset: 0;
  background: #c8cdc4;
  border-radius: 12px;
  transition: background 0.25s;
  cursor: pointer;
}

.vc-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.vc-switch input:checked + .vc-switch-slider {
  background: #4A6741;
}

.vc-switch input:checked + .vc-switch-slider::before {
  transform: translateX(18px);
}

.vc-switch input:disabled + .vc-switch-slider {
  background: #4A6741;
  opacity: 0.55;
  cursor: not-allowed;
}

.vc-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vc-modal-actions .vc-btn {
  border-color: rgba(26, 24, 20, 0.18);
  color: #1A1814;
}

.vc-modal-actions .vc-btn:hover {
  background: rgba(26, 24, 20, 0.05);
  border-color: rgba(26, 24, 20, 0.35);
}

.vc-modal-actions .vc-btn-primary {
  background: #4A6741;
  border-color: #4A6741;
  color: #fff;
}

.vc-modal-actions .vc-btn-primary:hover {
  background: #5A7752;
  border-color: #5A7752;
}

@media (max-width: 600px) {
  .vc-modal { padding: 1.5rem 1.3rem; }
  .vc-modal-actions { width: 100%; }
  .vc-modal-actions .vc-btn { flex: 1; min-width: 0; }
}
