/* BioChosko Feedback Widget Pro */
#bio-feedback-widget {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 10000;
    font-family: var(--font-body, sans-serif);
}

/* --- BOTÓN FLOTANTE --- */
.bfw-trigger {
    width: 45px; 
    height: 45px; 
    border-radius: 50%;
    background: var(--bg-panel, rgba(20, 20, 35, 0.95)); 
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #aaa);
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    position: relative; /* CLAVE: Para que el tooltip se pegue a él */
}

.bfw-trigger:hover {
    background: var(--primary, #8b5cf6);
    color: white;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px var(--primary-glow, rgba(139, 92, 246, 0.6));
    border-color: transparent;
}

/* --- TOOLTIP (EL BOCADILLO DE TEXTO) --- */
.bfw-tooltip {
    position: absolute;
    right: 60px; /* Lo empujamos a la izquierda del botón */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    
    background: var(--bg-panel, #1a1a2e);
    border: 1px solid var(--primary, #8b5cf6);
    color: var(--text-main, #fff);
    
    padding: 8px 16px;
    border-radius: 20px 4px 20px 20px; /* Forma de bocadillo */
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap; /* CLAVE: Evita que el texto se parta en líneas */
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Mostrar tooltip al hacer hover */
.bfw-trigger:hover .bfw-tooltip,
.bfw-trigger.show-hint .bfw-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Pequeña animación de entrada */
}

/* --- PANEL DESPLEGABLE --- */
.bfw-panel {
    position: fixed; 
    bottom: 80px; 
    right: 20px; 
    width: 320px;
    background: var(--bg-panel, #1a1a2e); 
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    opacity: 0; 
    transform: translateY(20px) scale(0.95);
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.bfw-panel.active { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    pointer-events: all; 
}

/* Header del Panel */
.bfw-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}
.bfw-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-main); font-weight: 700; }
.bfw-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.bfw-close:hover { color: var(--danger, #ff4757); transform: rotate(90deg); }

/* Inputs y Selectores */
.bfw-types { display: flex; gap: 8px; margin-bottom: 1rem; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 10px; }
.bfw-type-opt { flex: 1; cursor: pointer; position: relative; }
.bfw-type-opt input { display: none; }

.bfw-type-label {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px; border-radius: 8px;
    color: var(--text-muted); transition: 0.2s;
    border: 1px solid transparent;
}
.bfw-type-text { font-size: 0.65rem; margin-top: 4px; font-weight: 600; text-transform: uppercase; }

.bfw-type-opt input:checked + .bfw-type-label {
    background: var(--bg-input); 
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.15);
}

.bfw-textarea {
    width: 100%;
    background: var(--bg-input, rgba(255,255,255,0.05));
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 12px;
    color: var(--text-main);
    font-size: 0.95rem; resize: none; margin-bottom: 1rem;
    font-family: inherit; outline: none;
    min-height: 100px;
}
.bfw-textarea:focus { border-color: var(--primary); background: rgba(0,0,0,0.2); }

.bfw-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
    border: none; padding: 12px; border-radius: 50px;
    font-weight: 600; cursor: pointer; 
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.bfw-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5); }
.bfw-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }