/* ============================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES — IDE MARKETING
   Estética acorde con tema-oscuro: azules profundos, vidrio esmerilado y acento.
   Layout centrado y fluido en escritorio (680–760px) y adaptable en móvil.
   ========================================================================== */

.ck {
  position: fixed;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  margin: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ck.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Con el telón activo (#telon z-index: 2147483000), el banner se sitúa por encima */
.telon-bajado .ck,
html.telon-bajado .ck {
  z-index: 2147483001;
}

/* Con retícula activa (html.con-reticula * { cursor:none }), mostrar cursor nativo */
html.con-reticula .ck,
html.con-reticula .ck * {
  cursor: auto;
}
html.con-reticula .ck button,
html.con-reticula .ck a {
  cursor: pointer;
}


.ck-in {
  pointer-events: auto;
  position: relative;
  width: min(720px, calc(100vw - 48px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px;
  background: rgba(16, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(233, 238, 248, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #e9eef8;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

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

.ck-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b90f0;
}

.ck-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #5b90f0;
  box-shadow: 0 0 8px #5b90f0;
}

.ck-cerrar-btn {
  background: none;
  border: none;
  color: rgba(233, 238, 248, 0.5);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.ck-cerrar-btn:hover {
  color: #e9eef8;
  background: rgba(233, 238, 248, 0.1);
}

.ck-titulo {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #e9eef8;
  max-width: none;
  letter-spacing: -0.01em;
}

.ck-txt {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(233, 238, 248, 0.76);
  max-width: 62ch;
  text-wrap: pretty;
}

.ck-mas {
  color: #5b90f0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ck-mas:hover {
  color: #8bb4ff;
}

.ck-estado-actual {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(233, 238, 248, 0.6);
  background: rgba(233, 238, 248, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(233, 238, 248, 0.08);
}

.ck-bot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ck-b {
  min-width: 140px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.ck-b:focus-visible {
  outline: 2px solid #5b90f0;
  outline-offset: 2px;
}

.ck-no {
  background: rgba(233, 238, 248, 0.08);
  border-color: rgba(233, 238, 248, 0.18);
  color: #e9eef8;
}

.ck-no:hover {
  background: rgba(233, 238, 248, 0.14);
  border-color: rgba(233, 238, 248, 0.3);
}

.ck-si {
  background: linear-gradient(140deg, #5b90f0 0%, #2f6de0 45%, #143a86 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(47, 109, 224, 0.35);
}

.ck-si:hover {
  background: linear-gradient(140deg, #6b9cf5 0%, #3a78ea 45%, #1a4699 100%);
  box-shadow: 0 6px 20px rgba(47, 109, 224, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ck {
    padding: 12px;
  }

  .ck-in {
    width: 100%;
    padding: 22px 18px;
    gap: 16px;
  }

  .ck-titulo {
    font-size: 17px;
  }

  .ck-txt {
    font-size: 13.5px;
    max-width: none;
  }

  .ck-bot {
    flex-direction: column;
    gap: 10px;
  }

  .ck-b {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck {
    transition: none;
  }
}
