/* ═══════════════════════════════════════════════
   MERIDIAN — cookies.css
   Cookie consent banner + preferences panel
═══════════════════════════════════════════════ */

/* ── Language visibility (shared with politicas.html) ── */
.en-only { display: none; }
body.lang-en .en-only { display: inline; }
body.lang-en .es-only { display: none; }

/* ── Overlay backdrop ── */
.ck-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(4, 10, 20, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.ck-backdrop.visible { opacity: 1; pointer-events: all; }

/* ── Main banner (bottom) ── */
.ck-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9001;
  background: rgba(8, 18, 36, 0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding: 28px 40px;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.ck-banner.visible { transform: translateY(0); }

.ck-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.ck-banner-text { flex: 1; min-width: 280px; }

.ck-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  color: #EDF2F7; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.ck-icon {
  width: 20px; height: 20px; opacity: .85;
}
.ck-banner-desc {
  font-size: .855rem; line-height: 1.7;
  color: #7A8FA0; font-weight: 300;
}
.ck-banner-desc a {
  color: #C5A059; text-decoration: underline;
  text-underline-offset: 3px; transition: opacity .2s;
}
.ck-banner-desc a:hover { opacity: .75; }

.ck-banner-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Buttons */
.ck-btn {
  padding: 11px 26px; border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: all .3s; white-space: nowrap;
}
.ck-btn-accept {
  background: linear-gradient(135deg, #C5A059, #8B6830);
  color: #07101E; border: none;
  box-shadow: 0 6px 24px rgba(197,160,89,.25);
}
.ck-btn-accept:hover { filter: brightness(1.1); transform: translateY(-2px); }
.ck-btn-reject {
  background: transparent;
  border: 1px solid rgba(197,160,89,.3);
  color: #B8C4D0;
}
.ck-btn-reject:hover { border-color: #C5A059; color: #C5A059; }
.ck-btn-manage {
  background: transparent; border: none;
  color: #7A8FA0; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 4px;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: color .3s;
}
.ck-btn-manage:hover { color: #C5A059; }

/* ── Preferences modal ── */
.ck-modal {
  position: fixed; inset: 0; z-index: 9100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
.ck-modal.visible { opacity: 1; pointer-events: all; }

.ck-modal-box {
  background: #0A192F;
  border: 1px solid rgba(197,160,89,.18);
  border-radius: 10px;
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  transform: translateY(20px) scale(.97);
  transition: transform .4s cubic-bezier(.22,.68,0,1.1);
}
.ck-modal.visible .ck-modal-box { transform: none; }

/* Scrollbar */
.ck-modal-box::-webkit-scrollbar { width: 4px; }
.ck-modal-box::-webkit-scrollbar-track { background: transparent; }
.ck-modal-box::-webkit-scrollbar-thumb { background: rgba(197,160,89,.25); border-radius: 4px; }

.ck-modal-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(197,160,89,.1);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.ck-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; color: #EDF2F7;
}
.ck-modal-subtitle {
  font-size: .825rem; color: #7A8FA0; font-weight: 300;
  line-height: 1.6; margin-top: 6px;
}
.ck-modal-close {
  background: none; border: none; cursor: pointer;
  color: #7A8FA0; font-size: 1.3rem; line-height: 1;
  padding: 4px; transition: color .2s; flex-shrink: 0;
}
.ck-modal-close:hover { color: #C5A059; }

.ck-modal-body { padding: 24px 32px; display: flex; flex-direction: column; gap: 14px; }

/* Category row */
.ck-category {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 18px 20px;
  background: rgba(13,32,64,.6);
  border: 1px solid rgba(197,160,89,.08);
  border-radius: 6px;
  transition: border-color .3s;
}
.ck-category:hover { border-color: rgba(197,160,89,.18); }
.ck-category-info { flex: 1; }
.ck-category-name {
  font-size: .925rem; font-weight: 500; color: #EDF2F7; margin-bottom: 5px;
}
.ck-category-desc { font-size: .8rem; line-height: 1.6; color: #7A8FA0; font-weight: 300; }

/* Toggle switch */
.ck-toggle { position: relative; flex-shrink: 0; margin-top: 2px; }
.ck-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ck-toggle-label {
  display: block; width: 44px; height: 24px;
  background: rgba(255,255,255,.1);
  border-radius: 50px; cursor: pointer;
  transition: background .3s;
  border: 1px solid rgba(197,160,89,.15);
}
.ck-toggle input:checked + .ck-toggle-label { background: #C5A059; border-color: #C5A059; }
.ck-toggle input:disabled + .ck-toggle-label { opacity: .5; cursor: not-allowed; }
.ck-toggle-label::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ck-toggle input:checked + .ck-toggle-label::after { transform: translateX(20px); }
.ck-required-badge {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #7A8FA0; font-weight: 500; margin-top: 4px; display: block;
}

.ck-modal-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(197,160,89,.1);
  display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap;
}

/* ── Floating cookie button (re-open) ── */
.ck-float-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 8000;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10,25,47,.92);
  border: 1px solid rgba(197,160,89,.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transform: scale(.8);
}
.ck-float-btn.visible { opacity: 1; pointer-events: all; transform: scale(1); }
.ck-float-btn:hover { border-color: #C5A059; box-shadow: 0 6px 28px rgba(197,160,89,.25); }
.ck-float-btn svg { width: 20px; height: 20px; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .ck-banner { padding: 22px 20px; }
  .ck-banner-inner { flex-direction: column; gap: 20px; }
  .ck-banner-actions { width: 100%; justify-content: stretch; }
  .ck-btn { flex: 1; text-align: center; }
  .ck-modal-header, .ck-modal-body, .ck-modal-footer { padding-left: 20px; padding-right: 20px; }
}
