/* consent.css — SEO-15: barra de consentimiento de cookies (_consent.html).
   Barra inferior fija, no un muro: el contenido sigue legible y desplazable.
   Usa los tokens de tema de app.css (--panel, --text, --border, --accent…),
   así que funciona en claro/oscuro en la app (base.html) y en las públicas
   (body.ld redefine los mismos tokens). Los tres botones comparten clase y
   tamaño: Rechazar pesa exactamente lo mismo que Aceptar (Guía AEPD 2023). */
.ck {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: var(--panel, #fff);
  color: var(--text, #0f172a);
  border-top: 1px solid var(--line-2, var(--border, #cbd5e1));
  box-shadow: 0 -6px 24px var(--shadow-soft, rgba(15, 23, 42, .14));
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 70vh;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.45;
}
.ck[hidden] { display: none; }
.ck:focus { outline: none; }
.ck:focus-visible { outline: 2px solid var(--accent, #0f766e); outline-offset: -2px; }
.ck-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.ck-text { flex: 1 1 420px; min-width: 0; }
.ck-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; font-family: inherit; }
.ck-desc { margin: 0; color: var(--muted-2, var(--text)); }
.ck-desc a { color: var(--accent-2, var(--accent)); text-decoration: underline; }
.ck-prefs {
  flex: 1 1 100%;
  order: 2;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #dfe6f0);
  border-radius: var(--radius, 6px);
  background: var(--panel-2, #f1f5f9);
}
.ck-prefs[hidden] { display: none; }
.ck-legend { font-weight: 600; padding: 0 4px; }
.ck-cat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: start;
  padding: 6px 0;
}
.ck-cat input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent, #0f766e); }
.ck-cat-desc { grid-column: 2; margin: 0; font-size: 14px; color: var(--muted-2, var(--text)); }
.ck-always { font-weight: 400; color: var(--muted-2, var(--text)); }
.ck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
}
.ck-btn {
  min-height: 44px;
  min-width: 112px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-s, 6px);
  border: 2px solid var(--accent, #0f766e);
  background: var(--accent, #0f766e);
  color: var(--accent-ink, #fff);
  cursor: pointer;
}
.ck-btn[hidden] { display: none; }
.ck-btn:hover { filter: brightness(1.08); }
.ck-btn:focus-visible { outline: 3px solid var(--text, #0f172a); outline-offset: 2px; }

/* Enlaces «Configurar cookies» del pie: botones con aspecto de enlace. */
.ld-footer-ck, .app-footer-ck {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.ld-footer-ck:focus-visible, .app-footer-ck:focus-visible {
  outline: 2px solid var(--accent, #0f766e); outline-offset: 2px;
}

@media (max-width: 640px) {
  .ck { font-size: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ck-actions { width: 100%; }
  .ck-btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ck { animation: ck-in .18s ease-out; }
  @keyframes ck-in { from { transform: translateY(100%); } to { transform: none; } }
}
