/* SeenSecure — Banner de consentimiento de cookies (RGPD / LSSI-CE).
   Independiente del tema: se usa igual en la landing (WordPress) y en
   /support/ (HTML estático). No depende de ningún framework. */

#ssc-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
    padding: 18px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    display: none;
}
#ssc-cc-banner.ssc-cc-visible { display: block; }

#ssc-cc-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
#ssc-cc-text { flex: 1 1 380px; min-width: 260px; font-size: 13.5px; line-height: 1.55; margin: 0; }
#ssc-cc-text a { color: #0b5fa5; text-decoration: underline; }
#ssc-cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }

.ssc-cc-btn {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
/* "Aceptar" y "Rechazar" al mismo nivel visual, como exige la guía de la
   AEPD -- ninguna de las dos acciones debe estar más destacada ni ser más
   difícil de encontrar que la otra. */
.ssc-cc-btn-accept { background: #0b5fa5; color: #fff; }
.ssc-cc-btn-accept:hover { background: #094a83; }
.ssc-cc-btn-reject { background: #fff; color: #0b5fa5; border-color: #0b5fa5; }
.ssc-cc-btn-reject:hover { background: #f0f5ff; }
.ssc-cc-btn-settings { background: transparent; color: #64748b; text-decoration: underline; padding: 10px 6px; }
.ssc-cc-btn-settings:hover { color: #334155; }

/* Panel de preferencias (categorías) */
#ssc-cc-panel {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#ssc-cc-panel.ssc-cc-visible { display: flex; }
#ssc-cc-panel-box {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
#ssc-cc-panel-box h2 { margin: 0 0 6px; color: #0b5fa5; font-size: 1.2rem; }
#ssc-cc-panel-box > p { margin: 0 0 18px; color: #64748b; font-size: 13.5px; line-height: 1.55; }
.ssc-cc-cat { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ssc-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ssc-cc-cat-head strong { font-size: 14px; color: #1e293b; }
.ssc-cc-cat-desc { margin: 6px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* Switch on/off accesible */
.ssc-cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.ssc-cc-switch input { opacity: 0; width: 0; height: 0; }
.ssc-cc-switch .ssc-cc-slider {
    position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px;
    transition: background .15s ease; cursor: pointer;
}
.ssc-cc-switch .ssc-cc-slider::before {
    content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.ssc-cc-switch input:checked + .ssc-cc-slider { background: #0b5fa5; }
.ssc-cc-switch input:checked + .ssc-cc-slider::before { transform: translateX(18px); }
.ssc-cc-switch input:disabled + .ssc-cc-slider { background: #94a3b8; cursor: not-allowed; opacity: .7; }

#ssc-cc-panel-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#ssc-cc-panel-actions .ssc-cc-btn { flex: 1 1 auto; text-align: center; }

/* Enlace persistente para reabrir preferencias (footer) */
.ssc-cc-reopen { cursor: pointer; background: none; border: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; }

@media (max-width: 680px) {
    #ssc-cc-inner { flex-direction: column; align-items: stretch; }
    #ssc-cc-actions { justify-content: stretch; }
    .ssc-cc-btn { flex: 1 1 auto; }
}
