/* AMUEX — Cookie banner (ligero, sin frameworks) */

:root{
  --ck-bg: rgba(10, 12, 16, 0.92);
  --ck-panel: #ffffff;
  --ck-text: #0b1220;
  --ck-muted: rgba(11, 18, 32, 0.70);
  --ck-border: rgba(11, 18, 32, 0.12);
  --ck-shadow: 0 18px 60px rgba(0,0,0,.35);
  --ck-radius: 16px;
  --ck-btn-radius: 12px;
  --ck-focus: 0 0 0 3px rgba(0, 110, 255, .25);
}

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: none;
}

.cookie-banner.is-visible{ display: block; }

.cookie-card{
  margin: 0 auto;
  max-width: 980px;
  background: var(--ck-panel);
  color: var(--ck-text);
  border: 1px solid var(--ck-border);
  box-shadow: var(--ck-shadow);
  border-radius: var(--ck-radius);
  overflow: hidden;
}

.cookie-card-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 18px 16px 18px;
}

.cookie-title{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.cookie-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ck-muted);
}

.cookie-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.ck-btn{
  appearance: none;
  border: 1px solid var(--ck-border);
  background: #fff;
  color: var(--ck-text);
  border-radius: var(--ck-btn-radius);
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease;
}

.ck-btn:hover{ transform: translateY(-1px); }
.ck-btn:focus{ outline: none; box-shadow: var(--ck-focus); }

.ck-btn-primary{
  background: #0b1220;
  color: #fff;
  border-color: rgba(0,0,0,0.15);
}

.ck-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px){
  .cookie-card-inner{
    grid-template-columns: 1fr;
  }
  .cookie-actions{
    justify-content: flex-start;
  }
}

/* Modal de preferencias */
.ck-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0,0,0,.55);
  padding: 18px;
}

.ck-modal.is-visible{ display: block; }

.ck-modal-panel{
  max-width: 720px;
  margin: 6vh auto 0 auto;
  background: var(--ck-panel);
  border: 1px solid var(--ck-border);
  border-radius: 18px;
  box-shadow: var(--ck-shadow);
  overflow: hidden;
}

.ck-modal-header{
  padding: 16px 18px;
  border-bottom: 1px solid var(--ck-border);
}

.ck-modal-header h2{
  margin: 0;
  font-size: 18px;
}

.ck-modal-body{
  padding: 16px 18px;
}

.ck-row{
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--ck-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.ck-row h3{
  margin: 0 0 6px 0;
  font-size: 15px;
}

.ck-row p{
  margin: 0;
  font-size: 13px;
  color: var(--ck-muted);
  line-height: 1.35;
}

.ck-switch{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  white-space: nowrap;
  font-size: 14px;
}

.ck-switch input{
  width: 18px;
  height: 18px;
}

.ck-badge{
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11,18,32,0.06);
  border: 1px solid var(--ck-border);
  margin-left: 8px;
}

.ck-modal-footer{
  padding: 14px 18px;
  border-top: 1px solid var(--ck-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
