.ck-report-btn {
    position: fixed;
    bottom: 92px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ck-report-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5); }
@media (max-width: 480px) {
    .ck-report-btn { bottom: 85px; right: 14px; width: 48px; height: 48px; }
}

.ck-report-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 16px;
}
.ck-report-modal-backdrop.active { display: flex; }

.ck-report-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.ck-report-modal-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.ck-report-modal-header h3 { margin: 0 0 4px 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #fff; }
.ck-report-modal-header p { margin: 0; font-size: 12.5px; color: #ffedd5; }
.ck-report-modal-close {
    position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,0.2); border: none;
    color: #fff; font-size: 20px; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ck-report-modal-close:hover { background: rgba(255,255,255,0.35); }

.ck-report-modal-body { padding: 22px 24px; }
.ck-report-field { margin-bottom: 16px; }
.ck-report-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.ck-report-input, .ck-report-textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px;
    font-size: 13.5px; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s ease;
}
.ck-report-input:focus, .ck-report-textarea:focus { border-color: #f97316; outline: none; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.ck-report-textarea { min-height: 90px; resize: vertical; }
.ck-report-help { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

.ck-report-submit-btn {
    width: 100%; background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: #fff; border: none;
    padding: 12px 24px; border-radius: 10px; font-size: 14.5px; font-weight: 800; cursor: pointer;
    transition: all 0.2s ease; box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}
.ck-report-submit-btn:hover { transform: translateY(-1px); }
.ck-report-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ck-report-status-msg { font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.ck-report-status-msg.success { display: block; background: #dcfce7; color: #15803d; }
.ck-report-status-msg.error { display: block; background: #fee2e2; color: #b91c1c; }

/* ========================================================
   3. GRUPO FLOTANTE: un solo boton que despliega Asistente IA y Soporte
   ======================================================== */
.ck-fab-group {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}
.ck-fab-group > * { pointer-events: auto; }
.ck-fab-main {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #fff;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.ck-fab-main:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(79, 70, 229, 0.62); }
.ck-fab-group.on .ck-fab-main { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); box-shadow: 0 6px 18px rgba(22, 163, 74, 0.55); }
.ck-fab-group.off .ck-fab-main { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5); }
.ck-fab-group.on .ck-fab-ico-closed text { fill: #15803d; }
.ck-fab-group.off .ck-fab-ico-closed text { fill: #b91c1c; }
.ck-fab-status { display: none; position: absolute; right: 70px; bottom: 15px; padding: 7px 13px; border-radius: 999px; font: 800 13px/1 Outfit, Arial, sans-serif; color: #fff; white-space: nowrap; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28); pointer-events: none; }
.ck-fab-status::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg); background: inherit; border-radius: 2px; }
.ck-fab-group.on .ck-fab-status { display: block; background: #16a34a; }
.ck-fab-group.off .ck-fab-status { display: block; background: #dc2626; }
.ck-fab-group.open .ck-fab-status { display: none; }
.ck-fab-group.on .ck-report-btn { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important; box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5) !important; }
.ck-fab-group.off .ck-report-btn { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important; }
.ck-fab-group.on .ck-fab-label.ck-sup-label { background: #16a34a; color: #fff; }
.ck-fab-group.off .ck-fab-label.ck-sup-label { background: #dc2626; color: #fff; }
@media (max-width: 1000px) { .ck-fab-status { right: 66px; bottom: 13px; font-size: 12px; padding: 6px 11px; } }
.ck-fab-main .ck-fab-ico-open { display: none; }
.ck-fab-group.open .ck-fab-main { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); transform: rotate(90deg); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.45); }
.ck-fab-group.open .ck-fab-ico-closed { display: none; }
.ck-fab-group.open .ck-fab-ico-open { display: block; }

.ck-fab-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    visibility: hidden;
    transition: visibility 0.22s;
}
.ck-fab-group.open .ck-fab-menu { visibility: visible; }
.ck-fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ck-fab-group.open .ck-fab-item { opacity: 1; transform: none; pointer-events: auto; }
.ck-fab-group.open .ck-fab-item:nth-last-child(1) { transition-delay: 0.02s; }
.ck-fab-group.open .ck-fab-item:nth-last-child(2) { transition-delay: 0.08s; }
.ck-fab-label {
    background: #ffffff;
    color: #0f172a;
    font: 800 13px/1 'Outfit', 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 9px 13px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    white-space: nowrap;
}
/* Los dos botones dejan de ser flotantes por separado: viven dentro del grupo */
.ck-fab-group .chat-button,
.ck-fab-group .ck-report-btn {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    flex-shrink: 0;
}
.ck-fab-group .ck-report-btn .ck-report-bubble { display: none !important; }
.ck-fab-group .chat-button { z-index: auto !important; }
.ck-fab-group .ck-report-btn { z-index: auto !important; }

/* Globo de respuestas sin leer (estilo Facebook) y aviso flotante del chat de soporte */
.ck-fab-main { position: relative; }
.ck-fab-badge { position:absolute; top:-7px; right:-7px; min-width:22px; height:22px; padding:0 6px; border-radius:99px; background:#ef4444; color:#fff; border:2px solid #fff; font:800 12px/18px Outfit, Arial, sans-serif; text-align:center; box-sizing:border-box; box-shadow:0 2px 6px rgba(0,0,0,.35); pointer-events:none; }
.ck-fab-badge.pop { animation: ckBadgePop .5s ease; }
@keyframes ckBadgePop { 0% { transform:scale(.4); } 60% { transform:scale(1.35); } 100% { transform:scale(1); } }
.ck-live-toast { position:fixed; right:20px; bottom:104px; z-index:10000; width:min(340px, calc(100vw - 28px)); display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid #e2e8f0; border-left:5px solid #22c55e; border-radius:16px; box-shadow:0 14px 40px rgba(15,23,42,.28); padding:12px 12px 12px 14px; cursor:pointer; transform:translateY(24px); opacity:0; transition:transform .35s ease, opacity .35s ease; font-family:Outfit, Arial, sans-serif; }
.ck-live-toast.show { transform:none; opacity:1; }
.ck-live-toast .ck-lt-ico { flex:0 0 38px; height:38px; border-radius:50%; background:#dcfce7; display:flex; align-items:center; justify-content:center; font-size:20px; }
.ck-live-toast .ck-lt-body { flex:1; min-width:0; }
.ck-live-toast .ck-lt-title { font-weight:800; font-size:14px; color:#0f172a; }
.ck-live-toast .ck-lt-text { font-size:13.5px; color:#475569; margin-top:2px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; word-break:break-word; }
.ck-live-toast .ck-lt-x { border:0; background:transparent; color:#94a3b8; font-size:20px; line-height:1; cursor:pointer; padding:0 2px; }
@media (max-width: 767px) { .ck-live-toast { right:14px; bottom:88px; } }

@media (max-width: 767px) {
    .ck-fab-group { right: 14px; bottom: 16px; }
    .ck-fab-main { width: 54px; height: 54px; }
    .chat-window { bottom: 82px !important; }
}
