/* Aviso y panel de cookies (ver consent.js). Paleta de Uelta: marino, azul y cian;
   la galleta conserva sus colores tostados para reconocerla de un vistazo. */
.ck-banner,.ck-modal,.ck-fab,.ck-toast{--ck-navy:#0B1B3F;--ck-blue:#1677FF;--ck-cyan:#27C6FF;--ck-ink:#0B1B3F;--ck-muted:#5B6B7C;--ck-line:#DDE7F5;--ck-ice:#F2F7FF;--ck-grad:linear-gradient(135deg,#27C6FF,#1677FF);font-family:"Segoe UI",Inter,system-ui,-apple-system,Roboto,"PingFang SC","Microsoft YaHei",Helvetica,Arial,sans-serif;color:var(--ck-ink);line-height:1.5;box-sizing:border-box}
.ck-banner *,.ck-modal *,.ck-fab *{box-sizing:border-box}
.ck-cookie{display:inline-flex;flex:none;width:56px;height:56px}
.ck-cookie svg{width:100%!important;height:100%!important;display:block}
.ck-cookie.sm{width:36px;height:36px}

/* ---------- Aviso ---------- */
.ck-banner{position:fixed;left:50%;bottom:20px;z-index:1000;width:min(760px,calc(100% - 24px));transform:translate(-50%,24px);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s ease}
.ck-banner.is-in{transform:translate(-50%,0);opacity:1}
.ck-card{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:center;padding:18px 20px;border-radius:22px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border:1px solid var(--ck-line);box-shadow:0 24px 60px rgba(11,27,63,.22),0 2px 6px rgba(11,27,63,.06)}
.ck-card .ck-cookie{grid-row:span 2;width:64px;height:64px;align-self:start}
.ck-copy h2{margin:0 0 4px;font-size:17px;letter-spacing:-.01em}
.ck-copy p{margin:0;font-size:13.5px;color:var(--ck-muted)}
.ck-copy a,.ck-policy-link{color:var(--ck-blue);font-weight:700;text-decoration:none;white-space:nowrap}
.ck-copy a:hover,.ck-policy-link:hover{text-decoration:underline}
.ck-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.ck-btn{appearance:none;border:0;border-radius:12px;padding:11px 20px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s ease;min-height:44px}
.ck-btn:hover{transform:translateY(-1px)}
.ck-btn:active{transform:translateY(0) scale(.98)}
.ck-btn:focus-visible,.ck-link:focus-visible,.ck-fab:focus-visible,.ck-x:focus-visible{outline:3px solid rgba(39,198,255,.55);outline-offset:2px}
/* Aceptar y rechazar tienen el mismo peso visual: ninguno se esconde. */
.ck-primary{background:var(--ck-grad);color:#fff;box-shadow:0 8px 20px rgba(22,119,255,.3)}
.ck-primary:hover{box-shadow:0 12px 26px rgba(22,119,255,.4)}
.ck-solid{background:var(--ck-navy);color:#fff;box-shadow:0 8px 20px rgba(11,27,63,.22)}
.ck-solid:hover{background:#15295A}
.ck-ghost{background:#fff;color:var(--ck-ink);border:1px solid var(--ck-line)}
.ck-ghost:hover{border-color:var(--ck-blue);color:var(--ck-blue)}
.ck-link{appearance:none;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--ck-ink);text-decoration:underline;text-underline-offset:3px;padding:10px 8px;cursor:pointer;margin-left:auto}
.ck-link:hover{color:var(--ck-blue)}

/* ---------- Panel ---------- */
.ck-modal{position:fixed;inset:0;z-index:1001;display:grid;place-items:center;padding:16px;background:rgba(11,27,63,.45);backdrop-filter:blur(3px);opacity:0;transition:opacity .2s ease}
.ck-modal.is-in{opacity:1}
.ck-panel{width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:22px;padding:20px 22px;box-shadow:0 30px 80px rgba(11,27,63,.35);display:grid;gap:14px;transform:translateY(12px) scale(.98);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.ck-modal.is-in .ck-panel{transform:none}
.ck-panel-head{display:flex;align-items:center;gap:10px}
.ck-panel-head h2{margin:0;font-size:19px;flex:1}
.ck-x{appearance:none;border:0;width:36px;height:36px;border-radius:11px;background:var(--ck-ice);cursor:pointer;position:relative}
.ck-x::before,.ck-x::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:var(--ck-ink);transform:translate(-50%,-50%) rotate(45deg)}
.ck-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.ck-panel-text{margin:0;font-size:14px;color:var(--ck-muted)}
.ck-cats{display:grid;gap:8px}
.ck-cat{display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;border:1px solid var(--ck-line);background:var(--ck-ice);cursor:pointer;transition:border-color .2s ease}
.ck-cat:hover{border-color:#B9D4F7}
.ck-cat.is-unused{background:#fff;opacity:.75;cursor:default}
.ck-cat-copy{flex:1;display:grid;gap:2px}
.ck-cat-copy strong{font-size:14.5px}
.ck-cat-copy small{font-size:12.5px;color:var(--ck-muted)}
.ck-cat-state{display:flex;align-items:center;gap:10px}
.ck-cat-state em{font-style:normal;font-size:11.5px;font-weight:800;color:var(--ck-muted);white-space:nowrap}
.ck-switch{position:relative;width:46px;height:26px;flex:none}
.ck-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.ck-switch input:disabled{cursor:default}
.ck-switch i{position:absolute;inset:0;border-radius:999px;background:#CBD5E1;transition:background .2s ease;pointer-events:none}
.ck-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.ck-switch input:checked+i{background:var(--ck-grad)}
.ck-switch input:checked+i::after{transform:translateX(20px)}
.ck-switch input:disabled:checked+i{background:#8FB8F5}
.ck-switch input:focus-visible+i{outline:3px solid rgba(39,198,255,.55);outline-offset:2px}
.ck-panel-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ck-panel-actions .ck-btn{padding:11px 10px}
.ck-policy-link{justify-self:center;font-size:13px}

/* ---------- Galleta fija ---------- */
.ck-fab{position:fixed;left:18px;bottom:18px;z-index:900;width:56px;height:56px;border-radius:50%;border:1px solid var(--ck-line);background:#fff;box-shadow:0 10px 26px rgba(11,27,63,.2);display:grid;place-items:center;padding:6px;cursor:pointer;transform:scale(.6);opacity:0;transition:transform .35s cubic-bezier(.2,1.4,.4,1),opacity .2s ease,box-shadow .2s ease}
.ck-fab.is-in{transform:none;opacity:1}
.ck-fab:hover{box-shadow:0 14px 32px rgba(22,119,255,.28);transform:translateY(-2px) rotate(-8deg)}
.ck-fab .ck-cookie{width:44px;height:44px}
.ck-fab-tip{position:absolute;left:calc(100% + 10px);top:50%;transform:translate(-6px,-50%);white-space:nowrap;background:var(--ck-navy);color:#fff;font-size:12.5px;font-weight:700;padding:7px 11px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.ck-fab:hover .ck-fab-tip,.ck-fab:focus-visible .ck-fab-tip{opacity:1;transform:translate(0,-50%)}

.ck-toast{position:fixed;left:50%;bottom:24px;z-index:1002;transform:translate(-50%,20px);opacity:0;background:var(--ck-navy);color:#fff;font-size:13.5px;font-weight:700;padding:11px 18px;border-radius:12px;box-shadow:0 14px 34px rgba(11,27,63,.3);transition:opacity .2s ease,transform .25s ease;pointer-events:none}
.ck-toast.is-in{opacity:1;transform:translate(-50%,0)}

@media (max-width:640px){
  .ck-banner{bottom:10px;width:calc(100% - 16px)}
  .ck-card{grid-template-columns:auto 1fr;padding:16px;border-radius:20px}
  .ck-card .ck-cookie{grid-row:auto;width:48px;height:48px}
  .ck-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .ck-link{grid-column:1/-1;margin:0 auto;padding:6px}
  .ck-modal{align-items:end;padding:0}
  .ck-panel{border-radius:22px 22px 0 0;max-height:92dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom));transform:translateY(40px)}
  .ck-panel-actions{grid-template-columns:1fr 1fr}
  .ck-panel-actions [data-ck-all="1"]{grid-column:1/-1;order:-1}
  .ck-fab{left:12px;bottom:12px;width:50px;height:50px}
  .ck-fab .ck-cookie{width:38px;height:38px}
  .ck-fab-tip{display:none}
}
@media (prefers-reduced-motion:reduce){.ck-banner,.ck-modal,.ck-panel,.ck-fab,.ck-toast,.ck-btn{transition:none!important}}
@media print{.ck-banner,.ck-fab,.ck-modal{display:none!important}}
