/* CARIBIAN · módulo: aviso y panel de cookies
   Superpuesto y con position:fixed a propósito: no empuja el contenido, así
   no penaliza el CLS ni desplaza lo que el visitante está leyendo. */
.ck-capa{position:fixed; inset:auto 0 0 0; z-index:120;
  padding:clamp(12px,3vw,20px); padding-bottom:calc(clamp(12px,3vw,20px) + env(safe-area-inset-bottom));
  display:flex; justify-content:center; pointer-events:none}
.ck-capa[hidden]{display:none}

.ck-banner,.ck-panel{pointer-events:auto; width:min(100%,680px); background:#fff; color:var(--navy);
  border-radius:22px; padding:clamp(18px,4vw,26px);
  box-shadow:0 24px 60px rgba(31,36,79,.3), 0 0 0 1px rgba(43,49,123,.1)}
.ck-panel{width:min(100%,560px); max-height:min(78vh,620px); overflow-y:auto}
.ck-panel[hidden],.ck-banner[hidden]{display:none}

.ck-tit,.ck-panel h2{margin:0 0 8px; font-size:1.18rem; letter-spacing:-.02em; font-weight:700; color:var(--navy)}
.ck-txt{margin:0; font-size:.92rem; line-height:1.5; color:var(--mut)}
.ck-txt a{color:var(--red); font-weight:700}
.ck-txt strong{color:var(--navy)}

/* Los tres botones son IDÉNTICOS en tamaño, color, tipografía y posición.
   La AEPD sanciona resaltar "aceptar" sobre "rechazar", así que aquí no hay
   ningún botón primario: se diferencian solo por el texto. */
.ck-acciones{display:grid; gap:10px; margin-top:clamp(16px,3vw,20px)}
@media (min-width:620px){ .ck-acciones{grid-auto-flow:column; grid-auto-columns:1fr} }
.ck-btn{display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 18px;
  border-radius:999px; border:2px solid var(--navy); background:#fff; color:var(--navy);
  font-family:inherit; font-size:.95rem; font-weight:700; cursor:pointer;
  transition:background-color .2s, color .2s}
.ck-btn:hover{background:var(--navy); color:#fff}
.ck-btn:focus-visible{outline:3px solid var(--red); outline-offset:3px}

.ck-grupo{display:flex; gap:14px; align-items:flex-start; justify-content:space-between;
  padding:16px 0; border-top:1px solid rgba(43,49,123,.14)}
.ck-grupo:first-of-type{margin-top:12px}
.ck-grupo-txt b{display:block; font-size:.98rem; color:var(--navy)}
.ck-grupo-txt span{display:block; margin-top:3px; font-size:.86rem; line-height:1.45; color:var(--mut)}

.ck-sw{flex:none; display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer}
.ck-sw em{font-style:normal; font-size:.72rem; font-weight:700; color:var(--mut); white-space:nowrap}
.ck-sw input{position:absolute; opacity:0; width:0; height:0}
.ck-sw span{display:block; width:48px; height:28px; border-radius:999px; background:rgba(43,49,123,.22);
  position:relative; transition:background-color .2s}
.ck-sw span::after{content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%;
  background:#fff; transition:transform .2s; box-shadow:0 2px 5px rgba(31,36,79,.3)}
.ck-sw input:checked + span{background:var(--red)}
.ck-sw input:checked + span::after{transform:translateX(20px)}
.ck-sw input:focus-visible + span{outline:3px solid var(--red); outline-offset:3px}
.ck-sw-fija{cursor:default}
.ck-sw-fija input:checked + span{background:rgba(43,49,123,.45)}

/* Marcador que sustituye al mapa mientras no haya consentimiento */
.ck-placeholder{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  text-align:center; padding:clamp(28px,6vw,52px) 20px; background:var(--tint); color:var(--navy); height:100%}
.ck-placeholder p{margin:0; max-width:46ch; font-size:.94rem; line-height:1.5; color:var(--mut)}
.ck-placeholder svg{width:34px; height:34px; color:var(--navy); opacity:.55}
/* el diálogo recibe el foco al abrirse, pero sin pintar aro: el aro sobre un
   botón concreto podría leerse como resaltarlo frente a los demás */
.ck-banner:focus,.ck-panel:focus{outline:none}
