/* VitalIA Agency — CMP banner styles */

#vitalia-cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 999999;
  background: #0a0a0a;
  color: #eaeaea;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  max-width: 980px;
  margin: 0 auto;
}
#vitalia-cookie-banner.vcb-in { transform: translateY(0); opacity: 1; }

.vcb-inner {
  display: flex; gap: 20px; align-items: center; padding: 18px 22px;
  flex-wrap: wrap;
}
.vcb-text { flex: 1 1 360px; min-width: 0; }
.vcb-text h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #fff;
  letter-spacing: .2px;
}
.vcb-text p { margin: 0; color: #c9c9c9; }
.vcb-text a { color: #d4b87a; text-decoration: underline; text-underline-offset: 3px; }
.vcb-text a:hover { color: #fff; }

.vcb-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; justify-content: flex-end;
  flex: 0 0 auto;
}

.vcb-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  font-family: inherit;
  letter-spacing: .15px;
}
.vcb-btn:active { transform: translateY(1px); }
.vcb-btn-ghost {
  background: transparent;
  color: #d4b87a;
  border-color: #3a3a3a;
}
.vcb-btn-ghost:hover { background: #1a1a1a; color: #fff; border-color: #555; }
.vcb-btn-primary {
  background: #c9a96e;
  color: #0a0a0a;
}
.vcb-btn-primary:hover { background: #d4b87a; color: #000; }

/* ---- Modal de preferencias ---- */
#vitalia-cookie-modal {
  position: fixed; inset: 0; z-index: 1000000;
  opacity: 0; transition: opacity .2s ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
#vitalia-cookie-modal.vcm-in { opacity: 1; }
.vcm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.vcm-card {
  position: relative;
  background: #0f0f0f;
  color: #eaeaea;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  max-width: 540px;
  width: calc(100% - 32px);
  margin: 60px auto;
  padding: 28px 26px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  font-size: 14.5px;
  line-height: 1.55;
}
.vcm-card h3 {
  margin: 0 0 6px; font-size: 19px; font-weight: 600; color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: .2px;
}
.vcm-lead { margin: 0 0 18px; color: #a9a9a9; font-size: 13.5px; }
.vcm-lead a { color: #d4b87a; }

.vcm-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; color: #888;
  font-size: 26px; line-height: 1; cursor: pointer;
  padding: 4px 10px;
}
.vcm-close:hover { color: #fff; }

.vcm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #1f1f1f;
}
.vcm-row:first-of-type { border-top: 1px solid #1f1f1f; }
.vcm-row strong { color: #fff; font-weight: 600; }
.vcm-muted { color: #8a8a8a; font-size: 13px; }
.vcm-row-disabled { opacity: .7; }

.vcm-pill {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.vcm-pill-on { background: rgba(201,169,110,.15); color: #d4b87a; border: 1px solid rgba(201,169,110,.35); }
.vcm-pill-off { background: #1a1a1a; color: #888; border: 1px solid #2a2a2a; }

/* Switch */
.vcm-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 46px; }
.vcm-switch input { opacity: 0; width: 0; height: 0; }
.vcm-switch span {
  position: absolute; cursor: pointer; inset: 0;
  background: #2a2a2a; border-radius: 999px; transition: background .2s ease;
}
.vcm-switch span::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s ease;
}
.vcm-switch input:checked + span { background: #c9a96e; }
.vcm-switch input:checked + span::before { transform: translateX(20px); }

.vcm-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #1f1f1f;
}

/* Responsive */
@media (max-width: 640px) {
  #vitalia-cookie-banner { left: 8px; right: 8px; bottom: 8px; border-radius: 12px; }
  .vcb-inner { padding: 16px; gap: 14px; }
  .vcb-actions { width: 100%; justify-content: stretch; }
  .vcb-actions .vcb-btn { flex: 1 1 auto; }
  .vcm-card { margin: 20px auto; padding: 22px 18px 18px; }
  .vcm-footer { flex-direction: column-reverse; }
  .vcm-footer .vcb-btn { width: 100%; }
}
