/* Cookie Banner + Modal (lightweight, modern) */
.cookie-banner{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: none;
}

.cookie-card{
  max-width: 1100px;
  margin: 0 auto;
  background: #0f0d1d;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

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

.cookie-text p{
  margin: 0;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  font-size: 14px;
}

.cookie-links{
  margin-top: 8px !important;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-links a{
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  font-size: 13px;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 280px;
}

.cookie-btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.cookie-btn-primary{
  background: #3b82f6;
  color: #fff;
}

.cookie-btn-outline{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.cookie-btn-ghost{
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
}

/* Modal */
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.cookie-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.cookie-modal__card{
  position: relative;
  max-width: 620px;
  margin: 7vh auto 0;
  background: #ffffff;
  color: #0f0d1d;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.cookie-modal__head{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-modal__head h4{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.cookie-x{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cookie-modal__sub{
  margin: 10px 0 16px;
  color: #555;
  font-size: 14px;
}

.cookie-options{
  display: grid;
  gap: 12px;
}

.cookie-option{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
  display:flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.cookie-option p{
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}

.cookie-modal__actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Switch */
.cookie-switch{
  position: relative;
  width: 46px;
  height: 28px;
  display: inline-block;
}
.cookie-switch input{
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#e5e7eb;
  border-radius: 999px;
  transition: .2s;
}
.cookie-slider:before{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background:#fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: .2s;
}
.cookie-switch input:checked + .cookie-slider{
  background:#3b82f6;
}
.cookie-switch input:checked + .cookie-slider:before{
  transform: translateX(18px);
}
.cookie-switch input:disabled + .cookie-slider{
  opacity: .6;
  cursor: not-allowed;
}

/* Floating “Cookie Settings” button */
.cookie-fab{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999998;
  background: rgba(15,13,29,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: none; /* shown after choice */
}

@media (max-width: 768px){
  .cookie-card{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions{
    min-width: auto;
    justify-content: stretch;
  }
  .cookie-actions .cookie-btn{
    flex: 1;
  }
  .cookie-modal__card{
    margin: 10vh 14px 0;
  }
}




.cookie-card{ background:#0f0d1d; color:#fff; border-radius:16px; padding:18px; box-shadow:0 20px 60px rgba(0,0,0,.25);
  display:flex; gap:18px; align-items:center; justify-content:space-between; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-btn{ border:0; border-radius:12px; padding:10px 14px; font-weight:600; cursor:pointer; }
.cookie-btn-primary{ background:#3b82f6; color:#fff; }
.cookie-btn-outline{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35); }
.cookie-btn-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.18); }

.cookie-modal{ position:fixed; inset:0; z-index:999999; display:none; }
.cookie-modal__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.cookie-modal__card{ position:relative; max-width:620px; margin:8vh auto 0; background:#fff; border-radius:18px; padding:18px; }
.cookie-banner{
  left: auto;
  right: 18px;
  bottom: 18px;
  max-width: 520px;   /* opcional: para que no sea tan ancho */
}

.cookie-fab{
  left: auto;
  right: 16px;
  bottom: 16px;
}

