/* Aviso y panel de cookies */
.ck-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto; background: #163828; color: #f7f3ea;
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  font-family: 'Bricolage Grotesque', -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5;
}
.ck-banner p { margin: 0 0 14px; }
.ck-banner a { color: #f2b134; }
.ck-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ck-btn {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 11px 12px; border-radius: 11px; border: 2px solid #f7f3ea; background: #f7f3ea; color: #163828;
}
.ck-banner .ck-btn[data-ck="config"] { background: transparent; color: #f7f3ea; }
.ck-btn:focus-visible { outline: 3px solid #f2b134; outline-offset: 2px; }

.ck-overlay {
  position: fixed; inset: 0; z-index: 1001; background: rgba(15, 30, 22, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
@media (min-width: 640px) { .ck-overlay { align-items: center; } }
.ck-panel {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fffdf8; color: #1d2620; border-radius: 22px; padding: 24px 22px 20px;
  font-family: 'Bricolage Grotesque', -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5;
}
.ck-panel h2 { margin: 0 0 6px; font-size: 24px; color: #1f4d36; letter-spacing: -.02em; }
.ck-intro { margin: 0 0 16px; color: #5d665e; }
.ck-list { list-style: none; margin: 0 0 18px; padding: 0; }
.ck-row { border-top: 1px solid #e3dccb; padding: 14px 0; }
.ck-row p { margin: 6px 0 0 58px; color: #5d665e; font-size: 14px; }
.ck-row em { font-style: normal; color: #2f6b4b; font-weight: 600; }
.ck-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-track { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 99px; background: #d6cfbe; position: relative; transition: background .2s; }
.ck-track::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,.2); transition: transform .2s; }
.ck-switch input:checked + .ck-track { background: #1f4d36; }
.ck-switch input:checked + .ck-track::after { transform: translateX(18px); }
.ck-switch input:disabled + .ck-track { opacity: .55; }
.ck-switch input:focus-visible + .ck-track { outline: 3px solid #f2b134; outline-offset: 2px; }
.ck-name { font-weight: 700; font-size: 16px; }
.ck-name small { font-weight: 500; color: #5d665e; }
.ck-panel .ck-btn { border-color: #1f4d36; background: #1f4d36; color: #fff; }
.ck-panel .ck-btn[data-ck="save"] { background: #fff; color: #1f4d36; }
.ck-more { display: inline-block; margin-top: 14px; color: #2f6b4b; font-weight: 600; font-size: 14px; }

@media (max-width: 520px) {
  .ck-actions { grid-template-columns: 1fr 1fr; }
  /* Rechazar y Aceptar al mismo nivel; Configurar / Guardar debajo */
  .ck-actions .ck-btn[data-ck="config"], .ck-actions .ck-btn[data-ck="save"] { grid-column: 1 / -1; order: 1; }
  .ck-row p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ck-track, .ck-track::after { transition: none; } }
