/* Banner de consentimiento de cookies propio (réplica del popup Cookiebot "popup-v2" de nocilla.es / colacao.es) */
#vcc-dialog, #vcc-dialog * { box-sizing: border-box; }

#vcc-dialog {
  --vcc-accent: #ff0000;
  --vcc-text: #141414;
  --vcc-line: #d6d6d6;
  --vcc-off: #141414;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483631;
  width: 900px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--vcc-text);
  border-radius: 8px;
  box-shadow: 0 32px 68px rgba(0, 0, 0, .3);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .1px;
  text-align: left;
  opacity: 0;
  transition: opacity .5s ease;
}
#vcc-dialog.vcc-visible { opacity: 1; }
#vcc-dialog[hidden] { display: none; }

#vcc-dialog button { font-family: inherit; cursor: pointer; }
#vcc-dialog a { color: var(--vcc-accent); text-decoration: underline; }

/* Cabecera */
.vcc-header {
  flex: none;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vcc-line);
}
.vcc-header img { height: 32px; width: auto; display: block; }

/* Pestañas */
.vcc-nav {
  flex: none;
  display: flex;
  border-bottom: 1px solid var(--vcc-line);
}
.vcc-tab {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 16px 8px 13px;
  font-size: 15px;
  font-weight: 600;
  color: var(--vcc-text);
}
.vcc-tab:hover { color: var(--vcc-accent); }
.vcc-tab[aria-selected="true"] { color: var(--vcc-accent); border-bottom-color: var(--vcc-accent); }

/* Cuerpo */
.vcc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.vcc-panel { padding: 20px; }
.vcc-panel[hidden] { display: none; }
#vcc-dialog:focus { outline: 0; }
#vcc-dialog .vcc-title {
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: .25px;
  color: var(--vcc-text); text-align: left; text-transform: none; margin: 0 0 8px; padding: 0;
}
.vcc-text { margin: 0; letter-spacing: .5px; line-height: 24px; }
.vcc-text + .vcc-text { margin-top: 12px; }

/* Interruptores */
.vcc-switch { position: relative; display: inline-block; width: 57px; height: 32px; flex: none; }
.vcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.vcc-switch input:disabled { cursor: not-allowed; }
.vcc-slider {
  position: absolute; inset: 0;
  background: var(--vcc-off);
  border-radius: 32px;
  transition: background-color .2s;
}
.vcc-slider::before {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  left: 4px; top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.vcc-switch input:checked + .vcc-slider { background: var(--vcc-accent); }
.vcc-switch input:checked + .vcc-slider::before { transform: translateX(25px); }
.vcc-switch input:disabled + .vcc-slider { opacity: .6; }
.vcc-switch input:focus-visible + .vcc-slider { outline: 2px solid var(--vcc-accent); outline-offset: 2px; }

/* Fila de categorías (pestaña Consentimiento) */
.vcc-levels {
  display: flex;
  border-top: 1px solid var(--vcc-line);
}
.vcc-level {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  font-weight: 600;
}
.vcc-levels[hidden] { display: none; }
.vcc-level + .vcc-level { border-left: 1px solid var(--vcc-line); }

/* Pestaña Detalles */
.vcc-cat { border-bottom: 1px solid var(--vcc-line); padding: 16px 0; }
.vcc-cat:first-child { padding-top: 0; }
.vcc-cat:last-child { border-bottom: 0; }
.vcc-cat-head { display: flex; align-items: center; gap: 12px; }
.vcc-cat-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--vcc-text);
  text-align: left;
}
.vcc-chevron {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 6px 4px 2px;
  transition: transform .2s;
}
.vcc-cat-toggle[aria-expanded="false"] .vcc-chevron { transform: rotate(-45deg); margin-bottom: 0; }
.vcc-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background: #d6d6d6;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}
.vcc-cat-body { padding: 8px 0 0 30px; font-size: 14px; }
.vcc-cat-body[hidden] { display: none; }
.vcc-cat-body p { margin: 0 0 8px; letter-spacing: .5px; line-height: 22px; }
.vcc-table-wrap { overflow-x: auto; }
.vcc-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #f7f7f7; border-radius: 4px; }
.vcc-table th, .vcc-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.vcc-table th { font-weight: 600; border-bottom: 1px solid var(--vcc-line); white-space: nowrap; }
.vcc-table tr + tr td { border-top: 1px solid #e8e8e8; }
.vcc-empty { font-style: italic; }

/* Botones */
.vcc-footer {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--vcc-line);
}
.vcc-btn {
  flex: 1;
  min-height: 52px;
  padding: 10px 16px;
  background: #fff;
  color: var(--vcc-text);
  border: 2px solid var(--vcc-accent);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s, color .15s;
}
.vcc-btn:hover, .vcc-btn:focus-visible { background: var(--vcc-accent); color: #fff; outline: 0; }

@media (max-width: 600px) {
  #vcc-dialog { font-size: 14px; }
  .vcc-header { padding: 12px 16px; }
  .vcc-tab { font-size: 14px; padding: 12px 4px 9px; }
  .vcc-panel { padding: 16px; }
  .vcc-levels { flex-wrap: wrap; }
  .vcc-level { flex: 1 1 50%; padding: 12px 8px; }
  .vcc-level + .vcc-level { border-left: 0; }
  .vcc-level:nth-child(even) { border-left: 1px solid var(--vcc-line); }
  .vcc-level:nth-child(n+3) { border-top: 1px solid var(--vcc-line); }
  .vcc-footer { flex-direction: column; padding: 12px 16px 16px; }
  .vcc-btn { min-height: 46px; }
  .vcc-cat-body { padding-left: 0; }
}
