/* VIANIA · Banner y panel de cookies (compartido por toda la web).
   Cada página puede subir el banner por encima de su barra fija con --vc-bottom. */
.vc-banner, .vc-panel, .vc-btn {
  --vc-ink: #221d1f;
  --vc-muted: #5f5659;
  --vc-dark: #101010;
  --vc-gold: #D4AF37;
  --vc-line: #e7e1dc;
  font-family: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--vc-ink);
  -webkit-font-smoothing: antialiased;
}
.vc-banner[hidden] { display: none !important; }
.vc-banner {
  position: fixed; left: 12px; right: 12px; z-index: 1000;
  bottom: calc(var(--vc-bottom, 12px) + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; box-sizing: border-box;
  max-height: calc(100vh - var(--vc-bottom, 12px) - 24px); overflow-y: auto;
  background: #fff; border: 1px solid var(--vc-line); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  padding: 16px 18px; display: grid; gap: 10px;
  font-size: .88rem; line-height: 1.5; text-align: left;
}
.vc-titulo { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.vc-texto { margin: 0; }
.vc-banner a, .vc-panel a { color: var(--vc-ink); text-decoration: underline; text-decoration-color: var(--vc-gold); text-underline-offset: 3px; }
.vc-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-acciones .vc-sec { grid-column: 1 / -1; }
.vc-btn {
  min-height: 44px; margin: 0; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--vc-dark); background: var(--vc-dark); color: #fff;
  font: 500 .88rem/1.2 "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif; letter-spacing: .01em;
}
.vc-btn:hover { background: #2a2729; border-color: #2a2729; }
.vc-btn.vc-sec { background: #fff; color: var(--vc-dark); }
.vc-btn.vc-sec:hover { background: #f3f1ef; }
.vc-btn:focus-visible, .vc-cerrar:focus-visible, .vc-switch:focus-visible, .vc-banner a:focus-visible, .vc-panel a:focus-visible {
  outline: 3px solid var(--vc-gold); outline-offset: 2px;
}
@media (max-width: 639px) {
  .vc-banner { padding: 14px 16px; gap: 8px; font-size: .84rem; line-height: 1.45; }
  .vc-titulo { font-size: 1.1rem; }
  .vc-banner .vc-btn { min-height: 44px; padding: 8px 10px; font-size: .84rem; }
}
@media (min-width: 640px) {
  .vc-banner { padding: 18px 22px; }
  .vc-acciones { grid-template-columns: 1fr 1fr 1fr; }
  .vc-acciones .vc-sec { grid-column: auto; }
}
/* En escritorio, a un lado para no tapar el contenido principal */
@media (min-width: 980px) {
  .vc-banner { left: auto; right: 24px; margin: 0; max-width: 430px; }
  .vc-banner .vc-acciones { grid-template-columns: 1fr 1fr; }
  .vc-banner .vc-acciones .vc-sec { grid-column: 1 / -1; }
}

/* Panel de configuración */
.vc-panel {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-sizing: border-box;
  margin: auto; padding: 20px 20px 18px; border: 0; border-radius: 18px; background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow-y: auto; font-size: .9rem; line-height: 1.5;
}
.vc-panel::backdrop { background: rgba(16, 16, 16, .55); }

.vc-panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.vc-panel h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.vc-cerrar { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--vc-line); background: #fff; color: var(--vc-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vc-cat { border-top: 1px solid var(--vc-line); padding: 12px 0 4px; }
.vc-cat:first-of-type { margin-top: 12px; }
.vc-cat-cab { display: flex; align-items: center; gap: 10px; }
.vc-cat-cab label { flex: 1; font-weight: 500; font-size: .98rem; cursor: pointer; }
.vc-siempre { font-size: .78rem; color: var(--vc-muted); }
.vc-cat-texto { margin: 4px 0 8px; color: var(--vc-muted); font-size: .85rem; }
.vc-cat-texto em { font-style: normal; color: var(--vc-ink); }
.vc-acciones-panel { margin-top: 14px; }

/* Interruptor accesible (checkbox con role="switch") */
.vc-switch {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 48px; height: 28px; border-radius: 999px; background: #c9c1bd; position: relative; transition: background .2s;
}
.vc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.vc-switch:checked { background: var(--vc-dark); }
.vc-switch:checked::after { transform: translateX(20px); background: var(--vc-gold); }
.vc-switch:disabled { cursor: not-allowed; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .vc-switch, .vc-switch::after { transition: none; } }

/* Enlace permanente «Configurar cookies» en los pies */
.vc-abrir { background: none; border: 0; padding: 12px 4px; margin: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
