/* Banner y panel de preferencias de cookies — namespaced bajo .ck-, no toca selectores globales.
   z-index muy alto a propósito: el sitio no tiene una escala de z-index centralizada;
   el valor más alto encontrado en el tema es .fixed-header .sticky-header{z-index:999}. */

.ck-banner, .ck-modal, .ck-banner *, .ck-modal *{
    box-sizing:border-box;
}

.ck-banner{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:999999;
    background:#ffffff;
    border-top:3px solid #cc8809;
    box-shadow:0 -4px 20px rgba(0,0,0,0.15);
    padding:18px 20px;
}

.ck-banner__inner{
    max-width:1180px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}

.ck-banner__text{
    margin:0;
    flex:1 1 420px;
    font-family:'Open Sans', sans-serif;
    font-size:14px;
    line-height:1.6;
    color:#3d3e3e;
}

.ck-banner__text a{
    color:#cc8809;
    text-decoration:underline;
}

.ck-banner__actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    flex:0 0 auto;
}

/* Botones: mismo peso visual entre si — ninguno es "mas importante" que otro */
.ck-btn{
    font-family:'Volkhov', serif;
    font-weight:700;
    font-size:14px;
    line-height:1.4;
    padding:10px 18px;
    background:#2c2c2a;
    color:#ffffff;
    border:2px solid #2c2c2a;
    cursor:pointer;
    white-space:nowrap;
}

@media (hover: hover){
    .ck-btn:hover{
        background:#ffffff;
        color:#2c2c2a;
    }
}

.ck-btn:focus-visible{
    outline:2px solid #cc8809;
    outline-offset:2px;
}

.ck-btn--primary{
    background:#cc8809;
    border-color:#cc8809;
}

@media (hover: hover){
    .ck-btn--primary:hover{
        background:#ffffff;
        color:#cc8809;
    }
}

.ck-btn--ghost{
    background:transparent;
    color:#2c2c2a;
}

@media (hover: hover){
    .ck-btn--ghost:hover{
        background:#2c2c2a;
        color:#ffffff;
    }
}

/* Modal */
.ck-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

/* Mas especifico que .ck-modal para ganarle al display:flex de arriba
   cuando el atributo [hidden] esta presente (si no, el display:flex de
   origen autor le gana al display:none del stylesheet del navegador). */
.ck-modal[hidden]{
    display:none;
}

.ck-modal__overlay{
    position:absolute;
    inset:0;
    background:rgba(15,15,15,0.55);
}

.ck-modal__dialog{
    position:relative;
    background:#ffffff;
    max-width:560px;
    width:100%;
    max-height:90vh;
    overflow-y:auto;
    padding:34px 30px 26px;
    border-radius:6px;
    box-shadow:0 20px 60px rgba(0,0,0,0.3);
}

.ck-modal__close{
    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    background:transparent;
    border:none;
    font-size:24px;
    line-height:1;
    color:#58606a;
    cursor:pointer;
}

.ck-modal__close:focus-visible{
    outline:2px solid #cc8809;
    outline-offset:2px;
}

.ck-modal__title{
    font-family:'Volkhov', serif;
    font-size:24px;
    color:#2c2c2a;
    margin:0 0 14px;
}

.ck-modal__intro{
    font-family:'Open Sans', sans-serif;
    font-size:14px;
    line-height:1.7;
    color:#58606a;
    margin:0 0 24px;
}

.ck-category{
    border-top:1px solid #e6e6e6;
    padding:18px 0;
}

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

.ck-category__title{
    font-family:'Volkhov', serif;
    font-size:16px;
    color:#2c2c2a;
    margin:0;
}

.ck-category__text{
    font-family:'Open Sans', sans-serif;
    font-size:13px;
    line-height:1.6;
    color:#777777;
    margin:10px 0 0;
}

/* Interruptor: estado visible por texto + posicion, no solo color */
.ck-switch{
    display:flex;
    align-items:center;
    gap:8px;
    background:none;
    border:none;
    padding:4px;
    cursor:pointer;
    flex:0 0 auto;
}

.ck-switch:focus-visible{
    outline:2px solid #cc8809;
    outline-offset:2px;
}

.ck-switch__track{
    position:relative;
    display:inline-block;
    width:42px;
    height:22px;
    background:#cccccc;
    border-radius:11px;
}

.ck-switch__thumb{
    position:absolute;
    top:2px;
    left:2px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#ffffff;
    box-shadow:0 1px 3px rgba(0,0,0,0.3);
}

.ck-switch[aria-checked="true"] .ck-switch__track{
    background:#cc8809;
}

.ck-switch[aria-checked="true"] .ck-switch__thumb{
    left:22px;
}

.ck-switch--locked{
    cursor:default;
    opacity:0.85;
}

.ck-switch__state{
    font-family:'Open Sans', sans-serif;
    font-size:12px;
    font-weight:600;
    letter-spacing:0.03em;
    text-transform:uppercase;
    color:#58606a;
}

.ck-modal__actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
    margin-top:26px;
}

@media (prefers-reduced-motion: no-preference){
    .ck-switch__thumb{
        transition:left 150ms ease;
    }
    .ck-switch__track{
        transition:background 150ms ease;
    }
}

@media (max-width:767px){
    .ck-banner__actions{
        width:100%;
        flex-direction:column;
    }
    .ck-btn{
        width:100%;
        text-align:center;
    }
    .ck-modal{
        padding:0;
    }
    .ck-modal__dialog{
        max-width:none;
        width:100%;
        height:100%;
        max-height:none;
        border-radius:0;
    }
}
