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

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

#ccc-dialog button { font-family: inherit; cursor: pointer; }
/* Blindaje frente a style.css de colacao.es (p, label, h2, a, table con estilos propios) */
#ccc-dialog p, #ccc-dialog label, #ccc-dialog td, #ccc-dialog th, #ccc-dialog strong, #ccc-dialog button {
  font-family: sans-serif; color: var(--ccc-text); text-transform: none;
}
#ccc-dialog p { font-size: 15px; line-height: 24px; letter-spacing: .5px; margin: 0; padding: 0; font-weight: 400; }
#ccc-dialog .ccc-cat-body p { font-size: 14px; line-height: 22px; margin: 0 0 8px; }
#ccc-dialog label { font-size: 15px; line-height: 24px; margin: 0; }
#ccc-dialog .ccc-tab[aria-selected="true"], #ccc-dialog .ccc-tab:hover { color: var(--ccc-accent); }
#ccc-dialog .ccc-btn:hover, #ccc-dialog .ccc-btn:focus-visible { color: #fff; }
#ccc-dialog a { color: var(--ccc-accent); text-decoration: underline; }

/* Cabecera */
.ccc-header {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 22.5px;
  border-bottom: 1px solid var(--ccc-line);
}
.ccc-header img { height: 32px; width: 35px; display: block; }

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

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

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

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

/* Pestaña Detalles (categoría -> proveedores -> cookies, como Cookiebot) */
.ccc-cat { border-bottom: 1px solid var(--ccc-line); padding: 22.5px 0; }
.ccc-cat:first-child { padding-top: 0; }
.ccc-cat:last-child { border-bottom: 0; padding-bottom: 0; }
.ccc-cat-head { display: flex; align-items: center; gap: 12px; }
.ccc-cat-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ccc-text);
  text-align: left;
}
.ccc-cat-toggle .ccc-chevron { margin: 0 22px 4px 6px; }
.ccc-cat-toggle[aria-expanded="true"],
#ccc-dialog .ccc-prov-toggle[aria-expanded="true"] .ccc-prov-name { color: var(--ccc-accent); }
.ccc-chevron {
  flex: none;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
[aria-expanded="true"] > .ccc-chevron { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
.ccc-count {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 60px;
  background: var(--ccc-line);
  color: var(--ccc-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 14.4px;
  text-align: center;
  vertical-align: middle;
}
#ccc-dialog .ccc-cat-desc { padding: 15px 0 0 45px; letter-spacing: .1px; }
.ccc-cat-body { padding: 22.5px 0 0 40px; }
.ccc-cat-body[hidden], .ccc-prov-body[hidden] { display: none; }
#ccc-dialog .ccc-empty { font-style: italic; padding-left: 5px; }

.ccc-prov {
  border: 1px solid var(--ccc-line);
  border-radius: 8px;
  padding: 15px 20px 20px;
}
.ccc-prov + .ccc-prov { margin-top: 7.5px; }
.ccc-prov-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
#ccc-dialog .ccc-prov-name { font-size: 15px; font-weight: 700; line-height: 24px; color: var(--ccc-text); }
.ccc-prov-toggle .ccc-chevron { margin: 0 12px 4px 0; }
#ccc-dialog a.ccc-prov-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--ccc-accent);
  font-weight: 600;
  text-decoration: none;
}
#ccc-dialog a.ccc-prov-link svg { color: var(--ccc-text); }
.ccc-prov-body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ccc-line); }
.ccc-ck {
  background: rgba(0, 0, 0, .05);
  border: 1px solid var(--ccc-line);
  border-radius: 15px;
  padding: 22.5px 20px 15px;
}
.ccc-ck + .ccc-ck { margin-top: 7.5px; }
#ccc-dialog .ccc-ck-name { font-weight: 700; letter-spacing: .1px; margin-bottom: 7.5px; }
#ccc-dialog .ccc-ck-desc { letter-spacing: .1px; padding-bottom: 15px; }
.ccc-ck-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-top: 7.5px;
  border-top: 1px solid var(--ccc-line);
  font-size: 15px;
  color: var(--ccc-text);
}
.ccc-ck-foot b { font-weight: 600; }

/* "Acerca de las cookies" */
#ccc-dialog .ccc-about { line-height: 22.5px; letter-spacing: .1px; }
#ccc-dialog .ccc-about + .ccc-about { margin-top: 21px; }

/* Degradado inferior mientras queda contenido por desplazar */
.ccc-body { position: relative; }
#ccc-dialog.ccc-fade .ccc-body {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 80px), transparent);
}

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

/* Móvil: réplica del layout de Cookiebot a pantalla completa (medido a 390x844) */
@media (max-width: 600px) {
  #ccc-dialog {
    top: 8px; left: 8px; transform: none;
    width: calc(100vw - 16px); max-width: none;
    height: calc(100% - 16px); max-height: calc(100% - 16px);
  }
  .ccc-header { min-height: 57px; padding: 15px; }
  .ccc-header img { height: 23px; width: 25px; }
  .ccc-nav { overflow-x: auto; scrollbar-width: none; }
  .ccc-nav::-webkit-scrollbar { display: none; }
  .ccc-tab { flex: none; padding: 15px 15px 12px; white-space: nowrap; }
  #ccc-panel-consent { max-height: 270px; overflow-y: auto; padding: 24px 15px 15px; }
  .ccc-panel { padding: 22.5px 15px; }
  .ccc-levels { flex-direction: column; padding: 15px 0; }
  .ccc-level { flex-direction: row; justify-content: space-between; padding: 15px; }
  .ccc-level + .ccc-level { border-left: 0; }
  .ccc-footer { flex-direction: column-reverse; gap: 7.5px; padding: 15px; }
  #ccc-dialog .ccc-cat-desc { padding-left: 0; }
  .ccc-cat-body { padding-left: 0; }
  .ccc-prov { padding: 12px 14px 14px; }
}

/* Contenido de terceros bloqueado hasta aceptar "Marketing" (iframes con data-cookieblock-src) */
iframe.ccc-blocked { display: none !important; }
.ccc-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 16px;
  background: #141414;
  color: #fff;
  font-family: sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.ccc-placeholder p { margin: 0; padding: 0; color: #fff !important; font: 400 15px/1.5 sans-serif !important; }
.ccc-placeholder button {
  padding: 10px 20px;
  background: #fff;
  color: #141414;
  border: 2px solid #ff0000;
  border-radius: 4px;
  font: 600 15px sans-serif;
  cursor: pointer;
}
.ccc-placeholder button:hover { background: #ff0000; color: #fff; }
