:root{
  --ck-bg: rgba(17, 21, 26, .85);
  --ck-stroke: rgba(255,255,255,.14);
  --ck-text: #e9eefb;
  --ck-muted: #b8c2db;
  --ck-accent: #6ea8fe;
  --ck-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.aviso-cookies{
  display:none;
  position:fixed;
  left:20px;
  right:auto;
  bottom:20px;
  width:min(380px, calc(100% - 40px));
  padding:22px 18px 18px 18px;
  border-radius:18px;
  border:1px solid var(--ck-stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)),
    var(--ck-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color:var(--ck-text);
  line-height:1.5;
  z-index: 9999; /* por encima del overlay */
  box-shadow: var(--ck-shadow);
  text-align:center;
}

.aviso-cookies.activo{ display:block; }

.aviso-cookies .galleta{
  width:72px; height:auto;
  position:absolute;
  top:-36px;
  left:calc(50% - 36px);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.aviso-cookies .titulo{
  font-weight:800;
  margin:6px 0 6px 0;
}

.aviso-cookies .parrafo{
  margin:0 0 14px 0;
  color: var(--ck-muted);
  font-size: .95rem;
}

.aviso-cookies .boton{
  width:100%;
  border:1px solid var(--ck-stroke);
  background: rgba(255,255,255,.08);
  color: var(--ck-text);
  font-weight:700;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  transition: .15s ease-in-out;
  margin-bottom: 10px;
}
.aviso-cookies .boton:hover{
  background: rgba(255,255,255,.12);
}

.aviso-cookies .enlace{
  display:inline-block;
  color: var(--ck-accent) !important;
  text-decoration:none;
  font-size:.95rem;
}
.aviso-cookies .enlace:hover{ text-decoration: underline; }

/* Overlay que bloquea la UI */
.fondo-aviso-cookies{
  display:none;
  position: fixed;
  inset: 0;
  width:100vw; height:100vh;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(110,168,254,.15), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(167,139,250,.12), transparent 65%),
    rgba(6,9,14,.55);
  z-index: 9998; /* justo debajo del modal */
  backdrop-filter: blur(2px);
}

.fondo-aviso-cookies.activo{ display:block; }

/* Responsivo: centrar en pantallas pequeñas */
@media (max-width: 420px){
  .aviso-cookies{
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
  }
}
