/* Banner de consentimiento de cookies (Scripts/cookie-consent.js).
   Los botones usan el tema DevExpress de la web; el color del titulo y enlaces lo aporta la clase color de style.css. */

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.35);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.cc-modal {
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 24px 28px 18px 28px;
    background-color: #fff;
    color: #333;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.cc-cabecera {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.cc-titulo {
    flex: 1;
    font-size: 20px;
    font-weight: 500;
}

.cc-cerrar {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: #222;
    font-size: 22px;
    font-weight: bold;
    line-height: 34px;
    cursor: pointer;
}

    .cc-cerrar:hover {
        opacity: 0.7;
    }

.cc-texto {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Categorias: solo visibles en el modo "preferencias" */
.cc-cats {
    display: none;
    margin-bottom: 20px;
}

.cc-con-preferencias .cc-cats {
    display: block;
}

.cc-cat {
    margin-bottom: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
}

.cc-cat-cab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
}

.cc-cat-titulo {
    flex: 1;
    font-size: 17px;
}

.cc-siempre {
    color: #1a8a1a;
    font-size: 15px;
}

.cc-chevron {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

    .cc-chevron::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 6px;
        width: 10px;
        height: 10px;
        border-right: 2px solid #222;
        border-bottom: 2px solid #222;
        transform: rotate(45deg);
        transition: transform 0.2s ease, top 0.2s ease;
    }

.cc-abierta .cc-chevron::before {
    top: 10px;
    transform: rotate(-135deg);
}

.cc-cat-desc {
    display: none;
    padding: 0 16px 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.cc-abierta .cc-cat-desc {
    display: block;
}

/* Interruptor */
.cc-switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

    .cc-switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.cc-slider {
    position: absolute;
    inset: 0;
    background-color: #555;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

    .cc-slider::before {
        content: '';
        position: absolute;
        top: 4px;
        left: 4px;
        width: 16px;
        height: 16px;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.2s ease;
    }

.cc-switch input:checked + .cc-slider {
    background-color: #1a8a1a;
}

    .cc-switch input:checked + .cc-slider::before {
        transform: translateX(20px);
    }

.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid #222;
    outline-offset: 2px;
}

/* Botones: son ASPxButton del master (ccBotonesServidor), con el tema DevExpress de la web.
   Aqui solo se reparte el ancho. */
.cc-botones {
    display: flex;
    gap: 16px;
}

    .cc-botones > .cc-btn {
        flex: 1;
        width: auto !important;
        margin: 0;
    }

/* Alternativa si la pagina no tiene los botones de servidor */
.cc-btn-html {
    min-height: 40px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

    .cc-btn-html:hover {
        filter: brightness(0.9);
    }

.cc-enlaces {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

    .cc-enlaces a {
        text-decoration: underline;
    }

@media (max-width: 600px) {
    .cc-modal {
        padding: 18px 16px 14px 16px;
    }

    .cc-cabecera {
        gap: 12px;
    }

    .cc-titulo {
        font-size: 17px;
    }

    .cc-texto {
        font-size: 14px;
    }

    .cc-botones {
        flex-direction: column;
        gap: 10px;
    }
}
