/* Banner de cookies y panel de configuración */
.ck { --ck-bottom: 0px; position: fixed; z-index: 95; left: 14px; right: 14px; bottom: calc(var(--ck-bottom) + 14px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 1020px; }
.ck[hidden], .ck-modal[hidden] { display: none; }
.ck-card-pos { }
.ck.ck-card { left: 14px; right: auto; margin: 0; max-width: 440px; }
.ck-main { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 26px; overflow: hidden; isolation: isolate; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(18,21,40,.28), 0 0 0 1px rgba(255,255,255,.4) inset; animation: ck-in .55s var(--ease) both; }
.ck-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-grad); }
@keyframes ck-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.ck-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; background: var(--soft-grad, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line); animation: ck-wob 5s ease-in-out infinite; } @keyframes ck-wob { 0%, 100% { rotate: -6deg; } 50% { rotate: 8deg; } }
.ck-copy h2 { margin: 0 0 3px; font-size: 1.05rem; letter-spacing: -0.02em; } .ck-copy p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; } .ck-copy a { font-weight: 700; }
.ck-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ck .ck-b, .ck-modal .ck-b { min-height: 44px; padding: 0 20px; font-size: .9rem; white-space: nowrap; }
.ck-link { background: none; border: 0; padding: 8px 6px; color: var(--action); font: 700 .88rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .ck-link:hover { color: var(--ink); }
.ck.ck-card .ck-main { grid-template-columns: auto 1fr; } .ck.ck-card .ck-actions { grid-column: 1 / -1; justify-content: stretch; } .ck.ck-card .ck-actions .ck-b { flex: 1; }
@media (max-width: 760px) { .ck { left: 8px; right: 8px; max-width: none; } .ck.ck-card { max-width: none; } .ck-main { grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px 16px 14px; border-radius: 22px; } .ck-actions { grid-column: 1 / -1; justify-content: stretch; } .ck-actions .ck-b { flex: 1 1 40%; } .ck-link { flex: 1 1 100%; text-align: center; } .ck-ico { width: 46px; height: 46px; font-size: 1.4rem; } }
/* panel */
.ck-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.ck-scrim { position: absolute; inset: 0; background: rgba(10,10,30,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ck-fade .3s both; } @keyframes ck-fade { from { opacity: 0; } }
.ck-card { position: relative; width: min(640px, 100%); max-height: min(86vh, 720px); overflow: auto; padding: 26px 26px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0,0,0,.45); animation: ck-in .4s var(--ease) both; }
.ck-card h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.03em; padding-right: 36px; } .ck-lead { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.ck-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: .95rem; } .ck-x:hover { background: var(--line); }
.ck-cats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ck-cats li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); } .ck-cats strong { display: block; font-size: .96rem; } .ck-cats li div span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; line-height: 1.45; }
.ck-always { flex: none; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 800; font-size: .74rem; white-space: nowrap; }
.ck-sw { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; } .ck-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; } .ck-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .25s; } .ck-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.ck-sw input:checked + i { background: var(--brand-grad); } .ck-sw input:checked + i::after { transform: translateX(22px); } .ck-sw input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--action) 50%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-foot { display: flex; gap: 8px; flex-wrap: wrap; } .ck-foot .ck-b { flex: 1 1 150px; }
.ck-lock { overflow: hidden; }
.tf-foot-ck { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; opacity: .85; } .tf-foot-ck:hover { opacity: 1; color: var(--action); }
@media (prefers-reduced-motion: reduce) { .ck-main, .ck-ico, .ck-card, .ck-scrim { animation: none !important; } }
@media (max-width: 560px) { .ck-cats li { flex-direction: column; align-items: flex-start; gap: 10px; } .ck-card { padding: 22px 18px 18px; border-radius: 24px; } }
