/* Preferencias de cookies y aviso de política actualizada (js/consent.js). */
.ffc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: 980px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 18px 22px;
    background: #161B22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: #E6EDF3;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.ffc-banner [hidden] { display: none !important; }
.ffc-banner--toast { max-width: 720px; padding: 14px 18px; }
.ffc-body { flex: 1; min-width: 0; }
.ffc-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: #FFFFFF; letter-spacing: 0; }
.ffc-desc { margin: 0 0 6px; color: #C9D1D9; }
.ffc-update { margin: 0; color: #C9D1D9; }
.ffc-update::before { content: '📄 '; }
.ffc-banner a { color: #58A6FF; text-decoration: underline; }

.ffc-options { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ffc-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}
.ffc-option input { margin-top: 3px; width: 16px; height: 16px; accent-color: #1F6FEB; flex-shrink: 0; }
.ffc-option input:disabled { cursor: not-allowed; }
.ffc-option-text { display: flex; flex-direction: column; gap: 2px; }
.ffc-option-text strong { color: #FFFFFF; font-weight: 600; }
.ffc-option-desc { color: #8B949E; font-size: 13px; }
.ffc-badge { font-size: 12px; color: #56D364; }

.ffc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.ffc-btn {
    font: inherit;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #1F6FEB;
    background: #1F6FEB;
    color: #FFFFFF;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ffc-btn:hover { background: #388BFD; border-color: #388BFD; }
.ffc-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #E6EDF3; }
.ffc-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.5); }
.ffc-btn:focus-visible, .ffc-link:focus-visible, .ffc-embed-load:focus-visible { outline: 2px solid #58A6FF; outline-offset: 2px; }

.ffc-link-wrap { margin: 6px 0 0; }
.ffc-link {
    font: inherit;
    font-size: 0.85rem;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    opacity: 0.8;
    text-decoration: underline;
    cursor: pointer;
}
.ffc-link:hover { opacity: 1; }

/* Marcador del vídeo de YouTube hasta que se permite cargarlo */
.ffc-embed-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    background: #0D1117;
    color: #C9D1D9;
    font-size: 14px;
    line-height: 1.6;
}
.ffc-embed-placeholder p { margin: 0; max-width: 460px; }
.ffc-embed-placeholder a { color: #58A6FF; }
.ffc-embed-load {
    font: inherit;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #E5533D;
    color: #FFFFFF;
    cursor: pointer;
}
.ffc-embed-load:hover { background: #F06A55; }

@media (max-width: 760px) {
    .ffc-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .ffc-actions { justify-content: stretch; }
    .ffc-actions .ffc-btn { flex: 1 1 auto; }
}

/* Sello SSL y aviso de marca del pie de página */
.trust-badges { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 0; text-align: center; }
.trust-badges a { display: inline-block; line-height: 0; }
.trust-badge-img { width: 150px; max-width: 100%; height: auto; cursor: pointer; }
.trust-text { margin: 0; font-size: 0.85rem; color: #C9D1D9; }
.trust-note { margin: 0; font-size: 0.72rem; color: #8B949E; max-width: 420px; }
.docs-sidebar-footer .trust-badges { margin-top: 14px; }
.docs-sidebar-footer .trust-badge-img { width: 120px; }
