/* Aviso y preferencias de cookies (js/cookies.js). Lo usan index.html y legal.html,
   así que no depende de las variables de cada página. */
.ck-banner{
  position:fixed; left:16px; bottom:16px; z-index:290; width:min(440px, calc(100% - 32px));
  background:#0B3B21; color:#fff; border-radius:20px; padding:20px 20px 18px;
  box-shadow:0 24px 60px -20px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.12);
  font-size:0.9rem; line-height:1.5; animation:ckIn .3s ease;
}
@keyframes ckIn{from{transform:translateY(16px); opacity:0;}}
.ck-title{margin:0 0 6px; font-weight:700; font-size:1rem;}
.ck-text{margin:0 0 16px; opacity:0.85;}
.ck-text a{color:#FFC93C; font-weight:600; text-decoration:underline;}
.ck-actions{display:flex; gap:8px; flex-wrap:wrap;}
.ck-btn{
  flex:1 1 0; min-width:max-content; padding:11px 16px; border-radius:100px; font:inherit; font-weight:700; font-size:0.86rem;
  cursor:pointer; border:1.5px solid transparent; transition:background .15s ease, border-color .15s ease;
}
.ck-btn-gold{background:#FFC93C; color:#0B3B21;}
.ck-btn-gold:hover{background:#FFD45F;}
.ck-btn-line{background:transparent; color:inherit; border-color:currentColor;}
.ck-btn-line:hover{background:rgba(127,127,127,0.12);}

.ck-overlay{
  position:fixed; inset:0; z-index:500; background:rgba(6,30,17,0.55); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.ck-panel{
  background:#fff; color:#14231A; border-radius:22px; width:min(520px, 100%); max-height:90vh; overflow-y:auto;
  padding:24px; box-shadow:0 40px 80px -20px rgba(0,0,0,0.5); font-size:0.92rem; line-height:1.5;
}
.ck-panel-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;}
.ck-panel h2{margin:0; font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:2rem; letter-spacing:0.02em; line-height:1;}
.ck-panel .ck-text{opacity:0.75;}
.ck-x{width:36px; height:36px; border-radius:50%; border:none; background:#F4ECD9; font-size:1.3rem; cursor:pointer; color:inherit;}
.ck-row{display:grid; grid-template-columns:1fr auto; gap:4px 16px; align-items:center; padding:16px 0; border-top:1px solid rgba(20,35,26,0.1); cursor:pointer;}
.ck-row-text{display:flex; flex-direction:column; gap:2px;}
.ck-row-text span{opacity:0.7; font-size:0.85rem;}
.ck-always{grid-column:1 / -1; font-size:0.74rem; font-weight:700; color:#1F8A3C; text-transform:uppercase; letter-spacing:0.1em;}
.ck-panel .ck-actions{margin-top:12px; padding-top:16px; border-top:1px solid rgba(20,35,26,0.1);}
.ck-panel .ck-btn-line{color:#14231A; border-color:rgba(20,35,26,0.25);}

/* Interruptor */
.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 i{position:absolute; inset:0; border-radius:100px; background:#D5D9D3; 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 2px 4px rgba(0,0,0,0.2); transition:transform .2s ease;}
.ck-switch input:checked + i{background:#2FAE4E;}
.ck-switch input:checked + i::after{transform:translateX(20px);}
.ck-switch input:disabled + i{opacity:0.6;}
.ck-switch input:focus-visible + i{outline:3px solid #FFC93C; outline-offset:2px;}

@media(max-width:600px){
  .ck-banner{left:12px; right:12px; bottom:12px; width:auto; padding:18px 16px 16px;}
  .ck-panel{padding:20px;}
}
