/* Aviso de cookies: usa la paleta de la web y funciona igual en la portada y en el resto de páginas. */
.ck, .ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck {
  --ck-bg: #0c1f2c;
  --ck-line: rgb(178 225 232 / 0.18);
  --ck-fg: #f1f7f9;
  --ck-fg-2: #adc2cc;
  --ck-amber: #f5c164;
  --ck-on-amber: #231f20;
  --ck-blue: #3d88a7;
  position: fixed;
  z-index: 2147483000;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ck__card {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--ck-bg);
  color: var(--ck-fg);
  border: 1px solid var(--ck-line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 24px 70px -18px rgb(0 0 0 / 0.85);
  animation: ck-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ck-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .ck__card { animation: none; } }
.ck__title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ck-fg); }
.ck__text { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ck-fg-2); }
.ck__text a { color: var(--ck-amber); text-decoration: underline; text-underline-offset: 3px; }
.ck__prefs { display: grid; gap: 10px; margin-top: 16px; }
.ck__prefs[hidden] { display: none; }
.ck__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--ck-line); border-radius: 12px; cursor: pointer;
}
.ck__info { display: grid; gap: 3px; font-size: 0.86rem; line-height: 1.45; color: var(--ck-fg-2); }
.ck__info strong { color: var(--ck-fg); font-weight: 600; font-size: 0.92rem; }
.ck__switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 44px; height: 24px; margin: 0; border-radius: 999px;
  background: rgb(178 225 232 / 0.18); border: 1px solid var(--ck-line);
  cursor: pointer; transition: background 0.2s ease;
}
.ck__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ck-fg); transition: transform 0.2s ease;
}
.ck__switch:checked { background: var(--ck-blue); }
.ck__switch:checked::after { transform: translateX(20px); }
.ck__switch:disabled { opacity: 0.6; cursor: not-allowed; }
.ck__switch:focus-visible, .ck__btn:focus-visible { outline: 2px solid var(--ck-amber); outline-offset: 2px; }
.ck__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ck__btn {
  font: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1;
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ck__btn[hidden] { display: none; }
.ck__btn--primary { background: var(--ck-amber); color: var(--ck-on-amber); }
.ck__btn--primary:hover { background: #f8cf86; }
.ck__btn--line { background: transparent; color: var(--ck-fg); border-color: rgb(178 225 232 / 0.35); }
.ck__btn--line:hover { border-color: var(--ck-fg); }
.ck__btn--ghost { background: transparent; color: var(--ck-fg-2); margin-right: auto; padding-inline: 4px; text-decoration: underline; text-underline-offset: 3px; }
.ck__btn--ghost:hover { color: var(--ck-fg); }
@media (max-width: 560px) {
  .ck__card { padding: 18px; border-radius: 16px; }
  .ck__actions { justify-content: stretch; }
  .ck__btn { flex: 1 1 calc(50% - 5px); }
  .ck__btn--ghost { flex-basis: 100%; margin-right: 0; order: 9; }
}
/* Enlace "Configurar cookies" en los pies de página, con el mismo aspecto que un enlace. */
button[data-cookie-settings]:not(.btn) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button[data-cookie-settings]:not(.btn):hover { text-decoration: underline; }
/* Botón fijo para cambiar la configuración de cookies. */
.ck-fab {
  position: fixed; z-index: 2147482999;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(178 225 232 / 0.25);
  background: #0c1f2c; color: #f5c164; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ck-fab:hover { transform: scale(1.06); border-color: #f5c164; }
.ck-fab:focus-visible { outline: 2px solid #f5c164; outline-offset: 2px; }
.ck-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ck-fab svg circle { fill: currentColor; stroke: none; }
.ck-open .ck-fab { display: none; }
@media print { .ck, .ck-fab { display: none !important; } }
